Socket
Socket
Sign inDemoInstall

@applitools/dom-capture

Package Overview
Dependencies
Maintainers
48
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/dom-capture - npm Package Compare versions

Comparing version 11.2.3 to 11.2.4

16

CHANGELOG.md

@@ -1,2 +0,1 @@

# Changelog

@@ -7,2 +6,17 @@

## [11.2.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/dom-capture-v11.2.3...js/dom-capture@11.2.4) (2023-11-07)
### Bug Fixes
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56))
### Dependencies
* @applitools/dom-shared bumped to 1.0.11
#### Bug Fixes
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56))
## 11.2.3 - 2023/9/13

@@ -9,0 +23,0 @@

6

dist/captureDom.js

@@ -1,8 +0,8 @@

/* @applitools/dom-capture@11.2.3 */
/* @applitools/dom-capture@11.2.4 */
function __captureDom() {
var captureDom=function(){"use strict";var t=function(){const t=function(t){return function(){function e(t,e=0){const n=t.charCodeAt(e);return n>=55296&&n<56320?1024*(n-55296)+(t.charCodeAt(e+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(t,n){const o=[];let r=0;for(let s=0;s<t.length;++s){const a=e(t,s);let c=0;a>0&&(c=a<128?1:a<2048?2:a<65536?3:a<2097152?4:a<67108864?5:6),r+c>n?(o.push(s),r=c):r+=c}return o};const o=n,r="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR";var c=function(t,e,n={}){const c=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const n=JSON.stringify(t.value);t.chunks=o(n,e),t.chunks.length>0&&(t.from=0,t.value=n)}if(t.from>=0)return{status:s,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:r,value:t.value}}return t.error?{status:a,error:t.error}:{status:"WIP"}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],n);return(c.status===r||c.status===a||c.status===s&&c.done)&&(t[e]=null),c};const i=c;var u={chunkify:n,pollify:function(t,e,n){return o=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),i(e,n,o)}},poll:c,absolutizeUrl:function(t,e){return new URL(t,e).href},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}};const l=/url\((?!['"]?:)['"]?([^'")]*)['"]?\)/;var d={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","font-family","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};const{NODE_TYPES:f}=d;function m(t){return Array.prototype.filter.call(t.parentNode.childNodes,(e=>e.tagName===t.tagName)).indexOf(t)+1}var h=function(e){var n=t.implementation.createHTMLDocument(""),o=n.createElement("style");return o.textContent=e,n.body.appendChild(o),o.sheet},p=function(t){const e=Array.from(t.attributes).find((t=>"href"===t.name.toLowerCase()));return e&&e.value},g=function(t){if(t.nodeName&&"LINK"===t.nodeName.toUpperCase()&&t.attributes){const e=new Map(Array.from(t.attributes,(t=>[t.name.toLowerCase(),t.value.toLowerCase()])));return"stylesheet"===e.get("rel")||"style"===e.get("as")&&["preload","prefetch"].includes(e.get("rel"))}return!1};const y=p,C=g;const{absolutizeUrl:w,isInlineFrame:E}=u,T=h,N=p,b=g,{NODE_TYPES:S}=d;const{absolutizeUrl:$,isInlineFrame:A}=u,D=function(t){const e=t?t.match(l):void 0;return e?e[1]:e},R=async function({bgImages:t,timeout:e=5e3,Image:n=window.Image}){return(await Promise.all(Array.from(t).map((t=>{return Promise.race([new Promise((e=>{const o=new n;o.onload=()=>e({url:t,width:o.naturalWidth,height:o.naturalHeight}),o.onerror=()=>e(),o.src=t})),(o=e,new Promise((t=>{setTimeout(t,o)})))]);var o})))).reduce(((t,e)=>(e&&(t[e.url]={width:e.width,height:e.height}),t)),{})},_=function t(e){if(!e.ownerDocument)return"";let n="",o=e,r=e.ownerDocument,s=r.defaultView.frameElement;for(;o!==r&&(!o||o.nodeType!==f.DOCUMENT_FRAGMENT);)n=`${o.tagName}[${m(o)}]/${n}`,o=o.parentNode;return s&&(n=`${t(s)},${n}`),n.replace(/\/$/,"")},P=function({parseCss:t,CSSImportRule:e,absolutizeUrl:n,getCssFromCache:o,unfetchedToken:r}){return function s(a,c){let i,u="";try{const l=t(a);for(const t of Array.from(l.cssRules))if(t instanceof e){const e=n(t.href,c),a=o(e);if(void 0!==a){const{bundledCss:t,unfetchedResources:n}=s(a,e);n&&(i=new Set(n)),u=`${u}${t}`}else i=new Set([e]),u=`\n${r}${e}${r}`}}catch(t){console.log(`error during getBundledCssFromCssText, styleBaseUrl=${c}`,t)}var l,d;return u=`${u}${l=a,d=c,`\n/** ${d} **/\n${l}`}`,{bundledCss:u,unfetchedResources:i}}},U=h,v=function(t){const e=["before","after"];try{let n=[];return e.forEach((e=>{const o=t.ownerDocument.defaultView.getComputedStyle(t,`:${e}`);o&&"none"!==o.getPropertyValue("content")&&n.push(e)})),n.join("_and_")}catch(t){return!1}},F=function(t,{fetchTimeLimit:e}={}){return async function(n){const o=new AbortController,r=[t(n,{cache:"force-cache",signal:o.signal}).then((t=>{if(t.ok)return t.text();console.log("/failed to fetch (status "+t.status+") css from: "+n+"/")})).catch((t=>{console.log("/failed to fetch (error "+t.toString()+") css from: "+n+"/")}))];return Number.isNaN(Number(e))||r.push(new Promise((t=>setTimeout(t,e))).then((()=>o.abort()))),Promise.race(r)}},k=function({getCssFromCache:t,absolutizeUrl:e}){return function(n,o){let r,s,a;if(n&&function(t){return t.nodeName&&"STYLE"===t.nodeName.toUpperCase()}(n))r=Array.from(n.childNodes).map((t=>t.nodeValue)).join(""),s=o;else if(n&&C(n)){const c=y(n);!function(t){return t&&t.startsWith("data:")}(c)?(s=e(c,o),r=t(s)):(s=o,r=c.match(/,(.+)/)[1]),a=void 0===r}return{cssText:r,styleBaseUrl:s,isUnfetched:a}}},O=function({extractCssFromNode:t,getBundledCssFromCssText:e,unfetchedToken:n}){return function(o,r){const{styleBaseUrl:s,cssText:a,isUnfetched:c}=t(o,r);let i,u="";if(a){const{bundledCss:t,unfetchedResources:n}=e(a,s);u+=t,i=new Set(n)}else c&&(u+=`${n}${s}${n}`,i=new Set([s]));return{bundledCss:u,unfetchedResources:i}}},I=function(e){return async function(n=t){const o={},r=Date.now(),s=[];return function t(n,o,r,s){function c(t){if(s.push(async function(t,n,o){let r,s;t&&b(t)&&(s=w(N(t),n),r=await e(s),void 0!==r&&(o[s]=r)),r&&await a(r,s,o)}(t,o,r)),t.nodeType===S.ELEMENT)return"IFRAME"===t.tagName.toUpperCase()?u(t):i(t)}async function i(t){Array.prototype.map.call(t.childNodes,c)}async function u(e){if(i(e),e.contentDocument)try{const n=E(e)?e.baseURI:e.contentDocument.location.href;t(e.contentDocument,n,r,s)}catch(e){console.log(e)}}c(n.documentElement)}(n,n.location.href,o,s),await Promise.all(s),console.log("[prefetchAllCss]",Date.now()-r),function(t){return o[t]};async function a(t,n,o){try{const r=T(t),s=[];for(const t of Array.from(r.cssRules))t instanceof CSSImportRule&&s.push((async()=>{const r=w(t.href,n),s=await e(r);o[r]=s,void 0!==s&&await a(s,r,o)})());await Promise.all(s)}catch(t){console.log(`error during fetchBundledCss, resourceUrl=${n}`,t)}}}},{NODE_TYPES:L,DEFAULT_STYLE_PROPS:x,DEFAULT_RECT_PROPS:M,DEFAULT_IGNORED_TAG_NAMES:V}=d,B="1.3.0";return async function({doc:e=t,styleProps:n=x,rectProps:o=M,ignoredTagNames:r=V,addStats:s=!1,fetchTimeLimit:a=3e4}={}){
var captureDom=function(){"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e=function(){const t=function(t){return function(){function e(t,e=0){const n=t.charCodeAt(e);return n>=55296&&n<56320?1024*(n-55296)+(t.charCodeAt(e+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(t,n){const o=[];let r=0;for(let a=0;a<t.length;++a){const s=e(t,a);let c=0;s>0&&(c=s<128?1:s<2048?2:s<65536?3:s<2097152?4:s<67108864?5:6),r+c>n?(o.push(a),r=c):r+=c}return o};const o=n,r="WIP",a="SUCCESS",s="SUCCESS_CHUNKED",c="ERROR";var u=function(t,e,n={}){const u=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const n=JSON.stringify(t.value);t.chunks=o(n,e),t.chunks.length>0&&(t.from=0,t.value=n)}if(t.from>=0)return{status:s,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:a,value:t.value}}return t.error?{status:c,error:t.error}:{status:r}}return{status:c,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],n);return(u.status===a||u.status===c||u.status===s&&u.done)&&(t[e]=null),u};const i=u;var l={chunkify:n,pollify:function(t,e,n){return o=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),i(e,n,o)}},poll:u,absolutizeUrl:function(t,e){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let n=!0;try{n=t!==decodeURI(t)}catch(t){n=!0}try{const o=new URL(t,e).href;return n?o:decodeURI(o)}catch(e){return n?t:decodeURI(t)}},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}};const d=/url\((?!['"]?:)['"]?([^'")]*)['"]?\)/;var f={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","font-family","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};const{NODE_TYPES:m}=f;function h(t){return Array.prototype.filter.call(t.parentNode.childNodes,(e=>e.tagName===t.tagName)).indexOf(t)+1}var p=function(e){var n=t.implementation.createHTMLDocument(""),o=n.createElement("style");return o.textContent=e,n.body.appendChild(o),o.sheet},g=function(t){const e=Array.from(t.attributes).find((t=>"href"===t.name.toLowerCase()));return e&&e.value},y=function(t){if(t.nodeName&&"LINK"===t.nodeName.toUpperCase()&&t.attributes){const e=new Map(Array.from(t.attributes,(t=>[t.name.toLowerCase(),t.value.toLowerCase()])));return"stylesheet"===e.get("rel")||"style"===e.get("as")&&["preload","prefetch"].includes(e.get("rel"))}return!1};const w=g,C=y;const{absolutizeUrl:E,isInlineFrame:T}=l,b=p,N=g,S=y,{NODE_TYPES:$}=f;const{absolutizeUrl:A,isInlineFrame:R}=l,_=function(t){const e=t?t.match(d):void 0;return e?e[1]:e},D=async function({bgImages:t,timeout:e=5e3,Image:n=window.Image}){return(await Promise.all(Array.from(t).map((t=>{return Promise.race([new Promise((e=>{const o=new n;o.onload=()=>e({url:t,width:o.naturalWidth,height:o.naturalHeight}),o.onerror=()=>e(),o.src=t})),(o=e,new Promise((t=>{setTimeout(t,o)})))]);var o})))).reduce(((t,e)=>(e&&(t[e.url]={width:e.width,height:e.height}),t)),{})},P=function t(e){if(!e.ownerDocument)return"";let n="",o=e,r=e.ownerDocument,a=r.defaultView.frameElement;for(;o!==r&&(!o||o.nodeType!==m.DOCUMENT_FRAGMENT);)n=`${o.tagName}[${h(o)}]/${n}`,o=o.parentNode;return a&&(n=`${t(a)},${n}`),n.replace(/\/$/,"")},U=function({parseCss:t,CSSImportRule:e,absolutizeUrl:n,getCssFromCache:o,unfetchedToken:r}){return function a(s,c){let u,i="";try{const l=t(s);for(const t of Array.from(l.cssRules))if(t instanceof e){const e=n(t.href,c),s=o(e);if(void 0!==s){const{bundledCss:t,unfetchedResources:n}=a(s,e);n&&(u=new Set(n)),i=`${i}${t}`}else u=new Set([e]),i=`\n${r}${e}${r}`}}catch(t){console.log(`error during getBundledCssFromCssText, styleBaseUrl=${c}`,t)}var l,d;return i=`${i}${l=s,d=c,`\n/** ${d} **/\n${l}`}`,{bundledCss:i,unfetchedResources:u}}},v=p,O=function(t){const e=["before","after"];try{let n=[];return e.forEach((e=>{const o=t.ownerDocument.defaultView.getComputedStyle(t,`:${e}`);o&&"none"!==o.getPropertyValue("content")&&n.push(e)})),n.join("_and_")}catch(t){return!1}},F=function(t,{fetchTimeLimit:e}={}){return async function(n){const o=new AbortController,r=[t(n,{cache:"force-cache",signal:o.signal}).then((t=>{if(t.ok)return t.text();console.log("/failed to fetch (status "+t.status+") css from: "+n+"/")})).catch((t=>{console.log("/failed to fetch (error "+t.toString()+") css from: "+n+"/")}))];return Number.isNaN(Number(e))||r.push(new Promise((t=>setTimeout(t,e))).then((()=>o.abort()))),Promise.race(r)}},I=function({getCssFromCache:t,absolutizeUrl:e}){return function(n,o){let r,a,s;if(n&&function(t){return t.nodeName&&"STYLE"===t.nodeName.toUpperCase()}(n))r=Array.from(n.childNodes).map((t=>t.nodeValue)).join(""),a=o;else if(n&&C(n)){const c=w(n);!function(t){return t&&t.startsWith("data:")}(c)?(a=e(c,o),r=t(a)):(a=o,r=c.match(/,(.+)/)[1]),s=void 0===r}return{cssText:r,styleBaseUrl:a,isUnfetched:s}}},k=function({extractCssFromNode:t,getBundledCssFromCssText:e,unfetchedToken:n}){return function(o,r){const{styleBaseUrl:a,cssText:s,isUnfetched:c}=t(o,r);let u,i="";if(s){const{bundledCss:t,unfetchedResources:n}=e(s,a);i+=t,u=new Set(n)}else c&&(i+=`${n}${a}${n}`,u=new Set([a]));return{bundledCss:i,unfetchedResources:u}}},L=function(e){return async function(n=t){const o={},r=Date.now(),a=[];return function t(n,o,r,a){function c(t){if(a.push(async function(t,n,o){let r,a;t&&S(t)&&(a=E(N(t),n),r=await e(a),void 0!==r&&(o[a]=r)),r&&await s(r,a,o)}(t,o,r)),t.nodeType===$.ELEMENT)return"IFRAME"===t.tagName.toUpperCase()?i(t):u(t)}async function u(t){Array.prototype.map.call(t.childNodes,c)}async function i(e){if(u(e),e.contentDocument)try{const n=T(e)?e.baseURI:e.contentDocument.location.href;t(e.contentDocument,n,r,a)}catch(e){console.log(e)}}c(n.documentElement)}(n,n.location.href,o,a),await Promise.all(a),console.log("[prefetchAllCss]",Date.now()-r),function(t){return o[t]};async function s(t,n,o){try{const r=b(t),a=[];for(const t of Array.from(r.cssRules))t instanceof CSSImportRule&&a.push((async()=>{const r=E(t.href,n),a=await e(r);o[r]=a,void 0!==a&&await s(a,r,o)})());await Promise.all(a)}catch(t){console.log(`error during fetchBundledCss, resourceUrl=${n}`,t)}}}},{NODE_TYPES:x,DEFAULT_STYLE_PROPS:M,DEFAULT_RECT_PROPS:V,DEFAULT_IGNORED_TAG_NAMES:B}=f;return function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((async function({doc:e=t,styleProps:n=M,rectProps:o=V,ignoredTagNames:r=B,addStats:a=!1,fetchTimeLimit:s=3e4}={}){
/* MARKER FOR TEST - DO NOT DELETE */
arguments[1]&&(e=arguments[1]),arguments[2]&&(s=arguments[2]),arguments[3]&&(a=arguments[3]);const c={total:{},prefetchCss:{},doCaptureDoc:{},waitForImages:{}};function i(t){t.startTime=Date.now()}function u(t){t.endTime=Date.now(),t.elapsedTime=t.endTime-t.startTime}const l=[];i(c.total);const d=new Set,f=[],m="@@@@@",h="#####",p="-----";i(c.prefetchCss);const g=I(F(fetch,{fetchTimeLimit:a})),y=await g(e);u(c.prefetchCss);const C=P({parseCss:U,CSSImportRule:CSSImportRule,getCssFromCache:y,absolutizeUrl:$,unfetchedToken:h}),w=k({getCssFromCache:y,absolutizeUrl:$}),E=O({extractCssFromNode:w,getBundledCssFromCssText:C,unfetchedToken:h});i(c.doCaptureDoc);const T=j(e);u(c.doCaptureDoc),i(c.waitForImages),await Promise.all(l),u(c.waitForImages),T.version=B,T.scriptVersion="11.2.3";const N=f.length?`${f.join("\n")}\n`:"",b=d.size?`${Array.from(d).join("\n")}\n`:"",S=JSON.stringify({separator:p,cssStartToken:h,cssEndToken:h,iframeStartToken:`"${m}`,iframeEndToken:`${m}"`});function z(){return s?`\n${p}\n${JSON.stringify(c)}`:""}u(c.total);const Y=`${S}\n${b}${p}\n${N}${p}\n${JSON.stringify(T)}${z()}`;return console.log("[captureFrame]",JSON.stringify(c)),Y;function G(t){return Object.keys(t).length?t:void 0}function J(t){return{tagName:"#text",text:t.textContent}}function j(t,s=t.location&&t.location.href){const a=new Set;let c="";const i=u(t.documentElement||t);return i.css=c,l.push(R({bgImages:a}).then((t=>i.images=t))),i;function u(t){if(t.hasAttribute&&t.hasAttribute("data-applitools-skip"))return null;const{bundledCss:e,unfetchedResources:n}=E(t,s);if(c+=e,n)for(const t of n)d.add(t);switch(t.nodeType){case L.TEXT:return J(t);case L.ELEMENT:return"IFRAME"===t.tagName.toUpperCase()?function(t){const e=h(t);let n;try{n=t.contentDocument}catch(t){return o(),e}try{n?e.childNodes=[j(n,A(t)?t.baseURI:n.location.href)]:o()}catch(t){console.log("error in iframeToJSON",t)}return e;function o(){const n=_(t);f.push(n),e.childNodes=[`${m}${n}${m}`]}}(t):h(t);case L.DOCUMENT_FRAGMENT:return{childNodes:Array.prototype.map.call(t.childNodes,u).filter(Boolean)};default:return null}}function h(t){const c=Array.prototype.map.call(t.childNodes,u).filter(Boolean),i=t.shadowRoot&&j(t.shadowRoot,s),l=t.tagName.toUpperCase();if(r.indexOf(l)>-1)return null;const d=e.defaultView.getComputedStyle(t),f=t.getBoundingClientRect(),m={};for(const t of n)m[t]=d.getPropertyValue(t);m["border-width"]||(m["border-width"]=`${d.getPropertyValue("border-top-width")} ${d.getPropertyValue("border-right-width")} ${d.getPropertyValue("border-bottom-width")} ${d.getPropertyValue("border-left-width")}`);const h={};for(const t of o)h[t]=f[t];const p=Array.from(t.attributes).map((t=>({key:t.name,value:t.value}))).reduce(((t,e)=>(t[e.key]=e.value,t)),{}),g=D(d.getPropertyValue("background-image"));g&&a.add(g);const y=v(t);y&&(p["data-applitools-has-pseudo"]=y);const C={tagName:l,style:G(m),rect:G(h),attributes:G(p),childNodes:c};return i&&(C.shadowRoot=i),C}}}}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=n.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,n.contentDocument.head.appendChild(r);const s=n.contentWindow[`ctor-${o}`];if("function"!=typeof s)throw new Error("Sandbox failed to extract function");return e=!1,s(document).apply(null,arguments)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}};return t}();
arguments[1]&&(e=arguments[1]),arguments[2]&&(a=arguments[2]),arguments[3]&&(s=arguments[3]);const c={total:{},prefetchCss:{},doCaptureDoc:{},waitForImages:{}};function u(t){t.startTime=Date.now()}function i(t){t.endTime=Date.now(),t.elapsedTime=t.endTime-t.startTime}const l=[];u(c.total);const d=new Set,f=[],m="@@@@@",h="#####",p="-----";u(c.prefetchCss);const g=L(F(fetch,{fetchTimeLimit:s})),y=await g(e);i(c.prefetchCss);const w=U({parseCss:v,CSSImportRule:CSSImportRule,getCssFromCache:y,absolutizeUrl:A,unfetchedToken:h}),C=I({getCssFromCache:y,absolutizeUrl:A}),E=k({extractCssFromNode:C,getBundledCssFromCssText:w,unfetchedToken:h});u(c.doCaptureDoc);const T=function t(a,s=a.location&&a.location.href){const c=new Set;let u="";const i=h(a.documentElement||a);return i.css=u,l.push(D({bgImages:c}).then((t=>i.images=t))),i;function h(e){if(e.hasAttribute&&e.hasAttribute("data-applitools-skip"))return null;const{bundledCss:n,unfetchedResources:o}=E(e,s);if(u+=n,o)for(const t of o)d.add(t);switch(e.nodeType){case x.TEXT:return function(t){return{tagName:"#text",text:t.textContent}}(e);case x.ELEMENT:return"IFRAME"===e.tagName.toUpperCase()?function(e){const n=p(e);let o;try{o=e.contentDocument}catch(e){return r(),n}try{o?n.childNodes=[t(o,R(e)?e.baseURI:o.location.href)]:r()}catch(e){console.log("error in iframeToJSON",e)}return n;function r(){const t=P(e);f.push(t),n.childNodes=[`${m}${t}${m}`]}}(e):p(e);case x.DOCUMENT_FRAGMENT:return{childNodes:Array.prototype.map.call(e.childNodes,h).filter(Boolean)};default:return null}}function p(a){const u=Array.prototype.map.call(a.childNodes,h).filter(Boolean),i=a.shadowRoot&&t(a.shadowRoot,s),l=a.tagName.toUpperCase();if(r.indexOf(l)>-1)return null;const d=e.defaultView.getComputedStyle(a),f=a.getBoundingClientRect(),m={};for(const t of n)m[t]=d.getPropertyValue(t);m["border-width"]||(m["border-width"]=`${d.getPropertyValue("border-top-width")} ${d.getPropertyValue("border-right-width")} ${d.getPropertyValue("border-bottom-width")} ${d.getPropertyValue("border-left-width")}`);const p={};for(const t of o)p[t]=f[t];const g=Array.from(a.attributes).map((t=>({key:t.name,value:t.value}))).reduce(((t,e)=>(t[e.key]=e.value,t)),{}),y=_(d.getPropertyValue("background-image"));y&&c.add(y);const w=O(a);w&&(g["data-applitools-has-pseudo"]=w);const C={tagName:l,style:z(m),rect:z(p),attributes:z(g),childNodes:u};return i&&(C.shadowRoot=i),C}}(e);i(c.doCaptureDoc),u(c.waitForImages),await Promise.all(l),i(c.waitForImages),T.version="1.3.0",T.scriptVersion="11.2.4";const b=f.length?`${f.join("\n")}\n`:"",N=d.size?`${Array.from(d).join("\n")}\n`:"",S=JSON.stringify({separator:p,cssStartToken:h,cssEndToken:h,iframeStartToken:`"${m}`,iframeEndToken:`${m}"`});i(c.total);const $=`${S}\n${N}${p}\n${b}${p}\n${JSON.stringify(T)}${a?`\n${p}\n${JSON.stringify(c)}`:""}`;return console.log("[captureFrame]",JSON.stringify(c)),$;function z(t){return Object.keys(t).length?t:void 0}}))}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=n.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,n.contentDocument.head.appendChild(r);const a=n.contentWindow[`ctor-${o}`];if("function"!=typeof a)throw new Error("Sandbox failed to extract function");return e=!1,a(document).apply(null,arguments)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}};return t(e)}();
return captureDom.apply(this, arguments);
}

@@ -1,8 +0,8 @@

/* @applitools/dom-capture@11.2.3 */
/* @applitools/dom-capture@11.2.4 */
function __captureDomPoll() {
var captureDomPoll=function(){"use strict";var t=function(){const t=function(t){return function(){function e(t,e=0){const n=t.charCodeAt(e);return n>=55296&&n<56320?1024*(n-55296)+(t.charCodeAt(e+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(t,n){const o=[];let r=0;for(let s=0;s<t.length;++s){const a=e(t,s);let c=0;a>0&&(c=a<128?1:a<2048?2:a<65536?3:a<2097152?4:a<67108864?5:6),r+c>n?(o.push(s),r=c):r+=c}return o};const o=n,r="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR";var c=function(t,e,n={}){const c=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const n=JSON.stringify(t.value);t.chunks=o(n,e),t.chunks.length>0&&(t.from=0,t.value=n)}if(t.from>=0)return{status:s,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:r,value:t.value}}return t.error?{status:a,error:t.error}:{status:"WIP"}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],n);return(c.status===r||c.status===a||c.status===s&&c.done)&&(t[e]=null),c};const i=c;var u={chunkify:n,pollify:function(t,e,n){return o=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),i(e,n,o)}},poll:c,absolutizeUrl:function(t,e){return new URL(t,e).href},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}},l={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","font-family","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};const d=/url\((?!['"]?:)['"]?([^'")]*)['"]?\)/;const{NODE_TYPES:f}=l;function m(t){return Array.prototype.filter.call(t.parentNode.childNodes,(e=>e.tagName===t.tagName)).indexOf(t)+1}var h=function(e){var n=t.implementation.createHTMLDocument(""),o=n.createElement("style");return o.textContent=e,n.body.appendChild(o),o.sheet},p=function(t){const e=Array.from(t.attributes).find((t=>"href"===t.name.toLowerCase()));return e&&e.value},g=function(t){if(t.nodeName&&"LINK"===t.nodeName.toUpperCase()&&t.attributes){const e=new Map(Array.from(t.attributes,(t=>[t.name.toLowerCase(),t.value.toLowerCase()])));return"stylesheet"===e.get("rel")||"style"===e.get("as")&&["preload","prefetch"].includes(e.get("rel"))}return!1};const y=p,w=g;const{absolutizeUrl:E,isInlineFrame:C}=u,T=h,N=p,S=g,{NODE_TYPES:b}=l;const{absolutizeUrl:A,isInlineFrame:$}=u,D=function(t){const e=t?t.match(d):void 0;return e?e[1]:e},_=async function({bgImages:t,timeout:e=5e3,Image:n=window.Image}){return(await Promise.all(Array.from(t).map((t=>{return Promise.race([new Promise((e=>{const o=new n;o.onload=()=>e({url:t,width:o.naturalWidth,height:o.naturalHeight}),o.onerror=()=>e(),o.src=t})),(o=e,new Promise((t=>{setTimeout(t,o)})))]);var o})))).reduce(((t,e)=>(e&&(t[e.url]={width:e.width,height:e.height}),t)),{})},P=function t(e){if(!e.ownerDocument)return"";let n="",o=e,r=e.ownerDocument,s=r.defaultView.frameElement;for(;o!==r&&(!o||o.nodeType!==f.DOCUMENT_FRAGMENT);)n=`${o.tagName}[${m(o)}]/${n}`,o=o.parentNode;return s&&(n=`${t(s)},${n}`),n.replace(/\/$/,"")},R=function({parseCss:t,CSSImportRule:e,absolutizeUrl:n,getCssFromCache:o,unfetchedToken:r}){return function s(a,c){let i,u="";try{const l=t(a);for(const t of Array.from(l.cssRules))if(t instanceof e){const e=n(t.href,c),a=o(e);if(void 0!==a){const{bundledCss:t,unfetchedResources:n}=s(a,e);n&&(i=new Set(n)),u=`${u}${t}`}else i=new Set([e]),u=`\n${r}${e}${r}`}}catch(t){console.log(`error during getBundledCssFromCssText, styleBaseUrl=${c}`,t)}var l,d;return u=`${u}${l=a,d=c,`\n/** ${d} **/\n${l}`}`,{bundledCss:u,unfetchedResources:i}}},U=h,v=function(t){const e=["before","after"];try{let n=[];return e.forEach((e=>{const o=t.ownerDocument.defaultView.getComputedStyle(t,`:${e}`);o&&"none"!==o.getPropertyValue("content")&&n.push(e)})),n.join("_and_")}catch(t){return!1}},O=function(t,{fetchTimeLimit:e}={}){return async function(n){const o=new AbortController,r=[t(n,{cache:"force-cache",signal:o.signal}).then((t=>{if(t.ok)return t.text();console.log("/failed to fetch (status "+t.status+") css from: "+n+"/")})).catch((t=>{console.log("/failed to fetch (error "+t.toString()+") css from: "+n+"/")}))];return Number.isNaN(Number(e))||r.push(new Promise((t=>setTimeout(t,e))).then((()=>o.abort()))),Promise.race(r)}},F=function({getCssFromCache:t,absolutizeUrl:e}){return function(n,o){let r,s,a;if(n&&function(t){return t.nodeName&&"STYLE"===t.nodeName.toUpperCase()}(n))r=Array.from(n.childNodes).map((t=>t.nodeValue)).join(""),s=o;else if(n&&w(n)){const c=y(n);!function(t){return t&&t.startsWith("data:")}(c)?(s=e(c,o),r=t(s)):(s=o,r=c.match(/,(.+)/)[1]),a=void 0===r}return{cssText:r,styleBaseUrl:s,isUnfetched:a}}},k=function({extractCssFromNode:t,getBundledCssFromCssText:e,unfetchedToken:n}){return function(o,r){const{styleBaseUrl:s,cssText:a,isUnfetched:c}=t(o,r);let i,u="";if(a){const{bundledCss:t,unfetchedResources:n}=e(a,s);u+=t,i=new Set(n)}else c&&(u+=`${n}${s}${n}`,i=new Set([s]));return{bundledCss:u,unfetchedResources:i}}},I=function(e){return async function(n=t){const o={},r=Date.now(),s=[];return function t(n,o,r,s){function c(t){if(s.push(async function(t,n,o){let r,s;t&&S(t)&&(s=E(N(t),n),r=await e(s),void 0!==r&&(o[s]=r)),r&&await a(r,s,o)}(t,o,r)),t.nodeType===b.ELEMENT)return"IFRAME"===t.tagName.toUpperCase()?u(t):i(t)}async function i(t){Array.prototype.map.call(t.childNodes,c)}async function u(e){if(i(e),e.contentDocument)try{const n=C(e)?e.baseURI:e.contentDocument.location.href;t(e.contentDocument,n,r,s)}catch(e){console.log(e)}}c(n.documentElement)}(n,n.location.href,o,s),await Promise.all(s),console.log("[prefetchAllCss]",Date.now()-r),function(t){return o[t]};async function a(t,n,o){try{const r=T(t),s=[];for(const t of Array.from(r.cssRules))t instanceof CSSImportRule&&s.push((async()=>{const r=E(t.href,n),s=await e(r);o[r]=s,void 0!==s&&await a(s,r,o)})());await Promise.all(s)}catch(t){console.log(`error during fetchBundledCss, resourceUrl=${n}`,t)}}}},{NODE_TYPES:L,DEFAULT_STYLE_PROPS:x,DEFAULT_RECT_PROPS:M,DEFAULT_IGNORED_TAG_NAMES:V}=l,B="1.3.0";const{pollify:Y}=u,{EYES_NAMESPACE:z,DOM_CAPTURE_KEY:G}=l,J=async function({doc:e=t,styleProps:n=x,rectProps:o=M,ignoredTagNames:r=V,addStats:s=!1,fetchTimeLimit:a=3e4}={}){
var captureDomPoll=function(){"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e=function(){const t=function(t){return function(){function e(t,e=0){const n=t.charCodeAt(e);return n>=55296&&n<56320?1024*(n-55296)+(t.charCodeAt(e+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(t,n){const o=[];let r=0;for(let s=0;s<t.length;++s){const a=e(t,s);let c=0;a>0&&(c=a<128?1:a<2048?2:a<65536?3:a<2097152?4:a<67108864?5:6),r+c>n?(o.push(s),r=c):r+=c}return o};const o=n,r="WIP",s="SUCCESS",a="SUCCESS_CHUNKED",c="ERROR";var u=function(t,e,n={}){const u=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const n=JSON.stringify(t.value);t.chunks=o(n,e),t.chunks.length>0&&(t.from=0,t.value=n)}if(t.from>=0)return{status:a,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:s,value:t.value}}return t.error?{status:c,error:t.error}:{status:r}}return{status:c,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],n);return(u.status===s||u.status===c||u.status===a&&u.done)&&(t[e]=null),u};const i=u;var l={chunkify:n,pollify:function(t,e,n){return o=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),i(e,n,o)}},poll:u,absolutizeUrl:function(t,e){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let n=!0;try{n=t!==decodeURI(t)}catch(t){n=!0}try{const o=new URL(t,e).href;return n?o:decodeURI(o)}catch(e){return n?t:decodeURI(t)}},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}},d={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","font-family","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};const f=/url\((?!['"]?:)['"]?([^'")]*)['"]?\)/;const{NODE_TYPES:m}=d;function h(t){return Array.prototype.filter.call(t.parentNode.childNodes,(e=>e.tagName===t.tagName)).indexOf(t)+1}var p=function(e){var n=t.implementation.createHTMLDocument(""),o=n.createElement("style");return o.textContent=e,n.body.appendChild(o),o.sheet},g=function(t){const e=Array.from(t.attributes).find((t=>"href"===t.name.toLowerCase()));return e&&e.value},y=function(t){if(t.nodeName&&"LINK"===t.nodeName.toUpperCase()&&t.attributes){const e=new Map(Array.from(t.attributes,(t=>[t.name.toLowerCase(),t.value.toLowerCase()])));return"stylesheet"===e.get("rel")||"style"===e.get("as")&&["preload","prefetch"].includes(e.get("rel"))}return!1};const w=g,E=y;const{absolutizeUrl:C,isInlineFrame:T}=l,N=p,b=g,S=y,{NODE_TYPES:A}=d;const{absolutizeUrl:$,isInlineFrame:_}=l,R=function(t){const e=t?t.match(f):void 0;return e?e[1]:e},P=async function({bgImages:t,timeout:e=5e3,Image:n=window.Image}){return(await Promise.all(Array.from(t).map((t=>{return Promise.race([new Promise((e=>{const o=new n;o.onload=()=>e({url:t,width:o.naturalWidth,height:o.naturalHeight}),o.onerror=()=>e(),o.src=t})),(o=e,new Promise((t=>{setTimeout(t,o)})))]);var o})))).reduce(((t,e)=>(e&&(t[e.url]={width:e.width,height:e.height}),t)),{})},D=function t(e){if(!e.ownerDocument)return"";let n="",o=e,r=e.ownerDocument,s=r.defaultView.frameElement;for(;o!==r&&(!o||o.nodeType!==m.DOCUMENT_FRAGMENT);)n=`${o.tagName}[${h(o)}]/${n}`,o=o.parentNode;return s&&(n=`${t(s)},${n}`),n.replace(/\/$/,"")},U=function({parseCss:t,CSSImportRule:e,absolutizeUrl:n,getCssFromCache:o,unfetchedToken:r}){return function s(a,c){let u,i="";try{const l=t(a);for(const t of Array.from(l.cssRules))if(t instanceof e){const e=n(t.href,c),a=o(e);if(void 0!==a){const{bundledCss:t,unfetchedResources:n}=s(a,e);n&&(u=new Set(n)),i=`${i}${t}`}else u=new Set([e]),i=`\n${r}${e}${r}`}}catch(t){console.log(`error during getBundledCssFromCssText, styleBaseUrl=${c}`,t)}var l,d;return i=`${i}${l=a,d=c,`\n/** ${d} **/\n${l}`}`,{bundledCss:i,unfetchedResources:u}}},O=p,v=function(t){const e=["before","after"];try{let n=[];return e.forEach((e=>{const o=t.ownerDocument.defaultView.getComputedStyle(t,`:${e}`);o&&"none"!==o.getPropertyValue("content")&&n.push(e)})),n.join("_and_")}catch(t){return!1}},F=function(t,{fetchTimeLimit:e}={}){return async function(n){const o=new AbortController,r=[t(n,{cache:"force-cache",signal:o.signal}).then((t=>{if(t.ok)return t.text();console.log("/failed to fetch (status "+t.status+") css from: "+n+"/")})).catch((t=>{console.log("/failed to fetch (error "+t.toString()+") css from: "+n+"/")}))];return Number.isNaN(Number(e))||r.push(new Promise((t=>setTimeout(t,e))).then((()=>o.abort()))),Promise.race(r)}},I=function({getCssFromCache:t,absolutizeUrl:e}){return function(n,o){let r,s,a;if(n&&function(t){return t.nodeName&&"STYLE"===t.nodeName.toUpperCase()}(n))r=Array.from(n.childNodes).map((t=>t.nodeValue)).join(""),s=o;else if(n&&E(n)){const c=w(n);!function(t){return t&&t.startsWith("data:")}(c)?(s=e(c,o),r=t(s)):(s=o,r=c.match(/,(.+)/)[1]),a=void 0===r}return{cssText:r,styleBaseUrl:s,isUnfetched:a}}},k=function({extractCssFromNode:t,getBundledCssFromCssText:e,unfetchedToken:n}){return function(o,r){const{styleBaseUrl:s,cssText:a,isUnfetched:c}=t(o,r);let u,i="";if(a){const{bundledCss:t,unfetchedResources:n}=e(a,s);i+=t,u=new Set(n)}else c&&(i+=`${n}${s}${n}`,u=new Set([s]));return{bundledCss:i,unfetchedResources:u}}},L=function(e){return async function(n=t){const o={},r=Date.now(),s=[];return function t(n,o,r,s){function c(t){if(s.push(async function(t,n,o){let r,s;t&&S(t)&&(s=C(b(t),n),r=await e(s),void 0!==r&&(o[s]=r)),r&&await a(r,s,o)}(t,o,r)),t.nodeType===A.ELEMENT)return"IFRAME"===t.tagName.toUpperCase()?i(t):u(t)}async function u(t){Array.prototype.map.call(t.childNodes,c)}async function i(e){if(u(e),e.contentDocument)try{const n=T(e)?e.baseURI:e.contentDocument.location.href;t(e.contentDocument,n,r,s)}catch(e){console.log(e)}}c(n.documentElement)}(n,n.location.href,o,s),await Promise.all(s),console.log("[prefetchAllCss]",Date.now()-r),function(t){return o[t]};async function a(t,n,o){try{const r=N(t),s=[];for(const t of Array.from(r.cssRules))t instanceof CSSImportRule&&s.push((async()=>{const r=C(t.href,n),s=await e(r);o[r]=s,void 0!==s&&await a(s,r,o)})());await Promise.all(s)}catch(t){console.log(`error during fetchBundledCss, resourceUrl=${n}`,t)}}}},{NODE_TYPES:x,DEFAULT_STYLE_PROPS:M,DEFAULT_RECT_PROPS:V,DEFAULT_IGNORED_TAG_NAMES:B}=d;const{pollify:Y}=l,{EYES_NAMESPACE:z,DOM_CAPTURE_KEY:G}=d,j=async function({doc:e=t,styleProps:n=M,rectProps:o=V,ignoredTagNames:r=B,addStats:s=!1,fetchTimeLimit:a=3e4}={}){
/* MARKER FOR TEST - DO NOT DELETE */
arguments[1]&&(e=arguments[1]),arguments[2]&&(s=arguments[2]),arguments[3]&&(a=arguments[3]);const c={total:{},prefetchCss:{},doCaptureDoc:{},waitForImages:{}};function i(t){t.startTime=Date.now()}function u(t){t.endTime=Date.now(),t.elapsedTime=t.endTime-t.startTime}const l=[];i(c.total);const d=new Set,f=[],m="@@@@@",h="#####",p="-----";i(c.prefetchCss);const g=I(O(fetch,{fetchTimeLimit:a})),y=await g(e);u(c.prefetchCss);const w=R({parseCss:U,CSSImportRule:CSSImportRule,getCssFromCache:y,absolutizeUrl:A,unfetchedToken:h}),E=F({getCssFromCache:y,absolutizeUrl:A}),C=k({extractCssFromNode:E,getBundledCssFromCssText:w,unfetchedToken:h});i(c.doCaptureDoc);const T=j(e);u(c.doCaptureDoc),i(c.waitForImages),await Promise.all(l),u(c.waitForImages),T.version=B,T.scriptVersion="11.2.3";const N=f.length?`${f.join("\n")}\n`:"",S=d.size?`${Array.from(d).join("\n")}\n`:"",b=JSON.stringify({separator:p,cssStartToken:h,cssEndToken:h,iframeStartToken:`"${m}`,iframeEndToken:`${m}"`});function Y(){return s?`\n${p}\n${JSON.stringify(c)}`:""}u(c.total);const z=`${b}\n${S}${p}\n${N}${p}\n${JSON.stringify(T)}${Y()}`;return console.log("[captureFrame]",JSON.stringify(c)),z;function G(t){return Object.keys(t).length?t:void 0}function J(t){return{tagName:"#text",text:t.textContent}}function j(t,s=t.location&&t.location.href){const a=new Set;let c="";const i=u(t.documentElement||t);return i.css=c,l.push(_({bgImages:a}).then((t=>i.images=t))),i;function u(t){if(t.hasAttribute&&t.hasAttribute("data-applitools-skip"))return null;const{bundledCss:e,unfetchedResources:n}=C(t,s);if(c+=e,n)for(const t of n)d.add(t);switch(t.nodeType){case L.TEXT:return J(t);case L.ELEMENT:return"IFRAME"===t.tagName.toUpperCase()?function(t){const e=h(t);let n;try{n=t.contentDocument}catch(t){return o(),e}try{n?e.childNodes=[j(n,$(t)?t.baseURI:n.location.href)]:o()}catch(t){console.log("error in iframeToJSON",t)}return e;function o(){const n=P(t);f.push(n),e.childNodes=[`${m}${n}${m}`]}}(t):h(t);case L.DOCUMENT_FRAGMENT:return{childNodes:Array.prototype.map.call(t.childNodes,u).filter(Boolean)};default:return null}}function h(t){const c=Array.prototype.map.call(t.childNodes,u).filter(Boolean),i=t.shadowRoot&&j(t.shadowRoot,s),l=t.tagName.toUpperCase();if(r.indexOf(l)>-1)return null;const d=e.defaultView.getComputedStyle(t),f=t.getBoundingClientRect(),m={};for(const t of n)m[t]=d.getPropertyValue(t);m["border-width"]||(m["border-width"]=`${d.getPropertyValue("border-top-width")} ${d.getPropertyValue("border-right-width")} ${d.getPropertyValue("border-bottom-width")} ${d.getPropertyValue("border-left-width")}`);const h={};for(const t of o)h[t]=f[t];const p=Array.from(t.attributes).map((t=>({key:t.name,value:t.value}))).reduce(((t,e)=>(t[e.key]=e.value,t)),{}),g=D(d.getPropertyValue("background-image"));g&&a.add(g);const y=v(t);y&&(p["data-applitools-has-pseudo"]=y);const w={tagName:l,style:G(m),rect:G(h),attributes:G(p),childNodes:c};return i&&(w.shadowRoot=i),w}}};window[z]=window[z]||{};const j=Y(J,window[z],G);return function(t){return JSON.stringify(j(t)(t))}}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=n.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,n.contentDocument.head.appendChild(r);const s=n.contentWindow[`ctor-${o}`];if("function"!=typeof s)throw new Error("Sandbox failed to extract function");return e=!1,s(document).apply(null,arguments)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}};return t}();
arguments[1]&&(e=arguments[1]),arguments[2]&&(s=arguments[2]),arguments[3]&&(a=arguments[3]);const c={total:{},prefetchCss:{},doCaptureDoc:{},waitForImages:{}};function u(t){t.startTime=Date.now()}function i(t){t.endTime=Date.now(),t.elapsedTime=t.endTime-t.startTime}const l=[];u(c.total);const d=new Set,f=[],m="@@@@@",h="#####",p="-----";u(c.prefetchCss);const g=L(F(fetch,{fetchTimeLimit:a})),y=await g(e);i(c.prefetchCss);const w=U({parseCss:O,CSSImportRule:CSSImportRule,getCssFromCache:y,absolutizeUrl:$,unfetchedToken:h}),E=I({getCssFromCache:y,absolutizeUrl:$}),C=k({extractCssFromNode:E,getBundledCssFromCssText:w,unfetchedToken:h});u(c.doCaptureDoc);const T=function t(s,a=s.location&&s.location.href){const c=new Set;let u="";const i=h(s.documentElement||s);return i.css=u,l.push(P({bgImages:c}).then((t=>i.images=t))),i;function h(e){if(e.hasAttribute&&e.hasAttribute("data-applitools-skip"))return null;const{bundledCss:n,unfetchedResources:o}=C(e,a);if(u+=n,o)for(const t of o)d.add(t);switch(e.nodeType){case x.TEXT:return function(t){return{tagName:"#text",text:t.textContent}}(e);case x.ELEMENT:return"IFRAME"===e.tagName.toUpperCase()?function(e){const n=p(e);let o;try{o=e.contentDocument}catch(e){return r(),n}try{o?n.childNodes=[t(o,_(e)?e.baseURI:o.location.href)]:r()}catch(e){console.log("error in iframeToJSON",e)}return n;function r(){const t=D(e);f.push(t),n.childNodes=[`${m}${t}${m}`]}}(e):p(e);case x.DOCUMENT_FRAGMENT:return{childNodes:Array.prototype.map.call(e.childNodes,h).filter(Boolean)};default:return null}}function p(s){const u=Array.prototype.map.call(s.childNodes,h).filter(Boolean),i=s.shadowRoot&&t(s.shadowRoot,a),l=s.tagName.toUpperCase();if(r.indexOf(l)>-1)return null;const d=e.defaultView.getComputedStyle(s),f=s.getBoundingClientRect(),m={};for(const t of n)m[t]=d.getPropertyValue(t);m["border-width"]||(m["border-width"]=`${d.getPropertyValue("border-top-width")} ${d.getPropertyValue("border-right-width")} ${d.getPropertyValue("border-bottom-width")} ${d.getPropertyValue("border-left-width")}`);const p={};for(const t of o)p[t]=f[t];const g=Array.from(s.attributes).map((t=>({key:t.name,value:t.value}))).reduce(((t,e)=>(t[e.key]=e.value,t)),{}),y=R(d.getPropertyValue("background-image"));y&&c.add(y);const w=v(s);w&&(g["data-applitools-has-pseudo"]=w);const E={tagName:l,style:Y(m),rect:Y(p),attributes:Y(g),childNodes:u};return i&&(E.shadowRoot=i),E}}(e);i(c.doCaptureDoc),u(c.waitForImages),await Promise.all(l),i(c.waitForImages),T.version="1.3.0",T.scriptVersion="11.2.4";const N=f.length?`${f.join("\n")}\n`:"",b=d.size?`${Array.from(d).join("\n")}\n`:"",S=JSON.stringify({separator:p,cssStartToken:h,cssEndToken:h,iframeStartToken:`"${m}`,iframeEndToken:`${m}"`});i(c.total);const A=`${S}\n${b}${p}\n${N}${p}\n${JSON.stringify(T)}${s?`\n${p}\n${JSON.stringify(c)}`:""}`;return console.log("[captureFrame]",JSON.stringify(c)),A;function Y(t){return Object.keys(t).length?t:void 0}};window[z]=window[z]||{};const J=Y(j,window[z],G);return function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){return JSON.stringify(J(t)(t))}))}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=n.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,n.contentDocument.head.appendChild(r);const s=n.contentWindow[`ctor-${o}`];if("function"!=typeof s)throw new Error("Sandbox failed to extract function");return e=!1,s(document).apply(null,arguments)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}};return t(e)}();
return captureDomPoll.apply(this, arguments);
}

@@ -1,4 +0,4 @@

/* @applitools/dom-capture@11.2.3 */
"use strict";var t=function(){const t=function(t){return function(){function e(t,e=0){const n=t.charCodeAt(e);return n>=55296&&n<56320?1024*(n-55296)+(t.charCodeAt(e+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(t,n){const o=[];let r=0;for(let s=0;s<t.length;++s){const a=e(t,s);let c=0;a>0&&(c=a<128?1:a<2048?2:a<65536?3:a<2097152?4:a<67108864?5:6),r+c>n?(o.push(s),r=c):r+=c}return o};const o=n,r="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR";var c=function(t,e,n={}){const c=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const n=JSON.stringify(t.value);t.chunks=o(n,e),t.chunks.length>0&&(t.from=0,t.value=n)}if(t.from>=0)return{status:s,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:r,value:t.value}}return t.error?{status:a,error:t.error}:{status:"WIP"}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],n);return(c.status===r||c.status===a||c.status===s&&c.done)&&(t[e]=null),c};const i=c;var u={chunkify:n,pollify:function(t,e,n){return o=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),i(e,n,o)}},poll:c,absolutizeUrl:function(t,e){return new URL(t,e).href},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}},l={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","font-family","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};const d=/url\((?!['"]?:)['"]?([^'")]*)['"]?\)/;const{NODE_TYPES:f}=l;function m(t){return Array.prototype.filter.call(t.parentNode.childNodes,(e=>e.tagName===t.tagName)).indexOf(t)+1}var h=function(e){var n=t.implementation.createHTMLDocument(""),o=n.createElement("style");return o.textContent=e,n.body.appendChild(o),o.sheet},p=function(t){const e=Array.from(t.attributes).find((t=>"href"===t.name.toLowerCase()));return e&&e.value},g=function(t){if(t.nodeName&&"LINK"===t.nodeName.toUpperCase()&&t.attributes){const e=new Map(Array.from(t.attributes,(t=>[t.name.toLowerCase(),t.value.toLowerCase()])));return"stylesheet"===e.get("rel")||"style"===e.get("as")&&["preload","prefetch"].includes(e.get("rel"))}return!1};const y=p,w=g;const{absolutizeUrl:E,isInlineFrame:C}=u,T=h,N=p,S=g,{NODE_TYPES:b}=l;const{absolutizeUrl:A,isInlineFrame:$}=u,_=function(t){const e=t?t.match(d):void 0;return e?e[1]:e},D=async function({bgImages:t,timeout:e=5e3,Image:n=window.Image}){return(await Promise.all(Array.from(t).map((t=>{return Promise.race([new Promise((e=>{const o=new n;o.onload=()=>e({url:t,width:o.naturalWidth,height:o.naturalHeight}),o.onerror=()=>e(),o.src=t})),(o=e,new Promise((t=>{setTimeout(t,o)})))]);var o})))).reduce(((t,e)=>(e&&(t[e.url]={width:e.width,height:e.height}),t)),{})},R=function t(e){if(!e.ownerDocument)return"";let n="",o=e,r=e.ownerDocument,s=r.defaultView.frameElement;for(;o!==r&&(!o||o.nodeType!==f.DOCUMENT_FRAGMENT);)n=`${o.tagName}[${m(o)}]/${n}`,o=o.parentNode;return s&&(n=`${t(s)},${n}`),n.replace(/\/$/,"")},P=function({parseCss:t,CSSImportRule:e,absolutizeUrl:n,getCssFromCache:o,unfetchedToken:r}){return function s(a,c){let i,u="";try{const l=t(a);for(const t of Array.from(l.cssRules))if(t instanceof e){const e=n(t.href,c),a=o(e);if(void 0!==a){const{bundledCss:t,unfetchedResources:n}=s(a,e);n&&(i=new Set(n)),u=`${u}${t}`}else i=new Set([e]),u=`\n${r}${e}${r}`}}catch(t){console.log(`error during getBundledCssFromCssText, styleBaseUrl=${c}`,t)}var l,d;return u=`${u}${l=a,d=c,`\n/** ${d} **/\n${l}`}`,{bundledCss:u,unfetchedResources:i}}},U=h,v=function(t){const e=["before","after"];try{let n=[];return e.forEach((e=>{const o=t.ownerDocument.defaultView.getComputedStyle(t,`:${e}`);o&&"none"!==o.getPropertyValue("content")&&n.push(e)})),n.join("_and_")}catch(t){return!1}},O=function(t,{fetchTimeLimit:e}={}){return async function(n){const o=new AbortController,r=[t(n,{cache:"force-cache",signal:o.signal}).then((t=>{if(t.ok)return t.text();console.log("/failed to fetch (status "+t.status+") css from: "+n+"/")})).catch((t=>{console.log("/failed to fetch (error "+t.toString()+") css from: "+n+"/")}))];return Number.isNaN(Number(e))||r.push(new Promise((t=>setTimeout(t,e))).then((()=>o.abort()))),Promise.race(r)}},F=function({getCssFromCache:t,absolutizeUrl:e}){return function(n,o){let r,s,a;if(n&&function(t){return t.nodeName&&"STYLE"===t.nodeName.toUpperCase()}(n))r=Array.from(n.childNodes).map((t=>t.nodeValue)).join(""),s=o;else if(n&&w(n)){const c=y(n);!function(t){return t&&t.startsWith("data:")}(c)?(s=e(c,o),r=t(s)):(s=o,r=c.match(/,(.+)/)[1]),a=void 0===r}return{cssText:r,styleBaseUrl:s,isUnfetched:a}}},k=function({extractCssFromNode:t,getBundledCssFromCssText:e,unfetchedToken:n}){return function(o,r){const{styleBaseUrl:s,cssText:a,isUnfetched:c}=t(o,r);let i,u="";if(a){const{bundledCss:t,unfetchedResources:n}=e(a,s);u+=t,i=new Set(n)}else c&&(u+=`${n}${s}${n}`,i=new Set([s]));return{bundledCss:u,unfetchedResources:i}}},I=function(e){return async function(n=t){const o={},r=Date.now(),s=[];return function t(n,o,r,s){function c(t){if(s.push(async function(t,n,o){let r,s;t&&S(t)&&(s=E(N(t),n),r=await e(s),void 0!==r&&(o[s]=r)),r&&await a(r,s,o)}(t,o,r)),t.nodeType===b.ELEMENT)return"IFRAME"===t.tagName.toUpperCase()?u(t):i(t)}async function i(t){Array.prototype.map.call(t.childNodes,c)}async function u(e){if(i(e),e.contentDocument)try{const n=C(e)?e.baseURI:e.contentDocument.location.href;t(e.contentDocument,n,r,s)}catch(e){console.log(e)}}c(n.documentElement)}(n,n.location.href,o,s),await Promise.all(s),console.log("[prefetchAllCss]",Date.now()-r),function(t){return o[t]};async function a(t,n,o){try{const r=T(t),s=[];for(const t of Array.from(r.cssRules))t instanceof CSSImportRule&&s.push((async()=>{const r=E(t.href,n),s=await e(r);o[r]=s,void 0!==s&&await a(s,r,o)})());await Promise.all(s)}catch(t){console.log(`error during fetchBundledCss, resourceUrl=${n}`,t)}}}},{NODE_TYPES:L,DEFAULT_STYLE_PROPS:x,DEFAULT_RECT_PROPS:M,DEFAULT_IGNORED_TAG_NAMES:V}=l,B="1.3.0";const{pollify:Y}=u,{EYES_NAMESPACE:z,DOM_CAPTURE_KEY:G}=l,J=async function({doc:e=t,styleProps:n=x,rectProps:o=M,ignoredTagNames:r=V,addStats:s=!1,fetchTimeLimit:a=3e4}={}){
/* @applitools/dom-capture@11.2.4 */
"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e=function(){const t=function(t){return function(){function e(t,e=0){const n=t.charCodeAt(e);return n>=55296&&n<56320?1024*(n-55296)+(t.charCodeAt(e+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(t,n){const o=[];let r=0;for(let s=0;s<t.length;++s){const a=e(t,s);let c=0;a>0&&(c=a<128?1:a<2048?2:a<65536?3:a<2097152?4:a<67108864?5:6),r+c>n?(o.push(s),r=c):r+=c}return o};const o=n,r="WIP",s="SUCCESS",a="SUCCESS_CHUNKED",c="ERROR";var u=function(t,e,n={}){const u=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const n=JSON.stringify(t.value);t.chunks=o(n,e),t.chunks.length>0&&(t.from=0,t.value=n)}if(t.from>=0)return{status:a,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:s,value:t.value}}return t.error?{status:c,error:t.error}:{status:r}}return{status:c,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],n);return(u.status===s||u.status===c||u.status===a&&u.done)&&(t[e]=null),u};const i=u;var l={chunkify:n,pollify:function(t,e,n){return o=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),i(e,n,o)}},poll:u,absolutizeUrl:function(t,e){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let n=!0;try{n=t!==decodeURI(t)}catch(t){n=!0}try{const o=new URL(t,e).href;return n?o:decodeURI(o)}catch(e){return n?t:decodeURI(t)}},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}},d={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","font-family","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};const f=/url\((?!['"]?:)['"]?([^'")]*)['"]?\)/;const{NODE_TYPES:m}=d;function h(t){return Array.prototype.filter.call(t.parentNode.childNodes,(e=>e.tagName===t.tagName)).indexOf(t)+1}var p=function(e){var n=t.implementation.createHTMLDocument(""),o=n.createElement("style");return o.textContent=e,n.body.appendChild(o),o.sheet},g=function(t){const e=Array.from(t.attributes).find((t=>"href"===t.name.toLowerCase()));return e&&e.value},y=function(t){if(t.nodeName&&"LINK"===t.nodeName.toUpperCase()&&t.attributes){const e=new Map(Array.from(t.attributes,(t=>[t.name.toLowerCase(),t.value.toLowerCase()])));return"stylesheet"===e.get("rel")||"style"===e.get("as")&&["preload","prefetch"].includes(e.get("rel"))}return!1};const w=g,E=y;const{absolutizeUrl:C,isInlineFrame:T}=l,N=p,b=g,S=y,{NODE_TYPES:A}=d;const{absolutizeUrl:$,isInlineFrame:_}=l,R=function(t){const e=t?t.match(f):void 0;return e?e[1]:e},P=async function({bgImages:t,timeout:e=5e3,Image:n=window.Image}){return(await Promise.all(Array.from(t).map((t=>{return Promise.race([new Promise((e=>{const o=new n;o.onload=()=>e({url:t,width:o.naturalWidth,height:o.naturalHeight}),o.onerror=()=>e(),o.src=t})),(o=e,new Promise((t=>{setTimeout(t,o)})))]);var o})))).reduce(((t,e)=>(e&&(t[e.url]={width:e.width,height:e.height}),t)),{})},D=function t(e){if(!e.ownerDocument)return"";let n="",o=e,r=e.ownerDocument,s=r.defaultView.frameElement;for(;o!==r&&(!o||o.nodeType!==m.DOCUMENT_FRAGMENT);)n=`${o.tagName}[${h(o)}]/${n}`,o=o.parentNode;return s&&(n=`${t(s)},${n}`),n.replace(/\/$/,"")},U=function({parseCss:t,CSSImportRule:e,absolutizeUrl:n,getCssFromCache:o,unfetchedToken:r}){return function s(a,c){let u,i="";try{const l=t(a);for(const t of Array.from(l.cssRules))if(t instanceof e){const e=n(t.href,c),a=o(e);if(void 0!==a){const{bundledCss:t,unfetchedResources:n}=s(a,e);n&&(u=new Set(n)),i=`${i}${t}`}else u=new Set([e]),i=`\n${r}${e}${r}`}}catch(t){console.log(`error during getBundledCssFromCssText, styleBaseUrl=${c}`,t)}var l,d;return i=`${i}${l=a,d=c,`\n/** ${d} **/\n${l}`}`,{bundledCss:i,unfetchedResources:u}}},O=p,v=function(t){const e=["before","after"];try{let n=[];return e.forEach((e=>{const o=t.ownerDocument.defaultView.getComputedStyle(t,`:${e}`);o&&"none"!==o.getPropertyValue("content")&&n.push(e)})),n.join("_and_")}catch(t){return!1}},F=function(t,{fetchTimeLimit:e}={}){return async function(n){const o=new AbortController,r=[t(n,{cache:"force-cache",signal:o.signal}).then((t=>{if(t.ok)return t.text();console.log("/failed to fetch (status "+t.status+") css from: "+n+"/")})).catch((t=>{console.log("/failed to fetch (error "+t.toString()+") css from: "+n+"/")}))];return Number.isNaN(Number(e))||r.push(new Promise((t=>setTimeout(t,e))).then((()=>o.abort()))),Promise.race(r)}},I=function({getCssFromCache:t,absolutizeUrl:e}){return function(n,o){let r,s,a;if(n&&function(t){return t.nodeName&&"STYLE"===t.nodeName.toUpperCase()}(n))r=Array.from(n.childNodes).map((t=>t.nodeValue)).join(""),s=o;else if(n&&E(n)){const c=w(n);!function(t){return t&&t.startsWith("data:")}(c)?(s=e(c,o),r=t(s)):(s=o,r=c.match(/,(.+)/)[1]),a=void 0===r}return{cssText:r,styleBaseUrl:s,isUnfetched:a}}},k=function({extractCssFromNode:t,getBundledCssFromCssText:e,unfetchedToken:n}){return function(o,r){const{styleBaseUrl:s,cssText:a,isUnfetched:c}=t(o,r);let u,i="";if(a){const{bundledCss:t,unfetchedResources:n}=e(a,s);i+=t,u=new Set(n)}else c&&(i+=`${n}${s}${n}`,u=new Set([s]));return{bundledCss:i,unfetchedResources:u}}},L=function(e){return async function(n=t){const o={},r=Date.now(),s=[];return function t(n,o,r,s){function c(t){if(s.push(async function(t,n,o){let r,s;t&&S(t)&&(s=C(b(t),n),r=await e(s),void 0!==r&&(o[s]=r)),r&&await a(r,s,o)}(t,o,r)),t.nodeType===A.ELEMENT)return"IFRAME"===t.tagName.toUpperCase()?i(t):u(t)}async function u(t){Array.prototype.map.call(t.childNodes,c)}async function i(e){if(u(e),e.contentDocument)try{const n=T(e)?e.baseURI:e.contentDocument.location.href;t(e.contentDocument,n,r,s)}catch(e){console.log(e)}}c(n.documentElement)}(n,n.location.href,o,s),await Promise.all(s),console.log("[prefetchAllCss]",Date.now()-r),function(t){return o[t]};async function a(t,n,o){try{const r=N(t),s=[];for(const t of Array.from(r.cssRules))t instanceof CSSImportRule&&s.push((async()=>{const r=C(t.href,n),s=await e(r);o[r]=s,void 0!==s&&await a(s,r,o)})());await Promise.all(s)}catch(t){console.log(`error during fetchBundledCss, resourceUrl=${n}`,t)}}}},{NODE_TYPES:x,DEFAULT_STYLE_PROPS:M,DEFAULT_RECT_PROPS:V,DEFAULT_IGNORED_TAG_NAMES:B}=d;const{pollify:Y}=l,{EYES_NAMESPACE:z,DOM_CAPTURE_KEY:G}=d,j=async function({doc:e=t,styleProps:n=M,rectProps:o=V,ignoredTagNames:r=B,addStats:s=!1,fetchTimeLimit:a=3e4}={}){
/* MARKER FOR TEST - DO NOT DELETE */
arguments[1]&&(e=arguments[1]),arguments[2]&&(s=arguments[2]),arguments[3]&&(a=arguments[3]);const c={total:{},prefetchCss:{},doCaptureDoc:{},waitForImages:{}};function i(t){t.startTime=Date.now()}function u(t){t.endTime=Date.now(),t.elapsedTime=t.endTime-t.startTime}const l=[];i(c.total);const d=new Set,f=[],m="@@@@@",h="#####",p="-----";i(c.prefetchCss);const g=I(O(fetch,{fetchTimeLimit:a})),y=await g(e);u(c.prefetchCss);const w=P({parseCss:U,CSSImportRule:CSSImportRule,getCssFromCache:y,absolutizeUrl:A,unfetchedToken:h}),E=F({getCssFromCache:y,absolutizeUrl:A}),C=k({extractCssFromNode:E,getBundledCssFromCssText:w,unfetchedToken:h});i(c.doCaptureDoc);const T=j(e);u(c.doCaptureDoc),i(c.waitForImages),await Promise.all(l),u(c.waitForImages),T.version=B,T.scriptVersion="11.2.3";const N=f.length?`${f.join("\n")}\n`:"",S=d.size?`${Array.from(d).join("\n")}\n`:"",b=JSON.stringify({separator:p,cssStartToken:h,cssEndToken:h,iframeStartToken:`"${m}`,iframeEndToken:`${m}"`});function Y(){return s?`\n${p}\n${JSON.stringify(c)}`:""}u(c.total);const z=`${b}\n${S}${p}\n${N}${p}\n${JSON.stringify(T)}${Y()}`;return console.log("[captureFrame]",JSON.stringify(c)),z;function G(t){return Object.keys(t).length?t:void 0}function J(t){return{tagName:"#text",text:t.textContent}}function j(t,s=t.location&&t.location.href){const a=new Set;let c="";const i=u(t.documentElement||t);return i.css=c,l.push(D({bgImages:a}).then((t=>i.images=t))),i;function u(t){if(t.hasAttribute&&t.hasAttribute("data-applitools-skip"))return null;const{bundledCss:e,unfetchedResources:n}=C(t,s);if(c+=e,n)for(const t of n)d.add(t);switch(t.nodeType){case L.TEXT:return J(t);case L.ELEMENT:return"IFRAME"===t.tagName.toUpperCase()?function(t){const e=h(t);let n;try{n=t.contentDocument}catch(t){return o(),e}try{n?e.childNodes=[j(n,$(t)?t.baseURI:n.location.href)]:o()}catch(t){console.log("error in iframeToJSON",t)}return e;function o(){const n=R(t);f.push(n),e.childNodes=[`${m}${n}${m}`]}}(t):h(t);case L.DOCUMENT_FRAGMENT:return{childNodes:Array.prototype.map.call(t.childNodes,u).filter(Boolean)};default:return null}}function h(t){const c=Array.prototype.map.call(t.childNodes,u).filter(Boolean),i=t.shadowRoot&&j(t.shadowRoot,s),l=t.tagName.toUpperCase();if(r.indexOf(l)>-1)return null;const d=e.defaultView.getComputedStyle(t),f=t.getBoundingClientRect(),m={};for(const t of n)m[t]=d.getPropertyValue(t);m["border-width"]||(m["border-width"]=`${d.getPropertyValue("border-top-width")} ${d.getPropertyValue("border-right-width")} ${d.getPropertyValue("border-bottom-width")} ${d.getPropertyValue("border-left-width")}`);const h={};for(const t of o)h[t]=f[t];const p=Array.from(t.attributes).map((t=>({key:t.name,value:t.value}))).reduce(((t,e)=>(t[e.key]=e.value,t)),{}),g=_(d.getPropertyValue("background-image"));g&&a.add(g);const y=v(t);y&&(p["data-applitools-has-pseudo"]=y);const w={tagName:l,style:G(m),rect:G(h),attributes:G(p),childNodes:c};return i&&(w.shadowRoot=i),w}}};window[z]=window[z]||{};const j=Y(J,window[z],G);return function(t){return JSON.stringify(j(t)(t))}}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=n.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,n.contentDocument.head.appendChild(r);const s=n.contentWindow[`ctor-${o}`];if("function"!=typeof s)throw new Error("Sandbox failed to extract function");return e=!1,s(document).apply(null,arguments)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}};module.exports=t;
arguments[1]&&(e=arguments[1]),arguments[2]&&(s=arguments[2]),arguments[3]&&(a=arguments[3]);const c={total:{},prefetchCss:{},doCaptureDoc:{},waitForImages:{}};function u(t){t.startTime=Date.now()}function i(t){t.endTime=Date.now(),t.elapsedTime=t.endTime-t.startTime}const l=[];u(c.total);const d=new Set,f=[],m="@@@@@",h="#####",p="-----";u(c.prefetchCss);const g=L(F(fetch,{fetchTimeLimit:a})),y=await g(e);i(c.prefetchCss);const w=U({parseCss:O,CSSImportRule:CSSImportRule,getCssFromCache:y,absolutizeUrl:$,unfetchedToken:h}),E=I({getCssFromCache:y,absolutizeUrl:$}),C=k({extractCssFromNode:E,getBundledCssFromCssText:w,unfetchedToken:h});u(c.doCaptureDoc);const T=function t(s,a=s.location&&s.location.href){const c=new Set;let u="";const i=h(s.documentElement||s);return i.css=u,l.push(P({bgImages:c}).then((t=>i.images=t))),i;function h(e){if(e.hasAttribute&&e.hasAttribute("data-applitools-skip"))return null;const{bundledCss:n,unfetchedResources:o}=C(e,a);if(u+=n,o)for(const t of o)d.add(t);switch(e.nodeType){case x.TEXT:return function(t){return{tagName:"#text",text:t.textContent}}(e);case x.ELEMENT:return"IFRAME"===e.tagName.toUpperCase()?function(e){const n=p(e);let o;try{o=e.contentDocument}catch(e){return r(),n}try{o?n.childNodes=[t(o,_(e)?e.baseURI:o.location.href)]:r()}catch(e){console.log("error in iframeToJSON",e)}return n;function r(){const t=D(e);f.push(t),n.childNodes=[`${m}${t}${m}`]}}(e):p(e);case x.DOCUMENT_FRAGMENT:return{childNodes:Array.prototype.map.call(e.childNodes,h).filter(Boolean)};default:return null}}function p(s){const u=Array.prototype.map.call(s.childNodes,h).filter(Boolean),i=s.shadowRoot&&t(s.shadowRoot,a),l=s.tagName.toUpperCase();if(r.indexOf(l)>-1)return null;const d=e.defaultView.getComputedStyle(s),f=s.getBoundingClientRect(),m={};for(const t of n)m[t]=d.getPropertyValue(t);m["border-width"]||(m["border-width"]=`${d.getPropertyValue("border-top-width")} ${d.getPropertyValue("border-right-width")} ${d.getPropertyValue("border-bottom-width")} ${d.getPropertyValue("border-left-width")}`);const p={};for(const t of o)p[t]=f[t];const g=Array.from(s.attributes).map((t=>({key:t.name,value:t.value}))).reduce(((t,e)=>(t[e.key]=e.value,t)),{}),y=R(d.getPropertyValue("background-image"));y&&c.add(y);const w=v(s);w&&(g["data-applitools-has-pseudo"]=w);const E={tagName:l,style:Y(m),rect:Y(p),attributes:Y(g),childNodes:u};return i&&(E.shadowRoot=i),E}}(e);i(c.doCaptureDoc),u(c.waitForImages),await Promise.all(l),i(c.waitForImages),T.version="1.3.0",T.scriptVersion="11.2.4";const N=f.length?`${f.join("\n")}\n`:"",b=d.size?`${Array.from(d).join("\n")}\n`:"",S=JSON.stringify({separator:p,cssStartToken:h,cssEndToken:h,iframeStartToken:`"${m}`,iframeEndToken:`${m}"`});i(c.total);const A=`${S}\n${b}${p}\n${N}${p}\n${JSON.stringify(T)}${s?`\n${p}\n${JSON.stringify(c)}`:""}`;return console.log("[captureFrame]",JSON.stringify(c)),A;function Y(t){return Object.keys(t).length?t:void 0}};window[z]=window[z]||{};const J=Y(j,window[z],G);return function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){return JSON.stringify(J(t)(t))}))}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=n.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,n.contentDocument.head.appendChild(r);const s=n.contentWindow[`ctor-${o}`];if("function"!=typeof s)throw new Error("Sandbox failed to extract function");return e=!1,s(document).apply(null,arguments)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}},n=t(e);module.exports=n;

@@ -1,6 +0,6 @@

/* @applitools/dom-capture@11.2.3 */
/* @applitools/dom-capture@11.2.4 */
function __pollResult() {
var pollResult=function(){"use strict";var t=function(){const t=function(t){return function(){function t(t,n=0){const e=t.charCodeAt(n);return e>=55296&&e<56320?1024*(e-55296)+(t.charCodeAt(n+1)-56320)+65536:56320<=e&&e<=57343?-1:e}var n=function(n,e){const o=[];let r=0;for(let u=0;u<n.length;++u){const c=t(n,u);let i=0;c>0&&(i=c<128?1:c<2048?2:c<65536?3:c<2097152?4:c<67108864?5:6),r+i>e?(o.push(u),r=i):r+=i}return o};const e=n,o="SUCCESS",r="SUCCESS_CHUNKED",u="ERROR";var c=function(t,n,c={}){const i=function(t,{chunkByteLength:n=0}={}){if(t){if(t.value){if(n){if(!t.chunks){const o=JSON.stringify(t.value);t.chunks=e(o,n),t.chunks.length>0&&(t.from=0,t.value=o)}if(t.from>=0)return{status:r,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:o,value:t.value}}return t.error?{status:u,error:t.error}:{status:"WIP"}}return{status:u,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[n],c);return(i.status===o||i.status===u||i.status===r&&i.done)&&(t[n]=null),i};const i=c;var a={chunkify:n,pollify:function(t,n,e){return o=>function(){return n[e]||(n[e]={},t.apply(null,arguments).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message))),i(n,e,o)}},poll:c,absolutizeUrl:function(t,n){return new URL(t,n).href},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}};const{poll:l}=a,{EYES_NAMESPACE:s,DOM_CAPTURE_KEY:d}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","font-family","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};return function(t){return JSON.stringify(l(window[s],d,t))}}()};let n=!0;try{let e=document.head.querySelector("[data-applitools-sandbox]");e||(e=document.createElement("iframe"),e.setAttribute("data-applitools-sandbox",""),e.setAttribute("data-applitools-skip",""),document.head.appendChild(e));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=e.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,e.contentDocument.head.appendChild(r);const u=e.contentWindow[`ctor-${o}`];if("function"!=typeof u)throw new Error("Sandbox failed to extract function");return n=!1,u(document).apply(null,arguments)}catch(e){try{return t(document).apply(null,arguments)}catch(t){throw n?t:e}}};return t}();
var pollResult=function(){"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e=function(){const t=function(t){return function(){function t(t,e=0){const n=t.charCodeAt(e);return n>=55296&&n<56320?1024*(n-55296)+(t.charCodeAt(e+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var e=function(e,n){const o=[];let r=0;for(let u=0;u<e.length;++u){const c=t(e,u);let a=0;c>0&&(a=c<128?1:c<2048?2:c<65536?3:c<2097152?4:c<67108864?5:6),r+a>n?(o.push(u),r=a):r+=a}return o};const n=e,o="WIP",r="SUCCESS",u="SUCCESS_CHUNKED",c="ERROR";var a=function(t,e,a={}){const i=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const o=JSON.stringify(t.value);t.chunks=n(o,e),t.chunks.length>0&&(t.from=0,t.value=o)}if(t.from>=0)return{status:u,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:r,value:t.value}}return t.error?{status:c,error:t.error}:{status:o}}return{status:c,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],a);return(i.status===r||i.status===c||i.status===u&&i.done)&&(t[e]=null),i};const i=a;var l={chunkify:e,pollify:function(t,e,n){return o=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),i(e,n,o)}},poll:a,absolutizeUrl:function(t,e){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let n=!0;try{n=t!==decodeURI(t)}catch(t){n=!0}try{const o=new URL(t,e).href;return n?o:decodeURI(o)}catch(e){return n?t:decodeURI(t)}},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}};const{poll:s}=l,{EYES_NAMESPACE:d,DOM_CAPTURE_KEY:f}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","font-family","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};return function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){return JSON.stringify(s(window[d],f,t))}))}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=n.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,n.contentDocument.head.appendChild(r);const u=n.contentWindow[`ctor-${o}`];if("function"!=typeof u)throw new Error("Sandbox failed to extract function");return e=!1,u(document).apply(null,arguments)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}};return t(e)}();
return pollResult.apply(this, arguments);
}

@@ -1,2 +0,2 @@

/* @applitools/dom-capture@11.2.3 */
"use strict";var t=function(){const t=function(t){return function(){function t(t,n=0){const e=t.charCodeAt(n);return e>=55296&&e<56320?1024*(e-55296)+(t.charCodeAt(n+1)-56320)+65536:56320<=e&&e<=57343?-1:e}var n=function(n,e){const o=[];let r=0;for(let u=0;u<n.length;++u){const c=t(n,u);let i=0;c>0&&(i=c<128?1:c<2048?2:c<65536?3:c<2097152?4:c<67108864?5:6),r+i>e?(o.push(u),r=i):r+=i}return o};const e=n,o="SUCCESS",r="SUCCESS_CHUNKED",u="ERROR";var c=function(t,n,c={}){const i=function(t,{chunkByteLength:n=0}={}){if(t){if(t.value){if(n){if(!t.chunks){const o=JSON.stringify(t.value);t.chunks=e(o,n),t.chunks.length>0&&(t.from=0,t.value=o)}if(t.from>=0)return{status:r,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:o,value:t.value}}return t.error?{status:u,error:t.error}:{status:"WIP"}}return{status:u,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[n],c);return(i.status===o||i.status===u||i.status===r&&i.done)&&(t[n]=null),i};const i=c;var a={chunkify:n,pollify:function(t,n,e){return o=>function(){return n[e]||(n[e]={},t.apply(null,arguments).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message))),i(n,e,o)}},poll:c,absolutizeUrl:function(t,n){return new URL(t,n).href},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}};const{poll:l}=a,{EYES_NAMESPACE:s,DOM_CAPTURE_KEY:d}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","font-family","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};return function(t){return JSON.stringify(l(window[s],d,t))}}()};let n=!0;try{let e=document.head.querySelector("[data-applitools-sandbox]");e||(e=document.createElement("iframe"),e.setAttribute("data-applitools-sandbox",""),e.setAttribute("data-applitools-skip",""),document.head.appendChild(e));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=e.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,e.contentDocument.head.appendChild(r);const u=e.contentWindow[`ctor-${o}`];if("function"!=typeof u)throw new Error("Sandbox failed to extract function");return n=!1,u(document).apply(null,arguments)}catch(e){try{return t(document).apply(null,arguments)}catch(t){throw n?t:e}}};module.exports=t;
/* @applitools/dom-capture@11.2.4 */
"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e=function(){const t=function(t){return function(){function t(t,e=0){const n=t.charCodeAt(e);return n>=55296&&n<56320?1024*(n-55296)+(t.charCodeAt(e+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var e=function(e,n){const o=[];let r=0;for(let u=0;u<e.length;++u){const c=t(e,u);let a=0;c>0&&(a=c<128?1:c<2048?2:c<65536?3:c<2097152?4:c<67108864?5:6),r+a>n?(o.push(u),r=a):r+=a}return o};const n=e,o="WIP",r="SUCCESS",u="SUCCESS_CHUNKED",c="ERROR";var a=function(t,e,a={}){const i=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const o=JSON.stringify(t.value);t.chunks=n(o,e),t.chunks.length>0&&(t.from=0,t.value=o)}if(t.from>=0)return{status:u,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:r,value:t.value}}return t.error?{status:c,error:t.error}:{status:o}}return{status:c,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],a);return(i.status===r||i.status===c||i.status===u&&i.done)&&(t[e]=null),i};const i=a;var l={chunkify:e,pollify:function(t,e,n){return o=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),i(e,n,o)}},poll:a,absolutizeUrl:function(t,e){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let n=!0;try{n=t!==decodeURI(t)}catch(t){n=!0}try{const o=new URL(t,e).href;return n?o:decodeURI(o)}catch(e){return n?t:decodeURI(t)}},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}};const{poll:s}=l,{EYES_NAMESPACE:d,DOM_CAPTURE_KEY:f}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","font-family","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};return function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){return JSON.stringify(s(window[d],f,t))}))}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=n.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,n.contentDocument.head.appendChild(r);const u=n.contentWindow[`ctor-${o}`];if("function"!=typeof u)throw new Error("Sandbox failed to extract function");return e=!1,u(document).apply(null,arguments)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}},n=t(e);module.exports=n;

@@ -1,4 +0,4 @@

'use strict';
'use strict'
const makeGetScript = require('./src/getScript');
const makeGetScript = require('./src/getScript')

@@ -16,2 +16,2 @@ module.exports = {

pollResult: require('./dist/pollResultCjs'),
};
}
{
"name": "@applitools/dom-capture",
"version": "11.2.3",
"version": "11.2.4",
"homepage": "https://applitools.com",
"license": "SEE LICENSE IN LICENSE",
"author": {
"name": "Applitools Team",
"email": "team@applitools.com"
},
"main": "index.js",
"license": "SEE LICENSE IN LICENSE",
"files": [
"dist",
"src/getScript.js"
],
"scripts": {
"test": "if [ \"$CI\" ];then yarn test:mocha; else yarn test:docker; fi",
"test:mocha": "mocha --no-timeouts --parallel 'test/**/*.test.js' --colors",
"lint": "run --top-level eslint '**/*.js'",
"build": "APPLITOOLS_BUILD_MODE=all rollup -c src/build/rollup.config.js",
"build:short": "APPLITOOLS_BUILD_MODE=short rollup -c src/build/rollup.short.config.js",
"build:watch": "yarn build:short --watch",
"test": "run --top-level mocha './test/**/*.test.js'",
"test:docker": "docker run -it --rm -e SAUCE_ACCESS_KEY=$SAUCE_ACCESS_KEY -e SAUCE_USERNAME=$SAUCE_USERNAME -e APPLITOOLS_UPDATE_FIXTURES=$APPLITOOLS_UPDATE_FIXTURES -v $(pwd):/sandbox -v /sandbox/node_modules dom_capture_tests",
"setup": "yarn puppeteer:setup",
"puppeteer:setup": "PUPPETEER_PRODUCT=firefox node --require puppeteer/install.js --eval null",
"docker:build": "docker build --rm -t dom_capture_tests .",
"docker:build_mac_m1": "docker build --rm -t dom_capture_tests . --platform=linux/amd64",
"lint:node": "eslint '**/*.js' --ignore-pattern 'src/browser'",
"lint:browser": "eslint -c 'src/browser/.eslintrc.json' 'src/browser/**/*.js'",
"lint": "yarn lint:node && yarn lint:browser",
"build": "APPLITOOLS_BUILD_MODE=all rollup -c src/build/rollup.config.js",
"build:short": "APPLITOOLS_BUILD_MODE=short rollup -c src/build/rollup.short.config.js",
"build:watch": "yarn build:short --watch",
"surge": "surge test/fixtures applitools-dom-capture-origin-1.surge.sh && surge test/fixtures applitools-dom-capture-origin-2.surge.sh",
"preversion": "bongo preversion && yarn build && yarn test",
"version": "yarn build && bongo version",
"postversion": "bongo postversion --skip-release-notification",
"install:firefox": "PUPPETEER_PRODUCT=firefox node ./node_modules/puppeteer/install.js"
"surge": "surge test/fixtures applitools-dom-capture-origin-1.surge.sh && surge test/fixtures applitools-dom-capture-origin-2.surge.sh"
},
"engines": {
"node": ">=8.9.0"
"dependencies": {
"@applitools/dom-shared": "1.0.11",
"@applitools/functional-commons": "1.6.0"
},
"files": [
"dist",
"src/getScript.js"
],
"devDependencies": {
"@applitools/monitoring-commons": "^1.0.15",
"@applitools/sdk-release-kit": "^0.10.6",
"@applitools/test-server": "1.0.7",
"@babel/core": "^7.7.7",
"@babel/preset-env": "^7.7.7",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^14.1.0",
"@rollup/plugin-replace": "^4.0.0",
"@applitools/monitoring-commons": "^1.0.19",
"@applitools/test-server": "^1.2.2",
"@applitools/test-utils": "^1.5.17",
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.4",
"@rollup/plugin-terser": "^0.4.4",
"abortcontroller-polyfill": "^1.4.0",

@@ -46,18 +48,10 @@ "chai": "^4.2.0",

"cssom": "git+https://github.com/amitzur/CSSOM.git#925260ff2c8f8387cf76df4d5776a06044a644c8",
"eslint": "^6.8.0",
"eslint-plugin-mocha-no-only": "1.0.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-prettier": "3.0.0",
"express": "^4.17.1",
"husky": "^4.3.7",
"jsdom": "^13.2.0",
"mocha": "^10.0.0",
"jsdom": "^22.1.0",
"node-fetch": "^2.6.0",
"prettier": "^1.19.1",
"puppeteer": "^20.1.0",
"rollup": "^2.79.1",
"rollup-plugin-filesize": "^9.1.2",
"rollup": "^4.1.4",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-ignore": "^1.0.10",
"rollup-plugin-polyfill": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-polyfill": "^4.2.0",
"selenium-webdriver": "^4.0.0-alpha.5",

@@ -67,15 +61,8 @@ "url-polyfill": "^1.1.12",

},
"dependencies": {
"@applitools/dom-shared": "1.0.5",
"@applitools/functional-commons": "1.6.0"
"engines": {
"node": ">=12.13.0"
},
"repository": {
"type": "git",
"url": "git://github.com/applitools/eyes.sdk.javascript1.git"
},
"husky": {
"hooks": {
"pre-push": "yarn bongo lint"
}
"publishConfig": {
"access": "public"
}
}
}

@@ -1,11 +0,11 @@

'use strict';
const fs = require('fs');
const {promisify: p} = require('util');
const {cacheFunctionAsync} = require('@applitools/functional-commons');
'use strict'
const fs = require('fs')
const {promisify: p} = require('util')
const {cacheFunctionAsync} = require('@applitools/functional-commons')
const makeGetScript = filename =>
cacheFunctionAsync(async function() {
return await p(fs.readFile)(__dirname + `/../dist/${filename}.js`, 'utf-8');
});
cacheFunctionAsync(async function () {
return await p(fs.readFile)(__dirname + `/../dist/${filename}.js`, 'utf-8')
})
module.exports = makeGetScript;
module.exports = makeGetScript

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc