function initApi(){if(cookieScan.consentGiven=cookieExists(),cookieScan.consentGiven){var cookieObj=getCookieObj();cookieScan.consent={};cookieScan.consent.preference=cookieObj.preference;cookieScan.consent.statistics=cookieObj.statistics;cookieScan.consent.marketing=cookieObj.marketing;cookieScan.consent.unclassified=cookieObj.unclassified}else cookieScan.consent={},cookieScan.consent.preference=!1,cookieScan.consent.statistics=!1,cookieScan.consent.marketing=!1,cookieScan.consent.unclassified=!1;return cookieScan}function getCookieObj(){var cookie=getCookieValue("cookiescan_consent"),blockNonEssential=bannerStyle!="classic",customObject;return cookie==null?(cookiescanConsentCookieExists=!1,cookie={siteUser:CreateGuid(),preference:!blockNonEssential,statistics:!blockNonEssential,marketing:!blockNonEssential,unclassified:!blockNonEssential},gpcValue&&(cookie.preference=!1,cookie.statistics=!1,cookie.marketing=!1,cookie.unclassified=!1),cookie):(customObject=JSON.parse(cookie.replace("\\","")),customObject.lastUpdated=new Date(customObject.lastUpdated),customObject.siteUser||(customObject.siteUser=CreateGuid()),customObject)}function CreateGuid(){function _p8(s){var p=(Math.random().toString(16)+"000000000").substr(2,8);return s?"-"+p.substr(0,4)+"-"+p.substr(4,4):p}return _p8()+_p8(!0)+_p8(!0)+_p8()}function getCookieValue(name){var pattern=RegExp(name+"=.[^;]*"),matched=document.cookie.match(pattern),cookie;return matched?(cookie=matched[0].split("="),cookie[1]):null}function cookieExists(){return getCookieValue("cookiescan_consent")!=null}function getCookieWhitelist(){var whitelist=[],alwaysBlock;return whitelist=whitelist.concat(necessaryCookies),userCookie.preference&&(whitelist=whitelist.concat(preferenceCookies)),userCookie.statistics&&(whitelist=whitelist.concat(statisticsCookies)),userCookie.marketing&&(whitelist=whitelist.concat(marketingCookies)),userCookie.unclassified&&(whitelist=whitelist.concat(unclassifiedCookies)),countryCode&&(alwaysBlock=countryBlockedCookies[countryCode],alwaysBlock&&(whitelist=whitelist.filter(function(el){return!alwaysBlock.includes(el)}))),whitelist}function getDomainBlacklist(){var blacklist=[];return userCookie.preference||(blacklist=blacklist.concat(preferenceDomains)),userCookie.statistics||(blacklist=blacklist.concat(statisticsDomains)),userCookie.marketing||(blacklist=blacklist.concat(marketingDomains)),userCookie.unclassified||(blacklist=blacklist.concat(unclassifiedDomains)),blacklist}function getDomainWhitelist(){var whitelist=[],alwaysBlockDomains;return whitelist=whitelist.concat(necessaryDomains),userCookie.preference&&(whitelist=whitelist.concat(preferenceDomains)),userCookie.statistics&&(whitelist=whitelist.concat(statisticsDomains)),userCookie.marketing&&(whitelist=whitelist.concat(marketingDomains)),userCookie.unclassified&&(whitelist=whitelist.concat(unclassifiedDomains)),countryCode&&(alwaysBlockDomains=countryBlockedDomains[countryCode],alwaysBlockDomains&&(whitelist=whitelist.filter(function(el){return!alwaysBlockDomains.includes(el)}))),whitelist}function fireTagManagerEvents(){cookieExists()&&dataLayer.push({event:"cookie-consent-necessary"});userCookie.preference&&dataLayer.push({event:"cookie-consent-preference"});userCookie.statistics&&dataLayer.push({event:"cookie-consent-statistics"});userCookie.marketing&&dataLayer.push({event:"cookie-consent-marketing"});userCookie.unclassified&&dataLayer.push({event:"cookie-consent-unclassified"})}function inIframe(){try{return window.self!==window.top}catch(e){return!0}}function loadBanner(){if(!inIframe()){var xhr=new XMLHttpRequest;xhr.open("GET","https://cdn.cookiescan.com/domains/97-806185/bannerhtml.json");xhr.onload=function(){if(xhr.status===200){var json=JSON.parse(xhr.responseText),cssLink=document.createElement("link");cssLink.type="text/css";cssLink.rel="stylesheet";cssLink.href=json.styleURL;cssLink.onload=function(){addContentToPage(json);runOnloadScripts()};document.head.appendChild(cssLink)}else console.log(xhr.status+"Failed to load banner html")};xhr.send()}}function addContentToPage(json){var styleBlock=document.createElement("style"),div,script;styleBlock.innerHTML=json.styles;document.head.appendChild(styleBlock);div=document.createElement("div");div.innerHTML=json.html;document.body.appendChild(div);script=document.createElement("script");script.type="text/javascript";script.src=json.scriptURL;document.head.appendChild(script)}function runOnloadScripts(){setToggles();addCookieToggleListeners();setupCountryBlockedCookieBanner();setTimeout(function(){var saveButton;cookieExists()||bannerStyle!="classic"?cookieExists()?(saveButton=document.getElementById("savePreferences"),saveButton.addEventListener("click",toggleBanner)):(document.querySelector("#cookiebanner").classList.toggle("show-banner"),preferenceChanged()):(document.querySelector("#cookiebanner").classList.toggle("show-banner"),saveButton=document.getElementById("savePreferences"),saveButton.addEventListener("click",toggleBanner))},500);enableGcm&&updateConsentMode();typeof dataLayer!="undefined"}function setToggles(){userCookie.preference&&document.getElementById("Preference")&&(document.getElementById("Preference").checked=!0);userCookie.statistics&&document.getElementById("Statistics")&&(document.getElementById("Statistics").checked=!0);userCookie.marketing&&document.getElementById("Marketing")&&(document.getElementById("Marketing").checked=!0);userCookie.unclassified&&document.getElementById("Unclassified")&&(document.getElementById("Unclassified").checked=!0)}function swapElements(obj1,obj2){var parent2=obj2.parentNode,next2=obj2.nextSibling;next2===obj1?parent2.insertBefore(obj1,obj2):(obj1.parentNode.insertBefore(obj2,obj1),next2?parent2.insertBefore(obj1,next2):parent2.appendChild(obj1))}function preferenceChanged(){if(!changeMade){changeMade=!0;var saveButton=document.getElementById("savePreferences");saveButton.removeEventListener("click",toggleBanner);saveButton.addEventListener("click",function(){saveUserPreference(!0)})}}function toggleBanner(){var banner=document.querySelector("#cookiebanner");banner.classList.toggle("show-banner")}function addCookieToggleListeners(){bannerStyle!="classic"?(document.getElementById("checkAll").addEventListener("click",function(){checkAll();userCookie.preference=!0;userCookie.statistics=!0;userCookie.marketing=!0;userCookie.unclassified=!0;saveUserPreference(!0)}),document.getElementById("uncheckAll").addEventListener("click",function(){uncheckAll();userCookie.preference=!1;userCookie.statistics=!1;userCookie.marketing=!1;userCookie.unclassified=!1;saveUserPreference(!0)})):document.getElementById("checkAll").addEventListener("click",function(){toggleBanner();saveUserPreference(!1)});document.getElementById("Preference")&&document.getElementById("Preference").addEventListener("change",function(){userCookie.preference=this.checked;preferenceChanged()});document.getElementById("Statistics")&&document.getElementById("Statistics").addEventListener("change",function(){userCookie.statistics=this.checked;preferenceChanged()});document.getElementById("Marketing")&&document.getElementById("Marketing").addEventListener("change",function(){userCookie.marketing=this.checked;preferenceChanged()});document.getElementById("Unclassified")&&document.getElementById("Unclassified").addEventListener("change",function(){userCookie.unclassified=this.checked;preferenceChanged()})}function setupCountryBlockedCookieBanner(){if(countryCode){var geoBlockedCookieCategoryTitle=document.getElementById("geoBlockedCookieCategoryTitle");geoBlockedCookieCategoryTitle!==null&&(geoBlockedCookieCategoryTitle.textContent="Blocked in "+countryCode+"(0)",countryBlockedCookies[countryCode]&&(document.getElementById("geoBlockedCookieCategory").style.display="block",countryBlockedCookies[countryCode].forEach(function(cookie){var oldCategoryTitle=document.getElementById(cookie).parentElement.parentElement.parentElement.parentElement.previousSibling.firstChild.textContent.split("(")[0],oldCategoryNewCount=parseInt(document.getElementById(cookie).parentElement.parentElement.parentElement.parentElement.previousSibling.firstChild.textContent.split("(")[1].split(")")[0])-1,newCategoryTitle,newCategoryNewCount;document.getElementById(cookie).parentElement.parentElement.parentElement.parentElement.previousSibling.firstChild.textContent=oldCategoryTitle+"("+oldCategoryNewCount.toString()+")";newCategoryTitle=document.getElementById("geoBlockedCookieCategoryTitle").textContent.split("(")[0];newCategoryNewCount=parseInt(document.getElementById("geoBlockedCookieCategoryTitle").textContent.split("(")[1].split(")")[0])+1;document.getElementById("geoBlockedCookieCategoryTitle").textContent=newCategoryTitle+"("+newCategoryNewCount.toString()+")";document.getElementById(cookie).style.display="none";document.getElementById("geo_"+cookie).style.display="block"})))}}function saveUserPreference(reload){saveCookie();savePreferenceToDb(reload)}function updateConsentMode(){if(typeof dataLayer!="undefined"){if(typeof gtag=="undefined"){function g(){dataLayer.push(arguments)}g("consent","update",{ad_storage:userCookie.marketing?"granted":"denied",ad_user_data:userCookie.marketing?"granted":"denied",ad_personalization:userCookie.marketing?"granted":"denied",analytics_storage:userCookie.statistics?"granted":"denied",personalization_storage:userCookie.preference?"granted":"denied",functionality_storage:userCookie.preference?"granted":"denied",security_storage:"granted"})}else gtag("consent","update",{ad_storage:userCookie.marketing?"granted":"denied",ad_user_data:userCookie.marketing?"granted":"denied",ad_personalization:userCookie.marketing?"granted":"denied",analytics_storage:userCookie.statistics?"granted":"denied",personalization_storage:userCookie.preference?"granted":"denied",functionality_storage:userCookie.preference?"granted":"denied",security_storage:"granted"});dataLayer.push({event:"consent-update"})}}function saveCookie(){var cookieExpiry,date=new Date,newDate=new Date(date.setMonth(date.getMonth()+6)),jsonString;cookieExpiry=location.protocol=="https:"?"; expires="+newDate.toGMTString()+"; path=/; secure":"; expires="+newDate.toGMTString()+"; path=/;";userCookie.lastUpdated=Date();jsonString=JSON.stringify(userCookie);document.cookie="cookiescan_consent="+jsonString+cookieExpiry}function savePreferenceToDb(reload){var data=userCookie,request;data.domainKey=domainId;request=new XMLHttpRequest;request.open("POST",bannerApiUrl+"/preference",!0);request.setRequestHeader("Content-Type","application/json");request.send(JSON.stringify(data));reload&&(request.onload=function(){location.reload(!0)})}function subjectRequest(){var data={requestType:document.getElementById("dsarRequestType").value,firstName:document.getElementById("dsarFirstname").value,lastName:document.getElementById("dsarLastname").value,email:document.getElementById("dsarEmail").value,requesterType:document.getElementById("dsarRequesterType").value,state:document.getElementById("dsarState").value,details:document.getElementById("dsarRequestDetails").value,domainKey:domainId},request=new XMLHttpRequest;request.open("POST",bannerApiUrl+"/SubjectRequest",!0);request.setRequestHeader("Content-Type","application/json");request.send(JSON.stringify(data));request.onload=function(){document.getElementById("subjectRequestConfirmedText").innerHTML=document.getElementById("subjectRequestConfirmedText").innerHTML.replace("requestnumber",request.responseText);toggleSubjectRequestConfirmed();toggleSubjectRequest()}}function blockCookies(){cookieDescriptor=Object.getOwnPropertyDescriptor(Document.prototype,"cookie");cookieDescriptor&&cookieDescriptor.configurable&&(document.__defineGetter__?(document.__defineGetter__("cookie",function(){return cookieDescriptor.get.call(document)}),document.__defineSetter__("cookie",function(val){let allow=!1;window.Cookie_Whitelist.forEach(function(cookie){val.indexOf(cookie+"=")===0&&(allow=!0)});allow===!0&&cookieDescriptor.set.call(document,val)})):Object.defineProperty(document,"cookie",{get:function(){return cookieDescriptor.get.call(document)},set:function(val){let allow=!1;window.Cookie_Whitelist.forEach(function(cookie){val.indexOf(cookie+"=")===0&&(allow=!0)});allow===!0&&cookieDescriptor.set.call(document,val)}}))}function blockDomains(){!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).yett={})}(this,function(t){"use strict";function p(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance");}()}var l="javascript/blocked",s={blacklist:window.Domain_Blacklist,whitelist:window.Domain_Whitelist},a={blacklisted:[]},o=function(e,t){return e&&(!t||t!==l)&&(!s.blacklist||s.blacklist.some(function(t){return t.test(e)}))&&(!s.whitelist||s.whitelist.every(function(t){return!t.test(e)}))},u=function(t){var e=t.getAttribute("src");return s.blacklist&&s.blacklist.every(function(t){return!t.test(e)})||s.whitelist&&s.whitelist.some(function(t){return t.test(e)})},f=new MutationObserver(function(t){for(var e=0;e<t.length;e++)for(var i=t[e].addedNodes,r=function(t){var r=i[t],e,n;1===r.nodeType&&("SCRIPT"===r.tagName||"IFRAME"===r.tagName)&&(e=r.src,n=r.type,o(e,n)&&(a.blacklisted.push(r.cloneNode()),r.type=l,r.addEventListener("beforescriptexecute",function t(e){r.getAttribute("type")===l&&e.preventDefault();r.removeEventListener("beforescriptexecute",t)}),r.parentElement.removeChild(r)))},n=0;n<i.length;n++)r(n)}),c,d;f.observe(document.documentElement,{childList:!0,subtree:!0});c=document.createElement;document.createElement=function(){for(var n,i,t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return"script"!==e[0].toLowerCase()?c.bind(document).apply(void 0,e):(n=c.bind(document).apply(void 0,e),i=n.setAttribute.bind(n),Object.defineProperties(n,{src:{get:function(){return n.getAttribute("src")},set:function(t){return o(t,n.type)&&i("type",l),i("src",t),!0}},type:{set:function(t){var e=o(n.src,n.type)?l:t;return i("type",e),!0}}}),n.setAttribute=function(t,e){"type"===t||"src"===t?n[t]=e:HTMLScriptElement.prototype.setAttribute.call(n,t,e)},n)};d=new RegExp("[|\\{}()[\\]^$+*?.]","g");t.unblock=function(){for(var n,i,o,c,t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];for(r.length<1?(s.blacklist=[],s.whitelist=[]):(s.blacklist&&(s.blacklist=s.blacklist.filter(function(e){return r.every(function(t){return"string"==typeof t?!e.test(t):t instanceof RegExp?e.toString()!==t.toString():void 0})})),s.whitelist&&(s.whitelist=[].concat(p(s.whitelist),p(r.map(function(e){if("string"==typeof e){var r=".*"+e.replace(d,"\\$&")+".*";if(s.whitelist.every(function(t){return t.toString()!==r.toString()}))return new RegExp(r)}else if(e instanceof RegExp&&s.whitelist.every(function(t){return t.toString()!==e.toString()}))return e;return null}).filter(Boolean))))),n=document.querySelectorAll('script[type="'.concat(l,'"]')),i=0;i<n.length;i++)o=n[i],u(o)&&(o.type="application/javascript",a.blacklisted.push(o),o.parentElement.removeChild(o));c=0;p(a.blacklisted).forEach(function(t,e){if(u(t)){var r=document.createElement("script");r.setAttribute("src",t.src);r.setAttribute("type","application/javascript");document.head.appendChild(r);a.blacklisted.splice(e-c,1);c++}});s.blacklist&&s.blacklist.length<1&&f.disconnect()};Object.defineProperty(t,"__esModule",{value:!0})})}function cookiescanGCMConsentListener(onUserConsent){var saveButton=document.getElementById("savePreferences");saveButton.addEventListener("click",onUserConsent(userCookie))}function getUserCookie(){return userCookie}var old_cookie,oldCookieObject;(function(document){var currentScript="currentScript";currentScript in document||Object.defineProperty(document,currentScript,{get:function(){try{throw new Error;}catch(err){var i=0,stackDetails=/.*at [^(]*\((.*):(.+):(.+)\)$/ig.exec(err.stack),scriptLocation=stackDetails&&stackDetails[1]||!1,line=stackDetails&&stackDetails[2]||!1,currentLocation=document.location.href.replace(document.location.hash,""),pageSource,inlineScriptSourceRegExp,inlineScriptSource,scripts=document.getElementsByTagName("script");for(scriptLocation===currentLocation&&(pageSource=document.documentElement.outerHTML,inlineScriptSourceRegExp=new RegExp("(?:[^\\n]+?\\n){0,"+(line-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),inlineScriptSource=pageSource.replace(inlineScriptSourceRegExp,"$1").trim());i<scripts.length;i++)if(scripts[i].readyState==="interactive"||scripts[i].src===scriptLocation||scriptLocation===currentLocation&&scripts[i].innerHTML&&scripts[i].innerHTML.trim()===inlineScriptSource)return scripts[i];return null}}})})(document);var necessaryDomains=[/media.goodgamestudios.com/,/paypal.com/,/checkout.paddle.com/,/www.paypal.com/,/cloudflare.com/,/linkcentre.com/,/cookiescan.com/],preferenceDomains=[],statisticsDomains=[/pagesense-collect.zoho.com/],marketingDomains=[/doubleclick.net/],unclassifiedDomains=[/google-analytics.com/,/linkcentre.com/,/www.linkcentre.com/,/salesiq.zohopublic.com/,/static.zohocdn.com/,/us4-files.zohopublic.com/],necessaryCookies=["journeyHash_funnel","ts","ts_c","paddle_session","lang","__cf_bm","cookiescan_consent"],preferenceCookies=[],statisticsCookies=["zfccn","_zcsr_tmp","zalb_0d269e8747"],marketingCookies=["test_cookie"],unclassifiedCookies=["_ga","_gid","mp_2adab15675fe33dc187408760820b83b_mixpanel","PHPSESSID","zabUserId","zsc5bfcada7a4be4c108e42715b8eb125d5","zft-sdc","zps-tgr-dts","zpsfa_sBt1V1i","LS_CSRF_TOKEN","uesign","zalb_663a60c55d","zalb_98bac1f50f","drscc"],countryBlockedCookies={DK:["_ga","_gid"],IT:["_ga","_gid"],FR:["_ga","_gid"],AT:["_ga","_gid"]},countryBlockedDomains={DK:[/google-analytics.com/],IT:[/google-analytics.com/],FR:[/google-analytics.com/],AT:[/google-analytics.com/]};const gpcValue=navigator.globalPrivacyControl;var bannerApiUrl="https://banner.cookiescan.com/",domainId="97-806185",cdn="https://cdn.cookiescan.com/",staticPath="static/1-5-6/",bannerStyle="bar",countryCode="",enableGcm="{enable-gcm}",cookiescanConsentCookieExists=!0,userCookie=getCookieObj(),changeMade=!1,cookieScan={};if(cookiescanConsentCookieExists==!1&&(old_cookie=getCookieValue("cs_"+domainId),old_cookie!=null&&(oldCookieObject=JSON.parse(old_cookie.replace("\\","")),oldCookieObject.lastUpdated=new Date(oldCookieObject.lastUpdated),oldCookieObject.siteUser||(oldCookieObject.siteUser=CreateGuid()),userCookie.preference=oldCookieObject.preference,userCookie.statistics=oldCookieObject.statistics,userCookie.marketing=oldCookieObject.marketing,userCookie.unclassified=oldCookieObject.unclassified,saveCookie())),navigator.userAgent.includes("CookieScan")&&typeof dataLayer!="undefined"){if(typeof gtag=="undefined"){function g(){dataLayer.push(arguments)}g("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted",functionality_storage:"granted",personalization_storage:"granted",security_storage:"granted"})}else gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted",functionality_storage:"granted",personalization_storage:"granted",security_storage:"granted"});dataLayer.push({event:"consent-update"})}!1||inIframe()||navigator.userAgent.includes("CookieScan")||(window.Domain_Whitelist=getDomainWhitelist(),window.Domain_Blacklist=getDomainBlacklist(),window.Cookie_Whitelist=getCookieWhitelist(),blockDomains(),blockCookies());document.readyState!=="loading"?loadBanner():document.addEventListener("DOMContentLoaded",function(){loadBanner()})