!function(){function e(){window.dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[];const t="privacy21-consented-categories";function a(){const e=c(t);return e?e.split(" "):[]}function o(e){const{src:n,textContent:t}=e;e=e.getAttribute("data-cookiecategory");if(e)return a().includes(e);e=window.Privacy21CookieManager.config.find(e=>e.src===function(e){return e&&"string"==typeof e?new URL(e).hostname:""}(n))||window.Privacy21CookieManager.config.find(e=>e.textContent===t);if(!e)return!0;if("necessary"===e.category)return!0;const o=a();return o.includes(e.category)}function i(){e("consent","update",function(){const e=a();return{ad_storage:e.includes("marketing")?"granted":"denied",ad_user_data:e.includes("marketing")?"granted":"denied",analytics_storage:e.includes("analytics")?"granted":"denied",ad_personalization:e.includes("marketing")?"granted":"denied",personalization_storage:e.includes("marketing")?"granted":"denied",functionality_storage:e.includes("functional")?"granted":"denied",security_storage:"granted"}}())}function r(e,n,t){const o=new Date;o.setUTCDate(o.getUTCDate()+t),document.cookie=`${e}=${n}; expires=${o.toUTCString()}; Secure; SameSite=Lax; path=/`}function c(e){for(var n=e+"=",t=document.cookie.split(";"),o=0;on.includes(e))}(e)){r(t,e.join(" "),180),!async function(e){var n=c("privacy21-consent-id");n&&fetch("https://privacyapi.privacy21.com/consent",{method:"POST",body:JSON.stringify({categories:e,code:"5309174461",consentId:n}),headers:{"Content-type":"application/json; charset=UTF-8"}}).then()}(e).then();for(const n of window.Privacy21CookieManager.latentScripts||[])o(n)&&(document.body.appendChild(n),document.privacy21LatentScripts=(window.Privacy21CookieManager.latentScripts||[]).filter(e=>e!==n));i(),window.dataLayer.push({event:"consentUpdated"})}},window.Privacy21CookieManager.reset=function(){window.localStorage.removeItem(t),window.location.reload()},e("consent","default",{ad_storage:"denied",ad_user_data:"denied",analytics_storage:"denied",ad_personalization:"denied",personalization_storage:"denied",functionality_storage:"denied",security_storage:"granted"}),i(),new MutationObserver(e=>{for(const n of e)for(const t of n.addedNodes)"SCRIPT"!==t.tagName||o(t)||(window.Privacy21CookieManager.latentScripts=[...window.Privacy21CookieManager.latentScripts,t],t.remove())}).observe(document,{childList:!0,subtree:!0}),document.addEventListener("DOMContentLoaded",function(){const e=document.createElement("script"),n=(e.src="https://privacyapi.privacy21.com/21cookies-script/banner/5309174461",document.body.append(e),document.createElement("link"));n.rel="stylesheet",n.href="https://privacyapi.privacy21.com/21cookies-script/banner-style/5309174461",document.body.append(n)},!1),async function(){c("privacy21-consent-id")||fetch("https://privacyapi.privacy21.com/touch-consent",{method:"POST",body:JSON.stringify({code:"5309174461"}),headers:{"Content-type":"application/json; charset=UTF-8"}}).then(e=>e.json()).then(e=>{r("privacy21-consent-id",e.sessionId,180)})}().then()}();