@applitools/eyes-browser 1.6.20 → 1.6.22

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/CHANGELOG.md CHANGED
@@ -1,5 +1,70 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.22](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.21...js/eyes-browser@1.6.22) (2026-06-15)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/nml-client bumped to 1.11.32
9
+
10
+ * @applitools/core-base bumped to 1.35.2
11
+ #### Bug Fixes
12
+
13
+ * re-trigger release for packages missed in the AD-14089 release | AD-14089 ([#3925](https://github.com/Applitools-Dev/sdk/issues/3925)) ([0880c34](https://github.com/Applitools-Dev/sdk/commit/0880c34b66221025e70ca7e3e3fab7b45a9f8d9e))
14
+ * @applitools/ec-client bumped to 1.12.34
15
+
16
+ * @applitools/core bumped to 4.65.1
17
+
18
+ * @applitools/eyes bumped to 1.43.3
19
+
20
+
21
+ ## [1.6.21](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.20...js/eyes-browser@1.6.21) (2026-06-14)
22
+
23
+
24
+ ### Dependencies
25
+
26
+ * @applitools/dom-snapshot bumped to 4.17.3
27
+ #### Bug Fixes
28
+
29
+ * capture opaque-origin sandboxed blob iframes in UFG | FLD-4606 ([#3916](https://github.com/Applitools-Dev/sdk/issues/3916)) ([9296f7e](https://github.com/Applitools-Dev/sdk/commit/9296f7ef9fe3aa3889402009860ef5e3276f0303))
30
+
31
+
32
+
33
+ * @applitools/snippets bumped to 2.9.3
34
+ #### Bug Fixes
35
+
36
+ * capture opaque-origin sandboxed blob iframes in UFG | FLD-4606 ([#3916](https://github.com/Applitools-Dev/sdk/issues/3916)) ([9296f7e](https://github.com/Applitools-Dev/sdk/commit/9296f7ef9fe3aa3889402009860ef5e3276f0303))
37
+ * @applitools/core bumped to 4.65.0
38
+ #### Features
39
+
40
+ * add useLatestEnvBaseline to session startInfo | AD-14089 ([#3887](https://github.com/Applitools-Dev/sdk/issues/3887)) ([b15b9af](https://github.com/Applitools-Dev/sdk/commit/b15b9af34328193f6705c90a26c24aa1e4b23d1c))
41
+
42
+
43
+ #### Bug Fixes
44
+
45
+ * capture opaque-origin sandboxed blob iframes in UFG | FLD-4606 ([#3916](https://github.com/Applitools-Dev/sdk/issues/3916)) ([9296f7e](https://github.com/Applitools-Dev/sdk/commit/9296f7ef9fe3aa3889402009860ef5e3276f0303))
46
+
47
+
48
+
49
+ * @applitools/driver bumped to 1.26.3
50
+
51
+ * @applitools/spec-driver-webdriver bumped to 1.6.3
52
+
53
+ * @applitools/spec-driver-selenium bumped to 1.8.3
54
+
55
+ * @applitools/spec-driver-playwright bumped to 1.9.3
56
+
57
+ * @applitools/spec-driver-puppeteer bumped to 1.8.3
58
+
59
+ * @applitools/screenshoter bumped to 3.12.22
60
+
61
+ * @applitools/nml-client bumped to 1.11.31
62
+
63
+ * @applitools/ec-client bumped to 1.12.33
64
+
65
+ * @applitools/eyes bumped to 1.43.2
66
+
67
+
3
68
  ## [1.6.20](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.19...js/eyes-browser@1.6.20) (2026-06-09)
4
69
 
5
70
 
package/dist/index.js CHANGED
@@ -15377,10 +15377,26 @@ var require_Configuration = __commonJS({
15377
15377
  getBaselineEnvName() {
15378
15378
  return this.baselineEnvName;
15379
15379
  }
15380
- setBaselineEnvName(baselineEnvName) {
15380
+ setBaselineEnvName(baselineEnvName, options) {
15381
15381
  this.baselineEnvName = baselineEnvName;
15382
+ if (options !== void 0) {
15383
+ utils2.guard.isObject(options, { name: "options" });
15384
+ if (options.useLatestEnvBaseline !== void 0) {
15385
+ utils2.guard.isBoolean(options.useLatestEnvBaseline, { name: "options.useLatestEnvBaseline" });
15386
+ }
15387
+ this._config.baselineEnvOptions = options;
15388
+ }
15382
15389
  return this;
15383
15390
  }
15391
+ /** @internal */
15392
+ get baselineEnvOptions() {
15393
+ return this._config.baselineEnvOptions;
15394
+ }
15395
+ /** @internal */
15396
+ set baselineEnvOptions(baselineEnvOptions) {
15397
+ utils2.guard.isObject(baselineEnvOptions, { name: "baselineEnvOptions" });
15398
+ this._config.baselineEnvOptions = baselineEnvOptions;
15399
+ }
15384
15400
  get batch() {
15385
15401
  return this._config.batch;
15386
15402
  }
@@ -16392,6 +16408,7 @@ var require_Configuration = __commonJS({
16392
16408
  properties: this.properties,
16393
16409
  batch: this.batch,
16394
16410
  baselineEnvName: this.baselineEnvName,
16411
+ baselineEnvOptions: this._config.baselineEnvOptions,
16395
16412
  environmentName: this.environmentName,
16396
16413
  environment: utils2.general.removeUndefinedProps({
16397
16414
  hostingApp: this.hostApp,
@@ -29154,7 +29171,7 @@ var require_requests = __commonJS({
29154
29171
  return makeFunctionalSessionRequests({ core, test, req: req2, logger });
29155
29172
  }
29156
29173
  async function openCheckAndClose({ target, settings, logger = mainLogger }) {
29157
- var _a, _b, _c, _d, _f, _g, _h, _j, _k;
29174
+ var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l;
29158
29175
  const req2 = (0, req_eyes_1.makeReqEyes)({ settings, fetch: fetch2, logger });
29159
29176
  logger.log('Request "openCheckAndClose" called with settings', settings);
29160
29177
  const account = await getAccountInfoWithCache({ settings, logger });
@@ -29213,6 +29230,7 @@ var require_requests = __commonJS({
29213
29230
  }),
29214
29231
  environmentName: settings.environmentName,
29215
29232
  baselineEnvName: settings.baselineEnvName,
29233
+ useLatestEnvBaseline: (_l = settings.baselineEnvOptions) === null || _l === void 0 ? void 0 : _l.useLatestEnvBaseline,
29216
29234
  branchName: settings.branchName,
29217
29235
  parentBranchName: settings.parentBranchName,
29218
29236
  baselineBranchName: settings.baselineBranchName,
@@ -29996,7 +30014,7 @@ var require_requests = __commonJS({
29996
30014
  }
29997
30015
  exports.makeFunctionalSessionRequests = makeFunctionalSessionRequests;
29998
30016
  function toStartInfo({ settings }) {
29999
- var _a, _b, _c, _d, _f, _g, _h, _j, _k;
30017
+ var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l;
30000
30018
  return {
30001
30019
  agentId: settings.agentId,
30002
30020
  agentSessionId: settings.userTestId,
@@ -30033,6 +30051,7 @@ var require_requests = __commonJS({
30033
30051
  }),
30034
30052
  environmentName: settings.environmentName,
30035
30053
  baselineEnvName: settings.baselineEnvName,
30054
+ useLatestEnvBaseline: (_l = settings.baselineEnvOptions) === null || _l === void 0 ? void 0 : _l.useLatestEnvBaseline,
30036
30055
  branchName: settings.branchName,
30037
30056
  parentBranchName: settings.parentBranchName,
30038
30057
  baselineBranchName: settings.baselineBranchName,
@@ -75656,52 +75675,57 @@ var require_dist3 = __commonJS({
75656
75675
  var s = function() {
75657
75676
  "use strict";
75658
75677
  return function() {
75659
- var t = function(t2, n2, o2) {
75660
- return (r2 = function(t3) {
75661
- var o3 = (void 0 === t3 ? [] : t3)[0], r3 = function(t4) {
75662
- var o4 = void 0 === t4 ? [] : t4, r4 = o4[0], e2 = o4[1], i2 = void 0 === e2 ? [] : e2, a2 = n2.getComputedStyle(r4);
75663
- return a2 ? i2.map(function(t5) {
75664
- return a2.getPropertyValue(t5);
75678
+ var t = function(t2, n2, r2) {
75679
+ return (o2 = function(t3) {
75680
+ var r3 = (void 0 === t3 ? [] : t3)[0], o3 = function(t4) {
75681
+ var r4, o4 = void 0 === t4 ? [] : t4, e2 = o4[0], i2 = o4[1], a2 = void 0 === i2 ? [] : i2;
75682
+ try {
75683
+ r4 = n2.getComputedStyle(e2);
75684
+ } catch (t5) {
75685
+ return [];
75686
+ }
75687
+ return r4 && "function" == typeof r4.getPropertyValue ? a2.map(function(t5) {
75688
+ return r4.getPropertyValue(t5);
75665
75689
  }) : [];
75666
- }([o3, ["overflow-x", "overflow-y", "overflow"]]);
75667
- return ("scroll" === r3[0] || "auto" === r3[0] || "hidden" === r3[2]) && o3.scrollWidth > o3.clientWidth || ("scroll" === r3[1] || "auto" === r3[1] || "hidden" === r3[2]) && o3.scrollHeight > o3.clientHeight;
75668
- }) && r2.__esModule && Object.prototype.hasOwnProperty.call(r2, "default") ? r2.default : r2;
75669
- var r2;
75690
+ }([r3, ["overflow-x", "overflow-y", "overflow"]]);
75691
+ return ("scroll" === o3[0] || "auto" === o3[0] || "hidden" === o3[2]) && r3.scrollWidth > r3.clientWidth || ("scroll" === o3[1] || "auto" === o3[1] || "hidden" === o3[2]) && r3.scrollHeight > r3.clientHeight;
75692
+ }) && o2.__esModule && Object.prototype.hasOwnProperty.call(o2, "default") ? o2.default : o2;
75693
+ var o2;
75670
75694
  }, n = true;
75671
75695
  try {
75672
- var o = function t2(n2) {
75673
- if (d.Array.isArray(n2)) {
75674
- for (var o2 = new d.Array(n2.length), r2 = 0; r2 < n2.length; r2++)
75675
- o2[r2] = t2(n2[r2]);
75676
- return o2;
75696
+ var r = function t2(n2) {
75697
+ if (c.Array.isArray(n2)) {
75698
+ for (var r2 = new c.Array(n2.length), o2 = 0; o2 < n2.length; o2++)
75699
+ r2[o2] = t2(n2[o2]);
75700
+ return r2;
75677
75701
  }
75678
75702
  if (n2 && "object" == typeof n2 && Object.getPrototypeOf(n2) === Object.prototype) {
75679
- var e2 = new d.Object();
75703
+ var e2 = new c.Object();
75680
75704
  for (var i2 in n2)
75681
75705
  Object.prototype.hasOwnProperty.call(n2, i2) && (e2[i2] = t2(n2[i2]));
75682
75706
  return e2;
75683
75707
  }
75684
75708
  return n2;
75685
- }, r = window.__applitools_sandbox;
75686
- r || ((r = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), r.setAttribute("data-applitools-skip", ""), document.head.appendChild(r), window.__applitools_sandbox = r);
75687
- var e = Math.floor(4294967296 * Math.random()), i = r.contentDocument.createElement("script");
75688
- i.textContent = "window['ctor-" + e + "'] = " + t.toString() + ";", r.contentDocument.head.appendChild(i);
75689
- var a = r.contentWindow["ctor-" + e];
75690
- if (delete r.contentWindow["ctor-" + e], "function" != typeof a)
75709
+ }, o = window.__applitools_sandbox;
75710
+ o || ((o = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), o.setAttribute("data-applitools-skip", ""), document.head.appendChild(o), window.__applitools_sandbox = o);
75711
+ var e = Math.floor(4294967296 * Math.random()), i = o.contentDocument.createElement("script");
75712
+ i.textContent = "window['ctor-" + e + "'] = " + t.toString() + ";", o.contentDocument.head.appendChild(i);
75713
+ var a = o.contentWindow["ctor-" + e];
75714
+ if (delete o.contentWindow["ctor-" + e], "function" != typeof a)
75691
75715
  throw new Error("Sandbox failed to extract function");
75692
75716
  n = false;
75693
- var d = r.contentWindow, c = d.__EYES__APPLITOOLS__ = d.__EYES__APPLITOOLS__ || {};
75694
- c._stringify || (c._stringify = d.JSON.stringify.bind(d.JSON));
75717
+ var c = o.contentWindow, d = c.__EYES__APPLITOOLS__ = c.__EYES__APPLITOOLS__ || {};
75718
+ d._stringify || (d._stringify = c.JSON.stringify.bind(c.JSON));
75695
75719
  var l = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
75696
- l._stringify && l._stringify !== JSON.stringify || (l._stringify = d.JSON.stringify.bind(d.JSON));
75697
- for (var _ = new d.Array(arguments.length), u = 0; u < arguments.length; u++)
75698
- _[u] = o(u < 0 || arguments.length <= u ? void 0 : arguments[u]);
75699
- return a(document, window, d).apply(void 0, _);
75700
- } catch (o2) {
75720
+ l._stringify && l._stringify !== JSON.stringify || (l._stringify = c.JSON.stringify.bind(c.JSON));
75721
+ for (var u = new c.Array(arguments.length), _ = 0; _ < arguments.length; _++)
75722
+ u[_] = r(_ < 0 || arguments.length <= _ ? void 0 : arguments[_]);
75723
+ return a(document, window, c).apply(void 0, u);
75724
+ } catch (r2) {
75701
75725
  try {
75702
75726
  return t(document, window, window).apply(void 0, arguments);
75703
75727
  } catch (t2) {
75704
- throw n ? t2 : o2;
75728
+ throw n ? t2 : r2;
75705
75729
  }
75706
75730
  }
75707
75731
  };
@@ -75984,17 +76008,17 @@ var require_dist3 = __commonJS({
75984
76008
  var s = function() {
75985
76009
  "use strict";
75986
76010
  return function() {
75987
- var t = function(t2, r2, n2) {
75988
- return (e2 = function(r3) {
75989
- var n3 = (void 0 === r3 ? [] : r3)[0], e3 = function(t3) {
75990
- var r4 = void 0 === t3 ? [] : t3, n4 = r4[0], e4 = r4[1];
75991
- return (void 0 === e4 ? [] : e4).reduce(function(t4, r5) {
75992
- return t4[r5] = { value: n4.style.getPropertyValue(r5), important: Boolean(n4.style.getPropertyPriority(r5)) }, t4;
75993
- }, {});
75994
- }([void 0 === n3 ? t2.documentElement : n3, ["transform", "-webkit-transform"]]), o2 = Object.keys(e3).reduce(function(t3, r4) {
75995
- var n4 = e3[r4].value;
75996
- if (n4) {
75997
- var o3 = n4.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);
76011
+ var t = function(t2, r2, e2) {
76012
+ return (n2 = function(r3) {
76013
+ var e3 = (void 0 === r3 ? [] : r3)[0], n3 = function(t3) {
76014
+ var r4 = void 0 === t3 ? [] : t3, e4 = r4[0], n4 = r4[1], o3 = void 0 === n4 ? [] : n4, i2 = e4.style;
76015
+ return i2 && "function" == typeof i2.getPropertyValue ? o3.reduce(function(t4, r5) {
76016
+ return t4[r5] = { value: i2.getPropertyValue(r5), important: Boolean(i2.getPropertyPriority(r5)) }, t4;
76017
+ }, {}) : {};
76018
+ }([void 0 === e3 ? t2.documentElement : e3, ["transform", "-webkit-transform"]]), o2 = Object.keys(n3).reduce(function(t3, r4) {
76019
+ var e4 = n3[r4].value;
76020
+ if (e4) {
76021
+ var o3 = e4.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);
75998
76022
  if (o3) {
75999
76023
  var i2 = o3[1], a2 = void 0 !== o3[3] ? o3[3] : 0;
76000
76024
  t3.push({ x: Math.round(-parseFloat(i2)), y: Math.round(-parseFloat(a2)) });
@@ -76008,15 +76032,15 @@ var require_dist3 = __commonJS({
76008
76032
  }))
76009
76033
  throw new Error("Got different css positions!");
76010
76034
  return o2[0] || { x: 0, y: 0 };
76011
- }) && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
76012
- var e2;
76035
+ }) && n2.__esModule && Object.prototype.hasOwnProperty.call(n2, "default") ? n2.default : n2;
76036
+ var n2;
76013
76037
  }, r = true;
76014
76038
  try {
76015
- var n = function t2(r2) {
76039
+ var e = function t2(r2) {
76016
76040
  if (d.Array.isArray(r2)) {
76017
- for (var n2 = new d.Array(r2.length), e2 = 0; e2 < r2.length; e2++)
76018
- n2[e2] = t2(r2[e2]);
76019
- return n2;
76041
+ for (var e2 = new d.Array(r2.length), n2 = 0; n2 < r2.length; n2++)
76042
+ e2[n2] = t2(r2[n2]);
76043
+ return e2;
76020
76044
  }
76021
76045
  if (r2 && "object" == typeof r2 && Object.getPrototypeOf(r2) === Object.prototype) {
76022
76046
  var o2 = new d.Object();
@@ -76025,26 +76049,26 @@ var require_dist3 = __commonJS({
76025
76049
  return o2;
76026
76050
  }
76027
76051
  return r2;
76028
- }, e = window.__applitools_sandbox;
76029
- e || ((e = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), e.setAttribute("data-applitools-skip", ""), document.head.appendChild(e), window.__applitools_sandbox = e);
76030
- var o = Math.floor(4294967296 * Math.random()), i = e.contentDocument.createElement("script");
76031
- i.textContent = "window['ctor-" + o + "'] = " + t.toString() + ";", e.contentDocument.head.appendChild(i);
76032
- var a = e.contentWindow["ctor-" + o];
76033
- if (delete e.contentWindow["ctor-" + o], "function" != typeof a)
76052
+ }, n = window.__applitools_sandbox;
76053
+ n || ((n = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), n.setAttribute("data-applitools-skip", ""), document.head.appendChild(n), window.__applitools_sandbox = n);
76054
+ var o = Math.floor(4294967296 * Math.random()), i = n.contentDocument.createElement("script");
76055
+ i.textContent = "window['ctor-" + o + "'] = " + t.toString() + ";", n.contentDocument.head.appendChild(i);
76056
+ var a = n.contentWindow["ctor-" + o];
76057
+ if (delete n.contentWindow["ctor-" + o], "function" != typeof a)
76034
76058
  throw new Error("Sandbox failed to extract function");
76035
76059
  r = false;
76036
- var d = e.contentWindow, c = d.__EYES__APPLITOOLS__ = d.__EYES__APPLITOOLS__ || {};
76060
+ var d = n.contentWindow, c = d.__EYES__APPLITOOLS__ = d.__EYES__APPLITOOLS__ || {};
76037
76061
  c._stringify || (c._stringify = d.JSON.stringify.bind(d.JSON));
76038
- var s2 = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
76039
- s2._stringify && s2._stringify !== JSON.stringify || (s2._stringify = d.JSON.stringify.bind(d.JSON));
76040
- for (var u = new d.Array(arguments.length), f = 0; f < arguments.length; f++)
76041
- u[f] = n(f < 0 || arguments.length <= f ? void 0 : arguments[f]);
76042
- return a(document, window, d).apply(void 0, u);
76043
- } catch (n2) {
76062
+ var u = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
76063
+ u._stringify && u._stringify !== JSON.stringify || (u._stringify = d.JSON.stringify.bind(d.JSON));
76064
+ for (var s2 = new d.Array(arguments.length), f = 0; f < arguments.length; f++)
76065
+ s2[f] = e(f < 0 || arguments.length <= f ? void 0 : arguments[f]);
76066
+ return a(document, window, d).apply(void 0, s2);
76067
+ } catch (e2) {
76044
76068
  try {
76045
76069
  return t(document, window, window).apply(void 0, arguments);
76046
76070
  } catch (t2) {
76047
- throw r ? t2 : n2;
76071
+ throw r ? t2 : e2;
76048
76072
  }
76049
76073
  }
76050
76074
  };
@@ -76057,22 +76081,22 @@ var require_dist3 = __commonJS({
76057
76081
  return function() {
76058
76082
  var t = function(t2, n2, r2) {
76059
76083
  return (e2 = function(t3) {
76060
- var n3 = void 0 === t3 ? [] : t3, r3 = n3[0], e3 = n3[1];
76061
- return (void 0 === e3 ? [] : e3).reduce(function(t4, n4) {
76062
- return t4[n4] = { value: r3.style.getPropertyValue(n4), important: Boolean(r3.style.getPropertyPriority(n4)) }, t4;
76063
- }, {});
76084
+ var n3 = void 0 === t3 ? [] : t3, r3 = n3[0], e3 = n3[1], o2 = void 0 === e3 ? [] : e3, i2 = r3.style;
76085
+ return i2 && "function" == typeof i2.getPropertyValue ? o2.reduce(function(t4, n4) {
76086
+ return t4[n4] = { value: i2.getPropertyValue(n4), important: Boolean(i2.getPropertyPriority(n4)) }, t4;
76087
+ }, {}) : {};
76064
76088
  }) && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
76065
76089
  var e2;
76066
76090
  }, n = true;
76067
76091
  try {
76068
76092
  var r = function t2(n2) {
76069
- if (d.Array.isArray(n2)) {
76070
- for (var r2 = new d.Array(n2.length), e2 = 0; e2 < n2.length; e2++)
76093
+ if (c.Array.isArray(n2)) {
76094
+ for (var r2 = new c.Array(n2.length), e2 = 0; e2 < n2.length; e2++)
76071
76095
  r2[e2] = t2(n2[e2]);
76072
76096
  return r2;
76073
76097
  }
76074
76098
  if (n2 && "object" == typeof n2 && Object.getPrototypeOf(n2) === Object.prototype) {
76075
- var o2 = new d.Object();
76099
+ var o2 = new c.Object();
76076
76100
  for (var i2 in n2)
76077
76101
  Object.prototype.hasOwnProperty.call(n2, i2) && (o2[i2] = t2(n2[i2]));
76078
76102
  return o2;
@@ -76086,13 +76110,13 @@ var require_dist3 = __commonJS({
76086
76110
  if (delete e.contentWindow["ctor-" + o], "function" != typeof a)
76087
76111
  throw new Error("Sandbox failed to extract function");
76088
76112
  n = false;
76089
- var d = e.contentWindow, c = d.__EYES__APPLITOOLS__ = d.__EYES__APPLITOOLS__ || {};
76090
- c._stringify || (c._stringify = d.JSON.stringify.bind(d.JSON));
76113
+ var c = e.contentWindow, d = c.__EYES__APPLITOOLS__ = c.__EYES__APPLITOOLS__ || {};
76114
+ d._stringify || (d._stringify = c.JSON.stringify.bind(c.JSON));
76091
76115
  var _ = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
76092
- _._stringify && _._stringify !== JSON.stringify || (_._stringify = d.JSON.stringify.bind(d.JSON));
76093
- for (var l = new d.Array(arguments.length), p = 0; p < arguments.length; p++)
76116
+ _._stringify && _._stringify !== JSON.stringify || (_._stringify = c.JSON.stringify.bind(c.JSON));
76117
+ for (var l = new c.Array(arguments.length), p = 0; p < arguments.length; p++)
76094
76118
  l[p] = r(p < 0 || arguments.length <= p ? void 0 : arguments[p]);
76095
- return a(document, window, d).apply(void 0, l);
76119
+ return a(document, window, c).apply(void 0, l);
76096
76120
  } catch (r2) {
76097
76121
  try {
76098
76122
  return t(document, window, window).apply(void 0, arguments);
@@ -76163,10 +76187,10 @@ var require_dist3 = __commonJS({
76163
76187
  return function() {
76164
76188
  var r3 = function(e3) {
76165
76189
  var r4 = (void 0 === e3 ? [] : e3)[0], n3 = void 0 === r4 ? t2.documentElement : r4, o2 = function(t3) {
76166
- var e4 = void 0 === t3 ? [] : t3, r5 = e4[0], n4 = e4[1];
76167
- return (void 0 === n4 ? [] : n4).reduce(function(t4, e5) {
76168
- return t4[e5] = { value: r5.style.getPropertyValue(e5), important: Boolean(r5.style.getPropertyPriority(e5)) }, t4;
76169
- }, {});
76190
+ var e4 = void 0 === t3 ? [] : t3, r5 = e4[0], n4 = e4[1], o3 = void 0 === n4 ? [] : n4, i3 = r5.style;
76191
+ return i3 && "function" == typeof i3.getPropertyValue ? o3.reduce(function(t4, e5) {
76192
+ return t4[e5] = { value: i3.getPropertyValue(e5), important: Boolean(i3.getPropertyPriority(e5)) }, t4;
76193
+ }, {}) : {};
76170
76194
  }([n3, ["transform", "-webkit-transform"]]), i2 = Object.keys(o2).reduce(function(t3, e4) {
76171
76195
  var r5 = o2[e4].value;
76172
76196
  if (r5) {
@@ -76194,44 +76218,54 @@ var require_dist3 = __commonJS({
76194
76218
  return function(t3) {
76195
76219
  return t3 && t3.__esModule && Object.prototype.hasOwnProperty.call(t3, "default") ? t3.default : t3;
76196
76220
  }(function(r4) {
76197
- var o2 = void 0 === r4 ? [] : r4, i2 = o2[0], a2 = o2[1], d2 = void 0 !== a2 && a2;
76198
- if (i2 === t2.documentElement || i2.tagName.toLowerCase() === function() {
76221
+ var o2 = void 0 === r4 ? [] : r4, i2 = o2[0], a2 = o2[1], u2 = void 0 !== a2 && a2, f2 = "string" == typeof i2.tagName ? i2.tagName.toLowerCase() : "";
76222
+ if (i2 === t2.documentElement || f2 === function() {
76199
76223
  var e3 = "HTML", r5 = t2.scrollingElement;
76200
76224
  return r5 && (e3 = r5.tagName), e3.toLowerCase();
76201
76225
  }())
76202
76226
  return { x: 0, y: 0, width: i2.clientWidth, height: i2.clientHeight };
76203
- var u2 = i2.getBoundingClientRect(), f2 = { x: u2.left, y: u2.top, width: u2.width, height: u2.height };
76204
- if (d2) {
76205
- var l2 = e2.getComputedStyle(i2);
76206
- f2.x += parseInt(l2.getPropertyValue("border-left-width")), f2.y += parseInt(l2.getPropertyValue("border-top-width")), f2.width = i2.clientWidth, f2.height = i2.clientHeight;
76227
+ var c2 = "function" == typeof i2.getBoundingClientRect ? i2.getBoundingClientRect() : { left: 0, top: 0, width: 0, height: 0 }, l2 = { x: c2.left, y: c2.top, width: c2.width, height: c2.height };
76228
+ if (u2) {
76229
+ var d2;
76230
+ try {
76231
+ d2 = e2.getComputedStyle(i2);
76232
+ } catch (r5) {
76233
+ d2 = null;
76234
+ }
76235
+ d2 && "function" == typeof d2.getPropertyValue && (l2.x += parseInt(d2.getPropertyValue("border-left-width")), l2.y += parseInt(d2.getPropertyValue("border-top-width"))), l2.width = i2.clientWidth, l2.height = i2.clientHeight;
76207
76236
  }
76208
- var c2 = function(r5) {
76209
- for (var n3 = (void 0 === r5 ? [] : r5)[0]; n3.offsetParent && n3.offsetParent !== t2.body && n3.offsetParent !== t2.documentElement; )
76210
- n3 = n3.offsetParent;
76211
- return "fixed" === e2.getComputedStyle(n3).getPropertyValue("position") ? n3 : null;
76237
+ var s2 = function(r5) {
76238
+ for (var n3, o3 = (void 0 === r5 ? [] : r5)[0]; o3.offsetParent && o3.offsetParent !== t2.body && o3.offsetParent !== t2.documentElement; )
76239
+ o3 = o3.offsetParent;
76240
+ try {
76241
+ n3 = e2.getComputedStyle(o3);
76242
+ } catch (r6) {
76243
+ return null;
76244
+ }
76245
+ return n3 && "function" == typeof n3.getPropertyValue && "fixed" === n3.getPropertyValue("position") ? o3 : null;
76212
76246
  }([i2]);
76213
- if (c2) {
76214
- if (c2 !== i2) {
76215
- var s2 = n2([c2]);
76216
- f2.x += s2.x, f2.y += s2.y;
76247
+ if (s2) {
76248
+ if (s2 !== i2) {
76249
+ var y = n2([s2]);
76250
+ l2.x += y.x, l2.y += y.y;
76217
76251
  }
76218
76252
  } else {
76219
- var y = n2();
76220
- f2.x += y.x, f2.y += y.y;
76253
+ var p = n2();
76254
+ l2.x += p.x, l2.y += p.y;
76221
76255
  }
76222
- return f2;
76256
+ return l2;
76223
76257
  });
76224
76258
  }();
76225
76259
  }, e = true;
76226
76260
  try {
76227
76261
  var r = function t2(e2) {
76228
- if (d.Array.isArray(e2)) {
76229
- for (var r2 = new d.Array(e2.length), n2 = 0; n2 < e2.length; n2++)
76262
+ if (u.Array.isArray(e2)) {
76263
+ for (var r2 = new u.Array(e2.length), n2 = 0; n2 < e2.length; n2++)
76230
76264
  r2[n2] = t2(e2[n2]);
76231
76265
  return r2;
76232
76266
  }
76233
76267
  if (e2 && "object" == typeof e2 && Object.getPrototypeOf(e2) === Object.prototype) {
76234
- var o2 = new d.Object();
76268
+ var o2 = new u.Object();
76235
76269
  for (var i2 in e2)
76236
76270
  Object.prototype.hasOwnProperty.call(e2, i2) && (o2[i2] = t2(e2[i2]));
76237
76271
  return o2;
@@ -76245,13 +76279,13 @@ var require_dist3 = __commonJS({
76245
76279
  if (delete n.contentWindow["ctor-" + o], "function" != typeof a)
76246
76280
  throw new Error("Sandbox failed to extract function");
76247
76281
  e = false;
76248
- var d = n.contentWindow, u = d.__EYES__APPLITOOLS__ = d.__EYES__APPLITOOLS__ || {};
76249
- u._stringify || (u._stringify = d.JSON.stringify.bind(d.JSON));
76250
- var f = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
76251
- f._stringify && f._stringify !== JSON.stringify || (f._stringify = d.JSON.stringify.bind(d.JSON));
76252
- for (var l = new d.Array(arguments.length), c = 0; c < arguments.length; c++)
76253
- l[c] = r(c < 0 || arguments.length <= c ? void 0 : arguments[c]);
76254
- return a(document, window, d).apply(void 0, l);
76282
+ var u = n.contentWindow, f = u.__EYES__APPLITOOLS__ = u.__EYES__APPLITOOLS__ || {};
76283
+ f._stringify || (f._stringify = u.JSON.stringify.bind(u.JSON));
76284
+ var c = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
76285
+ c._stringify && c._stringify !== JSON.stringify || (c._stringify = u.JSON.stringify.bind(u.JSON));
76286
+ for (var l = new u.Array(arguments.length), d = 0; d < arguments.length; d++)
76287
+ l[d] = r(d < 0 || arguments.length <= d ? void 0 : arguments[d]);
76288
+ return a(document, window, u).apply(void 0, l);
76255
76289
  } catch (r2) {
76256
76290
  try {
76257
76291
  return t(document, window, window).apply(void 0, arguments);
@@ -76323,10 +76357,10 @@ var require_dist3 = __commonJS({
76323
76357
  var t = function(t2, r2, e2) {
76324
76358
  return o2 = function(r3) {
76325
76359
  var e3 = (void 0 === r3 ? [] : r3)[0], n3 = void 0 === e3 ? t2.documentElement : e3, o3 = function(t3) {
76326
- var r4 = void 0 === t3 ? [] : t3, e4 = r4[0], n4 = r4[1];
76327
- return (void 0 === n4 ? [] : n4).reduce(function(t4, r5) {
76328
- return t4[r5] = { value: e4.style.getPropertyValue(r5), important: Boolean(e4.style.getPropertyPriority(r5)) }, t4;
76329
- }, {});
76360
+ var r4 = void 0 === t3 ? [] : t3, e4 = r4[0], n4 = r4[1], o4 = void 0 === n4 ? [] : n4, i3 = e4.style;
76361
+ return i3 && "function" == typeof i3.getPropertyValue ? o4.reduce(function(t4, r5) {
76362
+ return t4[r5] = { value: i3.getPropertyValue(r5), important: Boolean(i3.getPropertyPriority(r5)) }, t4;
76363
+ }, {}) : {};
76330
76364
  }([n3, ["transform", "-webkit-transform"]]), i2 = Object.keys(o3).reduce(function(t3, r4) {
76331
76365
  var e4 = o3[r4].value;
76332
76366
  if (e4) {
@@ -76379,8 +76413,8 @@ var require_dist3 = __commonJS({
76379
76413
  d._stringify || (d._stringify = c.JSON.stringify.bind(c.JSON));
76380
76414
  var s2 = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
76381
76415
  s2._stringify && s2._stringify !== JSON.stringify || (s2._stringify = c.JSON.stringify.bind(c.JSON));
76382
- for (var u = new c.Array(arguments.length), l = 0; l < arguments.length; l++)
76383
- u[l] = e(l < 0 || arguments.length <= l ? void 0 : arguments[l]);
76416
+ for (var u = new c.Array(arguments.length), f = 0; f < arguments.length; f++)
76417
+ u[f] = e(f < 0 || arguments.length <= f ? void 0 : arguments[f]);
76384
76418
  return a(document, window, c).apply(void 0, u);
76385
76419
  } catch (e2) {
76386
76420
  try {
@@ -76397,48 +76431,53 @@ var require_dist3 = __commonJS({
76397
76431
  var s = function() {
76398
76432
  "use strict";
76399
76433
  return function() {
76400
- var t = function(t2, n2, e2) {
76401
- return (o2 = function(e3) {
76402
- for (var o3 = (void 0 === e3 ? [] : e3)[0]; o3.offsetParent && o3.offsetParent !== t2.body && o3.offsetParent !== t2.documentElement; )
76403
- o3 = o3.offsetParent;
76404
- return "fixed" === n2.getComputedStyle(o3).getPropertyValue("position") ? o3 : null;
76405
- }) && o2.__esModule && Object.prototype.hasOwnProperty.call(o2, "default") ? o2.default : o2;
76406
- var o2;
76407
- }, n = true;
76434
+ var t = function(t2, e2, n2) {
76435
+ return (r2 = function(n3) {
76436
+ for (var r3, o2 = (void 0 === n3 ? [] : n3)[0]; o2.offsetParent && o2.offsetParent !== t2.body && o2.offsetParent !== t2.documentElement; )
76437
+ o2 = o2.offsetParent;
76438
+ try {
76439
+ r3 = e2.getComputedStyle(o2);
76440
+ } catch (n4) {
76441
+ return null;
76442
+ }
76443
+ return r3 && "function" == typeof r3.getPropertyValue && "fixed" === r3.getPropertyValue("position") ? o2 : null;
76444
+ }) && r2.__esModule && Object.prototype.hasOwnProperty.call(r2, "default") ? r2.default : r2;
76445
+ var r2;
76446
+ }, e = true;
76408
76447
  try {
76409
- var e = function t2(n2) {
76410
- if (d.Array.isArray(n2)) {
76411
- for (var e2 = new d.Array(n2.length), o2 = 0; o2 < n2.length; o2++)
76412
- e2[o2] = t2(n2[o2]);
76413
- return e2;
76448
+ var n = function t2(e2) {
76449
+ if (d.Array.isArray(e2)) {
76450
+ for (var n2 = new d.Array(e2.length), r2 = 0; r2 < e2.length; r2++)
76451
+ n2[r2] = t2(e2[r2]);
76452
+ return n2;
76414
76453
  }
76415
- if (n2 && "object" == typeof n2 && Object.getPrototypeOf(n2) === Object.prototype) {
76416
- var r2 = new d.Object();
76417
- for (var i2 in n2)
76418
- Object.prototype.hasOwnProperty.call(n2, i2) && (r2[i2] = t2(n2[i2]));
76419
- return r2;
76454
+ if (e2 && "object" == typeof e2 && Object.getPrototypeOf(e2) === Object.prototype) {
76455
+ var o2 = new d.Object();
76456
+ for (var i2 in e2)
76457
+ Object.prototype.hasOwnProperty.call(e2, i2) && (o2[i2] = t2(e2[i2]));
76458
+ return o2;
76420
76459
  }
76421
- return n2;
76422
- }, o = window.__applitools_sandbox;
76423
- o || ((o = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), o.setAttribute("data-applitools-skip", ""), document.head.appendChild(o), window.__applitools_sandbox = o);
76424
- var r = Math.floor(4294967296 * Math.random()), i = o.contentDocument.createElement("script");
76425
- i.textContent = "window['ctor-" + r + "'] = " + t.toString() + ";", o.contentDocument.head.appendChild(i);
76426
- var a = o.contentWindow["ctor-" + r];
76427
- if (delete o.contentWindow["ctor-" + r], "function" != typeof a)
76460
+ return e2;
76461
+ }, r = window.__applitools_sandbox;
76462
+ r || ((r = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), r.setAttribute("data-applitools-skip", ""), document.head.appendChild(r), window.__applitools_sandbox = r);
76463
+ var o = Math.floor(4294967296 * Math.random()), i = r.contentDocument.createElement("script");
76464
+ i.textContent = "window['ctor-" + o + "'] = " + t.toString() + ";", r.contentDocument.head.appendChild(i);
76465
+ var a = r.contentWindow["ctor-" + o];
76466
+ if (delete r.contentWindow["ctor-" + o], "function" != typeof a)
76428
76467
  throw new Error("Sandbox failed to extract function");
76429
- n = false;
76430
- var d = o.contentWindow, c = d.__EYES__APPLITOOLS__ = d.__EYES__APPLITOOLS__ || {};
76468
+ e = false;
76469
+ var d = r.contentWindow, c = d.__EYES__APPLITOOLS__ = d.__EYES__APPLITOOLS__ || {};
76431
76470
  c._stringify || (c._stringify = d.JSON.stringify.bind(d.JSON));
76432
76471
  var f = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
76433
76472
  f._stringify && f._stringify !== JSON.stringify || (f._stringify = d.JSON.stringify.bind(d.JSON));
76434
- for (var _ = new d.Array(arguments.length), l = 0; l < arguments.length; l++)
76435
- _[l] = e(l < 0 || arguments.length <= l ? void 0 : arguments[l]);
76436
- return a(document, window, d).apply(void 0, _);
76437
- } catch (e2) {
76473
+ for (var l = new d.Array(arguments.length), _ = 0; _ < arguments.length; _++)
76474
+ l[_] = n(_ < 0 || arguments.length <= _ ? void 0 : arguments[_]);
76475
+ return a(document, window, d).apply(void 0, l);
76476
+ } catch (n2) {
76438
76477
  try {
76439
76478
  return t(document, window, window).apply(void 0, arguments);
76440
76479
  } catch (t2) {
76441
- throw n ? t2 : e2;
76480
+ throw e ? t2 : n2;
76442
76481
  }
76443
76482
  }
76444
76483
  };
@@ -76449,39 +76488,39 @@ var require_dist3 = __commonJS({
76449
76488
  var s = function() {
76450
76489
  "use strict";
76451
76490
  return function() {
76452
- var t = function(t2, r2, e2) {
76491
+ var t = function(t2, e2, r2) {
76453
76492
  return o2 = function(t3) {
76454
- var r3 = void 0 === t3 ? [] : t3, e3 = r3[0], n3 = r3[1], o3 = Object.keys(n3).sort(), i2 = o3.reduce(function(t4, r4) {
76455
- return t4[r4] = { value: e3.style.getPropertyValue(r4), important: Boolean(e3.style.getPropertyPriority(r4)) }, t4;
76493
+ var e3 = void 0 === t3 ? [] : t3, r3 = e3[0], n3 = e3[1], o3 = Object.keys(n3).sort(), i2 = o3.reduce(function(t4, e4) {
76494
+ return t4[e4] = { value: r3.style.getPropertyValue(e4), important: Boolean(r3.style.getPropertyPriority(e4)) }, t4;
76456
76495
  }, {});
76457
76496
  return o3.forEach(function(t4) {
76458
- e3.style.setProperty(t4, "string" != typeof n3[t4] && n3[t4] ? n3[t4].value : n3[t4], n3[t4] && n3[t4].important ? "important" : "");
76497
+ r3.style.setProperty(t4, "string" != typeof n3[t4] && n3[t4] ? n3[t4].value : n3[t4], n3[t4] && n3[t4].important ? "important" : "");
76459
76498
  }), i2;
76460
- }, (n2 = function(r3) {
76461
- var e3, n3 = (void 0 === r3 ? [] : r3)[0];
76462
- n3 !== t2.documentElement && n3.tagName.toLowerCase() !== function() {
76463
- var r4 = "HTML", e4 = t2.scrollingElement;
76464
- return e4 && (r4 = e4.tagName), r4.toLowerCase();
76465
- }() || (e3 = o2([n3, { transform: "none" }]));
76466
- var i2 = { width: n3.scrollWidth, height: n3.scrollHeight };
76467
- return e3 && o2([n3, e3]), i2;
76499
+ }, (n2 = function(e3) {
76500
+ var r3, n3 = (void 0 === e3 ? [] : e3)[0], i2 = "string" == typeof n3.tagName ? n3.tagName.toLowerCase() : "";
76501
+ n3 !== t2.documentElement && i2 !== function() {
76502
+ var e4 = "HTML", r4 = t2.scrollingElement;
76503
+ return r4 && (e4 = r4.tagName), e4.toLowerCase();
76504
+ }() || (r3 = o2([n3, { transform: "none" }]));
76505
+ var a2 = { width: n3.scrollWidth, height: n3.scrollHeight };
76506
+ return r3 && o2([n3, r3]), a2;
76468
76507
  }) && n2.__esModule && Object.prototype.hasOwnProperty.call(n2, "default") ? n2.default : n2;
76469
76508
  var n2, o2;
76470
- }, r = true;
76509
+ }, e = true;
76471
76510
  try {
76472
- var e = function t2(r2) {
76473
- if (c.Array.isArray(r2)) {
76474
- for (var e2 = new c.Array(r2.length), n2 = 0; n2 < r2.length; n2++)
76475
- e2[n2] = t2(r2[n2]);
76476
- return e2;
76511
+ var r = function t2(e2) {
76512
+ if (c.Array.isArray(e2)) {
76513
+ for (var r2 = new c.Array(e2.length), n2 = 0; n2 < e2.length; n2++)
76514
+ r2[n2] = t2(e2[n2]);
76515
+ return r2;
76477
76516
  }
76478
- if (r2 && "object" == typeof r2 && Object.getPrototypeOf(r2) === Object.prototype) {
76517
+ if (e2 && "object" == typeof e2 && Object.getPrototypeOf(e2) === Object.prototype) {
76479
76518
  var o2 = new c.Object();
76480
- for (var i2 in r2)
76481
- Object.prototype.hasOwnProperty.call(r2, i2) && (o2[i2] = t2(r2[i2]));
76519
+ for (var i2 in e2)
76520
+ Object.prototype.hasOwnProperty.call(e2, i2) && (o2[i2] = t2(e2[i2]));
76482
76521
  return o2;
76483
76522
  }
76484
- return r2;
76523
+ return e2;
76485
76524
  }, n = window.__applitools_sandbox;
76486
76525
  n || ((n = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), n.setAttribute("data-applitools-skip", ""), document.head.appendChild(n), window.__applitools_sandbox = n);
76487
76526
  var o = Math.floor(4294967296 * Math.random()), i = n.contentDocument.createElement("script");
@@ -76489,19 +76528,19 @@ var require_dist3 = __commonJS({
76489
76528
  var a = n.contentWindow["ctor-" + o];
76490
76529
  if (delete n.contentWindow["ctor-" + o], "function" != typeof a)
76491
76530
  throw new Error("Sandbox failed to extract function");
76492
- r = false;
76531
+ e = false;
76493
76532
  var c = n.contentWindow, d = c.__EYES__APPLITOOLS__ = c.__EYES__APPLITOOLS__ || {};
76494
76533
  d._stringify || (d._stringify = c.JSON.stringify.bind(c.JSON));
76495
76534
  var l = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
76496
76535
  l._stringify && l._stringify !== JSON.stringify || (l._stringify = c.JSON.stringify.bind(c.JSON));
76497
76536
  for (var s2 = new c.Array(arguments.length), u = 0; u < arguments.length; u++)
76498
- s2[u] = e(u < 0 || arguments.length <= u ? void 0 : arguments[u]);
76537
+ s2[u] = r(u < 0 || arguments.length <= u ? void 0 : arguments[u]);
76499
76538
  return a(document, window, c).apply(void 0, s2);
76500
- } catch (e2) {
76539
+ } catch (r2) {
76501
76540
  try {
76502
76541
  return t(document, window, window).apply(void 0, arguments);
76503
76542
  } catch (t2) {
76504
- throw r ? t2 : e2;
76543
+ throw e ? t2 : r2;
76505
76544
  }
76506
76545
  }
76507
76546
  };
@@ -76514,22 +76553,27 @@ var require_dist3 = __commonJS({
76514
76553
  return function() {
76515
76554
  var t = function(t2, n2, r2) {
76516
76555
  return (e2 = function(t3) {
76517
- var r3 = void 0 === t3 ? [] : t3, e3 = r3[0], o2 = r3[1], i2 = void 0 === o2 ? [] : o2, a2 = n2.getComputedStyle(e3);
76518
- return a2 ? i2.map(function(t4) {
76519
- return a2.getPropertyValue(t4);
76556
+ var r3, e3 = void 0 === t3 ? [] : t3, o2 = e3[0], i2 = e3[1], a2 = void 0 === i2 ? [] : i2;
76557
+ try {
76558
+ r3 = n2.getComputedStyle(o2);
76559
+ } catch (t4) {
76560
+ return [];
76561
+ }
76562
+ return r3 && "function" == typeof r3.getPropertyValue ? a2.map(function(t4) {
76563
+ return r3.getPropertyValue(t4);
76520
76564
  }) : [];
76521
76565
  }) && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
76522
76566
  var e2;
76523
76567
  }, n = true;
76524
76568
  try {
76525
76569
  var r = function t2(n2) {
76526
- if (d.Array.isArray(n2)) {
76527
- for (var r2 = new d.Array(n2.length), e2 = 0; e2 < n2.length; e2++)
76570
+ if (c.Array.isArray(n2)) {
76571
+ for (var r2 = new c.Array(n2.length), e2 = 0; e2 < n2.length; e2++)
76528
76572
  r2[e2] = t2(n2[e2]);
76529
76573
  return r2;
76530
76574
  }
76531
76575
  if (n2 && "object" == typeof n2 && Object.getPrototypeOf(n2) === Object.prototype) {
76532
- var o2 = new d.Object();
76576
+ var o2 = new c.Object();
76533
76577
  for (var i2 in n2)
76534
76578
  Object.prototype.hasOwnProperty.call(n2, i2) && (o2[i2] = t2(n2[i2]));
76535
76579
  return o2;
@@ -76543,13 +76587,13 @@ var require_dist3 = __commonJS({
76543
76587
  if (delete e.contentWindow["ctor-" + o], "function" != typeof a)
76544
76588
  throw new Error("Sandbox failed to extract function");
76545
76589
  n = false;
76546
- var d = e.contentWindow, c = d.__EYES__APPLITOOLS__ = d.__EYES__APPLITOOLS__ || {};
76547
- c._stringify || (c._stringify = d.JSON.stringify.bind(d.JSON));
76590
+ var c = e.contentWindow, d = c.__EYES__APPLITOOLS__ = c.__EYES__APPLITOOLS__ || {};
76591
+ d._stringify || (d._stringify = c.JSON.stringify.bind(c.JSON));
76548
76592
  var _ = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
76549
- _._stringify && _._stringify !== JSON.stringify || (_._stringify = d.JSON.stringify.bind(d.JSON));
76550
- for (var p = new d.Array(arguments.length), l = 0; l < arguments.length; l++)
76551
- p[l] = r(l < 0 || arguments.length <= l ? void 0 : arguments[l]);
76552
- return a(document, window, d).apply(void 0, p);
76593
+ _._stringify && _._stringify !== JSON.stringify || (_._stringify = c.JSON.stringify.bind(c.JSON));
76594
+ for (var p = new c.Array(arguments.length), u = 0; u < arguments.length; u++)
76595
+ p[u] = r(u < 0 || arguments.length <= u ? void 0 : arguments[u]);
76596
+ return a(document, window, c).apply(void 0, p);
76553
76597
  } catch (r2) {
76554
76598
  try {
76555
76599
  return t(document, window, window).apply(void 0, arguments);
@@ -102519,6 +102563,8 @@ var require_processPagePollCjs = __commonJS({
102519
102563
  }
102520
102564
  function ql(e3) {
102521
102565
  let t3 = [];
102566
+ if (!e3 || "function" != typeof e3.getPropertyValue)
102567
+ return t3;
102522
102568
  for (let n3 = 0, r2 = e3.length; n3 < r2; n3++) {
102523
102569
  const r3 = e3[n3];
102524
102570
  let o2 = e3.getPropertyValue(r3);
@@ -102533,8 +102579,11 @@ var require_processPagePollCjs = __commonJS({
102533
102579
  const { ownerDocument: t3 } = e3;
102534
102580
  if (!t3)
102535
102581
  return true;
102536
- const { display: n3 } = t3.defaultView.getComputedStyle(e3), { width: r2, height: o2 } = e3.getBoundingClientRect();
102537
- return "none" === n3 || 0 === r2 || 0 === o2;
102582
+ const n3 = t3.defaultView.getComputedStyle(e3);
102583
+ if (!n3 || "string" != typeof n3.display)
102584
+ return false;
102585
+ const { display: r2 } = n3, { width: o2, height: i2 } = e3.getBoundingClientRect();
102586
+ return "none" === r2 || 0 === o2 || 0 === i2;
102538
102587
  }
102539
102588
  function Zl(e3) {
102540
102589
  try {
@@ -102598,166 +102647,186 @@ var require_processPagePollCjs = __commonJS({
102598
102647
  }), r3;
102599
102648
  }
102600
102649
  function p2(e4, r3, f2) {
102601
- var g2;
102602
- const b2 = Yl(r3);
102603
- let y2;
102604
- if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(b2.nodeType)) {
102605
- if (b2.hasAttribute && b2.hasAttribute("data-applitools-skip"))
102606
- return null;
102607
- if (["LINK", "STYLE", "SOURCE"].includes(b2.nodeName) && (null === (g2 = b2.media) || void 0 === g2 ? void 0 : g2.trim()) && !Zl(b2.media))
102608
- return null;
102609
- if ("SCRIPT" === b2.nodeName)
102610
- y2 = function(e5) {
102611
- return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Ql(e5).map((t4) => {
102612
- const n4 = e5.attributes[t4].name;
102613
- return { name: n4, value: Jl.test(n4) ? "" : e5.attributes[t4].value };
102614
- }).filter((e6) => "src" !== e6.name), childNodeIndexes: [] };
102615
- }(b2);
102616
- else {
102617
- const c3 = b2.shadowRoot && b2.shadowRoot.childNodes.length && "ShadowRoot" !== b2.shadowRoot.constructor.name;
102618
- if (y2 = function(e5) {
102619
- var t4, n4, r4;
102620
- const o3 = { nodeType: e5.nodeType, nodeName: e5.nodeName, attributes: Ql(e5).map((t5) => {
102621
- let n5 = e5.attributes[t5].value;
102622
- const r5 = e5.attributes[t5].name;
102623
- return n5.includes("blob:") ? n5 = n5.replace(/blob:/g, "") : Jl.test(r5) ? n5 = "" : "IFRAME" === e5.nodeName && m(e5) && "src" === r5 && "about:blank" !== e5.contentDocument.location.href && e5.contentDocument.location.href !== w(n5, e5.ownerDocument.location.href) ? n5 = e5.contentDocument.location.href : "style" === r5 && (n5 = function(e6) {
102624
- const t6 = { type: "DeclarationList", children: yl(e6) };
102625
- return Qs(t6);
102626
- }(e5.style)), { name: r5, value: n5 };
102627
- }) };
102628
- if ("INPUT" === e5.tagName && ["checkbox", "radio"].includes(e5.type)) {
102629
- if (e5.attributes.getNamedItem("checked") && !e5.checked) {
102630
- const e6 = o3.attributes.findIndex((e7) => "checked" === e7.name);
102631
- o3.attributes.splice(e6, 1);
102650
+ try {
102651
+ return function(e5, r4, f3) {
102652
+ var g2;
102653
+ const b2 = Yl(r4);
102654
+ let y2;
102655
+ if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(b2.nodeType)) {
102656
+ if (b2.hasAttribute && b2.hasAttribute("data-applitools-skip"))
102657
+ return null;
102658
+ if (["LINK", "STYLE", "SOURCE"].includes(b2.nodeName) && (null === (g2 = b2.media) || void 0 === g2 ? void 0 : g2.trim()) && !Zl(b2.media))
102659
+ return null;
102660
+ if ("SCRIPT" === b2.nodeName)
102661
+ y2 = function(e6) {
102662
+ return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Ql(e6).map((t4) => {
102663
+ const n4 = e6.attributes[t4].name;
102664
+ return { name: n4, value: Jl.test(n4) ? "" : e6.attributes[t4].value };
102665
+ }).filter((e7) => "src" !== e7.name), childNodeIndexes: [] };
102666
+ }(b2);
102667
+ else {
102668
+ const c3 = b2.shadowRoot && b2.shadowRoot.childNodes.length && "ShadowRoot" !== b2.shadowRoot.constructor.name;
102669
+ if (y2 = function(e6) {
102670
+ var t4, n4, r5;
102671
+ const o3 = { nodeType: e6.nodeType, nodeName: e6.nodeName, attributes: Ql(e6).map((t5) => {
102672
+ let n5 = e6.attributes[t5].value;
102673
+ const r6 = e6.attributes[t5].name;
102674
+ return !n5.includes("blob:") || "IFRAME" === e6.nodeName && "src" === r6 && m(e6) ? Jl.test(r6) ? n5 = "" : "IFRAME" === e6.nodeName && m(e6) && "src" === r6 && "about:blank" !== e6.contentDocument.location.href && e6.contentDocument.location.href !== w(n5, e6.ownerDocument.location.href) ? n5 = e6.contentDocument.location.href : "style" === r6 && (n5 = function(e7) {
102675
+ const t6 = { type: "DeclarationList", children: yl(e7) };
102676
+ return Qs(t6);
102677
+ }(e6.style)) : n5 = n5.replace(/blob:/g, ""), { name: r6, value: n5 };
102678
+ }) };
102679
+ if ("INPUT" === e6.tagName && ["checkbox", "radio"].includes(e6.type)) {
102680
+ if (e6.attributes.getNamedItem("checked") && !e6.checked) {
102681
+ const e7 = o3.attributes.findIndex((e8) => "checked" === e8.name);
102682
+ o3.attributes.splice(e7, 1);
102683
+ }
102684
+ !e6.attributes.getNamedItem("checked") && e6.checked && o3.attributes.push({ name: "checked" }), e6.indeterminate && o3.attributes.push({ name: "data-applitools-js-properties", value: JSON.stringify({ indeterminate: true }) });
102685
+ }
102686
+ if ("INPUT" === e6.tagName && Gl.has(e6.type)) {
102687
+ const i3 = null !== e6.attributes.getNamedItem("value"), a3 = null !== (n4 = null === (t4 = e6.attributes.getNamedItem("value")) || void 0 === t4 ? void 0 : t4.value) && void 0 !== n4 ? n4 : "", s3 = null !== (r5 = e6.value) && void 0 !== r5 ? r5 : "";
102688
+ i3 && a3 === s3 || ec(o3.attributes, "value", s3);
102689
+ }
102690
+ return "OPTION" === e6.tagName && e6.parentElement && e6.parentElement.selectedOptions && Array.from(e6.parentElement.selectedOptions).indexOf(Yl.unwrap(e6)) > -1 && ec(o3.attributes, "selected", ""), "STYLE" === e6.tagName && e6.sheet && e6.sheet.disabled && o3.attributes.push({ name: "data-applitools-disabled", value: "" }), "LINK" === e6.tagName && "text/css" === e6.type && e6.sheet && e6.sheet.disabled && ec(o3.attributes, "disabled", ""), o3;
102691
+ }(b2), "STYLE" === b2.nodeName && b2.sheet && b2.sheet.cssRules.length ? (e5.push(function(e6, t4, n4) {
102692
+ const r5 = (o3 = e6, function(e7) {
102693
+ return t5 = function(e8) {
102694
+ const t6 = e8.length, n5 = [1732584193, -271733879, -1732584194, 271733878];
102695
+ let r6;
102696
+ for (r6 = 64; r6 <= e8.length; r6 += 64)
102697
+ Nl(n5, Bl(e8.substring(r6 - 64, r6)));
102698
+ e8 = e8.substring(r6 - 64);
102699
+ const o4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
102700
+ for (r6 = 0; r6 < e8.length; r6++)
102701
+ o4[r6 >> 2] |= e8.charCodeAt(r6) << (r6 % 4 << 3);
102702
+ if (o4[r6 >> 2] |= 128 << (r6 % 4 << 3), r6 > 55)
102703
+ for (Nl(n5, o4), r6 = 0; r6 < 16; r6++)
102704
+ o4[r6] = 0;
102705
+ return o4[14] = 8 * t6, Nl(n5, o4), n5;
102706
+ }(e7), t5.map(Ml).join("");
102707
+ var t5;
102708
+ }(Array.prototype.map.call(o3.sheet.cssRules, (e7) => e7.cssText).join("")));
102709
+ var o3;
102710
+ return n4.__dsNodeCache && n4.__dsNodeCache.key === r5 ? t4.log("[domNodesToCdt] using cache for inline css of", Tl(e6)) : n4.__dsNodeCache = { key: r5, value: Ll(e6, t4) }, { nodeType: Node.TEXT_NODE, nodeValue: n4.__dsNodeCache.value };
102711
+ }(b2, n3, r4)), y2.childNodeIndexes = [e5.length - 1]) : "TEXTAREA" === b2.tagName && b2.value !== b2.textContent ? (e5.push(function(e6) {
102712
+ return { nodeType: Node.TEXT_NODE, nodeValue: e6.value };
102713
+ }(b2)), y2.childNodeIndexes = [e5.length - 1]) : y2.childNodeIndexes = !c3 && b2.childNodes.length ? d2(e5, b2.childNodes, f3) : [], f3 && "SLOT" === b2.tagName && "function" == typeof b2.assignedNodes) {
102714
+ const t4 = b2.assignedNodes();
102715
+ t4.length && (y2.childNodeIndexes = d2(e5, t4, f3) || []);
102632
102716
  }
102633
- !e5.attributes.getNamedItem("checked") && e5.checked && o3.attributes.push({ name: "checked" }), e5.indeterminate && o3.attributes.push({ name: "data-applitools-js-properties", value: JSON.stringify({ indeterminate: true }) });
102634
- }
102635
- if ("INPUT" === e5.tagName && Gl.has(e5.type)) {
102636
- const i3 = null !== e5.attributes.getNamedItem("value"), a3 = null !== (n4 = null === (t4 = e5.attributes.getNamedItem("value")) || void 0 === t4 ? void 0 : t4.value) && void 0 !== n4 ? n4 : "", s3 = null !== (r4 = e5.value) && void 0 !== r4 ? r4 : "";
102637
- i3 && a3 === s3 || ec(o3.attributes, "value", s3);
102638
- }
102639
- return "OPTION" === e5.tagName && e5.parentElement && e5.parentElement.selectedOptions && Array.from(e5.parentElement.selectedOptions).indexOf(Yl.unwrap(e5)) > -1 && ec(o3.attributes, "selected", ""), "STYLE" === e5.tagName && e5.sheet && e5.sheet.disabled && o3.attributes.push({ name: "data-applitools-disabled", value: "" }), "LINK" === e5.tagName && "text/css" === e5.type && e5.sheet && e5.sheet.disabled && ec(o3.attributes, "disabled", ""), o3;
102640
- }(b2), "STYLE" === b2.nodeName && b2.sheet && b2.sheet.cssRules.length ? (e4.push(function(e5, t4, n4) {
102641
- const r4 = (o3 = e5, function(e6) {
102642
- return t5 = function(e7) {
102643
- const t6 = e7.length, n5 = [1732584193, -271733879, -1732584194, 271733878];
102644
- let r5;
102645
- for (r5 = 64; r5 <= e7.length; r5 += 64)
102646
- Nl(n5, Bl(e7.substring(r5 - 64, r5)));
102647
- e7 = e7.substring(r5 - 64);
102648
- const o4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
102649
- for (r5 = 0; r5 < e7.length; r5++)
102650
- o4[r5 >> 2] |= e7.charCodeAt(r5) << (r5 % 4 << 3);
102651
- if (o4[r5 >> 2] |= 128 << (r5 % 4 << 3), r5 > 55)
102652
- for (Nl(n5, o4), r5 = 0; r5 < 16; r5++)
102653
- o4[r5] = 0;
102654
- return o4[14] = 8 * t6, Nl(n5, o4), n5;
102655
- }(e6), t5.map(Ml).join("");
102656
- var t5;
102657
- }(Array.prototype.map.call(o3.sheet.cssRules, (e6) => e6.cssText).join("")));
102658
- var o3;
102659
- return n4.__dsNodeCache && n4.__dsNodeCache.key === r4 ? t4.log("[domNodesToCdt] using cache for inline css of", Tl(e5)) : n4.__dsNodeCache = { key: r4, value: Ll(e5, t4) }, { nodeType: Node.TEXT_NODE, nodeValue: n4.__dsNodeCache.value };
102660
- }(b2, n3, r3)), y2.childNodeIndexes = [e4.length - 1]) : "TEXTAREA" === b2.tagName && b2.value !== b2.textContent ? (e4.push(function(e5) {
102661
- return { nodeType: Node.TEXT_NODE, nodeValue: e5.value };
102662
- }(b2)), y2.childNodeIndexes = [e4.length - 1]) : y2.childNodeIndexes = !c3 && b2.childNodes.length ? d2(e4, b2.childNodes, f2) : [], f2 && "SLOT" === b2.tagName && "function" == typeof b2.assignedNodes) {
102663
- const t4 = b2.assignedNodes();
102664
- t4.length && (y2.childNodeIndexes = d2(e4, t4, f2) || []);
102665
- }
102666
- if (b2.shadowRoot && (c3 ? y2.childNodeIndexes = y2.childNodeIndexes.concat(d2(e4, b2.shadowRoot.childNodes, true)) : (y2.shadowRootIndex = p2(e4, b2.shadowRoot), o2.push(b2.shadowRoot))), "CANVAS" === b2.nodeName && !Vl(r3)) {
102667
- const e5 = w(`applitools-canvas-${z()}.png`, t3);
102668
- y2.attributes.push({ name: "data-applitools-src", value: e5 }), i2.push({ element: b2, cdtNode: y2, url: e5 });
102669
- }
102670
- if ("IFRAME" === b2.nodeName) {
102671
- const n4 = z();
102672
- if (b2.setAttribute("data-applitools-selector", n4.toString()), Vl(r3))
102673
- y2.attributes.forEach((e5) => {
102674
- "src" !== e5.name && "srcdoc" !== e5.name || (y2.attributes.push({ name: `data-applitools-original-${e5.name}`, value: e5.value }), e5.value = "");
102675
- });
102676
- else if (m(r3))
102677
- if (x(b2)) {
102678
- const e5 = w(`?applitools-iframe=${z()}`, t3);
102679
- y2.attributes.push({ name: "data-applitools-src", value: e5 }), a2.push({ element: b2, url: e5 });
102680
- } else {
102681
- const e5 = b2.contentDocument.location.href, t4 = w(`?applitools-iframe=${z()}`, e5);
102682
- y2.attributes.push({ name: "data-applitools-src", value: t4 }), s2.push({ element: b2, url: t4 });
102717
+ if (b2.shadowRoot && (c3 ? y2.childNodeIndexes = y2.childNodeIndexes.concat(d2(e5, b2.shadowRoot.childNodes, true)) : (y2.shadowRootIndex = p2(e5, b2.shadowRoot), o2.push(b2.shadowRoot))), "CANVAS" === b2.nodeName && !Vl(r4)) {
102718
+ const e6 = w(`applitools-canvas-${z()}.png`, t3);
102719
+ y2.attributes.push({ name: "data-applitools-src", value: e6 }), i2.push({ element: b2, cdtNode: y2, url: e6 });
102683
102720
  }
102684
- else {
102685
- const t4 = `[data-applitools-selector="${n4}"]`;
102686
- l2.push({ selector: t4, index: e4.length });
102687
- }
102688
- }
102689
- b2.adoptedStyleSheets && b2.adoptedStyleSheets.length > 0 && (y2.exp_adoptedStyleSheets = tc(b2, n3));
102690
- }
102691
- if (b2.nodeType === Node.ELEMENT_NODE) {
102692
- const n4 = function(e5) {
102693
- const t4 = (e5.matches || e5.msMatchesSelector).bind(e5);
102694
- let n5 = [];
102695
- if (t4("img[srcset],source[srcset]")) {
102696
- const t5 = e5.getAttribute("srcset");
102697
- n5 = n5.concat(function(e6, t6, n6) {
102698
- const r5 = [], o3 = new RegExp(e6.source, e6.flags), i3 = o3.global;
102699
- let a3;
102700
- for (; (a3 = o3.exec(t6)) && (r5.push(n6(a3)), i3); )
102701
- ;
102702
- return r5;
102703
- }($l, t5, (e6) => e6[1]));
102704
- }
102705
- if (t4('img[src],source[src],input[type="image"][src],audio[src],video[src]')) {
102706
- const t5 = e5.getAttribute("src");
102707
- n5.push(t5);
102708
- }
102709
- if (t4("image,use")) {
102710
- const t5 = e5.getAttribute("href") || e5.getAttribute("xlink:href");
102711
- t5 && !function(e6, t6) {
102712
- try {
102713
- const n6 = new URL(t6), r5 = new URL(e6, t6);
102714
- return r5.origin === n6.origin && r5.pathname === n6.pathname && Boolean(r5.hash);
102715
- } catch (e7) {
102716
- return false;
102721
+ if ("IFRAME" === b2.nodeName) {
102722
+ const n4 = z();
102723
+ if (b2.setAttribute("data-applitools-selector", n4.toString()), Vl(r4))
102724
+ y2.attributes.forEach((e6) => {
102725
+ "src" !== e6.name && "srcdoc" !== e6.name || (y2.attributes.push({ name: `data-applitools-original-${e6.name}`, value: e6.value }), e6.value = "");
102726
+ });
102727
+ else if (m(r4))
102728
+ if (x(b2)) {
102729
+ const e6 = w(`?applitools-iframe=${z()}`, t3);
102730
+ y2.attributes.push({ name: "data-applitools-src", value: e6 }), a2.push({ element: b2, url: e6 });
102731
+ } else {
102732
+ const e6 = b2.contentDocument.location.href, t4 = w(`?applitools-iframe=${z()}`, e6);
102733
+ y2.attributes.push({ name: "data-applitools-src", value: t4 }), s2.push({ element: b2, url: t4 });
102734
+ }
102735
+ else {
102736
+ const t4 = `[data-applitools-selector="${n4}"]`;
102737
+ l2.push({ selector: t4, index: e5.length });
102717
102738
  }
102718
- }(t5, e5.ownerDocument.location.href) && n5.push(t5);
102719
- }
102720
- if (t4("object") && e5.getAttribute("data") && n5.push(e5.getAttribute("data")), t4('link[rel~="stylesheet"], link[as="stylesheet"]')) {
102721
- const t5 = e5.getAttribute("href");
102722
- n5.push(t5);
102739
+ }
102740
+ b2.adoptedStyleSheets && b2.adoptedStyleSheets.length > 0 && (y2.exp_adoptedStyleSheets = tc(b2, n3));
102723
102741
  }
102724
- if (t4("video[poster]")) {
102725
- const t5 = e5.getAttribute("poster");
102726
- n5.push(t5);
102742
+ if (b2.nodeType === Node.ELEMENT_NODE) {
102743
+ const n4 = function(e6) {
102744
+ const t4 = (e6.matches || e6.msMatchesSelector).bind(e6);
102745
+ let n5 = [];
102746
+ if (t4("img[srcset],source[srcset]")) {
102747
+ const t5 = e6.getAttribute("srcset");
102748
+ n5 = n5.concat(function(e7, t6, n6) {
102749
+ const r6 = [], o3 = new RegExp(e7.source, e7.flags), i3 = o3.global;
102750
+ let a3;
102751
+ for (; (a3 = o3.exec(t6)) && (r6.push(n6(a3)), i3); )
102752
+ ;
102753
+ return r6;
102754
+ }($l, t5, (e7) => e7[1]));
102755
+ }
102756
+ if (t4('img[src],source[src],input[type="image"][src],audio[src],video[src]')) {
102757
+ const t5 = e6.getAttribute("src");
102758
+ n5.push(t5);
102759
+ }
102760
+ if (t4("image,use")) {
102761
+ const t5 = e6.getAttribute("href") || e6.getAttribute("xlink:href");
102762
+ t5 && !function(e7, t6) {
102763
+ try {
102764
+ const n6 = new URL(t6), r6 = new URL(e7, t6);
102765
+ return r6.origin === n6.origin && r6.pathname === n6.pathname && Boolean(r6.hash);
102766
+ } catch (e8) {
102767
+ return false;
102768
+ }
102769
+ }(t5, e6.ownerDocument.location.href) && n5.push(t5);
102770
+ }
102771
+ if (t4("object") && e6.getAttribute("data") && n5.push(e6.getAttribute("data")), t4('link[rel~="stylesheet"], link[as="stylesheet"]')) {
102772
+ const t5 = e6.getAttribute("href");
102773
+ n5.push(t5);
102774
+ }
102775
+ if (t4("video[poster]")) {
102776
+ const t5 = e6.getAttribute("poster");
102777
+ n5.push(t5);
102778
+ }
102779
+ if (t4("embed[src]")) {
102780
+ const t5 = e6.getAttribute("src");
102781
+ n5.push(t5);
102782
+ }
102783
+ const r5 = function(e7) {
102784
+ if (e7.hasAttribute("style"))
102785
+ return ql(e7.style);
102786
+ }(e6);
102787
+ return r5 && (n5 = n5.concat(r5)), n5;
102788
+ }(b2);
102789
+ if (n4.length > 0 && (c2 = c2.concat(n4)), "IMG" === b2.tagName && /^blob:/.test(b2.src)) {
102790
+ const e6 = b2.src.replace(/^blob:/, "");
102791
+ u2.push({ element: b2, cdtNode: y2, url: e6 });
102792
+ }
102793
+ if ("VIDEO" === b2.tagName && (/^blob:/.test(b2.src) || b2.srcObject)) {
102794
+ let n5;
102795
+ if (b2.src) {
102796
+ if (n5 = b2.src.replace(/^blob:/, ""), y2.attributes = y2.attributes.filter((e6) => "src" !== e6.name), !y2.childNodeIndexes.some((t4) => "SOURCE" === e5[t4].nodeName)) {
102797
+ const t4 = { nodeType: Node.ELEMENT_NODE, nodeName: "SOURCE", attributes: [{ name: "src", value: b2.src.replace(/^blob:/, "") }], childNodeIndexes: [] };
102798
+ e5.push(t4), y2.childNodeIndexes.push(e5.length - 1);
102799
+ }
102800
+ } else
102801
+ n5 = w(`applitools-video-${z()}.webm`, t3), y2.attributes.push({ name: "data-applitools-src", value: n5 });
102802
+ h2.push({ element: b2, url: n5 });
102803
+ }
102727
102804
  }
102728
- if (t4("embed[src]")) {
102729
- const t5 = e5.getAttribute("src");
102730
- n5.push(t5);
102805
+ } else
102806
+ b2.nodeType === Node.TEXT_NODE ? y2 = function(e6) {
102807
+ return { nodeType: Node.TEXT_NODE, nodeValue: e6.nodeValue };
102808
+ }(b2) : b2.nodeType === Node.DOCUMENT_TYPE_NODE && (y2 = function(e6) {
102809
+ return { nodeType: Node.DOCUMENT_TYPE_NODE, nodeName: e6.nodeName };
102810
+ }(b2));
102811
+ return y2 ? (e5.push(y2), e5.length - 1) : null;
102812
+ }(e4, r3, f2);
102813
+ } catch (e5) {
102814
+ try {
102815
+ n3.warn("[domNodesToCdt] skipped a node that failed to serialize", function(e6) {
102816
+ try {
102817
+ const t4 = e6;
102818
+ if (t4.nodeType !== Node.ELEMENT_NODE)
102819
+ return `nodeType=${e6.nodeType}`;
102820
+ const n4 = "string" == typeof t4.tagName ? t4.tagName.toLowerCase() : `nodeType=${t4.nodeType}`;
102821
+ return `${n4}${t4.id ? `#${t4.id}` : ""}${"string" == typeof t4.className && t4.className ? `.${t4.className.trim().split(/\s+/).join(".")}` : ""}`;
102822
+ } catch (e7) {
102823
+ return "unknown-node";
102731
102824
  }
102732
- const r4 = function(e6) {
102733
- if (e6.hasAttribute("style"))
102734
- return ql(e6.style);
102735
- }(e5);
102736
- return r4 && (n5 = n5.concat(r4)), n5;
102737
- }(b2);
102738
- if (n4.length > 0 && (c2 = c2.concat(n4)), "IMG" === b2.tagName && /^blob:/.test(b2.src)) {
102739
- const e5 = b2.src.replace(/^blob:/, "");
102740
- u2.push({ element: b2, cdtNode: y2, url: e5 });
102741
- }
102742
- if ("VIDEO" === b2.tagName && (/^blob:/.test(b2.src) || b2.srcObject)) {
102743
- let n5;
102744
- if (b2.src) {
102745
- if (n5 = b2.src.replace(/^blob:/, ""), y2.attributes = y2.attributes.filter((e5) => "src" !== e5.name), !y2.childNodeIndexes.some((t4) => "SOURCE" === e4[t4].nodeName)) {
102746
- const t4 = { nodeType: Node.ELEMENT_NODE, nodeName: "SOURCE", attributes: [{ name: "src", value: b2.src.replace(/^blob:/, "") }], childNodeIndexes: [] };
102747
- e4.push(t4), y2.childNodeIndexes.push(e4.length - 1);
102748
- }
102749
- } else
102750
- n5 = w(`applitools-video-${z()}.webm`, t3), y2.attributes.push({ name: "data-applitools-src", value: n5 });
102751
- h2.push({ element: b2, url: n5 });
102752
- }
102825
+ }(r3), String(e5));
102826
+ } catch (e6) {
102753
102827
  }
102754
- } else
102755
- b2.nodeType === Node.TEXT_NODE ? y2 = function(e5) {
102756
- return { nodeType: Node.TEXT_NODE, nodeValue: e5.nodeValue };
102757
- }(b2) : b2.nodeType === Node.DOCUMENT_TYPE_NODE && (y2 = function(e5) {
102758
- return { nodeType: Node.DOCUMENT_TYPE_NODE, nodeName: e5.nodeName };
102759
- }(b2));
102760
- return y2 ? (e4.push(y2), e4.length - 1) : null;
102828
+ return null;
102829
+ }
102761
102830
  }
102762
102831
  }
102763
102832
  function Ql(e3) {
@@ -104665,7 +104734,7 @@ creating temp style for access.`), r2 = Qh(e3);
104665
104734
  function M2(e3) {
104666
104735
  return r3.defaultView && r3.defaultView.frameElement && r3.defaultView.frameElement.getAttribute(e3);
104667
104736
  }
104668
- }(n3).then((e3) => (m2.log("processPage end"), e3.scriptVersion = "4.17.2", e3));
104737
+ }(n3).then((e3) => (m2.log("processPage end"), e3.scriptVersion = "4.17.3", e3));
104669
104738
  }, n2[S], "domSnapshotResult");
104670
104739
  return function(e3) {
104671
104740
  try {
@@ -104993,10 +105062,12 @@ var require_take_dom_snapshot = __commonJS({
104993
105062
  const crossFrames = extractCrossFrames({ snapshot: snapshot2, logger });
104994
105063
  for (const { reference, parentSnapshot, cdtNode } of crossFrames) {
104995
105064
  const frameContext = await context2.context(reference).then((context3) => context3.focus()).catch((err) => {
104996
- var _a3;
105065
+ var _a3, _b3;
104997
105066
  const srcAttr = (_a3 = cdtNode.attributes) === null || _a3 === void 0 ? void 0 : _a3.find((attr) => attr.name === "src");
104998
- if (srcAttr)
105067
+ if (srcAttr) {
105068
+ (_b3 = cdtNode.attributes) === null || _b3 === void 0 ? void 0 : _b3.push({ name: "data-applitools-original-src", value: srcAttr.value });
104999
105069
  srcAttr.value = "";
105070
+ }
105000
105071
  logger.log(`could not switch to frame during takeDomSnapshot. Path to frame: ${JSON.stringify(reference)}`, err);
105001
105072
  });
105002
105073
  if (frameContext) {
@@ -130879,7 +130950,7 @@ var require_package3 = __commonJS({
130879
130950
  "../core/package.json"(exports, module) {
130880
130951
  module.exports = {
130881
130952
  name: "@applitools/core",
130882
- version: "4.64.1",
130953
+ version: "4.65.1",
130883
130954
  homepage: "https://applitools.com",
130884
130955
  bugs: {
130885
130956
  url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -132431,7 +132502,7 @@ var require_package4 = __commonJS({
132431
132502
  "../eyes/package.json"(exports, module) {
132432
132503
  module.exports = {
132433
132504
  name: "@applitools/eyes",
132434
- version: "1.43.1",
132505
+ version: "1.43.3",
132435
132506
  keywords: [
132436
132507
  "applitools",
132437
132508
  "eyes",
@@ -133485,8 +133556,8 @@ var require_Eyes = __commonJS({
133485
133556
  getBaselineEnvName() {
133486
133557
  return this._config.getBaselineEnvName();
133487
133558
  }
133488
- setBaselineEnvName(baselineEnvName) {
133489
- this._config.setBaselineEnvName(baselineEnvName);
133559
+ setBaselineEnvName(baselineEnvName, options) {
133560
+ this._config.setBaselineEnvName(baselineEnvName, options);
133490
133561
  }
133491
133562
  getBranchName() {
133492
133563
  return this._config.getBranchName();
@@ -134047,7 +134118,7 @@ var require_package5 = __commonJS({
134047
134118
  "package.json"(exports, module) {
134048
134119
  module.exports = {
134049
134120
  name: "@applitools/eyes-browser",
134050
- version: "1.6.20",
134121
+ version: "1.6.22",
134051
134122
  type: "module",
134052
134123
  keywords: [
134053
134124
  "applitools",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-browser",
3
- "version": "1.6.20",
3
+ "version": "1.6.22",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "applitools",
@@ -51,7 +51,7 @@
51
51
  "test": "run playwright test"
52
52
  },
53
53
  "dependencies": {
54
- "@applitools/eyes": "1.43.1"
54
+ "@applitools/eyes": "1.43.3"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@applitools/test-server": "1.4.4",
package/types/Eyes.d.ts CHANGED
@@ -10,7 +10,7 @@ import { Image } from './input/Image';
10
10
  import { OCRSettings } from './input/OCRSettings';
11
11
  import { VisualLocatorSettings } from './input/VisualLocatorSettings';
12
12
  import { ProxySettings, ProxySettingsData } from './input/ProxySettings';
13
- import { Configuration, ConfigurationData } from './input/Configuration';
13
+ import { BaselineEnvOptions, Configuration, ConfigurationData } from './input/Configuration';
14
14
  import { BatchInfo, BatchInfoData } from './input/BatchInfo';
15
15
  import { RectangleSize, RectangleSizeData } from './input/RectangleSize';
16
16
  import { Region } from './input/Region';
@@ -186,7 +186,7 @@ export declare class Eyes<TSpec extends Core.SpecType = Core.SpecType, TCheckSet
186
186
  /** @deprecated */
187
187
  setBaselineName(baselineName: string): void;
188
188
  getBaselineEnvName(): string;
189
- setBaselineEnvName(baselineEnvName: string): void;
189
+ setBaselineEnvName(baselineEnvName: string, options?: BaselineEnvOptions): void;
190
190
  getBranchName(): string;
191
191
  setBranchName(branchName: string): void;
192
192
  getHostApp(): string;
package/types/index.d.ts CHANGED
@@ -28,7 +28,7 @@ export { AccessibilitySettings } from './input/AccessibilitySettings';
28
28
  export { BatchInfo as BatchInfoPlain, BatchInfoData as BatchInfo } from './input/BatchInfo';
29
29
  export { Image } from './input/Image';
30
30
  export { CheckSettingsImage as CheckSettingsImagePlain, CheckSettingsImageFluent as CheckSettingsImage, CheckSettingsAutomation as CheckSettingsAutomationPlain, CheckSettingsAutomationFluent as CheckSettingsAutomation, TargetImage, TargetAutomation, Target, } from './input/CheckSettings';
31
- export { Configuration as ConfigurationPlain, ConfigurationData as Configuration } from './input/Configuration';
31
+ export { BaselineEnvOptions, Configuration as ConfigurationPlain, ConfigurationData as Configuration, } from './input/Configuration';
32
32
  export { CutProvider as CutProviderPlain, CutProviderData as CutProvider, FixedCutProviderData as FixedCutProvider, UnscaledFixedCutProviderData as UnscaledFixedCutProvider, } from './input/CutProvider';
33
33
  export { ExactMatchSettings as ExactMatchSettingsPlain, ExactMatchSettingsData as ExactMatchSettings, } from './input/ExactMatchSettings';
34
34
  export { FloatingMatchSettings as FloatingMatchSettingsPlain, FloatingMatchSettingsData as FloatingMatchSettings, } from './input/FloatingMatchSettings';
@@ -23,6 +23,9 @@ import { PropertyData, PropertyDataData } from './PropertyData';
23
23
  import { ImageMatchSettings } from './ImageMatchSettings';
24
24
  import { LatestCommitInfo } from './LatestCommitInfo';
25
25
  type MultiDeviceTargetTypes = IosDeviceTargetNames | AndroidDeviceTargetNames | IosDeviceTarget | AndroidDeviceTarget;
26
+ export type BaselineEnvOptions = {
27
+ useLatestEnvBaseline?: boolean;
28
+ };
26
29
  export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
27
30
  accessibilityValidation?: AccessibilitySettings;
28
31
  agentId?: string;
@@ -31,6 +34,8 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
31
34
  autProxy?: AUTProxySettings;
32
35
  baselineBranchName?: string;
33
36
  baselineEnvName?: string;
37
+ /** @internal */
38
+ baselineEnvOptions?: BaselineEnvOptions;
34
39
  batch?: BatchInfo;
35
40
  branchName?: string;
36
41
  browsersInfo?: RenderInfo[];
@@ -150,7 +155,11 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
150
155
  get baselineEnvName(): string;
151
156
  set baselineEnvName(baselineEnvName: string);
152
157
  getBaselineEnvName(): string;
153
- setBaselineEnvName(baselineEnvName: string): this;
158
+ setBaselineEnvName(baselineEnvName: string, options?: BaselineEnvOptions): this;
159
+ /** @internal */
160
+ get baselineEnvOptions(): BaselineEnvOptions;
161
+ /** @internal */
162
+ set baselineEnvOptions(baselineEnvOptions: BaselineEnvOptions);
154
163
  get batch(): BatchInfo;
155
164
  set batch(batch: BatchInfo);
156
165
  getBatch(): BatchInfoData;