var __ipSiteLoadTime=Date.now();var __ipCanUpdateTime="0";var uTi={};function __ipGetVisitTime(){return Math.floor((Date.now()-__ipSiteLoadTime)/1e3)}function cC(){var d=new Date;var ica="IaSD9dQzJ_zSyIl5xOTb4yRCV8Q1T1vZ75FWUrzc6Ss.";if(ica=="0"||ica==""){d.setTime(d.getTime()-31104e6)}else{d.setTime(d.getTime()+31104e6)}document.cookie="__ipcan_4T2slX6L15OPjdtbX6HJqkwatnyCW_m7tMnHTnwlFGU.=IaSD9dQzJ_zSyIl5xOTb4yRCV8Q1T1vZ75FWUrzc6Ss.;domain=.eskytravel.it;expires="+d.toGMTString()+"; path=/; SameSite=Lax; Secure"}function gJ(tSO){var lockKey="__ipMonitoringUpdateTimeLock"+"_4T2slX6L15OPjdtbX6HJqkwatnyCW_m7tMnHTnwlFGU.";var setLock=function(){if(typeof Storage!=="undefined"){sessionStorage.setItem(lockKey,Date.now());setTimeout(function(){sessionStorage.removeItem(lockKey)},parseInt("1000"))}return true};var checkLock=function(){if(typeof Storage!=="undefined"){var lockDate=sessionStorage.getItem(lockKey);if(lockDate!==null){if(Date.now()-lockDate999){__ipIntervalTu=setInterval(function(){gJ(__ipGetVisitTime())},cuti)}}}}function gUtI(dur){var i=0;for(var sec in uTi){if(dur>=sec){i=uTi[sec]}else{break}}return i*1e3}function __ipStopMonitoring(){if(typeof __ipIntervalTu!=="undefined"&&__ipIntervalTu){clearInterval(__ipIntervalTu)}if(typeof window.__turnOffPerun!=="undefined"){window.__turnOffPerun()}const toDel=window.document.getElementsByClassName("__ipPerunElement");while(toDel[0]){toDel[0].parentNode.removeChild(toDel[0])}}cC();if(typeof __ipIntervalTu!=="undefined"&&__ipIntervalTu){clearInterval(__ipIntervalTu)}var cuti=gUtI(__ipGetVisitTime());var __ipIntervalTu=0;if(__ipCanUpdateTime&&cuti>999){__ipIntervalTu=setInterval(function(){gJ(__ipGetVisitTime())},cuti)}window.onunload=function(){if(__ipIntervalTu){clearInterval(__ipIntervalTu);gJ(__ipGetVisitTime())}};function __ipWebPushController(){const e="https://media-eskytravel-it.ipresso.pl/webpush.php",n="/ipresso/pushServiceWorker.js?v=092519a",t="xT9LqL69W8-JeaiVrkhYPiRuvZbEiAcFjiVbFpbKgvk.",i="4T2slX6L15OPjdtbX6HJqkwatnyCW_m7tMnHTnwlFGU.",o="0",r="IaSD9dQzJ_zSyIl5xOTb4yRCV8Q1T1vZ75FWUrzc6Ss.",a=2,s={apiKey:"AIzaSyBtGE87w-ZPFPJtspvWHhQtNNu__gzCSmo",messagingSenderId:"803807446128"},d=false,c=false;let l="__ipWebPushPreAskStatus",u="__ipWebPushWhileAskStatus";const f="https://media-eskytravel-it.ipresso.pl/js/firebase-app.js",m="https://media-eskytravel-it.ipresso.pl/js/firebase-messaging.js";let p,w,h="firePressTokenV",g="fireCree",b="firePressDB",x=!1;let O,k,S,v;function B(e,n,t){const i=e+n,o=t.getItem(e);return null===t.getItem(i)&&null!==o&&t.setItem(i,o),i}function P(e){if(window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB){(window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB).deleteDatabase(e)}}function W(){_(f,y)}function y(){_(m,C)}function I(e,n){const t=new Date;let i=0,o=!0,r=n.length;n.forEach(function(n){if(null!=n.cappingTime){const a=new Date;i=n.cappingValue&&(o=!1),0===--r&&(function(e,n){n&&(!function(e){const n=e.transaction(["capping"],"readwrite"),t={eventTime:(new Date).getTime()};n.objectStore("capping").add(t)}(e),d&&null!=__ipShowPopupWebPushPreAsk?__ipShowPopupWebPushPreAsk(W):W())}(e,o),function(e,n){const t=new Date;t.setHours(t.getHours()-n);const i=IDBKeyRange.upperBound(t.getTime(),!1),o=e.transaction(["capping"],"readwrite").objectStore("capping");o.index("eventTime").openKeyCursor(i).onsuccess=function(e){const n=e.target.result;n&&(o.delete(n.primaryKey),n.continue())}}(e,i)))}}})}function C(){if(c&&"default"===Notification.permission){const e=sessionStorage.getItem(u);null!=e&&0!==parseInt(e)||(sessionStorage.setItem(u,"1"),null!=__ipShowPopupWebPushWhileAsk&&__ipShowPopupWebPushWhileAsk())}var e;if(firebase.initializeApp(s),e=n,navigator.serviceWorker.getRegistrations().then(function(n){if(void 0===n||0===n.length)return null;for(let t=0;t0?function(e){if(window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB){const n=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB,t=n.open(b);t.onupgradeneeded=function(e){const n=e.target.result,t=n.createObjectStore("capping",{keyPath:"id",autoIncrement:!0});t.createIndex("eventTime","eventTime",{unique:!0}),function(){const e=(window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB).open(p);let n=!0;e.onupgradeneeded=function(e){n=!1,e.target.transaction.abort()},e.onsuccess=function(e){n&&(w=e.target.result,x=!0)}}()},t.onsuccess=function(n){const t=n.target.result;x?function(e,n,t){e.transaction(["capping"],"readonly").objectStore("capping").index("eventTime").openCursor().onsuccess=function(e){const i=e.target.result,o=n.transaction(["capping"],"readwrite"),r=o.objectStore("capping");i?(r.add(i.value),i.continue()):(P(p),I(n,t))}}(w,t,e):I(t,e)}}}(e.cappingRules):(P(b),function(){const e=sessionStorage.getItem(l);null!==e&&"0"!==e||(sessionStorage.setItem(l,"1"),!0===d&&null!=__ipShowPopupWebPushPreAsk?__ipShowPopupWebPushPreAsk(W):W())}())}else W()},function(){"use strict";var e;e=function(e){var n,t;switch(n={browser:{name:null,version:null},os:{name:null,version:null},mobile:!1,screen:{colors:null,dppx:null,height:null,width:null},userAgent:e=e||navigator.userAgent,viewport:{height:null,layout:{height:null,width:null},width:null,zoom:null},websockets:null},(e.indexOf("Trident")>=0||e.indexOf("MSIE")>=0)&&(e.indexOf("Mobile")>=0?n.browser.name="IE Mobile":n.browser.name="Internet Explorer"),e.indexOf("Firefox")>=0&&-1===e.indexOf("Seamonkey")&&(e.indexOf("Android")>=0?n.browser.name="Firefox for Android":n.browser.name="Firefox"),e.indexOf("Safari")>=0&&-1===e.indexOf("Chrome")&&-1===e.indexOf("Chromium")&&-1===e.indexOf("Android")&&(e.indexOf("CriOS")>=0?n.browser.name="Chrome for iOS":e.indexOf("FxiOS")>=0?n.browser.name="Firefox for iOS":n.browser.name="Safari"),e.indexOf("Chrome")>=0&&(e.match(/\bChrome\/[.0-9]* Mobile\b/)?e.match(/\bVersion\/\d+\.\d+\b/)||e.match(/\bwv\b/)?n.browser.name="WebView on Android":n.browser.name="Chrome for Android":n.browser.name="Chrome"),e.indexOf("Android")>=0&&-1===e.indexOf("Chrome")&&-1===e.indexOf("Chromium")&&-1===e.indexOf("Trident")&&-1===e.indexOf("Firefox")&&(n.browser.name="Android Browser"),e.indexOf("Edge")>=0&&(n.browser.name="Edge"),e.indexOf("UCBrowser")>=0&&(n.browser.name="UC Browser for Android"),e.indexOf("SamsungBrowser")>=0&&(n.browser.name="Samsung Internet"),(e.indexOf("OPR")>=0||e.indexOf("Opera")>=0)&&(e.indexOf("Opera Mini")>=0?n.browser.name="Opera Mini":e.indexOf("Opera Mobi")>=0||e.indexOf("Opera Tablet")>=0||e.indexOf("Mobile")>=0?n.browser.name="Opera Mobile":n.browser.name="Opera"),(e.indexOf("BB10")>=0||e.indexOf("PlayBook")>=0||e.indexOf("BlackBerry")>=0)&&(n.browser.name="BlackBerry"),t=null,n.browser.name){case"Chrome":case"Chrome for Android":case"WebView on Android":t=e.match(/Chrome\/((\d+\.)+\d+)/);break;case"Firefox":case"Firefox for Android":t=e.match(/Firefox\/((\d+\.)+\d+)/);break;case"Firefox for iOS":t=e.match(/FxiOS\/((\d+\.)+\d+)/);break;case"Edge":case"Internet Explorer":case"IE Mobile":e.indexOf("Edge")>=0?t=e.match(/Edge\/((\d+\.)+\d+)/):e.indexOf("rv:11")>=0?t=e.match(/rv:((\d+\.)+\d+)/):e.indexOf("MSIE")>=0&&(t=e.match(/MSIE\ ((\d+\.)+\d+)/));break;case"Safari":case"Android Browser":t=e.match(/Version\/((\d+\.)+\d+)/);break;case"UC Browser for Android":t=e.match(/UCBrowser\/((\d+\.)+\d+)/);break;case"Samsung Internet":t=e.match(/SamsungBrowser\/((\d+\.)+\d+)/);break;case"Opera Mini":t=e.match(/Opera Mini\/((\d+\.)+\d+)/);break;case"Opera":t=e.match(/OPR/)?e.match(/OPR\/((\d+\.)+\d+)/):e.match(/Version/)?e.match(/Version\/((\d+\.)+\d+)/):e.match(/Opera\/((\d+\.)+\d+)/);break;case"BlackBerry":t=e.match(/Version\/((\d+\.)+\d+)/);break;default:t=e.match(/\/((\d+\.)+\d+)$/)}t&&t[1]&&(n.browser.version=t[1]),n.mobile=/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion),n.viewport.width=window.innerWidth||document.documentElement.clientWidth,n.viewport.height=window.innerHeight||document.documentElement.clientHeight;try{Object.defineProperty({},"x",{}),!0}catch(e){!1}switch(n.viewport.layout.width=document.documentElement.clientWidth,n.viewport.layout.height=document.documentElement.clientHeight,n.viewport.zoom=n.viewport.layout.width/n.viewport.width,e.indexOf("Windows")>=0&&(e.indexOf("Windows Phone")>=0?n.os.name="Windows Phone":n.os.name="Windows"),e.indexOf("OS X")>=0&&-1===e.indexOf("Android")&&(n.os.name="OS X"),e.indexOf("Linux")>=0&&(n.os.name="Linux"),e.indexOf("like Mac OS X")>=0&&(n.os.name="iOS"),(e.indexOf("Android")>=0||e.indexOf("Adr")>=0)&&-1===e.indexOf("Windows Phone")&&(n.os.name="Android"),e.indexOf("BB10")>=0&&(n.os.name="BlackBerry"),e.indexOf("RIM Tablet OS")>=0&&(n.os.name="BlackBerry Tablet OS"),e.indexOf("BlackBerry")>=0&&(n.os.name="BlackBerryOS"),t=null,n.os.name){case"Windows":case"Windows Phone":if(e.indexOf("Win16")>=0)n.os.version="3.1.1";else if(e.indexOf("Windows CE")>=0)n.os.version="CE";else if(e.indexOf("Windows 95")>=0)n.os.version="95";else if(e.indexOf("Windows 98")>=0)e.indexOf("Windows 98; Win 9x 4.90")>=0?n.os.version="Millennium Edition":n.os.version="98";else if((t=e.match(/Win(?:dows)?(?: Phone)?[\ _]?(?:(?:NT|9x)\ )?((?:(\d+\.)*\d+)|XP|ME|CE)\b/))&&t[1])switch(t[1]){case"6.4":t[1]="10.0";break;case"6.3":t[1]="8.1";break;case"6.2":t[1]="8";break;case"6.1":t[1]="7";break;case"6.0":t[1]="Vista";break;case"5.2":t[1]="Server 2003";break;case"5.1":t[1]="XP";break;case"5.01":t[1]="2000 SP1";break;case"5.0":t[1]="2000";break;case"4.0":t[1]="4.0"}break;case"OS X":t=e.match(/OS\ X\ ((\d+[._])+\d+)\b/);break;case"Linux":n.os.version=null;break;case"iOS":t=e.match(/OS\ ((\d+[._])+\d+)\ like\ Mac\ OS\ X/);break;case"Android":t=e.match(/(?:Android|Adr)\ ((\d+[._])+\d+)/);break;case"BlackBerry":case"BlackBerryOS":t=e.match(/Version\/((\d+\.)+\d+)/);break;case"BlackBerry Tablet OS":t=e.match(/RIM Tablet OS ((\d+\.)+\d+)/);break;default:n.os.version=null}return t&&t[1]&&(t[1]=t[1].replace(/_/g,"."),n.os.version=t[1]),n.screen.width=screen.width,n.screen.height=screen.height,n.screen.colors=screen.colorDepth,window.devicePixelRatio&&!isNaN(window.devicePixelRatio)?n.screen.dppx=window.devicePixelRatio:n.screen.dppx=1,n.websockets=!!window.WebSocket,n.lang=navigator.languages||navigator.language,n.timestamp=(new Date).toString(),n},window.browserReportSync=window.browserReportSync||function(n){return e(n)}}()}var __ipWebPushCtrl=new __ipWebPushController,__ipWebPushAutoRunStatus="true";"true"==__ipWebPushAutoRunStatus&&__ipWebPushCtrl.initFire();function __ipsa(t,i){if(void 0===t||__ipGetInactiveKeys().indexOf(t)>=0)return!1;void 0===i&&(i=null);var e=JSON.stringify({key:t,params:i});return!__ipCheckAPILock("__ipActivityLockKey__"+e)&&(__ipSetAPILock("__ipActivityLockKey__"+e),__ipjsapi("saveActivity",{a:t,p:i}))}function __ipic(t){return void 0!==t&&__ipjsapi("incrementCounter",{ck:t})}function __ipgcd(t){return void 0===t&&(t=!1),__ipjsapi("getContactData",{},t)}function __ipSetAPILock(t){if("undefined"!=typeof Storage){t+="_4T2slX6L15OPjdtbX6HJqkwatnyCW_m7tMnHTnwlFGU.";var i=sessionStorage.getItem(t);null!==i?(i=JSON.parse(i),sessionStorage.setItem(t,JSON.stringify({count:i.count+1,date:Date.now()}))):sessionStorage.setItem(t,JSON.stringify({count:1,date:Date.now()})),setTimeout(function(){sessionStorage.removeItem(t)},parseInt("1000"))}return!0}function __ipCheckAPILock(t){if("undefined"!=typeof Storage){t+="_4T2slX6L15OPjdtbX6HJqkwatnyCW_m7tMnHTnwlFGU.";var i=sessionStorage.getItem(t);if(null!==i&&(i=JSON.parse(i),Date.now()-i.date=parseInt("1")))return!0}return!1}function __ipSaveActivity(t,i){if(void 0===t||__ipGetInactiveKeys().indexOf(t)>=0)return!1;void 0===i&&(i=null);var e=JSON.stringify({key:t,params:i});return!__ipCheckAPILock("__ipActivityLockKey__"+e)&&(__ipSetAPILock("__ipActivityLockKey__"+e),__ipjsapi("saveActivityByKey",{a:t,p:i}))}function __ipUpdateAttributes(t){if(void 0===t)return!1;var i=JSON.stringify(t);return!__ipCheckAPILock("__ipAttributesLockKey__"+i)&&(__ipSetAPILock("__ipAttributesLockKey__"+i),__ipjsapi("updateAttributes",{updateData:t}))}function __ipContactAdd(t){return!1}function __ipContactEdit(t){if(void 0===t)return!1;var i=JSON.stringify(t);return!__ipCheckAPILock("__ipContactEditLockKey__"+i)&&(__ipSetAPILock("__ipContactEditLockKey__"+i),__ipjsapi("contactEdit",{updateData:t}))}function __ipContactUpsert(t){if(void 0===t)return!1;var i=JSON.stringify(t);return!__ipCheckAPILock("__ipContactUpsertLockKey__"+i)&&(__ipSetAPILock("__ipContactUpsertLockKey__"+i),__ipjsapi("contactUpsert",{upsertData:t},function(t){if(t)try{var i=JSON.parse(t);if(i.hasOwnProperty("monitoringPixel")){var e=document.createElement("img");e.src=i.monitoringPixel,e.setAttribute("width","0px"),e.setAttribute("height","0px"),e.setAttribute("style","display:none;"),document.body.appendChild(e)}}catch(n){}}))}function __ipGetPopupCreationData(t,i){return void 0===i&&(i=!1),__ipjsapi("getPopupCreationData",{pcid:t},i)}function __ipGetPopupCreationDataById(t,i){return void 0===i&&(i=!1),__ipjsapi("getPopupCreationData",{pci:t},i)}function __ipGetVoucher(t,i){return void 0===i&&(i=!1),__ipjsapi("getVoucher",{cvid:t},i)}function __ipAddToScenario(t,i){return void 0===i&&(i=!1),__ipjsapi("addToScenario",{aKey:t},i)}function __ipGetWebPushToken(){let t,i="/ipresso/pushServiceWorker.js",e="firePressTokenV";if(""!==i){let n=i.split(".")[0];n=(n=n.split("?")[0]).replace(/\//g,""),t=localStorage.getItem(e+n)}return null===t&&(t=localStorage.getItem(e)),t}function __ipTopicSubscribe(t,i){let e=__ipGetWebPushToken();return!!e&&(void 0===i&&(i=!1),__ipjsapi("topicSubscribe",{topics:t,token:e},i))}function __ipTopicUnsubscribe(t,i){let e=__ipGetWebPushToken();return!!e&&(void 0===i&&(i=!1),__ipjsapi("topicUnsubscribe",{topics:t,token:e},i))}function __ipContactIdentify(t,i,e){return void 0===e&&(e=!1),__ipjsapi("contactIdentify",{configHash:t,outerId:i},e)}function __ipNpsSaveAnswer(t,i,e,n){return __ipjsapi("npsSaveAnswer",{npsApiKey:t,score:i,answer:"string"==typeof e?e:null},void 0!==n&&n)}function __ipNpsGetData(t,i){return __ipjsapi("npsGetData",{npsApiKey:t},void 0!==i&&i)}function __ipSavePerunStatistic(t){return __ipjsapi("savePerunStatistic",t)}function __ipSaveFrameClick(t,i){return void 0!==t.id_recommendation_frame&&void 0!==t.id_product&&void 0!==t.site&&__ipjsapi("saveFrameClick",{id_recommendation_frame:t.id_recommendation_frame,id_product:t.id_product,site:t.site,link:t.link},i)}function __ipGetContactData(t){return void 0===t&&(t=!1),__ipjsapi("getContactData",{},t)}function __ipGetId(){return"0"}function __ipGetIdAn(){return"IaSD9dQzJ_zSyIl5xOTb4yRCV8Q1T1vZ75FWUrzc6Ss."}function __ipGetInactiveKeys(){return[""]}function __ipGetForm(t){let i="",e=new URL(window.location.href);return e.searchParams.get("iPressoTestForm")&&(i="?iPressoTestForm=true"),fetch(`https://app.ipresso.pl/public/xT9LqL69W8-JeaiVrkhYPiRuvZbEiAcFjiVbFpbKgvk./forms/4T2slX6L15OPjdtbX6HJqkwatnyCW_m7tMnHTnwlFGU./${t}/formsv2configurationgetter765c00aef68ef7a602a1740999a0c05e`+i,{method:"GET"}).then(t=>{if(t.ok)return t.json();throw Error("")}).catch(()=>null)}function __ipSaveForm(t,i){let e="",n=new URL(window.location.href);return n.searchParams.get("iPressoTestForm")&&(e="?iPressoTestForm=true"),fetch(`https://app.ipresso.pl/public/xT9LqL69W8-JeaiVrkhYPiRuvZbEiAcFjiVbFpbKgvk./forms/4T2slX6L15OPjdtbX6HJqkwatnyCW_m7tMnHTnwlFGU./${t}`+e,{method:"POST",body:JSON.stringify(i)}).then(t=>{try{return t.json()}catch(i){return{}}}).catch(t=>{try{return t.json()}catch(i){return{}}})}function __ipjsapi(t,i,e){if("function"==typeof CustomEvent){var n=new CustomEvent("__ipJSAPIEvent_"+t,i);n.methodData=i,window.dispatchEvent(n)}var o="https://media-eskytravel-it.ipresso.pl/ipjsapi?m="+t+"&d="+new Date().getTime(),r=new XMLHttpRequest,a={m:t,c:"4T2slX6L15OPjdtbX6HJqkwatnyCW_m7tMnHTnwlFGU.",w:"xT9LqL69W8-JeaiVrkhYPiRuvZbEiAcFjiVbFpbKgvk.",i:"0",ia:"IaSD9dQzJ_zSyIl5xOTb4yRCV8Q1T1vZ75FWUrzc6Ss."};for(var c in i)a[c]=i[c];if("withCredentials"in r)r.open("POST",o,!0),r.withCredentials=!0;else{if("undefined"==typeof XDomainRequest)return!1;(r=new XDomainRequest).open("POST",o)}return e&&(r.onreadystatechange=function(){4===r.readyState&&e(r.responseText)}),r.send(JSON.stringify(a)),!0}!function(){if("function"==typeof window.CustomEvent)return!1;function t(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),e}t.prototype=window.Event.prototype,window.CustomEvent=t}(),window.dispatchEvent(new CustomEvent("iPressoJSAPILoaded"));var __ipPLoadTime=Date.now();(function(){var perunURL="//perun.ipresso.pl";var customerId="4T2slX6L15OPjdtbX6HJqkwatnyCW_m7tMnHTnwlFGU.";var customerIdWww="xT9LqL69W8-JeaiVrkhYPiRuvZbEiAcFjiVbFpbKgvk.";var contactId="";var contactIdAnonym="IaSD9dQzJ_zSyIl5xOTb4yRCV8Q1T1vZ75FWUrzc6Ss.";var getPerun=function(tSO){if(typeof window.__turnOffPerun!=='undefined'){window.__turnOffPerun();}var toDel = window.document.getElementsByClassName('__ipPerunElement');while(toDel[0]){toDel[0].parentNode.removeChild(toDel[0]);}var date=new Date();var docHead=document.getElementsByTagName("head")[0];var scriptCode=document.getElementById("__IPGPSCTIPT");var script=document.createElement("script");var referrer=encodeURIComponent(document.referrer);var siteUrl=encodeURIComponent(document.location.href.replace(document.location.hash,""));script.type="text/javascript";script.id="__IPGPSCTIPT";script.src=perunURL+"/perun/"+customerId+"/"+customerIdWww+"/?i="+contactId+"&ia="+contactIdAnonym+"&d="+date.getTime()+"&r="+referrer+"&s="+siteUrl;if(scriptCode!=null){try{docHead.removeChild(scriptCode);}catch(e){}}var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(script,o);};var __constructor=function(_this){getPerun();window.__getPerunJS=getPerun;return _this;}(this);})(); (function(){var getPopupData=function(perunData){__ipGetPopupCreationData(perunData.popupId,function(ret){perunData.popupData=JSON.parse(ret);delayWait(perunData)});return true};var popupAction=function(perunData,webPushCallBack){var previewOnly = true;var popupData=perunData.popupData;if(typeof popupData.content==="undefined"){return false}var popupTags=popupData.tags?popupData.tags:[];var forEdp=perunData.hasOwnProperty('forEdp')?perunData.forEdp:false;var overlay=false;if(popupData.overlay){overlay=document.createElement("div");overlay.className='__ipPerunElement';overlay.style.position="fixed";overlay.style["z-index"]="2147483645";overlay.style.top="0";overlay.style.left="0";overlay.style.width="100%";overlay.style.height="100%";overlay.style.border="none";overlay.style.padding="0";overlay.style.margin="0";var overlayPower=parseInt(popupData.overlaypower)/10;if(popupData.overlaycolor=="black"){overlay.style.background="rgba(0,0,0,"+overlayPower+")"}else if(popupData.overlaycolor=="white"){overlay.style.background="rgba(255,255,255,"+overlayPower+")"}if(popupData.overlayclosing){overlay.addEventListener("click",function(event){event.stopPropagation();closePopup()})}document.body.appendChild(overlay)}var iframe=document.createElement("iframe");iframe.className='__ipPerunElement';iframe.style.position=popupData.position;iframe.style["z-index"]="2147483646";iframe.style.border="none";iframe.style.width=popupData.width;if(popupData.minwidth){iframe.style["min-width"]=popupData.minwidth}if(popupData.maxwidth){iframe.style["max-width"]=popupData.maxwidth}iframe.style.height=popupData.height;if(popupData.minheight){iframe.style["min-height"]=popupData.minheight}if(popupData.maxheight){iframe.style["max-height"]=popupData.maxheight}document.body.appendChild(iframe);if(popupData.positiontype=="center"){iframe.style.top="calc(50% - "+iframe.offsetHeight/2+"px)";iframe.style.left="calc(50% - "+iframe.offsetWidth/2+"px)";window.addEventListener('resize',()=>{iframe.style.top='calc(50% - '+(iframe.offsetHeight/2)+'px)';iframe.style.left='calc(50% - '+(iframe.offsetWidth/2)+'px)';});}else{iframe.style.top=popupData.positiontop;iframe.style.bottom=popupData.positionbottom;iframe.style.left=popupData.positionleft;iframe.style.right=popupData.positionright}var doc=iframe.document;if(iframe.contentDocument){doc=iframe.contentDocument}else if(iframe.contentWindow){doc=iframe.contentWindow.document}doc.open();doc.writeln(popupData.content);doc.close();const fS=parent.document.head.querySelector('#ipFormsModuleLib');if(fS){const nS=doc.createElement('script');nS.src=fS.src;nS.id=fS.id;nS.type=fS.type;doc.head.appendChild(nS);} var closePopup=function(){iframe.parentNode.removeChild(iframe);if(overlay){overlay.parentNode.removeChild(overlay)}};var logger=function(link){if(previewOnly===true){return true;}__ipSavePerunStatistic({type:"popup-click",perunId:perunData.perunId,url:document.location.href,popupId:perunData.popupId,versionKey:perunData.versionKey,link:link,tags:popupTags,edp:forEdp});};var loggerClose=function(element){if(previewOnly === true){return true;}__ipSavePerunStatistic({'type':'popup-close','perunId':perunData.perunId,'versionKey':perunData.versionKey,'url':document.location.href,'popupId':perunData.popupId,'element':element,tags:popupTags,edp:forEdp});};var links=doc.getElementsByTagName("a");if(links.length>0){for(var linkIndex in links){if(links.hasOwnProperty(linkIndex)&&typeof links[linkIndex].addEventListener!=="undefined"){links[linkIndex].addEventListener("click",function(event){if(this.className.indexOf("__ipPopupClose")>-1){return true}logger(this.getAttribute('href'));if(this.getAttribute('target')==='_blank'){parent.window.open(this.getAttribute('href'),'_blank');}else{parent.window.location=this.getAttribute('href');}event.stopPropagation();if(this.className.indexOf("__noClose")===-1){closePopup();}})}}}var areaLinks=doc.getElementsByTagName("area");if(areaLinks.length>0){for(var areaLinkIndex in areaLinks){if(areaLinks.hasOwnProperty(areaLinkIndex)&&typeof areaLinks[areaLinkIndex].addEventListener!=="undefined"){areaLinks[areaLinkIndex].addEventListener("click",function(event){if(this.className.indexOf("__ipPopupClose")>-1){return true}logger(this.getAttribute('href'));if(this.getAttribute('target')==='_blank'){parent.window.open(this.getAttribute('href'),'_blank');}else{parent.window.location=this.getAttribute('href');}event.stopPropagation();if(this.className.indexOf("__noClose")===-1){closePopup();}})}}}var closeLinks=doc.getElementsByClassName("__ipPopupClose");if(closeLinks.length>0){for(var closeLinkIndex in closeLinks){if(closeLinks.hasOwnProperty(closeLinkIndex)&&typeof closeLinks[closeLinkIndex].addEventListener!=="undefined"){closeLinks[closeLinkIndex].addEventListener("click",function(event){event.stopPropagation();loggerClose(this.getAttribute('data-element'));closePopup()})}}}if(typeof webPushCallBack==='function'){var webPushAskLinks=doc.getElementsByClassName("__ipPopupWebPushAsk");if(webPushAskLinks.length>0){for(var webPushAskLinksIndex in webPushAskLinks){if(webPushAskLinks.hasOwnProperty(webPushAskLinksIndex)&& typeof webPushAskLinks[webPushAskLinksIndex].addEventListener!=='undefined'){webPushAskLinks[webPushAskLinksIndex].addEventListener('click',function (event){event.stopPropagation();webPushCallBack();closePopup();});}}}}if(previewOnly===true){return{closePopup:closePopup};}__ipSavePerunStatistic({type:"popup-show",perunId:perunData.perunId,versionKey:perunData.versionKey,url:document.location.href,popupId:perunData.popupId,tags:popupTags,edp:forEdp});if (!perunData.hasOwnProperty('skipCapping')||!perunData.skipCapping){sendCappingToPerun(perunData);}return{closePopup:closePopup}}; ;var popupTestParam="iPressoTestPopup";function getIdFromGet(){var result=null,tmp=[];location.search.substr(1).split("&").forEach(function(item){tmp=item.split("=");if(tmp[0]===popupTestParam){result=decodeURIComponent(tmp[1]);}});return result;}var runPopupShow=function(){var idFromGet=getIdFromGet();if(idFromGet){__ipGetPopupCreationDataById(idFromGet,function(ret){if(ret){popupAction({popupData:JSON.parse(ret)});}});}return true;};var __constructor=function(_this){runPopupShow();return _this;}(this);})();