/*! * @author Sphinxly * @url https://www.sphinxly.se * Copyright 2026 Sphinxly */ export default(function(){var e=[],n=!1,t=["BUTTON","A"],o=["INPUT","SELECT","TEXTAREA","FORM","VIDEO"],r=0,i=Date.now(),a=0,c=!1,s=!1,u=0;function d(){const e=function(){const e=window.pageYOffset||document.documentElement.scrollTop,n=document.documentElement.clientHeight,t=document.documentElement.scrollHeight-n;return Math.ceil(e/t*100)}();e>r&&(r=e)>=100&&(document.removeEventListener("scroll",d),s=!1)}function w(){const n=window.performance.now();n>1e4&&(u=n,i=Date.now());var r=document.currentScript||document.querySelector("script[name='ea']");const c="data-ea-uid";r.hasAttribute(c)?(a=r.getAttribute(c),s||(s=!0,document.addEventListener("scroll",d)),document.addEventListener("click",(n=>{var r=n.target;if(r){var i;if(-1!==o.indexOf(r.tagName))i=r;else for(const e of t)if(i=r.closest(e))break;if(i){var a=x(n.type,i,h(i));e.push(a)}}})),p()):console.warn("No uid present on ews-script.")}function f(){if(!window.isSecureContext)return null;if(typeof window.sessionStorage!=typeof{}||"function"!=typeof window.sessionStorage.getItem)return null;var e=window.sessionStorage.getItem("eap");return e||(e="xxxxxxxxxxxxxxxx".replace(/[x]/g,(function(){return Math.floor(16*Math.random()).toString(16)})),window.sessionStorage.setItem("eap",e)),e}function m(e){return"https://ea.easyweb.site/ea/"+e}function l(){var n,t=Math.round(window.performance.now()-u),o=window.performance.timing?window.performance.timing.responseStart-window.performance.timing.requestStart:(n=performance.getEntriesByName(window.location)[0])?n.responseStart-n.requestStart:0;return{v:2,l:window.location.href,pid:f(),r:document.referrer,res:window.screen.width+"x"+window.screen.height,lng:navigator.language||navigator.userLanguage,du:t,msp:r,its:0,vts:i,rt:o||0,ua:navigator.userAgent,dpr:window.devicePixelRatio,w:window.innerWidth,h:window.innerHeight,evs:JSON.stringify(e)}}function g(e){var n=new FormData;for(var t in e)n.append(t,e[t]);return n}function v(){if(n&&!c){var e=m(a),t=l();c=navigator.sendBeacon(e,g(t))}}function p(){!function(e){let n=!1;const t=({type:o})=>{n||"pagehide"!==o&&("visibilitychange"!==o||"hidden"!==document.visibilityState)||(n=!0,e()),n&&(document.removeEventListener("visibilitychange",t),window.removeEventListener("pagehide",t))};document.addEventListener("visibilitychange",t),window.addEventListener("pagehide",t)}(v)}function h(e){return e.hasAttribute("ea-label")?e.getAttribute("ea-label"):e.innerText}function x(e,n,t){return`${Math.round(performance.now())}:${e}:${function(e){const n=e.id?`#${e.id}`:"",t=e.className?`.${e.className.replace(/\s+/g,".")}`:"";return`${e.tagName.toLowerCase()}${n}${t}`}(n)}:${t}`}return function(){function e(){n||(n=!0,o("mousemove"),o("keydown"),o("touchmove"),o("touchstart"),w())}function t(n){document.addEventListener(n,e,!1)}function o(n){document.removeEventListener(n,e,!1)}t("mousemove"),t("keydown"),t("touchmove"),t("touchstart")}(),{registerEvent:function(n,t,o){var r=x(n,t,o||h(t));e.push(r)},send:function(e){if(!n||c)return;const t=m(a),o=l();e&&e.url&&(o.l=e.url),c=navigator.sendBeacon(t,g(o))},reset:function(){i=Date.now(),u=window.performance.now(),r=0,c=!1,p()}}}());