@launchdarkly/session-replay 0.2.2 → 0.3.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.
@@ -21,7 +21,7 @@ const Sr = /* @__PURE__ */ Object.create(null), Ze = (e, t, ...i) => {
21
21
  Sr[`${e}-${t}`] || (Sr[`${e}-${t}`] = !0, Ze(e, i, ...s));
22
22
  }, kc = (e, ...t) => Rc(void 0, null, function* () {
23
23
  try {
24
- const { LDObserve: i } = yield import("./LDObserve-Bg1A5bz4.js");
24
+ const { LDObserve: i } = yield import("./LDObserve-CmywPxvS.js");
25
25
  i.recordLog(`${e}${t}`, "warn");
26
26
  } catch {
27
27
  }
@@ -163,14 +163,14 @@ function Qo(e, t) {
163
163
  const i = e.locationOffset.column - 1, s = "".padStart(i) + e.body, n = t.line - 1, r = e.locationOffset.line - 1, l = t.line + r, o = t.line === 1 ? i : 0, a = t.column + o, c = `${e.name}:${l}:${a}
164
164
  `, u = s.split(/\r\n|[\n\r]/g), h = u[n];
165
165
  if (h.length > 120) {
166
- const m = Math.floor(a / 80), p = a % 80, b = [];
166
+ const p = Math.floor(a / 80), m = a % 80, b = [];
167
167
  for (let d = 0; d < h.length; d += 80)
168
168
  b.push(h.slice(d, d + 80));
169
169
  return c + Gr([
170
170
  [`${l} |`, b[0]],
171
- ...b.slice(1, m + 1).map((d) => ["|", d]),
172
- ["|", "^".padStart(p)],
173
- ["|", b[m + 1]]
171
+ ...b.slice(1, p + 1).map((d) => ["|", d]),
172
+ ["|", "^".padStart(m)],
173
+ ["|", b[p + 1]]
174
174
  ]);
175
175
  }
176
176
  return c + Gr([
@@ -242,14 +242,14 @@ let Fc = class Ao extends Error {
242
242
  super(t), this.name = "GraphQLError", this.path = c ?? void 0, this.originalError = u ?? void 0, this.nodes = Vr(
243
243
  Array.isArray(l) ? l : l ? [l] : void 0
244
244
  );
245
- const m = Vr(
245
+ const p = Vr(
246
246
  (s = this.nodes) === null || s === void 0 ? void 0 : s.map((b) => b.loc).filter((b) => b != null)
247
247
  );
248
- this.source = o ?? (m == null || (n = m[0]) === null || n === void 0 ? void 0 : n.source), this.positions = a ?? m?.map((b) => b.start), this.locations = a && o ? a.map((b) => Qs(o, b)) : m?.map((b) => Qs(b.source, b.start));
249
- const p = Nc(
248
+ this.source = o ?? (p == null || (n = p[0]) === null || n === void 0 ? void 0 : n.source), this.positions = a ?? p?.map((b) => b.start), this.locations = a && o ? a.map((b) => Qs(o, b)) : p?.map((b) => Qs(b.source, b.start));
249
+ const m = Nc(
250
250
  u?.extensions
251
251
  ) ? u?.extensions : void 0;
252
- this.extensions = (r = h ?? p) !== null && r !== void 0 ? r : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
252
+ this.extensions = (r = h ?? m) !== null && r !== void 0 ? r : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
253
253
  message: {
254
254
  writable: !0,
255
255
  enumerable: !0
@@ -509,13 +509,13 @@ function Hc(e) {
509
509
  return t;
510
510
  }
511
511
  function zc(e, t) {
512
- const i = e.replace(/"""/g, '\\"""'), s = i.split(/\r\n|[\n\r]/g), n = s.length === 1, r = s.length > 1 && s.slice(1).every((p) => p.length === 0 || _s(p.charCodeAt(0))), l = i.endsWith('\\"""'), o = e.endsWith('"') && !l, a = e.endsWith("\\"), c = o || a, u = (
512
+ const i = e.replace(/"""/g, '\\"""'), s = i.split(/\r\n|[\n\r]/g), n = s.length === 1, r = s.length > 1 && s.slice(1).every((m) => m.length === 0 || _s(m.charCodeAt(0))), l = i.endsWith('\\"""'), o = e.endsWith('"') && !l, a = e.endsWith("\\"), c = o || a, u = (
513
513
  // add leading and trailing new lines only if it improves readability
514
514
  !n || e.length > 70 || c || r || l
515
515
  );
516
516
  let h = "";
517
- const m = n && _s(e.charCodeAt(0));
518
- return (u && !m || r) && (h += `
517
+ const p = n && _s(e.charCodeAt(0));
518
+ return (u && !p || r) && (h += `
519
519
  `), h += i, (u || c) && (h += `
520
520
  `), '"""' + h + '"""';
521
521
  }
@@ -2330,12 +2330,12 @@ function fu(e, t, i = $o) {
2330
2330
  for (const Z of Object.values(x))
2331
2331
  s.set(Z, yu(t, Z));
2332
2332
  let n, r = Array.isArray(e), l = [e], o = -1, a = [], c = e, u, h;
2333
- const m = [], p = [];
2333
+ const p = [], m = [];
2334
2334
  do {
2335
2335
  o++;
2336
2336
  const Z = o === l.length, X = Z && a.length !== 0;
2337
2337
  if (Z) {
2338
- if (u = p.length === 0 ? void 0 : m[m.length - 1], c = h, h = p.pop(), X)
2338
+ if (u = m.length === 0 ? void 0 : p[p.length - 1], c = h, h = m.pop(), X)
2339
2339
  if (r) {
2340
2340
  c = c.slice();
2341
2341
  let W = 0;
@@ -2355,30 +2355,30 @@ function fu(e, t, i = $o) {
2355
2355
  } else if (h) {
2356
2356
  if (u = r ? o : l[o], c = h[u], c == null)
2357
2357
  continue;
2358
- m.push(u);
2358
+ p.push(u);
2359
2359
  }
2360
2360
  let R;
2361
2361
  if (!Array.isArray(c)) {
2362
2362
  var b, d;
2363
2363
  Xr(c) || ki(!1, `Invalid AST Node: ${Hn(c)}.`);
2364
2364
  const W = Z ? (b = s.get(c.kind)) === null || b === void 0 ? void 0 : b.leave : (d = s.get(c.kind)) === null || d === void 0 ? void 0 : d.enter;
2365
- if (R = W?.call(t, c, u, h, m, p), R === bu)
2365
+ if (R = W?.call(t, c, u, h, p, m), R === bu)
2366
2366
  break;
2367
2367
  if (R === !1) {
2368
2368
  if (!Z) {
2369
- m.pop();
2369
+ p.pop();
2370
2370
  continue;
2371
2371
  }
2372
2372
  } else if (R !== void 0 && (a.push([u, R]), !Z))
2373
2373
  if (Xr(R))
2374
2374
  c = R;
2375
2375
  else {
2376
- m.pop();
2376
+ p.pop();
2377
2377
  continue;
2378
2378
  }
2379
2379
  }
2380
2380
  if (R === void 0 && X && a.push([u, c]), Z)
2381
- m.pop();
2381
+ p.pop();
2382
2382
  else {
2383
2383
  var I;
2384
2384
  n = {
@@ -2387,7 +2387,7 @@ function fu(e, t, i = $o) {
2387
2387
  keys: l,
2388
2388
  edits: a,
2389
2389
  prev: n
2390
- }, r = Array.isArray(c), l = r ? c : (I = i[c.kind]) !== null && I !== void 0 ? I : [], o = -1, a = [], h && p.push(h), h = c;
2390
+ }, r = Array.isArray(c), l = r ? c : (I = i[c.kind]) !== null && I !== void 0 ? I : [], o = -1, a = [], h && m.push(h), h = c;
2391
2391
  }
2392
2392
  } while (n !== void 0);
2393
2393
  return a.length !== 0 ? a[a.length - 1][1] : e;
@@ -2763,10 +2763,10 @@ var $s = { exports: {} };
2763
2763
  throw new TypeError("Invalid character in header field name");
2764
2764
  return f.toLowerCase();
2765
2765
  }
2766
- function m(f) {
2766
+ function p(f) {
2767
2767
  return typeof f != "string" && (f = String(f)), f;
2768
2768
  }
2769
- function p(f) {
2769
+ function m(f) {
2770
2770
  var y = {
2771
2771
  next: function() {
2772
2772
  var T = f.shift();
@@ -2787,7 +2787,7 @@ var $s = { exports: {} };
2787
2787
  }, this);
2788
2788
  }
2789
2789
  b.prototype.append = function(f, y) {
2790
- f = h(f), y = m(y);
2790
+ f = h(f), y = p(y);
2791
2791
  var T = this.map[f];
2792
2792
  this.map[f] = T ? T + ", " + y : y;
2793
2793
  }, b.prototype.delete = function(f) {
@@ -2797,7 +2797,7 @@ var $s = { exports: {} };
2797
2797
  }, b.prototype.has = function(f) {
2798
2798
  return this.map.hasOwnProperty(h(f));
2799
2799
  }, b.prototype.set = function(f, y) {
2800
- this.map[h(f)] = m(y);
2800
+ this.map[h(f)] = p(y);
2801
2801
  }, b.prototype.forEach = function(f, y) {
2802
2802
  for (var T in this.map)
2803
2803
  this.map.hasOwnProperty(T) && f.call(y, this.map[T], T, this);
@@ -2805,17 +2805,17 @@ var $s = { exports: {} };
2805
2805
  var f = [];
2806
2806
  return this.forEach(function(y, T) {
2807
2807
  f.push(T);
2808
- }), p(f);
2808
+ }), m(f);
2809
2809
  }, b.prototype.values = function() {
2810
2810
  var f = [];
2811
2811
  return this.forEach(function(y) {
2812
2812
  f.push(y);
2813
- }), p(f);
2813
+ }), m(f);
2814
2814
  }, b.prototype.entries = function() {
2815
2815
  var f = [];
2816
2816
  return this.forEach(function(y, T) {
2817
2817
  f.push([T, y]);
2818
- }), p(f);
2818
+ }), m(f);
2819
2819
  }, o.iterable && (b.prototype[Symbol.iterator] = b.prototype.entries);
2820
2820
  function d(f) {
2821
2821
  if (f.bodyUsed)
@@ -3014,21 +3014,21 @@ const xi = /* @__PURE__ */ cl(Mi), Cu = /* @__PURE__ */ Tc({
3014
3014
  }, ku = (e) => (t) => rt(void 0, null, function* () {
3015
3015
  var i;
3016
3016
  const { url: s, query: n, variables: r, operationName: l, fetch: o, fetchOptions: a, middleware: c } = t, u = M({}, t.headers);
3017
- let h = "", m;
3018
- e === "POST" ? (m = vu(n, r, l, a.jsonSerializer), typeof m == "string" && (u["Content-Type"] = "application/json")) : h = Ru({
3017
+ let h = "", p;
3018
+ e === "POST" ? (p = vu(n, r, l, a.jsonSerializer), typeof p == "string" && (u["Content-Type"] = "application/json")) : h = Ru({
3019
3019
  query: n,
3020
3020
  variables: r,
3021
3021
  operationName: l,
3022
3022
  jsonSerializer: (i = a.jsonSerializer) != null ? i : zn
3023
3023
  });
3024
- const p = M({
3024
+ const m = M({
3025
3025
  method: e,
3026
3026
  headers: u,
3027
- body: m
3027
+ body: p
3028
3028
  }, a);
3029
- let b = s, d = p;
3029
+ let b = s, d = m;
3030
3030
  if (c) {
3031
- const I = yield Promise.resolve(c(nt(M({}, p), { url: s, operationName: l, variables: r }))), { url: Z } = I, X = kt(I, ["url"]);
3031
+ const I = yield Promise.resolve(c(nt(M({}, m), { url: s, operationName: l, variables: r }))), { url: Z } = I, X = kt(I, ["url"]);
3032
3032
  b = Z, d = X;
3033
3033
  }
3034
3034
  return h && (b = `${b}?${h}`), yield o(b, d);
@@ -3036,7 +3036,7 @@ const xi = /* @__PURE__ */ cl(Mi), Cu = /* @__PURE__ */ Tc({
3036
3036
  let wu = class {
3037
3037
  constructor(t, i = {}) {
3038
3038
  this.url = t, this.requestConfig = i, this.rawRequest = (...s) => rt(this, null, function* () {
3039
- const [n, r, l] = s, o = Vu(n, r, l), a = this.requestConfig, { headers: c, fetch: u = xi, method: h = "POST", requestMiddleware: m, responseMiddleware: p } = a, b = kt(a, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: d } = this;
3039
+ const [n, r, l] = s, o = Vu(n, r, l), a = this.requestConfig, { headers: c, fetch: u = xi, method: h = "POST", requestMiddleware: p, responseMiddleware: m } = a, b = kt(a, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: d } = this;
3040
3040
  o.signal !== void 0 && (b.signal = o.signal);
3041
3041
  const { operationName: I } = ws(o.query);
3042
3042
  return vs({
@@ -3048,26 +3048,26 @@ let wu = class {
3048
3048
  fetch: u,
3049
3049
  method: h,
3050
3050
  fetchOptions: b,
3051
- middleware: m
3052
- }).then((Z) => (p && p(Z), Z)).catch((Z) => {
3053
- throw p && p(Z), Z;
3051
+ middleware: p
3052
+ }).then((Z) => (m && m(Z), Z)).catch((Z) => {
3053
+ throw m && m(Z), Z;
3054
3054
  });
3055
3055
  });
3056
3056
  }
3057
3057
  request(t, ...i) {
3058
3058
  return rt(this, null, function* () {
3059
- const [s, n] = i, r = Gu(t, s, n), l = this.requestConfig, { headers: o, fetch: a = xi, method: c = "POST", requestMiddleware: u, responseMiddleware: h } = l, m = kt(l, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: p } = this;
3060
- r.signal !== void 0 && (m.signal = r.signal);
3059
+ const [s, n] = i, r = Gu(t, s, n), l = this.requestConfig, { headers: o, fetch: a = xi, method: c = "POST", requestMiddleware: u, responseMiddleware: h } = l, p = kt(l, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: m } = this;
3060
+ r.signal !== void 0 && (p.signal = r.signal);
3061
3061
  const { query: b, operationName: d } = ws(r.document);
3062
3062
  return vs({
3063
- url: p,
3063
+ url: m,
3064
3064
  query: b,
3065
3065
  variables: r.variables,
3066
3066
  headers: M(M({}, _e(xs(o))), _e(r.requestHeaders)),
3067
3067
  operationName: d,
3068
3068
  fetch: a,
3069
3069
  method: c,
3070
- fetchOptions: m,
3070
+ fetchOptions: p,
3071
3071
  middleware: u
3072
3072
  }).then((I) => (h && h(I), I.data)).catch((I) => {
3073
3073
  throw h && h(I), I;
@@ -3114,20 +3114,20 @@ let wu = class {
3114
3114
  };
3115
3115
  const vs = (e) => rt(void 0, null, function* () {
3116
3116
  var t, i;
3117
- const { query: s, variables: n, fetchOptions: r } = e, l = ku(Iu((t = e.method) != null ? t : "post")), o = Array.isArray(e.query), a = yield l(e), c = yield xu(a, (i = r.jsonSerializer) != null ? i : zn), u = Array.isArray(c) ? !c.some(({ data: m }) => !m) : !!c.data, h = Array.isArray(c) || !c.errors || Array.isArray(c.errors) && !c.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
3117
+ const { query: s, variables: n, fetchOptions: r } = e, l = ku(Iu((t = e.method) != null ? t : "post")), o = Array.isArray(e.query), a = yield l(e), c = yield xu(a, (i = r.jsonSerializer) != null ? i : zn), u = Array.isArray(c) ? !c.some(({ data: p }) => !p) : !!c.data, h = Array.isArray(c) || !c.errors || Array.isArray(c.errors) && !c.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
3118
3118
  if (a.ok && h && u) {
3119
- const m = c, p = kt(m, ["errors"]), b = r.errorPolicy === "ignore" ? p : c;
3119
+ const p = c, m = kt(p, ["errors"]), b = r.errorPolicy === "ignore" ? m : c;
3120
3120
  return nt(M({}, o ? { data: b } : b), {
3121
3121
  headers: a.headers,
3122
3122
  status: a.status
3123
3123
  });
3124
3124
  } else {
3125
- const m = typeof c == "string" ? {
3125
+ const p = typeof c == "string" ? {
3126
3126
  error: c
3127
3127
  } : c;
3128
3128
  throw new al(
3129
3129
  // @ts-expect-error TODO
3130
- nt(M({}, m), { status: a.status, headers: a.headers }),
3130
+ nt(M({}, p), { status: a.status, headers: a.headers }),
3131
3131
  { query: s, variables: n }
3132
3132
  );
3133
3133
  }
@@ -3951,7 +3951,7 @@ let wd = class extends Bo {
3951
3951
  return this._bufferCall("track", [t, i]);
3952
3952
  }
3953
3953
  };
3954
- const vd = "9.18.15", xd = {
3954
+ const vd = "9.18.16", xd = {
3955
3955
  version: vd
3956
3956
  }, Td = xd.version;
3957
3957
  function Il(e, t) {
@@ -4449,8 +4449,8 @@ function Qi(e, t) {
4449
4449
  return `url(${c}${bh(t) + a}${c})`;
4450
4450
  const u = t.split("/"), h = a.split("/");
4451
4451
  u.pop();
4452
- for (const m of h)
4453
- m !== "." && (m === ".." ? u.pop() : u.push(m));
4452
+ for (const p of h)
4453
+ p !== "." && (p === ".." ? u.pop() : u.push(p));
4454
4454
  return `url(${c}${u.join("/")}${c})`;
4455
4455
  }
4456
4456
  );
@@ -4476,26 +4476,26 @@ function Ih(e, t, i = !1) {
4476
4476
  c.indexOf(c.substring(0, h), 1) !== -1); h++)
4477
4477
  ;
4478
4478
  for (; h < c.length; h++) {
4479
- let m = c.substring(0, h), p = l.split(m), b = -1;
4480
- if (p.length === 2)
4481
- b = p[0].length;
4482
- else if (p.length > 2 && p[0] === "" && s[a - 1].textContent !== "")
4483
- b = l.indexOf(m, 1);
4484
- else if (p.length === 1) {
4485
- if (m = m.substring(
4479
+ let p = c.substring(0, h), m = l.split(p), b = -1;
4480
+ if (m.length === 2)
4481
+ b = m[0].length;
4482
+ else if (m.length > 2 && m[0] === "" && s[a - 1].textContent !== "")
4483
+ b = l.indexOf(p, 1);
4484
+ else if (m.length === 1) {
4485
+ if (p = p.substring(
4486
4486
  0,
4487
- m.length - 1
4488
- ), p = l.split(m), p.length <= 1)
4487
+ p.length - 1
4488
+ ), m = l.split(p), m.length <= 1)
4489
4489
  return n.push(e), n;
4490
4490
  h = u + 1;
4491
- } else h === c.length - 1 && (b = l.indexOf(m));
4492
- if (p.length >= 2 && h > u) {
4491
+ } else h === c.length - 1 && (b = l.indexOf(p));
4492
+ if (m.length >= 2 && h > u) {
4493
4493
  const d = s[a - 1].textContent;
4494
4494
  if (d && typeof d == "string") {
4495
4495
  const I = li(d).length;
4496
- b = l.indexOf(m, I);
4496
+ b = l.indexOf(p, I);
4497
4497
  }
4498
- b === -1 && (b = p[0].length);
4498
+ b === -1 && (b = m[0].length);
4499
4499
  }
4500
4500
  if (b !== -1) {
4501
4501
  let d = Math.floor(b / o);
@@ -4733,8 +4733,8 @@ function Kh(e, t) {
4733
4733
  maskTextClass: c,
4734
4734
  maskTextFn: u,
4735
4735
  maskInputFn: h,
4736
- dataURLOptions: m = {},
4737
- inlineImages: p,
4736
+ dataURLOptions: p = {},
4737
+ inlineImages: m,
4738
4738
  inlineVideos: b,
4739
4739
  recordCanvas: d,
4740
4740
  keepIframeSrcFn: I,
@@ -4770,8 +4770,8 @@ function Kh(e, t) {
4770
4770
  maskInputOptions: a,
4771
4771
  maskInputFn: h,
4772
4772
  maskTextClass: c,
4773
- dataURLOptions: m,
4774
- inlineImages: p,
4773
+ dataURLOptions: p,
4774
+ inlineImages: m,
4775
4775
  inlineVideos: b,
4776
4776
  recordCanvas: d,
4777
4777
  keepIframeSrcFn: I,
@@ -4813,10 +4813,10 @@ function Mh(e, t) {
4813
4813
  var i;
4814
4814
  const { needsMask: s, maskTextFn: n, privacySetting: r, rootId: l, cssCaptured: o } = t, a = ce.parentNode(e), c = a && a.tagName;
4815
4815
  let u = "";
4816
- const h = c === "STYLE" ? !0 : void 0, m = c === "SCRIPT" ? !0 : void 0;
4817
- m ? u = "SCRIPT_PLACEHOLDER" : o || (u = ce.textContent(e), h && u && (u = Qi(u, jn(t.doc)))), !h && !m && u && s && (u = n ? n(u, ce.parentElement(e)) : u.replace(/[\S]/g, "*"));
4818
- const p = r === "strict", b = (i = e.parentElement) == null ? void 0 : i.getAttribute("data-hl-record"), d = r === "default" && kl(u);
4819
- return (p || d) && !b && c && !(/* @__PURE__ */ new Set([
4816
+ const h = c === "STYLE" ? !0 : void 0, p = c === "SCRIPT" ? !0 : void 0;
4817
+ p ? u = "SCRIPT_PLACEHOLDER" : o || (u = ce.textContent(e), h && u && (u = Qi(u, jn(t.doc)))), !h && !p && u && s && (u = n ? n(u, ce.parentElement(e)) : u.replace(/[\S]/g, "*"));
4818
+ const m = r === "strict", b = (i = e.parentElement) == null ? void 0 : i.getAttribute("data-hl-record"), d = r === "default" && kl(u);
4819
+ return (m || d) && !b && c && !(/* @__PURE__ */ new Set([
4820
4820
  "HEAD",
4821
4821
  "TITLE",
4822
4822
  "STYLE",
@@ -4842,8 +4842,8 @@ function Eh(e, t) {
4842
4842
  dataURLOptions: c = {},
4843
4843
  inlineImages: u,
4844
4844
  inlineVideos: h,
4845
- recordCanvas: m,
4846
- keepIframeSrcFn: p,
4845
+ recordCanvas: p,
4846
+ keepIframeSrcFn: m,
4847
4847
  newlyAddedElement: b = !1,
4848
4848
  privacySetting: d,
4849
4849
  rootId: I
@@ -4884,7 +4884,7 @@ function Eh(e, t) {
4884
4884
  maskInputFn: o
4885
4885
  }) : k && (G.checked = k);
4886
4886
  }
4887
- if (W === "option" && (e.selected && !l.select ? G.selected = !0 : delete G.selected), W === "dialog" && e.open && (G.rr_open_mode = e.matches("dialog:modal") ? "modal" : "non-modal"), W === "canvas" && m) {
4887
+ if (W === "option" && (e.selected && !l.select ? G.selected = !0 : delete G.selected), W === "dialog" && e.open && (G.rr_open_mode = e.matches("dialog:modal") ? "modal" : "non-modal"), W === "canvas" && p) {
4888
4888
  if (e.__context === "2d")
4889
4889
  mh(e);
4890
4890
  else if (!("__context" in e)) {
@@ -4934,7 +4934,7 @@ function Eh(e, t) {
4934
4934
  rr_height: `${k}px`
4935
4935
  };
4936
4936
  }
4937
- R && cn(W) && (Z = !0), W === "iframe" && !p(G.src) && (e.contentDocument || (G.rr_src = G.src), delete G.src);
4937
+ R && cn(W) && (Z = !0), W === "iframe" && !m(G.src) && (e.contentDocument || (G.rr_src = G.src), delete G.src);
4938
4938
  let v;
4939
4939
  try {
4940
4940
  customElements.get(W) && (v = !0);
@@ -4997,8 +4997,8 @@ function it(e, t) {
4997
4997
  inlineStylesheet: c = !0,
4998
4998
  maskInputOptions: u = {},
4999
4999
  maskTextFn: h,
5000
- maskInputFn: m,
5001
- slimDOMOptions: p,
5000
+ maskInputFn: p,
5001
+ slimDOMOptions: m,
5002
5002
  dataURLOptions: b = {},
5003
5003
  inlineImages: d = !1,
5004
5004
  inlineVideos: I = !1,
@@ -5030,7 +5030,7 @@ function it(e, t) {
5030
5030
  maskInputOptions: u,
5031
5031
  maskTextClass: l,
5032
5032
  maskTextFn: h,
5033
- maskInputFn: m,
5033
+ maskInputFn: p,
5034
5034
  dataURLOptions: b,
5035
5035
  inlineImages: d,
5036
5036
  inlineVideos: I,
@@ -5043,7 +5043,7 @@ function it(e, t) {
5043
5043
  if (!te)
5044
5044
  return console.warn(e, "not serialized"), null;
5045
5045
  let f;
5046
- s.hasNode(e) ? f = s.getId(e) : Hh(te, p) || !ee && te.type === le.Text && !te.textContent.replace(/^\s+|\s+$/gm, "").length ? f = Ft : f = vl();
5046
+ s.hasNode(e) ? f = s.getId(e) : Hh(te, m) || !ee && te.type === le.Text && !te.textContent.replace(/^\s+|\s+$/gm, "").length ? f = Ft : f = vl();
5047
5047
  const y = Object.assign(te, { id: f });
5048
5048
  if (s.add(e, y), f === Ft)
5049
5049
  return null;
@@ -5059,7 +5059,7 @@ function it(e, t) {
5059
5059
  $ && xt($) && (y.isShadowHost = !0);
5060
5060
  }
5061
5061
  if ((y.type === le.Document || y.type === le.Element) && T) {
5062
- p.headWhitespace && y.type === le.Element && y.tagName === "head" && (ee = !1);
5062
+ m.headWhitespace && y.type === le.Element && y.tagName === "head" && (ee = !1);
5063
5063
  const $ = {
5064
5064
  doc: i,
5065
5065
  mirror: s,
@@ -5072,8 +5072,8 @@ function it(e, t) {
5072
5072
  inlineStylesheet: c,
5073
5073
  maskInputOptions: u,
5074
5074
  maskTextFn: h,
5075
- maskInputFn: m,
5076
- slimDOMOptions: p,
5075
+ maskInputFn: p,
5076
+ slimDOMOptions: m,
5077
5077
  dataURLOptions: b,
5078
5078
  inlineImages: d,
5079
5079
  inlineVideos: I,
@@ -5120,8 +5120,8 @@ function it(e, t) {
5120
5120
  inlineStylesheet: c,
5121
5121
  maskInputOptions: u,
5122
5122
  maskTextFn: h,
5123
- maskInputFn: m,
5124
- slimDOMOptions: p,
5123
+ maskInputFn: p,
5124
+ slimDOMOptions: m,
5125
5125
  dataURLOptions: b,
5126
5126
  inlineImages: d,
5127
5127
  inlineVideos: I,
@@ -5158,8 +5158,8 @@ function it(e, t) {
5158
5158
  inlineStylesheet: c,
5159
5159
  maskInputOptions: u,
5160
5160
  maskTextFn: h,
5161
- maskInputFn: m,
5162
- slimDOMOptions: p,
5161
+ maskInputFn: p,
5162
+ slimDOMOptions: m,
5163
5163
  dataURLOptions: b,
5164
5164
  inlineImages: d,
5165
5165
  inlineVideos: I,
@@ -5194,8 +5194,8 @@ function zh(e, t) {
5194
5194
  inlineVideos: c = !1,
5195
5195
  recordCanvas: u = !1,
5196
5196
  maskAllInputs: h = !1,
5197
- maskTextFn: m,
5198
- maskInputFn: p,
5197
+ maskTextFn: p,
5198
+ maskInputFn: m,
5199
5199
  slimDOM: b = !1,
5200
5200
  dataURLOptions: d,
5201
5201
  preserveWhiteSpace: I,
@@ -5236,8 +5236,8 @@ function zh(e, t) {
5236
5236
  } : h === !1 ? {
5237
5237
  password: !0
5238
5238
  } : h,
5239
- maskTextFn: m,
5240
- maskInputFn: p,
5239
+ maskTextFn: p,
5240
+ maskInputFn: m,
5241
5241
  slimDOMOptions: b || b === "all" ? (
5242
5242
  // if true: set of sensible options that should not throw away any information
5243
5243
  {
@@ -5311,26 +5311,26 @@ let zr = Bh, Pr = Ce, un = class Ll extends Error {
5311
5311
  t == null && (t = zr.isColorSupported);
5312
5312
  let s = (u) => u, n = (u) => u, r = (u) => u;
5313
5313
  if (t) {
5314
- let { bold: u, gray: h, red: m } = zr.createColors(!0);
5315
- n = (p) => u(m(p)), s = (p) => h(p), Pr && (r = (p) => Pr(p));
5314
+ let { bold: u, gray: h, red: p } = zr.createColors(!0);
5315
+ n = (m) => u(p(m)), s = (m) => h(m), Pr && (r = (m) => Pr(m));
5316
5316
  }
5317
5317
  let l = i.split(/\r?\n/), o = Math.max(this.line - 3, 0), a = Math.min(this.line + 2, l.length), c = String(a).length;
5318
5318
  return l.slice(o, a).map((u, h) => {
5319
- let m = o + 1 + h, p = " " + (" " + m).slice(-c) + " | ";
5320
- if (m === this.line) {
5319
+ let p = o + 1 + h, m = " " + (" " + p).slice(-c) + " | ";
5320
+ if (p === this.line) {
5321
5321
  if (u.length > 160) {
5322
5322
  let d = 20, I = Math.max(0, this.column - d), Z = Math.max(
5323
5323
  this.column + d,
5324
5324
  this.endColumn + d
5325
- ), X = u.slice(I, Z), R = s(p.replace(/\d/g, " ")) + u.slice(0, Math.min(this.column - 1, d - 1)).replace(/[^\t]/g, " ");
5326
- return n(">") + s(p) + r(X) + `
5325
+ ), X = u.slice(I, Z), R = s(m.replace(/\d/g, " ")) + u.slice(0, Math.min(this.column - 1, d - 1)).replace(/[^\t]/g, " ");
5326
+ return n(">") + s(m) + r(X) + `
5327
5327
  ` + R + n("^");
5328
5328
  }
5329
- let b = s(p.replace(/\d/g, " ")) + u.slice(0, this.column - 1).replace(/[^\t]/g, " ");
5330
- return n(">") + s(p) + r(u) + `
5329
+ let b = s(m.replace(/\d/g, " ")) + u.slice(0, this.column - 1).replace(/[^\t]/g, " ");
5330
+ return n(">") + s(m) + r(u) + `
5331
5331
  ` + b + n("^");
5332
5332
  }
5333
- return " " + s(p) + r(u);
5333
+ return " " + s(m) + r(u);
5334
5334
  }).join(`
5335
5335
  `);
5336
5336
  }
@@ -6512,7 +6512,7 @@ let { dirname: Ji, relative: ta, resolve: ia, sep: sa } = Ce, { SourceMapConsume
6512
6512
  var ra = wp;
6513
6513
  const Fs = 39, qr = 34, ci = 92, eo = 47, ui = 10, It = 32, di = 12, hi = 9, pi = 13, vp = 91, xp = 93, Tp = 40, Np = 41, Jp = 123, Lp = 125, Yp = 59, Up = 42, Fp = 58, Kp = 64, mi = /[\t\n\f\r "#'()/;[\\\]{}]/g, bi = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Op = /.[\r\n"'(/\\]/, to = /[\da-f]/i;
6514
6514
  var Mp = function(e, t = {}) {
6515
- let i = e.css.valueOf(), s = t.ignoreErrors, n, r, l, o, a, c, u, h, m, p, b = i.length, d = 0, I = [], Z = [];
6515
+ let i = e.css.valueOf(), s = t.ignoreErrors, n, r, l, o, a, c, u, h, p, m, b = i.length, d = 0, I = [], Z = [];
6516
6516
  function X() {
6517
6517
  return d;
6518
6518
  }
@@ -6551,7 +6551,7 @@ var Mp = function(e, t = {}) {
6551
6551
  break;
6552
6552
  }
6553
6553
  case Tp: {
6554
- if (p = I.length ? I.pop()[1] : "", m = i.charCodeAt(d + 1), p === "url" && m !== Fs && m !== qr && m !== It && m !== ui && m !== hi && m !== di && m !== pi) {
6554
+ if (m = I.length ? I.pop()[1] : "", p = i.charCodeAt(d + 1), m === "url" && p !== Fs && p !== qr && p !== It && p !== ui && p !== hi && p !== di && p !== pi) {
6555
6555
  o = d;
6556
6556
  do {
6557
6557
  if (u = !1, o = i.indexOf(")", o + 1), o === -1)
@@ -6855,7 +6855,7 @@ let jp = class {
6855
6855
  for (let h = 0; h < l; h += 1)
6856
6856
  n = i[h], r = n[0], r === "space" && h === l - 1 && !s ? a = !1 : r === "comment" ? (u = i[h - 1] ? i[h - 1][0] : "empty", c = i[h + 1] ? i[h + 1][0] : "empty", !so[u] && !so[c] ? o.slice(-1) === "," ? a = !1 : o += n[1] : a = !1) : o += n[1];
6857
6857
  if (!a) {
6858
- let h = i.reduce((m, p) => m + p[1], "");
6858
+ let h = i.reduce((p, m) => p + m[1], "");
6859
6859
  e.raws[t] = { raw: h, value: o };
6860
6860
  }
6861
6861
  e[t] = o;
@@ -7525,26 +7525,26 @@ let lo = Ym, ao = Re, Wn = class ga extends Error {
7525
7525
  t == null && (t = lo.isColorSupported);
7526
7526
  let s = (u) => u, n = (u) => u, r = (u) => u;
7527
7527
  if (t) {
7528
- let { bold: u, gray: h, red: m } = lo.createColors(!0);
7529
- n = (p) => u(m(p)), s = (p) => h(p), ao && (r = (p) => ao(p));
7528
+ let { bold: u, gray: h, red: p } = lo.createColors(!0);
7529
+ n = (m) => u(p(m)), s = (m) => h(m), ao && (r = (m) => ao(m));
7530
7530
  }
7531
7531
  let l = i.split(/\r?\n/), o = Math.max(this.line - 3, 0), a = Math.min(this.line + 2, l.length), c = String(a).length;
7532
7532
  return l.slice(o, a).map((u, h) => {
7533
- let m = o + 1 + h, p = " " + (" " + m).slice(-c) + " | ";
7534
- if (m === this.line) {
7533
+ let p = o + 1 + h, m = " " + (" " + p).slice(-c) + " | ";
7534
+ if (p === this.line) {
7535
7535
  if (u.length > 160) {
7536
7536
  let d = 20, I = Math.max(0, this.column - d), Z = Math.max(
7537
7537
  this.column + d,
7538
7538
  this.endColumn + d
7539
- ), X = u.slice(I, Z), R = s(p.replace(/\d/g, " ")) + u.slice(0, Math.min(this.column - 1, d - 1)).replace(/[^\t]/g, " ");
7540
- return n(">") + s(p) + r(X) + `
7539
+ ), X = u.slice(I, Z), R = s(m.replace(/\d/g, " ")) + u.slice(0, Math.min(this.column - 1, d - 1)).replace(/[^\t]/g, " ");
7540
+ return n(">") + s(m) + r(X) + `
7541
7541
  ` + R + n("^");
7542
7542
  }
7543
- let b = s(p.replace(/\d/g, " ")) + u.slice(0, this.column - 1).replace(/[^\t]/g, " ");
7544
- return n(">") + s(p) + r(u) + `
7543
+ let b = s(m.replace(/\d/g, " ")) + u.slice(0, this.column - 1).replace(/[^\t]/g, " ");
7544
+ return n(">") + s(m) + r(u) + `
7545
7545
  ` + b + n("^");
7546
7546
  }
7547
- return " " + s(p) + r(u);
7547
+ return " " + s(m) + r(u);
7548
7548
  }).join(`
7549
7549
  `);
7550
7550
  }
@@ -8726,7 +8726,7 @@ let { dirname: Yi, relative: Fa, resolve: Ka, sep: Oa } = Re, { SourceMapConsume
8726
8726
  var Ea = Zb;
8727
8727
  const Es = 39, yo = 34, yi = 92, go = 47, gi = 10, Xt = 32, Zi = 12, Ii = 9, Si = 13, Ib = 91, Sb = 93, Gb = 40, Vb = 41, Xb = 123, Wb = 125, Cb = 59, Rb = 42, kb = 58, wb = 64, Gi = /[\t\n\f\r "#'()/;[\\\]{}]/g, Vi = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, vb = /.[\r\n"'(/\\]/, Zo = /[\da-f]/i;
8728
8728
  var xb = function(e, t = {}) {
8729
- let i = e.css.valueOf(), s = t.ignoreErrors, n, r, l, o, a, c, u, h, m, p, b = i.length, d = 0, I = [], Z = [];
8729
+ let i = e.css.valueOf(), s = t.ignoreErrors, n, r, l, o, a, c, u, h, p, m, b = i.length, d = 0, I = [], Z = [];
8730
8730
  function X() {
8731
8731
  return d;
8732
8732
  }
@@ -8765,7 +8765,7 @@ var xb = function(e, t = {}) {
8765
8765
  break;
8766
8766
  }
8767
8767
  case Gb: {
8768
- if (p = I.length ? I.pop()[1] : "", m = i.charCodeAt(d + 1), p === "url" && m !== Es && m !== yo && m !== Xt && m !== gi && m !== Ii && m !== Zi && m !== Si) {
8768
+ if (m = I.length ? I.pop()[1] : "", p = i.charCodeAt(d + 1), m === "url" && p !== Es && p !== yo && p !== Xt && p !== gi && p !== Ii && p !== Zi && p !== Si) {
8769
8769
  o = d;
8770
8770
  do {
8771
8771
  if (u = !1, o = i.indexOf(")", o + 1), o === -1)
@@ -9069,7 +9069,7 @@ let Fb = class {
9069
9069
  for (let h = 0; h < l; h += 1)
9070
9070
  n = i[h], r = n[0], r === "space" && h === l - 1 && !s ? a = !1 : r === "comment" ? (u = i[h - 1] ? i[h - 1][0] : "empty", c = i[h + 1] ? i[h + 1][0] : "empty", !So[u] && !So[c] ? o.slice(-1) === "," ? a = !1 : o += n[1] : a = !1) : o += n[1];
9071
9071
  if (!a) {
9072
- let h = i.reduce((m, p) => m + p[1], "");
9072
+ let h = i.reduce((p, m) => p + m[1], "");
9073
9073
  e.raws[t] = { raw: h, value: o };
9074
9074
  }
9075
9075
  e[t] = o;
@@ -10113,10 +10113,10 @@ class Hf {
10113
10113
  return;
10114
10114
  b === "STYLE" && this.addedSet.has(c) && (u = !0);
10115
10115
  }
10116
- const h = vt(c) ? this.mirror.getId(cc(a)) : this.mirror.getId(c), m = n(a);
10117
- if (h === -1 || m === -1)
10116
+ const h = vt(c) ? this.mirror.getId(cc(a)) : this.mirror.getId(c), p = n(a);
10117
+ if (h === -1 || p === -1)
10118
10118
  return s.addNode(a);
10119
- const p = it(a, {
10119
+ const m = it(a, {
10120
10120
  doc: this.doc,
10121
10121
  mirror: this.mirror,
10122
10122
  blockClass: this.blockClass,
@@ -10148,11 +10148,11 @@ class Hf {
10148
10148
  },
10149
10149
  cssCaptured: u
10150
10150
  });
10151
- p && (t.push({
10151
+ m && (t.push({
10152
10152
  parentId: h,
10153
- nextId: m,
10154
- node: p
10155
- }), i.add(p.id));
10153
+ nextId: p,
10154
+ node: m
10155
+ }), i.add(m.id));
10156
10156
  };
10157
10157
  for (; this.mapRemoves.length; )
10158
10158
  this.mirror.removeNodeFromMap(this.mapRemoves.shift());
@@ -10178,9 +10178,9 @@ class Hf {
10178
10178
  a = u;
10179
10179
  break;
10180
10180
  } else {
10181
- const m = u.value, p = E.parentNode(m);
10182
- if (p && p.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
10183
- const b = E.host(p);
10181
+ const p = u.value, m = E.parentNode(p);
10182
+ if (m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
10183
+ const b = E.host(m);
10184
10184
  if (this.mirror.getId(b) !== -1) {
10185
10185
  a = u;
10186
10186
  break;
@@ -10200,13 +10200,13 @@ class Hf {
10200
10200
  const o = {
10201
10201
  texts: this.texts.map((a) => {
10202
10202
  var c, u;
10203
- const h = a.node, m = E.parentNode(h);
10204
- m && m.tagName === "TEXTAREA" && this.genTextAreaValueMutation(m);
10205
- let p = a.value;
10206
- const b = this.privacySetting === "strict", d = this.privacySetting === "default" && kl(p), I = (u = (c = a.node) == null ? void 0 : c.parentElement) == null ? void 0 : u.getAttribute("data-hl-record");
10207
- return (b || d) && !I && p && (p = Dn(p)), {
10203
+ const h = a.node, p = E.parentNode(h);
10204
+ p && p.tagName === "TEXTAREA" && this.genTextAreaValueMutation(p);
10205
+ let m = a.value;
10206
+ const b = this.privacySetting === "strict", d = this.privacySetting === "default" && kl(m), I = (u = (c = a.node) == null ? void 0 : c.parentElement) == null ? void 0 : u.getAttribute("data-hl-record");
10207
+ return (b || d) && !I && m && (m = Dn(m)), {
10208
10208
  id: this.mirror.getId(h),
10209
- value: p
10209
+ value: m
10210
10210
  };
10211
10211
  }).filter((a) => !i.has(a.id)).filter((a) => this.mirror.has(a.id)),
10212
10212
  attributes: this.attributes.map((a) => {
@@ -10485,9 +10485,9 @@ function jf({
10485
10485
  const a = Dt(
10486
10486
  z(
10487
10487
  (h) => {
10488
- const m = Date.now() - o;
10488
+ const p = Date.now() - o;
10489
10489
  e(
10490
- l.map((p) => (p.timeOffset -= m, p)),
10490
+ l.map((m) => (m.timeOffset -= p, m)),
10491
10491
  h
10492
10492
  ), l = [], o = null;
10493
10493
  }
@@ -10496,11 +10496,11 @@ function jf({
10496
10496
  ), c = z(
10497
10497
  Dt(
10498
10498
  z((h) => {
10499
- const m = qt(h), { clientX: p, clientY: b } = On(h) ? h.changedTouches[0] : h;
10499
+ const p = qt(h), { clientX: m, clientY: b } = On(h) ? h.changedTouches[0] : h;
10500
10500
  o || (o = os()), l.push({
10501
- x: p,
10501
+ x: m,
10502
10502
  y: b,
10503
- id: s.getId(m),
10503
+ id: s.getId(p),
10504
10504
  timeOffset: os() - o
10505
10505
  }), a(
10506
10506
  typeof DragEvent < "u" && h instanceof DragEvent ? H.Drag : h instanceof MouseEvent ? H.MouseMove : H.TouchMove
@@ -10534,42 +10534,42 @@ function Qf({
10534
10534
  const l = r.mouseInteraction === !0 || r.mouseInteraction === void 0 ? {} : r.mouseInteraction, o = [];
10535
10535
  let a = null;
10536
10536
  const c = (u) => (h) => {
10537
- const m = qt(h);
10538
- if (ue(m, s, n, !0) || // We ignore canvas elements for rage click detection because we cannot infer what inside the canvas is getting interacted with.
10539
- Yf(m))
10537
+ const p = qt(h);
10538
+ if (ue(p, s, n, !0) || // We ignore canvas elements for rage click detection because we cannot infer what inside the canvas is getting interacted with.
10539
+ Yf(p))
10540
10540
  return;
10541
- let p = null, b = u;
10541
+ let m = null, b = u;
10542
10542
  if ("pointerType" in h) {
10543
10543
  switch (h.pointerType) {
10544
10544
  case "mouse":
10545
- p = Ke.Mouse;
10545
+ m = Ke.Mouse;
10546
10546
  break;
10547
10547
  case "touch":
10548
- p = Ke.Touch;
10548
+ m = Ke.Touch;
10549
10549
  break;
10550
10550
  case "pen":
10551
- p = Ke.Pen;
10551
+ m = Ke.Pen;
10552
10552
  break;
10553
10553
  }
10554
- p === Ke.Touch && (be[u] === be.MouseDown ? b = "TouchStart" : be[u] === be.MouseUp && (b = "TouchEnd"));
10555
- } else On(h) && (p = Ke.Touch);
10556
- p !== null ? (a = p, (b.startsWith("Touch") && p === Ke.Touch || b.startsWith("Mouse") && p === Ke.Mouse) && (p = null)) : be[u] === be.Click && (p = a, a = null);
10554
+ m === Ke.Touch && (be[u] === be.MouseDown ? b = "TouchStart" : be[u] === be.MouseUp && (b = "TouchEnd"));
10555
+ } else On(h) && (m = Ke.Touch);
10556
+ m !== null ? (a = m, (b.startsWith("Touch") && m === Ke.Touch || b.startsWith("Mouse") && m === Ke.Mouse) && (m = null)) : be[u] === be.Click && (m = a, a = null);
10557
10557
  const d = On(h) ? h.changedTouches[0] : h;
10558
10558
  if (!d)
10559
10559
  return;
10560
- const I = i.getId(m), { clientX: Z, clientY: X } = d;
10560
+ const I = i.getId(p), { clientX: Z, clientY: X } = d;
10561
10561
  z(e)(F({
10562
10562
  type: be[b],
10563
10563
  id: I,
10564
10564
  x: Z,
10565
10565
  y: X
10566
- }, p !== null && { pointerType: p }));
10566
+ }, m !== null && { pointerType: m }));
10567
10567
  };
10568
10568
  return Object.keys(be).filter(
10569
10569
  (u) => Number.isNaN(Number(u)) && !u.endsWith("_Departed") && l[u] !== !1
10570
10570
  ).forEach((u) => {
10571
10571
  let h = lt(u);
10572
- const m = c(u);
10572
+ const p = c(u);
10573
10573
  if (window.PointerEvent)
10574
10574
  switch (be[u]) {
10575
10575
  case be.MouseDown:
@@ -10583,7 +10583,7 @@ function Qf({
10583
10583
  case be.TouchEnd:
10584
10584
  return;
10585
10585
  }
10586
- o.push(pe(h, m, t));
10586
+ o.push(pe(h, p, t));
10587
10587
  }), z(() => {
10588
10588
  o.forEach((u) => u());
10589
10589
  });
@@ -10672,7 +10672,7 @@ function $f({
10672
10672
  value: G,
10673
10673
  overwriteRecord: K,
10674
10674
  maskInputFn: a
10675
- })), m(
10675
+ })), p(
10676
10676
  X,
10677
10677
  u ? { text: G, isChecked: w, userTriggered: R } : { text: G, isChecked: w }
10678
10678
  );
@@ -10680,14 +10680,14 @@ function $f({
10680
10680
  v === "radio" && V && w && t.querySelectorAll(`input[type="radio"][name="${V}"]`).forEach((k) => {
10681
10681
  if (k !== X) {
10682
10682
  const Y = k.value;
10683
- m(
10683
+ p(
10684
10684
  k,
10685
10685
  u ? { text: Y, isChecked: !w, userTriggered: !1 } : { text: Y, isChecked: !w }
10686
10686
  );
10687
10687
  }
10688
10688
  });
10689
10689
  }
10690
- function m(Z, X) {
10690
+ function p(Z, X) {
10691
10691
  const R = To.get(Z);
10692
10692
  if (!R || R.text !== X.text || R.isChecked !== X.isChecked) {
10693
10693
  To.set(Z, X);
@@ -10697,12 +10697,12 @@ function $f({
10697
10697
  }));
10698
10698
  }
10699
10699
  }
10700
- const p = (c.input === "last" ? ["change"] : ["input", "change"]).map(
10700
+ const m = (c.input === "last" ? ["change"] : ["input", "change"]).map(
10701
10701
  (Z) => pe(Z, z(h), t)
10702
10702
  ), b = t.defaultView;
10703
10703
  if (!b)
10704
10704
  return () => {
10705
- p.forEach((Z) => Z());
10705
+ m.forEach((Z) => Z());
10706
10706
  };
10707
10707
  const d = b.Object.getOwnPropertyDescriptor(
10708
10708
  b.HTMLInputElement.prototype,
@@ -10716,7 +10716,7 @@ function $f({
10716
10716
  [b.HTMLSelectElement.prototype, "selectedIndex"],
10717
10717
  [b.HTMLOptionElement.prototype, "selected"]
10718
10718
  ];
10719
- return d && d.set && p.push(
10719
+ return d && d.set && m.push(
10720
10720
  ...I.map(
10721
10721
  (Z) => Gs(
10722
10722
  Z[0],
@@ -10735,7 +10735,7 @@ function $f({
10735
10735
  )
10736
10736
  )
10737
10737
  ), z(() => {
10738
- p.forEach((Z) => Z());
10738
+ m.forEach((Z) => Z());
10739
10739
  });
10740
10740
  }
10741
10741
  function ls(e) {
@@ -10768,8 +10768,8 @@ function qf({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: s }
10768
10768
  const n = s.CSSStyleSheet.prototype.insertRule;
10769
10769
  s.CSSStyleSheet.prototype.insertRule = new Proxy(n, {
10770
10770
  apply: z(
10771
- (u, h, m) => {
10772
- const [p, b] = m, { id: d, styleId: I } = Oe(
10771
+ (u, h, p) => {
10772
+ const [m, b] = p, { id: d, styleId: I } = Oe(
10773
10773
  h,
10774
10774
  t,
10775
10775
  i.styleMirror
@@ -10777,19 +10777,19 @@ function qf({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: s }
10777
10777
  return (d && d !== -1 || I && I !== -1) && e({
10778
10778
  id: d,
10779
10779
  styleId: I,
10780
- adds: [{ rule: p, index: b }]
10781
- }), u.apply(h, m);
10780
+ adds: [{ rule: m, index: b }]
10781
+ }), u.apply(h, p);
10782
10782
  }
10783
10783
  )
10784
- }), s.CSSStyleSheet.prototype.addRule = function(u, h, m = this.cssRules.length) {
10785
- const p = `${u} { ${h} }`;
10786
- return s.CSSStyleSheet.prototype.insertRule.apply(this, [p, m]);
10784
+ }), s.CSSStyleSheet.prototype.addRule = function(u, h, p = this.cssRules.length) {
10785
+ const m = `${u} { ${h} }`;
10786
+ return s.CSSStyleSheet.prototype.insertRule.apply(this, [m, p]);
10787
10787
  };
10788
10788
  const r = s.CSSStyleSheet.prototype.deleteRule;
10789
10789
  s.CSSStyleSheet.prototype.deleteRule = new Proxy(r, {
10790
10790
  apply: z(
10791
- (u, h, m) => {
10792
- const [p] = m, { id: b, styleId: d } = Oe(
10791
+ (u, h, p) => {
10792
+ const [m] = p, { id: b, styleId: d } = Oe(
10793
10793
  h,
10794
10794
  t,
10795
10795
  i.styleMirror
@@ -10797,8 +10797,8 @@ function qf({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: s }
10797
10797
  return (b && b !== -1 || d && d !== -1) && e({
10798
10798
  id: b,
10799
10799
  styleId: d,
10800
- removes: [{ index: p }]
10801
- }), u.apply(h, m);
10800
+ removes: [{ index: m }]
10801
+ }), u.apply(h, p);
10802
10802
  }
10803
10803
  )
10804
10804
  }), s.CSSStyleSheet.prototype.removeRule = function(u) {
@@ -10807,8 +10807,8 @@ function qf({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: s }
10807
10807
  let l;
10808
10808
  s.CSSStyleSheet.prototype.replace && (l = s.CSSStyleSheet.prototype.replace, s.CSSStyleSheet.prototype.replace = new Proxy(l, {
10809
10809
  apply: z(
10810
- (u, h, m) => {
10811
- const [p] = m, { id: b, styleId: d } = Oe(
10810
+ (u, h, p) => {
10811
+ const [m] = p, { id: b, styleId: d } = Oe(
10812
10812
  h,
10813
10813
  t,
10814
10814
  i.styleMirror
@@ -10816,16 +10816,16 @@ function qf({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: s }
10816
10816
  return (b && b !== -1 || d && d !== -1) && e({
10817
10817
  id: b,
10818
10818
  styleId: d,
10819
- replace: p
10820
- }), u.apply(h, m);
10819
+ replace: m
10820
+ }), u.apply(h, p);
10821
10821
  }
10822
10822
  )
10823
10823
  }));
10824
10824
  let o;
10825
10825
  s.CSSStyleSheet.prototype.replaceSync && (o = s.CSSStyleSheet.prototype.replaceSync, s.CSSStyleSheet.prototype.replaceSync = new Proxy(o, {
10826
10826
  apply: z(
10827
- (u, h, m) => {
10828
- const [p] = m, { id: b, styleId: d } = Oe(
10827
+ (u, h, p) => {
10828
+ const [m] = p, { id: b, styleId: d } = Oe(
10829
10829
  h,
10830
10830
  t,
10831
10831
  i.styleMirror
@@ -10833,8 +10833,8 @@ function qf({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: s }
10833
10833
  return (b && b !== -1 || d && d !== -1) && e({
10834
10834
  id: b,
10835
10835
  styleId: d,
10836
- replaceSync: p
10837
- }), u.apply(h, m);
10836
+ replaceSync: m
10837
+ }), u.apply(h, p);
10838
10838
  }
10839
10839
  )
10840
10840
  }));
@@ -10851,9 +10851,9 @@ function qf({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: s }
10851
10851
  c[u].insertRule,
10852
10852
  {
10853
10853
  apply: z(
10854
- (m, p, b) => {
10854
+ (p, m, b) => {
10855
10855
  const [d, I] = b, { id: Z, styleId: X } = Oe(
10856
- p.parentStyleSheet,
10856
+ m.parentStyleSheet,
10857
10857
  t,
10858
10858
  i.styleMirror
10859
10859
  );
@@ -10864,13 +10864,13 @@ function qf({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: s }
10864
10864
  {
10865
10865
  rule: d,
10866
10866
  index: [
10867
- ...ls(p),
10867
+ ...ls(m),
10868
10868
  I || 0
10869
10869
  // defaults to 0
10870
10870
  ]
10871
10871
  }
10872
10872
  ]
10873
- }), m.apply(p, b);
10873
+ }), p.apply(m, b);
10874
10874
  }
10875
10875
  )
10876
10876
  }
@@ -10878,9 +10878,9 @@ function qf({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: s }
10878
10878
  c[u].deleteRule,
10879
10879
  {
10880
10880
  apply: z(
10881
- (m, p, b) => {
10881
+ (p, m, b) => {
10882
10882
  const [d] = b, { id: I, styleId: Z } = Oe(
10883
- p.parentStyleSheet,
10883
+ m.parentStyleSheet,
10884
10884
  t,
10885
10885
  i.styleMirror
10886
10886
  );
@@ -10888,9 +10888,9 @@ function qf({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: s }
10888
10888
  id: I,
10889
10889
  styleId: Z,
10890
10890
  removes: [
10891
- { index: [...ls(p), d] }
10891
+ { index: [...ls(m), d] }
10892
10892
  ]
10893
- }), m.apply(p, b);
10893
+ }), p.apply(m, b);
10894
10894
  }
10895
10895
  )
10896
10896
  }
@@ -10952,9 +10952,9 @@ function ey({
10952
10952
  apply: z(
10953
10953
  (o, a, c) => {
10954
10954
  var u;
10955
- const [h, m, p] = c;
10955
+ const [h, p, m] = c;
10956
10956
  if (i.has(h))
10957
- return r.apply(a, [h, m, p]);
10957
+ return r.apply(a, [h, p, m]);
10958
10958
  const { id: b, styleId: d } = Oe(
10959
10959
  (u = a.parentRule) == null ? void 0 : u.parentStyleSheet,
10960
10960
  t,
@@ -10965,8 +10965,8 @@ function ey({
10965
10965
  styleId: d,
10966
10966
  set: {
10967
10967
  property: h,
10968
- value: m,
10969
- priority: p
10968
+ value: p,
10969
+ priority: m
10970
10970
  },
10971
10971
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10972
10972
  index: ls(a.parentRule)
@@ -10982,14 +10982,14 @@ function ey({
10982
10982
  const [h] = c;
10983
10983
  if (i.has(h))
10984
10984
  return l.apply(a, [h]);
10985
- const { id: m, styleId: p } = Oe(
10985
+ const { id: p, styleId: m } = Oe(
10986
10986
  (u = a.parentRule) == null ? void 0 : u.parentStyleSheet,
10987
10987
  t,
10988
10988
  s.styleMirror
10989
10989
  );
10990
- return (m && m !== -1 || p && p !== -1) && e({
10991
- id: m,
10992
- styleId: p,
10990
+ return (p && p !== -1 || m && m !== -1) && e({
10991
+ id: p,
10992
+ styleId: m,
10993
10993
  remove: {
10994
10994
  property: h
10995
10995
  },
@@ -11016,13 +11016,13 @@ function ty({
11016
11016
  const u = qt(c);
11017
11017
  if (!u || ue(u, t, i, !0))
11018
11018
  return;
11019
- const { currentTime: h, volume: m, muted: p, playbackRate: b, loop: d } = u;
11019
+ const { currentTime: h, volume: p, muted: m, playbackRate: b, loop: d } = u;
11020
11020
  e({
11021
11021
  type: a,
11022
11022
  id: s.getId(u),
11023
11023
  currentTime: h,
11024
- volume: m,
11025
- muted: p,
11024
+ volume: p,
11025
+ muted: m,
11026
11026
  playbackRate: b,
11027
11027
  loop: d
11028
11028
  });
@@ -11085,9 +11085,9 @@ function sy(e) {
11085
11085
  l = a.isCollapsed || !1;
11086
11086
  const c = [], u = a.rangeCount || 0;
11087
11087
  for (let h = 0; h < u; h++) {
11088
- const m = a.getRangeAt(h), { startContainer: p, startOffset: b, endContainer: d, endOffset: I } = m;
11089
- ue(p, s, n, !0) || ue(d, s, n, !0) || c.push({
11090
- start: i.getId(p),
11088
+ const p = a.getRangeAt(h), { startContainer: m, startOffset: b, endContainer: d, endOffset: I } = p;
11089
+ ue(m, s, n, !0) || ue(d, s, n, !0) || c.push({
11090
+ start: i.getId(m),
11091
11091
  startOffset: b,
11092
11092
  end: i.getId(d),
11093
11093
  endOffset: I
@@ -11134,8 +11134,8 @@ function ry(e, t) {
11134
11134
  styleSheetRuleCb: c,
11135
11135
  styleDeclarationCb: u,
11136
11136
  canvasMutationCb: h,
11137
- fontCb: m,
11138
- selectionCb: p,
11137
+ fontCb: p,
11138
+ selectionCb: m,
11139
11139
  customElementCb: b
11140
11140
  } = e;
11141
11141
  e.mutationCb = (...d) => {
@@ -11159,9 +11159,9 @@ function ry(e, t) {
11159
11159
  }, e.canvasMutationCb = (...d) => {
11160
11160
  t.canvasMutation && t.canvasMutation(...d), h(...d);
11161
11161
  }, e.fontCb = (...d) => {
11162
- t.font && t.font(...d), m(...d);
11162
+ t.font && t.font(...d), p(...d);
11163
11163
  }, e.selectionCb = (...d) => {
11164
- t.selection && t.selection(...d), p(...d);
11164
+ t.selection && t.selection(...d), m(...d);
11165
11165
  }, e.customElementCb = (...d) => {
11166
11166
  t.customElement && t.customElement(...d), b(...d);
11167
11167
  };
@@ -11179,19 +11179,19 @@ function oy(e, t = {}) {
11179
11179
  }), a = $f(e), c = ty(e);
11180
11180
  let u = () => {
11181
11181
  }, h = () => {
11182
- }, m = () => {
11183
11182
  }, p = () => {
11183
+ }, m = () => {
11184
11184
  };
11185
- e.recordDOM && (u = qf(e, { win: i }), h = bc(e, e.doc), m = ey(e, {
11185
+ e.recordDOM && (u = qf(e, { win: i }), h = bc(e, e.doc), p = ey(e, {
11186
11186
  win: i
11187
- }), e.collectFonts && (p = iy(e)));
11187
+ }), e.collectFonts && (m = iy(e)));
11188
11188
  const b = sy(e), d = ny(e), I = [];
11189
11189
  for (const Z of e.plugins)
11190
11190
  I.push(
11191
11191
  Z.observer(Z.callback, i, Z.options)
11192
11192
  );
11193
11193
  return z(() => {
11194
- Be.forEach((Z) => Z.reset()), s?.disconnect(), n(), r(), l(), o(), a(), c(), u(), h(), m(), p(), b(), d(), I.forEach((Z) => Z());
11194
+ Be.forEach((Z) => Z.reset()), s?.disconnect(), n(), r(), l(), o(), a(), c(), u(), h(), p(), m(), b(), d(), I.forEach((Z) => Z());
11195
11195
  });
11196
11196
  }
11197
11197
  function Wi(e) {
@@ -11683,21 +11683,21 @@ function Yo(e, t, i, s, n, r) {
11683
11683
  a,
11684
11684
  function(u) {
11685
11685
  return function(...h) {
11686
- const m = u.apply(this, h);
11687
- if (fc(m, r, this), "tagName" in this.canvas && !ue(
11686
+ const p = u.apply(this, h);
11687
+ if (fc(p, r, this), "tagName" in this.canvas && !ue(
11688
11688
  this.canvas,
11689
11689
  s,
11690
11690
  n,
11691
11691
  !0
11692
11692
  )) {
11693
- const p = yc(h, r, this), b = {
11693
+ const m = yc(h, r, this), b = {
11694
11694
  type: t,
11695
11695
  property: a,
11696
- args: p
11696
+ args: m
11697
11697
  };
11698
11698
  i(this.canvas, b);
11699
11699
  }
11700
- return m;
11700
+ return p;
11701
11701
  };
11702
11702
  }
11703
11703
  );
@@ -11765,8 +11765,8 @@ function fy(e) {
11765
11765
  }
11766
11766
  class yy {
11767
11767
  constructor(t) {
11768
- S(this, "pendingCanvasMutations", /* @__PURE__ */ new Map()), S(this, "rafStamps", { latestId: 0, invokeId: null }), S(this, "mirror"), S(this, "logger"), S(this, "worker"), S(this, "snapshotInProgressMap", /* @__PURE__ */ new Map()), S(this, "lastSnapshotTime", /* @__PURE__ */ new Map()), S(this, "options"), S(this, "mutationCb"), S(this, "resetObservers"), S(this, "frozen", !1), S(this, "locked", !1), S(this, "processMutation", (h, m) => {
11769
- (this.rafStamps.invokeId && this.rafStamps.latestId !== this.rafStamps.invokeId || !this.rafStamps.invokeId) && (this.rafStamps.invokeId = this.rafStamps.latestId), this.pendingCanvasMutations.has(h) || this.pendingCanvasMutations.set(h, []), this.pendingCanvasMutations.get(h).push(m);
11768
+ S(this, "pendingCanvasMutations", /* @__PURE__ */ new Map()), S(this, "rafStamps", { latestId: 0, invokeId: null }), S(this, "mirror"), S(this, "logger"), S(this, "worker"), S(this, "snapshotInProgressMap", /* @__PURE__ */ new Map()), S(this, "lastSnapshotTime", /* @__PURE__ */ new Map()), S(this, "options"), S(this, "mutationCb"), S(this, "resetObservers"), S(this, "frozen", !1), S(this, "locked", !1), S(this, "processMutation", (h, p) => {
11769
+ (this.rafStamps.invokeId && this.rafStamps.latestId !== this.rafStamps.invokeId || !this.rafStamps.invokeId) && (this.rafStamps.invokeId = this.rafStamps.latestId), this.pendingCanvasMutations.has(h) || this.pendingCanvasMutations.set(h, []), this.pendingCanvasMutations.get(h).push(p);
11770
11770
  });
11771
11771
  const {
11772
11772
  sampling: i,
@@ -11780,17 +11780,17 @@ class yy {
11780
11780
  dataURLOptions: u
11781
11781
  } = t;
11782
11782
  this.mutationCb = t.mutationCb, this.mirror = t.mirror, this.logger = t.logger, this.worker = new fy(), this.worker.onmessage = (h) => {
11783
- const { id: m } = h.data;
11784
- if (this.snapshotInProgressMap.set(m, !1), !("base64" in h.data)) {
11783
+ const { id: p } = h.data;
11784
+ if (this.snapshotInProgressMap.set(p, !1), !("base64" in h.data)) {
11785
11785
  this.debug(null, "canvas worker received empty message", {
11786
- id: m,
11786
+ id: p,
11787
11787
  data: h.data,
11788
11788
  status: h.data.status
11789
11789
  });
11790
11790
  return;
11791
11791
  }
11792
- const { base64: p, type: b, dx: d, dy: I, dw: Z, dh: X } = h.data, R = {
11793
- id: m,
11792
+ const { base64: m, type: b, dx: d, dy: I, dw: Z, dh: X } = h.data, R = {
11793
+ id: p,
11794
11794
  type: mt["2D"],
11795
11795
  commands: [
11796
11796
  {
@@ -11807,7 +11807,7 @@ class yy {
11807
11807
  args: [
11808
11808
  {
11809
11809
  rr_type: "Blob",
11810
- data: [{ rr_type: "ArrayBuffer", base64: p }],
11810
+ data: [{ rr_type: "ArrayBuffer", base64: m }],
11811
11811
  type: b
11812
11812
  }
11813
11813
  ]
@@ -11931,7 +11931,7 @@ class yy {
11931
11931
  l,
11932
11932
  !0
11933
11933
  ), h = 1e3 / s;
11934
- let m = 0, p;
11934
+ let p = 0, m;
11935
11935
  const b = /* @__PURE__ */ new Map(), d = (R, W) => {
11936
11936
  const G = [];
11937
11937
  R.querySelectorAll(W).forEach((K) => G.push(K));
@@ -11959,11 +11959,11 @@ class yy {
11959
11959
  }
11960
11960
  }), W;
11961
11961
  }, X = (R) => fe(this, null, function* () {
11962
- if (m && R - m < h) {
11963
- p = requestAnimationFrame(X);
11962
+ if (p && R - p < h) {
11963
+ m = requestAnimationFrame(X);
11964
11964
  return;
11965
11965
  }
11966
- m = R;
11966
+ p = R;
11967
11967
  const W = (w) => {
11968
11968
  const v = this.mirror.getId(w), K = b.get(v), V = !o.initialSnapshotDelay || R - K > o.initialSnapshotDelay;
11969
11969
  return this.debug(w, {
@@ -12043,10 +12043,10 @@ class yy {
12043
12043
  this.snapshotInProgressMap.set(v, !1);
12044
12044
  }
12045
12045
  }))
12046
- ), yield Promise.all(G).catch(console.error), p = requestAnimationFrame(X);
12046
+ ), yield Promise.all(G).catch(console.error), m = requestAnimationFrame(X);
12047
12047
  });
12048
- p = requestAnimationFrame(X), this.resetObservers = () => {
12049
- u(), p && cancelAnimationFrame(p);
12048
+ m = requestAnimationFrame(X), this.resetObservers = () => {
12049
+ u(), m && cancelAnimationFrame(m);
12050
12050
  };
12051
12051
  }
12052
12052
  initCanvasMutationObserver(t, i, s) {
@@ -12174,8 +12174,8 @@ function Le(e = {}) {
12174
12174
  emit: c,
12175
12175
  checkoutEveryNms: u,
12176
12176
  checkoutEveryNth: h,
12177
- blockClass: m = "highlight-block",
12178
- blockSelector: p = null,
12177
+ blockClass: p = "highlight-block",
12178
+ blockSelector: m = null,
12179
12179
  ignoreClass: b = "highlight-ignore",
12180
12180
  ignoreSelector: d = null,
12181
12181
  maskTextClass: I = "highlight-mask",
@@ -12329,8 +12329,8 @@ function Le(e = {}) {
12329
12329
  recordRemoteVideos: U,
12330
12330
  mutationCb: Ir,
12331
12331
  win: window,
12332
- blockClass: m,
12333
- blockSelector: p,
12332
+ blockClass: p,
12333
+ blockSelector: m,
12334
12334
  mirror: We,
12335
12335
  sampling: (s = k?.canvas) == null ? void 0 : s.fps,
12336
12336
  samplingManual: (n = k?.canvas) == null ? void 0 : n.fpsManual,
@@ -12345,8 +12345,8 @@ function Le(e = {}) {
12345
12345
  mutationCb: ii,
12346
12346
  scrollCb: Zr,
12347
12347
  bypassOptions: {
12348
- blockClass: m,
12349
- blockSelector: p,
12348
+ blockClass: p,
12349
+ blockSelector: m,
12350
12350
  maskTextClass: I,
12351
12351
  maskTextSelector: Z,
12352
12352
  inlineStylesheet: X,
@@ -12384,8 +12384,8 @@ function Le(e = {}) {
12384
12384
  ), He.reset(), si.init(), Be.forEach((se) => se.lock());
12385
12385
  const Ve = zh(document, {
12386
12386
  mirror: We,
12387
- blockClass: m,
12388
- blockSelector: p,
12387
+ blockClass: p,
12388
+ blockSelector: m,
12389
12389
  maskTextClass: I,
12390
12390
  maskTextSelector: Z,
12391
12391
  inlineStylesheet: X,
@@ -12498,7 +12498,7 @@ function Le(e = {}) {
12498
12498
  }, A)
12499
12499
  });
12500
12500
  },
12501
- blockClass: m,
12501
+ blockClass: p,
12502
12502
  ignoreClass: b,
12503
12503
  ignoreSelector: d,
12504
12504
  maskTextClass: I,
@@ -12516,7 +12516,7 @@ function Le(e = {}) {
12516
12516
  maskInputFn: w,
12517
12517
  maskTextFn: v,
12518
12518
  keepIframeSrcFn: ie,
12519
- blockSelector: p,
12519
+ blockSelector: m,
12520
12520
  slimDOMOptions: Xs,
12521
12521
  dataURLOptions: ei,
12522
12522
  mirror: We,
@@ -12981,10 +12981,10 @@ const Oy = ({
12981
12981
  "setPrice",
12982
12982
  "setRevenueType",
12983
12983
  "setEventProperties"
12984
- ], m = 0; m < h.length; m++)
12985
- l(u, h[m]);
12984
+ ], p = 0; p < h.length; p++)
12985
+ l(u, h[p]);
12986
12986
  s.Revenue = u;
12987
- var p = [
12987
+ var m = [
12988
12988
  "init",
12989
12989
  "logEvent",
12990
12990
  "logRevenue",
@@ -13016,8 +13016,8 @@ const Oy = ({
13016
13016
  );
13017
13017
  };
13018
13018
  }
13019
- for (var Z = 0; Z < p.length; Z++)
13020
- I(p[Z]);
13019
+ for (var Z = 0; Z < m.length; Z++)
13020
+ I(m[Z]);
13021
13021
  }
13022
13022
  b(s), s.getInstance = function(d) {
13023
13023
  return d = (!d || d.length === 0 ? "$default_instance" : d).toLowerCase(), Object.prototype.hasOwnProperty.call(s._iq, d) || (s._iq[d] = { _q: [] }, b(s._iq[d])), s._iq[d];
@@ -13032,20 +13032,20 @@ const Oy = ({
13032
13032
  if (!s.__SV) {
13033
13033
  var n, r;
13034
13034
  window.mixpanel = s, s._i = [], s.init = function(l, o, a) {
13035
- function c(m, p) {
13036
- var b = p.split(".");
13037
- b.length == 2 && (m = m[b[0]], p = b[1]), m[p] = function() {
13038
- m.push(
13039
- [p].concat(
13035
+ function c(p, m) {
13036
+ var b = m.split(".");
13037
+ b.length == 2 && (p = p[b[0]], m = b[1]), p[m] = function() {
13038
+ p.push(
13039
+ [m].concat(
13040
13040
  Array.prototype.slice.call(arguments, 0)
13041
13041
  )
13042
13042
  );
13043
13043
  };
13044
13044
  }
13045
13045
  var u = s;
13046
- for (typeof a < "u" ? u = s[a] = [] : a = "mixpanel", u.people = u.people || [], u.toString = function(m) {
13047
- var p = "mixpanel";
13048
- return a !== "mixpanel" && (p += "." + a), m || (p += " (stub)"), p;
13046
+ for (typeof a < "u" ? u = s[a] = [] : a = "mixpanel", u.people = u.people || [], u.toString = function(p) {
13047
+ var m = "mixpanel";
13048
+ return a !== "mixpanel" && (m += "." + a), p || (m += " (stub)"), m;
13049
13049
  }, u.people.toString = function() {
13050
13050
  return u.toString(1) + ".people (stub)";
13051
13051
  }, n = "disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(
@@ -13053,18 +13053,18 @@ const Oy = ({
13053
13053
  ), r = 0; r < n.length; r++) c(u, n[r]);
13054
13054
  var h = "set set_once union unset remove delete".split(" ");
13055
13055
  u.get_group = function() {
13056
- function m(I) {
13057
- p[I] = function() {
13056
+ function p(I) {
13057
+ m[I] = function() {
13058
13058
  call2_args = arguments, call2 = [I].concat(
13059
13059
  Array.prototype.slice.call(call2_args, 0)
13060
13060
  ), u.push([b, call2]);
13061
13061
  };
13062
13062
  }
13063
- for (var p = {}, b = ["get_group"].concat(
13063
+ for (var m = {}, b = ["get_group"].concat(
13064
13064
  Array.prototype.slice.call(arguments, 0)
13065
13065
  ), d = 0; d < h.length; d++)
13066
- m(h[d]);
13067
- return p;
13066
+ p(h[d]);
13067
+ return m;
13068
13068
  }, s._i.push([l, o, a]);
13069
13069
  }, s.__SV = 1.2;
13070
13070
  }
@@ -13151,8 +13151,8 @@ class Hy {
13151
13151
  });
13152
13152
  this.graphqlSDK = _u(h, Sd()), this.environment = (c = t.environment) != null ? c : "production", this.appVersion = t.appVersion, this.serviceName = (u = t.serviceName) != null ? u : "browser", typeof t.organizationID == "string" ? this.organizationID = t.organizationID : this.organizationID = t.organizationID.toString(), this.isRunningOnHighlight = this.organizationID === "1" || this.organizationID === "1jdkoe52", this.firstloadVersion = t.firstloadVersion || "unknown", this.sessionShortcut = t.sessionShortcut || !1, this._onToggleFeedbackFormVisibility = () => {
13153
13153
  };
13154
- const m = t, p = ot(m, ["firstloadVersion"]);
13155
- this._optionsInternal = p, this.listeners = [], this.events = [], this.hasSessionUnloaded = !1, this.hasPushedData = !1, window.Intercom && window.Intercom("onShow", () => {
13154
+ const p = t, m = ot(p, ["firstloadVersion"]);
13155
+ this._optionsInternal = m, this.listeners = [], this.events = [], this.hasSessionUnloaded = !1, this.hasPushedData = !1, window.Intercom && window.Intercom("onShow", () => {
13156
13156
  window.Intercom("update", {
13157
13157
  highlightSessionURL: this.getCurrentSessionURLWithTimestamp()
13158
13158
  }), this.addProperties({ event: "Intercom onShow" });
@@ -13218,8 +13218,8 @@ class Hy {
13218
13218
  u || (u = on(), Je(sn.CLIENT_ID, u));
13219
13219
  let h;
13220
13220
  this.options.disableSessionRecording || this.options.disableNetworkRecording !== void 0 || typeof this.options.networkRecording == "boolean" ? h = !1 : h = ((o = this.options.networkRecording) == null ? void 0 : o.recordHeadersAndBody) || !1;
13221
- let m = [];
13222
- if (typeof this.options.networkRecording == "object" && (a = this.options.networkRecording.destinationDomains) != null && a.length && (m = this.options.networkRecording.destinationDomains), this._isCrossOriginIframe)
13221
+ let p = [];
13222
+ if (typeof this.options.networkRecording == "object" && (a = this.options.networkRecording.destinationDomains) != null && a.length && (p = this.options.networkRecording.destinationDomains), this._isCrossOriginIframe)
13223
13223
  yield this._setupCrossOriginIframe();
13224
13224
  else {
13225
13225
  const Z = yield this.graphqlSDK.initializeSession({
@@ -13236,7 +13236,7 @@ class Hy {
13236
13236
  serviceName: this.serviceName,
13237
13237
  session_secure_id: this.sessionData.sessionSecureID,
13238
13238
  client_id: u,
13239
- network_recording_domains: m,
13239
+ network_recording_domains: p,
13240
13240
  disable_session_recording: this.options.disableSessionRecording
13241
13241
  });
13242
13242
  if (Z.initializeSession.secure_id !== this.sessionData.sessionSecureID && this.logger.log(
@@ -13278,10 +13278,10 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
13278
13278
  ), this.ready = !0, this.state = "Recording", this.manualStopped = !1;
13279
13279
  return;
13280
13280
  }
13281
- const p = (Z, X) => {
13281
+ const m = (Z, X) => {
13282
13282
  X && this.logger.log("received isCheckout emit", { event: Z }), this.events.push(Z);
13283
13283
  };
13284
- p.bind(this);
13284
+ m.bind(this);
13285
13285
  const b = !!this._recordStop;
13286
13286
  this._recordStop && (this._recordStop(), this._recordStop = void 0);
13287
13287
  const [d, I] = Sy(
@@ -13290,7 +13290,7 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
13290
13290
  this._recordStop = Le({
13291
13291
  ignoreClass: "highlight-ignore",
13292
13292
  blockClass: "highlight-block",
13293
- emit: p,
13293
+ emit: m,
13294
13294
  recordCrossOriginIframes: this.options.recordCrossOriginIframe,
13295
13295
  privacySetting: this.privacySetting,
13296
13296
  maskAllInputs: d,
@@ -13656,10 +13656,13 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
13656
13656
  }
13657
13657
  }
13658
13658
  class eg extends Yd {
13659
- constructor(t, i) {
13660
- var s = (...p) => (super(...p), N(this, "record"), this), n, r, l, o, a, c, u, h, m;
13659
+ constructor(t) {
13660
+ super(t), N(this, "record"), N(this, "options"), this.options = t;
13661
+ }
13662
+ initialize(t, i) {
13663
+ var s, n, r, l, o, a, c, u, h;
13661
13664
  try {
13662
- if (s(i), typeof window > "u" || typeof document > "u") {
13665
+ if (typeof window > "u" || typeof document > "u") {
13663
13666
  console.warn(
13664
13667
  "@launchdarkly/session-replay is not initializing because it is not supported in this environment."
13665
13668
  );
@@ -13683,9 +13686,9 @@ class eg extends Yd {
13683
13686
  environment: i?.environment || "production",
13684
13687
  appVersion: i?.version,
13685
13688
  sessionSecureID: this.sessionSecureID,
13686
- privacySetting: (n = i?.privacySetting) != null ? n : "strict"
13689
+ privacySetting: (s = i?.privacySetting) != null ? s : "strict"
13687
13690
  });
13688
- this.record = new Hy(p), i != null && i.manualStart || this.record.start(), Rt.load(this.record), !((l = (r = i?.integrations) == null ? void 0 : r.mixpanel) != null && l.disabled) && (a = (o = i?.integrations) == null ? void 0 : o.mixpanel) != null && a.projectToken && My(i.integrations.mixpanel), !((u = (c = i?.integrations) == null ? void 0 : c.amplitude) != null && u.disabled) && (m = (h = i?.integrations) == null ? void 0 : h.amplitude) != null && m.apiKey && Oy(i.integrations.amplitude);
13691
+ this.record = new Hy(p), i != null && i.manualStart || this.record.start(), Rt.load(this.record), !((r = (n = i?.integrations) == null ? void 0 : n.mixpanel) != null && r.disabled) && (o = (l = i?.integrations) == null ? void 0 : l.mixpanel) != null && o.projectToken && My(i.integrations.mixpanel), !((c = (a = i?.integrations) == null ? void 0 : a.amplitude) != null && c.disabled) && (h = (u = i?.integrations) == null ? void 0 : u.amplitude) != null && h.apiKey && Oy(i.integrations.amplitude);
13689
13692
  } catch (p) {
13690
13693
  Ze(
13691
13694
  "Error initializing @launchdarkly/session-replay SDK",
@@ -13704,42 +13707,46 @@ class eg extends Yd {
13704
13707
  (s = this.record) == null || s.register(t, i);
13705
13708
  }
13706
13709
  getHooks(t) {
13707
- return [
13710
+ var i, s;
13711
+ return this.initialize(
13712
+ (s = (i = t.sdkKey) != null ? i : t.mobileKey) != null ? s : t.clientSideId,
13713
+ this.options
13714
+ ), [
13708
13715
  {
13709
13716
  getMetadata: () => ({
13710
13717
  name: "@launchdarkly/session-replay/hooks"
13711
13718
  }),
13712
- afterIdentify: (i, s, n) => {
13713
- var r, l, o, a, c, u, h;
13714
- for (const m of (o = (l = (r = this.record) == null ? void 0 : r.getHooks) == null ? void 0 : l.call(r, t)) != null ? o : [])
13715
- (a = m.afterIdentify) == null || a.call(m, i, s, n);
13716
- if (n.status === "completed") {
13717
- const m = Cd(i.context), p = Rd(i.context);
13718
- (h = this.record) == null || h.identify(
13719
- typeof p == "string" ? p : (u = (c = p.user) == null ? void 0 : c.toString()) != null ? u : m,
13719
+ afterIdentify: (n, r, l) => {
13720
+ var o, a, c, u, h, p, m;
13721
+ for (const b of (c = (a = (o = this.record) == null ? void 0 : o.getHooks) == null ? void 0 : a.call(o, t)) != null ? c : [])
13722
+ (u = b.afterIdentify) == null || u.call(b, n, r, l);
13723
+ if (l.status === "completed") {
13724
+ const b = Cd(n.context), d = Rd(n.context);
13725
+ (m = this.record) == null || m.identify(
13726
+ typeof d == "string" ? d : (p = (h = d.user) == null ? void 0 : h.toString()) != null ? p : b,
13720
13727
  ge(F({
13721
- key: m
13722
- }, typeof p == "object" ? p : {}), {
13723
- timeout: i.timeout
13728
+ key: b
13729
+ }, typeof d == "object" ? d : {}), {
13730
+ timeout: n.timeout
13724
13731
  }),
13725
13732
  "LaunchDarkly"
13726
13733
  );
13727
13734
  }
13728
- return s;
13735
+ return r;
13729
13736
  },
13730
- afterEvaluation: (i, s, n) => {
13731
- var r, l, o, a;
13732
- for (const c of (o = (l = (r = this.record) == null ? void 0 : r.getHooks) == null ? void 0 : l.call(r, t)) != null ? o : [])
13733
- (a = c.afterEvaluation) == null || a.call(c, i, s, n);
13734
- return s;
13737
+ afterEvaluation: (n, r, l) => {
13738
+ var o, a, c, u;
13739
+ for (const h of (c = (a = (o = this.record) == null ? void 0 : o.getHooks) == null ? void 0 : a.call(o, t)) != null ? c : [])
13740
+ (u = h.afterEvaluation) == null || u.call(h, n, r, l);
13741
+ return r;
13735
13742
  },
13736
- afterTrack: (i) => {
13737
- var s, n, r, l, o;
13738
- for (const a of (r = (n = (s = this.record) == null ? void 0 : s.getHooks) == null ? void 0 : n.call(s, t)) != null ? r : [])
13739
- (l = a.afterTrack) == null || l.call(a, i);
13740
- (o = this.record) == null || o.track(i.key, {
13741
- data: i.data,
13742
- value: i.metricValue
13743
+ afterTrack: (n) => {
13744
+ var r, l, o, a, c;
13745
+ for (const u of (o = (l = (r = this.record) == null ? void 0 : r.getHooks) == null ? void 0 : l.call(r, t)) != null ? o : [])
13746
+ (a = u.afterTrack) == null || a.call(u, n);
13747
+ (c = this.record) == null || c.track(n.key, {
13748
+ data: n.data,
13749
+ value: n.metricValue
13743
13750
  });
13744
13751
  }
13745
13752
  }
@@ -13751,4 +13758,4 @@ export {
13751
13758
  Rt as r,
13752
13759
  Bo as x
13753
13760
  };
13754
- //# sourceMappingURL=index-BnOFliqz.js.map
13761
+ //# sourceMappingURL=index-Bl9TlXLI.js.map