@bentolabs/sdk 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,25 +1,22 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __defProps = Object.defineProperties;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
3
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
- var __spreadValues = (a, b) => {
12
- for (var prop in b || (b = {}))
13
- if (__hasOwnProp.call(b, prop))
14
- __defNormalProp(a, prop, b[prop]);
8
+ var __spreadValues = (a2, b2) => {
9
+ for (var prop in b2 || (b2 = {}))
10
+ if (__hasOwnProp.call(b2, prop))
11
+ __defNormalProp(a2, prop, b2[prop]);
15
12
  if (__getOwnPropSymbols)
16
- for (var prop of __getOwnPropSymbols(b)) {
17
- if (__propIsEnum.call(b, prop))
18
- __defNormalProp(a, prop, b[prop]);
13
+ for (var prop of __getOwnPropSymbols(b2)) {
14
+ if (__propIsEnum.call(b2, prop))
15
+ __defNormalProp(a2, prop, b2[prop]);
19
16
  }
20
- return a;
17
+ return a2;
21
18
  };
22
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19
+ var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
23
20
  var __objRest = (source, exclude) => {
24
21
  var target = {};
25
22
  for (var prop in source)
@@ -32,30 +29,6 @@ var __objRest = (source, exclude) => {
32
29
  }
33
30
  return target;
34
31
  };
35
- var __export = (target, all) => {
36
- for (var name in all)
37
- __defProp(target, name, { get: all[name], enumerable: true });
38
- };
39
- var __copyProps = (to, from, except, desc) => {
40
- if (from && typeof from === "object" || typeof from === "function") {
41
- for (let key of __getOwnPropNames(from))
42
- if (!__hasOwnProp.call(to, key) && key !== except)
43
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
44
- }
45
- return to;
46
- };
47
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
-
49
- // src/index.ts
50
- var index_exports = {};
51
- __export(index_exports, {
52
- BentoLabsSDK: () => BentoLabsSDK,
53
- default: () => index_default,
54
- generateSelector: () => generateSelector,
55
- generateSelectorFromElement: () => generateSelectorFromElement,
56
- generateSelectorFromHTML: () => generateSelectorFromHTML
57
- });
58
- module.exports = __toCommonJS(index_exports);
59
32
 
60
33
  // node_modules/rrweb/dist/rrweb.js
61
34
  var __defProp2 = Object.defineProperty;
@@ -136,7 +109,7 @@ function getUntaintedPrototype$1(key) {
136
109
  document.body.removeChild(iframeEl);
137
110
  if (!untaintedObject) return defaultPrototype;
138
111
  return untaintedBasePrototype$1[key] = untaintedObject;
139
- } catch (e) {
112
+ } catch (e3) {
140
113
  return defaultPrototype;
141
114
  }
142
115
  }
@@ -232,7 +205,7 @@ function patch$1(source, name, replacement) {
232
205
  return () => {
233
206
  source[name] = original;
234
207
  };
235
- } catch (e) {
208
+ } catch (e3) {
236
209
  return () => {
237
210
  };
238
211
  }
@@ -435,18 +408,18 @@ function is2DCanvasBlank(canvas) {
435
408
  const ctx = canvas.getContext("2d");
436
409
  if (!ctx) return true;
437
410
  const chunkSize = 50;
438
- for (let x2 = 0; x2 < canvas.width; x2 += chunkSize) {
439
- for (let y = 0; y < canvas.height; y += chunkSize) {
411
+ for (let x22 = 0; x22 < canvas.width; x22 += chunkSize) {
412
+ for (let y2 = 0; y2 < canvas.height; y2 += chunkSize) {
440
413
  const getImageData = ctx.getImageData;
441
414
  const originalGetImageData = ORIGINAL_ATTRIBUTE_NAME in getImageData ? getImageData[ORIGINAL_ATTRIBUTE_NAME] : getImageData;
442
415
  const pixelBuffer = new Uint32Array(
443
416
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
444
417
  originalGetImageData.call(
445
418
  ctx,
446
- x2,
447
- y,
448
- Math.min(chunkSize, canvas.width - x2),
449
- Math.min(chunkSize, canvas.height - y)
419
+ x22,
420
+ y2,
421
+ Math.min(chunkSize, canvas.width - x22),
422
+ Math.min(chunkSize, canvas.height - y2)
450
423
  ).data.buffer
451
424
  );
452
425
  if (pixelBuffer.some((pixel) => pixel !== 0)) return false;
@@ -542,19 +515,19 @@ function splitCssText(cssText, style, _testNoPxNorm = false) {
542
515
  _testNoPxNorm
543
516
  );
544
517
  const jLimit = 100;
545
- let j = 3;
546
- for (; j < textContentNorm.length; j++) {
518
+ let j2 = 3;
519
+ for (; j2 < textContentNorm.length; j2++) {
547
520
  if (
548
521
  // keep consuming css identifiers (to get a decent chunk more quickly)
549
- textContentNorm[j].match(/[a-zA-Z0-9]/) || // substring needs to be unique to this section
550
- textContentNorm.indexOf(textContentNorm.substring(0, j), 1) !== -1
522
+ textContentNorm[j2].match(/[a-zA-Z0-9]/) || // substring needs to be unique to this section
523
+ textContentNorm.indexOf(textContentNorm.substring(0, j2), 1) !== -1
551
524
  ) {
552
525
  continue;
553
526
  }
554
527
  break;
555
528
  }
556
- for (; j < textContentNorm.length; j++) {
557
- let startSubstring = textContentNorm.substring(0, j);
529
+ for (; j2 < textContentNorm.length; j2++) {
530
+ let startSubstring = textContentNorm.substring(0, j2);
558
531
  let cssNormSplits = cssTextNorm.split(startSubstring);
559
532
  let splitNorm = -1;
560
533
  if (cssNormSplits.length === 2) {
@@ -571,11 +544,11 @@ function splitCssText(cssText, style, _testNoPxNorm = false) {
571
544
  splits.push(cssText);
572
545
  return splits;
573
546
  }
574
- j = jLimit + 1;
575
- } else if (j === textContentNorm.length - 1) {
547
+ j2 = jLimit + 1;
548
+ } else if (j2 === textContentNorm.length - 1) {
576
549
  splitNorm = cssTextNorm.indexOf(startSubstring);
577
550
  }
578
- if (cssNormSplits.length >= 2 && j > jLimit) {
551
+ if (cssNormSplits.length >= 2 && j2 > jLimit) {
579
552
  const prevTextContent = childNodes2[i2 - 1].textContent;
580
553
  if (prevTextContent && typeof prevTextContent === "string") {
581
554
  const prevMinLength = normalizeCssString(prevTextContent).length;
@@ -586,29 +559,29 @@ function splitCssText(cssText, style, _testNoPxNorm = false) {
586
559
  }
587
560
  }
588
561
  if (splitNorm !== -1) {
589
- let k = Math.floor(splitNorm / normFactor);
590
- for (; k > 0 && k < cssText.length; ) {
562
+ let k2 = Math.floor(splitNorm / normFactor);
563
+ for (; k2 > 0 && k2 < cssText.length; ) {
591
564
  iterCount += 1;
592
565
  if (iterCount > 50 * childNodes2.length) {
593
566
  splits.push(cssText);
594
567
  return splits;
595
568
  }
596
569
  const normPart = normalizeCssString(
597
- cssText.substring(0, k),
570
+ cssText.substring(0, k2),
598
571
  _testNoPxNorm
599
572
  );
600
573
  if (normPart.length === splitNorm) {
601
- splits.push(cssText.substring(0, k));
602
- cssText = cssText.substring(k);
574
+ splits.push(cssText.substring(0, k2));
575
+ cssText = cssText.substring(k2);
603
576
  cssTextNorm = cssTextNorm.substring(splitNorm);
604
577
  break;
605
578
  } else if (normPart.length < splitNorm) {
606
- k += Math.max(
579
+ k2 += Math.max(
607
580
  1,
608
581
  Math.floor((splitNorm - normPart.length) / normFactor)
609
582
  );
610
583
  } else {
611
- k -= Math.max(
584
+ k2 -= Math.max(
612
585
  1,
613
586
  Math.floor((normPart.length - splitNorm) * normFactor)
614
587
  );
@@ -763,7 +736,7 @@ function _isBlockedElement(element, blockClass, blockSelector) {
763
736
  if (blockSelector) {
764
737
  return element.matches(blockSelector);
765
738
  }
766
- } catch (e2) {
739
+ } catch (e22) {
767
740
  }
768
741
  return false;
769
742
  }
@@ -811,7 +784,7 @@ function needMaskingText(node2, maskTextClass, maskTextSelector, checkAncestors)
811
784
  if (el.matches(maskTextSelector)) return true;
812
785
  }
813
786
  }
814
- } catch (e2) {
787
+ } catch (e22) {
815
788
  }
816
789
  return false;
817
790
  }
@@ -1157,7 +1130,7 @@ function serializeElementNode(n2, options) {
1157
1130
  let isCustomElement;
1158
1131
  try {
1159
1132
  if (customElements.get(tagName)) isCustomElement = true;
1160
- } catch (e2) {
1133
+ } catch (e22) {
1161
1134
  }
1162
1135
  return {
1163
1136
  type: NodeType$3.Element,
@@ -1527,8 +1500,8 @@ function snapshot(n2, options) {
1527
1500
  }
1528
1501
  var MEDIA_SELECTOR = /(max|min)-device-(width|height)/;
1529
1502
  var MEDIA_SELECTOR_GLOBAL = new RegExp(MEDIA_SELECTOR.source, "g");
1530
- function getDefaultExportFromCjs$1(x2) {
1531
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
1503
+ function getDefaultExportFromCjs$1(x22) {
1504
+ return x22 && x22.__esModule && Object.prototype.hasOwnProperty.call(x22, "default") ? x22["default"] : x22;
1532
1505
  }
1533
1506
  function getAugmentedNamespace$1(n2) {
1534
1507
  if (n2.__esModule) return n2;
@@ -1543,12 +1516,12 @@ function getAugmentedNamespace$1(n2) {
1543
1516
  a2.prototype = f2.prototype;
1544
1517
  } else a2 = {};
1545
1518
  Object.defineProperty(a2, "__esModule", { value: true });
1546
- Object.keys(n2).forEach(function(k) {
1547
- var d = Object.getOwnPropertyDescriptor(n2, k);
1548
- Object.defineProperty(a2, k, d.get ? d : {
1519
+ Object.keys(n2).forEach(function(k2) {
1520
+ var d2 = Object.getOwnPropertyDescriptor(n2, k2);
1521
+ Object.defineProperty(a2, k2, d2.get ? d2 : {
1549
1522
  enumerable: true,
1550
1523
  get: function() {
1551
- return n2[k];
1524
+ return n2[k2];
1552
1525
  }
1553
1526
  });
1554
1527
  });
@@ -1896,8 +1869,8 @@ var Stringifier$2$1 = class Stringifier {
1896
1869
  if (root2.raws.indent) return root2.raws.indent;
1897
1870
  let value;
1898
1871
  root2.walk((i2) => {
1899
- let p = i2.parent;
1900
- if (p && p !== root2 && p.parent && p.parent === root2) {
1872
+ let p2 = i2.parent;
1873
+ if (p2 && p2 !== root2 && p2.parent && p2.parent === root2) {
1901
1874
  if (typeof i2.raws.before !== "undefined") {
1902
1875
  let parts = i2.raws.before.split("\n");
1903
1876
  value = parts[parts.length - 1];
@@ -1972,7 +1945,7 @@ function cloneNode$1(obj, parent) {
1972
1945
  } else if (i2 === "source") {
1973
1946
  cloned[i2] = value;
1974
1947
  } else if (Array.isArray(value)) {
1975
- cloned[i2] = value.map((j) => cloneNode$1(j, cloned));
1948
+ cloned[i2] = value.map((j2) => cloneNode$1(j2, cloned));
1976
1949
  } else {
1977
1950
  if (type === "object" && value !== null) value = cloneNode$1(value);
1978
1951
  cloned[i2] = value;
@@ -2207,7 +2180,7 @@ var Node$4$1 = class Node2 {
2207
2180
  }
2208
2181
  return result2;
2209
2182
  }
2210
- toJSON(_, inputs) {
2183
+ toJSON(_2, inputs) {
2211
2184
  let fixed = {};
2212
2185
  let emitInputs = inputs == null;
2213
2186
  inputs = inputs || /* @__PURE__ */ new Map();
@@ -2768,9 +2741,9 @@ var MapGenerator$2$1 = class MapGenerator {
2768
2741
  column += str.length;
2769
2742
  }
2770
2743
  if (node2 && type !== "start") {
2771
- let p = node2.parent || { raws: {} };
2744
+ let p2 = node2.parent || { raws: {} };
2772
2745
  let childless = node2.type === "decl" || node2.type === "atrule" && !node2.nodes;
2773
- if (!childless || node2 !== p.last || p.raws.semicolon) {
2746
+ if (!childless || node2 !== p2.last || p2.raws.semicolon) {
2774
2747
  if (node2.source && node2.source.end) {
2775
2748
  mapping.source = this.sourcePath(node2);
2776
2749
  mapping.original.line = node2.source.end.line;
@@ -3189,8 +3162,8 @@ var Container$7$1 = class Container extends Node$1$1 {
3189
3162
  let result2;
3190
3163
  try {
3191
3164
  result2 = callback(child, i2);
3192
- } catch (e2) {
3193
- throw child.addToError(e2);
3165
+ } catch (e22) {
3166
+ throw child.addToError(e22);
3194
3167
  }
3195
3168
  if (result2 !== false && child.walk) {
3196
3169
  result2 = child.walk(callback);
@@ -3849,8 +3822,8 @@ var Parser$1$1 = class Parser {
3849
3822
  if (colon === false) return;
3850
3823
  let founded = 0;
3851
3824
  let token;
3852
- for (let j = colon - 1; j >= 0; j--) {
3853
- token = tokens[j];
3825
+ for (let j2 = colon - 1; j2 >= 0; j2--) {
3826
+ token = tokens[j2];
3854
3827
  if (token[0] !== "space") {
3855
3828
  founded += 1;
3856
3829
  if (founded === 2) break;
@@ -3968,8 +3941,8 @@ var Parser$1$1 = class Parser {
3968
3941
  } else if (token[1].toLowerCase() === "important") {
3969
3942
  let cache = tokens.slice(0);
3970
3943
  let str = "";
3971
- for (let j = i2; j > 0; j--) {
3972
- let type = cache[j][0];
3944
+ for (let j2 = i2; j2 > 0; j2--) {
3945
+ let type = cache[j2][0];
3973
3946
  if (str.trim().indexOf("!") === 0 && type !== "space") {
3974
3947
  break;
3975
3948
  }
@@ -4272,19 +4245,19 @@ function parse$3$1(css, opts) {
4272
4245
  let parser2 = new Parser2$1(input2);
4273
4246
  try {
4274
4247
  parser2.parse();
4275
- } catch (e2) {
4248
+ } catch (e22) {
4276
4249
  if (false) {
4277
- if (e2.name === "CssSyntaxError" && opts && opts.from) {
4250
+ if (e22.name === "CssSyntaxError" && opts && opts.from) {
4278
4251
  if (/\.scss$/i.test(opts.from)) {
4279
- e2.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser";
4252
+ e22.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser";
4280
4253
  } else if (/\.sass/i.test(opts.from)) {
4281
- e2.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser";
4254
+ e22.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser";
4282
4255
  } else if (/\.less$/i.test(opts.from)) {
4283
- e2.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser";
4256
+ e22.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser";
4284
4257
  }
4285
4258
  }
4286
4259
  }
4287
- throw e2;
4260
+ throw e22;
4288
4261
  }
4289
4262
  return parser2.root;
4290
4263
  }
@@ -4452,8 +4425,8 @@ var LazyResult$2$1 = class LazyResult {
4452
4425
  let pluginVer = plugin22.postcssVersion;
4453
4426
  let runtimeVer = this.result.processor.version;
4454
4427
  let a2 = pluginVer.split(".");
4455
- let b = runtimeVer.split(".");
4456
- if (a2[0] !== b[0] || parseInt(a2[1]) > parseInt(b[1])) {
4428
+ let b2 = runtimeVer.split(".");
4429
+ if (a2[0] !== b2[0] || parseInt(a2[1]) > parseInt(b2[1])) {
4457
4430
  console.error(
4458
4431
  "Unknown error from PostCSS plugin. Your current PostCSS version is " + runtimeVer + ", but " + pluginName + " uses " + pluginVer + ". Perhaps this is the source of the error below."
4459
4432
  );
@@ -4525,9 +4498,9 @@ var LazyResult$2$1 = class LazyResult {
4525
4498
  if (isPromise$1(promise)) {
4526
4499
  try {
4527
4500
  await promise;
4528
- } catch (e2) {
4501
+ } catch (e22) {
4529
4502
  let node2 = stack[stack.length - 1].node;
4530
- throw this.handleError(e2, node2);
4503
+ throw this.handleError(e22, node2);
4531
4504
  }
4532
4505
  }
4533
4506
  }
@@ -4544,8 +4517,8 @@ var LazyResult$2$1 = class LazyResult {
4544
4517
  } else {
4545
4518
  await visitor(root2, this.helpers);
4546
4519
  }
4547
- } catch (e2) {
4548
- throw this.handleError(e2);
4520
+ } catch (e22) {
4521
+ throw this.handleError(e22);
4549
4522
  }
4550
4523
  }
4551
4524
  }
@@ -4641,8 +4614,8 @@ var LazyResult$2$1 = class LazyResult {
4641
4614
  let promise;
4642
4615
  try {
4643
4616
  promise = visitor(node2, this.helpers);
4644
- } catch (e2) {
4645
- throw this.handleError(e2, node2.proxyOf);
4617
+ } catch (e22) {
4618
+ throw this.handleError(e22, node2.proxyOf);
4646
4619
  }
4647
4620
  if (node2.type !== "root" && node2.type !== "document" && !node2.parent) {
4648
4621
  return true;
@@ -4669,8 +4642,8 @@ var LazyResult$2$1 = class LazyResult {
4669
4642
  this.result.lastPlugin = plugin22;
4670
4643
  try {
4671
4644
  return visitor(node2.toProxy(), this.helpers);
4672
- } catch (e2) {
4673
- throw this.handleError(e2, node2);
4645
+ } catch (e22) {
4646
+ throw this.handleError(e22, node2);
4674
4647
  }
4675
4648
  }
4676
4649
  if (visit2.iterator !== 0) {
@@ -4773,10 +4746,10 @@ var NoWorkResult$1$1 = class NoWorkResult {
4773
4746
  let str = stringify$1$1;
4774
4747
  this.result = new Result$1$1(this._processor, root2, this._opts);
4775
4748
  this.result.css = css;
4776
- let self = this;
4749
+ let self2 = this;
4777
4750
  Object.defineProperty(this.result, "root", {
4778
4751
  get() {
4779
- return self.root;
4752
+ return self2.root;
4780
4753
  }
4781
4754
  });
4782
4755
  let map = new MapGenerator2$1(str, root2, this._opts, css);
@@ -5073,8 +5046,8 @@ postcss$1$1.Node;
5073
5046
  var __defProp22 = Object.defineProperty;
5074
5047
  var __defNormalProp22 = (obj, key, value) => key in obj ? __defProp22(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5075
5048
  var __publicField2 = (obj, key, value) => __defNormalProp22(obj, typeof key !== "symbol" ? key + "" : key, value);
5076
- function getDefaultExportFromCjs(x2) {
5077
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
5049
+ function getDefaultExportFromCjs(x22) {
5050
+ return x22 && x22.__esModule && Object.prototype.hasOwnProperty.call(x22, "default") ? x22["default"] : x22;
5078
5051
  }
5079
5052
  function getAugmentedNamespace(n2) {
5080
5053
  if (n2.__esModule) return n2;
@@ -5089,12 +5062,12 @@ function getAugmentedNamespace(n2) {
5089
5062
  a2.prototype = f2.prototype;
5090
5063
  } else a2 = {};
5091
5064
  Object.defineProperty(a2, "__esModule", { value: true });
5092
- Object.keys(n2).forEach(function(k) {
5093
- var d = Object.getOwnPropertyDescriptor(n2, k);
5094
- Object.defineProperty(a2, k, d.get ? d : {
5065
+ Object.keys(n2).forEach(function(k2) {
5066
+ var d2 = Object.getOwnPropertyDescriptor(n2, k2);
5067
+ Object.defineProperty(a2, k2, d2.get ? d2 : {
5095
5068
  enumerable: true,
5096
5069
  get: function() {
5097
- return n2[k];
5070
+ return n2[k2];
5098
5071
  }
5099
5072
  });
5100
5073
  });
@@ -5442,8 +5415,8 @@ var Stringifier$2 = class Stringifier2 {
5442
5415
  if (root2.raws.indent) return root2.raws.indent;
5443
5416
  let value;
5444
5417
  root2.walk((i2) => {
5445
- let p = i2.parent;
5446
- if (p && p !== root2 && p.parent && p.parent === root2) {
5418
+ let p2 = i2.parent;
5419
+ if (p2 && p2 !== root2 && p2.parent && p2.parent === root2) {
5447
5420
  if (typeof i2.raws.before !== "undefined") {
5448
5421
  let parts = i2.raws.before.split("\n");
5449
5422
  value = parts[parts.length - 1];
@@ -5518,7 +5491,7 @@ function cloneNode(obj, parent) {
5518
5491
  } else if (i2 === "source") {
5519
5492
  cloned[i2] = value;
5520
5493
  } else if (Array.isArray(value)) {
5521
- cloned[i2] = value.map((j) => cloneNode(j, cloned));
5494
+ cloned[i2] = value.map((j2) => cloneNode(j2, cloned));
5522
5495
  } else {
5523
5496
  if (type === "object" && value !== null) value = cloneNode(value);
5524
5497
  cloned[i2] = value;
@@ -5753,7 +5726,7 @@ var Node$4 = class Node3 {
5753
5726
  }
5754
5727
  return result2;
5755
5728
  }
5756
- toJSON(_, inputs) {
5729
+ toJSON(_2, inputs) {
5757
5730
  let fixed = {};
5758
5731
  let emitInputs = inputs == null;
5759
5732
  inputs = inputs || /* @__PURE__ */ new Map();
@@ -6314,9 +6287,9 @@ var MapGenerator$2 = class MapGenerator2 {
6314
6287
  column += str.length;
6315
6288
  }
6316
6289
  if (node2 && type !== "start") {
6317
- let p = node2.parent || { raws: {} };
6290
+ let p2 = node2.parent || { raws: {} };
6318
6291
  let childless = node2.type === "decl" || node2.type === "atrule" && !node2.nodes;
6319
- if (!childless || node2 !== p.last || p.raws.semicolon) {
6292
+ if (!childless || node2 !== p2.last || p2.raws.semicolon) {
6320
6293
  if (node2.source && node2.source.end) {
6321
6294
  mapping.source = this.sourcePath(node2);
6322
6295
  mapping.original.line = node2.source.end.line;
@@ -6735,8 +6708,8 @@ var Container$7 = class Container2 extends Node$1 {
6735
6708
  let result2;
6736
6709
  try {
6737
6710
  result2 = callback(child, i2);
6738
- } catch (e2) {
6739
- throw child.addToError(e2);
6711
+ } catch (e22) {
6712
+ throw child.addToError(e22);
6740
6713
  }
6741
6714
  if (result2 !== false && child.walk) {
6742
6715
  result2 = child.walk(callback);
@@ -7395,8 +7368,8 @@ var Parser$1 = class Parser2 {
7395
7368
  if (colon === false) return;
7396
7369
  let founded = 0;
7397
7370
  let token;
7398
- for (let j = colon - 1; j >= 0; j--) {
7399
- token = tokens[j];
7371
+ for (let j2 = colon - 1; j2 >= 0; j2--) {
7372
+ token = tokens[j2];
7400
7373
  if (token[0] !== "space") {
7401
7374
  founded += 1;
7402
7375
  if (founded === 2) break;
@@ -7514,8 +7487,8 @@ var Parser$1 = class Parser2 {
7514
7487
  } else if (token[1].toLowerCase() === "important") {
7515
7488
  let cache = tokens.slice(0);
7516
7489
  let str = "";
7517
- for (let j = i2; j > 0; j--) {
7518
- let type = cache[j][0];
7490
+ for (let j2 = i2; j2 > 0; j2--) {
7491
+ let type = cache[j2][0];
7519
7492
  if (str.trim().indexOf("!") === 0 && type !== "space") {
7520
7493
  break;
7521
7494
  }
@@ -7818,19 +7791,19 @@ function parse$3(css, opts) {
7818
7791
  let parser2 = new Parser22(input2);
7819
7792
  try {
7820
7793
  parser2.parse();
7821
- } catch (e2) {
7794
+ } catch (e22) {
7822
7795
  if (false) {
7823
- if (e2.name === "CssSyntaxError" && opts && opts.from) {
7796
+ if (e22.name === "CssSyntaxError" && opts && opts.from) {
7824
7797
  if (/\.scss$/i.test(opts.from)) {
7825
- e2.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser";
7798
+ e22.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser";
7826
7799
  } else if (/\.sass/i.test(opts.from)) {
7827
- e2.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser";
7800
+ e22.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser";
7828
7801
  } else if (/\.less$/i.test(opts.from)) {
7829
- e2.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser";
7802
+ e22.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser";
7830
7803
  }
7831
7804
  }
7832
7805
  }
7833
- throw e2;
7806
+ throw e22;
7834
7807
  }
7835
7808
  return parser2.root;
7836
7809
  }
@@ -7998,8 +7971,8 @@ var LazyResult$2 = class LazyResult2 {
7998
7971
  let pluginVer = plugin22.postcssVersion;
7999
7972
  let runtimeVer = this.result.processor.version;
8000
7973
  let a2 = pluginVer.split(".");
8001
- let b = runtimeVer.split(".");
8002
- if (a2[0] !== b[0] || parseInt(a2[1]) > parseInt(b[1])) {
7974
+ let b2 = runtimeVer.split(".");
7975
+ if (a2[0] !== b2[0] || parseInt(a2[1]) > parseInt(b2[1])) {
8003
7976
  console.error(
8004
7977
  "Unknown error from PostCSS plugin. Your current PostCSS version is " + runtimeVer + ", but " + pluginName + " uses " + pluginVer + ". Perhaps this is the source of the error below."
8005
7978
  );
@@ -8071,9 +8044,9 @@ var LazyResult$2 = class LazyResult2 {
8071
8044
  if (isPromise(promise)) {
8072
8045
  try {
8073
8046
  await promise;
8074
- } catch (e2) {
8047
+ } catch (e22) {
8075
8048
  let node2 = stack[stack.length - 1].node;
8076
- throw this.handleError(e2, node2);
8049
+ throw this.handleError(e22, node2);
8077
8050
  }
8078
8051
  }
8079
8052
  }
@@ -8090,8 +8063,8 @@ var LazyResult$2 = class LazyResult2 {
8090
8063
  } else {
8091
8064
  await visitor(root2, this.helpers);
8092
8065
  }
8093
- } catch (e2) {
8094
- throw this.handleError(e2);
8066
+ } catch (e22) {
8067
+ throw this.handleError(e22);
8095
8068
  }
8096
8069
  }
8097
8070
  }
@@ -8187,8 +8160,8 @@ var LazyResult$2 = class LazyResult2 {
8187
8160
  let promise;
8188
8161
  try {
8189
8162
  promise = visitor(node2, this.helpers);
8190
- } catch (e2) {
8191
- throw this.handleError(e2, node2.proxyOf);
8163
+ } catch (e22) {
8164
+ throw this.handleError(e22, node2.proxyOf);
8192
8165
  }
8193
8166
  if (node2.type !== "root" && node2.type !== "document" && !node2.parent) {
8194
8167
  return true;
@@ -8215,8 +8188,8 @@ var LazyResult$2 = class LazyResult2 {
8215
8188
  this.result.lastPlugin = plugin22;
8216
8189
  try {
8217
8190
  return visitor(node2.toProxy(), this.helpers);
8218
- } catch (e2) {
8219
- throw this.handleError(e2, node2);
8191
+ } catch (e22) {
8192
+ throw this.handleError(e22, node2);
8220
8193
  }
8221
8194
  }
8222
8195
  if (visit2.iterator !== 0) {
@@ -8319,10 +8292,10 @@ var NoWorkResult$1 = class NoWorkResult2 {
8319
8292
  let str = stringify$1;
8320
8293
  this.result = new Result$1(this._processor, root2, this._opts);
8321
8294
  this.result.css = css;
8322
- let self = this;
8295
+ let self2 = this;
8323
8296
  Object.defineProperty(this.result, "root", {
8324
8297
  get() {
8325
- return self.root;
8298
+ return self2.root;
8326
8299
  }
8327
8300
  });
8328
8301
  let map = new MapGenerator22(str, root2, this._opts, css);
@@ -8735,7 +8708,7 @@ function getUntaintedPrototype(key) {
8735
8708
  document.body.removeChild(iframeEl);
8736
8709
  if (!untaintedObject) return defaultPrototype;
8737
8710
  return untaintedBasePrototype[key] = untaintedObject;
8738
- } catch (e) {
8711
+ } catch (e3) {
8739
8712
  return defaultPrototype;
8740
8713
  }
8741
8714
  }
@@ -8831,7 +8804,7 @@ function patch(source, name, replacement) {
8831
8804
  return () => {
8832
8805
  source[name] = original;
8833
8806
  };
8834
- } catch (e) {
8807
+ } catch (e3) {
8835
8808
  return () => {
8836
8809
  };
8837
8810
  }
@@ -8915,15 +8888,15 @@ function throttle(func, wait, options = {}) {
8915
8888
  }
8916
8889
  };
8917
8890
  }
8918
- function hookSetter(target, key, d, isRevoked, win = window) {
8891
+ function hookSetter(target, key, d2, isRevoked, win = window) {
8919
8892
  const original = win.Object.getOwnPropertyDescriptor(target, key);
8920
8893
  win.Object.defineProperty(
8921
8894
  target,
8922
8895
  key,
8923
- isRevoked ? d : {
8896
+ isRevoked ? d2 : {
8924
8897
  set(value) {
8925
8898
  setTimeout(() => {
8926
- d.set.call(this, value);
8899
+ d2.set.call(this, value);
8927
8900
  }, 0);
8928
8901
  if (original && original.set) {
8929
8902
  original.set.call(this, value);
@@ -8973,7 +8946,7 @@ function isBlocked(node2, blockClass, blockSelector, checkAncestors) {
8973
8946
  } else {
8974
8947
  if (classMatchesRegex(el, blockClass, checkAncestors)) return true;
8975
8948
  }
8976
- } catch (e2) {
8949
+ } catch (e22) {
8977
8950
  }
8978
8951
  if (blockSelector) {
8979
8952
  if (el.matches(blockSelector)) return true;
@@ -9115,7 +9088,7 @@ function normalizeHref(href) {
9115
9088
  try {
9116
9089
  const url = new URL(href, "http://x");
9117
9090
  return url.pathname;
9118
- } catch (e) {
9091
+ } catch (e3) {
9119
9092
  return href.split("?")[0].split("#")[0];
9120
9093
  }
9121
9094
  }
@@ -9492,7 +9465,7 @@ function extractElementContext(element, options = {}) {
9492
9465
  try {
9493
9466
  const path = (_a2 = options.pathname) != null ? _a2 : typeof window !== "undefined" ? window.location.pathname : void 0;
9494
9467
  context.bentoSelector = buildBentoSelector(element, path);
9495
- } catch (e) {
9468
+ } catch (e3) {
9496
9469
  }
9497
9470
  }
9498
9471
  if (opts.includeInputValues && isInputElement(element)) {
@@ -9925,31 +9898,31 @@ var MutationBuffer = class {
9925
9898
  maskInputFn: this.maskInputFn
9926
9899
  });
9927
9900
  });
9928
- __publicField(this, "processMutation", (m) => {
9929
- if (isIgnored(m.target, this.mirror, this.slimDOMOptions)) {
9901
+ __publicField(this, "processMutation", (m2) => {
9902
+ if (isIgnored(m2.target, this.mirror, this.slimDOMOptions)) {
9930
9903
  return;
9931
9904
  }
9932
- switch (m.type) {
9905
+ switch (m2.type) {
9933
9906
  case "characterData": {
9934
- const value = index.textContent(m.target);
9935
- if (!isBlocked(m.target, this.blockClass, this.blockSelector, false) && value !== m.oldValue) {
9907
+ const value = index.textContent(m2.target);
9908
+ if (!isBlocked(m2.target, this.blockClass, this.blockSelector, false) && value !== m2.oldValue) {
9936
9909
  this.texts.push({
9937
9910
  value: needMaskingText(
9938
- m.target,
9911
+ m2.target,
9939
9912
  this.maskTextClass,
9940
9913
  this.maskTextSelector,
9941
9914
  true
9942
9915
  // checkAncestors
9943
- ) && value ? this.maskTextFn ? this.maskTextFn(value, closestElementOfNode(m.target)) : value.replace(/[\S]/g, "*") : value,
9944
- node: m.target
9916
+ ) && value ? this.maskTextFn ? this.maskTextFn(value, closestElementOfNode(m2.target)) : value.replace(/[\S]/g, "*") : value,
9917
+ node: m2.target
9945
9918
  });
9946
9919
  }
9947
9920
  break;
9948
9921
  }
9949
9922
  case "attributes": {
9950
- const target = m.target;
9951
- let attributeName = m.attributeName;
9952
- let value = m.target.getAttribute(attributeName);
9923
+ const target = m2.target;
9924
+ let attributeName = m2.attributeName;
9925
+ let value = m2.target.getAttribute(attributeName);
9953
9926
  if (attributeName === "value") {
9954
9927
  const type = getInputType(target);
9955
9928
  value = maskInputValue({
@@ -9961,10 +9934,10 @@ var MutationBuffer = class {
9961
9934
  maskInputFn: this.maskInputFn
9962
9935
  });
9963
9936
  }
9964
- if (isBlocked(m.target, this.blockClass, this.blockSelector, false) || value === m.oldValue) {
9937
+ if (isBlocked(m2.target, this.blockClass, this.blockSelector, false) || value === m2.oldValue) {
9965
9938
  return;
9966
9939
  }
9967
- let item = this.attributeMap.get(m.target);
9940
+ let item = this.attributeMap.get(m2.target);
9968
9941
  if (target.tagName === "IFRAME" && attributeName === "src" && !this.keepIframeSrcFn(value)) {
9969
9942
  if (!target.contentDocument) {
9970
9943
  attributeName = "rr_src";
@@ -9974,15 +9947,15 @@ var MutationBuffer = class {
9974
9947
  }
9975
9948
  if (!item) {
9976
9949
  item = {
9977
- node: m.target,
9950
+ node: m2.target,
9978
9951
  attributes: {},
9979
9952
  styleDiff: {},
9980
9953
  _unchangedStyles: {}
9981
9954
  };
9982
9955
  this.attributes.push(item);
9983
- this.attributeMap.set(m.target, item);
9956
+ this.attributeMap.set(m2.target, item);
9984
9957
  }
9985
- if (attributeName === "type" && target.tagName === "INPUT" && (m.oldValue || "").toLowerCase() === "password") {
9958
+ if (attributeName === "type" && target.tagName === "INPUT" && (m2.oldValue || "").toLowerCase() === "password") {
9986
9959
  target.setAttribute("data-rr-is-password", "true");
9987
9960
  }
9988
9961
  if (!ignoreAttribute(target.tagName, attributeName)) {
@@ -9996,13 +9969,13 @@ var MutationBuffer = class {
9996
9969
  if (!this.unattachedDoc) {
9997
9970
  try {
9998
9971
  this.unattachedDoc = document.implementation.createHTMLDocument();
9999
- } catch (e2) {
9972
+ } catch (e22) {
10000
9973
  this.unattachedDoc = this.doc;
10001
9974
  }
10002
9975
  }
10003
9976
  const old = this.unattachedDoc.createElement("span");
10004
- if (m.oldValue) {
10005
- old.setAttribute("style", m.oldValue);
9977
+ if (m2.oldValue) {
9978
+ old.setAttribute("style", m2.oldValue);
10006
9979
  }
10007
9980
  for (const pname of Array.from(target.style)) {
10008
9981
  const newValue = target.style.getPropertyValue(pname);
@@ -10033,31 +10006,31 @@ var MutationBuffer = class {
10033
10006
  break;
10034
10007
  }
10035
10008
  case "childList": {
10036
- if (isBlocked(m.target, this.blockClass, this.blockSelector, true))
10009
+ if (isBlocked(m2.target, this.blockClass, this.blockSelector, true))
10037
10010
  return;
10038
- if (m.target.tagName === "TEXTAREA") {
10039
- this.genTextAreaValueMutation(m.target);
10011
+ if (m2.target.tagName === "TEXTAREA") {
10012
+ this.genTextAreaValueMutation(m2.target);
10040
10013
  return;
10041
10014
  }
10042
- m.addedNodes.forEach((n2) => this.genAdds(n2, m.target));
10043
- m.removedNodes.forEach((n2) => {
10015
+ m2.addedNodes.forEach((n2) => this.genAdds(n2, m2.target));
10016
+ m2.removedNodes.forEach((n2) => {
10044
10017
  const nodeId = this.mirror.getId(n2);
10045
- const parentId = isShadowRoot(m.target) ? this.mirror.getId(index.host(m.target)) : this.mirror.getId(m.target);
10046
- if (isBlocked(m.target, this.blockClass, this.blockSelector, false) || isIgnored(n2, this.mirror, this.slimDOMOptions) || !isSerialized(n2, this.mirror)) {
10018
+ const parentId = isShadowRoot(m2.target) ? this.mirror.getId(index.host(m2.target)) : this.mirror.getId(m2.target);
10019
+ if (isBlocked(m2.target, this.blockClass, this.blockSelector, false) || isIgnored(n2, this.mirror, this.slimDOMOptions) || !isSerialized(n2, this.mirror)) {
10047
10020
  return;
10048
10021
  }
10049
10022
  if (this.addedSet.has(n2)) {
10050
10023
  deepDelete(this.addedSet, n2);
10051
10024
  this.droppedSet.add(n2);
10052
- } else if (this.addedSet.has(m.target) && nodeId === -1) ;
10053
- else if (isAncestorRemoved(m.target, this.mirror)) ;
10025
+ } else if (this.addedSet.has(m2.target) && nodeId === -1) ;
10026
+ else if (isAncestorRemoved(m2.target, this.mirror)) ;
10054
10027
  else if (this.movedSet.has(n2) && this.movedMap[moveKey(nodeId, parentId)]) {
10055
10028
  deepDelete(this.movedSet, n2);
10056
10029
  } else {
10057
10030
  this.removes.push({
10058
10031
  parentId,
10059
10032
  id: nodeId,
10060
- isShadow: isShadowRoot(m.target) && isNativeShadowDom(m.target) ? true : void 0
10033
+ isShadow: isShadowRoot(m2.target) && isNativeShadowDom(m2.target) ? true : void 0
10061
10034
  });
10062
10035
  processRemoves(n2, this.removesSubTreeCache);
10063
10036
  }
@@ -10221,7 +10194,7 @@ function getEventTarget(event) {
10221
10194
  } else if ("path" in event && event.path.length) {
10222
10195
  return event.path[0];
10223
10196
  }
10224
- } catch (e) {
10197
+ } catch (e3) {
10225
10198
  }
10226
10199
  return event && event.target;
10227
10200
  }
@@ -10261,9 +10234,9 @@ function initMoveObserver({
10261
10234
  (source) => {
10262
10235
  const totalOffset = Date.now() - timeBaseline;
10263
10236
  mousemoveCb(
10264
- positions.map((p) => {
10265
- p.timeOffset -= totalOffset;
10266
- return p;
10237
+ positions.map((p2) => {
10238
+ p2.timeOffset -= totalOffset;
10239
+ return p2;
10267
10240
  }),
10268
10241
  source
10269
10242
  );
@@ -10303,7 +10276,7 @@ function initMoveObserver({
10303
10276
  on("drag", updatePosition, doc)
10304
10277
  ];
10305
10278
  return callbackWrapper(() => {
10306
- handlers.forEach((h) => h());
10279
+ handlers.forEach((h2) => h2());
10307
10280
  });
10308
10281
  }
10309
10282
  function initMouseInteractionObserver({
@@ -10365,12 +10338,12 @@ function initMouseInteractionObserver({
10365
10338
  pointerType = currentPointerType;
10366
10339
  currentPointerType = null;
10367
10340
  }
10368
- const e2 = legacy_isTouchEvent(event) ? event.changedTouches[0] : event;
10369
- if (!e2) {
10341
+ const e22 = legacy_isTouchEvent(event) ? event.changedTouches[0] : event;
10342
+ if (!e22) {
10370
10343
  return;
10371
10344
  }
10372
10345
  const id = mirror2.getId(target);
10373
- const { clientX, clientY } = e2;
10346
+ const { clientX, clientY } = e22;
10374
10347
  let elContext;
10375
10348
  if (captureElementContext && target instanceof Element) {
10376
10349
  const isClickEvent = MouseInteractions[thisEventKey] === MouseInteractions.Click;
@@ -10413,7 +10386,7 @@ function initMouseInteractionObserver({
10413
10386
  handlers.push(on(eventName, handler, doc));
10414
10387
  });
10415
10388
  return callbackWrapper(() => {
10416
- handlers.forEach((h) => h());
10389
+ handlers.forEach((h2) => h2());
10417
10390
  });
10418
10391
  }
10419
10392
  function initScrollObserver({
@@ -10562,7 +10535,7 @@ function initInputObserver({
10562
10535
  const currentWindow = doc.defaultView;
10563
10536
  if (!currentWindow) {
10564
10537
  return () => {
10565
- handlers.forEach((h) => h());
10538
+ handlers.forEach((h2) => h2());
10566
10539
  };
10567
10540
  }
10568
10541
  const propertyDescriptor = currentWindow.Object.getOwnPropertyDescriptor(
@@ -10581,9 +10554,9 @@ function initInputObserver({
10581
10554
  if (propertyDescriptor && propertyDescriptor.set) {
10582
10555
  handlers.push(
10583
10556
  ...hookProperties.map(
10584
- (p) => hookSetter(
10585
- p[0],
10586
- p[1],
10557
+ (p2) => hookSetter(
10558
+ p2[0],
10559
+ p2[1],
10587
10560
  {
10588
10561
  set() {
10589
10562
  callbackWrapper(eventHandler)({
@@ -10600,7 +10573,7 @@ function initInputObserver({
10600
10573
  );
10601
10574
  }
10602
10575
  return callbackWrapper(() => {
10603
- handlers.forEach((h) => h());
10576
+ handlers.forEach((h2) => h2());
10604
10577
  });
10605
10578
  }
10606
10579
  function getNestedCSSRulePositions(rule2) {
@@ -10853,7 +10826,7 @@ function initAdoptedStyleSheetObserver({
10853
10826
  if (hostId !== null && hostId !== -1) {
10854
10827
  try {
10855
10828
  stylesheetManager.adoptStyleSheets(sheets, hostId);
10856
- } catch (e2) {
10829
+ } catch (e22) {
10857
10830
  }
10858
10831
  }
10859
10832
  return result2;
@@ -10978,7 +10951,7 @@ function initMediaInteractionObserver({
10978
10951
  on("ratechange", handler(MediaInteractions.RateChange), doc)
10979
10952
  ];
10980
10953
  return callbackWrapper(() => {
10981
- handlers.forEach((h) => h());
10954
+ handlers.forEach((h2) => h2());
10982
10955
  });
10983
10956
  }
10984
10957
  function initFontObserver({ fontCb, doc }) {
@@ -11007,9 +10980,9 @@ function initFontObserver({ fontCb, doc }) {
11007
10980
  return function(fontFace) {
11008
10981
  setTimeout(
11009
10982
  callbackWrapper(() => {
11010
- const p = fontMap.get(fontFace);
11011
- if (p) {
11012
- fontCb(p);
10983
+ const p2 = fontMap.get(fontFace);
10984
+ if (p2) {
10985
+ fontCb(p2);
11013
10986
  fontMap.delete(fontFace);
11014
10987
  }
11015
10988
  }),
@@ -11024,7 +10997,7 @@ function initFontObserver({ fontCb, doc }) {
11024
10997
  });
11025
10998
  handlers.push(restoreHandler);
11026
10999
  return callbackWrapper(() => {
11027
- handlers.forEach((h) => h());
11000
+ handlers.forEach((h2) => h2());
11028
11001
  });
11029
11002
  }
11030
11003
  function initSelectionObserver(param) {
@@ -11071,7 +11044,7 @@ function initCustomElementObserver({
11071
11044
  name
11072
11045
  }
11073
11046
  });
11074
- } catch (e2) {
11047
+ } catch (e22) {
11075
11048
  console.warn(`Custom element callback failed for ${name}`);
11076
11049
  }
11077
11050
  return original.apply(this, [name, constructor, options]);
@@ -11096,77 +11069,77 @@ function mergeHooks(o2, hooks) {
11096
11069
  selectionCb,
11097
11070
  customElementCb
11098
11071
  } = o2;
11099
- o2.mutationCb = (...p) => {
11072
+ o2.mutationCb = (...p2) => {
11100
11073
  if (hooks.mutation) {
11101
- hooks.mutation(...p);
11074
+ hooks.mutation(...p2);
11102
11075
  }
11103
- mutationCb(...p);
11076
+ mutationCb(...p2);
11104
11077
  };
11105
- o2.mousemoveCb = (...p) => {
11078
+ o2.mousemoveCb = (...p2) => {
11106
11079
  if (hooks.mousemove) {
11107
- hooks.mousemove(...p);
11080
+ hooks.mousemove(...p2);
11108
11081
  }
11109
- mousemoveCb(...p);
11082
+ mousemoveCb(...p2);
11110
11083
  };
11111
- o2.mouseInteractionCb = (...p) => {
11084
+ o2.mouseInteractionCb = (...p2) => {
11112
11085
  if (hooks.mouseInteraction) {
11113
- hooks.mouseInteraction(...p);
11086
+ hooks.mouseInteraction(...p2);
11114
11087
  }
11115
- mouseInteractionCb(...p);
11088
+ mouseInteractionCb(...p2);
11116
11089
  };
11117
- o2.scrollCb = (...p) => {
11090
+ o2.scrollCb = (...p2) => {
11118
11091
  if (hooks.scroll) {
11119
- hooks.scroll(...p);
11092
+ hooks.scroll(...p2);
11120
11093
  }
11121
- scrollCb(...p);
11094
+ scrollCb(...p2);
11122
11095
  };
11123
- o2.viewportResizeCb = (...p) => {
11096
+ o2.viewportResizeCb = (...p2) => {
11124
11097
  if (hooks.viewportResize) {
11125
- hooks.viewportResize(...p);
11098
+ hooks.viewportResize(...p2);
11126
11099
  }
11127
- viewportResizeCb(...p);
11100
+ viewportResizeCb(...p2);
11128
11101
  };
11129
- o2.inputCb = (...p) => {
11102
+ o2.inputCb = (...p2) => {
11130
11103
  if (hooks.input) {
11131
- hooks.input(...p);
11104
+ hooks.input(...p2);
11132
11105
  }
11133
- inputCb(...p);
11106
+ inputCb(...p2);
11134
11107
  };
11135
- o2.mediaInteractionCb = (...p) => {
11108
+ o2.mediaInteractionCb = (...p2) => {
11136
11109
  if (hooks.mediaInteaction) {
11137
- hooks.mediaInteaction(...p);
11110
+ hooks.mediaInteaction(...p2);
11138
11111
  }
11139
- mediaInteractionCb(...p);
11112
+ mediaInteractionCb(...p2);
11140
11113
  };
11141
- o2.styleSheetRuleCb = (...p) => {
11114
+ o2.styleSheetRuleCb = (...p2) => {
11142
11115
  if (hooks.styleSheetRule) {
11143
- hooks.styleSheetRule(...p);
11116
+ hooks.styleSheetRule(...p2);
11144
11117
  }
11145
- styleSheetRuleCb(...p);
11118
+ styleSheetRuleCb(...p2);
11146
11119
  };
11147
- o2.styleDeclarationCb = (...p) => {
11120
+ o2.styleDeclarationCb = (...p2) => {
11148
11121
  if (hooks.styleDeclaration) {
11149
- hooks.styleDeclaration(...p);
11122
+ hooks.styleDeclaration(...p2);
11150
11123
  }
11151
- styleDeclarationCb(...p);
11124
+ styleDeclarationCb(...p2);
11152
11125
  };
11153
- o2.canvasMutationCb = (...p) => {
11126
+ o2.canvasMutationCb = (...p2) => {
11154
11127
  if (hooks.canvasMutation) {
11155
- hooks.canvasMutation(...p);
11128
+ hooks.canvasMutation(...p2);
11156
11129
  }
11157
- canvasMutationCb(...p);
11130
+ canvasMutationCb(...p2);
11158
11131
  };
11159
- o2.fontCb = (...p) => {
11132
+ o2.fontCb = (...p2) => {
11160
11133
  if (hooks.font) {
11161
- hooks.font(...p);
11134
+ hooks.font(...p2);
11162
11135
  }
11163
- fontCb(...p);
11136
+ fontCb(...p2);
11164
11137
  };
11165
- o2.selectionCb = (...p) => {
11138
+ o2.selectionCb = (...p2) => {
11166
11139
  if (hooks.selection) {
11167
- hooks.selection(...p);
11140
+ hooks.selection(...p2);
11168
11141
  }
11169
- selectionCb(...p);
11142
+ selectionCb(...p2);
11170
11143
  };
11171
11144
  o2.customElementCb = (...c2) => {
11172
11145
  if (hooks.customElement) {
@@ -11221,7 +11194,7 @@ function initObservers(o2, hooks = {}) {
11221
11194
  );
11222
11195
  }
11223
11196
  return callbackWrapper(() => {
11224
- mutationBuffers.forEach((b) => b.reset());
11197
+ mutationBuffers.forEach((b2) => b2.reset());
11225
11198
  mutationObserver == null ? void 0 : mutationObserver.disconnect();
11226
11199
  mousemoveHandler();
11227
11200
  mouseInteractionHandler();
@@ -11235,7 +11208,7 @@ function initObservers(o2, hooks = {}) {
11235
11208
  fontObserver();
11236
11209
  selectionObserver();
11237
11210
  customElementObserver();
11238
- pluginHandlers.forEach((h) => h());
11211
+ pluginHandlers.forEach((h2) => h2());
11239
11212
  });
11240
11213
  }
11241
11214
  function hasNestedCSSRule(prop) {
@@ -11390,18 +11363,18 @@ var IframeManager = class {
11390
11363
  crossOriginMessageEvent.data.isCheckout
11391
11364
  );
11392
11365
  }
11393
- transformCrossOriginEvent(iframeEl, e2) {
11366
+ transformCrossOriginEvent(iframeEl, e22) {
11394
11367
  var _a2;
11395
- switch (e2.type) {
11368
+ switch (e22.type) {
11396
11369
  case EventType.FullSnapshot: {
11397
11370
  this.crossOriginIframeMirror.reset(iframeEl);
11398
11371
  this.crossOriginIframeStyleMirror.reset(iframeEl);
11399
- this.replaceIdOnNode(e2.data.node, iframeEl);
11400
- const rootId = e2.data.node.id;
11372
+ this.replaceIdOnNode(e22.data.node, iframeEl);
11373
+ const rootId = e22.data.node.id;
11401
11374
  this.crossOriginIframeRootIdMap.set(iframeEl, rootId);
11402
- this.patchRootIdOnNode(e2.data.node, rootId);
11375
+ this.patchRootIdOnNode(e22.data.node, rootId);
11403
11376
  return {
11404
- timestamp: e2.timestamp,
11377
+ timestamp: e22.timestamp,
11405
11378
  type: EventType.IncrementalSnapshot,
11406
11379
  data: {
11407
11380
  source: IncrementalSource.Mutation,
@@ -11409,7 +11382,7 @@ var IframeManager = class {
11409
11382
  {
11410
11383
  parentId: this.mirror.getId(iframeEl),
11411
11384
  nextId: null,
11412
- node: e2.data.node
11385
+ node: e22.data.node
11413
11386
  }
11414
11387
  ],
11415
11388
  removes: [],
@@ -11425,20 +11398,20 @@ var IframeManager = class {
11425
11398
  return false;
11426
11399
  }
11427
11400
  case EventType.Plugin: {
11428
- return e2;
11401
+ return e22;
11429
11402
  }
11430
11403
  case EventType.Custom: {
11431
11404
  this.replaceIds(
11432
- e2.data.payload,
11405
+ e22.data.payload,
11433
11406
  iframeEl,
11434
11407
  ["id", "parentId", "previousId", "nextId"]
11435
11408
  );
11436
- return e2;
11409
+ return e22;
11437
11410
  }
11438
11411
  case EventType.IncrementalSnapshot: {
11439
- switch (e2.data.source) {
11412
+ switch (e22.data.source) {
11440
11413
  case IncrementalSource.Mutation: {
11441
- e2.data.adds.forEach((n2) => {
11414
+ e22.data.adds.forEach((n2) => {
11442
11415
  this.replaceIds(n2, iframeEl, [
11443
11416
  "parentId",
11444
11417
  "nextId",
@@ -11448,24 +11421,24 @@ var IframeManager = class {
11448
11421
  const rootId = this.crossOriginIframeRootIdMap.get(iframeEl);
11449
11422
  rootId && this.patchRootIdOnNode(n2.node, rootId);
11450
11423
  });
11451
- e2.data.removes.forEach((n2) => {
11424
+ e22.data.removes.forEach((n2) => {
11452
11425
  this.replaceIds(n2, iframeEl, ["parentId", "id"]);
11453
11426
  });
11454
- e2.data.attributes.forEach((n2) => {
11427
+ e22.data.attributes.forEach((n2) => {
11455
11428
  this.replaceIds(n2, iframeEl, ["id"]);
11456
11429
  });
11457
- e2.data.texts.forEach((n2) => {
11430
+ e22.data.texts.forEach((n2) => {
11458
11431
  this.replaceIds(n2, iframeEl, ["id"]);
11459
11432
  });
11460
- return e2;
11433
+ return e22;
11461
11434
  }
11462
11435
  case IncrementalSource.Drag:
11463
11436
  case IncrementalSource.TouchMove:
11464
11437
  case IncrementalSource.MouseMove: {
11465
- e2.data.positions.forEach((p) => {
11466
- this.replaceIds(p, iframeEl, ["id"]);
11438
+ e22.data.positions.forEach((p2) => {
11439
+ this.replaceIds(p2, iframeEl, ["id"]);
11467
11440
  });
11468
- return e2;
11441
+ return e22;
11469
11442
  }
11470
11443
  case IncrementalSource.ViewportResize: {
11471
11444
  return false;
@@ -11475,31 +11448,31 @@ var IframeManager = class {
11475
11448
  case IncrementalSource.Scroll:
11476
11449
  case IncrementalSource.CanvasMutation:
11477
11450
  case IncrementalSource.Input: {
11478
- this.replaceIds(e2.data, iframeEl, ["id"]);
11479
- return e2;
11451
+ this.replaceIds(e22.data, iframeEl, ["id"]);
11452
+ return e22;
11480
11453
  }
11481
11454
  case IncrementalSource.StyleSheetRule:
11482
11455
  case IncrementalSource.StyleDeclaration: {
11483
- this.replaceIds(e2.data, iframeEl, ["id"]);
11484
- this.replaceStyleIds(e2.data, iframeEl, ["styleId"]);
11485
- return e2;
11456
+ this.replaceIds(e22.data, iframeEl, ["id"]);
11457
+ this.replaceStyleIds(e22.data, iframeEl, ["styleId"]);
11458
+ return e22;
11486
11459
  }
11487
11460
  case IncrementalSource.Font: {
11488
- return e2;
11461
+ return e22;
11489
11462
  }
11490
11463
  case IncrementalSource.Selection: {
11491
- e2.data.ranges.forEach((range) => {
11464
+ e22.data.ranges.forEach((range) => {
11492
11465
  this.replaceIds(range, iframeEl, ["start", "end"]);
11493
11466
  });
11494
- return e2;
11467
+ return e22;
11495
11468
  }
11496
11469
  case IncrementalSource.AdoptedStyleSheet: {
11497
- this.replaceIds(e2.data, iframeEl, ["id"]);
11498
- this.replaceStyleIds(e2.data, iframeEl, ["styleIds"]);
11499
- (_a2 = e2.data.styles) == null ? void 0 : _a2.forEach((style) => {
11470
+ this.replaceIds(e22.data, iframeEl, ["id"]);
11471
+ this.replaceStyleIds(e22.data, iframeEl, ["styleIds"]);
11472
+ (_a2 = e22.data.styles) == null ? void 0 : _a2.forEach((style) => {
11500
11473
  this.replaceStyleIds(style, iframeEl, ["styleId"]);
11501
11474
  });
11502
- return e2;
11475
+ return e22;
11503
11476
  }
11504
11477
  }
11505
11478
  }
@@ -11636,7 +11609,7 @@ var ShadowDomManager = class {
11636
11609
  this.restoreHandlers.forEach((handler) => {
11637
11610
  try {
11638
11611
  handler();
11639
- } catch (e2) {
11612
+ } catch (e22) {
11640
11613
  }
11641
11614
  });
11642
11615
  this.restoreHandlers = [];
@@ -11808,7 +11781,7 @@ function initCanvas2DMutationObserver(cb, win, blockClass, blockSelector) {
11808
11781
  }
11809
11782
  );
11810
11783
  handlers.push(restoreHandler);
11811
- } catch (e) {
11784
+ } catch (e3) {
11812
11785
  const hookHandler = hookSetter(
11813
11786
  win.CanvasRenderingContext2D.prototype,
11814
11787
  prop,
@@ -11827,7 +11800,7 @@ function initCanvas2DMutationObserver(cb, win, blockClass, blockSelector) {
11827
11800
  }
11828
11801
  }
11829
11802
  return () => {
11830
- handlers.forEach((h) => h());
11803
+ handlers.forEach((h2) => h2());
11831
11804
  };
11832
11805
  }
11833
11806
  function getNormalizedContextName(contextType) {
@@ -11862,11 +11835,11 @@ function initCanvasContextObserver(win, blockClass, blockSelector, setPreserveDr
11862
11835
  }
11863
11836
  );
11864
11837
  handlers.push(restoreHandler);
11865
- } catch (e) {
11838
+ } catch (e3) {
11866
11839
  console.error("failed to patch HTMLCanvasElement.prototype.getContext");
11867
11840
  }
11868
11841
  return () => {
11869
- handlers.forEach((h) => h());
11842
+ handlers.forEach((h2) => h2());
11870
11843
  };
11871
11844
  }
11872
11845
  function patchGLPrototype(prototype, type, cb, blockClass, blockSelector, win) {
@@ -11909,7 +11882,7 @@ function patchGLPrototype(prototype, type, cb, blockClass, blockSelector, win) {
11909
11882
  }
11910
11883
  );
11911
11884
  handlers.push(restoreHandler);
11912
- } catch (e) {
11885
+ } catch (e3) {
11913
11886
  const hookHandler = hookSetter(prototype, prop, {
11914
11887
  set(v2) {
11915
11888
  cb(this.canvas, {
@@ -11950,7 +11923,7 @@ function initCanvasWebGLMutationObserver(cb, win, blockClass, blockSelector) {
11950
11923
  );
11951
11924
  }
11952
11925
  return () => {
11953
- handlers.forEach((h) => h());
11926
+ handlers.forEach((h2) => h2());
11954
11927
  };
11955
11928
  }
11956
11929
  var encodedJs = "KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=";
@@ -11968,7 +11941,7 @@ function WorkerWrapper(options) {
11968
11941
  (window.URL || window.webkitURL).revokeObjectURL(objURL);
11969
11942
  });
11970
11943
  return worker;
11971
- } catch (e2) {
11944
+ } catch (e22) {
11972
11945
  return new Worker(
11973
11946
  "data:text/javascript;base64," + encodedJs,
11974
11947
  {
@@ -12039,11 +12012,11 @@ var CanvasManager = class {
12039
12012
  );
12040
12013
  const snapshotInProgressMap = /* @__PURE__ */ new Map();
12041
12014
  const worker = new WorkerWrapper();
12042
- worker.onmessage = (e2) => {
12043
- const { id } = e2.data;
12015
+ worker.onmessage = (e22) => {
12016
+ const { id } = e22.data;
12044
12017
  snapshotInProgressMap.set(id, false);
12045
- if (!("base64" in e2.data)) return;
12046
- const { base64, type, width, height } = e2.data;
12018
+ if (!("base64" in e22.data)) return;
12019
+ const { base64, type, width, height } = e22.data;
12047
12020
  this.mutationCb({
12048
12021
  id,
12049
12022
  type: CanvasContext["2D"],
@@ -12273,7 +12246,7 @@ var takeFullSnapshot$1;
12273
12246
  var canvasManager;
12274
12247
  var recording = false;
12275
12248
  try {
12276
- if (Array.from([1], (x2) => x2 * 2)[0] !== 2) {
12249
+ if (Array.from([1], (x22) => x22 * 2)[0] !== 2) {
12277
12250
  const cleanFrame = document.createElement("iframe");
12278
12251
  document.body.appendChild(cleanFrame);
12279
12252
  Array.from = ((_a = cleanFrame.contentWindow) == null ? void 0 : _a.Array.from) || Array.from;
@@ -12327,7 +12300,7 @@ function record(options = {}) {
12327
12300
  if (window.parent.document) {
12328
12301
  passEmitsToParent = false;
12329
12302
  }
12330
- } catch (e2) {
12303
+ } catch (e22) {
12331
12304
  passEmitsToParent = true;
12332
12305
  }
12333
12306
  }
@@ -12370,70 +12343,70 @@ function record(options = {}) {
12370
12343
  polyfill$1();
12371
12344
  let lastFullSnapshotEvent;
12372
12345
  let incrementalSnapshotCount = 0;
12373
- const eventProcessor = (e2) => {
12346
+ const eventProcessor = (e22) => {
12374
12347
  for (const plugin3 of plugins || []) {
12375
12348
  if (plugin3.eventProcessor) {
12376
- e2 = plugin3.eventProcessor(e2);
12349
+ e22 = plugin3.eventProcessor(e22);
12377
12350
  }
12378
12351
  }
12379
12352
  if (packFn && // Disable packing events which will be emitted to parent frames.
12380
12353
  !passEmitsToParent) {
12381
- e2 = packFn(e2);
12354
+ e22 = packFn(e22);
12382
12355
  }
12383
- return e2;
12356
+ return e22;
12384
12357
  };
12385
12358
  wrappedEmit = (r2, isCheckout) => {
12386
12359
  var _a2;
12387
- const e2 = r2;
12388
- e2.timestamp = nowTimestamp();
12389
- if (((_a2 = mutationBuffers[0]) == null ? void 0 : _a2.isFrozen()) && e2.type !== EventType.FullSnapshot && !(e2.type === EventType.IncrementalSnapshot && e2.data.source === IncrementalSource.Mutation)) {
12360
+ const e22 = r2;
12361
+ e22.timestamp = nowTimestamp();
12362
+ if (((_a2 = mutationBuffers[0]) == null ? void 0 : _a2.isFrozen()) && e22.type !== EventType.FullSnapshot && !(e22.type === EventType.IncrementalSnapshot && e22.data.source === IncrementalSource.Mutation)) {
12390
12363
  mutationBuffers.forEach((buf) => buf.unfreeze());
12391
12364
  }
12392
12365
  if (inEmittingFrame) {
12393
- emit == null ? void 0 : emit(eventProcessor(e2), isCheckout);
12366
+ emit == null ? void 0 : emit(eventProcessor(e22), isCheckout);
12394
12367
  } else if (passEmitsToParent) {
12395
12368
  const message = {
12396
12369
  type: "rrweb",
12397
- event: eventProcessor(e2),
12370
+ event: eventProcessor(e22),
12398
12371
  origin: window.location.origin,
12399
12372
  isCheckout
12400
12373
  };
12401
12374
  window.parent.postMessage(message, "*");
12402
12375
  }
12403
- if (e2.type === EventType.FullSnapshot) {
12404
- lastFullSnapshotEvent = e2;
12376
+ if (e22.type === EventType.FullSnapshot) {
12377
+ lastFullSnapshotEvent = e22;
12405
12378
  incrementalSnapshotCount = 0;
12406
- } else if (e2.type === EventType.IncrementalSnapshot) {
12407
- if (e2.data.source === IncrementalSource.Mutation && e2.data.isAttachIframe) {
12379
+ } else if (e22.type === EventType.IncrementalSnapshot) {
12380
+ if (e22.data.source === IncrementalSource.Mutation && e22.data.isAttachIframe) {
12408
12381
  return;
12409
12382
  }
12410
12383
  incrementalSnapshotCount++;
12411
12384
  const exceedCount = checkoutEveryNth && incrementalSnapshotCount >= checkoutEveryNth;
12412
- const exceedTime = checkoutEveryNms && e2.timestamp - lastFullSnapshotEvent.timestamp > checkoutEveryNms;
12385
+ const exceedTime = checkoutEveryNms && e22.timestamp - lastFullSnapshotEvent.timestamp > checkoutEveryNms;
12413
12386
  if (exceedCount || exceedTime) {
12414
12387
  takeFullSnapshot$1(true);
12415
12388
  }
12416
12389
  }
12417
12390
  };
12418
- const wrappedMutationEmit = (m) => {
12391
+ const wrappedMutationEmit = (m2) => {
12419
12392
  wrappedEmit({
12420
12393
  type: EventType.IncrementalSnapshot,
12421
12394
  data: __spreadValues({
12422
12395
  source: IncrementalSource.Mutation
12423
- }, m)
12396
+ }, m2)
12424
12397
  });
12425
12398
  };
12426
- const wrappedScrollEmit = (p) => wrappedEmit({
12399
+ const wrappedScrollEmit = (p2) => wrappedEmit({
12427
12400
  type: EventType.IncrementalSnapshot,
12428
12401
  data: __spreadValues({
12429
12402
  source: IncrementalSource.Scroll
12430
- }, p)
12403
+ }, p2)
12431
12404
  });
12432
- const wrappedCanvasMutationEmit = (p) => wrappedEmit({
12405
+ const wrappedCanvasMutationEmit = (p2) => wrappedEmit({
12433
12406
  type: EventType.IncrementalSnapshot,
12434
12407
  data: __spreadValues({
12435
12408
  source: IncrementalSource.CanvasMutation
12436
- }, p)
12409
+ }, p2)
12437
12410
  });
12438
12411
  const wrappedAdoptedStyleSheetEmit = (a2) => wrappedEmit({
12439
12412
  type: EventType.IncrementalSnapshot,
@@ -12582,18 +12555,18 @@ function record(options = {}) {
12582
12555
  positions
12583
12556
  }
12584
12557
  }),
12585
- mouseInteractionCb: (d) => wrappedEmit({
12558
+ mouseInteractionCb: (d2) => wrappedEmit({
12586
12559
  type: EventType.IncrementalSnapshot,
12587
12560
  data: __spreadValues({
12588
12561
  source: IncrementalSource.MouseInteraction
12589
- }, d)
12562
+ }, d2)
12590
12563
  }),
12591
12564
  scrollCb: wrappedScrollEmit,
12592
- viewportResizeCb: (d) => wrappedEmit({
12565
+ viewportResizeCb: (d2) => wrappedEmit({
12593
12566
  type: EventType.IncrementalSnapshot,
12594
12567
  data: __spreadValues({
12595
12568
  source: IncrementalSource.ViewportResize
12596
- }, d)
12569
+ }, d2)
12597
12570
  }),
12598
12571
  inputCb: (v2) => wrappedEmit({
12599
12572
  type: EventType.IncrementalSnapshot,
@@ -12601,11 +12574,11 @@ function record(options = {}) {
12601
12574
  source: IncrementalSource.Input
12602
12575
  }, v2)
12603
12576
  }),
12604
- mediaInteractionCb: (p) => wrappedEmit({
12577
+ mediaInteractionCb: (p2) => wrappedEmit({
12605
12578
  type: EventType.IncrementalSnapshot,
12606
12579
  data: __spreadValues({
12607
12580
  source: IncrementalSource.MediaInteraction
12608
- }, p)
12581
+ }, p2)
12609
12582
  }),
12610
12583
  styleSheetRuleCb: (r2) => wrappedEmit({
12611
12584
  type: EventType.IncrementalSnapshot,
@@ -12620,18 +12593,18 @@ function record(options = {}) {
12620
12593
  }, r2)
12621
12594
  }),
12622
12595
  canvasMutationCb: wrappedCanvasMutationEmit,
12623
- fontCb: (p) => wrappedEmit({
12596
+ fontCb: (p2) => wrappedEmit({
12624
12597
  type: EventType.IncrementalSnapshot,
12625
12598
  data: __spreadValues({
12626
12599
  source: IncrementalSource.Font
12627
- }, p)
12600
+ }, p2)
12628
12601
  }),
12629
- selectionCb: (p) => {
12602
+ selectionCb: (p2) => {
12630
12603
  wrappedEmit({
12631
12604
  type: EventType.IncrementalSnapshot,
12632
12605
  data: __spreadValues({
12633
12606
  source: IncrementalSource.Selection
12634
- }, p)
12607
+ }, p2)
12635
12608
  });
12636
12609
  },
12637
12610
  customElementCb: (c2) => {
@@ -12671,13 +12644,13 @@ function record(options = {}) {
12671
12644
  ignoreCSSAttributes,
12672
12645
  captureElementContext,
12673
12646
  elementContextOptions,
12674
- plugins: ((_a2 = plugins == null ? void 0 : plugins.filter((p) => p.observer)) == null ? void 0 : _a2.map((p) => ({
12675
- observer: p.observer,
12676
- options: p.options,
12647
+ plugins: ((_a2 = plugins == null ? void 0 : plugins.filter((p2) => p2.observer)) == null ? void 0 : _a2.map((p2) => ({
12648
+ observer: p2.observer,
12649
+ options: p2.options,
12677
12650
  callback: (payload) => wrappedEmit({
12678
12651
  type: EventType.Plugin,
12679
12652
  data: {
12680
- plugin: p.name,
12653
+ plugin: p2.name,
12681
12654
  payload
12682
12655
  }
12683
12656
  })
@@ -12774,6 +12747,237 @@ var { addCustomEvent } = record;
12774
12747
  var { freezePage } = record;
12775
12748
  var { takeFullSnapshot } = record;
12776
12749
 
12750
+ // node_modules/web-vitals/dist/web-vitals.js
12751
+ var e;
12752
+ var o = -1;
12753
+ var a = function(e3) {
12754
+ addEventListener("pageshow", (function(n2) {
12755
+ n2.persisted && (o = n2.timeStamp, e3(n2));
12756
+ }), true);
12757
+ };
12758
+ var c = function() {
12759
+ var e3 = self.performance && performance.getEntriesByType && performance.getEntriesByType("navigation")[0];
12760
+ if (e3 && e3.responseStart > 0 && e3.responseStart < performance.now()) return e3;
12761
+ };
12762
+ var u = function() {
12763
+ var e3 = c();
12764
+ return e3 && e3.activationStart || 0;
12765
+ };
12766
+ var f = function(e3, n2) {
12767
+ var t = c(), r = "navigate";
12768
+ o >= 0 ? r = "back-forward-cache" : t && (document.prerendering || u() > 0 ? r = "prerender" : document.wasDiscarded ? r = "restore" : t.type && (r = t.type.replace(/_/g, "-")));
12769
+ return { name: e3, value: void 0 === n2 ? -1 : n2, rating: "good", delta: 0, entries: [], id: "v4-".concat(Date.now(), "-").concat(Math.floor(8999999999999 * Math.random()) + 1e12), navigationType: r };
12770
+ };
12771
+ var s = function(e3, n2, t) {
12772
+ try {
12773
+ if (PerformanceObserver.supportedEntryTypes.includes(e3)) {
12774
+ var r = new PerformanceObserver((function(e4) {
12775
+ Promise.resolve().then((function() {
12776
+ n2(e4.getEntries());
12777
+ }));
12778
+ }));
12779
+ return r.observe(Object.assign({ type: e3, buffered: true }, t || {})), r;
12780
+ }
12781
+ } catch (e4) {
12782
+ }
12783
+ };
12784
+ var d = function(e3, n2, t, r) {
12785
+ var i, o2;
12786
+ return function(a2) {
12787
+ n2.value >= 0 && (a2 || r) && ((o2 = n2.value - (i || 0)) || void 0 === i) && (i = n2.value, n2.delta = o2, n2.rating = (function(e4, n3) {
12788
+ return e4 > n3[1] ? "poor" : e4 > n3[0] ? "needs-improvement" : "good";
12789
+ })(n2.value, t), e3(n2));
12790
+ };
12791
+ };
12792
+ var l = function(e3) {
12793
+ requestAnimationFrame((function() {
12794
+ return requestAnimationFrame((function() {
12795
+ return e3();
12796
+ }));
12797
+ }));
12798
+ };
12799
+ var p = function(e3) {
12800
+ document.addEventListener("visibilitychange", (function() {
12801
+ "hidden" === document.visibilityState && e3();
12802
+ }));
12803
+ };
12804
+ var v = function(e3) {
12805
+ var n2 = false;
12806
+ return function() {
12807
+ n2 || (e3(), n2 = true);
12808
+ };
12809
+ };
12810
+ var m = -1;
12811
+ var h = function() {
12812
+ return "hidden" !== document.visibilityState || document.prerendering ? 1 / 0 : 0;
12813
+ };
12814
+ var g = function(e3) {
12815
+ "hidden" === document.visibilityState && m > -1 && (m = "visibilitychange" === e3.type ? e3.timeStamp : 0, T());
12816
+ };
12817
+ var y = function() {
12818
+ addEventListener("visibilitychange", g, true), addEventListener("prerenderingchange", g, true);
12819
+ };
12820
+ var T = function() {
12821
+ removeEventListener("visibilitychange", g, true), removeEventListener("prerenderingchange", g, true);
12822
+ };
12823
+ var E = function() {
12824
+ return m < 0 && (m = h(), y(), a((function() {
12825
+ setTimeout((function() {
12826
+ m = h(), y();
12827
+ }), 0);
12828
+ }))), { get firstHiddenTime() {
12829
+ return m;
12830
+ } };
12831
+ };
12832
+ var C = function(e3) {
12833
+ document.prerendering ? addEventListener("prerenderingchange", (function() {
12834
+ return e3();
12835
+ }), true) : e3();
12836
+ };
12837
+ var b = [1800, 3e3];
12838
+ var S = function(e3, n2) {
12839
+ n2 = n2 || {}, C((function() {
12840
+ var t, r = E(), i = f("FCP"), o2 = s("paint", (function(e4) {
12841
+ e4.forEach((function(e5) {
12842
+ "first-contentful-paint" === e5.name && (o2.disconnect(), e5.startTime < r.firstHiddenTime && (i.value = Math.max(e5.startTime - u(), 0), i.entries.push(e5), t(true)));
12843
+ }));
12844
+ }));
12845
+ o2 && (t = d(e3, i, b, n2.reportAllChanges), a((function(r2) {
12846
+ i = f("FCP"), t = d(e3, i, b, n2.reportAllChanges), l((function() {
12847
+ i.value = performance.now() - r2.timeStamp, t(true);
12848
+ }));
12849
+ })));
12850
+ }));
12851
+ };
12852
+ var L = [0.1, 0.25];
12853
+ var w = function(e3, n2) {
12854
+ n2 = n2 || {}, S(v((function() {
12855
+ var t, r = f("CLS", 0), i = 0, o2 = [], c2 = function(e4) {
12856
+ e4.forEach((function(e5) {
12857
+ if (!e5.hadRecentInput) {
12858
+ var n3 = o2[0], t2 = o2[o2.length - 1];
12859
+ i && e5.startTime - t2.startTime < 1e3 && e5.startTime - n3.startTime < 5e3 ? (i += e5.value, o2.push(e5)) : (i = e5.value, o2 = [e5]);
12860
+ }
12861
+ })), i > r.value && (r.value = i, r.entries = o2, t());
12862
+ }, u2 = s("layout-shift", c2);
12863
+ u2 && (t = d(e3, r, L, n2.reportAllChanges), p((function() {
12864
+ c2(u2.takeRecords()), t(true);
12865
+ })), a((function() {
12866
+ i = 0, r = f("CLS", 0), t = d(e3, r, L, n2.reportAllChanges), l((function() {
12867
+ return t();
12868
+ }));
12869
+ })), setTimeout(t, 0));
12870
+ })));
12871
+ };
12872
+ var A = 0;
12873
+ var I = 1 / 0;
12874
+ var P = 0;
12875
+ var M = function(e3) {
12876
+ e3.forEach((function(e4) {
12877
+ e4.interactionId && (I = Math.min(I, e4.interactionId), P = Math.max(P, e4.interactionId), A = P ? (P - I) / 7 + 1 : 0);
12878
+ }));
12879
+ };
12880
+ var k = function() {
12881
+ return e ? A : performance.interactionCount || 0;
12882
+ };
12883
+ var F = function() {
12884
+ "interactionCount" in performance || e || (e = s("event", M, { type: "event", buffered: true, durationThreshold: 0 }));
12885
+ };
12886
+ var D = [];
12887
+ var x2 = /* @__PURE__ */ new Map();
12888
+ var R = 0;
12889
+ var B = function() {
12890
+ var e3 = Math.min(D.length - 1, Math.floor((k() - R) / 50));
12891
+ return D[e3];
12892
+ };
12893
+ var H = [];
12894
+ var q = function(e3) {
12895
+ if (H.forEach((function(n3) {
12896
+ return n3(e3);
12897
+ })), e3.interactionId || "first-input" === e3.entryType) {
12898
+ var n2 = D[D.length - 1], t = x2.get(e3.interactionId);
12899
+ if (t || D.length < 10 || e3.duration > n2.latency) {
12900
+ if (t) e3.duration > t.latency ? (t.entries = [e3], t.latency = e3.duration) : e3.duration === t.latency && e3.startTime === t.entries[0].startTime && t.entries.push(e3);
12901
+ else {
12902
+ var r = { id: e3.interactionId, latency: e3.duration, entries: [e3] };
12903
+ x2.set(r.id, r), D.push(r);
12904
+ }
12905
+ D.sort((function(e4, n3) {
12906
+ return n3.latency - e4.latency;
12907
+ })), D.length > 10 && D.splice(10).forEach((function(e4) {
12908
+ return x2.delete(e4.id);
12909
+ }));
12910
+ }
12911
+ }
12912
+ };
12913
+ var O = function(e3) {
12914
+ var n2 = self.requestIdleCallback || self.setTimeout, t = -1;
12915
+ return e3 = v(e3), "hidden" === document.visibilityState ? e3() : (t = n2(e3), p(e3)), t;
12916
+ };
12917
+ var N = [200, 500];
12918
+ var j = function(e3, n2) {
12919
+ "PerformanceEventTiming" in self && "interactionId" in PerformanceEventTiming.prototype && (n2 = n2 || {}, C((function() {
12920
+ var t;
12921
+ F();
12922
+ var r, i = f("INP"), o2 = function(e4) {
12923
+ O((function() {
12924
+ e4.forEach(q);
12925
+ var n3 = B();
12926
+ n3 && n3.latency !== i.value && (i.value = n3.latency, i.entries = n3.entries, r());
12927
+ }));
12928
+ }, c2 = s("event", o2, { durationThreshold: null !== (t = n2.durationThreshold) && void 0 !== t ? t : 40 });
12929
+ r = d(e3, i, N, n2.reportAllChanges), c2 && (c2.observe({ type: "first-input", buffered: true }), p((function() {
12930
+ o2(c2.takeRecords()), r(true);
12931
+ })), a((function() {
12932
+ R = k(), D.length = 0, x2.clear(), i = f("INP"), r = d(e3, i, N, n2.reportAllChanges);
12933
+ })));
12934
+ })));
12935
+ };
12936
+ var _ = [2500, 4e3];
12937
+ var z = {};
12938
+ var G = function(e3, n2) {
12939
+ n2 = n2 || {}, C((function() {
12940
+ var t, r = E(), i = f("LCP"), o2 = function(e4) {
12941
+ n2.reportAllChanges || (e4 = e4.slice(-1)), e4.forEach((function(e5) {
12942
+ e5.startTime < r.firstHiddenTime && (i.value = Math.max(e5.startTime - u(), 0), i.entries = [e5], t());
12943
+ }));
12944
+ }, c2 = s("largest-contentful-paint", o2);
12945
+ if (c2) {
12946
+ t = d(e3, i, _, n2.reportAllChanges);
12947
+ var m2 = v((function() {
12948
+ z[i.id] || (o2(c2.takeRecords()), c2.disconnect(), z[i.id] = true, t(true));
12949
+ }));
12950
+ ["keydown", "click"].forEach((function(e4) {
12951
+ addEventListener(e4, (function() {
12952
+ return O(m2);
12953
+ }), { once: true, capture: true });
12954
+ })), p(m2), a((function(r2) {
12955
+ i = f("LCP"), t = d(e3, i, _, n2.reportAllChanges), l((function() {
12956
+ i.value = performance.now() - r2.timeStamp, z[i.id] = true, t(true);
12957
+ }));
12958
+ }));
12959
+ }
12960
+ }));
12961
+ };
12962
+ var J = [800, 1800];
12963
+ var K = function e2(n2) {
12964
+ document.prerendering ? C((function() {
12965
+ return e2(n2);
12966
+ })) : "complete" !== document.readyState ? addEventListener("load", (function() {
12967
+ return e2(n2);
12968
+ }), true) : setTimeout(n2, 0);
12969
+ };
12970
+ var Q = function(e3, n2) {
12971
+ n2 = n2 || {};
12972
+ var t = f("TTFB"), r = d(e3, t, J, n2.reportAllChanges);
12973
+ K((function() {
12974
+ var i = c();
12975
+ i && (t.value = Math.max(i.responseStart - u(), 0), t.entries = [i], r(true), a((function() {
12976
+ t = f("TTFB", 0), (r = d(e3, t, J, n2.reportAllChanges))(true);
12977
+ })));
12978
+ }));
12979
+ };
12980
+
12777
12981
  // src/index.ts
12778
12982
  var PERSISTENCE_KEYS = {
12779
12983
  DISTINCT_ID: "bentolabs_distinct_id",
@@ -12796,7 +13000,7 @@ var Persistence = class {
12796
13000
  try {
12797
13001
  const value = localStorage.getItem(key);
12798
13002
  if (value !== null) return value;
12799
- } catch (e) {
13003
+ } catch (e3) {
12800
13004
  }
12801
13005
  }
12802
13006
  if (this.mode === "cookie" || this.mode === "localStorage+cookie") {
@@ -12808,7 +13012,7 @@ var Persistence = class {
12808
13012
  return decodeURIComponent(cookieValue);
12809
13013
  }
12810
13014
  }
12811
- } catch (e) {
13015
+ } catch (e3) {
12812
13016
  }
12813
13017
  }
12814
13018
  return null;
@@ -12822,7 +13026,7 @@ var Persistence = class {
12822
13026
  if (this.mode === "localStorage" || this.mode === "localStorage+cookie") {
12823
13027
  try {
12824
13028
  localStorage.setItem(key, value);
12825
- } catch (e) {
13029
+ } catch (e3) {
12826
13030
  }
12827
13031
  }
12828
13032
  if (this.mode === "cookie" || this.mode === "localStorage+cookie") {
@@ -12830,7 +13034,7 @@ var Persistence = class {
12830
13034
  const expires = /* @__PURE__ */ new Date();
12831
13035
  expires.setFullYear(expires.getFullYear() + 1);
12832
13036
  document.cookie = `${key}=${encodeURIComponent(value)};expires=${expires.toUTCString()};path=/;SameSite=Lax`;
12833
- } catch (e) {
13037
+ } catch (e3) {
12834
13038
  }
12835
13039
  }
12836
13040
  }
@@ -12843,13 +13047,13 @@ var Persistence = class {
12843
13047
  if (this.mode === "localStorage" || this.mode === "localStorage+cookie") {
12844
13048
  try {
12845
13049
  localStorage.removeItem(key);
12846
- } catch (e) {
13050
+ } catch (e3) {
12847
13051
  }
12848
13052
  }
12849
13053
  if (this.mode === "cookie" || this.mode === "localStorage+cookie") {
12850
13054
  try {
12851
13055
  document.cookie = `${key}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`;
12852
- } catch (e) {
13056
+ } catch (e3) {
12853
13057
  }
12854
13058
  }
12855
13059
  }
@@ -12912,26 +13116,26 @@ var NetworkMonitor = class {
12912
13116
  }
12913
13117
  });
12914
13118
  return urlObj.toString();
12915
- } catch (e) {
13119
+ } catch (e3) {
12916
13120
  return url;
12917
13121
  }
12918
13122
  }
12919
13123
  interceptFetch() {
12920
13124
  if (typeof fetch === "undefined") return;
12921
13125
  this.originalFetch = fetch.bind(window);
12922
- const self = this;
13126
+ const self2 = this;
12923
13127
  window.fetch = async function(input2, init) {
12924
13128
  const url = typeof input2 === "string" ? input2 : input2 instanceof URL ? input2.toString() : input2.url;
12925
- if (self.shouldSkip(url) || !self.shouldSample()) {
12926
- return self.originalFetch(input2, init);
13129
+ if (self2.shouldSkip(url) || !self2.shouldSample()) {
13130
+ return self2.originalFetch(input2, init);
12927
13131
  }
12928
13132
  const startTime = Date.now();
12929
13133
  const method = (init == null ? void 0 : init.method) || "GET";
12930
13134
  try {
12931
- const response = await self.originalFetch(input2, init);
13135
+ const response = await self2.originalFetch(input2, init);
12932
13136
  const duration = Date.now() - startTime;
12933
13137
  const log = {
12934
- url: self.sanitizeUrl(url),
13138
+ url: self2.sanitizeUrl(url),
12935
13139
  method: method.toUpperCase(),
12936
13140
  status: response.status,
12937
13141
  duration,
@@ -12939,14 +13143,14 @@ var NetworkMonitor = class {
12939
13143
  initiator: "fetch",
12940
13144
  timestamp: Date.now()
12941
13145
  };
12942
- self.logs.push(log);
12943
- if (self.logs.length > 500) self.logs.shift();
12944
- self.onCapture(log);
13146
+ self2.logs.push(log);
13147
+ if (self2.logs.length > 500) self2.logs.shift();
13148
+ self2.onCapture(log);
12945
13149
  return response;
12946
13150
  } catch (error) {
12947
13151
  const duration = Date.now() - startTime;
12948
13152
  const log = {
12949
- url: self.sanitizeUrl(url),
13153
+ url: self2.sanitizeUrl(url),
12950
13154
  method: method.toUpperCase(),
12951
13155
  status: 0,
12952
13156
  duration,
@@ -12955,9 +13159,9 @@ var NetworkMonitor = class {
12955
13159
  error: error instanceof Error ? error.message : "Unknown error",
12956
13160
  timestamp: Date.now()
12957
13161
  };
12958
- self.logs.push(log);
12959
- if (self.logs.length > 500) self.logs.shift();
12960
- self.onCapture(log);
13162
+ self2.logs.push(log);
13163
+ if (self2.logs.length > 500) self2.logs.shift();
13164
+ self2.onCapture(log);
12961
13165
  throw error;
12962
13166
  }
12963
13167
  };
@@ -12972,24 +13176,24 @@ var NetworkMonitor = class {
12972
13176
  if (typeof XMLHttpRequest === "undefined") return;
12973
13177
  this.originalXHROpen = XMLHttpRequest.prototype.open;
12974
13178
  this.originalXHRSend = XMLHttpRequest.prototype.send;
12975
- const self = this;
13179
+ const self2 = this;
12976
13180
  XMLHttpRequest.prototype.open = function(method, url, async, username, password) {
12977
13181
  this._bentoUrl = url.toString();
12978
13182
  this._bentoMethod = method;
12979
13183
  this._bentoStartTime = 0;
12980
- return self.originalXHROpen.call(this, method, url, async != null ? async : true, username, password);
13184
+ return self2.originalXHROpen.call(this, method, url, async != null ? async : true, username, password);
12981
13185
  };
12982
13186
  XMLHttpRequest.prototype.send = function(body) {
12983
13187
  const xhr = this;
12984
13188
  const url = xhr._bentoUrl;
12985
- if (self.shouldSkip(url) || !self.shouldSample()) {
12986
- return self.originalXHRSend.call(this, body);
13189
+ if (self2.shouldSkip(url) || !self2.shouldSample()) {
13190
+ return self2.originalXHRSend.call(this, body);
12987
13191
  }
12988
13192
  xhr._bentoStartTime = Date.now();
12989
13193
  const handleLoadEnd = () => {
12990
13194
  const duration = Date.now() - xhr._bentoStartTime;
12991
13195
  const log = {
12992
- url: self.sanitizeUrl(url),
13196
+ url: self2.sanitizeUrl(url),
12993
13197
  method: xhr._bentoMethod.toUpperCase(),
12994
13198
  status: xhr.status,
12995
13199
  duration,
@@ -13000,12 +13204,12 @@ var NetworkMonitor = class {
13000
13204
  if (xhr.status === 0) {
13001
13205
  log.error = "Request failed or was aborted";
13002
13206
  }
13003
- self.logs.push(log);
13004
- if (self.logs.length > 500) self.logs.shift();
13005
- self.onCapture(log);
13207
+ self2.logs.push(log);
13208
+ if (self2.logs.length > 500) self2.logs.shift();
13209
+ self2.onCapture(log);
13006
13210
  };
13007
13211
  xhr.addEventListener("loadend", handleLoadEnd);
13008
- return self.originalXHRSend.call(this, body);
13212
+ return self2.originalXHRSend.call(this, body);
13009
13213
  };
13010
13214
  }
13011
13215
  restoreXHR() {
@@ -13067,7 +13271,7 @@ var StorageMonitor = class {
13067
13271
  }
13068
13272
  interceptLocalStorage() {
13069
13273
  if (typeof localStorage === "undefined") return;
13070
- const self = this;
13274
+ const self2 = this;
13071
13275
  this.originalLocalStorage = {
13072
13276
  setItem: localStorage.setItem.bind(localStorage),
13073
13277
  getItem: localStorage.getItem.bind(localStorage),
@@ -13075,41 +13279,41 @@ var StorageMonitor = class {
13075
13279
  clear: localStorage.clear.bind(localStorage)
13076
13280
  };
13077
13281
  localStorage.setItem = function(key, value) {
13078
- self.addLog({
13282
+ self2.addLog({
13079
13283
  storageType: "localStorage",
13080
13284
  operation: "set",
13081
13285
  key,
13082
13286
  valueType: typeof value,
13083
13287
  timestamp: Date.now()
13084
13288
  });
13085
- return self.originalLocalStorage.setItem(key, value);
13289
+ return self2.originalLocalStorage.setItem(key, value);
13086
13290
  };
13087
13291
  localStorage.getItem = function(key) {
13088
- self.addLog({
13292
+ self2.addLog({
13089
13293
  storageType: "localStorage",
13090
13294
  operation: "get",
13091
13295
  key,
13092
13296
  timestamp: Date.now()
13093
13297
  });
13094
- return self.originalLocalStorage.getItem(key);
13298
+ return self2.originalLocalStorage.getItem(key);
13095
13299
  };
13096
13300
  localStorage.removeItem = function(key) {
13097
- self.addLog({
13301
+ self2.addLog({
13098
13302
  storageType: "localStorage",
13099
13303
  operation: "remove",
13100
13304
  key,
13101
13305
  timestamp: Date.now()
13102
13306
  });
13103
- return self.originalLocalStorage.removeItem(key);
13307
+ return self2.originalLocalStorage.removeItem(key);
13104
13308
  };
13105
13309
  localStorage.clear = function() {
13106
- self.addLog({
13310
+ self2.addLog({
13107
13311
  storageType: "localStorage",
13108
13312
  operation: "clear",
13109
13313
  key: "*",
13110
13314
  timestamp: Date.now()
13111
13315
  });
13112
- return self.originalLocalStorage.clear();
13316
+ return self2.originalLocalStorage.clear();
13113
13317
  };
13114
13318
  }
13115
13319
  restoreLocalStorage() {
@@ -13123,7 +13327,7 @@ var StorageMonitor = class {
13123
13327
  }
13124
13328
  interceptSessionStorage() {
13125
13329
  if (typeof sessionStorage === "undefined") return;
13126
- const self = this;
13330
+ const self2 = this;
13127
13331
  this.originalSessionStorage = {
13128
13332
  setItem: sessionStorage.setItem.bind(sessionStorage),
13129
13333
  getItem: sessionStorage.getItem.bind(sessionStorage),
@@ -13131,41 +13335,41 @@ var StorageMonitor = class {
13131
13335
  clear: sessionStorage.clear.bind(sessionStorage)
13132
13336
  };
13133
13337
  sessionStorage.setItem = function(key, value) {
13134
- self.addLog({
13338
+ self2.addLog({
13135
13339
  storageType: "sessionStorage",
13136
13340
  operation: "set",
13137
13341
  key,
13138
13342
  valueType: typeof value,
13139
13343
  timestamp: Date.now()
13140
13344
  });
13141
- return self.originalSessionStorage.setItem(key, value);
13345
+ return self2.originalSessionStorage.setItem(key, value);
13142
13346
  };
13143
13347
  sessionStorage.getItem = function(key) {
13144
- self.addLog({
13348
+ self2.addLog({
13145
13349
  storageType: "sessionStorage",
13146
13350
  operation: "get",
13147
13351
  key,
13148
13352
  timestamp: Date.now()
13149
13353
  });
13150
- return self.originalSessionStorage.getItem(key);
13354
+ return self2.originalSessionStorage.getItem(key);
13151
13355
  };
13152
13356
  sessionStorage.removeItem = function(key) {
13153
- self.addLog({
13357
+ self2.addLog({
13154
13358
  storageType: "sessionStorage",
13155
13359
  operation: "remove",
13156
13360
  key,
13157
13361
  timestamp: Date.now()
13158
13362
  });
13159
- return self.originalSessionStorage.removeItem(key);
13363
+ return self2.originalSessionStorage.removeItem(key);
13160
13364
  };
13161
13365
  sessionStorage.clear = function() {
13162
- self.addLog({
13366
+ self2.addLog({
13163
13367
  storageType: "sessionStorage",
13164
13368
  operation: "clear",
13165
13369
  key: "*",
13166
13370
  timestamp: Date.now()
13167
13371
  });
13168
- return self.originalSessionStorage.clear();
13372
+ return self2.originalSessionStorage.clear();
13169
13373
  };
13170
13374
  }
13171
13375
  restoreSessionStorage() {
@@ -13179,23 +13383,23 @@ var StorageMonitor = class {
13179
13383
  }
13180
13384
  interceptCookies() {
13181
13385
  if (typeof document === "undefined") return;
13182
- const self = this;
13386
+ const self2 = this;
13183
13387
  const descriptor = Object.getOwnPropertyDescriptor(Document.prototype, "cookie");
13184
13388
  if (!descriptor) return;
13185
13389
  this.originalCookieDescriptor = descriptor;
13186
13390
  Object.defineProperty(document, "cookie", {
13187
13391
  get: function() {
13188
- return self.originalCookieDescriptor.get.call(this);
13392
+ return self2.originalCookieDescriptor.get.call(this);
13189
13393
  },
13190
13394
  set: function(value) {
13191
13395
  const name = value.split("=")[0].trim();
13192
- self.addLog({
13396
+ self2.addLog({
13193
13397
  storageType: "cookie",
13194
13398
  operation: "set",
13195
13399
  key: name,
13196
13400
  timestamp: Date.now()
13197
13401
  });
13198
- return self.originalCookieDescriptor.set.call(this, value);
13402
+ return self2.originalCookieDescriptor.set.call(this, value);
13199
13403
  },
13200
13404
  configurable: true
13201
13405
  });
@@ -13267,7 +13471,7 @@ var ConsoleMonitor = class {
13267
13471
  return value;
13268
13472
  });
13269
13473
  return str.length > this.options.maxPayloadSize ? str.slice(0, this.options.maxPayloadSize) + "..." : str;
13270
- } catch (e) {
13474
+ } catch (e3) {
13271
13475
  return "[Object]";
13272
13476
  }
13273
13477
  }
@@ -13279,7 +13483,7 @@ var ConsoleMonitor = class {
13279
13483
  const stack = new Error().stack || "";
13280
13484
  const lines = stack.split("\n").slice(3);
13281
13485
  return lines.slice(0, 5).map((line) => line.trim());
13282
- } catch (e) {
13486
+ } catch (e3) {
13283
13487
  return [];
13284
13488
  }
13285
13489
  }
@@ -13302,7 +13506,7 @@ var ConsoleMonitor = class {
13302
13506
  }
13303
13507
  }
13304
13508
  interceptConsole() {
13305
- const self = this;
13509
+ const self2 = this;
13306
13510
  this.originalConsole = {
13307
13511
  log: console.log.bind(console),
13308
13512
  warn: console.warn.bind(console),
@@ -13313,32 +13517,32 @@ var ConsoleMonitor = class {
13313
13517
  const levels = this.options.levels;
13314
13518
  if (levels.includes("log")) {
13315
13519
  console.log = function(...args) {
13316
- self.addLog("log", args);
13317
- return self.originalConsole.log(...args);
13520
+ self2.addLog("log", args);
13521
+ return self2.originalConsole.log(...args);
13318
13522
  };
13319
13523
  }
13320
13524
  if (levels.includes("warn")) {
13321
13525
  console.warn = function(...args) {
13322
- self.addLog("warn", args);
13323
- return self.originalConsole.warn(...args);
13526
+ self2.addLog("warn", args);
13527
+ return self2.originalConsole.warn(...args);
13324
13528
  };
13325
13529
  }
13326
13530
  if (levels.includes("error")) {
13327
13531
  console.error = function(...args) {
13328
- self.addLog("error", args);
13329
- return self.originalConsole.error(...args);
13532
+ self2.addLog("error", args);
13533
+ return self2.originalConsole.error(...args);
13330
13534
  };
13331
13535
  }
13332
13536
  if (levels.includes("info")) {
13333
13537
  console.info = function(...args) {
13334
- self.addLog("info", args);
13335
- return self.originalConsole.info(...args);
13538
+ self2.addLog("info", args);
13539
+ return self2.originalConsole.info(...args);
13336
13540
  };
13337
13541
  }
13338
13542
  if (levels.includes("debug")) {
13339
13543
  console.debug = function(...args) {
13340
- self.addLog("debug", args);
13341
- return self.originalConsole.debug(...args);
13544
+ self2.addLog("debug", args);
13545
+ return self2.originalConsole.debug(...args);
13342
13546
  };
13343
13547
  }
13344
13548
  }
@@ -13354,24 +13558,24 @@ var ConsoleMonitor = class {
13354
13558
  }
13355
13559
  interceptGlobalErrors() {
13356
13560
  if (typeof window === "undefined") return;
13357
- const self = this;
13561
+ const self2 = this;
13358
13562
  this.originalOnError = window.onerror;
13359
13563
  window.onerror = function(message, source, lineno, colno, error) {
13360
- self.addLog("error", [
13564
+ self2.addLog("error", [
13361
13565
  `Uncaught error: ${message}`,
13362
13566
  `at ${source}:${lineno}:${colno}`,
13363
13567
  (error == null ? void 0 : error.stack) || ""
13364
13568
  ]);
13365
- if (self.originalOnError && typeof self.originalOnError === "function") {
13366
- return self.originalOnError(message, source, lineno, colno, error);
13569
+ if (self2.originalOnError && typeof self2.originalOnError === "function") {
13570
+ return self2.originalOnError(message, source, lineno, colno, error);
13367
13571
  }
13368
13572
  return false;
13369
13573
  };
13370
13574
  this.originalOnUnhandledRejection = window.onunhandledrejection;
13371
13575
  window.onunhandledrejection = function(event) {
13372
- self.addLog("error", [`Unhandled promise rejection: ${self.stringifyArg(event.reason)}`]);
13373
- if (self.originalOnUnhandledRejection) {
13374
- self.originalOnUnhandledRejection(event);
13576
+ self2.addLog("error", [`Unhandled promise rejection: ${self2.stringifyArg(event.reason)}`]);
13577
+ if (self2.originalOnUnhandledRejection) {
13578
+ self2.originalOnUnhandledRejection(event);
13375
13579
  }
13376
13580
  };
13377
13581
  }
@@ -13450,6 +13654,12 @@ var BentoLabsSDK = class {
13450
13654
  maxLogs: 500,
13451
13655
  maxPayloadSize: 5e3,
13452
13656
  captureStackTrace: true
13657
+ },
13658
+ // Web Vitals defaults
13659
+ capture_web_vitals: true,
13660
+ webVitalsOptions: {
13661
+ allowedMetrics: ["LCP", "FCP", "INP", "CLS"],
13662
+ captureAttribution: true
13453
13663
  }
13454
13664
  };
13455
13665
  this.sessionId = "";
@@ -13521,12 +13731,19 @@ var BentoLabsSDK = class {
13521
13731
  maxLogs: 500,
13522
13732
  maxPayloadSize: 5e3,
13523
13733
  captureStackTrace: true
13734
+ },
13735
+ // Web Vitals defaults
13736
+ capture_web_vitals: true,
13737
+ webVitalsOptions: {
13738
+ allowedMetrics: ["LCP", "FCP", "INP", "CLS"],
13739
+ captureAttribution: true
13524
13740
  }
13525
13741
  };
13526
13742
  const mergedOptions = __spreadProps(__spreadValues(__spreadValues({}, defaultOptions), options), {
13527
13743
  networkOptions: __spreadValues(__spreadValues({}, defaultOptions.networkOptions), options == null ? void 0 : options.networkOptions),
13528
13744
  storageOptions: __spreadValues(__spreadValues({}, defaultOptions.storageOptions), options == null ? void 0 : options.storageOptions),
13529
- consoleOptions: __spreadValues(__spreadValues({}, defaultOptions.consoleOptions), options == null ? void 0 : options.consoleOptions)
13745
+ consoleOptions: __spreadValues(__spreadValues({}, defaultOptions.consoleOptions), options == null ? void 0 : options.consoleOptions),
13746
+ webVitalsOptions: __spreadValues(__spreadValues({}, defaultOptions.webVitalsOptions), options == null ? void 0 : options.webVitalsOptions)
13530
13747
  });
13531
13748
  this.config = {
13532
13749
  apiKey,
@@ -13549,6 +13766,8 @@ var BentoLabsSDK = class {
13549
13766
  storageOptions: mergedOptions.storageOptions,
13550
13767
  capture_console: mergedOptions.capture_console,
13551
13768
  consoleOptions: mergedOptions.consoleOptions,
13769
+ capture_web_vitals: mergedOptions.capture_web_vitals,
13770
+ webVitalsOptions: mergedOptions.webVitalsOptions,
13552
13771
  bootstrap: mergedOptions.bootstrap
13553
13772
  };
13554
13773
  if (this.config.respect_dnt && this.isDNTEnabled()) {
@@ -13607,6 +13826,9 @@ var BentoLabsSDK = class {
13607
13826
  if (this.config.capture_console) {
13608
13827
  this.startConsoleCapture();
13609
13828
  }
13829
+ if (this.config.capture_web_vitals) {
13830
+ this.startWebVitalsCapture();
13831
+ }
13610
13832
  }
13611
13833
  // ============================================================================
13612
13834
  // Identity Methods
@@ -13910,6 +14132,57 @@ var BentoLabsSDK = class {
13910
14132
  var _a2;
13911
14133
  return ((_a2 = this.consoleMonitor) == null ? void 0 : _a2.getLogs()) || [];
13912
14134
  }
14135
+ /**
14136
+ * Start Web Vitals monitoring
14137
+ * Captures LCP, FCP, INP, CLS, and optionally TTFB
14138
+ */
14139
+ startWebVitalsCapture() {
14140
+ var _a2;
14141
+ if (typeof window === "undefined") return;
14142
+ const allowedMetrics = this.config.webVitalsOptions.allowedMetrics || ["LCP", "FCP", "INP", "CLS"];
14143
+ const captureAttribution = (_a2 = this.config.webVitalsOptions.captureAttribution) != null ? _a2 : true;
14144
+ const captureMetric = (metric, metricName) => {
14145
+ if (this.optedOut) return;
14146
+ const properties = {
14147
+ [`$web_vitals_${metricName}_value`]: metric.value,
14148
+ $pathname: window.location.pathname,
14149
+ $current_url: window.location.href
14150
+ };
14151
+ if (captureAttribution) {
14152
+ properties[`$web_vitals_${metricName}_event`] = {
14153
+ name: metric.name,
14154
+ value: metric.value,
14155
+ rating: metric.rating,
14156
+ delta: metric.delta,
14157
+ id: metric.id,
14158
+ navigationType: metric.navigationType,
14159
+ attribution: "attribution" in metric ? metric.attribution : void 0
14160
+ };
14161
+ }
14162
+ this.capture("$web_vitals", properties);
14163
+ if (this.config.debug) {
14164
+ console.log(`[BentoLabsSDK] Web Vital captured: ${metricName} = ${metric.value} (${metric.rating})`);
14165
+ }
14166
+ };
14167
+ if (allowedMetrics.includes("LCP")) {
14168
+ G((metric) => captureMetric(metric, "LCP"));
14169
+ }
14170
+ if (allowedMetrics.includes("FCP")) {
14171
+ S((metric) => captureMetric(metric, "FCP"));
14172
+ }
14173
+ if (allowedMetrics.includes("INP")) {
14174
+ j((metric) => captureMetric(metric, "INP"));
14175
+ }
14176
+ if (allowedMetrics.includes("CLS")) {
14177
+ w((metric) => captureMetric(metric, "CLS"));
14178
+ }
14179
+ if (allowedMetrics.includes("TTFB")) {
14180
+ Q((metric) => captureMetric(metric, "TTFB"));
14181
+ }
14182
+ if (this.config.debug) {
14183
+ console.log("[BentoLabsSDK] Web Vitals capture started for:", allowedMetrics);
14184
+ }
14185
+ }
13913
14186
  // ============================================================================
13914
14187
  // Existing Public Methods (Preserved)
13915
14188
  // ============================================================================
@@ -13967,7 +14240,9 @@ var BentoLabsSDK = class {
13967
14240
  capture_storage: this.config.capture_storage,
13968
14241
  storageOptions: this.config.storageOptions,
13969
14242
  capture_console: this.config.capture_console,
13970
- consoleOptions: this.config.consoleOptions
14243
+ consoleOptions: this.config.consoleOptions,
14244
+ capture_web_vitals: this.config.capture_web_vitals,
14245
+ webVitalsOptions: this.config.webVitalsOptions
13971
14246
  };
13972
14247
  }
13973
14248
  /**
@@ -13994,10 +14269,10 @@ var BentoLabsSDK = class {
13994
14269
  return `anon_${uuid}`;
13995
14270
  }
13996
14271
  generateUUID() {
13997
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
14272
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c2) {
13998
14273
  const r = Math.random() * 16 | 0;
13999
- const v = c === "x" ? r : r & 3 | 8;
14000
- return v.toString(16);
14274
+ const v2 = c2 === "x" ? r : r & 3 | 8;
14275
+ return v2.toString(16);
14001
14276
  });
14002
14277
  }
14003
14278
  isDNTEnabled() {
@@ -14019,7 +14294,7 @@ var BentoLabsSDK = class {
14019
14294
  if (storedSuperProps) {
14020
14295
  try {
14021
14296
  this.superProperties = JSON.parse(storedSuperProps);
14022
- } catch (e) {
14297
+ } catch (e3) {
14023
14298
  this.superProperties = {};
14024
14299
  }
14025
14300
  }
@@ -14027,7 +14302,7 @@ var BentoLabsSDK = class {
14027
14302
  if (storedUserProps) {
14028
14303
  try {
14029
14304
  this.identity.properties = JSON.parse(storedUserProps);
14030
- } catch (e) {
14305
+ } catch (e3) {
14031
14306
  this.identity.properties = {};
14032
14307
  }
14033
14308
  }
@@ -14239,7 +14514,7 @@ var BentoLabsSDK = class {
14239
14514
  if (eventsToRetry.length > 0) {
14240
14515
  this.events.unshift(...eventsToRetry);
14241
14516
  if (this.config.debug) {
14242
- const nextRetryIn = Math.min(...eventsToRetry.map((e) => e.nextRetryTime)) - now;
14517
+ const nextRetryIn = Math.min(...eventsToRetry.map((e3) => e3.nextRetryTime)) - now;
14243
14518
  console.log(`[BentoLabsSDK] ${eventsToRetry.length} events re-queued for retry in ${nextRetryIn}ms`);
14244
14519
  }
14245
14520
  }
@@ -14257,7 +14532,7 @@ var BentoLabsSDK = class {
14257
14532
  if (retryableEvents.length === 0) {
14258
14533
  return;
14259
14534
  }
14260
- const nextRetryTime = Math.min(...retryableEvents.map((e) => e.nextRetryTime));
14535
+ const nextRetryTime = Math.min(...retryableEvents.map((e3) => e3.nextRetryTime));
14261
14536
  const delay = Math.max(0, nextRetryTime - now);
14262
14537
  if (this.config.debug) {
14263
14538
  console.log(`[BentoLabsSDK] Scheduling retry in ${delay}ms`);
@@ -14287,9 +14562,9 @@ var BentoLabsSDK = class {
14287
14562
  }
14288
14563
  setupAutocapture() {
14289
14564
  if (typeof document === "undefined") return;
14290
- const handleClick = (e) => {
14565
+ const handleClick = (e3) => {
14291
14566
  var _a2;
14292
- const target = e.target;
14567
+ const target = e3.target;
14293
14568
  if (!target) return;
14294
14569
  const tagName = target.tagName.toLowerCase();
14295
14570
  const allowedTags = ["a", "button", "input", "select", "textarea"];
@@ -14298,7 +14573,7 @@ var BentoLabsSDK = class {
14298
14573
  let selector = "";
14299
14574
  try {
14300
14575
  selector = generateSelectorFromElement(target);
14301
- } catch (e2) {
14576
+ } catch (e4) {
14302
14577
  selector = "";
14303
14578
  }
14304
14579
  this.capture("$autocapture", {
@@ -14310,8 +14585,8 @@ var BentoLabsSDK = class {
14310
14585
  $bento_selector: selector
14311
14586
  });
14312
14587
  };
14313
- const handleChange = (e) => {
14314
- const target = e.target;
14588
+ const handleChange = (e3) => {
14589
+ const target = e3.target;
14315
14590
  if (!target) return;
14316
14591
  const tagName = target.tagName.toLowerCase();
14317
14592
  if (!["input", "select", "textarea"].includes(tagName)) return;
@@ -14319,7 +14594,7 @@ var BentoLabsSDK = class {
14319
14594
  let selector = "";
14320
14595
  try {
14321
14596
  selector = generateSelectorFromElement(target);
14322
- } catch (e2) {
14597
+ } catch (e4) {
14323
14598
  selector = "";
14324
14599
  }
14325
14600
  this.capture("$autocapture", {
@@ -14332,13 +14607,13 @@ var BentoLabsSDK = class {
14332
14607
  // Don't capture actual value for privacy
14333
14608
  });
14334
14609
  };
14335
- const handleSubmit = (e) => {
14336
- const target = e.target;
14610
+ const handleSubmit = (e3) => {
14611
+ const target = e3.target;
14337
14612
  if (!target || target.tagName.toLowerCase() !== "form") return;
14338
14613
  let selector = "";
14339
14614
  try {
14340
14615
  selector = generateSelectorFromElement(target);
14341
- } catch (e2) {
14616
+ } catch (e4) {
14342
14617
  selector = "";
14343
14618
  }
14344
14619
  this.capture("$autocapture", {
@@ -14422,10 +14697,19 @@ if (typeof window !== "undefined") {
14422
14697
  stopConsoleCapture: sdk.stopConsoleCapture.bind(sdk),
14423
14698
  getNetworkLogs: sdk.getNetworkLogs.bind(sdk),
14424
14699
  getStorageLogs: sdk.getStorageLogs.bind(sdk),
14425
- getConsoleLogs: sdk.getConsoleLogs.bind(sdk)
14700
+ getConsoleLogs: sdk.getConsoleLogs.bind(sdk),
14701
+ // Web Vitals
14702
+ startWebVitalsCapture: sdk.startWebVitalsCapture.bind(sdk)
14426
14703
  };
14427
14704
  }
14428
14705
  var index_default = sdk;
14706
+ export {
14707
+ BentoLabsSDK,
14708
+ index_default as default,
14709
+ generateSelector,
14710
+ generateSelectorFromElement,
14711
+ generateSelectorFromHTML
14712
+ };
14429
14713
  /*! Bundled license information:
14430
14714
 
14431
14715
  rrweb/dist/rrweb.js: