(()=>{const r={gdpr:"optin",ccpa:"optout"},s={functional:"preferences",analytics:["statistics","statistics-anonymous"],performance:"functional",advertisement:"marketing"},p=typeof _ckyGsk!="undefined"&&_ckyGsk?_ckyGsk:!1;document.addEventListener("cookieyes_consent_update",function(){const t=getCkyConsent(),c=t.categories;if(t.isUserActionCompleted===!1&&p&&!Object.values(c).slice(1).includes(!0))return;window.wp_consent_type=t.activeLaw?r[t.activeLaw]:"optin";let o=new CustomEvent("wp_consent_type_defined");document.dispatchEvent(o),Object.entries(c).forEach(([e,n])=>{e in s&&a(e,n?"allow":"deny")});function a(e,n){Array.isArray(s[e])?s[e].forEach(i=>{wp_set_consent(i,n)}):wp_set_consent(s[e],n)}});})();