!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["ue-cookies-policy"]=t():e.ueCookiesPolicy=t()}(window,(function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,o){e.exports=o(1)},function(e,t,o){"use strict";o.r(t),o.d(t,"ueCookiesPolicy",(function(){return he}));const n=Object.freeze({FALSE:"0",NULL:void 0,TRUE:"1",UNDEFINED:"-1"}),i=Object.freeze({EUCONSENT:"euconsent-v2",VERSION:"ue_privacyPolicy"}),r=Object.freeze({FALSY_REQUIRED_ARGUMENT:"A required argument is falsy.",INVALID_REQUIRED_ARGUMENT:"A required argument is not valid.",INVALID_TYPE_REQUIRED_ARGUMENT:"A required argument type is not valid.",UNEXPECTED_VALUE:"A value provided is not valid."}),s=Object.freeze({CMP_READY:"ueCmpReady",LEGACY_ANALYTICS_CONSENT_CHANGED:"ueAnalyticsGDPRAccepted",LEGACY_ALL_ENABLED:"ueCookieAccepted",LEGACY_CONSENT_CHANGED:"ueConsentChanged",NOTICE_VISIBILITY_CHANGED:"ueNoticeChanged"}),l=Object.freeze([{cmpId:"google",storageKeyId:"GOOGLE"},{cmpId:"comscore",storageKeyId:"COMSCORE"}]),d=Object.freeze({SHOW_PREFERENCES_BUTTONS:".js-uecookiespolicy-preferences-show"}),a=Object.freeze({COMSCORE:"ueUserContentComscore",ENABLED_PURPOSES:"ueUserPurposes",EUCONSENT:"euconsent-v2",EUCONSENT_UE:"ueConsentData",GOOGLE:"ueUserContentGoogle",STORED_CONSENTS:"storedConsents"}),c=Object.freeze({VERSION_MAX_AGE:648e5}),u=Object.freeze({FORCE_GDPR_CONSENT:"gdpr-consent"}),g=Object.freeze([{CANONICAL:77,ALIASES:Object.freeze(["comscore"])},{CANONICAL:610,ALIASES:Object.freeze(["c:Azerion","Azerion","c:azerion","azerion"])},{CANONICAL:"c:adsterra-LcneREci",ALIASES:Object.freeze(["c:Adsterra","Adsterra","c:adsterra","adsterra"])},{CANONICAL:"c:bet365-tqq6NDZe",ALIASES:Object.freeze(["c:Bet365","Bet365","c:bet365","bet365"])},{CANONICAL:"c:chartbeat",ALIASES:Object.freeze(["chartbeat"])},{CANONICAL:"google",ALIASES:Object.freeze(["c:google",755])},{CANONICAL:945,ALIASES:["c:jsdelivr","jsdelivr","c:Jsdelivr","Jsdelivr"]},{CANONICAL:"c:piano-agLNwCCW",ALIASES:["c:Piano","Piano","c:piano","piano"]}]);var h=(()=>{var e,t;const o=(null===(e=window.localStorage)||void 0===e?void 0:e.getItem("ue-dcv"))||(null===(t=window.localStorage)||void 0===t?void 0:t.getItem("ue-dcv-policy"))||!1,n={};if(["debug","error","info","log","warn","dir","dirxml","table","trace","group","groupCollapsed","groupEnd","clear","count","countReset","assert","profile","profileEnd","time","timeLog","timeEnd","timeStamp","context","memory"].forEach(e=>{n[e]=window.console[e]||function(){}}),o)return n;return Object.keys(console).forEach(e=>n[e]=()=>{}),n})();var E=function(e,t={},o){if("string"!=typeof e||!e)return void h.warn("[Policy] dispatchEvent: `eventName` is `falsy` (eventName)",e);const n=new CustomEvent(e,{detail:t});(o||window).dispatchEvent(n)};var f=function(e){const t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0};var w=function(e){var t=e||window.document.location.hostname,o=(t=t.split("."))[t.length-1];return(t[t.length-2]||"")+(o?"."+o:"")};const v=new Map;var p=(e,t,o,n)=>{if(v.has(e)&&(clearTimeout(v.get(e)),v.set(e,null)),"function"==typeof o){const i=setTimeout(()=>{n?o.apply(n):o(),v.set(e,null)},t);v.set(e,i)}};var y=function(e,t,o={}){(o={path:"/",samesite:"lax",...o}).expires instanceof Date&&(o.expires=o.expires.toUTCString());let n=encodeURIComponent(e)+"="+encodeURIComponent(t);for(const e in o){n+="; "+e;const t=o[e];!0!==t&&(n+="="+t)}document.cookie=n};function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function C(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,b(e,t,"get"))}function A(e,t,o){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return o}function P(e,t,o){return function(e,t,o){if(t.set)t.set.call(e,o);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=o}}(e,b(e,t,"set"),o),o}function b(e,t,o){if(!t.has(e))throw new TypeError("attempted to "+o+" private field on non-instance");return t.get(e)}var N=new WeakMap,I=new WeakMap,O=new WeakMap,U=new WeakMap,D=new WeakSet,L=new WeakSet,_=new WeakSet,R=new WeakSet,V=new WeakSet,T=new WeakSet,k=new WeakSet,j=new WeakSet,x=new WeakSet,G=new WeakSet,F=new WeakSet,W=new WeakSet,z=new WeakSet,M=new WeakSet,Y=new WeakSet,B=new WeakSet,$=new WeakSet,K=new WeakSet;class X{get allVendorIds(){var e,t,o,n;return null===(e=window.Didomi)||void 0===e||null===(t=e.getVendors)||void 0===t||null===(o=(n=t.call(e)).map)||void 0===o?void 0:o.call(n,e=>e.id)}get consent(){var e,t,o;return(null===(e=window.Didomi)||void 0===e||null===(t=e.getUserStatus)||void 0===t?void 0:t.call(e).consent_string)||(null===(o=window.localStorage)||void 0===o?void 0:o.getItem(a.EUCONSENT))||f(i.EUCONSENT)}get requiredPurposes(){var e,t;return null===(e=window.Didomi)||void 0===e||null===(t=e.getRequiredPurposeIds)||void 0===t?void 0:t.call(e)}get storedVersion(){return f(i.VERSION)}constructor(e,t){if(K.add(this),$.add(this),B.add(this),Y.add(this),M.add(this),z.add(this),W.add(this),F.add(this),G.add(this),x.add(this),j.add(this),k.add(this),T.add(this),V.add(this),R.add(this),_.add(this),L.add(this),D.add(this),m(this,"notice",{isVisible(){var e,t,o;const n=null===(e=window.Didomi)||void 0===e||null===(t=e.notice)||void 0===t||null===(o=t.isVisible)||void 0===o?void 0:o.call(t);return void 0===n?null:n}}),m(this,"onReady",{push(e){"function"==typeof e?e.apply(this,arguments):h.warn("[Policy] onReady.push: You must provide a function")}}),m(this,"preferences",{show(){window.didomiOnReady.push(()=>{window.Didomi.preferences.show()})},hide(){window.didomiOnReady.push(()=>{window.Didomi.preferences.hide()})}}),N.set(this,{writable:!0,value:!1}),I.set(this,{writable:!0,value:void 0}),O.set(this,{writable:!0,value:!1}),U.set(this,{writable:!0,value:void 0}),this.constructor.instance)return h.warn("[Policy] constructor: UeCookiesPolicy already exists."),this.constructor.instance;if(h.log("[Policy] constructor"),!e)throw h.error("[Policy] constructor: You should provide a not falsy current version."),new Error(r.UNEXPECTED_VALUE);this.constructor.instance=this,P(this,I,e),P(this,U,t||[])}allVendorsAreEnabled(){var e,t;if("function"!=typeof(null===(e=window.Didomi)||void 0===e?void 0:e.getUserStatus))return null;const o=window.Didomi.getUserStatus(),n=null==o||null===(t=o.vendors)||void 0===t?void 0:t.consent,i=n&&0===n.disabled.length&&n.enabled.length>0;return h.log("[Policy] allVendorsAreEnabled (result)",i),i}isAccepted(e={}){const t=e.vendors;if(!t){const e=this.allVendorsAreEnabled();return h.warn("[Policy] isAccepted: `data.vendors` is `falsy`, so fallback will check `allVendorsAreEnabled`. (result)",e),e}const o=this.getUserConsentStatusForVendors(t),n=Object.keys(o).reduce((e,t,n)=>{const i=o[t];switch(i){case!1:return h.warn(`[Policy] isAccepted: vendor ${t} status is ${i}`),!1;case void 0:return h.warn(`[Policy] isAccepted: vendor ${t} status is ${i}`),!1!==e&&void 0;case null:return h.warn(`[Policy] isAccepted: vendor ${t} status is ${i}`),!1!==e&&void 0!==e&&null;case!0:default:return e}},!0);return h.log("[Policy] isAccepted (data, result)",e,n),n}getAllPurposesEnabled(){var e,t,o,n,i,r,s,l;const d=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(a.ENABLED_PURPOSES);if(d){h.log("[Policy] getAllPurposesEnabled: Purpose stored found in localStorage (stored)",d);try{return JSON.parse(d)}catch(e){h.warn("[Policy] getAllPurposesEnabled: An error occurred while parsing this stored data:",d)}}if("function"!=typeof(null===(t=window.Didomi)||void 0===t?void 0:t.getUserConsentStatusForAll)&&"function"!=typeof(null===(o=window.Didomi)||void 0===o?void 0:o.getUserStatus))return h.warn("[Policy] getAllPurposesEnabled: Purpose stored not found in localStorage and Didomi is not ready."),null;const c=(null===(n=window.Didomi.getUserStatus())||void 0===n||null===(i=n.purposes)||void 0===i||null===(r=i.consent)||void 0===r?void 0:r.enabled)||(null===(s=window.Didomi.getUserConsentStatusForAll())||void 0===s||null===(l=s.purposes)||void 0===l?void 0:l.enabled);return c&&A(this,$,ue).call(this,c),h.log("[Policy] getAllPurposesEnabled: purposes from SDK (purposes)",c),c||!1}getConsentData(){return h.log("[Policy] getConsentData (consent)",this.consent),this.consent}getUserConsentStatusForVendor(e){var t;if(h.log("[Policy] getUserConsentStatusForVendor (vendorId)",e),!/^(number|string)$/gm.test(S(e)))throw h.error("[Policy] getUserConsentStatusForVendor: unexpected type of `vendorId`"),new Error(r.UNEXPECTED_VALUE);const o=A(this,F,re).call(this,e);if("string"==typeof o)return h.log("[Policy] getUserConsentStatusForVendor: consent found in localStorage (storedConsent)",o),A(this,R,Q).call(this,o);if("function"!=typeof(null===(t=window.Didomi)||void 0===t?void 0:t.getUserConsentStatusForVendor))return h.warn("[Policy] getUserConsentStatusForVendor: consent not found in localStorage and Didomi is not ready."),window.didomiOnReady.push(this.getUserConsentStatusForVendor.bind(this,e)),null;const n=A(this,k,te).call(this,e),i=window.Didomi.getUserConsentStatusForVendor(n);if("boolean"==typeof i){const t=A(this,V,Z).call(this,i);A(this,B,ce).call(this,e,"global",t)}return h.log("[Policy] getUserConsentStatusForVendor: status from SDK (vendorId, id, status)",e,n,i),i}getUserConsentStatusForVendors(e){const t={};return e?(/^(string|number)$/gim.test(S(e))&&(e=[e]),e.forEach(e=>{var o;if(!/(string|number)/gim.test(S(e)))return;const n=A(this,k,te).call(this,e),i=this.getUserConsentStatusForVendor(n),r=(null===(o=g.find(e=>e.CANONICAL===n))||void 0===o?void 0:o.ALIASES)||[];[n,...r].forEach(e=>{t[e]=i})}),h.log("[Policy] getUserConsentStatusForVendors (vendors, response)",e,t),t):(h.warn("[Policy] getUserConsentStatusForVendors: vendors is `falsy`! (vendors)",e),t)}getUserConsentStatus(e,t){var o,n;if(!e)throw h.error("[Policy] getUserConsentStatus: `purposeId` is falsy"),new Error(r.UNEXPECTED_VALUE);if(!/^(number|string)$/gm.test(S(t)))throw h.error("[Policy] getUserConsentStatus: unexpected type of `vendorId` (typeof vendorId, vendorId)",S(t),t),new Error(r.UNEXPECTED_VALUE);const i=null===(o=A(this,G,ie).call(this)[t])||void 0===o?void 0:o[e];if(i)return h.log("[Policy] getUserConsentStatus: status from localStorage (status)",i),i;if("function"!=typeof(null===(n=window.Didomi)||void 0===n?void 0:n.getUserConsentStatus))return h.log("[Policy] getUserConsentStatus: SDK not ready (purposeId, vendorId, status)",e,t,null),window.didomiOnReady.push(this.getUserConsentStatus.bind(this,e,t)),null;const s=window.Didomi.getUserConsentStatus(e,t);return"boolean"==typeof s&&A(this,B,ce).call(this,t,e,s),h.log("[Policy] getUserConsentStatus: status from SDK (purposeId, vendorId, status)",e,t,s),s}init(){if(h.log("[Policy] init"),C(this,N))return void h.warn("[Policy] init: ueCookiesPolicy has already been initialized.");A(this,T,ee).call(this);C(this,I)!==this.storedVersion&&(h.log("[Policy] init: New version found!"),A(this,W,se).call(this),A(this,Y,ae).call(this));const e=new URLSearchParams(window.location.search).get(u.FORCE_GDPR_CONSENT);A(this,z,le).call(this,e),A(this,D,q).call(this),A(this,L,H).call(this);this.allVendorsAreEnabled()&&E(s.LEGACY_ALL_ENABLED),P(this,N,!0)}promise(e){if("function"==typeof e)return new Promise(t=>{const o=e.apply(this,arguments);C(this,O)||null!=o?(h.log("[Policy] promise: resolves without waiting"),t(o)):window.didomiOnReady.push(()=>{h.log("[Policy] promise: resolves waiting to `didomiOnReady`"),t(e.apply(this,arguments))})});h.warn("[Policy] promise: You must provide a function")}}function q(){if(h.log("[Policy] #bindEvents"),C(this,N)||(document.addEventListener("nc-urlChanged",()=>{h.log("[Policy] #bindEvents: nc-urlChanged"),p("@policy-update",400,A(this,D,q),this)}),window.didomiOnReady.push(()=>{h.log("[Policy] #bindEvents: didomiOnReady"),P(this,O,!0),A(this,K,ge).call(this),A(this,$,ue).call(this),A(this,M,de).call(this),E(s.CMP_READY)}),window.didomiEventListeners.push({event:"consent.changed",listener:e=>{var t,o,n,i,r,l,d,a;switch(h.log("[Policy] #bindEvents: consent.changed"),null==e?void 0:e.action){case"navigate":h.warn("[Policy] #bindEvents: Unexpected consent.changed!!! (click to navigate to another page).");break;case"external":h.warn("[Policy] #bindEvents: Forced consent.changed!!! (external call to setUserAgreeToAll).");break;case"click":h.log("[Policy] #bindEvents: consent.changed (explicit click on the buttons).");break;default:h.warn("[Policy] #bindEvents: Unexpected consent.changed!!! (unknow action).")}A(this,_,J).call(this),A(this,K,ge).call(this),A(this,$,ue).call(this),A(this,M,de).call(this);const c=window.Didomi.getUserStatus(),u={},g=null===(t=c.purposes)||void 0===t||null===(o=t.consent)||void 0===o?void 0:o.enabled;null===(n=c.vendors)||void 0===n||null===(i=n.consent)||void 0===i||null===(r=i.disabled)||void 0===r||r.forEach(e=>u[e]=!1),null===(l=c.vendors)||void 0===l||null===(d=l.consent)||void 0===d||null===(a=d.enabled)||void 0===a||a.forEach(e=>u[e]=!0);const f={consents:{vendors:u,purposes:g}};E(s.LEGACY_CONSENT_CHANGED,f),E(s.LEGACY_ANALYTICS_CONSENT_CHANGED);this.allVendorsAreEnabled()&&E(s.LEGACY_ALL_ENABLED)}}),window.didomiEventListeners.push({event:"notice.shown",listener:()=>{h.log("[Policy] #bindEvents: notice.shown"),E(s.NOTICE_VISIBILITY_CHANGED,{isVisible:!0})}}),window.didomiEventListeners.push({event:"notice.hidden",listener:()=>{h.log("[Policy] #bindEvents: notice.hidden"),E(s.NOTICE_VISIBILITY_CHANGED,{isVisible:!1})}})),"loading"===document.readyState)return void document.addEventListener("DOMContentLoaded",()=>{h.log("[Policy] #bindEvents: DOMContentLoaded"),p("@policy-update",400,A(this,D,q),this)});A(this,j,oe).call(this).forEach(e=>{e.dataset.binded||(e.dataset.binded=!0,e.addEventListener("click",e=>{h.log("[Policy] #bindEvents: showButton clicked"),e.preventDefault(),window.didomiOnReady.push(()=>window.Didomi.preferences.show())}))})}function H(){setTimeout(()=>{C(this,U).forEach(this.onReady.push.bind(this)),P(this,U,[])},0)}function J(){h.log("[Policy] #clearStoredConsents");[...l.map(e=>a[e.storageKeyId]).filter(e=>e),a.COMSCORE,a.EUCONSENT_UE,a.GOOGLE,a.STORED_CONSENTS,a.ENABLED_PURPOSES].forEach(e=>{var t;return null===(t=window.localStorage)||void 0===t?void 0:t.removeItem(e)}),y(i.EUCONSENT,"",{"max-age":-1})}function Q(e){switch(h.log("[Policy] #decodeConsentStatus (status)",e),e){case n.UNDEFINED:return;case n.TRUE:return!0;case n.FALSE:return!1;case n.NULL:return null;default:return e}}function Z(e){if(h.log("[Policy] #encodeConsentStatus (status)",e),"boolean"==typeof e){return n[String(e).toUpperCase()]}return n.UNDEFINED}function ee(){window.didomiOnReady=window.didomiOnReady||[],window.didomiEventListeners=window.didomiEventListeners||[]}function te(e){if(!/^(number|string)$/gm.test(S(e)))throw h.error("[Policy] #getCanonicalVendorId: unexpected type of `vendorId`"),new Error(r.UNEXPECTED_VALUE);const t=g.find(t=>{var o;return null===(o=t.ALIASES)||void 0===o?void 0:o.includes(e)});null!=t&&t.CANONICAL&&(e=t.CANONICAL);const o=this.allVendorIds&&!this.allVendorIds.includes(e)&&this.allVendorIds.find(t=>t==="c:"+e);return o&&(e=o),e}function oe(){const e=new Set(document.querySelectorAll(d.SHOW_PREFERENCES_BUTTONS));return h.log("[Policy] #getPreferencesButtons (buttons)",e),e}function ne(e){if(!/^(number|string)$/gm.test(S(e)))throw h.error("[Policy] #getStorageVendorId: unexpected type of `vendorId`"),new Error(r.UNEXPECTED_VALUE);const t=A(this,k,te).call(this,e),o=l.find(e=>{const o=A(this,k,te).call(this,e.cmpId)===t,n=a[e.storageKeyId];return o&&n}),n=a[null==o?void 0:o.storageKeyId]||e;return h.log("[Policy] #getStorageVendorId (vendorId, result)",e,n),n}function ie(){var e;let t={};const o=a.STORED_CONSENTS,n=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(o);if(n)try{t=JSON.parse(n)}catch(e){h.error("[Policy] #getStorageData: An error occurred while parsing this data:",n)}return h.log("[Policy] #getStorageData (data)",t),t}function re(e){var t,o;if(!/^(number|string)$/gm.test(S(e)))throw h.error("[Policy] #getStoredConsent: unexpected type of `vendorId`"),new Error(r.UNEXPECTED_VALUE);const n=A(this,x,ne).call(this,e),i=n&&(null===(t=window.localStorage)||void 0===t?void 0:t.getItem(n));if(i)return h.log("[Policy] #getStoredConsent (vendorId, consent)",e,i),i;const s=null===(o=A(this,G,ie).call(this)[e])||void 0===o?void 0:o.global;return s?(h.log("[Policy] #getStoredConsent (vendorId, consent)",e,s),s):(h.log("[Policy] #getStoredConsent (vendorId, consent)",e,null),null)}function se(){h.log("[Policy] #reset"),A(this,_,J).call(this),window.didomiOnReady.push(()=>{window.Didomi.isConsentRequired()&&(window.Didomi.reset(),window.Didomi.notice.show())})}function le(e){switch(e){case!0:case"true":case"_true":h.log("[Policy] #setAgreement: setUserAgreeToAll! (agreement)",e),window.didomiOnReady.push(()=>{window.Didomi.setUserAgreeToAll()});break;case!1:case"false":case"_false":h.log("[Policy] #setAgreement: setUserDisagreeToAll! (agreement)",e),window.didomiOnReady.push(()=>{window.Didomi.setUserDisagreeToAll()})}}function de(){var e;const t=this.consent;t?(h.log("[Policy] #storeUserConsentString (consent)",t),null===(e=window.localStorage)||void 0===e||e.setItem(a.EUCONSENT_UE,t)):h.warn("[Policy] #storeUserConsentString: consent is falsy (consent)",t)}function ae(){h.log("[Policy] #storeCurrentVersion (currentVersion)",C(this,I)),y(i.VERSION,C(this,I),{"max-age":c.VERSION_MAX_AGE,domain:w()})}function ce(e,t,o){var n,i;if(!/^(number|string)$/gm.test(S(e)))throw h.error("[Policy] #storeVendorConsent: unexpected type of `vendorId`"),new Error(r.UNEXPECTED_VALUE);if(!t)return void h.error("[Policy] #storeVendorConsent: `purposeId` is falsy and will not be stored");let s={};const l=a.STORED_CONSENTS,d=(null===(n=window.localStorage)||void 0===n?void 0:n.getItem(l))||{};if(d&&"string"==typeof d)try{s=JSON.parse(d)}catch(e){h.error("[Policy] #storeVendorConsent: An error occurred while parsing this data:",d)}s[e]=s[e]||{},s[e][t]=o;const c="string"==typeof s?s:JSON.stringify(s);null===(i=window.localStorage)||void 0===i||i.setItem(l,c),h.log("[Policy] #storeVendorConsent (vendorId, purposeId, status, data)",e,t,o,s)}function ue(e=this.getAllPurposesEnabled()){var t;if(!(e instanceof Array))return void h.warn("[Policy] #storePurposes: `enablePurposes` should be an Array.");if(0===e.length)return void h.warn("[Policy] #storePurposes: `enablePurposes` length is 0.");const o=JSON.stringify(e);h.log("[Policy] #storePurposes (storageValue)",o),null===(t=window.localStorage)||void 0===t||t.setItem(a.ENABLED_PURPOSES,o)}function ge(){l.forEach(e=>{var t;const o=a[e.storageKeyId];if(!o)throw h.error("[Policy] #storeVeryImportantVendors: `storageKeys[vendor.storageKeyId]` is falsy (vendor, storageKeys)",e,a),new Error(r.UNEXPECTED_VALUE);const n=this.getUserConsentStatusForVendor(e.cmpId),i=A(this,V,Z).call(this,n);h.log("[Policy] #storeVeryImportantVendors (storageKey, storageValue)",o,i),null===(t=window.localStorage)||void 0===t||t.setItem(o,i)})}m(X,"instance",void 0);const he=new X("9",window.onPolicyReady||[]);he.init(),window.onPolicyReady=he.onReady}]).ueCookiesPolicy}));