window.addEventListener("DOMContentLoaded",function(){if(document.getElementById("cookieconsent")){var e={layout:"basic",layouts:{basic:'<div class="cc-container">{{messagelink}}{{compliance}}</div>',"basic-close":'<div class="cc-container">{{messagelink}}{{compliance}}{{close}}</div>',"basic-header":'<div class="cc-container">{{header}}{{message}}{{link}}{{compliance}}</div>'},cookie:{domain:window.location.hostname,expiryDays:365},compliance:{"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},revokeBtn:'<div class="cc-revoke {{classes}}">Cookie settings</div>',content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:""},law:{countryCode:null,regionalLaw:!0},type:"info",position:"bottom",revokable:!1,static:!1,location:!0,showLink:!1},t=["layout","cookie.expiryDays","content.header","content.message","content.dismiss","content.allow","content.deny","content.link","content.href","type","position","law.countryCode","law.regionalLaw","revokable","static","location"],n={updateCookieConsentOptions:function(e,t,n){for(stack=t.split(".");1<stack.length;)key=stack.shift(),e=e[key];e[stack.shift()]=n}};for(settings=document.querySelectorAll("[data-cookieconsent-setting]"),i=0;i<settings.length;++i)setting=settings[i].dataset.cookieconsentSetting,value=settings[i].dataset.cookieconsentValue,parseInt(value,10)==value&&(value=parseInt(value,10)),-1!=t.indexOf(setting)&&(n.updateCookieConsentOptions(e,setting,value),"content.href"===setting&&n.updateCookieConsentOptions(e,"showLink",""!==value)),settings[i].parentNode.removeChild(settings[i]);delete settings,e.onPopupOpen=function(){var e=document.createEvent("Event");e.initEvent("bk2k.cookie.popupopen",!0,!0),window.dispatchEvent(e);var t=this.options.type;if("info"==t||"opt-out"==t){var n=document.createEvent("Event");n.initEvent("bk2k.cookie.enable",!0,!0),window.dispatchEvent(n)}},e.onPopupClose=function(){var e=document.createEvent("Event");e.initEvent("bk2k.cookie.popupclose",!0,!0),window.dispatchEvent(e)},e.onInitialise=function(e){var t=this.hasConsented(),n=document.createEvent("Event");t&&(n.initEvent("bk2k.cookie.enable",!0,!0),window.dispatchEvent(n)),t||(n.initEvent("bk2k.cookie.disable",!0,!0),window.dispatchEvent(n))},e.onStatusChange=function(e,t){var n=this.options.type,o=this.hasConsented(),i=document.createEvent("Event");o&&"opt-in"==n&&(i.initEvent("bk2k.cookie.enable",!0,!0),window.dispatchEvent(i)),o||"opt-in"!=n&&"opt-out"!=n||(i.initEvent("bk2k.cookie.disable",!0,!0),window.dispatchEvent(i))},e.onRevokeChoice=function(){var e=document.createEvent("Event");e.initEvent("bk2k.cookie.revoke",!0,!0),window.dispatchEvent(e)},e.container=document.getElementById("cookieconsent"),window.cookieconsent.initialise(e)}});