cdn.iubenda.com Open in urlscan Pro
2001:41d0:605:ca00::1175:1  Public Scan

URL: https://cdn.iubenda.com/cookie_solution/iubenda_cs/1.66.1/core-it.js
Submission: On September 23 via api from IT — Scanned from NL

Form analysis 0 forms found in the DOM

Text Content

!function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function t(e,t,n){return t=s(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,g(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw a}}}}function r(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a,r,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(l)throw o}}return s}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function m(e){return(m="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 v(t,n){if(t){if("string"==typeof t)return e(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}window._iub=window._iub||{};var y=function(e){return null==e?[]:Array.isArray(e)?e:[e]},k=function(e,t){if(!e||!t)return!1;if(e.length!==t.length)return!1;var n=e.slice().sort(),i=t.slice().sort();return JSON.stringify(n)===JSON.stringify(i)},C=function(e){return Array.isArray?Array.isArray(e):"[object Array]"==={}.toString.call(e)},w=function(e,t,n,i){var o,a=e||{},r=t||{};return n?o=a:(o=C(a)?[]:{},Object.keys(a).forEach((function(e){o[e]=a[e]}))),i?Object.keys(r).forEach((function(e){"object"!==m(r[e])||null===r[e]||r[e]instanceof HTMLElement?o[e]=r[e]:("object"!==m(o[e])&&(o[e]=C(r[e])?[]:{}),o[e]=w(o[e],r[e],n,!0))})):Object.keys(r).forEach((function(e){o[e]=r[e]})),o},P=function(e,t){return w(e,t,!1,!1)},S=function(e,t){return w(e,t,!1,!0)},x=function(e,t){return w(e,t,!0,!0)},A=function(e,t){return"structuredClone"in window&&"function"==typeof window.structuredClone?window.structuredClone(e):w({},e,!0,t)},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.keys(e),i=[];return n.forEach((function(n){if("object"===m(e[n])&&e[n]){var o=_(e[n],[].concat(b(t),[n]));i=i.concat(o)}else{var a=[].concat(b(t),[n]).join(".");i.push(a)}})),i};function O(){return!1!==function(e,t){if(!window.dataLayer||!window.dataLayer.length)return!1;for(var n=0;n<window.dataLayer.length;n++){var i=window.dataLayer[n];if(i&&(i[0]===e&&i[1]===t))return n}return!1}("consent","default")}function I(){return window._iub&&window._iub.csConfiguration&&window._iub.csConfiguration.logLevel?window._iub.csConfiguration.logLevel:"error"}function B(){var e=I();-1!==["debug","info"].indexOf(e)&&console.info("[IUBCS|INFO]: The default consent or the TCF stub has been correctly found before Google Tag Manager is initialized.")}function L(){if(window._iub&&window._iub.csConfiguration&&!1!==window._iub.csConfiguration.googleConsentMode&&window._iub&&window._iub instanceof Object&&!0!==_iub.comoImplementationLogged){window._iub&&window._iub instanceof Object&&(_iub.comoImplementationLogged=!0);var e="google_tag_manager"in window,t="__tcfapi"in window,n=!!window._iub&&!!window._iub.csConfiguration&&!0===window._iub.csConfiguration.googleEnableAdvertiserConsentMode;e&&!O()&&!n||e&&!t&&n?function(){var e=I();-1!==["debug","info","warn","error"].indexOf(e)&&console.error("[IUBCS|ERROR]: Google Tag Manager initialized before setting the default consent or before embedding the TCF stub.")}():B()}}var T=function(e){if("function"==typeof e){var t=T();return e(t.resolve.bind(t)),t}return{_data:null,_isResolved:!1,_successCallbacks:[],then:function(e){!1===this._isResolved?this._successCallbacks.push(e):e.call(window,this._data)},resolve:function(e){if(this._isResolved)console&&console.log("The promise cannot be resolved more than once");else{this._isResolved=!0,this._data=e;for(var t=0,n=this._successCallbacks.length;t<n;t++)this._successCallbacks[t].call(window,e)}return this}}},D=function(e){var t=T(),n=[],i=0;return e.forEach((function(o,a){o.then((function(o){return function(o,a){n[a]=o,i++,e.length===i&&t.resolve(n)}(o,a)}))})),t},E=function(e){return"template"===e.options.googleConsentMode?(_iub.gtmDataLayer=_iub.gtmDataLayer||[],_iub.gtmDataLayer.pushCommand=_iub.gtmDataLayer.pushCommand||_iub.gtmDataLayer.push,_iub.gtmDataLayerV2=_iub.gtmDataLayerV2||[],_iub.gtmDataLayerV2.pushCommand=_iub.gtmDataLayerV2.pushCommand||_iub.gtmDataLayerV2.push,{gtmDataLayer:_iub.gtmDataLayer,gtmDataLayerV2:_iub.gtmDataLayerV2}):window.dataLayer},F=function(e){for(var t=E(e),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];if("template"===e.options.googleConsentMode){var a=t.gtmDataLayer,r=t.gtmDataLayerV2,s=JSON.parse(JSON.stringify(i));delete s[1].ad_user_data,delete s[1].ad_personalization,a.pushCommand(s),r.pushCommand(i)}else if("function"==typeof window.gtag){var c;(c=window).gtag.apply(c,i)}else void 0!==t&&t.push(i)},N=!0,R={analytics_storage:4,ad_storage:5,functionality_storage:2,personalization_storage:3,security_storage:2},V={analytics_storage:["s"],ad_storage:["s","sh","adv"]},z=!1,j=!1,U=function(e,t){var n;if(z)z=!1;else{j=!0,!0===window._iub.googleConsentModeV2&&(R.ad_user_data=5,R.ad_personalization=5);var i={};Object.keys(R).forEach((function(e){var n=R[e];t?t.purposes?i[e]=t.purposes[n]:i[e]=t.consent:i[e]=!0}));var o=null===(n=e.preferenceState)||void 0===n?void 0:n.getStateObject(),a=null==o?void 0:o.usPurposes;a&&Object.keys(V).forEach((function(e){var t,n=V[e].every((function(e){return a[e]}));i[e]=(null===(t=i[e])||void 0===t||t)&&n})),function(e,t){var n=t.options.googleConsentMode;if(!1!==n)if("template"!==n){var i=function(e){if(!e||!e.length)return null;for(var t=0;t<e.length;t++){var n=e[t];if(n&&"consent"===n[0]&&"default"===n[1])return n[2]}return null}(E(t)),o=!N,a={};Object.keys(e).forEach((function(t){var n=e[t];if("undefined"!==n)if(n)a[t]="granted";else if(o){var r;a[t]=null!==(r=i&&i[t])&&void 0!==r?r:"denied"}})),0!==Object.keys(a).length&&(F(t,"consent","update",a),N=!1)}else F(t,"updateConsent",e)}(i,e),e.options.emitGtmEvents&&window.dataLayer&&window.dataLayer.push({event:"iubenda_gtm_consent_event"})}};var M={start:function(){var e=this;if(!0===this.cs.options.googleConsentMode&&(window.dataLayer=window.dataLayer||[]),"template"===this.cs.options.googleConsentMode?B():T((function(e){var t=function(){return"google_tag_manager"in window};if(t())return e(!0);var n=setTimeout((function(){return clearInterval(i),t()?e(!0):e(!1)}),4e3),i=setInterval((function(){if(t())return clearInterval(i),clearTimeout(n),e(!0)}),100)})).then((function(){L()})),"template"!==this.cs.options.googleConsentMode){var t="developer_id.dZTJkMz";(function(e,t){if(!e||!e.length)return!1;for(var n=0;n<e.length;n++){var i=e[n];if(i&&"set"===i[0]&&i[1]===t)return!0}return!1})(window.dataLayer,t)||F(this.cs,"set",t,!0)}this.cs.on("callback.before.onPreferenceExpressedOrNotNeeded",(function(t){return U(e.cs,t)})),this.cs.once("before-activation",(function(){return t=e.cs,void(j||(t.state.needsConsent?U(t,t.consent):U(t),z=!0));var t}))}};function G(e,t){return([].slice.call(new Uint8Array(t)).join("")+e).slice(-t)}function W(e,t,n){(n||"boolean"==typeof n)&&(e[t]=n)}var H=function(){return o((function e(t){var i=t.sendConsent,o=t.getBannerHtml,a=t.getPageUrl,r=t.ConsStorage;n(this,e),this.sendConsent=i,this.getBannerHtml=o,this.getPageUrl=a,this.ConsStorage=r,this.config={cookiePolicyId:void 0,enableCcpa:void 0}}),[{key:"start",value:function(){this.storage=new this.ConsStorage("_iub_cs_cons-".concat(this.config.cookiePolicyId)),this.cs.on("callback.before.onReady",this.onReady.bind(this)),this.cs.on("callback.before.onPreferenceFirstExpressed",this.onPreferenceFirstExpressed.bind(this))}},{key:"sendPreferences",value:function(e,t){var n=this,i=e.scoped_id;this.sendConsent(this.cs.options.consApiKey,e,(function(e,o){e?n.logger.error(e||"failed to send data to ConS server"):(o!==i&&n.logger.error("ConS id mismatch. expected ".concat(i," but received ").concat(o)),null==t||t.call(null,o))}))}},{key:"getCurrentPreferences",value:function(){var e,t,n=this.cs.consent,i=n.consent,o=n.purposes,a={},r=null!==(e=this.cs.preferenceState)&&void 0!==e&&null!==(e=e.usPurposes)&&void 0!==e&&e.isActive?this.cs.preferenceState.usPurposes.getPreferences():null;return W(a,"consent",i),W(a,"purposes",o),W(a,"tcfv2",this.cs.state.tcfv2String),W(a,"uspr",r),W(a,"gac",null===(t=this.cs.customPreferences)||void 0===t?void 0:t.gac),W(a,"ccpa",this.config.enableCcpa?this.cs.preferences.storage.usPrivacy.getUspString():void 0),a}},{key:"getCurrentProofs",value:function(){var e=this,t={};return Object.keys(this.cs.consent).forEach((function(n){"cons"!==n&&(t[n]=e.cs.consent[n])})),[{content:JSON.stringify(t),form:this.bannerHTML}]}},{key:"makePayload",value:function(){var e,t=this.cs.consent,n=t.timestamp,i=t.cons,o=(void 0===i?{}:i).rand;return{scoped_id:function(e,t){var n=new Date(e),i=G(n.getUTCFullYear(),4),o=G(n.getUTCMonth()+1,2),a=G(n.getUTCDate(),2),r=G(n.getUTCHours(),2),s=G(n.getUTCMinutes(),2),c=G(n.getSeconds(),2),l=G(n.getMilliseconds(),3);return"".concat(i,"/").concat(o,"/").concat(a,"/").concat(r,"/").concat(s,"/").concat(c,"/").concat(l,"/").concat(t)}(n,void 0===o?(e=window.crypto||window.msCrypto,[].slice.call(e.getRandomValues(new Uint8Array(3))).map((function(e){return G(e.toString(16),2)})).join("")):o),legal_notices:[{identifier:"cookie_policy"}],preferences:this.getCurrentPreferences(),proofs:this.getCurrentProofs(),page_url:this.getPageUrl()}}},{key:"updateState",value:function(e){var t=e.id,n=e.saving,i=e.returnedId,o={rand:t.match(/\/([A-Fa-f0-9]+)$/)[1]};void 0!==n&&(o.saving=n),t!==i&&(o.returnedId=i),this.cs.consent.cons=o,this.cs.cookie.storeConsent()}},{key:"handleSuccessfulSend",value:function(e,t,n){var i=t.storage,o=t.cookie;i&&this.storage.remove(e),o&&this.updateState({id:e,returnedId:n}),this.cs.fireCallback("onCplSaved")}},{key:"retrySending",value:function(){var e,t=this,n=this.storage.items.map((function(e){return{payload:e,cb:function(){return t.handleSuccessfulSend(e.scoped_id,{storage:!0})}}}));if(null!==(e=this.cs.consent)&&void 0!==e&&null!==(e=e.cons)&&void 0!==e&&e.saving){var i=this.makePayload(),o=i.scoped_id,a=n.find((function(e){return e.payload.scoped_id===o}));a?a.cb=function(e){return t.handleSuccessfulSend(o,{storage:!0,cookie:!0},e)}:n.push({payload:i,cb:function(e){return t.handleSuccessfulSend(o,{cookie:!0},e)}})}n.forEach((function(e){var n=e.payload,i=e.cb;return t.sendPreferences(n,i)}))}},{key:"onReady",value:function(){this.cs.options.consApiKey&&(this.bannerHTML=this.getBannerHtml(),this.retrySending())}},{key:"onPreferenceFirstExpressed",value:function(){var e=this;if(this.cs.options.consApiKey&&!this.cs.options.previewMode){var t=this.makePayload(),n=t.scoped_id;this.updateState({id:n,saving:!0}),this.storage.add(t),this.sendPreferences(t,(function(t){e.handleSuccessfulSend(n,{storage:!0,cookie:!0},t)}))}}}])}();function q(e,t){for(var n=0;n<e.length;++n)if(t(e[n]))return n;return-1}var J=function(){return o((function e(t){n(this,e),this.storageKey=t}),[{key:"items",get:function(){var e;try{e=JSON.parse(localStorage.getItem(this.storageKey))}catch(e){}return e||[]},set:function(e){try{0===e.length?localStorage.removeItem(this.storageKey):localStorage.setItem(this.storageKey,JSON.stringify(e))}catch(e){}}},{key:"add",value:function(e){var t=this.items,n=q(t,(function(t){return t.scoped_id===e.scoped_id}));-1!==n?t[n]=e:t.push(e),this.items=t}},{key:"remove",value:function(e){var t=this.items,n=q(t,(function(t){return t.scoped_id===e}));-1!==n&&t.splice(n,1),this.items=t}}])}(),K=function(){return o((function e(){n(this,e),this.userAgent=navigator.userAgent,this.versionSearchString="",this.dataBrowser=[{string:this.userAgent,subString:"Chrome",identity:"Chrome"},{string:this.userAgent,subString:"MSIE",identity:"Explorer"},{string:this.userAgent,subString:"Trident",identity:"Explorer"},{string:this.userAgent,subString:"Firefox",identity:"Firefox"},{string:this.userAgent,subString:"Safari",identity:"Safari"},{string:this.userAgent,subString:"Opera",identity:"Opera"}],this.browser=this.searchString(this.dataBrowser)||"Other",this.version=this.searchVersion(this.userAgent)||this.searchVersion(navigator.appVersion)||"Unknown"}),[{key:"searchString",value:function(e){var t=e.filter((function(e){return-1!==e.string.indexOf(e.subString)})),n=null;return t.length&&(this.versionSearchString=t[0].subString,n=t[0].identity),n}},{key:"searchVersion",value:function(e){var t=e.indexOf(this.versionSearchString);if(-1===t)return null;var n=e.indexOf("rv:");return"Trident"===this.versionSearchString&&-1!==n?parseFloat(e.substring(n+3)):parseFloat(e.substring(t+this.versionSearchString.length+1))}},{key:"isBotAndShouldSkipBots",value:function(){return this.isBot()&&!this.shouldNotSkipBots()}},{key:"shouldNotSkipBots",value:function(){return/(^\?|&)iub_do_not_skip_bots=true(&|$)/i.test(location.search)}},{key:"isBot",value:function(){var e="("+["360Spider","A6-Indexer","Aboundex","AddThis","ADmantX","backlinkcrawler","baiduspider","bibnum.bnf","biglotron","BingPreview","binlar","BUbiNG","CC Metadata Scaper","changedetection","Chrome-Lighthouse","coccoc","Commons-HttpClient","content crawler spider","convera","crawler4j","curl","CyberPatrol","domaincrawler","drupact","ec2linkfinder","europarchive.org","ezooms","facebookexternalhit","FAST Enterprise Crawler","FAST-WebCrawler","findlink","findthatfile","fluffy","fr-crawler","g00g1e.net","gigablast","GingerCrawler","gnam gnam spider","Google favicon","Google-InspectionTool","GoogleOther","grapeshot","GrapeshotCrawler","grub.org","heritrix","hotjar","httpunit","httrack","ia_archiver","ichiro","integromedb","IOI","ip-web-crawler.com","ips-agent","it2media-domain-crawler","java","lb-spider","libwww","linkdex","lipperhey","Lipperhey SEO Service","lssrocketcrawler","ltx71","Mediapartners-Google","MegaIndex","MicrosoftPreview","netresearchserver","nutch","openindexspider","page2rss","panscient","phpcrawl","postrank","proximic","Python-urllib","Qwantify","RetrevoPageAnalyzer","SimpleCrawler","sistrix crawler","siteexplorer.info","slurp","sogou","speedy","summify","teoma","UsineNouvelleCrawler","Voyager","webcompanycrawler","webcrawler","webmon","WeSEE:Search","wget","wotbox","y!j-asr","yahoo","yandex","yanga","yeti","Bytespider"].join("|").replace(/(\.|\/)/g,"\\$1")+"|.*bot.*)";return new RegExp(e,"i").test(this.userAgent)}},{key:"isMobile",value:function(){var e=new RegExp("(android|bbd+|meego).+mobile|avantgo|bada/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)/|plucker|pocket|psp|series(4|6)0|symbian|treo|up.(browser|link)|vodafone|wap|windows ce|xda|xiino","i"),t=new RegExp("1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-","i"),n=this.userAgent||navigator.vendor||window.opera;return e.test(n)||t.test(n.substr(0,4))}}])}(),Y=new K;var X=new H({sendConsent:function(e,t,n){if(Y.isBotAndShouldSkipBots())n("Send consent denied: bot detected");else{var i="".concat("https://cpl.iubenda.com/big_data/consent","?apikey=").concat(e),o=JSON.stringify(t);"function"==typeof window.fetch?function(e,t,n){var i;fetch(e,{method:"POST",headers:{"Content-Type":"text/plain"},body:t,keepalive:!0}).then((function(e){return i=e.status,e.text()})).then((function(e){return n({response:e,status:i})})).catch((function(e){return n({err:e.toString()})}))}(i,o,a):function(e,t,n){var i=new XMLHttpRequest;i.onload=function(){return n({response:i.responseText,status:i.status})},i.onerror=function(){return n({err:"Failed to send data to ConS server"})},i.open("POST",e),i.setRequestHeader("Content-Type","text/plain"),i.send(t)}(i,o,a)}function a(e){var t=e.err,i=e.response,o=e.status;if(t)n(t);else if(o<200||o>299)try{var a=JSON.parse(i).message;n(a)}catch(e){n("Failed to decode the response from ConS server")}else n(null,i)}},getBannerHtml:function(){var e,t;return null!==(e=null===(t=document.getElementById("iubenda-cs-banner"))||void 0===t?void 0:t.innerHTML)&&void 0!==e?e:"Couldn't retrieve banner HTML"},getPageUrl:function(){return location.href},ConsStorage:J}),$=function(){},Q=new(function(){return o((function e(){n(this,e),this._registry={},this._instances={}}),[{key:"register",value:function(e,t){t.install=t.install||$,this._registry[e]=t}},{key:"createPluginInstance",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o=this._registry,a=o[e];if(!a)return null;var r={};x(r,a),Object.setPrototypeOf(r,Object.getPrototypeOf(a)),r.cs=t,r.logger=i,r.config=r.config||{};var s={};return Object.keys(n).forEach((function(e){r.config.hasOwnProperty(e)&&(s[e]=n[e])})),x(r.config,s),r}},{key:"install",value:function(e,t,n){var i=this,o=this._registry,a=this._instances;Object.keys(o).forEach((function(o){var r=i.createPluginInstance(o,e,t,n);a[o]=r,r.start()}))}},{key:"get",value:function(e){return this._registry[e]}}])}());Q.register("googleConsentMode",M),Q.register("ConS_integration",X);var Z={cookie_policy:"iubenda-cs-cookie-policy-lnk",privacy_policy:"iubenda-privacy-policy-link",vendors:"iubenda-vendor-list-link",adv_pref:"iubenda-advertising-preferences-link",do_not_sell:"iubenda-ccpa-opt-out iubenda-do-not-sell-link",second_layer:"iubenda-cs-preferences-link"},ee={iab_tcf:"https://iabeurope.eu/transparency-consent-framework/"},te=["iab_tcf"],ne=[{start:/\[or (.+?)\]/,end:"",exec:function(e,t,n){return le(e,n)?"[or]":""}},{start:/\[= (.+?)\]/,end:"",exec:function(e,t,n){return oe(n,e.split("."))}},{start:/\[list (.+?)\]/,end:/\[\/list\]/,exec:function(e,t,n){return ue(t,e)}},{start:/\[if (.+?)\]/,end:/\[\/if\]/,exec:function(e,t,n){return le(e,n)?t:""}},{start:/\[tip (.+?)\]/,end:/\[\/tip\]/,exec:function(e,t){return'<a href="javascript:void();" class="iub-popover-trigger" data-iub-popover="'+e+'">'+t+"</a>"}},{start:/\[link (.+?)\]/,end:/\[\/link\]/,exec:function(e,t){var n,i,o=Z[e]||"",a=_iub.cs,r=null===(n=a.options)||void 0===n||null===(n=n.i18nForBanner)||void 0===n||null===(n=n[a.options.lang||"en"])||void 0===n?void 0:n.banner,s="";null!==(i=a.options)&&void 0!==i&&null!==(i=i.banner)&&void 0!==i&&i.linksColor&&-1===te.indexOf(e)&&(s="style=color:"+a.options.banner.linksColor.replace(/\s+/g,"")+"!important;");var c=t,l=o?"javascript:void(0)":ee[e]||e;if("cookie_policy"===e){var u=a.options.banner.cookiePolicyLinkCaption;l=a.ui.getCookiePolicyHref(),u&&(c=u)}var p=/^http/i.test(l)||"cookie_policy"===e;return(p?"<a ":"<button ")+s+(p?' href="'.concat(l,'"  target="_blank" rel="noopener"'):"")+' class="'.concat(o,'"')+("cookie_policy"===e&&a.options.cookiePolicyInOtherWindow?' aria-label="'.concat(c," - ").concat(null==r?void 0:r.link_label_new_tab,'"'):"")+">"+c+(p?"</a>":"</button>")}}],ie=function(e,t){for(var n,i=Number.MAX_VALUE,o=0;o<ne.length;o++){var a=ne[o],r=e.match(a.start);r&&r.index<i&&(n={tag:a,match:r},i=r.index)}if(!n)return e;var s=e.substr(0,n.match.index),c=n.match.index+n.match[0].length,l=ie(e.substr(c),t),u=l.match(n.tag.end);if(!u)return s+n.match[0]+l;var p=l.substr(0,u.index),d=l.substr(u.index+u[0].length);return s+n.tag.exec(n.match[1],p,t)+d},oe=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e||{},i=0;i<t.length;i++){if(!(n[t[i]]instanceof Object))return i+1<t.length&&t[i+1]?null:n[t[i]];n=n[t[i]]}return n},ae=function(e){var t=e;return"true"===e?t=!0:"false"===e&&(t=!1),t},re=function(e,t){var n=e.match(/(not)?\s*(.*)/i),i=!!n[1],o=n[2],a=ae(o);return"string"==typeof a&&(a=oe(t,o.split("."))),i?!a:a},se=function(e,t){for(var n=e.split(/\s+and\s+/i),i=0;i<n.length;i++)if(!re(n[i],t))return!1;return!0},ce=function(e,t){for(var n=e.split(/\s+or\s+/i),i=0;i<n.length;i++)if(se(n[i],t))return!0;return!1},le=function(e,t){var n=/\((.+)\)/;if(!e.match(n))return ce(e,t);var i=e.replace(n,(function(e,n){return le(n,t)}));return ce(i,t)},ue=function(e,t){var n=e.split("[or]"),i=e,o="";if(o=t&&-1!==t.indexOf("[no-space]")?t?t.replace("[no-space]",""):",":t?" "+t:",",n.length<=1)return i;var a=n.pop();return n.join(",")+o+a},pe=function(e,t){return ie(e,t)},de=function(e){return Array.prototype.concat.apply([],document.querySelectorAll(e))},he=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=document.querySelectorAll(e),i=Array.prototype.slice.call(n,0);return t.forEach((function(e){var t=document.querySelectorAll(e);Array.prototype.slice.call(t,0).forEach((function(e){i.forEach((function(t,n){e.contains(t)&&i.splice(n,1)}))}))})),i},fe=function(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()},be=function(e,t){var n=(t||document).getElementsByClassName(e);return Array.prototype.concat.apply([],n)},ge=function(e){return e&&e.length?de("."+e.join(", .")):[]},me=function(e,t){for(var n=t.parentNode;null!=n;){if(n===e)return!0;n=n.parentNode}return!1},ve=function(e){return document.createElement(e.toUpperCase())},ye=function(e,t){var n=document.createElement("script");return n.setAttribute("type","text/javascript"),e&&n.setAttribute("src",e),"string"==typeof t&&(n.text=t),n},ke=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Ce=function(e,t){var n=e.nextSibling,i=e.parentNode;ke(e),i.insertBefore(t,n)},we=function(e,t){return e.parentNode.insertBefore(t,e.nextSibling)},Pe=function(e){var t=[],n=0;function i(e){t.push(["enter",e]);for(var n=0;n<e.childNodes.length;++n)i(e.childNodes[n]);t.push(["exit",e])}return{reiterate:function(){t=[],i(e)},next:function(){return n>=t.length?{done:!0}:{value:t[n++],done:!1}}}},Se=function(e){var t=e.nodeName.toLowerCase(),n=e.getAttribute("type"),i=e.hasAttribute("data-iub-script");return"script"===t&&(!n||i||"application/javascript"===n||"text/javascript"===n||"module"===n)},xe=function(e){e.hasAttribute("data-iub-type")?(e.setAttribute("type",e.getAttribute("data-iub-type")),e.removeAttribute("data-iub-type")):e.removeAttribute("type"),e.removeAttribute("data-iub-script")},Ae=function(e,t){return t&&function(e,t){Object.keys(t).forEach((function(n){void 0!==t[n]&&null!==t[n]&&e.setAttribute(n,t[n])}))}(e,t),function(e){for(var t=Array.prototype.concat.apply([],e.attributes),n={},i=0;i<t.length;i++){var o=t[i],a=o.name,r=o.value;null!=r&&"null"!==r&&""!==r&&(n[a]=r)}return n}(e)},_e=function(e,t){if(t?"loading"!==document.readyState:"complete"===document.readyState)e();else if(t){var n=function(){document.removeEventListener("readystatechange",n),e()};document.addEventListener("readystatechange",n)}else{var i=function(){window.removeEventListener("load",i),e()};window.addEventListener("load",i)}},Oe=function(e){var t=document.createElement("script");t.setAttribute("type","text/javascript"),t.setAttribute("src",e),document.getElementsByTagName("head")[0].appendChild(t)},Ie=function(e,t){e.classList.add(t)},Be=function(e,t){e.classList.remove(t)},Le=function(e,t){var n;return null===(n=e.classList)||void 0===n?void 0:n.contains(t)},Te=function(e,t,n){if("function"==typeof window[e])return new window[e](t,n);var i=(null==n?void 0:n.bubbles)||!1,o=(null==n?void 0:n.cancelable)||!1,a=document.createEvent(e);return a.initEvent(t,i,o),a},De=null;function Ee(e){var t=Object.keys(e).reduce((function(t,n){var i=e[n];return t+(i?n+":"+i+"!important;":"")}),"");return t?' style="'+t+'"':""}var Fe=function(e){return document.createTextNode(e||"")},Ne=function(e,t,n,i){var o,a=t;"msPointerEnabled"in window.navigator&&("touchstart"===a?a="MSPointerDown":"touchmove"===a?a="MSPointerMove":"touchend"===a&&(a="MSPointerUp")),o="object"===m(i)?function(){if(null!==De)return De;try{var e={};Object.defineProperty(e,"capture",{get:function(){return De=!0,!1}}),window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){De=!1}return De}()?i:!!i.capture:!!i,e.addEventListener(a,n,o)},Re=function(e,t,n,i){e.removeEventListener(t,n,i||!1)},Ve=function(e,t){var n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)},ze=function(e){document.body?e():setTimeout((function(){ze(e)}),1)},je=function(e,t){e.setAttribute("style",t)},Ue={debug:0,info:1,warn:2,error:3,fatal:4,nolog:5},Me=function(e,t,n){var i=[t].concat(n);console[e].apply?console[e].apply(console,i):console[e](i.join(" "))},Ge={configure:function(){},log:function(e,t){try{if("console"in window&&"log"in console&&"warn"in console&&"error"in console){var n="[IUBCS|"+e.toUpperCase()+"]:";We.LOG_LEVELS[e]<We.WARN?Me("log",n,t):We.LOG_LEVELS[e]===We.WARN?Me("warn",n,t):Me("error",n,t)}}catch(e){}}},We=new(function(){return o((function e(){n(this,e),this.DEBUG=0,this.INFO=1,this.WARN=2,this.ERROR=3,this.FATAL=4,this.NOLOG=5,this.LOG_LEVELS=Ue,this.silence=!1,this.strategies={},this.uses=[],this.level=1,this.slice=[].slice}),[{key:"silence",value:function(){return this.silence=!0,this}},{key:"wake",value:function(){return this.silence=!1,this}},{key:"registerStrategy",value:function(e,t){return this.strategies[e]=t,this}},{key:"configure",value:function(e,t){var n=this.strategies[e];return n&&"configure"in n&&n.configure(t),this}},{key:"setLevel",value:function(e){var t=e.toLowerCase();return t in Ue&&(this.level=Ue[t]),this}},{key:"log",value:function(e,t){var n=this;if(this.silence)return null;var i=y(t),o=e.toLowerCase();return o in Ue&&Ue[o]>=this.level&&this.uses.forEach((function(e){"function"==typeof e?e(o,i):e in n.strategies&&n.strategies[e].log(o,i)})),this}},{key:"use",value:function(e){return e&&(this.uses=y(e)),this}},{key:"debug",value:function(){this.log("debug",this.slice.call(arguments))}},{key:"info",value:function(){this.log("info",this.slice.call(arguments))}},{key:"warn",value:function(){this.log("warn",this.slice.call(arguments))}},{key:"error",value:function(){this.log("error",this.slice.call(arguments))}},{key:"fatal",value:function(){this.log("fatal",this.slice.call(arguments))}}])}());We.registerStrategy("console",Ge);var He=[2024,0,31,8],qe={version:"1.66.1",cmpVersion:338,tracker:{url:"https://hits.iubenda.com/piwik.php"},timeoutOnRemoteGet:1e3,timeoutBeforeReload:1e3,timeoutBeforeReloadWithCmp:3e4,keepLocalCookiesN:10,urlForRemoteConf:"https://cs.iubenda.com/cookie-solution/confs/js/%{cookie_policy_id}.js",TCF_V2_CONSENT_COOKIE:"euconsent-v2",GOOGLE_ADS_PERSONALIZED_ID:"googleAdsPersonalized",USPRIVACY_COOKIE:"usprivacy",consentCookieNameBase:"_iub_cs-",MAX_TCF2_COOKIE_DURATION:365,TCF_VERSION:2.2},Je={};void 0!==window._iub&&!1===_iub.csConfigLegacy&&(Je={inlineDelay:500,startOnDomReady:!0,safeTimeout:0});var Ke,Ye,Xe=p(p({logger:"console",logLevel:"nolog",raiseOnException:!1,cookiePolicyId:null,siteId:null,cookiePolicyUrl:null,cookiePolicyInOtherWindow:!1,skipSaveConsent:!1,lang:"it",startOnDomReady:!1,countryDetection:!1,askConsentAtCookiePolicyUpdate:!1,invalidateConsentBefore:null,invalidateConsentWithoutLog:Date.UTC(2023,0,15)<=Date.now(),hasEmailMarketing:!0,emailMarketing:{theme:null,styles:null,showFromPageView:2,autoInit:!0,preview:!1,position:"bottom-right",closeRetainTime:10080,customI18n:{}},banner:{content:null,cookiePolicyLinkCaption:null,zIndex:99999998,backgroundColor:"#000",textColor:"#fff",linksColor:"",fontSize:null,fontSizeCloseButton:"20px",fontSizeBody:"14px",applyStyles:!0,html:null,slideDown:!0,prependOnBody:!1,position:"top",backgroundOverlay:!1,acceptButtonDisplay:!1,acceptButtonCaption:null,acceptButtonColor:null,acceptButtonCaptionColor:null,customizeButtonDisplay:!1,customizeButtonCaption:null,customizeButtonColor:null,customizeButtonCaptionColor:null,rejectButtonDisplay:!1,rejectButtonCaption:null,rejectButtonColor:null,rejectButtonCaptionColor:null,continueWithoutAcceptingButtonDisplay:!1,continueWithoutAcceptingButtonCaption:null,continueWithoutAcceptingButtonColor:null,continueWithoutAcceptingButtonCaptionColor:null,closeButtonDisplay:!0,closeButtonCaption:"&times;",closeButtonRejects:!1,logo:"",brandBackgroundColor:"#000",brandTextColor:"#fff",listPurposes:!1,explicitWithdrawal:!1,useThirdParties:!0,showPurposesToggles:!1,showTitle:!0,ownerName:null,howToWithdraw:!0,totalNumberOfProviders:void 0,showTotalNumberOfProviders:!1},rebuildIframe:!0,footer:{message:null,btnCaption:null},callback:{onBeforePreload:null,onReady:null,onStartupFailed:null,onError:null,onFatalError:null,onBannerShown:null,onBannerClosed:null,onCookiePolicyShown:null,onConsentFirstGiven:null,onConsentGiven:null,onConsentRead:null,onActivationDone:null,onPreferenceNotNeeded:null,onConsentFirstRejected:null,onConsentRejected:null,onPreferenceFirstExpressed:null,onPreferenceExpressed:null,onPreferenceExpressedOrNotNeeded:null,onCcpaAcknowledged:null,onCcpaOptOut:null,onCcpaFirstAcknowledged:null,onCcpaFirstOptOut:null,on2ndLayerShown:null,on2ndLayerClosed:null,onCplSaved:null,onEmailMarketingLoaded:null},preferenceCookie:{expireAfter:365,tcfV2Name:"euconsent-v2"},enableRemoteConsent:!1,loopbackServer:{iframeBridge:{host:"cdn.iubenda.com",iframePath:"/cs/bridge/iframe_bridge-1.7.0.html"},callback:{host:"www.iubenda.com",setRemoteCookiePath:"/cookie-consent/cookies/set",resetRemoteCookiePath:"/cookie-consent/cookies/reset",getRemoteCookiePath:"/cookie-consent/cookies/get"}},hideInIframe:!1,reloadOnConsent:!1,localConsentDomain:null,localConsentDomainExact:!1,localConsentPath:"/",inlineDelay:1e3,safeTimeout:5e3,forceSafeActivation:!1,enableGpp:!1,enableTcf:!1,gppVersion:Date.UTC.apply(window,He)<=Date.now()?1.1:1,tcfVersion:qe.TCF_VERSION,askConsentIfCMPNotFound:!0,gdprApplies:void 0,gdprAppliesGlobally:!0,googleAdsPreferenceManagement:!1,googleAdditionalConsentMode:!1,gacVersion:1,newConsentAtVendorListUpdate:null,i18n:{},whitelabel:!0,perPurposeConsent:!1,showPurposesCollapsed:!0,promptToAcceptOnBlockedElements:!1,purposes:null,additionalPurposes:[],adPersonalization:!0,dynamicBannerText:!0,maxCookieSize:4096,maxCookieChunks:5,enableGdpr:!0,enableCcpa:!1,ccpaAppliesToEntireUSA:!1,ccpaApplies:void 0,ccpaAcknowledgeOnDisplay:!1,ccpaAcknowledgeOnLoad:!1,ccpaNoticeDisplay:!0,ccpaLspa:void 0,ccpaCookie:{expireAfter:365},privacyPolicyUrl:void 0,enableUspr:!1,usprApplies:void 0,showBannerForUS:!1,usprPurposes:null,usprPreferenceWidget:null,hasSensitiveData:!1,privacyPolicyNoticeAtCollectionUrl:"",enableFadp:!1,fadpApplies:void 0,showBannerForCH:!1,enableLgpd:!1,lgpdApplies:void 0,lgpdAppliesGlobally:!0,applyGdprForCH:!0,floatingPreferencesButtonDisplay:!1,floatingPreferencesButtonForceDisplay:!1,floatingPreferencesButtonCaption:!1,floatingPreferencesButtonColor:"",floatingPreferencesButtonCaptionColor:"",floatingPreferencesButtonHover:!1,floatingPreferencesButtonIcon:!0,floatingPreferencesButtonRound:!1,usPreferencesWidgetDisplay:void 0,tcfPurposes:{1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0},acceptTcfSpecialFeaturesWithAcceptBtn:!0,LIRestricted:!1,tcfPublisherCC:null,skipTcfValidation:!1,googleConsentMode:void 0,emitGtmEvents:!1,googleUrlPassthrough:!0,googleAdsDataRedaction:!0,googleEnableAdvertiserConsentMode:!1,consApiKey:void 0,hasCookiePolicy:void 0,hasPrivacyPolicy:void 0,floatingPreferencesButtonZIndex:2147483647},Je),{},{previewMode:!1,previewRemoteConfigurationUrl:void 0,storage:{type:"cookie",useSiteId:!1,autoSync:!1,items:{core:{type:void 0},uspr:{type:void 0},tcf:{type:void 0},usprivacy:{type:void 0},granular:{type:void 0}}}}),$e=We,Qe={loggerName:(null===(Ke=window._iub)||void 0===Ke||null===(Ke=Ke.csConfiguration)||void 0===Ke?void 0:Ke.logger)||Xe.logger,logLevel:(null===(Ye=window._iub)||void 0===Ye||null===(Ye=Ye.csConfiguration)||void 0===Ye?void 0:Ye.logLevel)||Xe.logLevel},Ze=Qe.loggerName,et=Qe.logLevel;function tt(){return-1!==["localhost"].indexOf(window.location.hostname)||null!==window.location.hostname.match(/.iubenda.com$/)}function nt(e){return tt()&&!0===e.previewMode&&!!e.previewRemoteConfigurationUrl}function it(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!0===t?e.previewRemoteConfigurationUrl:qe.urlForRemoteConf.replace("%{cookie_policy_id}",e.cookiePolicyId)}function ot(e,t,n){var i="Something went wrong within loading remote configuration.";if(e.cookiePolicyId){var o=0;$e.info("Loading javascript remote configuration"),at(it(e,nt(e)),(function a(r){r.success?($e.info("Remote configuration correctly loaded."),$e.info("Merging remote configuration with default."),null==n||n.call()):++o<5?setTimeout((function(){$e.info("Loading javascript remote configuration","Attempt ".concat(o+1)),at(it(e,nt(e)),a)}),200):t(i)}))}else t(i)}function at(e,t){var n=document.createElement("script");n.async=!0,n.onload=function(){return t({success:!0})},n.onerror=function(){return t({success:!1})},n.src=e;var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i)}$e.use(Ze),$e.setLevel(et);var rt=function(){return o((function e(t){n(this,e),this.object=t||{},this.listenersMap={},this.object.__iubJlibEmitterListeners__=this.listenersMap,this.object.on=this.on.bind(this),this.object.once=this.once.bind(this),this.object.off=this.off.bind(this),this.object.emit=this.emit.bind(this)}),[{key:"getListeners",value:function(e){return this.listenersMap[e]=this.listenersMap[e]||[],this.listenersMap[e]}},{key:"addListener",value:function(e,t,n){this.getListeners(e).unshift({fn:t,once:!!n})}},{key:"on",value:function(e,t){return this.addListener(e,t),this.object}},{key:"once",value:function(e,t){return this.addListener(e,t,!0),this.object}},{key:"off",value:function(e,t){for(var n=this.getListeners(e),i=n.length-1;i>=0;i--)n[i].fn===t&&n.splice(i,1);return this.object}},{key:"emit",value:function(e){for(var t=this.getListeners(e),n=t.length-1;n>=0;n--){var i=t[n],o=Array.prototype.slice.call(arguments,1);i.once&&t.splice(n,1),i.fn.apply(null,o)}}}])}(),st=function(e){return new rt(e)},ct=function(e){var t=!e.hasAttribute("disabled"),n=!e.getAttribute("aria-hidden");return t&&n&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},lt=null,ut=!1,pt=[],dt=!1,ht=!1,ft=!1,bt=function(e){if(dt||null===e.relatedTarget&&!ft){dt=!1;var t=e.target;if(lt){var n=document.querySelector(lt);if(!n.contains(t))(function(e,t){var n=e.querySelectorAll('a[href]:not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),input:not([disabled]):not([type="hidden"]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),[contenteditable]:not([tabindex="-1"])'),i=0,o=1;t&&(i=n.length-1,o=-1);for(var a=n[i];a&&!ct(a);)a=n[i+=o];return a})(n,ht).focus()}}},gt=function(e){var t=e.code||e.key;dt="Tab"===t,ht=event.shiftKey&&dt},mt=function(){ft=!0},vt=function(){ft=!1},yt=function(e){if(ut||(ut=!0,Ne(document.body,"focusin",bt),Ne(window,"keydown",gt),Ne(document,"mousedown",mt),Ne(document,"mouseup",vt)),e)pt.push({selector:lt,lastActive:document.activeElement}),lt=e;else{var t=pt.pop();t&&(lt=t.selector,t.lastActive.focus())}},kt=function(e){for(var t=document.getElementsByClassName("iubenda-advertising-preferences-link"),n=0;n<t.length;n++)Ct(t[n],e)},Ct=function(e,t){e.addEventListener("click",(function(e){e.stopPropagation(),e.preventDefault(),setTimeout((function(){t.showCP(!1,!0)}),0)}))},wt={it:{brand:{linkTitle:"iubenda - Cookie Policy e Gestione della conformità dei cookie"},banner:{accept_button_caption:"Accetta[if banner.showPurposesToggles] tutto[/if]",advertising_preferences_caption:"pannello delle preferenze pubblicitarie",continue_acception_button_caption:"Continua senza accettare →",cookie_policy_caption:"cookie policy",customize_button_caption:"Scopri di più[if (perPurposeConsent or (enableTcf and gdprApplies) or usprApplies) and not banner.showPurposesToggles] e personalizza[/if]",do_not_sell_caption:"Non vendere le mie informazioni personali",dynamic:{and:"e",body:'[if banner.ownerName][= banner.ownerName][/if][if not banner.ownerName]Noi[/if][if banner.useThirdParties] e[if banner.totalNumberOfProviders] [= banner.totalNumberOfProviders][/if] terze parti selezionate[/if] [if usprApplies or ccpaApplies]raccogliamo informazioni personali[if usprApplies and hasPrivacyPolicy] come specificato nella %{privacy_policy}[/if][/if][if not gdprApplies and not lgpdApplies and not fadpApplies and (usprApplies or ccpaApplies)].[/if][if gdprApplies or lgpdApplies or fadpApplies][if usprApplies or ccpaApplies] e [/if][/if][if gdprApplies or lgpdApplies or fadpApplies]utilizziamo cookie o tecnologie simili per finalità tecniche e[if not fadpApplies], con il tuo consenso,[/if] anche per[if not banner.listPurposes] altre finalità[/if][if banner.listPurposes] le finalità di [if adPersonalization]<strong data-iub-role="purposes_emphasis">[/if]%{purposes}[if adPersonalization]</strong>[/if][/if][if hasCookiePolicy] come specificato nella [link cookie_policy]cookie policy[/link][/if]. [if enableTcf and gdprApplies]\nPer quanto riguarda la pubblicità, noi e %{total_number_of_ads_vendors} [link vendors]terze parti[/link] selezionate, potremmo utilizzare <em>dati di geolocalizzazione precisi e l’identificazione attraverso la scansione del dispositivo</em>, al fine di <em>archiviare e/o accedere a informazioni su un dispositivo</em> e trattare dati personali come i tuoi dati di utilizzo, per le seguenti [link adv_pref]finalità pubblicitarie[/link]: <em>pubblicità e contenuti personalizzati, misurazione delle prestazioni dei contenuti e degli annunci, ricerche sul pubblico, sviluppo di servizi.</em>[/if][if gdprApplies or lgpdApplies][if banner.explicitWithdrawal]\nPuoi liberamente prestare, rifiutare o revocare il tuo consenso, in qualsiasi momento[if (enableTcf and gdprApplies) or banner.howToWithdraw], accedendo al pannello delle preferenze[/if]. [if enableTcf]Se presti il tuo consenso, sarà valido solo su questo dominio.[/if] Il rifiuto del consenso può rendere non disponibili le relative funzioni.[/if][/if][/if][if ccpaApplies and not usprApplies]\nIn caso di vendita di informazioni personali, puoi fare opt-out utilizzando il link "%{do_not_sell}".\n[if hasPrivacyPolicy]\nPer saperne di più sulle categorie di informazioni personali raccolte e sulle finalità per le quali tali informazioni saranno utilizzate, si prega di fare riferimento alla nostra %{privacy_policy}.[/if][/if]\n[if gdprApplies or lgpdApplies][if banner.acceptButtonDisplay][list o][if banner.acceptButtonDisplay]\nUsa il pulsante “[= banner.acceptButtonCaption]”[/if][if banner.closeButtonDisplay and not banner.closeButtonRejects and not banner.continueWithoutAcceptingButtonDisplay][or] chiudi questa informativa[/if][/list] per acconsentire. [/if][if not banner.acceptButtonDisplay and banner.closeButtonDisplay and not banner.closeButtonRejects]Chiudi questa informativa per acconsentire.[/if][if banner.rejectButtonDisplay][list o][if banner.rejectButtonDisplay]Usa il pulsante “[= banner.rejectButtonCaption]” [/if][if (banner.closeButtonDisplay and banner.closeButtonRejects) or banner.continueWithoutAcceptingButtonDisplay][or] chiudi questa informativa[/if][/list][if banner.rejectButtonDisplay] per continuare senza accettare.[/if][/if][if not banner.rejectButtonDisplay and ((banner.closeButtonDisplay and banner.closeButtonRejects) or banner.continueWithoutAcceptingButtonDisplay)]Chiudi questa informativa per continuare senza accettare.[/if][/if][if fadpApplies and not gdprApplies and not lgpdApplies]Hai diritto di fare opt-out dall’utilizzo di cookie e tecnologie simili in qualsiasi momento.[/if][if usprApplies and hasSensitiveData][if gdprApplies or lgpdApplies or fadpApplies]\n<b>Nota per i consumatori degli Stati Uniti</b>: p[/if][if not gdprApplies and not lgpdApplies and not fadpApplies]\nP[/if]uoi prestare o rifiutare il consenso al trattamento dei tuoi dati di geolocalizzazione precisa, in qualsiasi momento, tramite i pulsanti “[= banner.acceptButtonCaption]” e “[= banner.rejectButtonCaption]” oppure all\'interno del [link second_layer]pannello per le preferenze relative alla privacy[/link].[/if]',endQuote:"”",or:"o",startQuote:"“"},page_counter_caption:"Premi ancora per continuare",paragraph_1:"Questo sito o gli strumenti terzi da questo utilizzati si avvalgono di cookie necessari al funzionamento ed utili alle finalità illustrate nella cookie policy. Se vuoi saperne di più o negare il consenso a tutti o ad alcuni cookie, consulta la %{cookie_policy_link}.",paragraph_2:"Chiudendo questo banner, scorrendo questa pagina, cliccando su un link o proseguendo la navigazione in altra maniera, acconsenti all’uso dei cookie.",privacy_policy_caption:"privacy policy",reject_button_caption:"Rifiuta[if banner.showPurposesToggles] tutto[/if]",title:"Informativa",vendor_list_caption:"terze parti",link_label_new_tab:"il link si apre in una nuova scheda",close_button_label:"Chiudi questa informativa"},blocked_overlay:{accept_button:"Aggiorna",paragraph:"Hai rifiutato il tuo consenso all'utilizzo di cookie e tecnologie simili per la finalità %{purposes}. Per visualizzare questo contenuto, modifica le tue preferenze relative al consenso.",title:"Il contenuto è bloccato"},ccpa:{opt_out_cancel:"Annulla",opt_out_confirm:"Conferma",opt_out_prompt:"Sei sicuro di voler fare opt-out?"},floating_preferences_button:{caption:"Preferenze privacy"},footer:{btnCaption:"Salva e continua",message:"Proseguendo la navigazione o chiudendo questa finestra in altro modo, accetti le attuali impostazioni relative ai cookie."},uspr:{gpc_signal:"Il tuo segnale di preferenza relativo all’opt-out (GPC) è stato rispettato. Per modificarlo, utilizza le impostazioni del tuo dispositivo.",preference_widget:{notice_caption:"Informativa sulla raccolta",preference_caption:"Le tue preferenze relative alla privacy",preference_img_alt:"Icona dell’opt-out secondo il California Consumer Privacy Act (CCPA)"},privacy_policy:"privacy policy",purposes:{adv:"Trattamento delle mie informazioni personali per la <b>pubblicità personalizzata</b>",s:"<b>Vendita</b> delle mie informazioni personali",sd8:"Trattamento dei miei <b>dati di geolocalizzazione precisa</b>",sh:"<b>Condivisione</b> delle mie informazioni personali"},widget_intro:"Le opzioni fornite in questa sezione consentono di semplificare l’esercizio di alcuni <b>diritti relativi alla privacy a cui hai diritto in quanto utente che risiede negli Stati Uniti.</b><br>Per ottenere ulteriori informazioni sui tuoi diritti relativi alla privacy e su come esercitarli consulta la nostra %{privacy_policy}.",widget_title:"I tuoi diritti relativi alla privacy secondo le leggi US sulla privacy"},tcf_v2:{features:{1:{},2:{},3:{}},purposes:{1:{},2:{},3:{},4:{},5:{},6:{},7:{},8:{},9:{},10:{},11:{}},specialFeatures:{1:{},2:{}},specialPurposes:{1:{},2:{},3:{}}},per_purpose:{purposes:{1:{bannerName:"necessarie",name:"Necessari"},2:{bannerName:"funzionalità",name:"Funzionalità"},3:{bannerName:"esperienza",name:"Esperienza"},4:{bannerName:"misurazione",name:"Misurazione"},5:{bannerName:"marketing[if adPersonalization] (con annunci personalizzati)[/if]",name:"Marketing"},googleAdsPersonalized:{name:"Pubblicità personalizzata di Google e dei suoi partner"}},widget_title:"Le tue preferenze[if not fadpApplies] relative al consenso[/if] per le tecnologie di tracciamento"}}},Pt={},St={},xt={},At={};function _t(){x(At,wt),x(At,Pt),x(At,St),x(At,xt)}function Ot(e){Pt=e}_t();var It=!1,Bt=!1,Lt=!1,Tt=!1,Dt=function(){if(!Bt){var e=document.getElementsByTagName("head")[0];Ve('.iubenda-alert{position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100%!important;z-index:2147483647!important;background-color:rgba(0,0,0,.5)!important;font-family:"Helvetica Neue",-apple-system,sans-serif!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:16px!important}.iubenda-alert *{font-size:100%!important;width:auto!important;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;background:0 0!important;box-sizing:border-box!important;-webkit-tap-highlight-color:transparent!important;backface-visibility:hidden!important;font-family:-apple-system,sans-serif!important;text-decoration:none!important;color:currentColor!important;background-attachment:scroll!important;background-color:transparent!important;background-image:none!important;background-position:0 0!important;background-repeat:repeat!important;border:0!important;border-color:#000!important;border-color:currentColor!important;border-radius:0!important;border-style:none!important;border-width:medium!important;bottom:auto!important;clear:none!important;clip:auto!important;counter-increment:none!important;counter-reset:none!important;direction:inherit!important;float:none!important;font-style:inherit!important;font-variant:normal!important;font-weight:inherit!important;height:auto!important;left:auto!important;letter-spacing:normal!important;line-height:inherit!important;list-style-type:inherit!important;list-style-position:outside!important;list-style-image:none!important;margin:0!important;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:1;overflow:visible!important;padding:0!important;position:static!important;quotes:"" ""!important;right:auto!important;table-layout:auto!important;text-align:left!important;text-indent:0!important;text-transform:none!important;top:auto!important;unicode-bidi:normal!important;vertical-align:baseline!important;visibility:inherit!important;white-space:normal!important;width:auto!important;word-spacing:normal!important;z-index:auto!important;background-origin:padding-box!important;background-origin:padding-box!important;background-clip:border-box!important;background-size:auto!important;-o-border-image:none!important;border-image:none!important;border-radius:0!important;border-radius:0!important;box-shadow:none!important;-moz-column-count:auto!important;column-count:auto!important;-moz-column-gap:normal!important;column-gap:normal!important;-moz-column-rule:medium none #000!important;column-rule:medium none #000!important;-moz-column-span:none!important;column-span:none!important;-moz-column-width:auto!important;column-width:auto!important;font-feature-settings:normal!important;overflow-x:visible!important;overflow-y:visible!important;-webkit-hyphens:manual!important;hyphens:manual!important;perspective:none!important;perspective-origin:50% 50%!important;text-shadow:none!important;transition:all 0s ease 0s!important;transform:none!important;transform-origin:50% 50%!important;transform-style:flat!important;word-break:normal!important}.iubenda-alert .iubenda-alert-dialog{margin:16px!important;width:100%!important;border-radius:6px!important;background-color:#111!important;color:#f4f4f4!important}@media (min-width:320px){.iubenda-alert .iubenda-alert-dialog{width:320px!important}}.iubenda-alert .iubenda-alert-dialog .iubenda-alert-dialog-content{padding:24px 24px 0!important}.iubenda-alert .iubenda-alert-dialog .iubenda-alert-dialog-buttons{padding:24px!important;display:flex!important}.iubenda-alert .iubenda-alert-dialog .iubenda-alert-dialog-buttons button{flex:1!important}.iubenda-alert button{flex:1!important;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;margin:4px!important;padding:8px 16px!important;border-radius:64px!important;cursor:pointer!important;font-weight:700!important;font-size:100%!important;border:1px solid transparent!important;color:#fff;text-align:center!important}.iubenda-alert button:hover{border-color:currentColor!important}.iubenda-alert button.iubenda-button-confirm{background-color:#0073ce!important}.iubenda-alert button.iubenda-button-cancel{background-color:rgba(255,255,255,.1)!important}',e),Bt=!0}},Et=function(){if(!Lt){var e=document.getElementsByTagName("head")[0];Ve("#iubenda-cs-banner .iub-toggle-checkbox,#iubenda-iframe .iub-toggle-checkbox{flex-shrink:0!important;display:flex!important;align-items:center!important;margin-left:24px!important}#iubenda-cs-banner .iub-toggle-checkbox input,#iubenda-iframe .iub-toggle-checkbox input{-moz-appearance:none!important;appearance:none!important;-webkit-appearance:none!important;padding:0!important;border:0!important;margin:0!important}#iubenda-cs-banner .iub-toggle-checkbox input::-ms-check,#iubenda-iframe .iub-toggle-checkbox input::-ms-check{visibility:hidden}#iubenda-cs-banner .iub-toggle-checkbox input.style1,#iubenda-iframe .iub-toggle-checkbox input.style1{width:64px!important;height:32px!important;border-radius:32px!important;transition:background-position .4s ease,background-color .4s ease!important;background-color:#ccc!important;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23FFF' fill-rule='evenodd' d='M9 0a9 9 0 1 1 0 18A9 9 0 0 1 9 0zM5.729 5.033a.5.5 0 0 0-.638.058l-.058.07a.5.5 0 0 0 .058.637l3.201 3.201-3.201 3.203a.5.5 0 0 0 .707.707l3.201-3.203 3.203 3.203.07.058a.5.5 0 0 0 .637-.058l.058-.07a.5.5 0 0 0-.058-.637L9.706 8.999l3.203-3.201a.5.5 0 0 0-.707-.707L8.999 8.292 5.798 5.091z'/%3E%3C/svg%3E\")!important;background-repeat:no-repeat!important;background-position:top 4px left 4px!important;background-size:24px 24px!important}#iubenda-cs-banner .iub-toggle-checkbox input.style1:checked,#iubenda-iframe .iub-toggle-checkbox input.style1:checked{background-color:#1cc691!important;background-position:top 4px left 36px!important;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23FFF' fill-rule='evenodd' d='M9 0a9 9 0 1 1 0 18A9 9 0 0 1 9 0zm4.646 5.646l-6.198 6.2-3.1-3a.5.5 0 1 0-.696.718l3.454 3.342a.5.5 0 0 0 .701-.006l6.547-6.546a.5.5 0 1 0-.708-.708z'/%3E%3C/svg%3E\")!important}#iubenda-cs-banner .iub-toggle-checkbox input.style1:checked.sm,#iubenda-iframe .iub-toggle-checkbox input.style1:checked.sm{background-position:top 3px left 27px!important}#iubenda-cs-banner .iub-toggle-checkbox input.style1:checked.half,#iubenda-cs-banner .iub-toggle-checkbox input.style1:checked[value=partial],#iubenda-iframe .iub-toggle-checkbox input.style1:checked.half,#iubenda-iframe .iub-toggle-checkbox input.style1:checked[value=partial]{background-color:#ffd24d!important;background-position:top 4px left 20px!important;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23FFF' fill-rule='evenodd' d='M9 0a9 9 0 1 1 0 18A9 9 0 0 1 9 0zm4 8.5H5a.5.5 0 0 0 0 1h8a.5.5 0 0 0 0-1z'/%3E%3C/svg%3E\")!important}#iubenda-cs-banner .iub-toggle-checkbox input.style1:checked.half.sm,#iubenda-cs-banner .iub-toggle-checkbox input.style1:checked[value=partial].sm,#iubenda-iframe .iub-toggle-checkbox input.style1:checked.half.sm,#iubenda-iframe .iub-toggle-checkbox input.style1:checked[value=partial].sm{background-position:top 3px left 15px!important}#iubenda-cs-banner .iub-toggle-checkbox input.style1.sm,#iubenda-iframe .iub-toggle-checkbox input.style1.sm{width:48px!important;height:24px!important;border-radius:24px!important;background-size:18px 18px!important;background-position:top 3px left 3px!important}#iubenda-cs-banner .iub-toggle-checkbox input::-ms-check,#iubenda-iframe .iub-toggle-checkbox input::-ms-check{visibility:hidden!important}#iubenda-cs-banner .iub-toggle-checkbox input:not([disabled]),#iubenda-iframe .iub-toggle-checkbox input:not([disabled]){cursor:pointer!important}#iubenda-cs-banner .iub-toggle-checkbox input[disabled],#iubenda-iframe .iub-toggle-checkbox input[disabled]{opacity:.35}#iubenda-cs-banner .iub-toggle-checkbox .iub-caption,#iubenda-iframe .iub-toggle-checkbox .iub-caption{display:none!important}#iubenda-cs-banner{font-size:15px!important;background:0 0!important;line-height:1.4!important;position:fixed!important;z-index:99999998!important;top:0!important;left:0!important;width:100%!important;height:100%!important;border:0!important;margin:0!important;padding:0!important;overflow:hidden!important;display:flex!important;will-change:opacity;opacity:0!important;pointer-events:none!important;transition:opacity .4s ease!important}#iubenda-cs-banner .iubenda-banner-content:not(.iubenda-custom-content) *,#iubenda-cs-banner [class*=\" iub\"],#iubenda-cs-banner [class^=iub]{font-size:100%!important;width:auto!important;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;background:0 0!important;box-sizing:border-box!important;-webkit-tap-highlight-color:transparent!important;font-family:-apple-system,sans-serif!important;text-decoration:none!important;color:currentColor!important;background-attachment:scroll!important;background-color:transparent!important;background-image:none!important;background-position:0 0!important;background-repeat:repeat!important;border:0!important;border-color:#000!important;border-color:currentColor!important;border-radius:0!important;border-style:none!important;border-width:medium!important;bottom:auto!important;clear:none!important;clip:auto!important;counter-increment:none!important;counter-reset:none!important;direction:inherit!important;float:none!important;font-style:inherit!important;font-variant:normal!important;font-weight:inherit!important;height:auto!important;left:auto!important;letter-spacing:normal!important;line-height:inherit!important;list-style-type:inherit!important;list-style-position:outside!important;list-style-image:none!important;margin:0!important;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:1;overflow:visible!important;padding:0!important;position:static!important;quotes:\"\" \"\"!important;right:auto!important;table-layout:auto!important;text-align:left!important;text-indent:0!important;text-transform:none!important;top:auto!important;unicode-bidi:normal!important;vertical-align:baseline!important;white-space:normal!important;width:auto!important;word-spacing:normal!important;z-index:auto!important;background-origin:padding-box!important;background-origin:padding-box!important;background-clip:border-box!important;background-size:auto!important;-o-border-image:none!important;border-image:none!important;border-radius:0!important;border-radius:0!important;box-shadow:none!important;-moz-column-count:auto!important;column-count:auto!important;-moz-column-gap:normal!important;column-gap:normal!important;-moz-column-rule:medium none #000!important;column-rule:medium none #000!important;-moz-column-span:none!important;column-span:none!important;-moz-column-width:auto!important;column-width:auto!important;font-feature-settings:normal!important;overflow-x:visible!important;overflow-y:visible!important;-webkit-hyphens:manual!important;hyphens:manual!important;perspective:none!important;perspective-origin:50% 50%!important;text-shadow:none!important;transition:all 0s ease 0s!important;transform:none!important;transform-origin:50% 50%!important;transform-style:flat!important;word-break:normal!important;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}#iubenda-cs-banner .iubenda-banner-content:not(.iubenda-custom-content) * strong,#iubenda-cs-banner [class*=\" iub\"] strong,#iubenda-cs-banner [class^=iub] strong{font-weight:700!important}#iubenda-cs-banner.iubenda-cs-overlay:before{content:\"\"!important;position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100%!important;background-color:rgba(0,0,0,.5)!important;z-index:1!important;pointer-events:auto!important}#iubenda-cs-banner.iubenda-cs-center{align-items:center!important;justify-content:center!important}#iubenda-cs-banner.iubenda-cs-top{align-items:flex-start!important}#iubenda-cs-banner.iubenda-cs-bottom{align-items:flex-end!important}#iubenda-cs-banner.iubenda-cs-left{justify-content:flex-start!important}#iubenda-cs-banner.iubenda-cs-right{justify-content:flex-end!important}#iubenda-cs-banner.iubenda-cs-visible{opacity:1!important}#iubenda-cs-banner.iubenda-cs-visible>*{pointer-events:auto!important}#iubenda-cs-banner.iubenda-cs-slidein .iubenda-cs-container{transition:transform .4s ease!important}#iubenda-cs-banner.iubenda-cs-slidein.iubenda-cs-top .iubenda-cs-container{transform:translateY(-48px)!important}#iubenda-cs-banner.iubenda-cs-slidein.iubenda-cs-bottom .iubenda-cs-container{transform:translateY(48px)!important}#iubenda-cs-banner.iubenda-cs-slidein.iubenda-cs-visible .iubenda-cs-container{transform:translateY(0)!important}#iubenda-cs-banner .iubenda-cs-container{position:relative!important;z-index:2!important}#iubenda-cs-banner .iubenda-cs-container.iubenda-cs-themed{display:flex;flex-direction:column}#iubenda-cs-banner .iubenda-cs-brand{display:flex!important;padding:16px!important;flex-shrink:0!important}#iubenda-cs-banner .iubenda-cs-brand>div{display:flex!important;justify-content:flex-start!important}#iubenda-cs-banner .iubenda-cs-brand img{max-width:192px!important;max-height:32px!important}#iubenda-cs-banner .iubenda-cs-content{position:relative!important;z-index:1!important;overflow:hidden!important;transition:transform .4s ease!important;background-color:#000!important;color:#fff!important;font-size:14px!important;display:flex;flex-direction:column}#iubenda-cs-banner .iubenda-cs-rationale{position:relative!important;display:flex!important;flex-direction:column!important;flex:1 1 auto}#iubenda-cs-banner .iubenda-cs-close-btn{z-index:1!important;top:6px!important;right:0!important;margin:10px!important;min-width:32px!important;height:32px!important;padding:6px!important;font-size:24px!important;line-height:0!important;font-weight:lighter!important;cursor:pointer!important;text-align:center!important;border:1px solid transparent!important;border-radius:4px!important;opacity:.7!important;align-self:flex-end!important}#iubenda-cs-banner .iubenda-cs-close-btn:hover{opacity:1!important}#iubenda-cs-banner .iubenda-banner-content{font-weight:300!important;padding:16px!important;flex:1 1 auto!important;overflow-y:auto!important}#iubenda-cs-banner .iubenda-banner-content a,#iubenda-cs-banner .iubenda-banner-content button{cursor:pointer!important;color:currentColor!important;opacity:.7!important;text-decoration:underline!important}#iubenda-cs-banner .iubenda-banner-content a:hover,#iubenda-cs-banner .iubenda-banner-content button:hover{opacity:1!important}@media (min-width:640px){#iubenda-cs-banner .iubenda-banner-content div:nth-child(1){margin-top:40px!important}}#iubenda-cs-banner #iubenda-cs-paragraph.iubenda-cs-no-margin-top{margin-top:0!important}#iubenda-cs-banner #iubenda-cs-paragraph.iubenda-cs-small-margin-top{margin-top:16px!important}#iubenda-cs-banner #iubenda-cs-title{margin-bottom:16px!important;margin-top:8px!important;font-weight:700!important;font-size:14px!important}#iubenda-cs-banner .iubenda-cs-counter{text-align:center!important;position:relative!important;z-index:1!important;display:none;pointer-events:none;flex-shrink:0;padding:8px!important;font-size:13px!important;font-weight:700!important}#iubenda-cs-banner .iubenda-cs-cwa-button{font-weight:700!important;font-size:13px!important;background:rgba(255,255,255,.1)!important;color:#fff!important;padding:8px 14px!important;flex-shrink:0;border-radius:4px!important;text-align:center!important;z-index:1!important;margin:16px!important;margin-bottom:0!important;cursor:pointer!important}#iubenda-cs-banner .iubenda-cs-cwa-button:focus,#iubenda-cs-banner .iubenda-cs-cwa-button:hover{box-shadow:0 0 0 999px inset rgba(0,0,0,.1)!important}@media (max-width:639px){#iubenda-cs-banner .iubenda-cs-cwa-button{box-shadow:0 8px 16px 4px rgba(0,0,0,.2)!important}}@media (min-width:640px){#iubenda-cs-banner .iubenda-cs-cwa-button{align-self:flex-end}}#iubenda-cs-banner .iubenda-cs-cwa-button:focus,#iubenda-cs-banner .iubenda-cs-cwa-button:hover{box-shadow:0 0 0 999px inset rgba(0,0,0,.1)!important}@media (max-width:639px){#iubenda-cs-banner .iubenda-cs-cwa-button{box-shadow:0 8px 16px 4px rgba(0,0,0,.2)!important}}@media (min-width:640px){#iubenda-cs-banner .iubenda-cs-cwa-button{align-self:flex-end}}#iubenda-cs-banner .iubenda-cs-opt-group{z-index:1!important;display:flex!important;margin-top:0!important;flex-shrink:0!important;color:#000!important;margin:16px!important;margin-top:0!important}#iubenda-cs-banner .iubenda-cs-opt-group>div{display:flex!important}@media (min-width:640px){#iubenda-cs-banner .iubenda-cs-opt-group{align-items:center!important;justify-content:space-between!important}#iubenda-cs-banner .iubenda-cs-opt-group-custom{margin-right:auto!important;align-self:start!important;justify-content:flex-start!important}#iubenda-cs-banner .iubenda-cs-opt-group-consent{margin-left:auto!important;align-self:end!important;justify-content:flex-end!important}}@media (max-width:639px){#iubenda-cs-banner .iubenda-cs-opt-group{flex-direction:column!important}#iubenda-cs-banner .iubenda-cs-opt-group-custom:not(.iubenda-cs-opt-group-granular){order:2}#iubenda-cs-banner .iubenda-cs-opt-group-consent{order:1}}#iubenda-cs-banner .iubenda-cs-opt-group button{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;padding:8px 32px!important;border-radius:64px!important;cursor:pointer!important;font-weight:700!important;font-size:100%!important;margin-top:4px!important;margin-bottom:4px!important;text-align:center!important;border:0!important;background-color:#1a1a1a!important;color:#fff!important}@-moz-document url-prefix(){#iubenda-cs-banner .iubenda-cs-opt-group button{padding-top:7px!important}}#iubenda-cs-banner .iubenda-cs-opt-group button.focus,#iubenda-cs-banner .iubenda-cs-opt-group button.hover{box-shadow:0 0 0 999px inset rgba(0,0,0,.1)!important}@media (min-width:640px){#iubenda-cs-banner .iubenda-cs-opt-group button:not(:last-of-type){margin-right:8px!important}}@media (max-width:639px){#iubenda-cs-banner .iubenda-cs-opt-group button{padding:8px 24px!important;width:100%!important;display:block;text-align:center!important;margin:6px 3px!important;flex:1}}#iubenda-cs-banner .iubenda-cs-opt-group button.iubenda-cs-accept-btn,#iubenda-cs-banner .iubenda-cs-opt-group button.iubenda-cs-btn-primary{background-color:#0073ce!important;color:#fff!important}#iubenda-cs-banner .iubenda-cs-opt-group button.iubenda-cs-reject-btn{background-color:#0073ce!important;color:#fff!important}#iubenda-cs-banner.iubenda-cs-padded:not(.iubenda-cs-branded) .iubenda-banner-content{padding-right:48px!important}#iubenda-cs-banner.iubenda-cs-padded .iubenda-cs-close-btn{position:absolute!important}@media (min-width:640px){#iubenda-cs-banner:not(.iubenda-cs-padded).iubenda-cs-branded .iubenda-cs-cwa-button{position:absolute!important}}@media (min-width:640px){#iubenda-cs-banner:not(.iubenda-cs-branded):not(.iubenda-cs-no-heading) .iubenda-cs-cwa-button{position:absolute!important;top:-4px!important;right:-4px!important;padding:5px 10px!important}}@media (min-width:640px){#iubenda-cs-banner.iubenda-cs-branded:not(.iubenda-cs-default-floating).iubenda-cs-bottom .iubenda-cs-brand,#iubenda-cs-banner.iubenda-cs-branded:not(.iubenda-cs-default-floating).iubenda-cs-top .iubenda-cs-brand{border-radius:8px!important}}@media (min-width:640px){#iubenda-cs-banner.iubenda-cs-branded .iubenda-cs-cwa-button{margin:15px!important}}#iubenda-cs-banner.iubenda-cs-branded .iubenda-cs-close-btn{height:32px!important;min-width:32px!important}#iubenda-cs-banner.iubenda-cs-default .iubenda-cs-brand-badge-outer,#iubenda-cs-banner.iubenda-cs-default-floating .iubenda-cs-brand-badge-outer{height:0!important}#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-left) .iubenda-cs-brand-badge-outer,#iubenda-cs-banner.iubenda-cs-default:not(.iubenda-cs-left) .iubenda-cs-brand-badge-outer{margin-left:auto!important;margin-right:0!important;float:right!important}#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-bottom .iubenda-cs-brand-badge-outer,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-cs-brand-badge-outer{order:-1!important;display:inline-flex!important}#iubenda-cs-banner.iubenda-cs-default .iubenda-cs-brand{margin:0 -8px 0!important}@media (max-width:991px){#iubenda-cs-banner.iubenda-cs-default .iubenda-cs-brand{margin:-8px -8px 0!important}}@media (min-width:992px){#iubenda-cs-banner.iubenda-cs-default .iubenda-cs-brand div{margin:0 auto!important;width:calc(992px - 32px)!important}}@media (max-width:991px){#iubenda-cs-banner.iubenda-cs-default .iubenda-cs-brand div{margin:0 8px!important}}#iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container{width:100%!important}@media (min-width:992px){#iubenda-cs-banner.iubenda-cs-default .iubenda-cs-rationale{width:992px!important;margin:16px auto!important}}@media (min-width:992px){#iubenda-cs-banner.iubenda-cs-default-floating .iubenda-cs-brand-badge{margin:0 16px!important}}@media (min-width:992px){#iubenda-cs-banner.iubenda-cs-default-floating .iubenda-cs-container{width:992px!important}}@media (max-width:991px){#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-cs-container,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-cs-container{width:100%!important}}@media (min-width:640px){#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center:not(.iubenda-cs-top):not(.iubenda-cs-bottom) .iubenda-cs-container,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-bottom):not(.iubenda-cs-center) .iubenda-cs-container,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-top):not(.iubenda-cs-center) .iubenda-cs-container{width:480px!important}}#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center:not(.iubenda-cs-top):not(.iubenda-cs-bottom) .iubenda-cs-opt-group,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-bottom):not(.iubenda-cs-center) .iubenda-cs-opt-group,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-top):not(.iubenda-cs-center) .iubenda-cs-opt-group{flex-direction:column!important}#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center:not(.iubenda-cs-top):not(.iubenda-cs-bottom) .iubenda-cs-opt-group>div,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-bottom):not(.iubenda-cs-center) .iubenda-cs-opt-group>div,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-top):not(.iubenda-cs-center) .iubenda-cs-opt-group>div{width:100%!important}#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center:not(.iubenda-cs-top):not(.iubenda-cs-bottom) .iubenda-cs-opt-group button,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-bottom):not(.iubenda-cs-center) .iubenda-cs-opt-group button,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-top):not(.iubenda-cs-center) .iubenda-cs-opt-group button{display:block!important;width:100%!important;text-align:center!important}#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center:not(.iubenda-cs-top):not(.iubenda-cs-bottom) .iubenda-cs-opt-group-custom,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-bottom):not(.iubenda-cs-center) .iubenda-cs-opt-group-custom,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-top):not(.iubenda-cs-center) .iubenda-cs-opt-group-custom{order:2}#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center:not(.iubenda-cs-top):not(.iubenda-cs-bottom) .iubenda-cs-opt-group-consent,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-bottom):not(.iubenda-cs-center) .iubenda-cs-opt-group-consent,#iubenda-cs-banner.iubenda-cs-default-floating:not(.iubenda-cs-top):not(.iubenda-cs-center) .iubenda-cs-opt-group-consent{order:1}#iubenda-cs-banner.iubenda-cs-default-floating .iubenda-cs-content{box-shadow:0 8px 48px rgba(0,0,0,.15)!important;max-width:100%!important}@media (min-width:992px){#iubenda-cs-banner.iubenda-cs-default-floating .iubenda-cs-content{border-radius:4px!important;margin:16px!important}}#iubenda-cs-banner.iubenda-cs-scrollable .iubenda-banner-content{mask-image:linear-gradient(to top,rgba(0,0,0,0) 0%,rgb(0,0,0) 16px)!important;-webkit-mask-image:linear-gradient(to top,rgba(0,0,0,0) 0%,rgb(0,0,0) 16px)!important}#iubenda-cs-banner.iubenda-cs-fix-height .iubenda-cs-container,#iubenda-cs-banner.iubenda-cs-fix-height .iubenda-cs-content,#iubenda-cs-banner.iubenda-cs-fix-height .iubenda-cs-rationale{height:100%!important}@media (min-width:992px){#iubenda-cs-banner.iubenda-cs-fix-height.iubenda-cs-default-floating .iubenda-cs-content{height:calc(100% - 32px)!important}}#iubenda-cs-banner.iubenda-cs-fix-height .iubenda-cs-brand img{max-width:75%!important}#iubenda-cs-banner [tabindex]:not([tabindex=\"-1\"]):focus,#iubenda-cs-banner a[href]:focus,#iubenda-cs-banner button:focus,#iubenda-cs-banner details:focus,#iubenda-cs-banner input:focus,#iubenda-cs-banner select:focus,#iubenda-cs-banner textarea:focus{outline-width:2px!important;outline-style:solid!important;outline-color:#005fcc!important;outline-offset:2px!important}#iubenda-cs-banner .iubenda-cs-brand-badge{flex-shrink:0!important;margin:16px!important;padding:6px 34px 6px 10px!important;background:#fff!important;display:inline-flex;border-radius:6px!important;border:1px solid rgba(0,0,0,.2)!important;box-shadow:0 0 16px rgba(0,0,0,.1)!important;align-self:flex-end;background-image:url(\"data:image/svg+xml,%3Csvg fill='none' height='19' viewBox='0 0 9 19' width='9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath clip-rule='evenodd' d='m4.1555.211426c.81725.000101 1.61499.249693 2.28656.715401.67157.465713 1.18496 1.125343 1.47153 1.890693.28657.76536.33266 1.59996.13211 2.39221-.20055.79226-.63818 1.50441-1.25438 2.04124l.87593 11.02083h-7.023493l.875933-11.02083c-.616206-.53683-1.053841-1.24898-1.254391-2.04124-.2005501-.79225-.154458-1.62685.132114-2.39221.286572-.76535.799967-1.42498 1.471537-1.890693.67157-.465708 1.46931-.7153 2.28655-.715401z' fill='%231cc691' fill-rule='evenodd'/%3E%3C/svg%3E\")!important;background-position:center right 12px!important;background-repeat:no-repeat!important;color:#222!important;font-weight:400!important;font-size:14px!important;pointer-events:auto!important}#iubenda-cs-banner .iubenda-cs-brand-badge:hover{border:1px solid rgba(0,0,0,.4)!important}#iubenda-cs-banner .iubenda-cs-brand-badge>span{border-right:1px solid rgba(0,0,0,.1)!important;padding-right:12px!important}#iubenda-cs-banner .iubenda-cs-brand-badge>span>span{text-decoration:underline!important}#iubenda-cs-banner .iubenda-cs-brand-badge-text{font-size:11px!important;font-weight:700!important;text-align:right!important;margin:-4px 16px 12px!important}#iubenda-cs-banner .iubenda-cs-brand-badge-text a{color:inherit}#iubenda-cs-banner .iubenda-iframe-spinner~.iubenda-iframe-badge-container .iubenda-cs-brand-badge{display:none!important}#iubenda-cs-banner .iubenda-granular-controls-container{--iub-granular-background:rgba(0, 0, 0, .02);--iub-granular-border:rgba(0, 0, 0, 0.08);--iub-granular-toggle-background:rgba(0, 0, 0, 0.2);display:flex;flex-wrap:wrap;flex-shrink:0;margin-bottom:16px!important;border-top:1px solid var(--iub-granular-border)!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox{flex-basis:100%;display:flex!important;gap:10px!important;padding-left:16px!important;padding-right:16px!important;padding-bottom:14px!important;background-color:var(--iub-granular-background)!important;margin:0!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox input.style1{width:48px!important;height:24px!important;background-position:top 3px left 3px!important;background-size:18px 18px!important;background-color:var(--iub-granular-toggle-background)!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox input.style1,#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox input.style1:checked{background-image:url(\"data:image/svg+xml,%3Csvg height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' fill='%23fff' fill-rule='evenodd' r='10'/%3E%3C/svg%3E\")!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox input.style1:checked{background-position:top 3px left 27px!important;background-color:#1cc691!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox input.style1:checked[value=partial]{background-position:top 3px left 15px!important;background-color:#ffd24d!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox:nth-child(2){padding-top:16px!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox:last-child{padding-bottom:16px!important;border-bottom:1px solid var(--iub-granular-border)!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd),#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox{flex-basis:50%;flex-direction:column-reverse;padding:14px 10px!important;border:1px solid var(--iub-granular-border)!important;border-right:0!important;border-top:0!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox--disabled{display:none!important}@media (max-width:991px){#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox{min-width:0!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox label{max-width:100%}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox label span{display:block;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}#iubenda-cs-banner .iubenda-granular-controls-container .granular-control-checkbox--mobile-hidden{display:none!important}}#iubenda-cs-banner.iubenda-cs-black .iubenda-granular-controls-container{--iub-granular-background:rgba(255, 255, 255, .02);--iub-granular-border:rgba(255, 255, 255, 0.08);--iub-granular-toggle-background:rgba(255, 255, 255, 0.2)}@media (min-width:640px){#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox{flex:1!important;flex-direction:column-reverse!important;padding:14px 10px!important;border:1px solid var(--iub-granular-border)!important;border-right:0!important;border-top:0!important;padding-top:16px!important}}@media (min-width:992px){#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container{grid-gap:24px!important;padding:16px 16px 32px!important;border-top:0!important;margin-bottom:0!important}#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox--disabled,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox--disabled,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox--disabled,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox--disabled{display:flex!important}#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child{padding-left:16px!important}#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:last-child{padding-right:16px!important}#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd),#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox:nth-last-child(2),#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:nth-child(2),#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd),#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox:nth-last-child(2),#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default-floating.iubenda-cs-center.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:nth-child(2),#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd),#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox:nth-last-child(2),#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-bottom .iubenda-granular-controls-container .granular-control-checkbox:nth-child(2),#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd),#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:first-child:nth-last-child(odd)~.granular-control-checkbox:nth-last-child(2),#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:last-child,#iubenda-cs-banner.iubenda-cs-default.iubenda-cs-top .iubenda-granular-controls-container .granular-control-checkbox:nth-child(2){flex:0 1 auto!important;flex-direction:row!important;background-color:transparent!important;padding:0!important;border:none!important;margin:0!important}}.iubenda-tp-alert-btn *,.iubenda-tp-alert-btn:not([data-tp-nostyle]),.iubenda-tp-btn *,.iubenda-tp-btn:not([data-tp-nostyle]),.iubenda-uspr-btn *,.iubenda-uspr-btn:not([data-tp-nostyle]){font-size:100%!important;width:auto!important;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;background:0 0!important;box-sizing:border-box!important;-webkit-tap-highlight-color:transparent!important;backface-visibility:hidden!important;font-family:-apple-system,sans-serif!important;text-decoration:none!important;color:currentColor!important;background-attachment:scroll!important;background-color:transparent!important;background-image:none!important;background-position:0 0!important;background-repeat:repeat!important;border:0!important;border-color:#000!important;border-color:currentColor!important;border-radius:0!important;border-style:none!important;border-width:medium!important;bottom:auto!important;clear:none!important;clip:auto!important;counter-increment:none!important;counter-reset:none!important;cursor:auto!important;direction:inherit!important;float:none!important;font-style:inherit!important;font-variant:normal!important;font-weight:inherit!important;height:auto!important;left:auto!important;letter-spacing:normal!important;line-height:inherit!important;list-style-type:inherit!important;list-style-position:outside!important;list-style-image:none!important;margin:0!important;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:1;outline:0!important;overflow:visible!important;padding:0!important;position:static!important;quotes:\"\" \"\"!important;right:auto!important;table-layout:auto!important;text-align:left!important;text-indent:0!important;text-transform:none!important;top:auto!important;unicode-bidi:normal!important;vertical-align:baseline!important;visibility:inherit!important;white-space:normal!important;width:auto!important;word-spacing:normal!important;z-index:auto!important;background-origin:padding-box!important;background-origin:padding-box!important;background-clip:border-box!important;background-size:auto!important;-o-border-image:none!important;border-image:none!important;border-radius:0!important;border-radius:0!important;box-shadow:none!important;-moz-column-count:auto!important;column-count:auto!important;-moz-column-gap:normal!important;column-gap:normal!important;-moz-column-rule:medium none #000!important;column-rule:medium none #000!important;-moz-column-span:none!important;column-span:none!important;-moz-column-width:auto!important;column-width:auto!important;font-feature-settings:normal!important;overflow-x:visible!important;overflow-y:visible!important;-webkit-hyphens:manual!important;hyphens:manual!important;perspective:none!important;perspective-origin:50% 50%!important;text-shadow:none!important;transition:all 0s ease 0s!important;transform:none!important;transform-origin:50% 50%!important;transform-style:flat!important;word-break:normal!important;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.iubenda-tp-alert-btn:not([data-tp-nostyle]),.iubenda-tp-btn:not([data-tp-nostyle]),.iubenda-uspr-btn:not([data-tp-nostyle]){-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;line-height:34px!important;height:34px!important;min-width:34px!important;border-radius:4px!important;cursor:pointer!important;font-weight:700!important;font-size:14px!important;box-shadow:0 0 0 1px rgba(0,0,0,.15)!important;color:rgba(0,0,0,.65)!important;background-color:#fff!important;display:inline-block!important;vertical-align:middle!important}.iubenda-tp-alert-btn.iubenda-tp-btn--warning,.iubenda-tp-btn.iubenda-tp-btn--warning,.iubenda-uspr-btn.iubenda-tp-btn--warning{z-index:2147483647!important}.iubenda-tp-alert-btn.iubenda-tp-btn--warning:before,.iubenda-tp-btn.iubenda-tp-btn--warning:before,.iubenda-uspr-btn.iubenda-tp-btn--warning:before{content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg fill='none' height='17' viewBox='0 0 17 17' width='17' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.79042 2.81577c.7788-1.28272 2.64036-1.28272 3.41918 0l5.9459 9.79333c.8093 1.3328-.1503 3.038-1.7095 3.038h-11.89195c-1.55927 0-2.5188026-1.7052-1.709576-3.038z' fill='%23fb6666'/%3E%3Cpath d='m14.446 15.1471h-11.89195c-1.16945 0-1.889102-1.2789-1.28218-2.2785l5.94595-9.79334c.5841-.96204 1.98026-.96204 2.56436 0l5.94592 9.79334c.607.9996-.1127 2.2785-1.2821 2.2785z' stroke='%23000' stroke-opacity='.1'/%3E%3Cg fill='%23fff'%3E%3Crect height='4.97619' rx='.497619' width='.995238' x='8' y='6'/%3E%3Cpath d='m8 12.5c0-.2761.22386-.5.5-.5.27614 0 .5.2239.5.5 0 .2761-.22386.5-.5.5-.27614 0-.5-.2239-.5-.5z'/%3E%3C/g%3E%3C/svg%3E\");background-position:center;background-size:24px 24px;background-repeat:no-repeat;position:absolute;top:-16px;right:-16px;width:32px;height:32px}.iubenda-tp-alert-btn[data-tp-icon],.iubenda-tp-btn[data-tp-icon],.iubenda-uspr-btn[data-tp-icon]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%231CC691' fill-rule='evenodd' d='M16 7a4 4 0 0 1 2.627 7.016L19.5 25h-7l.873-10.984A4 4 0 0 1 16 7z'/%3E%3C/svg%3E\")!important;background-repeat:no-repeat!important;background-size:32px 32px!important;background-position:top .5px left 1px!important}.iubenda-tp-alert-btn[data-tp-circle],.iubenda-tp-btn[data-tp-circle],.iubenda-uspr-btn[data-tp-circle]{border-radius:32px!important}.iubenda-tp-alert-btn[data-tp-label]:after,.iubenda-tp-btn[data-tp-label]:after,.iubenda-uspr-btn[data-tp-label]:after{content:attr(data-tp-label)!important;padding:0 16px!important;white-space:nowrap!important}.iubenda-tp-alert-btn[data-tp-label][data-tp-icon]:after,.iubenda-tp-btn[data-tp-label][data-tp-icon]:after,.iubenda-uspr-btn[data-tp-label][data-tp-icon]:after{padding-left:32px!important}.iubenda-tp-alert-btn[data-tp-float],.iubenda-tp-btn[data-tp-float],.iubenda-uspr-btn[data-tp-float]{position:fixed!important}.iubenda-tp-alert-btn[data-tp-float]:not([data-tp-anchored]),.iubenda-tp-btn[data-tp-float]:not([data-tp-anchored]),.iubenda-uspr-btn[data-tp-float]:not([data-tp-anchored]){margin:16px!important}.iubenda-tp-alert-btn[data-tp-float]:focus,.iubenda-tp-btn[data-tp-float]:focus,.iubenda-uspr-btn[data-tp-float]:focus{outline:2px solid -webkit-focus-ring-color!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored],.iubenda-tp-btn[data-tp-float][data-tp-anchored],.iubenda-uspr-btn[data-tp-float][data-tp-anchored]{margin:0 16px!important;border-radius:6px!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left],.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right],.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-left],.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-right],.iubenda-tp-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left],.iubenda-tp-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right],.iubenda-tp-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-left],.iubenda-tp-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-right],.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left],.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right],.iubenda-uspr-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-left],.iubenda-uspr-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-right]{margin:0!important;top:75%!important;transform:translateY(-50%)!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left],.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-left],.iubenda-tp-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left],.iubenda-tp-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-left],.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left],.iubenda-uspr-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-left]{left:0!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;border-left:0!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right],.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-right],.iubenda-tp-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right],.iubenda-tp-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-right],.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right],.iubenda-uspr-btn[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-right]{right:0!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-left],.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-right],.iubenda-tp-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-left],.iubenda-tp-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-right],.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-left],.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-right]{margin:0!important;top:50%!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-bottom:0!important;transform-origin:bottom!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-left],.iubenda-tp-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-left],.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-left]{left:0!important;transform:translateY(-50%) rotate(90deg)!important;transform-origin:left bottom!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-right],.iubenda-tp-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-right],.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-right]{right:0!important;transform:translateY(-50%) rotate(-90deg)!important;transform-origin:right bottom!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-float=bottom-left],.iubenda-tp-alert-btn[data-tp-float][data-tp-float=bottom-right],.iubenda-tp-btn[data-tp-float][data-tp-float=bottom-left],.iubenda-tp-btn[data-tp-float][data-tp-float=bottom-right],.iubenda-uspr-btn[data-tp-float][data-tp-float=bottom-left],.iubenda-uspr-btn[data-tp-float][data-tp-float=bottom-right]{bottom:0!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-float=bottom-left][data-tp-anchored],.iubenda-tp-alert-btn[data-tp-float][data-tp-float=bottom-right][data-tp-anchored],.iubenda-tp-btn[data-tp-float][data-tp-float=bottom-left][data-tp-anchored],.iubenda-tp-btn[data-tp-float][data-tp-float=bottom-right][data-tp-anchored],.iubenda-uspr-btn[data-tp-float][data-tp-float=bottom-left][data-tp-anchored],.iubenda-uspr-btn[data-tp-float][data-tp-float=bottom-right][data-tp-anchored]{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-bottom:0!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-float=top-left],.iubenda-tp-alert-btn[data-tp-float][data-tp-float=top-right],.iubenda-tp-btn[data-tp-float][data-tp-float=top-left],.iubenda-tp-btn[data-tp-float][data-tp-float=top-right],.iubenda-uspr-btn[data-tp-float][data-tp-float=top-left],.iubenda-uspr-btn[data-tp-float][data-tp-float=top-right]{top:0!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-float=top-left][data-tp-anchored],.iubenda-tp-alert-btn[data-tp-float][data-tp-float=top-right][data-tp-anchored],.iubenda-tp-btn[data-tp-float][data-tp-float=top-left][data-tp-anchored],.iubenda-tp-btn[data-tp-float][data-tp-float=top-right][data-tp-anchored],.iubenda-uspr-btn[data-tp-float][data-tp-float=top-left][data-tp-anchored],.iubenda-uspr-btn[data-tp-float][data-tp-float=top-right][data-tp-anchored]{border-top-left-radius:0!important;border-top-right-radius:0!important;border-top:0!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-float=bottom-left],.iubenda-tp-alert-btn[data-tp-float][data-tp-float=top-left],.iubenda-tp-btn[data-tp-float][data-tp-float=bottom-left],.iubenda-tp-btn[data-tp-float][data-tp-float=top-left],.iubenda-uspr-btn[data-tp-float][data-tp-float=bottom-left],.iubenda-uspr-btn[data-tp-float][data-tp-float=top-left]{left:0!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-float=bottom-right],.iubenda-tp-alert-btn[data-tp-float][data-tp-float=top-right],.iubenda-tp-btn[data-tp-float][data-tp-float=bottom-right],.iubenda-tp-btn[data-tp-float][data-tp-float=top-right],.iubenda-uspr-btn[data-tp-float][data-tp-float=bottom-right],.iubenda-uspr-btn[data-tp-float][data-tp-float=top-right]{right:0!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-hover][data-tp-label]:after,.iubenda-tp-btn[data-tp-float][data-tp-hover][data-tp-label]:after,.iubenda-uspr-btn[data-tp-float][data-tp-hover][data-tp-label]:after{max-width:0!important;overflow:hidden!important;display:block!important;padding:0!important;opacity:0!important;transition:max-width .6s ease,padding .6s ease,opacity .6s ease!important}.iubenda-tp-alert-btn[data-tp-float][data-tp-hover][data-tp-label]:hover:after,.iubenda-tp-btn[data-tp-float][data-tp-hover][data-tp-label]:hover:after,.iubenda-uspr-btn[data-tp-float][data-tp-hover][data-tp-label]:hover:after{max-width:192px!important;padding-left:32px!important;padding-right:10px!important;opacity:1!important}.iubenda-tp-alert-btn:focus,.iubenda-tp-btn:focus,.iubenda-uspr-btn:focus{outline-width:2px!important;outline-style:solid!important;outline-color:#005fcc!important;outline-offset:2px!important}.iubenda-uspr-btn{border:1px solid rgba(0,0,0,.2)!important;box-shadow:0 .25rem 1rem rgba(0,0,0,.1)!important;border-radius:.5rem!important;font-family:sans-serif!important;font-weight:700!important;overflow:hidden!important;display:inline-flex!important;flex-wrap:wrap!important;background:#fff!important;color:#280404!important}.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left],.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right]{border-radius:0!important;border-bottom-left-radius:6px!important;border-bottom-right-radius:6px!important;top:auto!important;bottom:32px!important;flex-wrap:nowrap!important}.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left] *,.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right] *{white-space:nowrap!important}.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left]{left:0!important;transform:translateX(46px) rotate(-90deg)!important;transform-origin:left bottom!important}.iubenda-uspr-btn[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right]{right:0!important;transform:translateX(-46px) rotate(90deg)!important;transform-origin:right bottom!important}@media (min-width:480px){.iubenda-uspr-btn[data-tp-float=bottom-right],.iubenda-uspr-btn[data-tp-float=bottom-right] .iubenda-cs-preferences-link,.iubenda-uspr-btn[data-tp-float=top-right],.iubenda-uspr-btn[data-tp-float=top-right] .iubenda-cs-preferences-link{flex-direction:row-reverse!important}}.iubenda-uspr-btn a{padding:.75rem!important;cursor:pointer!important;flex:1 1 auto!important;display:inline-flex!important;align-items:center!important;grid-gap:0.5rem!important}.iubenda-uspr-btn a img{width:2.5rem!important;flex-shrink:0!important}.iubenda-uspr-btn a:hover{background-color:rgba(0,0,0,.025)!important}.iubenda-uspr-btn a:first-of-type{box-shadow:0 0 0 1px rgba(0,0,0,.2)!important}.iub__us-widget{color:#595959;margin:0;padding:.5em;display:flex;justify-content:center;align-items:center;font-family:-apple-system,sans-serif!important;font-size:1rem;font-weight:700}.iub__us-widget.left{justify-content:flex-start}.iub__us-widget.right{justify-content:flex-end}.iub__us-widget__wrapper{background-color:#fff;border:1px solid currentColor;border-radius:5px;overflow:hidden;display:flex}.iub__us-widget__wrapper[data-tp-circle]{border-radius:32px}.iub__us-widget__link{display:flex;justify-content:center;align-items:center;padding:.5em 1em;line-height:1;text-decoration:none;transition:background-color .3s ease;cursor:pointer}.iub__us-widget__link--privacy-choices{border-left:1px solid currentColor}.iub__us-widget__link--privacy-choices::after{content:url(\"data:image/svg+xml,%3Csvg width='40' height='18' viewBox='0 0 40 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='17' rx='8.5' fill='white' stroke='%232569F6'/%3E%3Cpath d='M22.5 0H31C35.9706 0 40 4.02944 40 9C40 13.9706 35.9706 18 31 18H18L22.5 0Z' fill='%232569F6'/%3E%3Cpath d='M8 9.5L10.5 12L16.5 6' stroke='%232569F6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M25.5 6L31.5 12' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M31.5 6L25.5 12' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E%0A\");height:18px;margin-left:.8em}.iub__us-widget__link:hover{background-color:#e4e6e8}@media screen and (max-width:480px){.iub__us-widget{justify-content:start}.iub__us-widget__wrapper{flex-direction:column-reverse}.iub__us-widget__link{justify-content:flex-start}.iub__us-widget__link--privacy-choices{flex-direction:row-reverse;border-left:none;border-bottom:1px solid currentColor;margin-left:0;margin-right:.8em}}",e),Lt=!0}},Ft=function(e){if(!Tt&&!0===e.banner.applyStyles){var t={backgroundColor:e.banner.backgroundColor,textColor:e.banner.textColor,rejectButtonCaptionColor:e.banner.rejectButtonCaptionColor,rejectButtonColor:e.banner.rejectButtonColor,acceptButtonCaptionColor:e.banner.acceptButtonCaptionColor,acceptButtonColor:e.banner.acceptButtonColor,buttonTextColor:e.banner.customizeButtonCaptionColor,buttonBackgroundColor:e.banner.customizeButtonColor,brandBackgroundColor:e.banner.logo&&e.banner.brandBackgroundColor,brandTextColor:e.banner.logo&&e.banner.brandTextColor,fontSizeBody:e.banner.fontSize||e.banner.fontSizeBody,buttonExitFontSize:e.banner.fontSize||e.banner.fontSizeCloseButton,buttonExitTextColor:e.banner.logo&&e.banner.brandTextColor,buttonExitBackgroundColor:!e.banner.logo&&e.banner.backgroundColor,continueWithoutAcceptingButtonColor:e.banner.continueWithoutAcceptingButtonColor,continueWithoutAcceptingButtonCaptionColor:e.banner.continueWithoutAcceptingButtonCaptionColor},n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="";return e.forEach((function(e){var i=e.selector||e.selectors.join(", "),o="";for(var a in e.properties)e.properties[a]&&(o+="".concat(a,": ").concat(e.properties[a]).concat(t?"!important":"",";"));o&&(n+="".concat(i," { ").concat(o," }"))})),n}([{selectors:["#iubenda-iframe.iubenda-iframe-branded .iubenda-modal-navigation-brand","#iubenda-iframe.iubenda-iframe-branded .purposes-header","#iubenda-iframe.iubenda-iframe-branded .purposes-header .iub-btn-cp","#iubenda-iframe.iubenda-iframe-branded .purposes-header .iub-btn-back","#iubenda-iframe.iubenda-iframe-branded .iub-cmp-header","#purposes-content-container .purposes-header","#iubenda-cs-banner .iubenda-cs-brand"],properties:{"background-color":t.brandBackgroundColor,color:t.brandTextColor}},{selector:"#iubenda-cs-banner .iub-toggle .iub-toggle-label",properties:{color:t.brandTextColor}},{selector:["#iubenda-iframe.iubenda-iframe-branded .purposes-header .iub-btn-cp:hover","#iubenda-iframe.iubenda-iframe-branded .purposes-header .iub-btn-back:hover"],properties:{"background-color":t.brandTextColor,color:t.brandBackgroundColor}},{selector:["#iubenda-cs-banner .iubenda-cs-content","#iubenda-cs-title",".iub-toggle-checkbox.granular-control-checkbox span"],properties:{"background-color":t.backgroundColor,color:t.textColor,"font-size":t.fontSizeBody}},{selector:"#iubenda-cs-banner .iubenda-cs-close-btn",properties:{"font-size":t.buttonExitFontSize,color:t.buttonExitTextColor,"background-color":t.buttonExitBackgroundColor}},{selector:"#iubenda-cs-banner .iubenda-cs-opt-group",properties:{color:t.backgroundColor}},{selector:["#iubenda-cs-banner .iubenda-cs-opt-group button",".iubenda-alert button.iubenda-button-cancel"],properties:{"background-color":t.buttonBackgroundColor,color:t.buttonTextColor}},{selectors:["#iubenda-cs-banner .iubenda-cs-opt-group button.iubenda-cs-accept-btn","#iubenda-cs-banner .iubenda-cs-opt-group button.iubenda-cs-btn-primary",".iubenda-alert button.iubenda-button-confirm"],properties:{"background-color":t.acceptButtonColor,color:t.acceptButtonCaptionColor}},{selector:"#iubenda-cs-banner .iubenda-cs-opt-group button.iubenda-cs-reject-btn",properties:{"background-color":t.rejectButtonColor,color:t.rejectButtonCaptionColor}},{selector:"#iubenda-cs-banner button.iubenda-cs-cwa-button",properties:{"background-color":t.continueWithoutAcceptingButtonColor,color:t.continueWithoutAcceptingButtonCaptionColor}}],!0),i=document.head||document.getElementsByTagName("head")[0];Ve(n,i),Tt=!0}};function Nt(){var e="iubenda-cs__overlay-style";if(!!!document.querySelector(".".concat(e))){var t=document.createElement("style");t.className=e,t.innerHTML=".iubenda-cs__overlay{width:100%;height:100%;display:flex;overflow:auto;padding:1rem;background-color:rgba(0,0,0,.1);font-family:sans-serif;box-sizing:border-box}.iubenda-cs__dialog{max-width:320px;border-radius:.5rem;box-shadow:0 0 2rem rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.05);margin:auto;overflow:hidden;padding:1.5rem;display:flex;flex-direction:column;grid-gap:1.5rem;background:#fff;color:#222;box-sizing:border-box}.iubenda-cs__body h1{font-size:1.25rem;margin:0 0 .5rem 0}.iubenda-cs__body p{margin:0;font-weight:300}.iubenda-cs__button{font-size:100%;border-radius:4rem;padding:.5rem 1rem;font-weight:700;background-color:#0073ce!important;color:#fff!important;border:0;width:100%;cursor:pointer}.iubenda-cs__button:hover{background-color:#005aa0!important}@media (max-height:320px) and (max-width:240px){.iubenda-cs__overlay{padding:0}}@media (max-height:320px) and (min-width:480px){.iubenda-cs__dialog{flex-direction:row;max-width:100%;align-items:center}.iubenda-cs__button{padding:1rem 3rem}}",document.body.appendChild(t)}}var Rt="en",Vt=Rt,zt=function(e,t){for(var n=e,i=0;n&&i<t.length;i++){var o=t[i];if(!(o in n))return null;n=n[o]}return n},jt=function(e,t){var n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=e.split("."),r=zt(At[Vt],a)||t||e;return void 0===r&&Vt!==Rt&&(r=zt(At.en,a)),pe(r=r||t||e,null!==(n=null===(i=_iub)||void 0===i||null===(i=i.cs)||void 0===i?void 0:i.options)&&void 0!==n?n:o)};jt.setLang=function(e){Vt=e};var Ut=jt,Mt=function(e){return-1!==["en","it","de","es","fr","pt-BR","nl","da"].indexOf(e)?e.toLowerCase():"en"};function Gt(e){var t=null!=e?e:"en";return{brandLink:"https://www.iubenda.com/"+Mt(t)+"/cookie-solution?utm_source=cs&utm_medium=web&utm_campaign=csbr1",brandLinkTitle:At[t].brand.linkTitle}}window._iub.csTranslate=Ut;var Wt=function(e){for(var t=document.getElementsByClassName("iubenda-cs-preferences-link"),n=0,i=t.length;n<i;n++)Ht(t[n],e)},Ht=function(e,t){e.getAttribute("data-iub-enabled")||(e.addEventListener("click",(function(n){n.stopPropagation(),n.preventDefault();var i=e.getAttribute("data-accept-purposes"),o=null;i&&(o=i.split(",")),t.openPreferences({event:n,acceptPurposes:o})})),e.setAttribute("data-iub-enabled",1))},qt="iub-popover",Jt="iub-popover-header-title",Kt="iub-popover-content-body",Yt="iub-popover-header-close",Xt="iub-popover-visible",$t=function(){return o((function e(t){n(this,e),this.cs=t}),[{key:"titleEl",get:function(){return be(Jt)[0]}},{key:"bodyEl",get:function(){return be(Kt)[0]}},{key:"onClick",value:function(e){var t=e.target;if(Le(t,"iub-popover-trigger")){var n=t.getAttribute("data-iub-popover"),i=t.getAttribute("data-iub-popover-title");i||null===n||(i=Ut("tooltips."+n+".title",""));var o=t.getAttribute("data-iub-popover-body");o||null===n||(o=Ut("tooltips."+n+".body","")),this.showPopover(t,i,o),e.preventDefault()}}},{key:"showPopover",value:function(e,t,n){var i=this,o=this.cs.ui,a=function(e,t){for(var n=e.parentNode;null!=n;){if(!0===t(n))return n;n=n.parentNode}return null}(e,(function(e){var t="iubenda-iframe-popup"===e.id;return t&&!e._iubPopupInit&&(Ne(e,"click",(function(e){i.onIframePopupClick(e)})),e._iubPopupInit=1),t||Le(e,"iubenda-cs-container")})),r=this.createPopover(a);this.titleEl.innerHTML=t,this.bodyEl.innerHTML=n,o.bindOpenCmpBtns(r),o.bindVendorListBtns(r),r.offsetWidth,Ie(a.parentNode,Xt),yt(".".concat(qt))}},{key:"onIframePopupClick",value:function(e){var t=be(qt)[0],n=e.target;n===t||me(t,n)||this.close(),e.stopPropagation()}},{key:"close",value:function(){var e=be(qt)[0];if(e&&e.parentNode){var t=be(Xt)[0];t&&(yt(),Be(t,Xt),setTimeout((function(){e.parentNode.removeChild(e)}),300))}}},{key:"createPopover",value:function(e){var t=this,n=be(qt)[0];return n||((n=document.createElement("div")).className=qt,n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby","iub-popover-title"),n.setAttribute("aria-describedby","iub-popover-content"),n.innerHTML=['<div class="iub-popover-header">','<h2 class="'+Jt+'" id="iub-popover-title">[POPOVER TITLE]</h2>','<button class="'+Yt+'">&times</button>',"</div>",'<div class="iub-popover-content" id="iub-popover-content">','<div class="'+Kt+'">[POPOVER CONTENT]</div>',"</div>"].join(""),Ne(n,"click",(function(e){return t.onPopoverClick(e)})),e.appendChild(n),n)}},{key:"onPopoverClick",value:function(e){Le(e.target,Yt)&&this.close()}},{key:"listen",value:function(e){var t=this;Ne(e,"click",(function(e){t.onClick(e)}))}},{key:"isOpen",value:function(){return!!be(Xt)[0]}}])}(),Qt=function(){return o((function e(t){n(this,e),this.options=t,this.isActive=this.setActive();var i,o,a=(i=t.lang,{brandLink:"https://www.iubenda.com/"+Mt(o=null!=i?i:"en")+"/cookie-solution?utm_source=cs&utm_medium=web&utm_campaign=csbr2",brandLinkTitle:At[o].brand.linkTitle});this.link=a.brandLink,this.linkTitle=a.brandLinkTitle}),[{key:"setActive",value:function(){var e=this.options.cookieSolutionWhiteLabeling;return!(!this.options.banner.theme&&!1===e)&&!(e>=1)}},{key:"getBadgeButton",value:function(){var e=document.createElement("a");e.className="iubenda-cs-brand-badge",e.href=this.link,e.setAttribute("target","_blank"),e.setAttribute("rel","noopener"),e.setAttribute("title",this.linkTitle),e.innerHTML="<span>Created with <span>iubenda</span></span>";var t=document.createElement("div");return t.className="iubenda-cs-brand-badge-outer",t.appendChild(e),t}},{key:"getBadgeText",value:function(){var e=document.createElement("div");return e.className="iubenda-cs-brand-badge-text",e.innerHTML='Created with\n        <a href="'.concat(this.link,'" target="_blank" rel="noopener" title="').concat(this.linkTitle,'">\n            iubenda\n        </a>'),e}},{key:"getBadge",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isActive)return e?"":null;var t="inside",n=null;return 0===this.options.cookieSolutionWhiteLabeling||!1===this.options.cookieSolutionWhiteLabeling?(t="outside",n=this.getBadgeButton()):n=this.getBadgeText(),{position:t,element:e?n.outerHTML:n}}}])}(),Zt=["value"],en=function(){return o((function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(this,e);var a=o.value,r=d(o,Zt);this.options=p({disabled:!1},r),this.label=t,this.callback=i,this.value=a||!1,this.content=document.createElement("div"),this.toggleId=t;var s="iub-toggle-checkbox granular-control-checkbox";o.id&&(this.toggleId="iub-toggle-id-"+o.id,s+=" "+this.toggleId),this.content.className=s,this.createToggle()}),[{key:"createToggle",value:function(){var e=this,t=document.createElement("input");t.id=this.toggleId,t.name=this.label,t.className="style1",t.type="checkbox",t.checked=this.value,t.value=this.value,t.disabled=this.options.disabled,this.options.disabled&&this.content.classList.add("granular-control-checkbox--disabled"),t.addEventListener("change",(function(t){var n=t.target;t.isTrusted&&(n.value=n.checked),e.callback(e.options,ae(n.value))})),this.content.appendChild(t);var n=document.createElement("label");n.setAttribute("for",this.toggleId);var i=document.createElement("span");i.innerHTML=this.label,n.appendChild(i),this.content.appendChild(n)}},{key:"getNode",value:function(){return this.content}}])}(),tn="bannerAcceptClicked",nn={top:["iubenda-cs-default","iubenda-cs-top"],bottom:["iubenda-cs-default","iubenda-cs-bottom"],"float-top-left":["iubenda-cs-default-floating","iubenda-cs-top","iubenda-cs-left"],"float-top-right":["iubenda-cs-default-floating","iubenda-cs-top","iubenda-cs-right"],"float-bottom-left":["iubenda-cs-default-floating","iubenda-cs-bottom","iubenda-cs-left"],"float-bottom-right":["iubenda-cs-default-floating","iubenda-cs-bottom","iubenda-cs-right"],"float-top-center":["iubenda-cs-default-floating","iubenda-cs-top","iubenda-cs-center"],"float-bottom-center":["iubenda-cs-default-floating","iubenda-cs-bottom","iubenda-cs-center"],"float-center":["iubenda-cs-default-floating","iubenda-cs-center"]},on=function(){return o((function e(t,i){n(this,e),this.cookiePolicyHref=i,this.banner=null,this.cs=t,this.popover=new $t(this.cs),this.bannerShown=!1,this.hasTheUserScrolledToBottom=!1,this.numberOfPages=1,this.singlePageHeight=0}),[{key:"shown",get:function(){return this.bannerShown}},{key:"bannerSetup",value:function(){var e,t,n=this,i=this.cs.options,o=At[i.lang].banner,a="",s="";null!=i&&null!==(e=i.banner)&&void 0!==e&&e.linksColor&&(s="style=color:"+i.banner.linksColor.replace(/\s+/g,"")+"!important;"),this.banner=document.createElement("div"),this.banner.id="iubenda-cs-banner",!0===i.banner.applyStyles&&(Et(),i.banner.zIndex&&je(this.banner,"z-index:"+i.banner.zIndex+" !important;"),i.banner.backgroundColor&&(a+="background-color: "+i.banner.backgroundColor+" !important;"),i.banner.textColor&&(a+="color: "+i.banner.textColor+" !important;"),i.banner.fontSize?a+="font-size: "+i.banner.fontSize+" !important;":i.banner.fontSizeBody&&(a+="font-size: "+i.banner.fontSizeBody+" !important;")),i.banner.backgroundColor&&"#000"===i.banner.backgroundColor&&this.banner.classList.add("iubenda-cs-black");var c=nn[i.banner.position];c||(c=nn.top);for(var l=0,u=c.length;l<u;l++)this.banner.classList.add(c[l]);!0===i.banner.backgroundOverlay&&this.banner.classList.add("iubenda-cs-overlay"),i.banner.slideDown&&this.banner.classList.add("iubenda-cs-slidein"),this.banner.setAttribute("role","alertdialog"),this.banner.setAttribute("aria-describedby","iubenda-cs-paragraph");var p=i.banner.content,d=!!p;if(!d&&i.banner.showTitle&&o.title?this.banner.setAttribute("aria-labelledby","iubenda-cs-title"):this.banner.setAttribute("aria-label",o.title),d)Ie(this.banner,"iubenda-cs-no-heading");else{var h=this.getIubendaCsParagraph(o,i),f="";i.banner.showTitle&&o.title&&(f='<h2 id="iubenda-cs-title">'+o.title+"</h2>");var b=(i.banner.closeButtonDisplay||i.banner.continueWithoutAcceptingButtonDisplay)&&!i.banner.logo,g=i.banner.logo,m='iubenda-cs-small-margin-top"';b?m="":g&&(m="iubenda-cs-no-margin-top"),p=f+'<div id="'.concat("iubenda-cs-paragraph",'" class="').concat(m,'">').concat(h,"</div>")}var v=i.banner.cookiePolicyLinkCaption||o.cookie_policy_caption,y="<a ".concat(s,' href="').concat(this.cookiePolicyHref,'"')+' class="iubenda-cs-cookie-policy-lnk" target="_blank" rel="noopener">'+v+"</a>",k="<button "+s+' class="iubenda-advertising-preferences-link">'+o.advertising_preferences_caption+"</button>",C="<button "+s+' class="iubenda-vendor-list-link">'+o.vendor_list_caption+"</button>",w="<a ".concat(s,' href="').concat(this.cs.options.privacyPolicyUrl,'"')+(i.cookiePolicyInOtherWindow?' aria-label="'.concat(o.privacy_policy_caption," - ").concat(o.link_label_new_tab,'"'):"")+' class="iubenda-privacy-policy-link">'+o.privacy_policy_caption+"</a>",P="<button "+s+' class="iubenda-ccpa-opt-out iubenda-do-not-sell-link">'+o.do_not_sell_caption+"</button>";p=(p=(p=(p=(p=(p=(p=p.replace("%{total_number_of_ads_vendors}",(null===(t=this.cs.options.tcfVendors)||void 0===t?void 0:t.length)||window._iub.vendorsCountGVL3||0)).replace("%{cookie_policy_link}",y)).replace("%{advertising_preferences_link}",k)).replace("%{vendor_list_link}",C)).replace("%{privacy_policy}",w)).replace("%{do_not_sell}",P)).replace("%{purposes}",(function(){var e;return function(e,t){if(!t)return"";var n=Object.keys(t).filter((function(e){return 1!=+e}));e.enableTcf&&-1===n.indexOf("5")&&n.push("5");return rn(e.lang,n)}(i,null===(e=n.cs.preferenceState.purposes)||void 0===e?void 0:e.data)}));var S=i.banner.html,x="";if(i.banner.logo&&(x='<div class="iubenda-cs-brand"><img src="'+i.banner.logo+'" alt="logo" /></div>',Ie(this.banner,"iubenda-cs-branded")),!i.banner.continueWithoutAcceptingButtonDisplay&&i.banner.closeButtonDisplay&&Ie(this.banner,"iubenda-cs-padded"),null===S){var A=new Qt(i).getBadge(!0),_=A?" iubenda-cs-themed":"";this.banner.innerHTML='<div class="iubenda-cs-container'+_+'"><div class="iubenda-cs-content" style="'+a+'"><div class="iubenda-cs-rationale">'+x+function(e){if(e.banner.continueWithoutAcceptingButtonDisplay)return'<button\n      class="iubenda-cs-cwa-button"\n      tabindex="0"\n      role="button"\n      aria-pressed="false"\n      '.concat(sn(),">").concat(e.banner.continueWithoutAcceptingButtonCaption,"</button>");var t=Ee({display:e.banner.closeButtonDisplay?"":"none"});return'<button\n      type="button"\n      class="iubenda-cs-close-btn"\n      tabindex="0"\n      role="button"\n      aria-pressed="false"\n      '.concat(sn(),"\n      ").concat(t,">").concat(e.banner.closeButtonCaption,"</button>")}(i)+'<div class="iubenda-banner-content iubenda-custom-content'+(i.banner.closeButtonDisplay?" iubenda-banner-content-padded":"")+'" role="document">'+p+"</div>"+(i.banner.showPurposesToggles?'<div class="iubenda-granular-controls-container"></div>':"")+'<div class="iubenda-cs-counter"></div>'+function(e,t){var n=function(e,t){if(!e.banner.customizeButtonDisplay)return"";return'<button class="iubenda-cs-customize-btn" tabindex="0" role="button" aria-pressed="false">'+(e.banner.customizeButtonCaption||pe(t.customize_button_caption,e))+"</button>"}(e,t),i="iubenda-cs-opt-group-custom";e.banner.showPurposesToggles&&(i+=" iubenda-cs-opt-group-granular");n&&(n='<div class="'+i+'">'+n+"</div>");var o=function(e,t){if(!e.banner.rejectButtonDisplay)return"";return'<button class="iubenda-cs-reject-btn iubenda-cs-btn-primary" tabindex="0" role="button" aria-pressed="false">'+(e.banner.rejectButtonCaption||t.reject_button_caption)+"</button>"}(e,t)+function(e,t){var n=e.banner.acceptButtonCaption||t.accept_button_caption;if(!e.banner.acceptButtonDisplay)return"";return'<button class="iubenda-cs-accept-btn iubenda-cs-btn-primary" tabindex="0" role="button" aria-pressed="false">'+n+"</button>"}(e,t);o&&(o='<div class="iubenda-cs-opt-group-consent">'+o+"</div>");var a=n+o;if(!a)return"";return'<div class="iubenda-cs-opt-group"'+Ee({color:e.banner.backgroundColor})+">"+a+"</div>"}(i,o)+("inside"===(null==A?void 0:A.position)?A.element:"")+"</div></div>"+("outside"===(null==A?void 0:A.position)?A.element:"")+"</div>",function(e,t){var n=e.options;if(!n.banner.showPurposesToggles||!t)return;var i=0,o=function(t){if(!t.preferenceState.getProperty("granularOptionsActive")){e.preferenceState.processState({granularOptionsActive:!0});var n=document.querySelector("#iubenda-cs-banner .iubenda-cs-accept-btn"),i=document.querySelector("#iubenda-cs-banner .iubenda-cs-reject-btn");n&&(n.innerHTML=Ut("footer.btnCaption")),i&&i.style.setProperty("display","none","important")}},a=e.preferenceState.getFullState();if(Object.keys(a.purposes).forEach((function(n){if(void 0===a.tcfv2||"5"!==n){i++;var s=a.purposes[n],c=Ut("per_purpose.purposes.".concat(n,".name")),l=function(t,n){var i={purposes:r({},t.id,n)};e.preferenceState.processState(i),o(e)},u={value:s.value||!1,disabled:!!s.blocked,id:n},p=new en(c,l,u);t.appendChild(p.getNode())}})),void 0!==a.tcfv2){i++;var s=Ut("per_purpose.purposes.5.name"),c=new en(s,(function(t,i){var s=r({},t.id,i);a.purposes&&a.purposes[5]&&"boolean"==typeof i&&(s.purposes={5:i}),n.enableTcf&&(s.tcfv2={all:i},n.googleAdditionalConsentMode&&(s.gac={all:i})),e.preferenceState.processState(s),o(e)}),{value:!1,id:"mkt"});t.appendChild(c.getNode())}i%2||t.classList.add("grid")}(this.cs,this.banner.querySelector(".iubenda-granular-controls-container"))}else-1!==S.indexOf("%{banner_content}")&&(S=S.replace("%{banner_content}",p)),this.banner.innerHTML=S;if(d){var O=be("iubenda-banner-content",this.banner)[0];O&&Ie(O,"iubenda-custom-content")}var I=!1,B=null,L=0,T="iubenda-cs-fix-height",D=function(){if(n.banner){var e=window.innerHeight;I&&e>L&&(n.banner.classList.remove(T),B.style.removeProperty("height"),I=!1);var t=B.clientHeight,o=B.querySelector(".iubenda-cs-brand-badge"),a=0;if(o){var r=getComputedStyle(o);t+=a=o.offsetHeight+parseInt(r.marginTop,10)+parseInt(r.marginBottom,10)}L=e,t>=e&&!I?(n.banner.classList.add(T),a&&B.style.setProperty("height","calc(100% - ".concat(a,"px)"),"important"),I=!0):t<e&&I&&(n.banner.classList.remove(T),B.style.removeProperty("height"),I=!1),n.handleScrollable(i)}};i.banner.prependOnBody?document.body.insertBefore(this.banner,document.body.firstChild):document.body.appendChild(this.banner),i.banner.backgroundOverlay&&yt("#iubenda-cs-banner"),this.setBannerElements(),Ne(this.banner,"click",(function(e){n.cs.ui.emit("banner-click",e)}),!1),this.popover.listen(this.banner),this.destroyBanner=function(){Re(window,"resize",D)},setTimeout((function(){var e=n.banner;e&&(e.classList.add("iubenda-cs-visible"),n.bannerShown=!0,(B=be("iubenda-cs-container",e)[0])&&(D(),n.handleButtonHoverAndFocus(),Ne(window,"resize",D)),n.handleScrollable(i),setTimeout((function(){n.cs.ui.emit("banner-shown")}),100))}),10),Ft(i)}},{key:"getIubendaCsParagraph",value:function(e,t){return t.dynamicBannerText&&this.isDynamicBannerTextApplicable()?e.dynamic.paragraph_1||e.dynamic.paragraph_2?this.createLegacyDynamicBannerText(e):this.createDynamicBannerText(e):e.paragraph_1+e.paragraph_2}},{key:"handleScrollable",value:function(e){return e.banner.applyStyles?e.banner.html?this.handleBannerNotScrollable(e):this.isBannerScrollable.call(this)?(!this.closeButton||e.banner.acceptButtonDisplay||e.banner.closeButtonDisplay||this.closeButton.style.removeProperty("display"),this.banner.classList.add("iubenda-cs-scrollable"),this.updateNumberOfPages.call(this),null):this.handleBannerNotScrollable(e):this.handleBannerNotScrollable(e)}},{key:"handleBannerNotScrollable",value:function(e){this.banner.classList.remove("iubenda-cs-scrollable"),e.banner.html?this.updateHasTheUserScrolledToBottom():this.hidePageCounter(e),e.banner.acceptButtonDisplay||e.banner.closeButtonDisplay||(this.closeButton.style.display="none")}},{key:"setBannerElements",value:function(){this.bannerContent=this.banner.querySelector(".iubenda-banner-content"),this.bannerContainer=this.banner.querySelector(".iubenda-cs-content"),this.bannerTitle=this.banner.querySelector("#iubenda-cs-title"),this.pageCounter=this.banner.querySelector(".iubenda-cs-counter"),this.buttonsGroup=this.banner.querySelector(".iubenda-cs-opt-group"),this.acceptButton=this.banner.querySelector(".iubenda-cs-accept-btn.iubenda-cs-btn-primary"),this.closeButton=this.banner.querySelector(".iubenda-cs-close-btn")}},{key:"handleButtonHoverAndFocus",value:function(){this.bannerBtns=this.bannerBtns||this.banner.querySelectorAll(".iubenda-cs-opt-group button");var e,t=a(this.bannerBtns);try{for(t.s();!(e=t.n()).done;){var n=e.value;cn(n),ln(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"showBanner",value:function(){var e=this;this.cs.ui.on("banner-shown",(function(){e.cs.fireCallback("onBannerShown"),e.cs.options.banner.backgroundOverlay&&e.cs.ui.disablePageScrolling("banner")})),this.cs.ui.on("banner-click",(function(t){setTimeout((function(){e.bannerClicked(t)}),0)})),this.bannerSetup(),this.cs.options.banner.html||this.bindBannerContentScroll()}},{key:"bindBannerContentScroll",value:function(){var e=this,t=null;Ne(this.bannerContent,"scroll",(function(){null!==t&&clearTimeout(t),t=setTimeout((function(){e.isBannerScrolledToTop()&&e.hidePageCounter(),e.updateNumberOfPages()}),150)}),{passive:!0})}},{key:"isBannerScrolledToTop",value:function(){return 0===this.bannerContent.scrollTop}},{key:"bannerClicked",value:function(e){this.cs.debug("banner clicked");for(var t=e.target;t&&t instanceof HTMLElement;){if(Le(t,"iubenda-cs-accept-btn")){this.bannerAcceptBtnClicked(e);break}if(Le(t,"iubenda-cs-customize-btn")){(this.cs.options.perPurposeConsent||this.cs.options.usprApplies)&&(this.cs.ui.mustShowPerPurposeView=!0),!this.cs.options.enableTcf||this.cs.options.perPurposeConsent||this.cs.options.usprApplies||this.cs.ui.showCP(!1,!0),this.cs.ui.bannerCookiePolicyClicked({event:e});break}if(Le(t,"iubenda-cs-reject-btn")){this.cs.ui.onRejectButtonClick(e);break}if(t===e.currentTarget)break;t=t.parentNode}e.stopPropagation()}},{key:"bannerAcceptBtnClicked",value:function(e){this.cs.debug("banner Accept clicked"),this.scrollBannerIfNeeded.call(this,this.acceptConsent.bind(this),e)}},{key:"scrollBannerIfNeeded",value:function(e,t,n){null==t||t.stopPropagation(),this.hasTheUserReadTheFullBanner()?e(n):this.scrollBannerByOnePage(t)}},{key:"scrollBannerByOnePage",value:function(e){this.cs.debug("cannot give consent while banner text isn't scrolled to bottom"),this.cs.debug("scrolling banner by one page..."),this.cs.debug("displaying page counter on the banner..."),this.pageCounter.style.display="block",this.calculateSinglePageHeight(),this.updateNumberOfPages(),e.target.classList.remove("hover"),e.target.classList.remove("focus"),this.bannerContent&&(this.bannerContent.scrollTop+=this.singlePageHeight)}},{key:"acceptConsent",value:function(){if(this.cs.options.banner.showPurposesToggles&&this.cs.preferenceState.getProperty("granularOptionsActive")){var e=p({consent:!0,ccpa:!0,uspr:{sd5:!0,sd8:!0,sd9:!0}},this.cs.preferenceState.getState());this.cs.preferences.store(e,tn)}else this.cs.ui.acceptAllPreferenceStatePurposes(),this.cs.acceptAll(tn);this.cs.ui.consentAccepted=!0,this.removeBanner()}},{key:"isDynamicBannerTextApplicable",value:function(){return["bg","ca","cs","da","de","el","en","en-GB","es","fr","it","nl","no","pl","pt","pt-BR","ro","ru","sv","et","fi","hr","hu","lt","lv","sk","sl"].indexOf(this.cs.options.lang)>-1}},{key:"createLegacyDynamicBannerText",value:function(e){var t=e.dynamic,n=this.cs.options.banner.applyStyles,i=t.paragraph_1?pe(t.paragraph_1,this.cs.options):"",o=t.paragraph_2?pe(function(e){if(!(e.by_scrolling||e.by_clicking_on_links||e.by_browsing))return null==e?void 0:e.paragraph_2;return"[if gdprApplies][if not banner.acceptButtonDisplay or not banner.rejectButtonDisplay]\n".concat(e.paragraph_2,".[/if][/if]")}(t),this.cs.options):"";return an(i,n)+an(o,n)}},{key:"createDynamicBannerText",value:function(e){var t=e.dynamic,n=this.cs.options.banner.applyStyles;return an(pe(t.body,this.cs.options),n)}},{key:"getBanner",value:function(){return this.banner}},{key:"isBannerScrolledToBottom",value:function(){if(!this.banner)return!0;if(!this.bannerContent)return!0;var e=this.bannerContent.scrollHeight,t=this.bannerContent.scrollTop+this.bannerContent.clientHeight,n=Math.abs(e-t);return this.bannerContent&&n<=10}},{key:"isBannerScrollable",value:function(){return!!this.calculateSinglePageHeight()&&this.bannerContent.scrollHeight>this.singlePageHeight}},{key:"calculateSinglePageHeight",value:function(){if(!this.bannerContainer||!this.bannerContent)return 0;var e=parseInt(window.getComputedStyle(this.bannerContainer).paddingTop[0]),t=parseInt(window.getComputedStyle(this.bannerContainer).paddingBottom[0])+e,n=this.bannerContainer.scrollHeight;return n-=t,this.buttonsGroup&&(n-=this.buttonsGroup.scrollHeight),this.bannerTitle&&(n-=this.bannerTitle.scrollHeight),"none"!==this.pageCounter.style.display&&(n-=parseInt(window.getComputedStyle(this.pageCounter).marginTop[0]),n-=this.pageCounter.scrollHeight),this.singlePageHeight=n,n}},{key:"updateNumberOfPages",value:function(){var e=Math.ceil(this.bannerContent.scrollHeight/this.singlePageHeight),t=Math.ceil(this.bannerContent.scrollTop/this.singlePageHeight);this.numberOfPages=e,this.updateHasTheUserScrolledToBottom(),this.pageCounter.innerText=Ut("banner.page_counter_caption")+" "+t+"/"+e}},{key:"updateHasTheUserScrolledToBottom",value:function(){this.isBannerScrolledToBottom()&&(this.hasTheUserScrolledToBottom=!0)}},{key:"removeBanner",value:function(){var e;this.banner&&(this.cs.debug("closing banner ..."),ut&&(ut=!1,Re(document.body,"focusin",bt),Re(window,"keydown",gt),Re(document,"mousedown",mt),Re(document,"mouseup",vt)),lt=null,ke((e="iubenda-cs-banner",document.getElementById(e))),this.cs.ui.restorePageScrolling("banner"),this.cs.fireCallback("onBannerClosed"),"function"==typeof this.destroyBanner&&this.destroyBanner(),this.banner=null,this.cs.ui.previousTCFPreferences=null)}},{key:"isVisible",value:function(){return!!this.banner}},{key:"hidePageCounter",value:function(){this.pageCounter.style.display="none",this.calculateSinglePageHeight(),this.updateNumberOfPages()}},{key:"hasTheUserReadTheFullBanner",value:function(){return this.hasTheUserScrolledToBottom}}])}();function an(e,t){return e?e.split("\n").map((function(e){return t?'<p class="iub-p">'+e+"</p>":e})).join(t?"":"<br/>"):""}function rn(e,t){var n=Ut("banner.dynamic.and");return"es"===e&&(n=function(e){return"i"===Ut("per_purpose.purposes."+e[e.length-1]+".bannerName")[0]?"e":"y"}(t)),ue(function(e){return e.map((function(e){return function(e){var t=Ut("banner.dynamic.startQuote"),n=Ut("banner.dynamic.endQuote");return isNaN(e)?t+Ut("uspr.purposes."+e)+n:Ut("per_purpose.purposes."+e+".bannerName")}(e)}))}(t).join("[or] "),n)}function sn(){var e="banner.close_button_label",t=Ut(e);return t===e?"":'aria-label="'.concat(t,'"')}function cn(e){e.addEventListener("mouseenter",(function(){e.classList.add("hover")})),e.addEventListener("mouseleave",(function(){e.classList.remove("hover")}))}function ln(e){e.addEventListener("focus",(function(){e.classList.add("focus")})),e.addEventListener("blur",(function(){e.classList.remove("focus")}))}var un=["top-left","top-right","bottom-left","bottom-right","center-left","center-right"],pn=[].concat(un,["inline-center","inline-left","inline-right"]),dn="bottom-right",hn=function(e){function i(e,o){var a;return n(this,i),(a=t(this,i)).link=e,a.html='\n      <a\n        href="'.concat(a.link,'"\n        class="iubenda-tp-alert-btn iubenda-tp-btn--warning"\n        target="_blank"\n        data-tp-icon="data-tp-icon"\n        data-tp-float="').concat(a.getPosition(o),'"\n      >\n      </a>\n    '),a.content=document.createElement("div"),a.render(),a}return c(i,e),o(i,[{key:"render",value:function(){this.content.className="iubenda-tp-btn-container",this.content.style.position="relative",this.content.innerHTML=this.html}},{key:"getNode",value:function(){return this.content}},{key:"ensureVisibility",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e4,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=null,i=this,o=i.getNode();setTimeout((function(){null!==n&&(clearInterval(n),n=null)}),e),n=setInterval((function(){null!==o&&document.body.children[document.body.children.length-1]!==o&&o.parentElement&&(o.parentElement.removeChild(o),document.body.appendChild(i.getNode()))}),t)}}])}(function(){return o((function e(){n(this,e)}),[{key:"getPosition",value:function(e){return-1!==un.indexOf(e)?e:dn}}])}()),fn=function(e,t,n){var i="?",o=e;/\?.+/.test(e)?i="&":o=o.replace("?","");var a=o.split("#"),r="";return a[1]&&(r="#"+a[1]),o.split("#")[0]+i+t+"="+n+r},bn=function(e,t,n){return e+(-1!==e.indexOf("?")?"&":"?")+t+"="+n},gn=function(e){return/\#[^\?]+/.test(e)},mn=new K,vn="rejectButtonClick",yn="bannerXClose";function kn(){var e={};this.cs.options.ccpaApplies&&(e.ccpa=!0),this.cs.options.usprApplies&&(e.consent=!0,e.uspr={sd5:!0,sd8:!0,sd9:!0}),(this.cs.options.gdprApplies||this.cs.options.lgpdApplies)&&(e.consent=!0,e.purposes={all:!0},e.tcfv2={all:!0},e.gac={all:!0}),this.cs.preferences.store(e,yn),this.banner.removeBanner()}function Cn(){this.cs.rejectAll(vn),this.consentRejected=!0,this.banner.removeBanner()}var wn=function(){function e(t){n(this,e),st(this),this.cs=t,this.document=document,this.mainC=null,this.overlay=null,this.CPiFrame=null,this.isMobile=mn.isMobile(),this.consentRejected=!1,this.consentAccepted=!1,this.freezed=!1,this.showingCookiePolicy=!1,this.iFrameCloseBtnUrl="http://localhost.cs.origin:3010/cookie_solution/close.png",this.documentHead=this.document.head||this.document.getElementsByTagName("head")[0],this.pageCounter,this.buttonsGroup,this.bannerTitle,this.bannerContainer,this.acceptButton,this.bannerBtns,this.originalHtmlOverflow=[],this.WIDGET_PER_PURPOSE="per-purpose",this.WIDGET_TCF="tcf",this.WIDGET_POLICY="policy",this.popover=new $t(this.cs);var i=this.getCookiePolicyHref();this.banner=new on(t,i)}return o(e,[{key:"start",value:function(e,t){this.cs.debug("starting UI (if needed) ..."),this.setCmpWidget(e,t),this.cs.shouldShowBanner()&&this.banner.showBanner(),this.bindButtons(),this.cs.debug("invoking callback.onReady (after starting UI) ..."),this.cs.csReady()}},{key:"setCmpWidget",value:function(e,t){this.cs.options.enableTcf?this.cmpWidget||this.createCmp(e,t):this.cmpWidget=null}},{key:"bindButtons",value:function(){this.cs.debug("binding button of cookie policy link and close banner ..."),this.bindOpenCPBtns(),this.bindCloseBannerBtns(),this.bindOpenCmpBtns(this.banner.getBanner()),this.bindCcpaBtns(),this.bindVendorListBtns()}},{key:"bindOpenCPBtns",value:function(){var e=this;be("iubenda-cs-cookie-policy-lnk").forEach((function(t){Ne(t,"click",(function(t){e.bannerCookiePolicyClicked({event:t,isCookiePolicyLink:!0})}),!0)}))}},{key:"bindCloseBannerBtns",value:function(){var e=this,t=be("iubenda-cs-close-btn"),n=be("iubenda-cs-cwa-button");t.concat(n).forEach((function(t){Ne(t,"click",(function(t){setTimeout((function(){e.bannerCloseBtnClicked(t)}),0)}),!0)}))}},{key:"bindOpenCmpBtns",value:function(e){for(var t=be("iubenda-advertising-preferences-link",e),n=0;n<t.length;n++)Ct(t[n],this);for(var i=be("iubenda-cs-preferences-link",this.banner.getBanner()),o=0;o<i.length;o++)Ht(i[o],this)}},{key:"bindCcpaBtns",value:function(){var e=this.banner.getBanner();if(e)for(var t=e.querySelectorAll(".iubenda-ccpa-opt-out"),n=0;n<t.length;n++)this.cs.handleAskOptOutClick(t[n])}},{key:"showTcfVendors",value:function(){this.showCP(!1,!0,!0)}},{key:"bindVendorListBtns",value:function(){for(var e=this,t=ge(["iubenda-vendor-list-link","iubenda-vendors-list-link"]),n=0;n<t.length;n++)t[n].getAttribute("data-iub-enabled")||(Ne(t[n],"click",(function(t){t.stopPropagation(),t.preventDefault(),setTimeout((function(){e.showTcfVendors()}),0)})),t[n].setAttribute("data-iub-enabled",1))}},{key:"acceptAllPreferenceStatePurposes",value:function(){this.cs.preferenceState.purposes.setPreference({all:!0})}},{key:"createCmp",value:function(e,t){this.cs.createCmpWidget(e,t)}},{key:"scrollBannerByOnePage",value:function(e){var t=this.banner.getBanner();this.cs.debug("cannot give consent while banner text isn't scrolled to bottom"),this.cs.debug("scrolling banner by one page..."),this.cs.debug("displaying page counter on the banner..."),this.banner.pageCounter.style.display="block",t.calculateSinglePageHeight(),this.banner.updateNumberOfPages(),e.target.classList.remove("hover"),e.target.classList.remove("focus"),this.banner.bannerContent&&(this.banner.bannerContent.scrollTop+=this.singlePageHeight)}},{key:"getArrayOfElements",value:function(e){if(e&&"string"==typeof e){var t=function(e){try{return de(e)}catch(e){return[]}}(e);return t.length>0?t:null}return e instanceof HTMLElement?[e]:null}},{key:"openPreferences",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cs.options.perPurposeConsent&&(this.cs.options.gdprApplies||this.cs.options.lgpdApplies||this.cs.options.fadpApplies)||this.cs.options.usprApplies?this.mustShowPerPurposeView=!0:this.cs.options.enableTcf&&(this.mustShowTCFView=!0),this.bannerCookiePolicyClicked(e)}},{key:"checkCPAnotherWindow",value:function(e){return!!this.cs.options.cookiePolicyInOtherWindow&&(!!e||!this.cs.options.usprApplies&&!this.cs.options.perPurposeConsent)}},{key:"bannerCookiePolicyClicked",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event,i=t.isCookiePolicyLink,o=t.acceptPurposes;if(this.cs.debug("banner's cookie policy link clicked"),!this.cs.isCpOpen()){this.cs.options.cookiePolicyInOtherWindow||(this.showingCookiePolicy=!0),n&&(n.preventDefault(),n.stopPropagation());var a=this.checkCPAnotherWindow(i);setTimeout((function(){e.showCP(a,!1,!1,!1,o)}),0)}}},{key:"getSavedPreferences",value:function(){var e=this.cs.getSavedPreferences();if(!e.cmpCookie){var t=this.cs.preferenceState.getProperty("tcfv2");"string"==typeof t&&(e.cmpCookie=t)}if(!e.customPreferences){var n=this.cs.preferenceState.getProperty("gac");"string"==typeof n&&(e.customPreferences={gac:n})}return e}},{key:"preSelectPurposes",value:function(e){var t,n=this;if(!this.cs.options.isRejectionRecoveryDisabled()){var i=null!==(t=null==e?void 0:e.reduce((function(e,t){var i=n.CPiFrame.mainC.querySelector("#purpose-"+t);if(5==t){var o=n.CPiFrame.mainC.querySelector("#iub-checkbox4");i=o.offsetParent?o:i}return!i||i.checked&&!i.classList.contains("half")||e.push({toggle:i,purpose:t}),e}),[]))&&void 0!==t?t:[];if(null!=i&&i.length){var o=i[0].purpose;this.scrollWidgetToPurpose(o,(function(){i.forEach((function(e){var t=e.toggle;t.classList.contains("half")&&t.click(),t.click()}))}))}}}},{key:"createFrameLoadingElements",value:function(){var e=this,t=document.querySelector("#iubenda-iframe");t||((t=document.createElement("div")).id="iubenda-iframe",t.className="iubenda-iframe-visible",t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),this.cs.options.banner.logo&&t.classList.add("iubenda-iframe-branded"),t.onclick=function(t){t.stopPropagation(),e.popover.isOpen()&&e.popover.close()});var n=t.querySelector(".iubenda-iframe-spinner");return n||((n=document.createElement("div")).className="iubenda-iframe-spinner",t.appendChild(n)),{mainC:t,spinner:n}}},{key:"showFrameLoading",value:function(e){!function(){if(!It){var e=document.getElementsByTagName("head")[0];Ve('#iubenda-iframe{background-color:rgba(0,0,0,.8)!important;transition:opacity .4s ease,visibility .4s ease!important;font-size:16px!important;position:fixed!important;z-index:100000000!important;top:0!important;left:0!important;width:100%!important;height:100%!important;border:0!important;margin:0!important;padding:0!important;line-height:1.5!important;align-items:unset!important;flex-wrap:unset!important;align-items:center!important;justify-content:center!important;display:none!important}#iubenda-iframe.iubenda-iframe-visible{display:flex!important}@keyframes iubenda-iframe-spinner{from{transform:rotate(0)}to{transform:rotate(359deg)}}#iubenda-iframe .iubenda-iframe-spinner{position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}#iubenda-iframe .iubenda-iframe-spinner:after{content:""!important;border:solid 2px transparent!important;border-top-color:currentColor!important;border-left-color:currentColor!important;animation:iubenda-iframe-spinner .8s linear infinite!important;width:48px!important;height:48px!important;border-radius:48px!important;display:inline-block!important;vertical-align:middle!important;color:#fff!important}',e),It=!0}}(),document.getElementsByTagName("body")[0].appendChild(e),this.disablePageScrolling("iframe",document),this.hideFloatingPreferencesButton()}},{key:"showCP",value:function(t,n,i,o,a){var r=this,s=this.getCookiePolicyHref();if(o&&(!0===o?s=this.cs.options.privacyPolicyUrl:"uspr"===o&&(s=this.cs.options.privacyPolicyNoticeAtCollectionUrl)),this.popover.close(),this.consentRejected=!1,this.consentAccepted=!1,t)window.open(s,"_blank");else{this.secondLayerScript||(e.prepare2ndLayerDeps(),this.secondLayerScript=ye("https://cdn.iubenda.com/cookie_solution/iubenda_cs/1.66.1/second_layer-".concat(this.cs.options.lang,".js")),this.secondLayerScript.setAttribute("charset","UTF-8"),document.getElementsByTagName("head")[0].appendChild(this.secondLayerScript));var c=this.createFrameLoadingElements(),l=c.mainC,u=c.spinner;this.showFrameLoading(l),this.cs.setCpOpen(!0);var p=function(){r.secondLayerScriptLoaded=!0,r.showCPLayer2(window._iub.IubendaFrame,s,n,i,o,a,l,u)};this.secondLayerScriptLoaded?p():this.secondLayerScript.onload=p}}},{key:"showCPLayer2",value:function(e,t,n,i,o,a,r,s){var c=this,l=null,u=Ut("banner.cookie_policy_caption");o&&(u=Ut("banner.privacy_policy_caption")),o||(l={message:"string"==typeof this.cs.options.footer.message?this.cs.options.footer.message:At[this.cs.options.lang].footer.message,btnCaption:"string"==typeof this.cs.options.footer.btnCaption?this.cs.options.footer.btnCaption:At[this.cs.options.lang].footer.btnCaption});var p,d=this.getSavedPreferences();switch(this.cs.options.enableTcf&&this.createCmp(d.cmpCookie,d.customPreferences),(this.cs.options.perPurposeConsent||this.cs.options.usprApplies)&&this.mustShowPerPurposeView?(this.mustShowPerPurposeView=!1,p=this.WIDGET_PER_PURPOSE):this.cs.options.enableTcf&&this.cs.options.gdprApplies&&(this.mustShowTCFView||n)?(this.mustShowTCFView=!1,p=this.WIDGET_TCF):p=this.WIDGET_POLICY,p===this.WIDGET_PER_PURPOSE&&(this.cs.preferenceState.saveState(),this.cs.preferenceState.usPurposes.isActive&&this.cs.preferenceState.usPurposes.savePreferenceState()),p!==this.WIDGET_POLICY&&this.cs.updateGppApi(!0,!1,"initial"),Ft(this.cs.options),this.CPiFrame=new e({cs:this.cs,iFrUrl:t,inParent:!1,straightShow:!0,closeBtnUrl:this.iFrameCloseBtnUrl,mainC:r,spinner:s,embedP:document.getElementsByTagName("body")[0],disableESC:!0,baseZIndex:this.cs.options.banner.zIndex+1,scrolling:null!=this.cs.options.cookiePolicyUrl,showCcpa:o,footer:l,widgetToShow:p,frameTitle:u,lang:this.cs.options.lang,onLoad:function(){var e;c.cs.preferenceState.saveState(),p===c.WIDGET_PER_PURPOSE&&c.preSelectPurposes(a),c.cookiePolicyLoaded(),null!==(e=c.CPiFrame)&&void 0!==e&&null!==(e=e.perPurposeWidget)&&void 0!==e&&e.adsSection&&c.CPiFrame.perPurposeWidget.adsSection.populateByState()},onClose:function(){c.cs.preferenceState.usPurposes.isActive&&c.cs.preferenceState.usPurposes.clearPreferenceState(),c.cs.preferenceState.clearState(),c.cookiePolicyClosed({eventName:"cookiePolicyClosed"})},onReject:function(){c.cookiePolicyClosed({eventName:vn})},onBack:function(){c.cs.options.banner.showPurposesToggles||c.cs.preferenceState.recoveryState(),c.banner.isVisible()||c.cs.updateGppApi(!1,!1,"processed"),c.cookiePolicyClosed({eventName:"backButtonClick"})}},this.cmpWidget),p){case this.WIDGET_PER_PURPOSE:this.CPiFrame.showPerPurposeWidget();break;case this.WIDGET_TCF:this.CPiFrame.showTCFWidget(i);break;default:this.CPiFrame.showPolicy()}}},{key:"scrollWidgetToPurpose",value:function(e,t){var n,i,o,a=this.CPiFrame.mainC.querySelector(".purposes-content"),r=this.CPiFrame.mainC.querySelector(".iub-consent-buttons.purposes-buttons"),s=a.querySelector(".purposes-header"),c=this.CPiFrame.mainC.querySelector("*[class*='purpose-item-".concat(e,"'], *[class*='purposes-item-").concat(e,"']"));a&&c&&r&&s&&(n=a.scrollTop,i=c.offsetTop-r.clientHeight-s.offsetTop-n,o=Date.now(),0===i?t():requestAnimationFrame((function e(){var r=Math.min((Date.now()-o)/250,1);a.scrollTop=n+i*r,1===r?t():requestAnimationFrame(e)})))}},{key:"showCcpaOptOutConfirmBox",value:function(){var e=this;if(!this.cs.state.ccpaOptOutConfirmationOpen){this.cs.state.ccpaOptOutConfirmationOpen=!0;var t=document.createElement("div");t.className="iubenda-alert",t.id="iubenda-alert",t.setAttribute("role","dialog"),t.setAttribute("aria-labelledby","iubenda-alert-dialog-content"),t.setAttribute("aria-modal","true");var n=document.createElement("div");n.className="iubenda-alert-dialog";var i=document.createElement("div");i.className="iubenda-alert-dialog-content",i.id="iubenda-alert-dialog-content",i.innerText=Ut("ccpa.opt_out_prompt");var o=document.createElement("div");o.className="iubenda-alert-dialog-buttons";var a=function(n){yt(),"confirm"==n&&e.cs.preferences.storage.usPrivacy.optOutCcpa(),document.body.removeChild(t),e.cs.state.ccpaOptOutConfirmationOpen=!1},r=document.createElement("button");r.className="iubenda-button-cancel",r.innerText=Ut("ccpa.opt_out_cancel"),r.addEventListener("click",(function(){return a("cancel")}));var s=document.createElement("button");s.className="iubenda-button-confirm",s.innerText=Ut("ccpa.opt_out_confirm"),s.addEventListener("click",(function(){return a("confirm")})),t.appendChild(n),n.appendChild(i),n.appendChild(o),o.appendChild(r),o.appendChild(s),document.body.appendChild(t),yt("#".concat(t.id))}}},{key:"checkUsprFloatingPreferences",value:function(){if(this.cs.options.usprApplies){var e=["#iubenda-cs-banner","#iubenda-iframe"],t=he(".iubenda-cs-preferences-link",e),n=he(".iubenda-cs-uspr-link",e);t.length&&n.length||(void 0===_iub.csConfiguration.floatingPreferencesButtonDisplay&&(this.forcedFloatingPreferencesButtonDisplay=!0),this.cs.options.usprPreferenceWidget={preference:!t.length,uspr:!n.length})}}},{key:"createPreferencesWidgets",value:function(){var t;(this.checkUsprFloatingPreferences(),this.cs.options.enableTcf&&!this.cs.options.skipTcfValidation&&void 0===_iub.csConfiguration.floatingPreferencesButtonDisplay)&&(0===document.querySelectorAll(".iubenda-advertising-preferences-link").length&&(this.forcedFloatingPreferencesButtonDisplay=!0));this.cs.options.fadpApplies&&void 0===_iub.csConfiguration.floatingPreferencesButtonDisplay&&0===document.querySelectorAll(".iubenda-cs-preferences-link").length&&(this.forcedFloatingPreferencesButtonDisplay=!0);var n=[];if(!document.querySelector(".iubenda-uspr-btn,.iub__us-widget")&&this.shouldHaveUsprWidget()){var i=e.parseWidgetPosition({position:this.cs.options.usPreferencesWidgetDisplay,validPositions:pn,defaultPosition:"inline-center"}),o=i.position,a=i.isAnchored,r=this.createUsprPreferenceWidget(this.cs.options.usprPreferenceWidget,o),s=r.widget,c=r.container;n.push({widget:s,container:c,isAnchored:a})}var l=null!==(t=this.forcedFloatingPreferencesButtonDisplay)&&void 0!==t?t:this.cs.options.floatingPreferencesButtonDisplay;if(!document.querySelector(".iubenda-tp-btn.iubenda-cs-preferences-link")&&this.shouldHaveGdprWidget(l)){var u=e.parseWidgetPosition({position:l,validPositions:un,defaultPosition:dn}),p=u.position,d=u.isAnchored,h=e.createGdprPreferenceWidget(this.cs.options,p);n.push({widget:h,container:h,isAnchored:d})}if(0===n.length)return n;!0===this.cs.options.banner.applyStyles&&Et();for(var f=0,b=n;f<b.length;f++){var g=b[f],m=g.widget,v=g.container;g.isAnchored&&m.setAttribute("data-tp-anchored","data-tp-anchored"),this.cs.options.floatingPreferencesButtonRound&&m.setAttribute("data-tp-circle","data-tp-circle"),this.cs.options.floatingPreferencesButtonColor&&m.style.setProperty("background-color",this.cs.options.floatingPreferencesButtonColor,"important"),this.cs.options.floatingPreferencesButtonCaptionColor&&m.style.setProperty("color",this.cs.options.floatingPreferencesButtonCaptionColor,"important"),document.body.appendChild(v)}return n.map((function(e){return e.widget}))}},{key:"shouldHaveUsprWidget",value:function(){return!!this.cs.options.usprApplies&&(!!this.cs.options.usprPreferenceWidget&&(!(!this.cs.isPreferenceExpressed()&&this.cs.state.needsConsent)&&!!this.cs.options.usPreferencesWidgetDisplay))}},{key:"shouldHaveGdprWidget",value:function(e){var t=e&&this.cs.isPreferenceExpressed(),n=this.cs.options.floatingPreferencesButtonForceDisplay;return!!n||!(!t&&!n)&&(!(this.cs.options.showBannerForCH&&!this.cs.consent.timestamp)&&!!(this.cs.options.gdprApplies||this.cs.options.lgpdApplies||this.cs.options.fadpApplies))}},{key:"createUsprPreferenceWidget",value:function(e,t){return"boolean"==typeof t||"string"==typeof t&&0===t.indexOf("inline-")?this.createUsprInlinePreferenceWidget(e,t):this.createUsprFloatingPreferenceWidget(e,t)}},{key:"createUsprInlinePreferenceWidget",value:function(e,t){var n=document.querySelector(".iub__us-widget");switch(n||(n=document.createElement("div")),n.className="iub__us-widget",t){case"inline-left":n.className+=" left";break;case"inline-right":n.className+=" right"}var i="";e.uspr&&(i+='\n        <a class="iub__us-widget__link iubenda-cs-uspr-link" title="'.concat(Ut("uspr.preference_widget.notice_caption"),'">').concat(Ut("uspr.preference_widget.notice_caption"),"</a>\n      ")),e.preference&&(i+='\n        <a class="iub__us-widget__link iub__us-widget__link--privacy-choices iubenda-cs-preferences-link" title="'.concat(Ut("uspr.preference_widget.preference_caption"),'">\n          ').concat(Ut("uspr.preference_widget.preference_caption"),"\n        </a>\n      ")),n.innerHTML='<div class="iub__us-widget__wrapper">'.concat(i,"</div>");var o=n.querySelector(".iubenda-cs-uspr-link");return o&&this.cs.handleUsprPPClick(o),{container:n,widget:n.querySelector(".iub__us-widget__wrapper")}}},{key:"createUsprFloatingPreferenceWidget",value:function(e,t){var n=document.querySelector(".iubenda-uspr-btn");n||(n=document.createElement("div")),n.className="iubenda-uspr-btn",n.setAttribute("data-tp-nostyle",!0);var i="";if(e.preference){i+='\n        <a class="iubenda-cs-preferences-link" title="'.concat(Ut("uspr.preference_widget.preference_caption"),'">\n          <img\n            src="').concat("data:image/svg+xml;charset=UTF-8,%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 30 14' style='enable-background:new 0 0 30 14;' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bfill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;%7d .st1%7bfill-rule:evenodd;clip-rule:evenodd;fill:%230066FF;%7d .st2%7bfill:%23FFFFFF;%7d .st3%7bfill:%230066FF;%7d %3c/style%3e%3cg%3e%3cg id='final---dec.11-2020_1_'%3e%3cg id='_x30_208-our-toggle_2_' transform='translate(-1275.000000, -200.000000)'%3e%3cg id='Final-Copy-2_2_' transform='translate(1275.000000, 200.000000)'%3e%3cpath class='st0' d='M7.4,12.8h6.8l3.1-11.6H7.4C4.2,1.2,1.6,3.8,1.6,7S4.2,12.8,7.4,12.8z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg id='final---dec.11-2020'%3e%3cg id='_x30_208-our-toggle' transform='translate(-1275.000000, -200.000000)'%3e%3cg id='Final-Copy-2' transform='translate(1275.000000, 200.000000)'%3e%3cpath class='st1' d='M22.6,0H7.4c-3.9,0-7,3.1-7,7s3.1,7,7,7h15.2c3.9,0,7-3.1,7-7S26.4,0,22.6,0z M1.6,7c0-3.2,2.6-5.8,5.8-5.8 h9.9l-3.1,11.6H7.4C4.2,12.8,1.6,10.2,1.6,7z'/%3e%3cpath id='x' class='st2' d='M24.6,4c0.2,0.2,0.2,0.6,0,0.8l0,0L22.5,7l2.2,2.2c0.2,0.2,0.2,0.6,0,0.8c-0.2,0.2-0.6,0.2-0.8,0 l0,0l-2.2-2.2L19.5,10c-0.2,0.2-0.6,0.2-0.8,0c-0.2-0.2-0.2-0.6,0-0.8l0,0L20.8,7l-2.2-2.2c-0.2-0.2-0.2-0.6,0-0.8 c0.2-0.2,0.6-0.2,0.8,0l0,0l2.2,2.2L23.8,4C24,3.8,24.4,3.8,24.6,4z'/%3e%3cpath id='y' class='st3' d='M12.7,4.1c0.2,0.2,0.3,0.6,0.1,0.8l0,0L8.6,9.8C8.5,9.9,8.4,10,8.3,10c-0.2,0.1-0.5,0.1-0.7-0.1l0,0 L5.4,7.7c-0.2-0.2-0.2-0.6,0-0.8c0.2-0.2,0.6-0.2,0.8,0l0,0L8,8.6l3.8-4.5C12,3.9,12.4,3.9,12.7,4.1z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e ",'"\n            alt="').concat(Ut("uspr.preference_widget.preference_img_alt"),'"\n          />\n          ').concat(Ut("uspr.preference_widget.preference_caption"),"\n        </a>\n      ")}e.uspr&&(i+='\n        <a class="iubenda-cs-uspr-link" title="'.concat(Ut("uspr.preference_widget.notice_caption"),'">').concat(Ut("uspr.preference_widget.notice_caption"),"</a>\n      ")),n.innerHTML=i;var o=n.querySelector(".iubenda-cs-uspr-link");return o&&this.cs.handleUsprPPClick(o),n.style.setProperty("z-index",e.floatingPreferencesButtonZIndex,"important"),n.setAttribute("data-tp-float",t),{widget:n,container:n}}},{key:"hideFloatingPreferencesButton",value:function(){var e=document.querySelector(".iubenda-tp-btn.iubenda-cs-preferences-link");if(e)e.style.setProperty("display","none","important");else{var t=document.querySelector(".iubenda-uspr-btn");t&&t.style.setProperty("display","none","important")}}},{key:"showFloatingPreferencesButton",value:function(){var e=document.querySelector(".iubenda-tp-btn.iubenda-cs-preferences-link");if(e)e.style.setProperty("display","inline-block","important");else{var t=document.querySelector(".iubenda-uspr-btn");t&&t.style.setProperty("display","inline-flex","important")}}},{key:"generateFloatingPreferencesButton",value:function(){var e=this;_e((function(){var t,n=a(e.createPreferencesWidgets());try{for(n.s();!(t=n.n()).done;){var i=t.value;Ht(i,e)}}catch(e){n.e(e)}finally{n.f()}}),!0)}},{key:"generateWarningButton",value:function(e,t){var n=new hn(e,t,{checkVisibility:!0});document.body.appendChild(n.getNode()),n.ensureVisibility()}},{key:"getCookiePolicyHref",value:function(){return this.cs.options.cookiePolicyUrl||"https://www.iubenda.com/privacy-policy/"+this.cs.options.cookiePolicyId+"/cookie-policy?an=no&s_ck=false&newmarkup=yes"}},{key:"cookiePolicyLoaded",value:function(){this.cs.debug("cookie policy shown"),this.showingCookiePolicy=!0,this.cs.fireCallback("onCookiePolicyShown")}},{key:"registerEvent",value:function(e){switch(e){case"documentClicked":this.consentAccepted=!0;break;case vn:this.consentRejected=!0;break;case"bannerAcceptClicked":case yn:this.consentAccepted=!0}}},{key:"getPreferenceObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};if(this.cmpWidget){var i=this.cmpWidget.getCustomPreferences();n.tcfv2=this.cmpWidget.getPreferenceString()||{},n.gac=i.gac}this.cs.preferenceState.processState(n);var o=this.cs.preferenceState.getState(),a=this.cs.checkConsentGiven(e),r=p(p({consent:a,ccpa:a},o),t);return this.cs.preferenceState.usPurposes.isActive&&(r.uspr=this.cs.preferenceState.usPurposes.getPreferences()),r}},{key:"cookiePolicyClosed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName||"cookiePolicyClosed";if(this.cs.debug("cookie policy closed"),this.showingCookiePolicy=!1,"backButtonClick"!==t&&this.CPiFrame.closureTriggeredByFooterButton){this.registerEvent(t);var n=this.getPreferenceObject(t);this.cs.preferences.store(n,t,!0),this.banner.removeBanner(),this.emit("try-consent-given")}this.cs.setCpOpen(!1)}},{key:"showPPCcpaSection",value:function(e){this.showCP(e,!1,!1,!0)}},{key:"showPPUsprSection",value:function(e){this.showCP(e,!1,!1,"uspr")}},{key:"bannerCloseBtnClicked",value:function(e){this.cs.debug("banner X clicked"),this.cs.options.banner.closeButtonRejects?this.onRejectButtonClick(e):this.banner.scrollBannerIfNeeded(kn.bind(this),e)}},{key:"onRejectButtonClick",value:function(e){this.cs.debug("banner Reject clicked"),this.banner.scrollBannerIfNeeded(Cn.bind(this),e)}},{key:"getViewportSize",value:function(e){var t=e||document;if(this.isMobile){var n=this.inParent?parent.window:window;return{width:n.innerWidth||t.clientWidth,height:n.innerHeight||t.clientHeight}}return{width:Math.max(t.clientWidth||0,window.innerWidth||0),height:Math.max(t.clientHeight||0,window.innerHeight||0)}}},{key:"disablePageScrolling",value:function(e,t){var n=(t||document).getElementsByTagName("html")[0].style,i=this.originalHtmlOverflow[this.originalHtmlOverflow.length-1];i&&i.callerName===e||(this.originalHtmlOverflow.push({callerName:e,general:n.overflow,x:n.overflowX,y:n.overflowY}),n.removeProperty("overflow"),n.overflowX=n.overflowY="hidden")}},{key:"restorePageScrolling",value:function(e,t){var n=this.originalHtmlOverflow[this.originalHtmlOverflow.length-1];if(n&&n.callerName===e){var i=(t||document).getElementsByTagName("html")[0].style;i.overflow=n.general,i.overflowX=n.x,i.overflowY=n.y,this.originalHtmlOverflow.pop()}}},{key:"isOnlyCcpaConsentGiven",value:function(){return!(!this.cs.options.ccpaApplies||this.cs.options.gdprApplies||this.cs.options.lgpdApplies||this.cs.options.showBannerForUS)&&""!==this.cs.usPrivacyCookie}},{key:"getDocHeight",value:function(){var e=window.document;return Math.max(Math.max(e.body.scrollHeight,e.documentElement.scrollHeight),Math.max(e.body.offsetHeight,e.documentElement.offsetHeight),Math.max(e.body.clientHeight,e.documentElement.clientHeight))}},{key:"closeCPiFrame",value:function(){this.CPiFrame&&this.CPiFrame.closeIFrame(!1)}}],[{key:"prepare2ndLayerDeps",value:function(){_iub._2ndLayerDeps={dom:{domAddEventListener:Ne,domRemoveClass:Be,domHasClass:Le,domGetElementsByClassName:be,domAddClass:Ie,domCreateEvent:Te,domRemove:ke,setStyle:je,domText:Fe,domCreate:ve},i18n:{i18nForBanner:At,updateI18nForBanner:_t,setSecondLayerI18n:Ot},brand_badge:{BrandBadge:Qt},browser_detect:{BrowserDetect:K},focus:{setFocusActive:yt},uri:{uriAddParamToUri:fn,uriHasHash:gn},ui_i18n:{csTranslate:Ut,iubendaFrameLink:Gt},logger:{logger:$e}}}},{key:"parseWidgetPosition",value:function(e){var t=e.position,n=e.validPositions,i=e.defaultPosition,o=!1;return"string"==typeof t&&/^anchored\-/.test(t)&&(t=t.replace(/^anchored\-/,""),o=!0),-1===n.indexOf(t)&&(t=i,o=!1),{position:t,isAnchored:o}}},{key:"createGdprPreferenceWidget",value:function(e,t){var n,i=document.createElement("button");return i.className="iubenda-tp-btn iubenda-cs-preferences-link",i.setAttribute("title",Ut("per_purpose.widget_title")),(e.floatingPreferencesButtonIcon||!e.floatingPreferencesButtonCaption||e.floatingPreferencesButtonHover)&&i.setAttribute("data-tp-icon","data-tp-icon"),e.floatingPreferencesButtonHover&&i.setAttribute("data-tp-hover","data-tp-hover"),"string"==typeof e.floatingPreferencesButtonCaption?n=e.floatingPreferencesButtonCaption:!0===e.floatingPreferencesButtonCaption&&(n=Ut("floating_preferences_button.caption")),n&&i.setAttribute("data-tp-label",n),i.style.setProperty("z-index",e.floatingPreferencesButtonZIndex,"important"),i.setAttribute("data-tp-float",t),i}}])}();window._iub.setStyle=je,window._iub.onLoadCall=function(e,t){e.onload=t};var Pn,Sn,xn,An,_n=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;i>=t.length?n&&n():e(t[i],(function(){_n(e,t,n,i+1)}))},On=["all"],In={s:!0,sh:!0,adv:!0,sd5:!1,sd8:!1,sd9:!1},Bn=["s","sh","adv"],Ln=function(e){return e?e.filter((function(e){return void 0!==In[e.toString().trim()]})):[]},Tn=function(){return o((function e(t){n(this,e),this.purposes={},this.preferenceState={},this.GPCSignalPurposes=null,this.userConsentGiven=!1,this.hasSensitiveData=!1,this.isActive=t.options.usprApplies,this.setInitialActivePurposes(t)}),[{key:"setInitialActivePurposes",value:function(e){var t,n=e.options.usprPurposes;this.setActivePurposes(n)||this.setActivePurposes(null===(t=e.remoteConfig)||void 0===t?void 0:t.csPurposes)||(this.setActivePurposes(Bn),!this.hasSensitiveData&&this.isActive&&(this.userConsentGiven=!0))}},{key:"getGPCSignalPurposes",value:function(){if(null!==this.GPCSignalPurposes)return this.GPCSignalPurposes;var e=navigator.globalPrivacyControl;return this.GPCSignalPurposes=e?["s","sh"]:[],this.GPCSignalPurposes}},{key:"validatePurposes",value:function(e){if(!e)return[];var t=e;"string"==typeof e&&(t=e.split(",").map((function(e){return e.trim()})));var n=Object.keys(In);return t&&(n=n.filter((function(e){return t.indexOf(e)>=0}))),n}},{key:"setAllPurposesValue",value:function(e){var t=this;$e.debug("expressing all uspr options ".concat(e));var n=Object.keys(this.purposes),i=this.getGPCSignalPurposes();n.forEach((function(n){i.indexOf(n)<0&&(t.purposes[n]=e)}))}},{key:"setPurposesValue",value:function(e,t){var n={};e.forEach((function(e){n[e]=t})),this.purposes=n}},{key:"setPurposesDefaultValue",value:function(e){var t={},n=this.getGPCSignalPurposes();e.forEach((function(e){var i=In[e];n.indexOf(e)>=0&&(i=!navigator.globalPrivacyControl);t[e]=i})),this.purposes=t}},{key:"setActivePurposes",value:function(e){var t=this.validatePurposes(e);return!!t.length&&(this.setPurposesDefaultValue(t),this.setHasSensitiveData(),!0)}},{key:"setHasSensitiveData",value:function(){var e=Object.keys(this.purposes);this.hasSensitiveData=this.itHasSensitiveData(e)}},{key:"itHasSensitiveData",value:function(e){return e.some((function(e){return/^sd\d+/.test(e)}))}},{key:"setPreferences",value:function(e){var t=this,n=e.all,i=d(e,On),o=Object.keys(i);this.userConsentGiven=!0,"boolean"==typeof n&&this.setPurposesValue(Object.keys(this.purposes),n),o.forEach((function(n){"boolean"==typeof e[n]&&void 0!==t.purposes[n]&&(t.purposes[n]=e[n])}))}},{key:"checkPurposes",value:function(e){var t=this,n=this.validatePurposes(e);if(!n.length)return null;if(!this.userConsentGiven&&this.hasSensitiveData)return!1;var i=n.filter((function(e){return!!t.purposes[e]}));return k(i,n)}},{key:"savePreferenceState",value:function(){this.preferenceState=p({},this.purposes)}},{key:"clearPreferenceState",value:function(){this.preferenceState={}}},{key:"recoveryPreferenceState",value:function(){Object.keys(this.preferenceState).length&&(this.purposes=p({},this.preferenceState),this.clearPreferenceState())}},{key:"getPreferences",value:function(){return this.purposes}},{key:"filterUsprPurpose",value:function(e){return Ln(e)}}])}(),Dn=null!==(Pn=null===(Sn=_iub.csConfiguration)||void 0===Sn?void 0:Sn.rebuildIframe)&&void 0!==Pn?Pn:Xe.rebuildIframe,En=null!==(xn=null===(An=_iub.csConfiguration)||void 0===An?void 0:An.inlineDelay)&&void 0!==xn?xn:Xe.inlineDelay,Fn=["_iub_cs_activate-inline","_iub_cs_activate","_iub_cs_activate_iframe","_iub_cs_activate_notused","_iub_cs_prompt"],Nn="_iub_cs_activate-activated",Rn="_iub_cs_activate-overlay",Vn="_iub_cs_prompt",zn="data-iub-purposes",jn=document.write,Un=document.writeln;function Mn(e,t){var n=t.addRef,i=t.removeRef,o=e.parentNode,a=e.nextSibling,r="",s=o,c=null,l=function(){var e=document.implementation.createHTMLDocument("");return e.open(),e.write("<html><head></head><body>"),e}(),u=Pe(l.body);u.reiterate(),u.next();var p=l.body;function d(e){var t=/(\<[\n\s]*\/[\n\s]*script[\n\s]*>)/gi,d=r+e,h=[];t.lastIndex=r.length;for(var b=t.lastIndex;t.exec(d);){var g=t.lastIndex;h.push({chunk:d.substring(b,g),lastNodeIsScript:!0}),b=g}var m=d.substring(b);m&&h.push({chunk:m,lastNodeIsScript:!1}),h.forEach((function(e){var t=e.chunk,d=e.lastNodeIsScript;r+=t,function(e,t){l.write(e),u.reiterate();var r,d=function(e){for(var t=e;t.childNodes.length;)t=t.childNodes[t.childNodes.length-1];return t}(l.body);if(c&&(c.nodeValue=p.nodeValue),d!==p||t)for(p=d;;){var h=f(u.next().value,2),b=h[0],g=h[1];if(g)if("enter"===b){var m=g.cloneNode(!1);m.nodeType===Node.ELEMENT_NODE&&Se(m)&&((r=m).hasAttribute("type")&&r.setAttribute("data-iub-type",r.getAttribute("type")),r.setAttribute("type","text/plain"),r.setAttribute("data-iub-script","true"));var v=s===o?a:null;if(s.insertBefore(m,v),m.nodeType===Node.ELEMENT_NODE&&(s=m),c=m.nodeType===Node.TEXT_NODE?m:null,!t&&g===d)break}else if(c=null,g.nodeType===Node.ELEMENT_NODE){if(Se(s)){var y=s,k=document.createElement("script");Ae(k,Ae(y)),xe(k),k.appendChild(document.createTextNode(y.innerHTML)),k.hasAttribute("src")&&(k.async=!1,k.addEventListener("load",(function(){return i()})),k.addEventListener("error",(function(){return i()})),n()),s=y.parentNode,y.parentNode.replaceChild(k,y);break}s=s.parentNode}}}(t,d)}))}document.write=d,document.writeln=function(e){return d(e+"\n")}}function Gn(e){return e.getAttribute("data-suppressedsrc")||e.getAttribute("suppressedsrc")||e.getAttribute("src")}function Wn(e,t){return e.getAttribute("data-suppressed"+t)||e.getAttribute("suppressed"+t)||e.getAttribute(t)}function Hn(e,t){if(!e.src)return t(null,e);var n="onreadystatechange",i=e.onload,o=e.onerror,a=e.onreadystatechange;function r(n,r){if(e.onload=i,e.onerror=o,e.onreadystatechange=a,e[n])try{e[n].apply(e,r)}catch(e){console.error(e)}!e.readyState||/^c|loade/.test(e.readyState)?t(null,e):s()}function s(){e.onload=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r("onload",t)},e.onerror=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r("onerror",t)},e.onreadystatechange=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];r(n,t)}}s()}var qn=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Jn=function(e){return new Error("Error on loading tag "+e.nodeName+" with id "+e.id+" and class "+e.className)},Kn=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n&&e.removeEventListener("load",Kn),$n(t,null,e)},Yn=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n&&e.removeEventListener("error",Kn);var i=Jn(e);"function"==typeof t&&t(i,e)},Xn=function(e,t){e.removeAttribute("data-suppressed"+t),e.removeAttribute("suppressed"+t)},$n=function(e,t,n){"function"==typeof e&&e(t,n)},Qn=function(e,t){e.addEventListener("load",Kn.bind(null,e,t)),e.addEventListener("error",Yn.bind(null,e,t)),e.setAttribute("href",Wn(e,"href")),Xn(e,"href"),Ie(e,Nn)},Zn=function(e,t){var n=Gn(e),i=Wn(e,"poster");i&&(e.setAttribute("poster",i),Xn(e,"poster"));var o=function(){$n(t,null,e),e.removeEventListener("loadedmetadata",o)},a=function(){$n(t,Jn(e),e),e.removeEventListener("error",a)};n&&ai(e,t),e.querySelectorAll("source").forEach((function(e){ai(e)})),e.querySelectorAll("track").forEach((function(e){ai(e)})),e.addEventListener("loadedmetadata",o),e.addEventListener("error",a),e.load(),Ie(e,Nn)},ei=Zn;function ti(e,t){var n=Gn(e),i=e.text||e.textContent||e.innerHTML||"";i=i.replace(qn,"");var o=Ae(e);delete o["data-suppressedsrc"],delete o.suppressedsrc,delete o.type,delete o.src,o.async=!1;var a=ve("div");we(e,a),ke(e);var r=function(e,t){var n=document.createElement("iframe");return e&&n.setAttribute("src",e),"string"==typeof t&&(n.text=t),n}(n,i);Ae(r,o),Hn(r,t),Ie(r,Nn),Ce(a,r)}var ni=function(e,t,n){var i,o,a=function(){s+=1},r=function(){(s-=1)<=0&&(document.write=jn,document.writeln=Un,o&&$e.error("Snippet activation failed",o,i||e),t&&t(!o&&i),t=c=e=null)},s=0;a(),Mn(e,{addRef:a,removeRef:r});var c=function(e){return!!e.className.match(/\b_iub_cs_activate-inline\b/)}(e)?En:0;n((function(e,t){setTimeout((function(){o=e,i=t,r()}),c)}))},ii=function(e,t){var n=e.getAttribute("data-iub-cs-wait-for");if(n)var i=setInterval((function(){(function(e){try{return eval.call(window,e)}catch(e){return!1}})(n)&&(clearInterval(i),t())}),100);else t()},oi=function(e,t){e[t]=Wn(e,t),e.removeAttribute("suppressed"+t),e.removeAttribute("data-suppressed"+t)},ai=function(e,t){oi(e,"src"),e.removeAttribute("type"),$n(t,null,e)},ri=function(e,t){oi(e,"srcset"),$n(t,null,e)},si=function(e,t){try{fe(e,"script")?function(e,t){var n=Gn(e),i=e.text||e.textContent||e.innerHTML||"";i=i.replace(qn,"");var o=Ae(e),a=o.suppressedtype||o["data-iub-type"]||"text/javascript";delete o["data-suppressedsrc"],delete o.suppressedsrc,delete o.type,delete o.src,delete o.suppressedtype,delete o["data-iub-type"],o.async=!1;var r=ye(n,i);if(r.setAttribute("type",a),e.nonce&&(r.nonce=e.nonce),Ae(r,o),Ie(r,Nn),Hn(r,t),me(document,e)){var s=ve("div");we(e,s),ke(e),Ce(s,r)}else document.body.appendChild(r)}(e,t):fe(e,"iframe")&&Dn?ti(e,t):fe(e,"link")?Qn(e,t):fe(e,"video")?Zn(e,t):fe(e,"audio")?ei(e,t):fe(e,"object")?function(e,t){var n=Wn(e,"data");n?(e.setAttribute("data",n),Xn(e,"data"),$n(t,null,e)):$n(t,Jn(e),e),Ie(e,Nn)}(e,t):fe(e,"picture")?function(e,t){var n=e.querySelector("img");if(n){var i=Gn(n);n.setAttribute("src",i),Xn(n,"src")}e.querySelectorAll("source").forEach((function(e){ri(e)})),$n(t,null,e),Ie(e,Nn)}(e,t):e.getAttribute("suppressedcontent")?function(e,t){var n=Ae(e).suppressedcontent;e.innerHTML=n,$n(t,null,e),Ie(e,Nn)}(e,t):(ai(e,t),Ie(e,Nn))}catch(e){t(e)}},ci=0,li=1,ui=2,pi=function(){return o((function e(t){n(this,e),this.cs=t,this.lastActivationParams={},st(this)}),[{key:"purposeIdsForElement",value:function(e,t){var n,i,o=e.getAttribute(zn);return null!==o?(null==t||null===(i=t.purposes)||void 0===i?void 0:i.processPurposesString(o))||[]:this.cs&&null!==(n=this.cs.preferenceState)&&void 0!==n&&n.purposes?this.cs.preferenceState.purposes.activeIds:null!=t&&t.purposes?t.purposes.activeIds:[]}},{key:"hasAllPurposesApproved",value:function(e,t){var n,i=this.purposeIdsForElement(e,t);return!i.length||(null==t||null===(n=t.purposes)||void 0===n?void 0:n.hasApproved(i))}},{key:"activateSnippet",value:function(e,t){var n=this;ni(e,t,(function(t){ii(e,(function(){si(e,(function(e,i){!n.activateSuppressedContent?(n.emit("snippet-activated",i),t(e,i)):n.activateSuppressedContent(e,i,(function(e,i){n.emit("snippet-activated",i),t(e,i)}))}))}))}))}},{key:"activateSuppressedContent",value:function(e,t,n){var i=this;t?!t.getAttribute("suppressedcontent")||e?n(e,t):de("._iub_cs_activate-inline,._iub_cs_activate").forEach((function(e){i.getElementActivationStatus(e,i.lastActivationParams.options,i.lastActivationParams.preference,i.lastActivationParams.isCcpaOptedOut)===li&&si(e,n)})):n(e,t)}},{key:"insertOverlay",value:function(e,t,n,i){var o=this,a=function(e,t){if(null==t||!t.isActive)return[];var n=e.getAttribute(zn);return t.validatePurposes(n)}(n,t.usPurposesPreference),r=this.purposeIdsForElement(n,t.state),s=[].concat(b(a),b(r));if("IFRAME"!==n.nodeName)return n.classList.add(Rn),n.setAttribute("suppressedcontent",n.innerHTML),n.innerHTML=e(this.cs.options.lang,s,!0),n.querySelector(".iubenda-cs__preferences-link").addEventListener("click",(function(){o.cs.api.openPreferences({acceptPurposes:s})})),void i();var c=function(){"about:blank"===n.src&&(n.removeEventListener("load",c),n.contentDocument.open(),n.contentDocument.write(e(o.cs.options.lang,s)),n.contentDocument.close(),n.contentDocument.querySelector(".iubenda-cs__preferences-link").addEventListener("click",(function(){o.cs.api.openPreferences({acceptPurposes:s})})),o.emit("overlay-inserted",n),i())};if("about:blank"!==n.src){if(Dn){var l=document.createElement("iframe");Ae(l,Ae(n)),n.parentNode.replaceChild(l,n),n=l}return n.classList.add(Rn),n.addEventListener("load",c),void(n.src="about:blank")}c()}},{key:"activateSnippets",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this.emit("before-activate-snippets",e),$e.debug("Running activateSnippets on",e.length,"elems"),_n(this.activateSnippet.bind(this),e,t)}},{key:"insertOverlays",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};e?($e.debug("Running insertOverlays on",n.length,"elems"),_n(this.insertOverlay.bind(this,e,t),n,i)):i()}},{key:"activateAllSnippets",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;this.lastActivationParams={options:n,preference:i,isCcpaOptedOut:o},$e.debug("Running activateAllSnippets");var a=ge(Fn),r=[],s=[],c=[],l=n.promptToAcceptOnBlockedElements&&(n.perPurposeConsent||n.usprApplies);a.forEach((function(e){var a=t.getElementActivationStatus(e,n,i,o);a!==li?a===ui&&!e.classList.contains(Rn)&&l&&("IFRAME"===e.nodeName?s.push(e):e.classList.contains(Vn)&&c.push(e)):r.push(e)}));var u=function(e,t,i){return i&&Nt(),n.renderOverlay(e,t,{styleOptions:n.banner},i)},p=n.renderOverlay?u:null;this.activateSnippets(r,(function(){var n=[].concat(s,c);t.insertOverlays(p,i,n,(function(){$e.debug("activateAllSnippets done, calling done callback..."),t.emit("all-snippets-activated"),e&&e()}))}))}},{key:"activateOnDomReady",value:function(e,t,n,i){var o=this;_e((function(){o.activateAllSnippets(e,t,n,i)}),!0)}},{key:"hasAllUSPurposeApproved",value:function(e,t){var n=e.getAttribute(zn);return null!=t&&t.isActive&&n?t.checkPurposes(n):null}},{key:"hasOnlyUSPurposes",value:function(e){var t=e.getAttribute(zn);if(!t)return null;var n=t.split(",").map((function(e){return e.trim()}));return k(n,Ln(n))}},{key:"getElementActivationStatus",value:function(e,t,n,i){if(Le(e,Nn))return ci;if(this.isNecessaryPurpose(e))return li;if(i&&this.shouldElementBeBlockedForCcpa(e))return ui;if(!1===this.hasAllUSPurposeApproved(e,n.usPurposesPreference))return ui;if(!1===t.gdprApplies&&!1===t.lgpdApplies&&!1===t.fadpApplies)return li;var o=this.hasAllPurposesApproved(e,n.state);if(t.perPurposeConsent&&!o)return ui;var a=this.hasOnlyUSPurposes(e);return t.perPurposeConsent||n.consent||a?!1===this.purposesPreferenceIsValid(e,n.state,t)&&!a?ui:li:ui}},{key:"shouldElementBeBlockedForCcpa",value:function(e){var t=e.getAttribute("data-iub-blockifccpaoptout");return null!==t&&"false"!==t.toLowerCase()}},{key:"purposesPreferenceIsValid",value:function(e,t,n){if(!n.perPurposeConsent)return null;if(!this.purposeIdsForElement(e,t).length||null==t||!t.purposes)return null;var i=t.purposes.processPurposesString(n.purposes);return t.purposes.hasExpressed(i)}},{key:"isNecessaryPurpose",value:function(e){return 1===Number(e.getAttribute(zn))||"neccessary"===e.getAttribute(zn)}}])}(),di=function(e){var t=new Date(e);return Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())};function hi(e){return function(e){for(var t=atob(e),n=new Array(8*t.length),i=0;i<t.length;i++)for(var o=t.charCodeAt(i),a=7;a>=0;a--){var r=o&1<<a?1:0;n[8*i+(7-a)]=r}return n}(function(e){var t=e.split(".")[0].replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Exception("Illegal base64url string!")}return t}(e))}function fi(e){return parseInt(e.join(""),2)}function bi(e){return 100*fi(e)}function gi(e){var t=e?hi(e):[];return{getTcfVersion:function(){return fi(t.slice(0,6))},getPurposeOneTreatment:function(){return fi(t.slice(200,201))},getIsServiceSpecific:function(){return fi(t.slice(138,139))},getVendorListVersion:function(){return fi(t.slice(120,132))},getLastUpdate:function(){return bi(t.slice(42,78))},getCreationDate:function(){return bi(t.slice(7,42))}}}function mi(e,t,n,i){var o=i,a=n;"function"==typeof a&&(o=a,a={}),o=o||function(){};var r,s=((a=a||{}).method||"GET").toUpperCase(),c=!1!==a.async,l=a.xhr||new XMLHttpRequest,u=a.headers||{};"GET"!==s&&"form"!==a.type||(r=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}(t));var p,d=e;return"GET"===s&&(d+=r.length?"?"+r:""),l.open(s,d,c),l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status||304===l.status){var e=(l.getResponseHeader("Content-Type")||"").match(/^application\/json\s*(;|$)/);o(null,e?JSON.parse(l.responseText||""):l.responseText)}else o(l)},"GET"!==s&&("json"===a.type?(l.setRequestHeader("Content-Type","application/json"),p=JSON.stringify(t)):"form"===a.type?(l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),p=r):p=""+t),Object.keys(u).forEach((function(e){l.setRequestHeader(e,u[e])})),l.send(p),l}var vi=function(){return o((function e(t){var i;n(this,e),this.cs=t,this.browserDetect=new K,this.settings={inDelay:100,influx:{serverUrl:"https://idb.iubenda.com",dbName:"hits1"}};var o=!0;!0===(null===(i=this.cs.state)||void 0===i?void 0:i.fromSDK)&&(o=!this.cs.options.isUsingNewPricing()),this.state={enabled:o}}),[{key:"start",value:function(e){var t=this;setTimeout((function(){t.track("pageview",{e_c:t.cs.options.cookiePolicyId,e_a:e?"page_view_consent":"page_view_no_consent"})}),this.settings.inDelay)}},{key:"track",value:function(e,t){var n=this;if(this.unsupported()||!this.state.enabled)return!0;try{var i="hits,cp="+t.e_c;"pageview"===e?i+=this.addPriorConsentValue(t.e_a)+",sf=1":"consent_given"===e&&(i+=",cg=1"+this.addPerPurposeAnalyticsToString()+","+this.addConsentTypeTag(t.e_n)+"=1"),i+=" value=1",mi(this.settings.influx.serverUrl+"/csdata?db="+this.settings.influx.dbName,i,{method:"POST",async:!0},(function(e,t){n.cs.debug(e||t)}))}catch(n){this.cs.debug("Exception while hitting (I) for "+e+", parameters: (see below), exception : "+(n.message||n)),this.cs.debug(t)}return!1}},{key:"unsupported",value:function(){return"Explorer"===this.browserDetect.browser&&this.browserDetect.version<10||(!!this.browserDetect.isBotAndShouldSkipBots()||!navigator.cookieEnabled)}},{key:"addPriorConsentValue",value:function(e){var t=this.cs.options.remoteConfig.csEnabled&&(this.cs.isPriorConsent()||this.cs.options.usprApplies),n="";return"page_view_consent"===e?(n+=t?",pv_cs=1":",pv_cs=1,pv_cs_nopc=1",n+=this.addPerPurposeAnalyticsToString()):"page_view_no_consent"===e&&(n+=t?",pv_nocs=1":",pv_nocs=1,pv_nocs_nopc=1"),n}},{key:"addPerPurposeAnalyticsToString",value:function(){var e="";this.cs.isConsentGiven()?e+=",cg_a=1":this.cs.isConsentRejected()?e+=",cg_r=1":e+=",cg_p=1";var t=this.getAcceptedPurposes();return t&&(e+=","+t),e}},{key:"getAcceptedPurposes",value:function(){if(!this.cs.options.perPurposeConsent)return"";var e=this.cs.consent.purposes;return Object.keys(e).map((function(t){return"p"+t+"="+(e[t]?1:0)})).join(",")}},{key:"addConsentTypeTag",value:function(e){var t;switch(e){case"bannerXClose":t="cg_bx";break;case"rejectButtonClick":t="cg_br";break;case"bannerAcceptClicked":t="cg_ba";break;case"documentClicked":t="cg_dc";break;case"cookiePolicyClosed":t="cg_cpc";break;default:t="cg_na"}return t}},{key:"consentGiven",value:function(e){this.track("consent_given",{e_c:this.cs.options.cookiePolicyId,e_a:"consent_given",e_n:e})}}])}(),yi={code:0,message:"Not recognized"},ki={code:1,message:"Invalid type"},Ci={code:2,message:"Invalid format"},wi={code:3,message:"Mismatch"},Pi=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n(this,e),this.invalidType=t,this.errorType=a,this.propertyName=i,this.propertyValue=o}return o(e,null,[{key:"fromProperty",value:function(t,n,i,o){return new e(i,t,n,o)}},{key:"fromPropertyName",value:function(t,n,i){return new e(n,t,null,i)}},{key:"fromInvalidType",value:function(t,n){return new e(t,null,null,n)}}])}(),Si=0,xi=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Si,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=o||[],r=0,s=Object.keys(e);r<s.length;r++){var c=s[r],l=""!==i?"".concat(i,".").concat(c):c;if(e.hasOwnProperty(c)&&!t.hasOwnProperty(c))a.push(Pi.fromPropertyName(l,yi,n));else if("object"===m(e[c])&&null!==e[c]&&"object"===m(t[c])&&null!==t[c])return xi(e[c],t[c],n,l,a)}return a},Ai=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Si,i=[];return Object.keys(e).forEach((function(o){e.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&i.push(Pi.fromProperty(o,e[o],yi,n))})),i};function _i(e){var t=m(e);return"string"!==t||"string"===t&&null===e.match(/^[a-z]{2}$|^[a-z]{2}-[a-z]{2}$/i)}function Oi(e,t){return e[t].callback&&"string"!=typeof e[t].callback}function Ii(e,t,n){return e[n]instanceof HTMLElement&&!(void 0!==t[n])}function Bi(e,t,n){return"i18n"!==n&&"object"===m(e[n])&&null!==e[n]&&"object"===m(t[n])&&Object.keys(e[n]).length>1}var Li=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e);var o=A(Xe,!0);if(this.i18nForBanner=At,this.RENAMED_OPTIONS={enableCMP:"enableTcf","banner.usesThirdParties":"banner.useThirdParties","banner.innerHtmlCloseBtn":"banner.closeButtonCaption",noticeAtCollectionUrl:"privacyPolicyNoticeAtCollectionUrl"},this._remoteConfig=i,this.userConfig={hasEmailMarketing:t.hasEmailMarketing,showBannerForUS:t.showBannerForUS,floatingPreferencesButtonDisplay:t.floatingPreferencesButtonDisplay},t.lang&&!this.isLanguageSupported(t.lang)&&(t.i18n&&t.i18n[t.lang]&&(x(St,{en:t.i18n[t.lang]}),_t()),t.lang="en"),delete t.skipTcfValidation,delete t.consApiKey,x(this,o),this.applyRemoteConfigurations(t),this.removeUnsupportedOptions(),this.prepareGetters(),this.setConfiguredI18n(),this.logDeprecatedOptionWarning(t,this.RENAMED_OPTIONS),this.forceAcceptButtonDisplayIfNeeded(),this.setContinueWithoutAccepting(),this.setTranslationLanguage(),this.setGdprApplies(),this.setLgpdApplies(),this.setTcfOptions(),this.setGoogleAdditionalConsentMode(),this.setUsprApplies(),this.setCcpaApplies(),this.setExplicitWithdrawal(),this.setEnableGpp(),this.setShowBannerForUS(),this.setHasCookiePolicy(),this.setHasPrivacyPolicy(),this.hasPrivacyPolicy&&!this.privacyPolicyUrl&&(this.privacyPolicyUrl="https://www.iubenda.com/privacy-policy/"+this.cookiePolicyId+"/legal?an=no&s_ck=false&newmarkup=yes"),!this.privacyPolicyNoticeAtCollectionUrl){var a=this.privacyPolicyUrl;a||(a="https://www.iubenda.com/privacy-policy/"+this.cookiePolicyId+"/legal"),this.privacyPolicyNoticeAtCollectionUrl=a+"#notice_at_collection"}this.ccpaCookie&&this.ccpaCookie.expireAfter&&this.ccpaCookie.expireAfter<365&&(this.ccpaCookie.expireAfter=365),this.disableGdprOptionsIfNeeded(),this.setShowPurposesToggles(),this.setShowPurposesCollapsed(),this.isFullCustomizationDisabled()&&(Object.keys(xt).forEach((function(e){return delete xt[e]})),_t()),this.forceCustomizeButtonDisplayIfNeeded(),this.forceAcceptButtonDisplayIfNeeded(),this.forceRejectButtonDisplayIfNeeded(),this.forceCloseButtonDisplayIfNeeded(),this.setInvalidateConsentBefore(),this.merge(o,t),this.validationErrors=this.validate(o,t),this.validationErrors.map((function(e){e.errorType===Si&&$e.warn("Configuration ".concat(e.propertyName).concat(e.propertyValue?" ["+e.propertyValue+"]":"",": ").concat(e.invalidType.message))}))}return o(e,[{key:"remoteConfig",get:function(){return this._remoteConfig}},{key:"setHasCookiePolicy",value:function(){void 0===this.hasCookiePolicy&&(this.hasCookiePolicy=!!this.cookiePolicyUrl||!!this.remoteConfig.cpUpd)}},{key:"setHasPrivacyPolicy",value:function(){void 0===this.hasPrivacyPolicy&&(this.hasPrivacyPolicy=!!this.privacyPolicyUrl||!!this.remoteConfig.ppUpd||!!this.remoteConfig.cpUpd)}},{key:"setShowPurposesToggles",value:function(){!1!==this.perPurposeConsent&&(!0!==this.usprApplies||!0!==this.hasSensitiveData)||(this.banner.showPurposesToggles=!1)}},{key:"removeUnsupportedOptions",value:function(){this.usprPurposes&&(this.usprPurposes=this.usprPurposes.replace(/,?(sd5|sd9)/g,"").replace(/,+\s*$/,""))}},{key:"setInvalidateConsentBefore",value:function(){if(this.invalidateConsentBefore&&(this.invalidateConsentBefore=new Date(this.invalidateConsentBefore).getTime()),this.askConsentAtCookiePolicyUpdate&&void 0!==this.remoteConfig.cpUpd){var e=new Date(1e3*this.remoteConfig.cpUpd).getTime();this.invalidateConsentBefore=Math.max(this.invalidateConsentBefore||0,e)}}},{key:"setTcfOptions",value:function(){if(this.enableTcf){this.googleAdsPreferenceManagement=!1,this.setTcfValidationOptions(),this.enableTcf=!0;var t=this.tcfPurposes,n=!1;e.tcfDefaultPurposes().forEach((function(e){e in t?"1"===e||"li_only"!==t[e]&&!0!==t[e]||(n=!0):t[e]=!0})),this.LIRestricted=!n}}},{key:"isBannerHtmlValid",value:function(e){if(!e)return!1;var t=document.createElement("div");t.innerHTML=e;var n=/\%\{banner_content\}/.test(t.textContent),i=t.querySelectorAll(".iubenda-cs-accept-btn").length>0,o=t.querySelectorAll(".iubenda-cs-customize-btn").length>0;return n&&i&&o}},{key:"applyRemoteConfigurations",value:function(e){x(this,this.remoteConfig.csSiteConf||{}),x(this,e),x(this,this.getRenamedOptions(e,this.RENAMED_OPTIONS)),x(this,this.remoteConfig.csRC||{})}},{key:"setTcfValidationOptions",value:function(){var e;this.skipTcfValidation||(null===(e=xt[this.lang])||void 0===e||null===(e=e.banner)||void 0===e||null===(e=e.dynamic)||void 0===e||delete e.body,_t(),this.banner.acceptButtonDisplay=!0,this.banner.customizeButtonDisplay=!0)}},{key:"setGoogleAdditionalConsentMode",value:function(){this.enableTcf||(this.googleAdditionalConsentMode=!1)}},{key:"forceCustomizeButtonDisplayIfNeeded",value:function(){(this.perPurposeConsent&&(this.gdprApplies||this.lgpdApplies)||this.usprApplies)&&this.banner&&(this.banner.customizeButtonDisplay=!0),this.fadpApplies&&(this.banner.customizeButtonDisplay=this.usprApplies&&this.hasUsprPurposesSensitiveData())}},{key:"forceCloseButtonDisplayIfNeeded",value:function(){var e=this.banner,t=e.acceptButtonDisplay,n=e.rejectButtonDisplay,i=e.closeButtonRejects,o=e.continueWithoutAcceptingButtonDisplay;this.fadpApplies?this.banner.closeButtonDisplay=!0:(t&&n&&!i||o)&&(this.banner.closeButtonDisplay=!1)}},{key:"forceAcceptButtonDisplayIfNeeded",value:function(){(this.hasUsprPurposesSensitiveData()||this.banner.showPurposesToggles)&&(this.banner.acceptButtonDisplay=!0),this.banner.acceptButtonDisplay||this.banner.closeButtonDisplay||(this.banner.acceptButtonDisplay=!0),this.fadpApplies&&(this.banner.acceptButtonDisplay=this.usprApplies&&this.hasUsprPurposesSensitiveData())}},{key:"forceRejectButtonDisplayIfNeeded",value:function(){this.hasUsprPurposesSensitiveData()&&(this.banner.rejectButtonDisplay=!0),this.fadpApplies&&(this.banner.rejectButtonDisplay=this.usprApplies&&this.hasUsprPurposesSensitiveData())}},{key:"setTranslationLanguage",value:function(){this.lang&&Ut.setLang(this.lang)}},{key:"setGdprApplies",value:function(){if(!this.enableGdpr)return this.gdprAppliesGlobally=!1,void(this.gdprApplies=!1);if(this.gdprAppliesGlobally)return $e.info("Setting gdprApplies=true since gdprAppliesGlobally is true"),void(this.gdprApplies=!0);if(void 0===this.gdprApplies){if(this.countryDetection&&"CH"===_iub.cc&&this.applyGdprForCH)return $e.info("Setting gdprApplies=true since applyGdprForCH is true and user is detected from Switzerland"),void(this.gdprApplies=!0);if(!this.gdprAppliesGlobally&&this.countryDetection&&"EU"!==_iub.cc)return $e.info("Setting gdprApplies=false since countryDetection is true and user is detected from outside EU ("+_iub.cc+")."),void(this.gdprApplies=!1);$e.info("Setting gdprApplies=true by default"),this.gdprApplies=!0}}},{key:"setLgpdApplies",value:function(){if(!this.enableLgpd)return this.lgpdAppliesGlobally=!1,void(this.lgpdApplies=!1);if(void 0===this.lgpdApplies){if(!this.lgpdAppliesGlobally&&this.countryDetection&&"BR"!==_iub.cc)return $e.info("Setting lgpdApplies=false since countryDetection is true and user is detected from outside BR ("+_iub.cc+")."),void(this.lgpdApplies=!1);$e.info("Setting lgpdApplies=true by default"),this.lgpdApplies=!0}}},{key:"setCcpaApplies",value:function(){if(this.usprApplies)return this.enableCcpa=!0,void(this.ccpaApplies=!0);this.enableCcpa&&void 0===this.ccpaApplies&&(this.countryDetection&&"US-CA"!==_iub.cc?this.ccpaAppliesToEntireUSA&&/^US/.test(_iub.cc)&&(this.ccpaApplies=!0):this.ccpaApplies=!0)}},{key:"setUsprApplies",value:function(){!1!==this.enableUspr?void 0===this.usprApplies&&(!1!==this.countryDetection?this.enableUspr&&this.countryDetection&&/^US/.test(_iub.cc)?this.usprApplies=!0:this.usprApplies=!1:this.usprApplies=!0):this.usprApplies=!1}},{key:"setShowBannerForUS",value:function(){if(!1!==this.usprApplies){if(!0!==this.userConfig.showBannerForUS){var e=this.hasUsprPurposesSensitiveData();this.ccpaNoticeDisplay=e,this.showBannerForUS=e}}else this.showBannerForUS=!1}},{key:"hasUsprPurposesSensitiveData",value:function(){if(!this.usprPurposes&&!this.usprApplies)return!1;var e=this.usprPurposes?this.usprPurposes.split(","):this.remoteConfig.csPurposes,t=Ln(e);if(!t.length&&!0===this.usprApplies)return this.hasSensitiveData=!1,!1;var n=t.some((function(e){return/^sd\d+/.test(e.toString().trim())}));return this.hasSensitiveData=n,n}},{key:"setExplicitWithdrawal",value:function(){this.enableTcf&&(this.banner.explicitWithdrawal=!0)}},{key:"setEnableGpp",value:function(){this.usprApplies&&(this.enableGpp=!0),"function"==typeof window.__gpp&&(this.enableGpp=!0)}},{key:"setShowPurposesCollapsed",value:function(){(this.banner.showPurposesToggles||this.lgpdApplies)&&(this.showPurposesCollapsed=!1)}},{key:"setContinueWithoutAccepting",value:function(){this.banner.continueWithoutAcceptingButtonDisplay&&(this.banner.closeButtonRejects=!0)}},{key:"disableGdprOptionsIfNeeded",value:function(){this.gdprApplies||this.lgpdApplies||!this.banner||(this.banner.acceptButtonDisplay=!1,this.banner.rejectButtonDisplay=!1,this.banner.customizeButtonDisplay=!1,this.banner.closeButtonDisplay=!0,this.banner.closeButtonRejects=!1)}},{key:"setConfiguredI18n",value:function(){this.i18n&&(x(xt,this.i18n),_t())}},{key:"isLanguageSupported",value:function(e){return"string"==typeof e&&this.i18nForBanner.hasOwnProperty(e)}},{key:"get",value:function(e,t){return function(e,t,n){if(!t)return e;for(var i,o=t.split("."),a=e,r=0;r<o.length;r++){var s=o[r];if(r===o.length-1){i=a[s];break}if("object"!==m(a[s])||!a[s]){i=void 0;break}a=a[s]}return i||!1===i?i:n}(this,e,t)}},{key:"validate",value:function(e,t){var n=-1!==[0,2,3,4].indexOf($e.level),i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Ai(e,t);return!0!==n||Object.keys(e).forEach((function(n){Ii(e,t,n)?i.push(Pi.fromPropertyName(n,yi,Si)):Bi(e,t,n)&&(i=i.concat(xi(e[n],t[n],Si,n)))})),i}(t,e,n),o=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0===e)return[];var o=[];if("object"!==m(e)||null===e)return o.push(Pi.fromPropertyName("i18n",wi,Si)),o;"object"===m(t)&&"object"===m(e)||o.push(Pi.fromInvalidType(ki,Si));var a=Object.keys(e).reduce((function(t,a){var r=[];return"object"!==m(e[a])?o.push(Pi.fromProperty("lang",a,wi,Si)):(_i(a)&&o.push(Pi.fromProperty("lang",a,Ci,Si)),Oi(e,a)&&o.push(new Pi(wi,"".concat(a,".callback"),null,Si)),n&&n.en&&!0===i&&(r=xi(e[a],n.en,Si,a))),t.concat(r)}),[]);return o.concat(a)}(t.i18n,e.i18n,this.i18nForBanner,n);return[].concat(b(i),b(o))}},{key:"merge",value:function(e,t){var n=this;Object.keys(t).forEach((function(i){t[i]instanceof HTMLElement?void 0!==e[i]&&(e[i]=t[i]):"object"===m(t[i])||void 0===t[i]?"object"===m(e[i])?"object"===m(t[i])&&null!==t[i]&&Object.keys(t[i]).length>1?Object.keys(t[i]).forEach((function(o){void 0===e[i][o]&&void 0===n.RENAMED_OPTIONS["".concat(i,".").concat(o)]||(e[i][o]=t[i][o])})):e[i]=t[i]:void 0===e[i]&&(e[i]=t[i]):null!==e[i]&&"object"===m(e[i])||void 0===e[i]&&void 0===n.RENAMED_OPTIONS[i]||(e[i]=t[i])}))}},{key:"getObjValueByPath",value:function(e,t){for(var n,i=e,o=t.split("."),a=0;a<o.length;a++){var r=o[a];if(a===o.length-1)i&&void 0!==i[r]&&(n=i[r]);else{if(!i[r])break;i=i[r]}}return n}},{key:"setObjValueByPath",value:function(e,t,n){var i=e,o=t.split(".");return o.forEach((function(e,t){t===o.length-1?i[e]=n:(i[e]||(i[e]={}),i=i[e])})),i}},{key:"getRenamedOptions",value:function(e,t){var n=this;return Object.keys(t).reduce((function(i,o){var a=t[o],r=n.getObjValueByPath(e,a),s=n.getObjValueByPath(e,o),c=void 0!==r?r:s;return void 0===c||(n.setObjValueByPath(i,a,c),n.setObjValueByPath(i,o,c)),i}),{})}},{key:"logDeprecatedOptionWarning",value:function(e,t){var n=this;Object.keys(t).forEach((function(i){var o=t[i];n.getObjValueByPath(e,i)&&$e.warn("deprecated parameter ["+i+"], use ["+o+"] instead")}))}},{key:"isUsingNewPricing",value:function(){return!!this.remoteConfig.csFeatures}},{key:"isFullCustomizationDisabled",value:function(){return!!this.isUsingNewPricing()&&!this.remoteConfig.csFeatures.full_customization}},{key:"getCSWhiteLabeling",value:function(){if(this.isUsingNewPricing()&&void 0!==this.remoteConfig.csFeatures.cookie_solution_white_labeling){var e=this.remoteConfig.csFeatures.cookie_solution_white_labeling;return"boolean"==typeof e?e:Number(e)}return!1}},{key:"isGeolocationDisabled",value:function(){return!!this.isUsingNewPricing()&&!this.remoteConfig.csFeatures.geolocation_setting}},{key:"isRejectionRecoveryDisabled",value:function(){return!!this.isUsingNewPricing()&&!this.remoteConfig.csFeatures.rejection_recovery}},{key:"prepareGetters",value:function(){var t=this;this.mergedOptions={},Object.keys(e.getters).forEach((function(n){for(var i,o=n.split("."),a=t,r=0;r<o.length-1;++r)a=a[o[r]];var s=o[o.length-1];null!==(i=Object.getOwnPropertyDescriptor(a,s))&&void 0!==i&&i.get||(t.setObjValueByPath(t.mergedOptions,n,a[s]),delete a[s],Object.defineProperty(a,s,{get:e.getters[n].bind(t),enumerable:!0,configurable:!1}))}))}}],[{key:"tcfDefaultPurposes",value:function(){return["1","2","3","4","5","6","7","8","9","10","11"]}}])}();function Ti(e,t){var n=document.createElement("canvas").getContext("2d");return n.fillStyle=e,n.fillRect(0,0,1,1),n.fillStyle=t,n.fillRect(1,0,1,1),n.getImageData(0,0,1,1).data.join(",")===n.getImageData(1,0,1,1).data.join(",")}Li.getters={"banner.content":function(){return this.isFullCustomizationDisabled()?Xe.banner.content:this.enableTcf&&!this.skipTcfValidation?null:this.mergedOptions.banner.content},"banner.html":function(){return this.isFullCustomizationDisabled()?Xe.banner.html:!this.enableTcf||this.skipTcfValidation||this.isBannerHtmlValid(this.mergedOptions.banner.html)?this.mergedOptions.banner.html:($e.log("warn","banner.html changed to default since it doesn't respect the TCF requirements"),null)},floatingPreferencesButtonDisplay:function(){return!(!this.isFullCustomizationDisabled()||this.mergedOptions.floatingPreferencesButtonDisplay)||this.mergedOptions.floatingPreferencesButtonDisplay},usPreferencesWidgetDisplay:function(){return void 0===this.mergedOptions.usPreferencesWidgetDisplay?!1!==this.userConfig.floatingPreferencesButtonDisplay&&"inline-center":this.mergedOptions.usPreferencesWidgetDisplay},floatingPreferencesButtonCaption:function(){return this.isFullCustomizationDisabled()?Xe.floatingPreferencesButtonCaption:this.mergedOptions.floatingPreferencesButtonCaption},floatingPreferencesButtonColor:function(){return this.isFullCustomizationDisabled()?Xe.floatingPreferencesButtonColor:this.mergedOptions.floatingPreferencesButtonColor},floatingPreferencesButtonCaptionColor:function(){return this.isFullCustomizationDisabled()?Xe.floatingPreferencesButtonCaptionColor:this.mergedOptions.floatingPreferencesButtonCaptionColor},floatingPreferencesButtonIcon:function(){return this.isFullCustomizationDisabled()?Xe.floatingPreferencesButtonIcon:this.mergedOptions.floatingPreferencesButtonIcon},"banner.fontSize":function(){return this.isFullCustomizationDisabled()?Xe.banner.fontSize:this.mergedOptions.banner.fontSize},"banner.fontSizeBody":function(){return this.isFullCustomizationDisabled()?Xe.banner.fontSizeBody:this.mergedOptions.banner.fontSizeBody},"banner.slideDown":function(){return this.isFullCustomizationDisabled()?Xe.banner.slideDown:this.mergedOptions.banner.slideDown},"banner.fontSizeCloseButton":function(){return this.isFullCustomizationDisabled()?Xe.banner.fontSizeCloseButton:this.mergedOptions.banner.fontSizeCloseButton},"banner.prependOnBody":function(){return this.isFullCustomizationDisabled()?Xe.banner.prependOnBody:this.mergedOptions.banner.prependOnBody},reloadOnConsent:function(){return this.isFullCustomizationDisabled()?Xe.reloadOnConsent:this.mergedOptions.reloadOnConsent},askConsentAtCookiePolicyUpdate:function(){return!!this.isFullCustomizationDisabled()||this.mergedOptions.askConsentAtCookiePolicyUpdate},enableRemoteConsent:function(){return!this.previewMode&&(this.isFullCustomizationDisabled()?Xe.enableRemoteConsent:this.mergedOptions.enableRemoteConsent)},"preferenceCookie.expireAfter":function(){return this.isFullCustomizationDisabled()?Xe.preferenceCookie.expireAfter:this.mergedOptions.preferenceCookie.expireAfter},inlineDelay:function(){return this.isFullCustomizationDisabled()?Xe.inlineDelay:this.mergedOptions.inlineDelay},logLevel:function(){return this.isFullCustomizationDisabled()?Xe.logLevel:this.mergedOptions.logLevel},rebuildIframe:function(){return this.isFullCustomizationDisabled()?Xe.rebuildIframe:this.mergedOptions.rebuildIframe},skipSaveConsent:function(){return!!this.previewMode||(this.isFullCustomizationDisabled()?Xe.skipSaveConsent:this.mergedOptions.skipSaveConsent)},"banner.cookiePolicyLinkCaption":function(){return this.isFullCustomizationDisabled()?Xe.banner.cookiePolicyLinkCaption:this.mergedOptions.banner.cookiePolicyLinkCaption},"banner.acceptButtonCaption":function(){return this.isFullCustomizationDisabled()||!this.mergedOptions.banner.acceptButtonCaption?Ut("banner.accept_button_caption",null,this):this.mergedOptions.banner.acceptButtonCaption},"banner.customizeButtonCaption":function(){return this.isFullCustomizationDisabled()?Xe.banner.customizeButtonCaption:this.mergedOptions.banner.customizeButtonCaption},"banner.rejectButtonCaption":function(){return this.isFullCustomizationDisabled()||!this.mergedOptions.banner.rejectButtonCaption?Ut("banner.reject_button_caption",null,this):this.mergedOptions.banner.rejectButtonCaption},"banner.continueWithoutAcceptingButtonCaption":function(){return this.isFullCustomizationDisabled()||!this.mergedOptions.banner.continueWithoutAcceptingButtonCaption?Ut("banner.continue_acception_button_caption"):this.mergedOptions.banner.continueWithoutAcceptingButtonCaption},"banner.closeButtonCaption":function(){return this.isFullCustomizationDisabled()?Xe.banner.closeButtonCaption:this.gdprApplies||this.lgpdApplies||!this.banner?this.mergedOptions.banner.closeButtonCaption:"&times;"},"banner.backgroundColor":function(){return this.isFullCustomizationDisabled()&&!Ti(this.mergedOptions.banner.backgroundColor,"white")?Xe.banner.backgroundColor:this.mergedOptions.banner.backgroundColor},"banner.textColor":function(){return this.isFullCustomizationDisabled()&&!Ti(this.mergedOptions.banner.textColor,"black")?Xe.banner.textColor:this.mergedOptions.banner.textColor},"banner.linksColor":function(){return this.isFullCustomizationDisabled()?Xe.banner.linksColor:this.mergedOptions.banner.linksColor},"banner.acceptButtonColor":function(){return this.isFullCustomizationDisabled()&&!Ti(this.mergedOptions.banner.acceptButtonColor,"#0073CE")?Xe.banner.acceptButtonColor:this.mergedOptions.banner.acceptButtonColor},"banner.acceptButtonCaptionColor":function(){return this.isFullCustomizationDisabled()&&!Ti(this.mergedOptions.banner.acceptButtonCaptionColor,"white")?Xe.banner.acceptButtonCaptionColor:this.mergedOptions.banner.acceptButtonCaptionColor},"banner.customizeButtonColor":function(){return this.isFullCustomizationDisabled()&&!Ti(this.mergedOptions.banner.customizeButtonColor,"#DADADA")?Xe.banner.customizeButtonColor:this.mergedOptions.banner.customizeButtonColor},"banner.customizeButtonCaptionColor":function(){return this.isFullCustomizationDisabled()&&!Ti(this.mergedOptions.banner.customizeButtonCaptionColor,"#4D4D4D")?Xe.banner.customizeButtonCaptionColor:this.mergedOptions.banner.customizeButtonCaptionColor},"banner.rejectButtonColor":function(){return this.isFullCustomizationDisabled()&&!Ti(this.mergedOptions.banner.rejectButtonColor,"#0073CE")?Xe.banner.rejectButtonColor:this.mergedOptions.banner.rejectButtonColor},"banner.rejectButtonCaptionColor":function(){return this.isFullCustomizationDisabled()&&!Ti(this.mergedOptions.banner.rejectButtonCaptionColor,"white")?Xe.banner.rejectButtonCaptionColor:this.mergedOptions.banner.rejectButtonCaptionColor},"banner.continueWithoutAcceptingButtonColor":function(){return this.isFullCustomizationDisabled()?Xe.banner.continueWithoutAcceptingButtonColor:this.mergedOptions.banner.continueWithoutAcceptingButtonColor},"banner.continueWithoutAcceptingButtonCaptionColor":function(){return this.isFullCustomizationDisabled()?Xe.banner.continueWithoutAcceptingButtonCaptionColor:this.mergedOptions.banner.continueWithoutAcceptingButtonCaptionColor},"banner.brandBackgroundColor":function(){return this.isFullCustomizationDisabled()?Xe.banner.brandBackgroundColor:this.mergedOptions.banner.brandBackgroundColor},"banner.brandTextColor":function(){return this.isFullCustomizationDisabled()?Xe.banner.brandTextColor:this.mergedOptions.banner.brandTextColor},"banner.logo":function(){return this.isFullCustomizationDisabled()?Xe.banner.logo:this.mergedOptions.banner.logo},whitelabel:function(){var e=this.getCSWhiteLabeling();return!(this.isFullCustomizationDisabled()||2!==e&&!1!==e)&&this.mergedOptions.whitelabel},"banner.applyStyles":function(){return this.isFullCustomizationDisabled()?Xe.banner.applyStyles:this.mergedOptions.banner.applyStyles},countryDetection:function(){return this.isGeolocationDisabled()?Xe.countryDetection:this.mergedOptions.countryDetection},hasEmailMarketing:function(){var e;return!1!==this.userConfig.hasEmailMarketing&&(!(null===(e=this._remoteConfig.csRC)||void 0===e||!e.hasEmailMarketing)&&Xe.hasEmailMarketing)},promptToAcceptOnBlockedElements:function(){return this.isRejectionRecoveryDisabled()?Xe.promptToAcceptOnBlockedElements:this.mergedOptions.promptToAcceptOnBlockedElements},previewMode:function(){return this.mergedOptions.previewMode&&tt()},previewRemoteConfigurationUrl:function(){return this.mergedOptions.previewRemoteConfigurationUrl},cookieSolutionWhiteLabeling:function(){return this.getCSWhiteLabeling()},skipTcfValidation:function(){var e;return(null===(e=this._remoteConfig.csRC)||void 0===e?void 0:e.skipTcfValidation)||!1},acceptTcfSpecialFeaturesWithAcceptBtn:function(){return this.mergedOptions.acceptTcfSpecialFeaturesWithAcceptBtn},fadpApplies:function(){return!1!==this.mergedOptions.fadpApplies&&(!!this.mergedOptions.enableFadp&&(!this.gdprApplies&&!this.lgpdApplies&&(this.mergedOptions.countryDetection?"CH"===_iub.cc:this.mergedOptions.enableFadp)))},enableFadp:function(){return this.mergedOptions.enableFadp},showBannerForCH:function(){return!!this.fadpApplies&&this.mergedOptions.showBannerForCH},perPurposeConsent:function(){return!this.hasCookiePolicy||(!(!this.fadpApplies||this.gdprApplies||this.lgpdApplies)||this.mergedOptions.perPurposeConsent)},storage:function(){return this.mergedOptions.storage},tcfVendors:function(){var e=this.mergedOptions.tcfVendors||this.vendors||_iub.tcfV;return"string"==typeof e?e.split(",").map((function(e){return parseInt(e,10)})):e},gppVersion:function(){switch(this.mergedOptions.gppVersion.toString()){case"1.1":return 1.1;case"1":default:return 1}},tcfVersion:function(){return qe.TCF_VERSION},tcfV2_2:function(){return 2.2===qe.TCF_VERSION},"banner.totalNumberOfProviders":function(){var e;if(!0===(null===(e=this.banner)||void 0===e?void 0:e.showTotalNumberOfProviders)){var t;if("number"==typeof(null===(t=this.mergedOptions.banner)||void 0===t?void 0:t.totalNumberOfProviders))return this.mergedOptions.banner.totalNumberOfProviders;if("number"==typeof _iub.totalNumberOfProviders)return _iub.totalNumberOfProviders}return 0},"emailMarketing.customI18n":function(){var e,t;return Object.keys(this.mergedOptions.emailMarketing.customI18n).length?this.mergedOptions.emailMarketing.customI18n:null!==(e=this.i18n[this.lang])&&void 0!==e&&e.emailMarketing?null===(t=this.i18n[this.lang])||void 0===t?void 0:t.emailMarketing:this.mergedOptions.emailMarketing.customI18n}};var Di=function(){function e(t){n(this,e),this.cs=t,this.logger=$e,this.ui=t.ui,window.addEventListener("message",this._onMessageEventHandler.bind(this))}return o(e,[{key:"consentGiven",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.force||!1;if(this.ui.banner.shown||t){var n=e.eventName||"cookiePolicyClosed";switch(this.ui.registerEvent(n),n){case"rejectButtonClick":this.cs.rejectAll(n);break;case"bannerXClose":this.cs.options.banner.closeButtonRejects?this.cs.rejectAll(n):this.cs.acceptAll(n);break;default:this.cs.acceptAll(n)}this.ui.banner.removeBanner()}}},{key:"showTcfVendors",value:function(){this.ui.showTcfVendors()}},{key:"showCP",value:function(){var e=new MouseEvent("click",{bubbles:!0,cancelable:!1});this.ui.bannerCookiePolicyClicked({event:e})}},{key:"openPreferences",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.acceptPurposes;this.ui.openPreferences({acceptPurposes:t})}},{key:"printErrors",value:function(){var e=this,t=this.cs.state.errors;t.length||this.logger.log("info","No errors","info",!1),Object.keys(t).forEach((function(n){e.logger.log("info",t[n],"error",!1)}))}},{key:"isConsentGiven",value:function(){return this.cs.isConsentGiven()}},{key:"isCcpaAcknowledged",value:function(){return this.cs.state.ccpaAcknowledged}},{key:"isCcpaOptedOut",value:function(){return this.cs.state.ccpaOptedOut}},{key:"ccpaApplies",value:function(){return this.cs.options.ccpaApplies}},{key:"gdprApplies",value:function(){return this.cs.options.gdprApplies}},{key:"lgpdApplies",value:function(){return this.cs.options.lgpdApplies}},{key:"askCcpaOptOut",value:function(){this.cs.askCcpaOptOut()}},{key:"isPreferenceExpressed",value:function(){return this.cs.isPreferenceExpressed()}},{key:"storeConsent",value:function(e){var t=this.cs.consent;this.cs.consent={timestamp:(new Date).toISOString(),version:this.cs.settings.version};var n,i=null==e||e,o=!1;if("boolean"==typeof i)n=i;else if("object"===m(i)){if("tcfv2"in i&&(this.cs.state.tcfv2String=i.tcfv2||""),"consent"in i&&(n=!1!==i.consent),"purposes"in i){var a=A(i.purposes);a[1]=!0,this.cs.consent.purposes=a,o=!0}"uspr"in i&&(this.cs.preferences.state.usPurposes.setPreferences(i.uspr),this.cs.preferences.storage.uspr.storeUSPurposeCookie()),"ccpa"in i&&this.cs.options.ccpaApplies&&this.cs.preferences.storage.usPrivacy.setCcpaCookie(i.ccpa,!0),"timestamp"in i&&(this.cs.consent.timestamp=i.timestamp),this.cs.consent.cons="cons"in i?i.cons:{rand:"123456"}}"boolean"==typeof n&&(this.cs.consent.consent=n,o=!0),o&&this.cs.cookie.storeConsent(),this.cs.consent=t}},{key:"activateSnippets",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cs.firstActivationCompletedPromise.then((function(){e.cs.startActivation(t.runOnActivationDoneCallback,!0)}))}},{key:"setConsentOnScrollOnElement",value:function(){}},{key:"isGoogleNonPersonalizedAds",value:function(){return!0}},{key:"getGoogleAdditionalConsent",value:function(){if(this.cs.options.googleAdditionalConsentMode&&this.cs.customPreferences)return this.cs.customPreferences.gac}},{key:"resetCookies",value:function(){this.cs.storage.reset({local:!0,remote:this.cs.options.enableRemoteConsent})}},{key:"_callAPIFunction",value:function(t,n,i){this.logger.debug({command:t,params:n,callback:i});var o=n||[];if("_onMessageEventHandler"===t||"_callAPIFunction"===t||!e.prototype.hasOwnProperty(t)||"function"!=typeof this[t])return this.logger.error("iub CS API called with undefined command: ",t),void i(null,!1);i(this[t].apply(this,o),!0)}},{key:"_onMessageEventHandler",value:function(t){try{var n="string"==typeof t.data?e._parseJson(t.data):t.data,i=n?n.__iubCsCall:null;if(!i)return;var o=i.command,a=i.parameters,r=i.callId;this._callAPIFunction(o,a,(function(e,n){var i={__iubCsReturn:{returnValue:e,success:n,callId:r}};t.source.frames.postMessage(JSON.stringify(i),t.origin)}))}catch(e){this.logger.error("Error: "+e)}}},{key:"getSupportedOptions",value:function(){return _(Xe)}},{key:"acceptAll",value:function(){this.cs.acceptAllUltimate("cookiePolicyClosed")}},{key:"rejectAll",value:function(){this.cs.rejectAll("rejectButtonClick")}},{key:"showBanner",value:function(){this.cs.ui.banner.removeBanner(),this.cs.ui.banner.showBanner(),this.cs.ui.bindButtons(),this.cs.enablePrivacyPolicyLinks()}},{key:"getPreferences",value:function(){return this.cs.getPreferences()}},{key:"setPreferences",value:function(e,t){var n;this.cs.storePreferences(e,!0),t&&null!==(n=this.cs.ui)&&void 0!==n&&n.banner&&this.cs.ui.banner.removeBanner()}},{key:"openAdvertisingPreferences",value:function(){this.cs.openAdvertisingPreferences()}},{key:"emailMarketing",value:function(){return this.cs.newsletter}}],[{key:"_parseJson",value:function(e){try{return JSON.parse(e)}catch(e){}return null}}])}(),Ei="body{margin:0;font-family:sans-serif}*{box-sizing:border-box}.iubenda-cs__overlay{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;overflow:auto;padding:1rem;background-color:rgba(0,0,0,.1)}.iubenda-cs__dialog{max-width:320px;border-radius:.5rem;box-shadow:0 0 2rem rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.05);margin:auto;overflow:hidden;padding:1.5rem;display:flex;flex-direction:column;grid-gap:1.5rem;background:#fff;color:#222}.iubenda-cs__body h1{font-size:1.25rem;margin:0 0 .5rem 0}.iubenda-cs__body p{margin:0;font-weight:300}.iubenda-cs__button{font-size:100%;border-radius:4rem;padding:.5rem 1rem;font-weight:700;background-color:#0073ce;color:#fff;border:0;width:100%;cursor:pointer}.iubenda-cs__button:hover{background-color:#005aa0}@media (max-height:320px) and (max-width:240px){.iubenda-cs__overlay{padding:0}}@media (max-height:320px) and (min-width:480px){.iubenda-cs__dialog{flex-direction:row;max-width:100%;align-items:center}.iubenda-cs__button{padding:1rem 3rem}}";function Fi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.styleOptions,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=rn(e,t),r=t.join(","),s=Ut("blocked_overlay.title"),c=Ut("blocked_overlay.paragraph").replace("%{purposes}",a),l=Ut("blocked_overlay.accept_button"),u=Ee({"background-color":null==i?void 0:i.backgroundColor,color:null==i?void 0:i.textColor}),p=Ee({"background-color":null==i?void 0:i.acceptButtonColor,color:null==i?void 0:i.acceptButtonCaptionColor}),d='\n    <div class="iubenda-cs__overlay">\n      <div class="iubenda-cs__dialog" '.concat(u,'>\n        <div class="iubenda-cs__body">\n          <h1>').concat(s,"</h1>\n          <p>").concat(c,'</p>\n        </div>\n        <div class="iubenda-cs__footer">\n          <button\n            class="iubenda-cs__button iubenda-cs__preferences-link"\n            ').concat(p,'\n            data-accept-purposes="').concat(r,'"\n          >\n            ').concat(l,"\n          </button>\n        </div>\n      </div>\n    </div>\n  ");return o?d:'\n    <!DOCTYPE html>\n    <html lang="en">\n      <head>\n        <meta charset="UTF-8">\n        <meta http-equiv="X-UA-Compatible" content="IE=edge">\n        <meta name="viewport" content="width=device-width, initial-scale=1.0">\n        <title>'.concat(s,"</title>\n        <style>").concat(Ei,"</style>\n      </head>\n      <body>\n        ").concat(d,"\n      </body>\n    </html>\n  ")}function Ni(e){var t,n,i=null==e||null===(t=e.preferenceCookie)||void 0===t||null===(t=t.tcfV2Name)||void 0===t?void 0:t.trim();return"string"==typeof i&&i?i.trim().replace(/%\{cookie_policy_id\}/g,null!==(n=null==e?void 0:e.cookiePolicyId)&&void 0!==n?n:""):"euconsent-v2"}var Ri="loading",Vi="loaded",zi="visible",ji="hidden",Ui="ready",Mi="not ready",Gi="initial",Wi="processing",Hi="processed",qi=function(){return o((function e(t,i){n(this,e);var o={cmpId:t,cmpStatus:Ri,cmpDisplayStatus:ji,supportedAPIs:[],supportedAPIs_1_1:[],sectionList:[],applicableSections:[],gppVersion:i||"1.0",signalStatus:Mi,gppString:"",gppUpdatedSectionIds:{},parsedSections:{}};this.data=o,this.fireEvent=function(){}}),[{key:"setFireEvent",value:function(e){this.fireEvent=e}},{key:"updateData",value:function(e){this.data=S(this.data,e)}},{key:"getModelStructure",value:function(e){return"1.1"===e?["gppVersion","cmpStatus","cmpDisplayStatus","signalStatus","supportedAPIs","cmpId","sectionList","applicableSections","gppString","parsedSections"]:["gppVersion","cmpStatus","cmpDisplayStatus","supportedAPIs","cmpId"]}},{key:"getItemValue",value:function(e,t){switch(t){case"sectionList":return Object.keys(this.data.gppUpdatedSectionIds).map(Number);case"supportedAPIs":return this.data["1.1"===e?"supportedAPIs_1_1":"supportedAPIs"];default:return this.data[t]}}},{key:"getPingData",value:function(e){var t=this,n=this.getModelStructure(e.toString()),i={};return n.forEach((function(n){i[n]=t.getItemValue(e,n)})),i}}])}();function Ji(e){if("string"!=typeof e)return{section:null,data:null};var t=e.split(".");return{section:t[0],data:t.slice(1).join(".")}}function Ki(e){if(!e)return e;var t=e;return"string"==typeof e&&(t=Number(e)),t.toString()}var Yi=[1.1,1],Xi=function(){function e(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;n(this,e),this.model=t,this.pluginManager=i,this.gppVersion=o;try{this.callQueue=window.__gpp.queue}catch(e){this.callQueue=[]}try{this.events=window.__gpp.events}catch(e){this.events=[]}try{this.lastId=window.__gpp.lastId}catch(e){this.lastId=0}for(window.__gpp=this.apiCall.bind(this);this.callQueue.length;){var a=this.callQueue.shift();this.apiCall.apply(this,b(a))}}return o(e,[{key:"registerListener",value:function(e,t,n){var i=0,o=!1;return"function"==typeof e&&(o=!0,i=++this.lastId,this.events.push({id:i,callback:e,parameter:t,version:n})),{eventName:"listenerRegistered",listenerId:i,data:o}}},{key:"unregisterListener",value:function(e){for(var t=!1,n=0;n<this.events.length;++n)if(this.events[n].id===e){this.events.splice(n,1),t=!0;break}return{eventName:"listenerRemoved",listenerId:e,data:t}}},{key:"getCustomCommand",value:function(e){var t=Ji(e),n=t.section,i=t.data,o=this.pluginManager.get(n);if(o){var a=o.customCommands()[i];if(a)return a}}},{key:"apiCall",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0],o=t[1],a=t[2],r=t[3],s=void 0===r?this.gppVersion:r,c=Ki(s);return"1"===c?this.apiCall_1_0(i,o,a,c):this.apiCall_1_1(i,o,a,c)}},{key:"apiCall_1_0",value:function(e,t,n,i){if("1"===i&&"string"==typeof e){var o=Number(i);switch(e){case"addEventListener":var a=this.registerListener(t,n,i);return{eventName:a.eventName,listenerId:a.listenerId,data:a.data};case"removeEventListener":var r=this.unregisterListener(n);return{eventName:r.eventName,listenerId:r.listenerId,data:r.data};case"ping":return this.model.getPingData(i);case"hasSection":return!!this.pluginManager.get(n);case"getSection":var s;return null===(s=this.pluginManager.get(n))||void 0===s?void 0:s.getSection(o);case"getField":var c,l=Ji(n),u=l.section,p=l.data;return null===(c=this.pluginManager.get(u))||void 0===c?void 0:c.getField(o,p);case"getGPPData":var d=Object.keys(this.model.data.gppUpdatedSectionIds).map(Number),h=this.model.data.applicableSections.filter((function(e){return-1!==d.indexOf(e)}));return{sectionId:3,gppVersion:3,sectionList:d,applicableSections:h.length?h:-1,gppString:this.model.data.gppString,pingData:this.model.getPingData(i)};default:var f=this.getCustomCommand(e);if(f)return f(t,n,i)}}}},{key:"apiCall_1_1",value:function(t,n,i,o){if("1.1"===o&&"string"==typeof t&&"function"==typeof n){var a=Number(o);switch(t){case"addEventListener":var r=this.registerListener(n,i,o),s={eventName:r.eventName,listenerId:r.listenerId,data:r.data,pingData:this.model.getPingData(o)};this.events.forEach((function(t){e.callCallback(t.callback,s,!0)}));break;case"removeEventListener":var c=this.unregisterListener(i),l=c.eventName,u=c.listenerId,p=c.data;e.callCallback(n,p,!0);var d={eventName:l,listenerId:u,data:p,pingData:this.model.getPingData(o)};this.events.forEach((function(t){e.callCallback(t.callback,d,!0)}));break;case"ping":var h=this.model.getPingData(o);e.callCallback(n,h,!0);break;case"hasSection":var f=!!this.pluginManager.get(i);e.callCallback(n,f,!0);break;case"getSection":var b=this.pluginManager.get(i);if(b){var g=b.getSection(a);e.callCallback(n,g,!0)}else e.callCallback(n,null,!1);break;case"getField":var m=Ji(i),v=m.section,y=m.data,k=this.pluginManager.get(v);if(k&&y){var C=k.getField(a,y);e.callCallback(n,C,!0)}else e.callCallback(n,null,!1);break;default:var w=this.getCustomCommand(t);w?w(n,i,o):e.callCallback(n,null,!1)}}else"function"==typeof n&&e.callCallback(n,null,!1)}}],[{key:"callCallback",value:function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.apply(void 0,n)}catch(e){}}}])}();function $i(){this.ncache=[1,2,3,5,8,13,21,34,55,89,144,233],this.ecache=[],this.maxfibo=30,this.fibo=function(e){if(e in this.ncache)return this.ncache[e];var t=e-1,n=e-2;if(t in this.ncache&&n in this.ncache)return this.ncache[e]=this.ncache[t]+this.ncache[n],this.ncache[e];for(var i=0,o=1,a=0,r=0;r<e;r++)a=i,i=o,o+=a;return this.ncache[e]=i,i},this.largeOrEqual=function(e){for(var t=0,n=1;n<this.maxfibo&&this.fibo(n)<=e;n++)t=n;return t},this.encode=function(e){if(e<=0)return"";if(e in this.ecache)return this.ecache[e];for(var t=e,n=this.largeOrEqual(e),i=[],o=0;o<n+3;o++)i[o]=0;o=n;for(var a=0;e>0&&a<=this.maxfibo&&o>=0;)for(a++,i[o]="1",e-=this.fibo(o),o--;o>=0&&this.ncache[o]>e;)i[o]="0",o--;return i[n+1]="1",i=i.slice(0,n+2),this.ecache[t]=i.join(""),this.ecache[t]},this.decode=function(e){if(""==e)return 0;for(var t=(e=e.substring(0,e.length-1)).length,n=0,i=0;i<t;i++)"1"==e.substring(i,i+1)&&(n+=this.fibo(i));return n}}function Qi(e,t){this.rpl=function(e,t,n){return e.split(t).join(n)},this.repeat=function(e){for(var t="",n=0;n<e;n++)t+="0";return t},this.padLeft=function(e,t){return this.repeat(Math.max(0,t))+e},this.base64toBits=function(e){for(e=this.rpl(e,"%2B","+"),e=this.rpl(e,"%2F","/"),e=this.rpl(e,"-","+"),e=this.rpl(e,"_","/"),e=this.rpl(e," ","+"),e=this.rpl(e,"%2B","+");e.length%4!=0;)e+="=";var t;try{t=window.atob2(e)}catch(n){try{t=window.atob(e)}catch(e){t=""}}for(var n="",i=0;i<t.length;i++){var o=t.charCodeAt(i).toString(2);n+=this.padLeft(o,8-o.length)}return n},this.read=function(e){var t=this.cs.substring(0,e);return this.cs=this.cs.substring(e,99999999),t},this.readInt=function(e){return parseInt(this.read(e),2)},this.readIntFibo=function(){var e=this.cs.substring(0,this.cs.indexOf("11")+2);return""!=e?(this.cs=this.cs.substring(e.length),this.fibo.decode(e)):""},this.readDate=function(){return new Date(100*this.readInt(36))},this.readLang=function(){return this.readString(2).toLowerCase()},this.readString=function(e){for(var t="",n=0;n<e;n++)t+=String.fromCharCode(this.readInt(6)+65);return t},this.readBool=function(){return 1===parseInt(this.read(1),2)},this.readBitField=function(e){var t=this.read(e);if(""===t)return[];t=t.split("");for(var n=[],i=0;i<e;i++)1===parseInt(t[i])&&-1===n.indexOf(i+1)&&n.push(i+1);return n},this.readNBitField=function(e,t){for(var n=[],i=1;i<=e;i++)n.push(this.readInt(t));return n},this.readVarBitField=function(){var e=this.readInt(16);return this.readBitField(e)},this.readRange=function(){for(var e=this.readInt(12),t=[],n=0,i=0,o=0;o<e;o++){this.readBool()?(n=this.readInt(16),i=this.readInt(16)):i=n=this.readInt(16);for(var a=n;a<=i;a++)a<1||t.push(a)}return t},this.readRangeFibo=function(){for(var e=this.readInt(12),t=[],n=0,i=0,o=0,a=0;a<e;a++){o=i=this.readBool()?(n=this.readIntFibo()+o)+this.readIntFibo():n=this.readIntFibo()+o;for(var r=n;r<=i;r++)r<1||t.push(r)}return t},this.readOptimizedRange=function(){return!0===this.readBool()?this.readRangeFibo():this.readVarBitField()},this.readOptimizedIntRange=function(){var e=this.readInt(16);return!0===this.readBool()?this.readRange():this.readBitField(e)},this.cs="string"==typeof t&&""!==t?t:this.base64toBits(e),this.fibo=new $i}function Zi(){this.cs="",this.fibo=new $i,this.clear=function(){this.cs=""},this.getCS=function(){return this.cs},this.setCS=function(e){this.cs=e},this.getBase64CS=function(){return this.bitsToBase64(this.cs)},this.rpl=function(e,t,n){return e.split(t).join(n)},this.repeat=function(e){for(var t="",n=0;n<e;n++)t+="0";return t},this.padRight=function(e,t){return e+this.repeat(Math.max(0,t))},this.bitsToBase64=function(e){if(e){e=this.padRight(e,7-(e.length+7)%8);for(var t="",n=0;n<e.length;n+=8)t+=String.fromCharCode(parseInt(e.substring(n,n+8),2));var i=t;try{t=window.btoa2(i)}catch(e){try{t=window.btoa(i)}catch(e){t=""}}return t=this.rpl(t,"+","-"),t=this.rpl(t,"/","_"),t=(t=this.rpl(t," ","+")).replace(/=+$/,"")}return null},this.padLeft=function(e,t){return this.repeat(Math.max(0,t))+e},this.repeat=function(e){for(var t="",n=0;n<e;n++)t+="0";return t},this.getMaxId=function(e){for(var t=0,n=0;n<e.length;n++)t<e[n]&&(t=e[n]);return t},this.write=function(e){this.cs+=e},this.writeBool=function(e){this.writeInt(!0===e||1===e?1:0,1)},this.writeInt=function(e,t){var n;t>=(n=parseInt(e,10).toString(2)).length&&(n=this.padLeft(n,t-n.length)),n.length>t&&(n=n.substring(0,t)),this.write(n)},this.writeDate=function(e){e instanceof Date?this.writeInt(e.getTime()/100,36):this.writeInt(e,36)},this.writeString=function(e,t){for(e=e.substring(e,t);e.length<t;)e+=" ";for(var n=0;n<e.length;n++)this.writeInt(e.substring(n,n+1).toUpperCase().charCodeAt(0)-65,6)},this.writeLang=function(e){this.writeString(e.substring(0,2),2)},this.writeBitField=function(e,t){for(var n=1;n<=t;n++)this.writeBool(-1!==cmp_fnd(e,n))},this.writeNBitField=function(e,t,n){for(var i=0;i<t;i++)this.writeInt(i in e?parseInt(e[i]):0,n)},this.writeVarBitField=function(e){var t=this.getMaxId(e);this.writeInt(t,16),this.writeBitField(e,t)},this.ids2range=function(e){for(e.sort((function(e,t){return parseInt(e)<parseInt(t)?-1:parseInt(e)>parseInt(t)?1:0}));e.length>0&&0===e[0];)e.shift();for(var t=[],n=0,i=0,o=0,a=0,r=0;r<e.length;r++)o=parseInt(e[r]),0===r&&(n=o,i=o),i<o-1&&(a=i,t.push({s:n,e:i}),n=o),i=o;return n>0&&a!=i&&t.push({s:n,e:i}),t},this.writeRange=function(e){var t=this.ids2range(e);this.writeInt(t.length,12);for(var n=0;n<t.length;n++)t[n].s<t[n].e?(this.writeBool(!0),this.writeInt(t[n].s,16),this.writeInt(t[n].e,16)):(this.writeBool(!1),this.writeInt(t[n].s,16))},this.writeBitFieldOrRange=function(e){var t=this.getMaxId(e);this.writeInt(t,16);var n=this.cs;this.cs="",this.writeBool(!1),this.writeBitField(e,t);var i=this.cs;this.cs="",this.writeBool(!0),this.writeRange(e);var o=this.cs;i.length>o.length?n+=o:n+=i,this.cs=n},this.writeIntFibo=function(e){this.cs+=this.fibo.encode(e)},this.writeRangeFibo=function(e){var t=this.ids2range(e),n=t.length;this.writeInt(n,12);for(var i=0,o=0;o<n;o++)t[o].s<t[o].e?(this.writeBool(!0),this.writeIntFibo(t[o].s-i),this.writeIntFibo(t[o].e-t[o].s),i=t[o].e):(this.writeBool(!1),this.writeIntFibo(t[o].s-i),i=t[o].s)},this.writeOptimizedRange=function(e){var t=this.cs;this.cs=t,this.writeBool(0),this.writeVarBitField(e);var n=this.cs;this.cs=t,this.writeBool(1),this.writeRangeFibo(e);var i=this.cs;this.cs=n.length<=i.length?n:i},this.writeOptimizedIntRange=function(e){var t=this.getMaxId(e),n=this.cs;this.cs=n,this.writeInt(t,16),this.writeBool(0),this.writeBitField(e,t);var i=this.cs;this.cs=n,this.writeInt(t,16),this.writeBool(1),this.writeRange(e);var o=this.cs;this.cs=i.length<=o.length?i:o}}function eo(e,t,n){"boolean"!=typeof n&&(n=!1),this.sectionID=e,this.apiPrefix=t,this.isCustomFormat=n,this.segmentDelimiter=".",this.fieldDefintion=[],this.input="",this.fieldTypes={bool:{read:"readBool",write:"writeBool",jstype:"boolean"},int:{read:"readInt",write:"writeInt",jstype:"number",requireLength:!0},fibo:{read:"readIntFibo",write:"writeIntFibo",jstype:"number"},date:{read:"readDate",write:"writeDate",jstype:"Date"},datetime:{read:"readDate",write:"writeDate",jstype:"Date"},lang:{read:"readLang",write:"writeLang",jstype:"string"},string:{read:"readString",write:"writeString",jstype:"string",requireLength:!0},bits:{read:"readBitField",write:"writeBitField",jstype:"number[]",requireLength:!0},varbits:{read:"readVarBitField",write:"writeVarBitField",jstype:"number[]"},nbits:{read:"readNBitField",write:"writeNBitField",jstype:"number[]",requireLength:!0,requireSize:!0},range:{read:"readRange",write:"writeRange",jstype:"number[]"},rangefibo:{read:"readRangeFibo",write:"writeRangeFibo",jstype:"number[]"},optimizedrange:{read:"readOptimizedRange",write:"writeOptimizedRange",jstype:"number[]"},optimizedintrange:{read:"readOptimizedIntRange",write:"writeOptimizedIntRange",jstype:"number[]"}},this.clone=function(){var e=new eo(this.sectionID,this.apiPrefix,this.isCustomFormat);return e.fieldDefintion=JSON.parse(JSON.stringify(this.fieldDefintion)),e.input=this.input,e},this.addField=function(e,t,n,i,o,a,r){return"number"!=typeof n&&(n=0),"number"!=typeof i&&(i=0),"number"!=typeof o&&(o=0),"boolean"!=typeof a&&(a=!1),null!=r&&a||(r=!1),t in this.fieldTypes&&this.fieldDefintion.push({name:e,definitiontype:t,length:n,size:o,segment:i,value:null,hasfixedvalue:a,fixedvalue:r}),this},this.read=function(e){if(this.input=e,this.isCustomFormat)return!1;for(var t=e.split(this.segmentDelimiter),n=0;n<t.length;n++)for(var i=new Qi(t[n]),o=0;o<this.fieldDefintion.length;o++)if(this.fieldDefintion[o].segment==n){var a=this.fieldTypes[this.fieldDefintion[o].definitiontype];this.fieldDefintion[o].value=this.sanitizeType(i[a.read](this.fieldDefintion[o].length,this.fieldDefintion[o].size),a.jstype)}},this.write=function(){if(this.isCustomFormat)return this.input;for(var e=[],t=0;t<this.fieldDefintion.length;t++){this.fieldDefintion[t].segment in e||(e[this.fieldDefintion[t].segment]=new Zi);var n=this.fieldTypes[this.fieldDefintion[t].definitiontype],i=this.fieldDefintion[t].value;this.fieldDefintion[t].hasfixedvalue&&(i=this.fieldDefintion[t].fixedvalue);var o=this.fieldDefintion[t].length,a=this.fieldDefintion[t].size;e[this.fieldDefintion[t].segment][n.write](this.sanitizeType(i,n.jstype),o,a)}for(var r=0;r<e.length;r++)e[r]=e[r].getBase64CS();return this.input=e.join(this.segmentDelimiter),this.input},this.sanitizeType=function(e,t){if("[]"==t.substring(t.length-2)){t=t.substring(0,t.length-2),Array.isArray(e)||(e=[]);for(var n=0;n<e.length;n++)e[n]=this.sanitizeType(e[n],t);return e}switch(t){case"boolean":case"bool":return!0===e||1===e;case"number":case"int":return isNaN(parseInt(e))?0:parseInt(e);case"float":return isNaN(parseFloat(e))?0:parseFloat(e);case"string":return"string"==typeof e?e:"number"==typeof e?e+"":"";case"Date":case"date":case"datetime":return e instanceof Date&&!isNaN(e)?e:"number"==typeof e?new Date(e):new Date}return null},this.setValue=function(e,t){for(var n=!1,i=0;i<this.fieldDefintion.length;i++)if(this.fieldDefintion[i].name==e){var o=this.fieldTypes[this.fieldDefintion[i].definitiontype];this.fieldDefintion[i].value=this.sanitizeType(t,o.jstype),n=!0;break}return n},this.getValue=function(e){for(var t=0;t<this.fieldDefintion.length;t++)if(this.fieldDefintion[t].name==e){var n=this.fieldTypes[this.fieldDefintion[t].definitiontype],i=this.fieldDefintion[t].value;return this.fieldDefintion[t].hasfixedvalue&&(i=this.fieldDefintion[t].fixedvalue),this.sanitizeType(i,n.jstype)}return null},this.toObject=function(){for(var e={},t=0;t<this.fieldDefintion.length;t++){var n=this.fieldTypes[this.fieldDefintion[t].definitiontype];e[this.fieldDefintion[t].name]=this.sanitizeType(this.fieldDefintion[t].value,n.jstype)}return e}}var to=new eo(2,"tcfeuv2").addField("Version","int",6).addField("Created","datetime").addField("LastUpdated","datetime").addField("CmpId","int",12).addField("CmpVersion","int",12).addField("ConsentScreen","int",6).addField("ConsentLanguage","string",2).addField("VendorListVersion","int",12).addField("TcfPolicyVersion","int",6).addField("IsServiceSpecific","bool").addField("UseNonStandardStacks","bool").addField("SpecialFeatureOptIns","bits",12).addField("PurposeConsent","bits",24).addField("PurposesLITransparency","bits",24).addField("PurposeOneTreatment","bool").addField("PublisherCC","string",2).addField("VendorConsent","optimizedintrange").addField("VendorLegitimateInterest","optimizedintrange").addField("NumPubRestrictions","int",12),no=new eo(7,"usnat").addField("Version","int",6).addField("SharingNotice","int",2).addField("SaleOptOutNotice","int",2).addField("SharingOptOutNotice","int",2).addField("TargetedAdvertisingOptOutNotice","int",2).addField("SensitiveDataProcessingOptOutNotice","int",2).addField("SensitiveDataLimitUseNotice","int",2).addField("SaleOptOut","int",2).addField("SharingOptOut","int",2).addField("TargetedAdvertisingOptOut","int",2).addField("SensitiveDataProcessing","nbits",12,0,2).addField("KnownChildSensitiveDataConsents","nbits",2,0,2).addField("PersonalDataConsents","int",2).addField("MspaCoveredTransaction","int",2).addField("MspaOptOutOptionMode","int",2).addField("MspaServiceProviderMode","int",2).addField("SubsectionType","int",2,1,0,!0,1).addField("Gpc","bool",1,1);function io(e){this.Version=1,this.SubVersions=[],this.Created="cmp_debug_overridetime"in window?window.cmp_debug_overridetime:new Date(1),this.LastUpdated="cmp_debug_overridetime"in window?window.cmp_debug_overridetime:new Date(1),this.CmpId=0,this.CmpVersion=0,this.ConsentScreen=0,this.ConsentLanguage="en",this.VendorListVersion=0,this.PurposesAllowed=[],this.VendorsAllowed=[],this.TcfPolicyVersion=2,this.IsServiceSpecific=1,this.UseNonStandardStacks=0,this.SpecialFeatureOptIns=[],this.PurposesLI=[],this.PurposeOneTreatment=0,this.PublisherCC="",this.VendorsLI=[],this.PublisherRestrictions=[],this.hasDisclosedVendors=!1,this.DisclosedVendors=[],this.hasAllowedVendors=!1,this.AllowedVendors=[],this.hasPublisherTC=!1,this.PubPurposesConsent=[],this.PubPurposesLI=[],this.CustomPurposesConsent=[],this.CustomPurposesLI=[],this.hasUserChoice=!1,this.CustomVendorsAllowed=[],this.gppManifests=[to,no],this.gppVersion=1,this.gppSectionIds=[],this.gppSections=[],this.newFromManifest=function(e){for(var t=0;t<this.gppManifests.length;t++)if(this.gppManifests[t].sectionID==e)return this.gppManifests[t].clone()},this.fromString=function(e){if("B"==e.substring(0,1)){var t=new Qi(e);this.Version=t.readInt(6),this.SubVersions=[1],this.Created=t.readDate(),this.LastUpdated=t.readDate(),this.CmpId=t.readInt(12),this.CmpVersion=t.readInt(12),this.ConsentScreen=t.readInt(6),this.ConsentLanguage=t.readLang(),this.VendorListVersion=t.readInt(12),this.PurposesAllowed=t.readBitField(24);var n=t.readInt(16);t.readBool()?(t.readBool(),this.VendorsAllowed=t.readRange()):this.VendorsAllowed=t.readBitField(n)}else if("C"==e.substring(0,1)){var i=e.split(".");t=new Qi(e=i[0]);this.Version=t.readInt(6),this.SubVersions=[2],this.Created=t.readDate(),this.LastUpdated=t.readDate(),this.CmpId=t.readInt(12),this.CmpVersion=t.readInt(12),this.ConsentScreen=t.readInt(6),this.ConsentLanguage=t.readLang(),this.VendorListVersion=t.readInt(12),this.TcfPolicyVersion=t.readInt(6),this.IsServiceSpecific=t.readBool(),this.UseNonStandardStacks=t.readBool(),this.SpecialFeatureOptIns=t.readBitField(12),this.PurposesAllowed=t.readBitField(24),this.PurposesLI=t.readBitField(24),this.PurposeOneTreatment=t.readBool(),this.PublisherCC=t.readLang();n=t.readInt(16);t.readBool()?this.VendorsAllowed=t.readRange():this.VendorsAllowed=t.readBitField(n);n=t.readInt(16);if(t.readBool()?this.VendorsLI=t.readRange():this.VendorsLI=t.readBitField(n),this.IsServiceSpecific){this.PublisherRestrictions=[];for(var o=t.readInt(12),a=0;a<o;a++){var r=t.readInt(6),s=t.readInt(2),c=t.readRange();this.PublisherRestrictions.push({purposeID:r,type:s,vendors:c})}}this.hasDisclosedVendors=!1,this.hasAllowedVendors=!1,this.hasPublisherTC=!1;for(a=1;a<i.length;a++){var l=(t=new Qi(i[a])).readInt(3);if(1==l){this.hasDisclosedVendors=!0;n=t.readInt(16);t.readBool()?this.DisclosedVendors=t.readRange():this.DisclosedVendors=t.readBitField(n)}else if(2==l){this.hasAllowedVendors=!0;n=t.readInt(16);t.readBool()?this.AllowedVendors=t.readRange():this.AllowedVendors=t.readBitField(n)}else if(3==l){this.hasPublisherTC=!0,this.PubPurposesConsent=t.readBitField(24),this.PubPurposesLI=t.readBitField(24);var u=t.readInt(6);this.CustomPurposesConsent=t.readBitField(u),this.CustomPurposesLI=t.readBitField(u)}}}else if("D"==e.substring(0,1)){var p=(i=e.split("~"))[0];t=new Qi("",this.fromB64ws(p));this.Version=t.readInt(6),this.SubVersions=[],this.gppVersion=t.readInt(6),this.gppSectionIds=t.readRangeFibo(),this.gppSections=[];for(a=1;a<i.length;a++){for(var d=this.gppSectionIds.length>=a?this.gppSectionIds[a-1]:0,h=i[a],f=null,b=0;b<this.gppManifests.length;b++)if(this.gppManifests[b].sectionID==d){f=this.gppManifests[b].clone();break}if(null==f&&(f=new eo(d,"",!0)),f.read(h),2==d){var g=new io(h);this.SubVersions.push(2),this.Created=g.Created,this.LastUpdated=g.LastUpdated,this.CmpId=g.CmpId,this.CmpVersion=g.CmpVersion,this.ConsentScreen=g.ConsentScreen,this.ConsentLanguage=g.ConsentLanguage,this.VendorListVersion=g.VendorListVersion,this.PurposesAllowed=g.PurposesAllowed,this.VendorsAllowed=g.VendorsAllowed,this.TcfPolicyVersion=g.TcfPolicyVersion,this.IsServiceSpecific=g.IsServiceSpecific,this.UseNonStandardStacks=g.UseNonStandardStacks,this.SpecialFeatureOptIns=g.SpecialFeatureOptIns,this.PurposesLI=g.PurposesLI,this.PurposeOneTreatment=g.PurposeOneTreatment,this.PublisherCC=g.PublisherCC,this.VendorsLI=g.VendorsLI,this.PublisherRestrictions=g.PublisherRestrictions}else 5==d&&(this.SubVersions.push(5),this.Created=f.getValue("Created"),this.LastUpdated=f.getValue("LastUpdated"),this.CmpId=f.getValue("CmpId"),this.CmpVersion=f.getValue("CmpVersion"),this.ConsentScreen=f.getValue("ConsentScreen"),this.ConsentLanguage=f.getValue("ConsentLanguage"),this.VendorListVersion=f.getValue("VendorListVersion"),this.PurposesAllowed=f.getValue("PurposesExpressConsent"),this.VendorsAllowed=f.getValue("VendorExpressConsent"),this.TcfPolicyVersion=f.getValue("TcfPolicyVersion"),this.UseNonStandardStacks=f.getValue("UseNonStandardStacks"),this.SpecialFeatureOptIns=f.getValue("SpecialFeatureExpressConsent"),this.PurposesLI=f.getValue("PurposesImpliedConsent"),this.VendorsLI=f.getValue("VendorImpliedConsent"));this.gppSections.push(f)}}else if("a"==e.substring(0,1)){(t=new Qi(e)).readInt(6),this.Version=t.readInt(6),this.SubVersions=[99],1==this.Version&&(this.Created=t.readDate(),this.hasUserChoice=t.readBool(),this.PurposesAllowed=t.readRange(),this.VendorsAllowed=t.readRange(),this.CustomVendorsAllowed=t.readRange())}},this.toString=function(e){if("boolean"!=typeof e&&(e=!0),e){if(this.Version<=1){for(var t=0,n=0;n<this.VendorsAllowed.length;n++)t<this.VendorsAllowed[n]&&(t=this.VendorsAllowed[n]);(m=new Zi).writeInt(1,6),m.writeDate("cmp_debug_overridetime"in window?window.cmp_debug_overridetime:this.Created),m.writeDate("cmp_debug_overridetime"in window?window.cmp_debug_overridetime:this.LastUpdated),m.writeInt(this.CmpId,12),m.writeInt(this.CmpVersion,12),m.writeInt(this.ConsentScreen,6),m.writeLang(this.ConsentLanguage),m.writeInt(this.VendorListVersion,12),m.writeBitField(this.PurposesAllowed,24),m.writeInt(t,16);var i=m.getCS();m.clear(),m.writeBool(!1),m.writeBitField(this.VendorsAllowed,t);var o=i+m.getCS();m.clear(),m.writeBool(!0),m.writeBool(!1),m.writeRange(this.VendorsAllowed);var a=i+m.getCS();return o.length>a.length?m.setCS(a):m.setCS(o),m.getBase64CS()}if(2==this.Version){if((m=new Zi).writeInt(2,6),this.LastUpdated.setHours(0),this.LastUpdated.setMinutes(0),this.LastUpdated.setSeconds(0),this.LastUpdated.setMilliseconds(0),m.writeDate("cmp_debug_overridetime"in window?window.cmp_debug_overridetime:this.LastUpdated),m.writeDate("cmp_debug_overridetime"in window?window.cmp_debug_overridetime:this.LastUpdated),m.writeInt(this.CmpId,12),m.writeInt(this.CmpVersion,12),m.writeInt(this.ConsentScreen,6),m.writeLang(this.ConsentLanguage),m.writeInt("cmp_debug_gvlversion"in window?window.cmp_debug_gvlversion:this.VendorListVersion,12),m.writeInt(this.TcfPolicyVersion,6),m.writeBool(!0),m.writeBool(this.UseNonStandardStacks),m.writeBitField(this.SpecialFeatureOptIns,12),m.writeBitField(this.PurposesAllowed,24),m.writeBitField(this.PurposesLI,24),m.writeBool(this.PurposeOneTreatment),2!=this.PublisherCC.length&&(this.PublisherCC="EU"),m.writeLang(this.PublisherCC),m.writeBitFieldOrRange(this.VendorsAllowed),m.writeBitFieldOrRange(this.VendorsLI),this.IsServiceSpecific){m.writeInt(this.PublisherRestrictions.length,12);for(n=0;n<this.PublisherRestrictions.length;n++){var r=this.PublisherRestrictions[n];m.writeInt(r.purposeID,6),m.writeInt(r.type,2),m.writeRange(r.vendors)}}else m.writeInt(0,12);var s=m.getBase64CS(),c="",l="",u="";if(this.hasDisclosedVendors&&((m=new Zi).writeInt(1,3),m.writeBitFieldOrRange(this.DisclosedVendors),c=m.getBase64CS()),this.hasAllowedVendors&&((m=new Zi).writeInt(2,3),m.writeBitFieldOrRange(this.AllowedVendors),l=m.getBase64CS()),this.hasPublisherTC){(m=new Zi).writeInt(3,3),m.writeBitField(this.PubPurposesConsent,24),m.writeBitField(this.PubPurposesLI,24);var p=0;for(n=0;n<this.CustomPurposesConsent.length;n++)this.CustomPurposesConsent[n]>p&&(p=this.CustomPurposesConsent[n]);for(n=0;n<this.CustomPurposesLI.length;n++)this.CustomPurposesLI[n]>p&&(p=this.CustomPurposesLI[n]);m.writeInt(p,6),m.writeBitField(this.CustomPurposesConsent,p),m.writeBitField(this.CustomPurposesLI,p),u=m.getBase64CS()}return s+(c.length>0?".":"")+c+(l.length>0?".":"")+l+(u.length>0?".":"")+u}if(3==this.Version){for(n=0;n<this.SubVersions.length;n++)if(2==this.SubVersions[n]){var d=new io("");d.Version=2,d.Created=this.Created,d.LastUpdated=this.LastUpdated,d.CmpId=this.CmpId,d.CmpVersion=this.CmpVersion,d.ConsentScreen=this.ConsentScreen,d.ConsentLanguage=this.ConsentLanguage,d.VendorListVersion=this.VendorListVersion,d.PurposesAllowed=this.PurposesAllowed,d.VendorsAllowed=this.VendorsAllowed,d.TcfPolicyVersion=this.TcfPolicyVersion,d.IsServiceSpecific=this.IsServiceSpecific,d.UseNonStandardStacks=this.UseNonStandardStacks,d.SpecialFeatureOptIns=this.SpecialFeatureOptIns,d.PurposesLI=this.PurposesLI,d.PurposeOneTreatment=this.PurposeOneTreatment,d.PublisherCC=this.PublisherCC,d.VendorsLI=this.VendorsLI,d.PublisherRestrictions=this.PublisherRestrictions;var h=d.toString();(f=this.newFromManifest(2)).isCustomFormat=!0,f.read(h),-1==this.gppSectionIds.indexOf(2)?(this.gppSections.push(f),this.gppSectionIds.push(2)):this.gppSections[this.gppSectionIds.indexOf(2)]=f}else if(5==this.SubVersions[n]){var f;(f=this.newFromManifest(5)).setValue("Version",1),f.setValue("Created",this.Created),f.setValue("LastUpdated",this.LastUpdated),f.setValue("CmpId",this.CmpId),f.setValue("CmpVersion",this.CmpVersion),f.setValue("ConsentScreen",this.ConsentScreen),f.setValue("ConsentLanguage",this.ConsentLanguage),f.setValue("VendorListVersion",this.VendorListVersion),f.setValue("PurposesExpressConsent",this.PurposesAllowed),f.setValue("VendorExpressConsent",this.VendorsAllowed),f.setValue("TcfPolicyVersion",this.TcfPolicyVersion),f.setValue("UseNonStandardStacks",this.UseNonStandardStacks),f.setValue("SpecialFeatureExpressConsent",this.SpecialFeatureOptIns),f.setValue("PurposesImpliedConsent",this.PurposesLI),f.setValue("VendorImpliedConsent",this.VendorsLI),-1==this.gppSectionIds.indexOf(5)?(this.gppSections.push(f),this.gppSectionIds.push(5)):this.gppSections[this.gppSectionIds.indexOf(5)]=f}(m=new Zi).writeInt(3,6),m.writeInt(this.gppVersion,6);var b=[],g=[];this.gppSections.sort((function(e,t){return parseInt(e.sectionID)<parseInt(t.sectionID)?-1:parseInt(e.sectionID)>parseInt(t.sectionID)?1:0}));for(n=0;n<this.gppSections.length;n++)-1==b.indexOf(this.gppSections[n].sectionID)&&(b.push(this.gppSections[n].sectionID),g.push(this.gppSections[n].write()));return this.gppSectionIds=b,m.writeRangeFibo(b),g.unshift(this.toB64ws(m.getCS())),g.join("~")}}else{var m;if(this.Version<=1)return(m=new Zi).writeInt(26,6),m.writeInt(1,6),m.writeDate("cmp_debug_overridetime"in window?window.cmp_debug_overridetime:this.Created),m.writeBool(this.hasUserChoice),m.writeRange(this.PurposesAllowed),m.writeRange(this.VendorsAllowed),m.writeRange(this.CustomVendorsAllowed),m.getBase64CS()}},this.setGppField=function(e,t,n){for(var i=-1,o=0;o<this.gppSections.length;o++)this.gppSections[o].apiPrefix==e&&(i=o);if(-1==i)for(o=0;o<this.gppManifests.length;o++)if(this.gppManifests[o].apiPrefix==e){this.gppSections.push(this.gppManifests[o].clone()),i=this.gppSections.length-1;break}return!!this.gppSections[i]&&this.gppSections[i].setValue(t,n)},this.getGppField=function(e,t){for(var n=-1,i=0;i<this.gppSections.length;i++)this.gppSections[i].apiPrefix==e&&(n=i);return this.gppSections[n]?this.gppSections[n].getValue(t):null},this.hasGppField=function(e,t){return null===this.getGppField(e,t)},this.b64wschars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",this.toB64ws=function(e){for(var t="";e.length%6!=0;)e+="0";for(var n=0;n<e.length;n+=6){var i=e.substring(n,n+6),o=parseInt(i,2);t+=this.b64wschars.substring(o,o+1)}return t},this.fromB64ws=function(e){for(var t="",n=0;n<e.length;n++){var i=e.charAt(n),o=this.b64wschars.indexOf(i);if(-1==o)break;for(var a=o.toString(2);a.length<6;)a="0"+a;t+=a}return t},"string"==typeof e&&""!=e&&this.fromString(e)}var oo=function(){return o((function e(t,i){n(this,e),this.manager=t,this.model=i}),[{key:"sectionId",value:function(){throw new Error("Not implemented")}},{key:"update",value:function(){throw new Error("Not implemented")}},{key:"getString",value:function(){throw new Error("Not implemented")}},{key:"getSection",value:function(){throw new Error("Not implemented")}},{key:"getField",value:function(){throw new Error("Not implemented")}},{key:"customCommands",value:function(){return{}}}],[{key:"sectionName",value:function(){throw new Error("Not implemented")}}])}(),ao=function(){return o((function e(t){n(this,e),this.model=t,this.plugins={}}),[{key:"register",value:function(e){if(!((null==e?void 0:e.prototype)instanceof oo)||(null==e?void 0:e.prototype)===oo.prototype)throw new TypeError("plugin is not valid");var t=e.sectionName();t in this.plugins?console.warn("A plugin for section ".concat(t," already exists")):this.plugins[t]=new e(this,this.model)}},{key:"get",value:function(e){return this.plugins[e]}},{key:"sectionNames",value:function(){return Object.keys(this.plugins)}},{key:"sectionIds",value:function(){var e=this;return this.sectionNames().map((function(t){return e.plugins[t].sectionId()}))}}])}(),ro=function(){return o((function e(t,i){var o=this,a=t.cmpId,r=t.plugins,s=t.applicableApis;n(this,e),this.model=new qi(a,i),this.model.setFireEvent(this.fireEvent.bind(this));var c=new ao(this.model.data);this.pluginManager=c,r.forEach((function(e){return c.register(e)})),this.model.data.supportedAPIs=c.sectionNames(),this.model.data.supportedAPIs_1_1=c.sectionNames().map((function(e){return"".concat(c.get(e).sectionId(),":").concat(e)})),this.model.data.applicableSections=s.filter((function(e){return-1!==o.model.data.supportedAPIs.indexOf(e)})).map((function(e){return c.get(e).sectionId()})),this.callResponder=new Xi(this.model,c,i),this.fireEvent("cmpStatus",this.model.data.cmpStatus)}),[{key:"fireEvent",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=Yi.reduce((function(e,t){return e[t]=n.model.getPingData(t),e}),{}),a=Ki(i);this.callResponder.events.forEach((function(n){var i=n.id,r=n.callback,s=n.version,c=Ki(void 0===s?1:s);try{a&&a!==c||r({eventName:e,listenerId:i,data:t,pingData:o[c]})}catch(t){console.error("Error occured in while handling event '".concat(e,"' by listener ").concat(i,":"),t)}}))}},{key:"setParsedSections",value:function(e){var t=this;this.model.data.parsedSections={},e.forEach((function(e){var n=null==e?void 0:e.parsedSection,i=null==n?void 0:n.apiPrefix;t.model.data.parsedSections[i]=null==n?void 0:n.toObject()}))}},{key:"update",value:function(e,t){var n,i,o=this,a=e.updatedSections,s=e.displayStatus,c=[];if(this.model.data.cmpStatus===Ri&&(this.model.data.cmpStatus=Vi,c.push(["cmpStatus",Vi])),s&&s!==this.model.data.cmpDisplayStatus&&(this.model.data.cmpDisplayStatus=s,c.push(["cmpDisplayStatus",s])),a){Object.keys(a).forEach((function(e){var t=o.pluginManager.get(e);t&&(t.update(a[e])&&(o.model.data.gppUpdatedSectionIds[t.sectionId()]=!0,c.push(["sectionChange",e])))}));var l=this.pluginManager.sectionNames().map((function(e){return o.pluginManager.get(e)})).filter((function(e){return e.sectionId()in o.model.data.gppUpdatedSectionIds}));this.setParsedSections(l),this.model.data.gppString=(n=l,(i=new io).Version=3,i.gppSections=n.map((function(e){return{sectionID:e.sectionId(),write:function(){return e.getString()}}})),i.toString())}if(t!==Wi){var u=r(r({},Gi,Mi),Hi,Ui);if(this.model.data.signalStatus!==u[t])switch(this.model.data.signalStatus=u[t],t){case Gi:c.unshift(["signalStatus",this.model.data.signalStatus,"1.1"]);break;case Hi:c.push(["signalStatus",this.model.data.signalStatus,"1.1"])}}c.forEach((function(e){return o.fireEvent.apply(o,b(e))}))}}])}();function so(){this.ncache=[1,2,3,5,8,13,21,34,55,89,144,233],this.ecache=[],this.maxfibo=30,this.fibo=function(e){if(e in this.ncache)return this.ncache[e];var t=e-1,n=e-2;if(t in this.ncache&&n in this.ncache)return this.ncache[e]=this.ncache[t]+this.ncache[n],this.ncache[e];for(var i=0,o=1,a=0,r=0;r<e;r++)a=i,i=o,o+=a;return this.ncache[e]=i,i},this.largeOrEqual=function(e){for(var t=0,n=1;n<this.maxfibo&&this.fibo(n)<=e;n++)t=n;return t},this.encode=function(e){if(e<=0)return"";if(e in this.ecache)return this.ecache[e];for(var t=e,n=this.largeOrEqual(e),i=[],o=0;o<n+3;o++)i[o]=0;o=n;for(var a=0;e>0&&a<=this.maxfibo&&o>=0;)for(a++,i[o]="1",e-=this.fibo(o),o--;o>=0&&this.ncache[o]>e;)i[o]="0",o--;return i[n+1]="1",i=i.slice(0,n+2),this.ecache[t]=i.join(""),this.ecache[t]},this.decode=function(e){if(""==e)return 0;for(var t=(e=e.substring(0,e.length-1)).length,n=0,i=0;i<t;i++)"1"==e.substring(i,i+1)&&(n+=this.fibo(i));return n}}function co(e,t){this.rpl=function(e,t,n){return e.split(t).join(n)},this.repeat=function(e){for(var t="",n=0;n<e;n++)t+="0";return t},this.padLeft=function(e,t){return this.repeat(Math.max(0,t))+e},this.base64toBits=function(e){for(e=this.rpl(e,"%2B","+"),e=this.rpl(e,"%2F","/"),e=this.rpl(e,"-","+"),e=this.rpl(e,"_","/"),e=this.rpl(e," ","+"),e=this.rpl(e,"%2B","+");e.length%4!=0;)e+="=";var t;try{t=window.atob2(e)}catch(n){try{t=window.atob(e)}catch(e){t=""}}for(var n="",i=0;i<t.length;i++){var o=t.charCodeAt(i).toString(2);n+=this.padLeft(o,8-o.length)}return n},this.read=function(e){var t=this.cs.substring(0,e);return this.cs=this.cs.substring(e,99999999),t},this.readInt=function(e){return parseInt(this.read(e),2)},this.readIntFibo=function(){var e=this.cs.substring(0,this.cs.indexOf("11")+2);return""!=e?(this.cs=this.cs.substring(e.length),this.fibo.decode(e)):""},this.readDate=function(){return new Date(100*this.readInt(36))},this.readLang=function(){return this.readString(2).toLowerCase()},this.readString=function(e){for(var t="",n=0;n<e;n++)t+=String.fromCharCode(this.readInt(6)+65);return t},this.readBool=function(){return 1===parseInt(this.read(1),2)},this.readBitField=function(e){var t=this.read(e);if(""===t)return[];t=t.split("");for(var n=[],i=0;i<e;i++)1===parseInt(t[i])&&-1===n.indexOf(i+1)&&n.push(i+1);return n},this.readNBitField=function(e,t){for(var n=[],i=1;i<=e;i++)n.push(this.readInt(t));return n},this.readVarBitField=function(){var e=this.readInt(16);return this.readBitField(e)},this.readRange=function(){for(var e=this.readInt(12),t=[],n=0,i=0,o=0;o<e;o++){this.readBool()?(n=this.readInt(16),i=this.readInt(16)):i=n=this.readInt(16);for(var a=n;a<=i;a++)a<1||t.push(a)}return t},this.readRangeFibo=function(){for(var e=this.readInt(12),t=[],n=0,i=0,o=0,a=0;a<e;a++){o=i=this.readBool()?(n=this.readIntFibo()+o)+this.readIntFibo():n=this.readIntFibo()+o;for(var r=n;r<=i;r++)r<1||t.push(r)}return t},this.readOptimizedRange=function(){return!0===this.readBool()?this.readRangeFibo():this.readVarBitField()},this.readOptimizedIntRange=function(){var e=this.readInt(16);return!0===this.readBool()?this.readRange():this.readBitField(e)},this.cs="string"==typeof t&&""!==t?t:this.base64toBits(e),this.fibo=new so}function lo(){this.cs="",this.fibo=new so,this.clear=function(){this.cs=""},this.getCS=function(){return this.cs},this.setCS=function(e){this.cs=e},this.getBase64CS=function(){return this.bitsToBase64(this.cs)},this.rpl=function(e,t,n){return e.split(t).join(n)},this.repeat=function(e){for(var t="",n=0;n<e;n++)t+="0";return t},this.padRight=function(e,t){return e+this.repeat(Math.max(0,t))},this.bitsToBase64=function(e){if(e){e=this.padRight(e,7-(e.length+7)%8);for(var t="",n=0;n<e.length;n+=8)t+=String.fromCharCode(parseInt(e.substring(n,n+8),2));var i=t;try{t=window.btoa2(i)}catch(e){try{t=window.btoa(i)}catch(e){t=""}}return t=this.rpl(t,"+","-"),t=this.rpl(t,"/","_"),t=(t=this.rpl(t," ","+")).replace(/=+$/,"")}return null},this.padLeft=function(e,t){return this.repeat(Math.max(0,t))+e},this.repeat=function(e){for(var t="",n=0;n<e;n++)t+="0";return t},this.getMaxId=function(e){for(var t=0,n=0;n<e.length;n++)t<e[n]&&(t=e[n]);return t},this.write=function(e){this.cs+=e},this.writeBool=function(e){this.writeInt(!0===e||1===e?1:0,1)},this.writeInt=function(e,t){var n;t>=(n=parseInt(e,10).toString(2)).length&&(n=this.padLeft(n,t-n.length)),n.length>t&&(n=n.substring(0,t)),this.write(n)},this.writeDate=function(e){e instanceof Date?this.writeInt(e.getTime()/100,36):this.writeInt(e,36)},this.writeString=function(e,t){for(e=e.substring(e,t);e.length<t;)e+=" ";for(var n=0;n<e.length;n++)this.writeInt(e.substring(n,n+1).toUpperCase().charCodeAt(0)-65,6)},this.writeLang=function(e){this.writeString(e.substring(0,2),2)},this.writeBitField=function(e,t){for(var n=1;n<=t;n++)this.writeBool(-1!==cmp_fnd(e,n))},this.writeNBitField=function(e,t,n){for(var i=0;i<t;i++)this.writeInt(i in e?parseInt(e[i]):0,n)},this.writeVarBitField=function(e){var t=this.getMaxId(e);this.writeInt(t,16),this.writeBitField(e,t)},this.ids2range=function(e){for(e.sort((function(e,t){return parseInt(e)<parseInt(t)?-1:parseInt(e)>parseInt(t)?1:0}));e.length>0&&0===e[0];)e.shift();for(var t=[],n=0,i=0,o=0,a=0,r=0;r<e.length;r++)o=parseInt(e[r]),0===r&&(n=o,i=o),i<o-1&&(a=i,t.push({s:n,e:i}),n=o),i=o;return n>0&&a!=i&&t.push({s:n,e:i}),t},this.writeRange=function(e){var t=this.ids2range(e);this.writeInt(t.length,12);for(var n=0;n<t.length;n++)t[n].s<t[n].e?(this.writeBool(!0),this.writeInt(t[n].s,16),this.writeInt(t[n].e,16)):(this.writeBool(!1),this.writeInt(t[n].s,16))},this.writeBitFieldOrRange=function(e){var t=this.getMaxId(e);this.writeInt(t,16);var n=this.cs;this.cs="",this.writeBool(!1),this.writeBitField(e,t);var i=this.cs;this.cs="",this.writeBool(!0),this.writeRange(e);var o=this.cs;i.length>o.length?n+=o:n+=i,this.cs=n},this.writeIntFibo=function(e){this.cs+=this.fibo.encode(e)},this.writeRangeFibo=function(e){var t=this.ids2range(e),n=t.length;this.writeInt(n,12);for(var i=0,o=0;o<n;o++)t[o].s<t[o].e?(this.writeBool(!0),this.writeIntFibo(t[o].s-i),this.writeIntFibo(t[o].e-t[o].s),i=t[o].e):(this.writeBool(!1),this.writeIntFibo(t[o].s-i),i=t[o].s)},this.writeOptimizedRange=function(e){var t=this.cs;this.cs=t,this.writeBool(0),this.writeVarBitField(e);var n=this.cs;this.cs=t,this.writeBool(1),this.writeRangeFibo(e);var i=this.cs;this.cs=n.length<=i.length?n:i},this.writeOptimizedIntRange=function(e){var t=this.getMaxId(e),n=this.cs;this.cs=n,this.writeInt(t,16),this.writeBool(0),this.writeBitField(e,t);var i=this.cs;this.cs=n,this.writeInt(t,16),this.writeBool(1),this.writeRange(e);var o=this.cs;this.cs=i.length<=o.length?i:o}}function uo(e,t,n){"boolean"!=typeof n&&(n=!1),this.sectionID=e,this.apiPrefix=t,this.isCustomFormat=n,this.subsectionDelimiter=".",this.fieldDefinition=[],this.input="",this.disabledCommands=[],this.fieldTypes={bool:{read:"readBool",write:"writeBool",jstype:"boolean"},int:{read:"readInt",write:"writeInt",jstype:"number",requireLength:!0},fibo:{read:"readIntFibo",write:"writeIntFibo",jstype:"number"},date:{read:"readDate",write:"writeDate",jstype:"Date"},datetime:{read:"readDate",write:"writeDate",jstype:"Date"},lang:{read:"readLang",write:"writeLang",jstype:"string"},string:{read:"readString",write:"writeString",jstype:"string",requireLength:!0},bits:{read:"readBitField",write:"writeBitField",jstype:"number[]",requireLength:!0},varbits:{read:"readVarBitField",write:"writeVarBitField",jstype:"number[]"},nbits:{read:"readNBitField",write:"writeNBitField",jstype:"number[]",requireLength:!0,requireSize:!0},range:{read:"readRange",write:"writeRange",jstype:"number[]"},rangefibo:{read:"readRangeFibo",write:"writeRangeFibo",jstype:"number[]"},optimizedrange:{read:"readOptimizedRange",write:"writeOptimizedRange",jstype:"number[]"},optimizedintrange:{read:"readOptimizedIntRange",write:"writeOptimizedIntRange",jstype:"number[]"}},this.clone=function(){var e=new uo(this.sectionID,this.apiPrefix,this.isCustomFormat);return e.fieldDefinition=JSON.parse(JSON.stringify(this.fieldDefinition)),e.input=this.input,e.disabledCommands=JSON.parse(JSON.stringify(this.disabledCommands)),e},this.addField=function(e,t,n,i,o,a,r){return"number"!=typeof n&&(n=0),"number"!=typeof i&&(i=0),"number"!=typeof o&&(o=0),"boolean"!=typeof a&&(a=!1),null!=r&&a||(r=!1),t in this.fieldTypes&&this.fieldDefinition.push({name:e,definitiontype:t,length:n,size:o,subsectionIndex:i,value:null,hasfixedvalue:a,fixedvalue:r,read:this.fieldTypes[t].read,write:this.fieldTypes[t].write,jstype:this.fieldTypes[t].jstype}),this},this.disableAPICommand=function(e){return this.disabledCommands.push(e),this},this.read=function(e){if(this.input=e,this.isCustomFormat)return!1;for(var t=e.split(this.subsectionDelimiter),n=0;n<t.length;n++)for(var i=new co(t[n]),o=0;o<this.fieldDefinition.length;o++)if(this.fieldDefinition[o].subsectionIndex==n){var a=this.fieldTypes[this.fieldDefinition[o].definitiontype];this.fieldDefinition[o].value=this.sanitizeType(i[a.read](this.fieldDefinition[o].length,this.fieldDefinition[o].size),a.jstype)}},this.write=function(){if(this.isCustomFormat)return this.input;for(var e=[],t=0;t<this.fieldDefinition.length;t++){this.fieldDefinition[t].subsectionIndex in e||(e[this.fieldDefinition[t].subsectionIndex]=new lo);var n=this.fieldTypes[this.fieldDefinition[t].definitiontype],i=this.fieldDefinition[t].value;this.fieldDefinition[t].hasfixedvalue&&(i=this.fieldDefinition[t].fixedvalue);var o=this.fieldDefinition[t].length,a=this.fieldDefinition[t].size;e[this.fieldDefinition[t].subsectionIndex][n.write](this.sanitizeType(i,n.jstype),o,a)}for(var r=0;r<e.length;r++)e[r]=e[r].getBase64CS();return this.input=e.join(this.subsectionDelimiter),this.input},this.sanitizeType=function(e,t){if("[]"==t.substring(t.length-2)){t=t.substring(0,t.length-2),Array.isArray(e)||(e=[]);for(var n=0;n<e.length;n++)e[n]=this.sanitizeType(e[n],t);return e}switch(t){case"boolean":case"bool":return!0===e||1===e;case"number":case"int":return isNaN(parseInt(e))?0:parseInt(e);case"float":return isNaN(parseFloat(e))?0:parseFloat(e);case"string":return"string"==typeof e?e:"number"==typeof e?e+"":"";case"Date":case"date":case"datetime":return e instanceof Date&&!isNaN(e)?e:"number"==typeof e?new Date(e):new Date}return null},this.setValue=function(e,t){for(var n=!1,i=0;i<this.fieldDefinition.length;i++)if(this.fieldDefinition[i].name==e){var o=this.fieldTypes[this.fieldDefinition[i].definitiontype];this.fieldDefinition[i].value=this.sanitizeType(t,o.jstype),n=!0;break}return n},this.getValue=function(e){for(var t=0;t<this.fieldDefinition.length;t++)if(this.fieldDefinition[t].name==e){var n=this.fieldTypes[this.fieldDefinition[t].definitiontype],i=this.fieldDefinition[t].value;return this.fieldDefinition[t].hasfixedvalue&&(i=this.fieldDefinition[t].fixedvalue),this.sanitizeType(i,n.jstype)}return null},this.toObject=function(){for(var e=[],t=0,n={},i=!0,o=0;o<this.fieldDefinition.length;o++){var a=this.fieldTypes[this.fieldDefinition[o].definitiontype];this.fieldDefinition[o].subsectionIndex!=t&&(i||e.push(n),n={},i=!0,t=this.fieldDefinition[o].subsectionIndex);var r=this.fieldDefinition[o].value;this.fieldDefinition[o].hasfixedvalue&&(r=this.fieldDefinition[o].fixedvalue),n[this.fieldDefinition[o].name]=this.sanitizeType(r,a.jstype),i=!1}return i||e.push(n),e}}var po=new uo(2,"tcfeuv2").addField("Version","int",6).addField("Created","datetime").addField("LastUpdated","datetime").addField("CmpId","int",12).addField("CmpVersion","int",12).addField("ConsentScreen","int",6).addField("ConsentLanguage","string",2).addField("VendorListVersion","int",12).addField("TcfPolicyVersion","int",6).addField("IsServiceSpecific","bool").addField("UseNonStandardStacks","bool").addField("SpecialFeatureOptIns","bits",12).addField("PurposeConsent","bits",24).addField("PurposesLITransparency","bits",24).addField("PurposeOneTreatment","bool").addField("PublisherCC","string",2).addField("VendorConsent","optimizedintrange").addField("VendorLegitimateInterest","optimizedintrange").addField("NumPubRestrictions","int",12).disableAPICommand("getSection"),ho=function(e){function i(e,o){var a,r,s;return n(this,i),s=t(this,i,[e,o]),null===(a=(r=window).__tcfapi)||void 0===a||a.call(r,"addEventListener",2,(function(e,t){t&&o.fireEvent(i.sectionName(),e)})),s}return c(i,e),o(i,[{key:"sectionId",value:function(){return 2}},{key:"update",value:function(e){if(!e||e===this.tcString)return!1;var t=to.clone();t.isCustomFormat=!1,t.read(e);var n=po.clone();return n.isCustomFormat=!1,n.read(e),this.parsedSection=t,this.parsedSection_1_1=n,this.tcString=e,!0}},{key:"getString",value:function(){var e;return null!==(e=this.tcString)&&void 0!==e?e:""}},{key:"getSection",value:function(e){var t,n,i,o;return 1===e?null!==(i=null===(o=this.parsedSection)||void 0===o?void 0:o.toObject())&&void 0!==i?i:null:null!==(t=null===(n=this.parsedSection_1_1)||void 0===n?void 0:n.toObject())&&void 0!==t?t:null}},{key:"getField",value:function(e,t){var n,i,o,a;return 1===e?null!==(o=null===(a=this.parsedSection)||void 0===a?void 0:a.getValue(t))&&void 0!==o?o:void 0:null!==(n=null===(i=this.parsedSection_1_1)||void 0===i?void 0:i.getValue(t))&&void 0!==n?n:void 0}},{key:"customCommands",value:function(){return{getTCData:i.getTCData}}}],[{key:"sectionName",value:function(){return"tcfeuv2"}},{key:"getTCData",value:function(e){var t,n;null===(t=(n=window).__tcfapi)||void 0===t||t.call(n,"addEventListener",2,(function(t,n){var i;null===(i=window.__tcfapi)||void 0===i||i.__tcfapi("removeEventListener",2,(function(){}),t.listenerId),e(t,n)}))}}])}(oo),fo=new uo(7,"usnat").addField("Version","int",6).addField("SharingNotice","int",2).addField("SaleOptOutNotice","int",2).addField("SharingOptOutNotice","int",2).addField("TargetedAdvertisingOptOutNotice","int",2).addField("SensitiveDataProcessingOptOutNotice","int",2).addField("SensitiveDataLimitUseNotice","int",2).addField("SaleOptOut","int",2).addField("SharingOptOut","int",2).addField("TargetedAdvertisingOptOut","int",2).addField("SensitiveDataProcessing","nbits",12,0,2).addField("KnownChildSensitiveDataConsents","nbits",2,0,2).addField("PersonalDataConsents","int",2).addField("MspaCoveredTransaction","int",2).addField("MspaOptOutOptionMode","int",2).addField("MspaServiceProviderMode","int",2).addField("SubsectionType","int",2,1,0,!0,1).addField("Gpc","bool",1,1),bo=function(e){function i(e,o){return n(this,i),t(this,i,[e,o])}return c(i,e),o(i,[{key:"sectionId",value:function(){return 7}},{key:"update",value:function(e){if(!e||e===this.usnatString)return!1;var t=no.clone();t.isCustomFormat=!1,t.read(e);var n=fo.clone();return n.isCustomFormat=!1,n.read(e),this.parsedSection=t,this.parsedSection_1_1=n,this.usnatString=e,!0}},{key:"getString",value:function(){var e;return null!==(e=this.usnatString)&&void 0!==e?e:""}},{key:"getSection",value:function(e){var t,n,i,o;return 1===e?null!==(i=null===(o=this.parsedSection)||void 0===o?void 0:o.toObject())&&void 0!==i?i:null:null!==(t=null===(n=this.parsedSection_1_1)||void 0===n?void 0:n.toObject())&&void 0!==t?t:null}},{key:"getField",value:function(e,t){var n,i,o,a;return 1===e?null!==(o=null===(a=this.parsedSection)||void 0===a?void 0:a.getValue(t))&&void 0!==o?o:void 0:null!==(n=null===(i=this.parsedSection_1_1)||void 0===i?void 0:i.getValue(t))&&void 0!==n?n:void 0}},{key:"customCommands",value:function(){return{}}}],[{key:"sectionName",value:function(){return"usnat"}}])}(oo);function go(e,t){return"boolean"==typeof e?t?e?2:1:e?1:2:0}var mo=function(){return o((function e(){n(this,e)}),[{key:"encode",value:function(e){var t,n=e.noticeShown,i=e.preferences,o=i.hasSensetiveData,a=i.purposes,r=no.clone();return r.isCustomFormat=!1,r.setValue("Version",1),r.setValue("SharingNotice",go("sh"in a?n:null)),r.setValue("SaleOptOutNotice",go("s"in a?n:null)),r.setValue("SaleOptOut",go(a.s,!0)),r.setValue("SharingOptOutNotice",go("sh"in a?n:null)),r.setValue("SharingOptOut",go(a.sh,!0)),r.setValue("TargetedAdvertisingOptOutNotice",go("adv"in a?n:null)),r.setValue("TargetedAdvertisingOptOut",go(a.adv,!0)),r.setValue("SensitiveDataProcessingOptOutNotice",0),r.setValue("SensitiveDataLimitUseNotice",go(o?n:null)),r.setValue("SensitiveDataProcessing",Array.apply(null,{length:12}).map((function(e,t){return go(a["sd".concat(t+1)],!0)}))),r.setValue("KnownChildSensitiveDataConsents",[0,0]),r.setValue("PersonalDataConsents",0),r.setValue("MspaCoveredTransaction",0),r.setValue("MspaOptOutOptionMode",0),r.setValue("MspaServiceProviderMode",0),r.setValue("SubsectionType",1),r.setValue("Gpc","1"===(null===(t=navigator.globalPrivacyControl)||void 0===t?void 0:t.toString())),r.write()}}])}();function vo(e){var t=[];return e.enableTcf&&e.gdprApplies&&t.push(ho.sectionName()),e.usprApplies&&t.push(bo.sectionName()),t}var yo=function(){return o((function e(t){var i;n(this,e),this.options=t,this.cmpApi=new ro({cmpId:123,plugins:[ho,bo],applicableApis:vo(t)},null===(i=t.gppVersion)||void 0===i?void 0:i.toString())}),[{key:"update",value:function(e,t,n){var i=t.tcString,o=t.usPurposes,a=e?zi:ji,r={};if(i&&(r[ho.sectionName()]=i),null!=o&&o.isActive){var s=e||o.hasSensitiveData||this.options.ccpaNoticeDisplay||this.options.showBannerForUS||!1,c=new mo;r[bo.sectionName()]=c.encode({noticeShown:s,preferences:o})}this.cmpApi.update({displayStatus:a,updatedSections:r},n)}}])}(),ko={1:{default:!0,blocked:!0,alias:"necessary"},2:{default:!1,alias:"basic"},3:{default:!1,alias:"enhancement"},4:{default:!1,alias:"analytics"},5:{default:!1,alias:"advertising"}},Co=function(){return o((function e(t){n(this,e),this.data={},this.allIds=Object.keys(ko),this.expressedIds=[],this.setInitialData(t),this.activeIds=Object.keys(this.data)}),[{key:"setInitialData",value:function(e){var t,n,i=e.options;if(i.purposes)this.data=this.getDefaultPurposes(i.purposes);else if(null!==(t=e.remoteConfig)&&void 0!==t&&t.csPurposes&&0!==e.remoteConfig.csPurposes.length)this.data=this.getDefaultPurposes(e.remoteConfig.csPurposes.join(","));else{var o=null===(n=e.storage)||void 0===n?void 0:n.getLocal(e.settings.consentCookieNameBase+i.cookiePolicyId);o&&"object"===m(o)&&o.purposes?this.data=this.getDefaultPurposes(Object.keys(o.purposes).join(",")):this.data=this.getDefaultPurposes()}}},{key:"setExpressedId",value:function(e){this.expressedIds.indexOf(e)<0&&this.expressedIds.push(e)}},{key:"checkPurposeIdByList",value:function(e,t){if(!t.length)return!0;var n=ko[e],i=t.indexOf(e)>=0;return!(!n.blocked&&!i)}},{key:"processPurposesString",value:function(e){if(!e)return[];var t=e.split(",").map((function(e){return e.trim()}));return this.allIds.filter((function(e){var n=ko[e],i=t.indexOf(e)>=0,o=t.indexOf(n.alias)>=0;return i||o}))}},{key:"getDefaultPurposes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={},i=this.processPurposesString(t);return this.allIds.forEach((function(t){e.checkPurposeIdByList(t,i)&&(n[t]=ko[t].default)})),n}},{key:"getPurposesString",value:function(){return Object.keys(this.data).join(",")}},{key:"setData",value:function(e,t,n){(n||this.expressedIds.indexOf(e)<0)&&!ko[e].blocked&&(this.data[e]=t,this.setExpressedId(e))}},{key:"setPreference",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("boolean"!=typeof t.all){var i=Object.keys(t).map((function(e){return e.toString()}));i.forEach((function(i){e.setData(i,t[i],!n)}))}else this.activeIds.forEach((function(i){e.setData(i,t.all,!n)}))}},{key:"checkAllUnblocked",value:function(e){var t=this;return this.activeIds.filter((function(e){return!ko[e].blocked})).every((function(n){return t.data[n]===e}))}},{key:"isAllApproved",value:function(){return this.checkAllUnblocked(!0)}},{key:"isAllDisapproved",value:function(){return this.checkAllUnblocked(!1)}},{key:"hasGivenPreference",value:function(){return this.hasExpressed(this.activeIds)}},{key:"getPreferences",value:function(){return this.data}},{key:"getPurposeValue",value:function(e){return this.data[e]}},{key:"hasApproved",value:function(e){var t=this;return e.every((function(e){return t.data[e]}))}},{key:"hasExpressed",value:function(e){var t=this;return e.every((function(e){return t.expressedIds.indexOf(e)>=0||ko[e].blocked}))}},{key:"getPuposesData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n={};return this.activeIds.forEach((function(i){t?n[i]=e.data[i]:(n[i]={value:e.data[i]},ko[i].blocked&&(n[i].blocked=!0))})),n}}])}(),wo=["purposes"],Po=["purposes"],So=function(){return o((function e(t){n(this,e),this.savedState=null,this.savedNewState=null,this.state={},this.purposes=null,this.options={granularOptionsActive:!1},this.initialized=!1,this.setInitialState(t)}),[{key:"core",get:function(){return{purposes:this.purposes.getPuposesData(!0)}}},{key:"uspr",get:function(){return this.usPurposes.isActive?this.usPurposes.purposes:{}}},{key:"setInitialState",value:function(e){this.purposes=new Co(e),this.usPurposes=new Tn(e),this.initialized=!0,this.csObject=e;var t=e.options,n={granularOptionsActive:!1};if(t.gdprApplies&&t.enableTcf){var i=this.getInitialTCF();n.tcfv2=i.tcfv2,t.googleAdditionalConsentMode&&(n.gac=i.gac)}this.setState(n)}},{key:"getInitialTCF",value:function(){return{tcfv2:{all:!1},gac:{all:!1}}}},{key:"setState",value:function(e){var t=S(this.state,e);this.state=t}},{key:"processState",value:function(e){var t=e.purposes,n=void 0===t?{}:t,i=d(e,wo);this.purposes.setPreference(n),this.setState(i)}},{key:"getFullState",value:function(){return p(p({},this.state),{},{purposes:this.purposes.getPuposesData()})}},{key:"getProperty",value:function(e){return this.state[e]}},{key:"getStateObject",value:function(){var e={purposes:this.purposes.getPuposesData(!0)};return this.usPurposes.isActive&&(e.usPurposes=this.usPurposes.purposes),e}},{key:"getState",value:function(){var e={purposes:this.purposes.getPuposesData(!0)};return void 0!==this.state.tcfv2&&(e.tcfv2=this.state.tcfv2),void 0!==this.state.gac&&(e.gac=this.state.gac),e}},{key:"saveState",value:function(){this.savedState=p(p({},this.state),{},{purposes:p({},this.purposes.getPreferences())})}},{key:"recoveryState",value:function(){if(this.savedState){var e=this.savedState,t=e.purposes,n=d(e,Po);this.usPurposes.isActive&&this.usPurposes.recoveryPreferenceState(),t&&this.purposes.setPreference(t),this.state=p({},n),this.clearState()}}},{key:"clearState",value:function(){this.usPurposes.isActive&&this.usPurposes.clearPreferenceState(),this.savedNewState=null,this.savedState=null}}])}(),xo=0,Ao=1,_o=2,Oo=function(){return o((function e(t,i){n(this,e),this.cs=t,this.storage=i,this._tcfString="",this._gacString=""}),[{key:"tcfString",get:function(){return this._tcfString||this.cs.state.tcfv2String},set:function(e){this.cs.state.tcfv2String=e,this._tcfString=e}},{key:"gacString",get:function(){var e;return this._gacString||(null===(e=this.cs.customPreferences)||void 0===e?void 0:e.gac)}},{key:"setTcfPreference",value:function(e,t){return"string"==typeof e.tcfv2?this.setTcfString(e):void 0!==e.tcfv2?e.tcfv2.all?this.acceptAllTcf(t):this.rejectAllTcf():T((function(e){return e()}))}},{key:"setTcfString",value:function(e){var t=this,n=T();return!this.cs.options.enableTcf||this.cs.options.skipSaveConsent?n.resolve():(this.cs.updateTcfApi(!0,e.tcfv2),D([this.cs.startCmpWidget(),this.cs._waitForCmpWidgetRender()]).then((function(){e.gac&&(t.cs.storeCustomPreferences({gac:e.gac}),t._gacString=e.gac),t.cs.storeCMPPreference(e.tcfv2),t.tcfString=e.tcfv2,t.cs.updateTcfApi(!1,t.tcfString),n.resolve(e.tcfv2)})),n)}},{key:"acceptAllTcf",value:function(e){var t=this,n=T();return!this.cs.options.enableTcf||this.cs.options.skipSaveConsent?n.resolve():(this.cs.updateTcfApi(!0,this.tcfString),D([this.cs.startCmpWidget(),this.cs._waitForCmpWidgetRender()]).then((function(){var i=t.cs.ui.cmpWidget;(!t.tcfString||e)&&(t.cs.options.acceptTcfSpecialFeaturesWithAcceptBtn?i.enableAllPurposesAndAllVendors():i.enableAllEntitiesBasedOnSpecialFeatures(),i.enableAllCustomPurposes(),t.cs.options.googleAdditionalConsentMode&&t.cs.options.perPurposeConsent&&i.acEnableEntities(!0)),t.cs.storeCustomPreferences(i.getCustomPreferences());var o=i.getPreferenceString();t.cs.storeCMPPreference(o),t.tcfString=o,t.cs.updateTcfApi(!1,t.tcfString),n.resolve(o)})),n)}},{key:"rejectAllTcf",value:function(){var e=this,t=T();return!this.cs.options.enableTcf||this.cs.options.skipSaveConsent?t.resolve():(this.cs.updateTcfApi(!0,this.tcfString),D([this.cs.startCmpWidget(),this.cs._waitForCmpWidgetRender()]).then((function(){var n=e.cs.ui.cmpWidget;n.disableAllPurposesAndAllVendors();var i=e.cs.options;(i.googleAdsPreferenceManagement||i.googleAdditionalConsentMode)&&n.disableAllCustomPurposes(),e.cs.storeCustomPreferences(n.getCustomPreferences());var o=n.getPreferenceString();e.cs.storeCMPPreference(o),e.tcfString=o,e.cs.updateTcfApi(!1,e.tcfString),t.resolve(o)})),t)}},{key:"getRestrictionType",value:function(e){switch(e){case false:return xo;case"consent_only":return Ao;case"li_only":return _o;default:return null}}},{key:"fixTCStringForPublisherRestrictions",value:function(e){var t=this;return T((function(n){try{var i,o,a=window._iub.TCString.decode(e),r=t.cs.options.tcfPurposes;r&&Object.keys(r).length>0&&"consent_only"===r[2]&&null!==(i=a.publisherRestrictions)&&void 0!==i&&null!==(i=i.getRestrictions(1))&&void 0!==i&&i.every((function(e){return 1===e.restrictionType}))&&a.vendorConsents.has(755)&&a.purposeConsents.has(2)&&!a.publisherLegitimateInterests.has(2)&&0===(null===(o=a.publisherRestrictions.getRestrictions(755))||void 0===o?void 0:o.length)?(a.gvl=window._iub.gvlHelper.getGvl(a.vendorListVersion),a.gvl.readyPromise.then((function(){Object.entries(r).forEach((function(e){var n=f(e,2),i=n[0],o=n[1],r=t.getRestrictionType(o);if(null!==r){var s=parseInt(i,10),c=new window._iub.PurposeRestriction(s,r);a.vendorConsents.forEach((function(e,t){e&&(a.publisherRestrictions.vendorHasRestriction(t,c)||a.publisherRestrictions.add(t,c))}))}}));var i=window._iub.TCString.encode(a,{segments:["core"]});console.log("[IUBCS|INFO]: fixed publisher restriction in TCString:",i," it was ",e),n(i)})).catch((function(t){console.error(t),n(e)}))):n(e)}catch(t){n(e)}}))}},{key:"load",value:function(){var e=this,t=T(),n=this.cs.options,i=Ni(n);return n.enableTcf?(this.cs.cmpLibraryPromise.then((function(){var o=e.cs.fetchCMPCookie(),a=e.cs.customPreferencesResult,r=e.cs.getMissingCustomPreferences(a).length>0,s=(n.askConsentIfCMPNotFound||1!==e.cs.state.tcfConsentStatus)&&(!o||r)&&n.gdprApplies;o?e.fixTCStringForPublisherRestrictions(o).then((function(n){var a=n.split(".");(a.length>1||o!==n)&&(e.tcfString=a[0],e.storage.setLocalCMP(i,a[0])),t.resolve({needsCMPConsent:s})})):t.resolve({needsCMPConsent:s})})),t):t.resolve()}}])}(),Io=function(){return o((function e(t){n(this,e),this.cs=t}),[{key:"acknowledgeCcpa",value:function(e){var t=this.cs.state.ccpaAcknowledged;this.cs.state.ccpaUspStateFound=!0,this.cs.state.ccpaAcknowledged=!0,e&&(this.cs.usPrivacyCookie=null,this.cs.state.ccpaOptedOut=!1),this.setCcpaCookie(),t||this.cs.fireCallback("onCcpaFirstAcknowledged"),this.cs.fireCallback("onCcpaAcknowledged")}},{key:"generateCcpaCookie",value:function(){var e,t;return{uspString:this.getUspString(),firstAcknowledgeDate:(null===(e=this.cs.usPrivacyCookie)||void 0===e?void 0:e.firstAcknowledgeDate)||(this.cs.state.ccpaAcknowledged?new Date:null),optOutDate:(null===(t=this.cs.usPrivacyCookie)||void 0===t?void 0:t.optOutDate)||(this.cs.state.ccpaOptedOut?new Date:null)}}},{key:"setCcpaCookie",value:function(e,t){if(!this.cs.options.skipSaveConsent){var n=null!=e?e:this.generateCcpaCookie();this.cs.storage.setLocal(this.cs.settings.USPRIVACY_COOKIE,n),this.cs.options.enableRemoteConsent&&this.cs.storage.setRemote(this.cs.storage.configuration.ccpaNameRemote,n),t||(this.cs.usPrivacyCookie=n)}}},{key:"getUspString",value:function(){return this.cs.options.ccpaApplies?this.cs.state.ccpaUspVersion+(this.cs.state.ccpaAcknowledged?"Y":"N")+(this.cs.state.ccpaOptedOut?"Y":"N")+this.getLspaValue():"1---"}},{key:"getLspaValue",value:function(){switch(this.cs.options.ccpaLspa){case!0:case"Y":case"y":return"Y";case!1:case"N":case"n":return"N";default:return"-"}}},{key:"optOutCcpa",value:function(){var e=this.cs.state.ccpaOptedOut;this.cs.state.ccpaUspStateFound=!0,this.cs.state.ccpaAcknowledged=!0,this.cs.state.ccpaOptedOut=!0,this.setCcpaCookie(),e||this.cs.fireCallback("onCcpaFirstOptOut"),this.cs.fireCallback("onCcpaOptOut")}}])}(),Bo=function(){return o((function e(t,i){n(this,e),this.cs=t,this.storage=i,this.loadedData=null}),[{key:"acceptAllUSPurposeConsent",value:function(e){this.cs.preferenceState.usPurposes.setPreferences(e),this.storeUSPurposeCookie()}},{key:"storeUSPurposeCookie",value:function(){if(this.cs.options.skipSaveConsent)this.cs.info("NOT saving consent in cookie since options.skipSaveConsent is provided TRUE");else if(this.cs.preferenceState.usPurposes.isActive){var e=this.cs.preferenceState.usPurposes.getPreferences();this.loadedData=e,this.cs.storage.setLocal(this.cs.storage.configuration.consentUsprNameLocal,e),this.cs.options.enableRemoteConsent&&this.cs.storage.setRemote(this.cs.storage.configuration.consentUsprNameRemote,e)}}},{key:"load",value:function(){var e=T(),t=this.storage.getLocal(this.storage.configuration.consentUsprNameLocal);return this.loadedData=t,e.resolve(t)}}])}(),Lo=function(){return o((function e(t,i){n(this,e),this.coreStorage=i,this.cs=t}),[{key:"storeFadpConsent",value:function(){this.cs.options.fadpApplies&&(this.coreStorage.storeConsent(!1),!this.cs.options.usprApplies&&!this.cs.options.gdprApplies&&!this.cs.options.lgpdApplies&&!this.cs.options.ccpaApplies&&this.cs.options.fadpApplies&&(this.cs.state.consentFoundOnLoad=!0,this.cs.fireConsentCallbacks()))}}])}(),To=function(){return o((function e(t,i){n(this,e),this.cs=t,this.storage=i,this.storageData={}}),[{key:"setPurposesPreference",value:function(e){(this.cs.options.gdprApplies||this.cs.options.lgpdApplies||this.cs.options.fadpApplies)&&this.cs.options.perPurposeConsent&&this.cs.preferenceState.purposes.setPreference(e)}},{key:"getConsentObj",value:function(e){var t={timestamp:(new Date).toISOString(),version:this.cs.settings.version};return this.cs.options.perPurposeConsent&&(this.cs.options.gdprApplies||this.cs.options.lgpdApplies||this.cs.options.fadpApplies)?t.purposes=this.cs.preferenceState.purposes.getPreferences():t.consent=e,t}},{key:"storeConsent",value:function(e){this.storageData=this.getConsentObj(e),this.cs.consent=this.storageData,this.storage.storeConsent()}},{key:"load",value:function(){var e=this,t=T(),n={consent:null,doConsentRewrite:!0},i=this.storage.loadConsentLocal();return i?(this.cs.info("local stored consent found:"),n.doConsentRewrite=!1,this.cs.options.enableRemoteConsent&&this.storage.compactRemote(),n.consent=i,this.storageData=i,t.resolve(n)):(this.cs.info("local stored consent NOT found"),this.storage.loadConsentRemote().then((function(i){e.storageData=i,n.consent=i,t.resolve(n)}))),t}}])}(),Do=function(){return o((function e(t,i){n(this,e),this.cs=t,this.configuration=i,this.state={available:!0,remoteCookieSet:!1,remote:{method:"iframe",get:{acknowledged:!1,timeoutOccurred:!1}}},this.getRemoteConsentPromise=null,this.testStorageAvailability()}),[{key:"oneYearFromDate",value:function(e){var t=864e5;return(31536e6-((new Date).getTime()-e.getTime()))/t}},{key:"getExpireDate",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.expireAfter||this.cs.options.preferenceCookie.expireAfter;if("string"==typeof n){var i=new Date(n.replace("Z365","Z"));n=isNaN(i.getDate())?365:this.oneYearFromDate(i)}var o=null!==(e=t.format)&&void 0!==e?e:"utc",a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3);var r="";switch(o){case"timestamp":r="".concat(a.getTime());break;default:r=a.toUTCString()}return r}},{key:"testStorageAvailability",value:function(){try{this.setLocal("iub_storage_available","1"),this.resetLocal("iub_storage_available")}catch(e){this.state.available=!1}}},{key:"getLocal",value:function(e,t){}},{key:"setLocal",value:function(e,t,n){}},{key:"compactLocal",value:function(){}},{key:"reset",value:function(e){}},{key:"resetLocal",value:function(){}},{key:"setLocalCMP",value:function(e,t,n){}},{key:"getLocalCMP",value:function(e){}},{key:"resetRemote",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.resetRemoteCookie(e,t)}},{key:"getRemote",value:function(){return this.getRemoteCookies()}},{key:"compactRemote",value:function(){return this.compactRemoteCookies()}},{key:"storeConsent",value:function(e){this.storeConsentLocal(e),this.storeConsentRemote(e)}},{key:"storeConsentLocal",value:function(e){}},{key:"storeConsentRemote",value:function(){this.cs.options.enableRemoteConsent?(this.cs.info("store consent prefs into remote cookie ..."),this.setRemoteCookie(this.configuration.consentNameRemote,this.cs.consent),this.cs.options.ccpaApplies&&this.setRemoteCookie(this.configuration.ccpaNameRemote,this.cs.usPrivacyCookie)):this.cs.warn("skip saving remote consent since enableRemoteConsent option is provided FALSE")}},{key:"loadConsentLocal",value:function(){}},{key:"resetRemoteCookie",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(this.state.remote.method){case"callback":this.resetRemoteCookiesViaCallback();break;default:this.resetRemoteCookieViaIframe(e,t)}}},{key:"getRemoteCookies",value:function(){var e=this;switch(this.getRemoteConsentPromise=T(),this.state.remote.method){case"callback":this.getRemoteCookiesViaCallback();break;default:this.getRemoteCookiesViaIframe()}return setTimeout((function(){e.timeoutGetRemote()}),this.cs.settings.timeoutOnRemoteGet),this.getRemoteConsentPromise}},{key:"timeoutGetRemote",value:function(){this.cs.debug("Callback on getting remote fired"),this.state.remote.get.acknowledged||this.state.remote.get.timeoutOccurred||(this.state.remote.get.timeoutOccurred=!0,this.cs.warn("Getting from remote failed"),this.cs.info("Remote prefs NOT found!"),this.getRemoteConsentPromise&&this.getRemoteConsentPromise.resolve())}},{key:"compactRemoteCookies",value:function(){switch(this.state.remote.method){case"callback":this.cs.debug("skipping compact remote cookie since in 'callback' remote method");break;default:this.cs.debug("compacting remote cookies ..."),this.createCSIframeBridge({meth:"compact"})}}},{key:"remoteCookiesSet",value:function(e){e?this.cs.checkIfReloadAfterRemoteSet():this.cs.error("remote cookies setting failed.")}},{key:"pickUpRemoteCookie",value:function(e){if(this.state.remote.get.timeoutOccurred)this.cs.warn("Remote callback received too late");else{this.state.remote.get.acknowledged=!0;var t=null;try{t=JSON.parse(e[this.configuration.consentNameRemote])}catch(e){if(this.cs.options.raiseOnException)throw e;t=null}this.loadConsentRemoteCallback(t)}}},{key:"loadConsentRemote",value:function(){var e=this,t=T();return this.cs.options.enableRemoteConsent&&!this.cs.state.invalidatingConsent?this.getRemote().then((function(n){e.compactRemoteCookies(),t.resolve(n)})):(this.cs.info("skip loading remote consent since "+(this.cs.state.invalidatingConsent?"consent has been invalidated to resurface the banner":"enableRemoteConsent option is provided FALSE")),t.resolve()),t}},{key:"setRemoteCookieViaCallback",value:function(e,t){var n=this.buildLoopbackServerUrl()+this.cs.options.loopbackServer.callback.setRemoteCookiePath;n=bn(n,e,encodeURIComponent(JSON.stringify(t))),this.cs.debug("setting cross site cookies via callback at url: "+n),Oe(n)}},{key:"buildLoopbackServerUrl",value:function(){var e="https://";return"iframe"===this.state.remote.method?e+=this.cs.options.loopbackServer.iframeBridge.host:e+=this.cs.options.loopbackServer.callback.host,e}},{key:"setRemoteCookieViaIframe",value:function(e,t){this.createCSIframeBridge(p({cookieValue:t,c_name:e,meth:"set"},this.convertToMigrateCookieName(e)))}},{key:"getRemoteCookiesViaCallback",value:function(){var e=this.buildLoopbackServerUrl()+this.cs.options.loopbackServer.callback.getRemoteCookiePath;this.cs.debug("getting cross site cookies via callback at url: "+e),Oe(e)}},{key:"convertToMigrateCookieName",value:function(e){return this.cs.options.storage.useSiteId?{migrate_name:e.replace(/(s[0-9]+)/,this.cs.options.cookiePolicyId)}:null}},{key:"getMigrateCookieName",value:function(e){if(!this.cs.options.storage.useSiteId)return null;this.configuration.forceCookiePolicyId=!0;var t=this.configuration[e];return this.configuration.forceCookiePolicyId=!1,{migrate_name:t}}},{key:"getRemoteCookiesViaIframe",value:function(){if(this.cs.options.gdprApplies){var e=p({meth:"get",c_name:this.configuration.consentNameRemote},this.getMigrateCookieName("consentNameRemote"));this.createCSIframeBridge(e)}if(this.cs.options.ccpaApplies){var t=p({meth:"get",c_name:this.configuration.ccpaNameRemote},this.getMigrateCookieName("ccpaNameRemote"));this.createCSIframeBridge(t)}}},{key:"setRemote",value:function(e,t){return this.setRemoteCookie(e,t)}},{key:"setRemoteCookie",value:function(e,t){switch(this.state.remote.method){case"callback":this.setRemoteCookieViaCallback(e,t);break;default:this.setRemoteCookieViaIframe(e,t)}}},{key:"createIframeBridge",value:function(e,t){var n,i=document.createElement("IFRAME"),o=[location.protocol,"//",location.host,location.pathname].join(""),a=this.buildLoopbackServerUrl()+this.cs.options.loopbackServer.iframeBridge.iframePath;n=bn(a,"origin",encodeURIComponent(o)),Object.keys(e).forEach((function(t){n=bn(n,t,encodeURIComponent(JSON.stringify(e[t])))})),i.setAttribute("src",n),i.setAttribute("aria-hidden","true"),i.setAttribute("title","Iframe bridge"),i.setAttribute("style","width:0px; height:0px; display:none; visibility:hidden"),_e((function(){document.body.appendChild(i)}),!0)}},{key:"createCSIframeBridge",value:function(e){this.createIframeBridge(e,this.cs.options.loopbackServer.iframeBridge)}},{key:"resetRemoteCookieViaIframe",value:function(e,t){this.createCSIframeBridge({options:t,c_name:e,meth:"reset"})}},{key:"resetRemoteCookiesViaCallback",value:function(){var e=this.buildLoopbackServerUrl()+this.options.loopbackServer.callback.resetRemoteCookiePath;this.debug("reset cross site cookies via callback at url: "+e),this.insertScript(e)}}])}(),Eo=function(){function e(){n(this,e)}return o(e,null,[{key:"defaultSamesiteAttributes",get:function(){return"https:"===window.location.protocol?"samesite=none; secure":"samesite=lax"}},{key:"generateCookieExpression",value:function(e,t,n){var i=e+"="+t,o=n||{};return o.expireDate&&(i+="; expires="+o.expireDate),o.path&&(i+="; path="+o.path),o.domain&&(i+="; domain="+o.domain),o.samesite&&(i+=";"+o.samesite),i}},{key:"setItem",value:function(t,n,i){var o=e.generateCookieExpression(t,n,i),a=i||{};if(a.maxCookieSize&&o.length>a.maxCookieSize)throw new Error("Unable to save cookie ".concat(t,": maxCookieSize ").concat(a.maxCookieSize," exeeded"));document.cookie=o}},{key:"getItem",value:function(e,t){for(var n=[],i=document.cookie.split(/\s*;\s*/),o=0;o<i.length;o++){var a=i[o].split("="),r=a[0],s=a[1],c=r.match(new RegExp("^"+e+"(-(\\d+))?$"));if(c)n[parseInt(c[2],10)||0]=s}if(!n.length)return"";var l=n.join("");if(!0===t)return l;try{return JSON.parse(l)}catch(e){return JSON.parse(decodeURIComponent(l))}}},{key:"removeItem",value:function(e,t){for(var n,i=new RegExp("(^|;)\\s*("+e+"(-(\\d+))?)=","g"),o=document.cookie,a="";n=i.exec(o);){a=n[2]+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path="+t.path+"; domain="+t.domain+";"+t.samesite,document.cookie=a}return a}},{key:"all",value:function(){for(var e=document.cookie?document.cookie.split(/\s*;\s*/):[],t=[],n=0,i=e.length;n<i;n+=1){var o=e[n].split("=");2===o.length&&t.push({name:o[0],value:o[1]})}return t}}])}(),Fo=function(e){function i(e,o){return n(this,i),t(this,i,[e,o])}return c(i,e),o(i,[{key:"testStorageAvailability",value:function(){try{this.setLocal("iub_storage_available","1"),this.state.available=-1!=document.cookie.indexOf("iub_storage_available="),this.resetLocal("iub_storage_available")}catch(e){this.state.available=!1}}},{key:"getLocal",value:function(e,t){return this.getLocalCookie(e,t)}},{key:"getLocalCookie",value:function(e,t){this.cs.debug("reading cookie from local domain: "+e);for(var n=[],i=Eo.all(),o=0;o<i.length;o++){var a=i[o].name.match(new RegExp("^"+e+"(-(\\d+))?$"));if(a)n[parseInt(a[2],10)||0]=i[o].value}if(!n.length)return"";var r=n.join("");if(!0===t)return r;try{return JSON.parse(r)}catch(e){return JSON.parse(decodeURIComponent(r))}}},{key:"setLocal",value:function(e,t,n){return this.setLocalCookie(e,t,n)}},{key:"setLocalCookie",value:function(e,t,n){n=n||{},this.resetLocalCookie(e);var i=this.cs.options,o=this.getExpireDate(n),a=n.path||i.localConsentPath,r="string"==typeof t?t:encodeURIComponent(JSON.stringify(t)),s=this.getCookieLocalDomain(location.hostname),c={expireDate:o,path:a,domain:this._getLocalConsentDomain(i,s),samesite:Eo.defaultSamesiteAttributes,maxCookieSize:i.maxCookieSize},l=Eo.generateCookieExpression(e,r,c);try{this.cs.debug("setting cookie on local domain : "+s+" -> "+l),Eo.setItem(e,r,c)}catch(t){this._setLocalCookieInChunks({name:e,valueToSave:r,cookieExpression:l,maxCookieSize:i.maxCookieSize,maxCookieChunks:i.maxCookieChunks,setCookieOptions:n})}}},{key:"_setLocalCookieInChunks",value:function(e){var t=e.name,n=e.valueToSave,i=e.cookieExpression,o=e.maxCookieSize,a=e.maxCookieChunks,r=e.setCookieOptions,s=function(e,t){return e.match(new RegExp(".{1,"+t+"}","g"))||[]}(n,o-(i.length-n.length)-2);if(s.length>a)return this.cs.error("cookie `"+t+"` should be split into "+s.length+" cookies, more than the allowed "+a+" chunks, aborting."),void this.cs.debug("was trying to save: "+i);for(var c=0;c<s.length;c++){var l=0===c?t:t+"-"+c;this.setLocalCookie(l,s[c],r)}}},{key:"compactLocal",value:function(){return this.compactLocalCookie()}},{key:"compactLocalCookie",value:function(){this.cs.debug("compact remote cookies (keep "+this.cs.settings.keepLocalCookiesN+")");for(var e=document.cookie.split(";"),t=[],n=0;n<e.length;n++){for(var i=e[n];" "===i.charAt(0);)i=i.substring(1);var o=i.split("=")[0];-1!==o.indexOf("_iub_cs")&&o!==this.configuration.consentNameLocal&&t.push({cName:o,cValue:JSON.parse(decodeURIComponent(i.split("=")[1]))})}t.sort((function(e,t){return e.cValue.timestamp<t.cValue.timestamp?1:-1})),t.splice(0,this.cs.settings.keepLocalCookiesN);for(var a=0;a<t.length;a++)Eo.setItem(t[a].cName,"",{expireDate:"Thu, 01 Jan 1970 00:00:01 GMT",path:this.cs.options.localConsentPath,domain:this.getCookieLocalDomain(location.hostname),samesite:Eo.defaultSamesiteAttributes})}},{key:"resetLocal",value:function(e){return this.resetLocalCookie(e)}},{key:"resetLocalCookie",value:function(e){var t=this.getCookieLocalDomain(location.hostname),n=Eo.removeItem(e,{domain:this._getLocalConsentDomain(this.cs.options,t),path:this.cs.options.localConsentPath,samesite:Eo.defaultSamesiteAttributes});this.cs.debug("resetting cookie on local domain : "+n)}},{key:"updateLocalExpireAfter",value:function(e,t){return this.updateLocalCookieExpireAfter(e,t)}},{key:"updateLocalCookieExpireAfter",value:function(e,t){var n=t||this.cs.options.preferenceCookie.expireAfter,i=this.getLocal(e);this.setLocal(e,i,{expireAfter:n})}},{key:"setLocalCMP",value:function(e,t,n){return this.setLocalCMPCookie(e,t,n)}},{key:"setLocalCMPCookie",value:function(e,t,n){(n=n||{}).expireAfter=n.expireAfter||this.cs.settings.MAX_TCF2_COOKIE_DURATION,this.setLocalCookie(e,t,n)}},{key:"getLocalCMP",value:function(e){return this.getLocalCMPCookie(e)}},{key:"getLocalCMPCookie",value:function(e){return this.getLocalCookie(e,!0)}},{key:"storeConsentLocal",value:function(e){this.cs.info("store consent prefs into local cookie ...");var t=this.cs.consent;t.id=this.cs.options.cookiePolicyId;try{this.setLocal(this.configuration.consentNameLocal,t,e)}catch(e){this.cs.error("store_consent_loc: "+(e.message||e.toSource()))}}},{key:"loadConsentLocal",value:function(){this.cs.debug("loading local stored consent");var e=this.getLocalCookie(this.configuration.consentNameLocal);if(!e){var t=this.getLocalCookie(this.configuration.consentNameLocalOld);""!==t&&(this.cs.debug("legacy consent found"),t.id===this.cs.options.cookiePolicyId&&(this.cs.debug("legacy consent match"),e=t))}try{this.compactLocalCookie()}catch(e){this.cs.debug("compacting local cookies failed, go on ...")}return e}},{key:"reset",value:function(e){return this.resetCookies(e)}},{key:"resetCookies",value:function(e){var t=e||{},n=!1!==t.local,i=!1!==t.remote;if(n&&(this.resetLocalCookie(this.configuration.consentNameLocal),this.resetLocalCookie(this.configuration.consentUsprNameLocal),this.cs.options.ccpaApplies&&this.resetLocalCookie(this.configuration.ccpaNameLocal)),i){var o=this.cs.options.cookiePolicyId;this.resetRemoteCookie(this.configuration.consentNameRemote,{cookiePolicyId:o}),this.resetRemoteCookie(this.configuration.consentUsprNameLocal),this.cs.options.ccpaApplies&&this.resetRemoteCookie(this.configuration.ccpaNameRemote)}}},{key:"getCookieLocalDomain",value:function(e){var t,n=2,i="localhost"===e;i||0!==e.indexOf("www.")&&(e="www."+e);var o=e.split("."),a=/^[0-9]+$/.test(e.split(":")[0].split(".").join("")),r=o[o.length-2];if(this.cs.options.localConsentDomain)t="."+this.cs.options.localConsentDomain;else if(i)t="";else if(!a){if(o.length>3){var s=this.isAllowedMultilevelDomain.call(this,e);r.length<4&&!s?n=3:s&&(n=o.length-1)}t="."+e.split(".").reverse().slice(0,n).reverse().join(".")}return t}},{key:"getAllowedMultilevelDomains",value:function(){return["blogspot","myshopify","wordpress","wixsite","wix","weebly","webflow","webnode","jimdo","jimdofree","squarespace","softr"]}},{key:"isAllowedMultilevelDomain",value:function(e){return this.getAllowedMultilevelDomains().some((function(t){var n=new RegExp(".".concat(t,".[a-z]{2,}(.[a-z]{2,})?$"),"i");return null!==e.match(n)}))}},{key:"_getLocalConsentDomain",value:function(e,t){return e.localConsentDomainExact?"":t}},{key:"_getCookieLocalDomain",value:function(){this.getCookieLocalDomain.apply(this,arguments)}}])}(Do),No=function(e){function i(e,o){return n(this,i),t(this,i,[e,o])}return c(i,e),o(i,[{key:"getLocal",value:function(e,t){if(!this.state.available)return"";var n=window.localStorage.getItem(e);return null===n?"":t?n:JSON.parse(n)}},{key:"setLocal",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!this.state.available)return"";var o=t,a="object"===m(t)&&null!==t;return a&&(o=JSON.stringify(P(t,{expireAfter:this.getExpireDate(n)}))),window.localStorage.setItem(e,o),i?this.getLocal(e):null}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!1!==e.local,n=!1!==e.remote;if(t&&this.state.available&&(window.localStorage.removeItem(this.configuration.consentNameLocal),window.localStorage.removeItem(this.configuration.consentUsprNameLocal),this.cs.options.ccpaApplies&&window.localStorage.removeItem(this.configuration.ccpaNameLocal)),n){var i=this.cs.options.cookiePolicyId;this.resetRemote(this.configuration.consentNameRemote,{cookiePolicyId:i}),this.resetRemote(this.configuration.consentUsprNameLocal),this.cs.options.ccpaApplies&&this.resetRemote(this.configuration.ccpaNameRemote)}}},{key:"resetLocal",value:function(e){this.state.available&&(window.localStorage.removeItem(e),this.cs.debug("resetting local storage: ",e))}},{key:"setLocalCMP",value:function(e,t,n){this.state.available&&window.localStorage.setItem(e,t)}},{key:"getLocalCMP",value:function(e){return this.cs.info("getLocalCMP: "+e),this.getLocal(e,!0)}},{key:"storeConsentLocal",value:function(e){this.cs.info("store consent prefs into local cookie ...");var t=this.cs.consent;t.id=this.cs.options.cookiePolicyId;try{this.setLocal(this.configuration.consentNameLocal,t,e)}catch(e){this.cs.error("store_consent_loc: "+(e.message||e.toSource()))}}},{key:"loadConsentLocal",value:function(){return this.getLocal(this.configuration.consentNameLocal)}}])}(Do),Ro={COOKIE:"cookieStorage",LOCAL_STORAGE:"localStorage",ALL:"all"},Vo=function(){return o((function e(t){n(this,e),this.cs=t,this.forceCookiePolicyId=!1}),[{key:"storageId",get:function(){return this.forceCookiePolicyId?this.cs.options.cookiePolicyId:this.cs.options.siteId&&this.cs.options.storage.useSiteId?"s"+this.cs.options.siteId:this.cs.options.cookiePolicyId}},{key:"consentNameRemote",get:function(){return this.consentNameLocal}},{key:"consentNameLocal",get:function(){return this.cs.settings.consentCookieNameBase+this.storageId}},{key:"consentUsprNameLocal",get:function(){return this.cs.settings.consentCookieNameBase+this.storageId+"-uspr"}},{key:"consentUsprNameRemote",get:function(){return this.consentUsprNameLocal}},{key:"consentGranularNameLocal",get:function(){return this.cs.settings.consentCookieNameBase+this.storageId+"-granular"}},{key:"consentGranularNameRemote",get:function(){return this.consentGranularNameLocal}},{key:"consentNameLocalOld",get:function(){return this.cs.settings.consentCookieNameBase+"local"}},{key:"ccpaNameRemote",get:function(){return this.cs.settings.USPRIVACY_COOKIE+"-"+this.storageId}},{key:"ccpaNameLocal",get:function(){return this.cs.settings.USPRIVACY_COOKIE}}])}(),zo=function(){return o((function e(t){if(n(this,e),!t)throw new Error("Storage: no options passed");if(!t.cs)throw new Error("Storage: options.cs required");var i=t.cs.options||{};this.options=i,this.cs=t.cs,this.configuration=new Vo(this.cs),this.setupStorageDrivers(),this.setupStorageTypes(),window.addEventListener("message",this.receiveMessageFromBridge.bind(this),!1)}),[{key:"setupStorageDrivers",value:function(){var e=Ro.COOKIE,t=Ro.LOCAL_STORAGE;this[e]=new Fo(this.cs,this.configuration),this[t]=new No(this.cs,this.configuration),this.storageDrivers=r(r({},e,this[e]),t,this[t])}},{key:"setupStorageTypes",value:function(){var e,t,n,i,o,a,r;this.storageDefault=null!==(e=null===(t=this.options.storage)||void 0===t?void 0:t.type)&&void 0!==e?e:"cookie",this.storageDefault=this.storageDefault.toUpperCase(),this.storageType=Ro[this.storageDefault],this.usprivacyStorageType=null!==(n=this.options.storage)&&void 0!==n&&null!==(n=n.items)&&void 0!==n&&null!==(n=n.usprivacy)&&void 0!==n&&n.type?Ro[this.options.storage.items.usprivacy.type.toUpperCase()]:this.storageType,this.usprStorageType=null!==(i=this.options.storage)&&void 0!==i&&null!==(i=i.items)&&void 0!==i&&null!==(i=i.uspr)&&void 0!==i&&i.type?Ro[this.options.storage.items.uspr.type.toUpperCase()]:this.storageType,this.tcfStorageType=null!==(o=this.options.storage)&&void 0!==o&&null!==(o=o.items)&&void 0!==o&&null!==(o=o.tcf)&&void 0!==o&&o.type?Ro[this.options.storage.items.tcf.type.toUpperCase()]:this.storageType,this.coreStorageType=null!==(a=this.options.storage)&&void 0!==a&&null!==(a=a.items)&&void 0!==a&&null!==(a=a.core)&&void 0!==a&&a.type?Ro[this.options.storage.items.core.type.toUpperCase()]:this.storageType,this.granularStorageType=null!==(r=this.options.storage)&&void 0!==r&&null!==(r=r.items)&&void 0!==r&&null!==(r=r.granular)&&void 0!==r&&r.type?Ro[this.options.storage.items.granular.type.toUpperCase()]:this.storageType}},{key:"syncStorage",value:function(){var e,t=this;[this.configuration.consentNameLocal,this.configuration.consentUsprNameLocal,this.configuration.ccpaNameLocal,this.configuration.consentGranularNameLocal,null===(e=this.options.preferenceCookie)||void 0===e?void 0:e.tcfV2Name].forEach((function(e){var n=t.getStorageType(e),i=t.getSyncStorageType(n),o=t[i].getLocal(e,!0);if(o){var a=t.processStorageValue(n,o);t[n].setLocal(e,a,null,!1),t[i].resetLocal(e)}}))}},{key:"processStorageValue",value:function(e,t){if(/^%7B.+%7D$/i.test(t)){if(e===Ro.LOCAL_STORAGE)return decodeURIComponent(t)}else if(/^\{.+\}$/i.test(t)&&e===Ro.COOKIE)return encodeURIComponent(t);return t}},{key:"getSyncStorageType",value:function(e){return e===Ro.COOKIE?Ro.LOCAL_STORAGE:Ro.COOKIE}},{key:"getStorageType",value:function(e){var t,n=Ro.COOKIE;switch(e.replace(/^_iub_cs-(([\d]{3,}_[\d]{3,})|s?[\d]*)/,"_iub_cs")){case"usprivacy":n=this.usprivacyStorageType;break;case"euconsent-v2":n=this.tcfStorageType;break;case"_iub_cs-uspr":n=this.usprStorageType;break;case"_iub_cs-granular":n=this.granularStorageType;break;case"_iub_cs":n=this.coreStorageType;break;case null===(t=this.cs.options.preferenceCookie)||void 0===t?void 0:t.tcfV2Name:n=this.tcfStorageType}return n}},{key:"setLocalCookie",value:function(e,t,n){return this.setLocal(e,t,n)}},{key:"setLocal",value:function(e,t,n){var i="";switch(this.getStorageType(e)){case Ro.LOCAL_STORAGE:i=this.localStorage.setLocal(e,t,n);break;case Ro.ALL:i=this.cookieStorage.setLocal(e,t,n),this.localStorage.setLocal(e,t,n);break;default:i=this.cookieStorage.setLocal(e,t,n)}return i}},{key:"setLocalCMP",value:function(e,t,n){var i="";switch(this.getStorageType(e)){case Ro.LOCAL_STORAGE:i=this.localStorage.setLocalCMP(e,t,n);break;case Ro.ALL:i=this.cookieStorage.setLocalCMP(e,t,n),this.localStorage.setLocalCMP(e,t,n);break;default:i=this.cookieStorage.setLocalCMP(e,t,n)}return i}},{key:"setRemote",value:function(e,t){return this[this.getStorageType(e)].setRemote(e,t)}},{key:"compactRemote",value:function(){return this[this.storageType].compactRemote()}},{key:"getLocalCookie",value:function(e,t){return this.getLocal(e,t)}},{key:"getLocal",value:function(e,t){return this[this.getStorageType(e)].getLocal(e,t)}},{key:"getLocalCMPCookie",value:function(e){return this.getLocalCMP(e)}},{key:"getLocalCMP",value:function(e){return this[this.getStorageType(e)].getLocalCMP(e)}},{key:"resetLocalCookie",value:function(e){return this[this.getStorageType(e)].resetLocal(e)}},{key:"loadConsentLocal",value:function(){return this[this.getStorageType("_iub_cs")].loadConsentLocal()}},{key:"loadConsentRemote",value:function(){return this[this.getStorageType("_iub_cs")].loadConsentRemote()}},{key:"storeConsent",value:function(e){this.options.skipSaveConsent?this.cs.info("NOT saving consent in cookie since options.skipSaveConsent is provided TRUE"):this[this.getStorageType(this.configuration.consentNameLocal)].storeConsent(e)}},{key:"storeConsentLocal",value:function(e){return this.storeConsent(e)}},{key:"reset",value:function(e){for(var t in this.storageDrivers)Object.prototype.hasOwnProperty.call(this.storageDrivers,t)&&this.storageDrivers[t].reset(e)}},{key:"resetCookies",value:function(e){return this.reset(e)}},{key:"pickUpRemoteCookie",value:function(e){this.cookieStorage.pickUpRemoteCookie(e)}},{key:"receiveMessageFromBridge",value:function(e){if(-1===e.origin.indexOf(this.cs.options.loopbackServer.iframeBridge.host))return null;var t="";try{t=JSON.parse(e.data)}catch(e){if(this.cs.options.raiseOnException)throw e;this.cs.error("Exception while decoding message from iFrame bridge: "+(e.message||e))}if(t&&t.action)switch(t.action){case"pickUpRemoteCookie":this[this.getStorageType(this.configuration.consentNameLocal)].state.remote.get.timeoutOccurred?this.cs.warn("Remote callback received too late"):this.loadConsentRemoteCallback(t.cName,t.data);break;case"remoteCookieSet":this.cs.checkIfReloadAfterRemoteSet();break;case"remoteCookiesCompact":this.cs.debug("remote cookies compact");break;default:this.cs.error("Unrecognized message from iFrame bridge: "+JSON.stringify(t))}else this.cs.error("Unrecognized message from iFrame bridge: "+JSON.stringify(t));return t}},{key:"loadConsentRemoteCallback",value:function(e,t){if(t){this.cs.info("Remote prefs found!"),this.cs.debug(t);var n=this.getStorageType(this.configuration.consentNameLocal),i=this.getStorageType(this.configuration.ccpaNameLocal);switch(e){case this.configuration.consentNameRemote:this.cs.consent=t,this[n].setLocal(this.configuration.consentNameLocal,t),this[n].state.remote.get.acknowledged=!0,this[n].getRemoteConsentPromise&&this[n].getRemoteConsentPromise.resolve(t);break;case this.configuration.ccpaNameRemote:this.cs.usPrivacyCookie=t,this[i].setLocal(this.configuration.ccpaNameLocal,t),this[i].state.remote.get.acknowledged=!0,this[i].getRemoteConsentPromise&&this[i].getRemoteConsentPromise.resolve(t)}this.cs.options.reloadOnConsent&&(this.cs.info("page will be reloaded (reloadOnConsent==true) once local prefs are set"),this.cs.state.reloadAfterLocaleSet=!0)}else this.cs.info("Remote prefs NOT found!")}}])}(),jo=function(){return o((function e(t){n(this,e),this.cs=t,this.storage=new zo({cs:t}),this.tcf=new Oo(t,this.storage),this.usPrivacy=new Io(t),this.uspr=new Bo(t,this.storage),this.core=new To(t,this.storage),this.fadp=new Lo(t,this.core)}),[{key:"setPreference",value:function(e,t,n){var i=this,o=!1;this.cs.options.reloadOnConsent&&!this.cs.state.consentFoundOnLoad&&(this.cs.state.reloadAfterRemoteSet=(this.cs.options.enableRemoteConsent?1:0)+(this.cs.options.enableTcf?1:0));var a=T();if(this.cs.options.ccpaApplies&&void 0!==e.ccpa&&(!0===e.ccpa?this.cs.preferences.storage.usPrivacy.acknowledgeCcpa():(this.cs.debug("CCPA Opt Out"),this.cs.preferences.storage.usPrivacy.optOutCcpa())),this.cs.options.usprApplies&&void 0!==e.uspr&&(o=!0,this.cs.preferences.storage.uspr.acceptAllUSPurposeConsent(e.uspr)),void 0!==e.purposes&&(o=!0,this.core.setPurposesPreference(e.purposes)),void 0!==e.consent&&(o=!0,this.core.storeConsent(e.consent)),(this.cs.options.gdprApplies||this.cs.options.lgpdApplies)&&void 0!==e.tcfv2){o=!0;var r={tcfv2:e.tcfv2,gac:e.gac};this.tcf.setTcfPreference(r,n).then((function(){return a.resolve()}))}else a.resolve();return a.then((function(){i.cs.updateGppApi(!1,!0,"processed"),o&&i.cs.fireConsentCallbacks(t),i.cs.tracker.consentGiven(t),i.cs.ui.generateFloatingPreferencesButton()})),a}},{key:"load",value:function(){var e=T();return D([this.core.load(),this.tcf.load(),this.uspr.load()]).then((function(t){var n=f(t,3),i=n[0],o=n[1],a=n[2];return e.resolve({core:i,tcf:o,uspr:a})})),e}}])}(),Uo=function(){return o((function e(t){n(this,e),this.cs=t,this.storage=new jo(this.cs)}),[{key:"core",get:function(){return this.storage.core.storageData}},{key:"gac",get:function(){return this.storage.tcf.gacString}},{key:"tcf",get:function(){return this.storage.tcf.tcfString}},{key:"ccpa",get:function(){return this.storage.usPrivacy.getUspString()}},{key:"uspr",get:function(){return this.storage.uspr.loadedData}},{key:"setState",value:function(){this.state=new So(this.cs)}},{key:"load",value:function(){var e=this,t=this.storage.load();return t.then((function(t){var n=t.uspr;e.cs.options.fadpApplies&&e.state.purposes.setPreference({all:!0},!0),n&&e.state.usPurposes&&e.state.usPurposes.setPreferences(n)})),t}},{key:"store",value:function(e,t,n){this.storage.setPreference(e,t,n)}}])}();function Mo(e,t){var n=864e5;return(t*n-Date.now()+new Date(e).getTime())/n}function Go(e){var t=[],n=(e||"").split("~"),i=n[0],o=n[1],a=n[2],r=function(e){for(var t=[],n=0,i=!1,o=e.split(".").map((function(e){return Number(e)})).sort((function(e,t){return e-t})),a=Math.max.apply(null,o),r=1;r<=a;r++){var s=-1!==o.indexOf(r);s!==i&&(t.push(n),i=s,n=0),n++}return n&&t.push(n),String.fromCharCode.apply(null,new Int16Array(t))};if(i){t.push(i);var s=r(o||"");if(t.push(s),a){var c=r(a.replace("dv.",""));t.push(c)}}var l=t.join("~");return btoa(unescape(encodeURIComponent(l)))}function Wo(e){return"1~"===(e||"").substring(0,2)?function(e){var t=(e||"").split("~"),n=t[0],i=t[1]||"",o=[];if(n){if(i){var a=decodeURIComponent(escape(atob(i)));o=new Int16Array(a.split("").map((function(e){return e.charCodeAt(0)})))}return n+"~"+o.join(".")}return""}(e):function(e){var t=[],n=decodeURIComponent(escape(atob(e))).split("~"),i=n[0],o=n[1],a=n[2],r=function(e){for(var t=[],n=1,i=new Int16Array(e.split("").map((function(e){return e.charCodeAt(0)}))),o=0;o<i.length;o++){var a=i[o];if(o%2!=0)for(var r=0;r<a;r++)t.push(n+r);n+=a}return t};if(i){t.push(i);var s=r(o||"");if(t.push(s.join(".")),a){var c=r(a);c.unshift("dv"),t.push(c.join("."))}}return t.join("~")}(e)}var Ho,qo=function(){return o((function e(t,i){var o,a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(this,e),st(this),this.settings=qe,this.VERSION=this.settings.version,this.remoteConfig=r,this.state={enabled:!0,preLoaded:!1,errors:[],fatalError:!1,inlineUniqId:0,invalidatingConsent:!1,inIframe:!1,consentFoundOnLoad:!1,reloadAfterRemoteSet:!1,reloadAfterLocaleSet:!1,activatingNoPriorConsent:!1,needsConsent:!0,tcfv2String:null,cpOpen:!1,isCmpCssLoaded:0,uspString:"1---",ccpaAcknowledged:!1,ccpaOptedOut:!1,ccpaUspVersion:1,ccpaUspStateFound:!1,ccpaOptOutConfirmationOpen:!1,currentView:"",remoteConfigLoaded:!1,fromSDK:!1},this.setConfiguration(t),this.activator=new pi(this),this.crossSiteConsent={},this.consent=this.getInitialConsent(),this.checkIfInIframe(),this.ui=new wn(this),this.tracker=new vi(this),!0===this.options.previewMode&&(this.tracker.state.enabled=!1),this.storage=new zo({cs:this}),this.options.storage.autoSync&&this.storage.syncStorage(),this.cookie=this.storage,null===(o=(a=_iub).__csAmpHook)||void 0===o||o.call(a,this,Do),this.browserDetect=new K,this.api=new Di(this),this.cmpLibraryPromise=i,this.storeCMPChoicePromise=T(),this.customPreferencesResult=this.fetchCustomPreferences(),this.savedPreferences={},this.customPurposes=null,this.firstActivationCompletedPromise=T(),this.preferences=new Uo(this)}),[{key:"getInitialConsent",value:function(){return{consent:void 0,timestamp:void 0,version:void 0}}},{key:"checkIfInIframe",value:function(){try{this.state.inIframe=window.self!==window.top}catch(e){}}},{key:"setCurrentView",value:function(e){this.state.currentView=e}},{key:"fetchCustomPreferences",value:function(){var e=this.storage.getLocal(this.storage.configuration.consentGranularNameLocal),t=this.decodeCustomPreferences(e);return this.isGoogleAdditionalConsentValid()||delete t.gac,t}},{key:"decodeCustomPreferences",value:function(e){return e&&Object.prototype.hasOwnProperty.call(e,"gac")?S(e,{gac:Wo(e.gac)}):e}},{key:"renewCookies",value:function(){var e=this;if(this.state.needsConsent&&this.isPreferenceExpressed()){var t=Mo(this.consent.timestamp,this.options.preferenceCookie.expireAfter);this.storage.storeConsentLocal({expireAfter:t})}if(this.options.enableTcf&&this.state.tcfv2String){var n={expireAfter:Mo(gi(this.state.tcfv2String).getLastUpdate(),this.settings.MAX_TCF2_COOKIE_DURATION)};this.storeCMPPreference(this.state.tcfv2String,n)}if(this.refreshGACConsent().then((function(){e.storeCustomPreferences(e.customPreferencesResult,!0)})),this.preferenceState.usPurposes.userConsentGiven&&this.preferences.storage.uspr.storeUSPurposeCookie(),this.usPrivacyCookie){var i=(this.usPrivacyCookie.optOutDate?this.usPrivacyCookie.optOutDate:0)+(this.options.ccpaCookie.expireAfter?this.options.ccpaCookie.expireAfter:0);this.storage.setLocal(this.settings.USPRIVACY_COOKIE,this.usPrivacyCookie,{expireAfter:i})}}},{key:"refreshGACConsent",value:function(){var e,t=this,n=T();if(null===(e=this.customPreferencesResult)||void 0===e||!e.gac)return n.resolve();var i=this.customPreferencesResult.gac,o=i.split("~");if(Number(o[0])===this.options.gacVersion)return n.resolve();var a=this.ui.getSavedPreferences();return this.createCmpWidget(a.cmpCookie,a.customPreferences),document.addEventListener("acVendorUpdate",(function(){t.ui.cmpWidget.acInitialize(),t.ui.cmpWidget.acSetState(i);var e=t.ui.cmpWidget.getCustomPreferences();t.customPreferencesResult=e,t.ui.cmpWidget.customPreferences=e,_iub.cmp.setAcmString(e),n.resolve()})),n}},{key:"createCmpWidget",value:function(e,t){var n=e,i=t;this.ui.previousTCFPreferences&&(n=this.ui.previousTCFPreferences.cmpCookie,i=this.ui.previousTCFPreferences.customPreferences);var o=this.options.lang,a=At[o];a||(a=At.en);var r=a.tcf_v2||At.en.tcf_v2,s=this.getCustomPurposes();this.ui.cmpWidget=new _iub.cmp.Widget(n,o,r,s,i,{popover:this.ui.popover,promiseCreate:T})}},{key:"isPreferenceExpressed",value:function(){var e=this.options,t=e.gdprApplies,n=e.lgpdApplies,i=e.usprApplies,o=e.fadpApplies,a=e.perPurposeConsent,r=e.enableTcf,s=e.askConsentIfCMPNotFound,c=e.skipSaveConsent;if(t||n||o){var l;if(a&&!this.preferenceState.purposes.hasGivenPreference())return!1;if(!(a||this.consent&&void 0!==(null===(l=this.consent)||void 0===l?void 0:l.consent)))return!1}return!(i&&!this.preferenceState.usPurposes.userConsentGiven)&&(!(!c&&s&&r&&!this.state.tcfv2String&&t)&&(t||n||i||o))}},{key:"getPreferencesExpressed",value:function(){var e=p({},this.consent);return this.preferenceState.usPurposes.isActive&&(e.uspr=this.preferenceState.usPurposes.getPreferences()),this.options.ccpaApplies&&(e.ccpa=this.preferences.storage.usPrivacy.generateCcpaCookie()),e}},{key:"storeCMPPreference",value:function(e,t){var n=Ni(this.options);this.storage.setLocalCMP(n,e,t),this.checkIfReloadAfterRemoteSet()}},{key:"checkIfReloadAfterRemoteSet",value:function(){this.debug("remote cookies successfully set."),"number"==typeof this.state.reloadAfterRemoteSet&&(this.state.reloadAfterRemoteSet--,this.state.reloadAfterRemoteSet<=0&&this.reloadPage())}},{key:"reloadPage",value:function(){this.info("Reloading page at consent given ..."),-1!==navigator.userAgent.indexOf("Google")?setTimeout((function(){location.reload(!0)}),500):location.reload(!0)}},{key:"storeCustomPreferences",value:function(e,t){if(this._acknowledgeCustomPreferences(e),e){(t?this.isGoogleAdditionalConsentValid():this.options.googleAdditionalConsentMode)||delete e.gac;var n=this.encodeCustomPreferences(e);this.storage.setLocal(this.storage.configuration.consentGranularNameLocal,n)}}},{key:"_acknowledgeCustomPreferences",value:function(e){this.customPreferences=S(this.customPreferences||{},e)}},{key:"encodeCustomPreferences",value:function(e){return e&&e.gac?S(e,{gac:Go(e.gac)}):e instanceof Object?e:{}}},{key:"migrateStorageCookieIdToSiteId",value:function(){if(this.options.storage.useSiteId&&!this.storage.getLocal(this.storage.configuration.consentNameLocal)){this.storage.configuration.forceCookiePolicyId=!0;var e=this.storage.configuration.consentNameLocal,t=this.storage.configuration.consentGranularNameLocal,n=this.storage.configuration.consentUsprNameLocal,i=this.storage.getLocal(e),o=this.storage.getLocal(t),a=this.storage.getLocal(n);this.storage.configuration.forceCookiePolicyId=!1,(i||o||a)&&(i&&(this.storage.setLocal(this.storage.configuration.consentNameLocal,i),this.storage.resetLocalCookie(e)),o&&(this.storage.setLocal(this.storage.configuration.consentGranularNameLocal,o),this.storage.resetLocalCookie(t),this.customPreferencesResult=this.fetchCustomPreferences()),a&&(this.storage.setLocal(this.storage.configuration.consentUsprNameLocal,a),this.storage.resetLocalCookie(n)))}}},{key:"preLoad",value:function(){return this.debug("executing preLoad()..."),this.migrateStorageCookieIdToSiteId(),this.state.preLoaded?(this.debug("already preloaded, skipping ..."),!0):(this.options.cookiePolicyId||this.fatal("Cannot start IubendaCookieSolution: cookiePolicyId NOT PROVIDED."),!!this.skipUnsupported()||(this.preferences.setState(),this.preferenceState=this.preferences.state,this.browserDetect.isBotAndShouldSkipBots()?(this.info("BOT detected: activating snippets and avoid banner rendering."),this.options.enableGpp&&(this.gppCmpApi=new yo(this.options)),this.options.fadpApplies&&this.preferenceState.purposes.setPreference({all:!0},!0),this.acceptAll(),this.applyConsent(!0),this.state.reloadAfterRemoteSet=!1,this.state.reloadAfterLocaleSet=!1,null):this.state.enabled?(this.startCs(),null):(Et(),this.state.remoteConfigLoaded&&this.ui.generateWarningButton("https://www.iubenda.com/help/120399-why-does-my-website-show-this-icon?utm_source=cs&utm_medium=web&utm_campaign=csalrt1"),this.tracker.start(!1),this.debug("IubendaCookieSolution is disabled, skipping ..."),!0)))}},{key:"startCs",value:function(){var e=this;return this.fireCallback("onBeforePreload"),this.usPrivacyCookie=this.storage.getLocal(this.settings.USPRIVACY_COOKIE),this.usPrivacyCookie&&this.setUspString(this.usPrivacyCookie.uspString),this.options.enableRemoteConsent&&!this.options.skipSaveConsent||!this.options.ccpaApplies||this.state.ccpaAcknowledged||this.deleteConsent(),this.preferences.load().then((function(t){var n;e.state.preLoaded=!0,t.core.consent&&(e.consent=t.core.consent),!e.options.skipSaveConsent&&null!==(n=t.tcf)&&void 0!==n&&n.needsCMPConsent&&e.deleteConsent(),e.start({doConsentRewrite:t.core.doConsentRewrite})})),null}},{key:"deleteConsent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.skipResetCookies=e.skipResetCookies||!1,e.skipResetRemoteCookies=e.skipResetRemoteCookies||!1,this.consent=this.getInitialConsent(),this.state.invalidatingConsent=!0,e.skipResetCookies||this.storage.reset({local:!0,remote:this.options.enableRemoteConsent&&!e.skipResetRemoteCookies})}},{key:"fetchCMPCookie",value:function(){var e=Ni(this.options);if(!this.options.enableTcf)return null;var t=this.state.tcfv2String;if(t)return this.isTcfConsentValid(t)||(t=null,this.state.tcfv2String=""),t;var n=this.storage.getLocalCMP(e);return n||(n=this.storage.getLocalCMP(this.settings.TCF_V2_CONSENT_COOKIE)),this.isTcfConsentValid(n)||(n=null),this.state.tcfv2String=n||"",n}},{key:"isTcfConsentValid",value:function(e){var t=this.getTcfConsentStatus(e);return this.state.tcfConsentStatus=t,0===t}},{key:"getTcfConsentStatus",value:function(e){var t=gi(e);return(e?this.needsConsentOnVendorListUpdate(t)&&2:1)||this.isTcfConsentCreatedBefore(t,_iub.invTcfC||null)&&3||this.isTcfConsentUpdatedBefore(t,Math.max(_iub.invTcfU||0,this.options.invalidateConsentBefore||0))&&4||this.isNotServiceSpecific(t)&&5||this.didntConsentNewVendors(t)&&6||0}},{key:"isGoogleAdditionalConsentValid",value:function(){var e=!0;null!==this.state.tcfv2String&&(e=0===this.getTcfConsentStatus(this.state.tcfv2String));return this.options.googleAdditionalConsentMode&&e}},{key:"openAdvertisingPreferences",value:function(){this.ui.showCP(!1,!0,!1)}},{key:"needsConsentOnVendorListUpdate",value:function(e){var t=_iub.GVL3;if(e.getVendorListVersion()<t){var n=((new Date).getTime()-e.getLastUpdate())/864e5,i=this.options.newConsentAtVendorListUpdate;if(null!=i)return n>i}return!1}},{key:"isTcfConsentCreatedBefore",value:function(e,t){var n=t,i=new Date;i.setDate(i.getDate()-this.settings.MAX_TCF2_COOKIE_DURATION),(!n&&this.settings.MAX_TCF2_COOKIE_DURATION||n<i)&&(n=i);var o=new Date(n).getTime();return n&&e.getCreationDate()<o}},{key:"isTcfConsentUpdatedBefore",value:function(e,t){return t&&e.getLastUpdate()<di(t)}},{key:"isNotServiceSpecific",value:function(e){return!e.getIsServiceSpecific()}},{key:"didntConsentNewVendors",value:function(e){var t=e.getCreationDate(),n=e.getLastUpdate(),i=Date.UTC(2020,7,18,21);return t<i&&n<i&&n-t>36e5}},{key:"getMissingCustomPreferences",value:function(e){for(var t=[],n=this.getCustomPurposes(),i=0;i<n.length;i++){var o=n[i];e.hasOwnProperty(o.id)||t.push(o.id)}return t}},{key:"getCustomPurposes",value:function(){return this.customPurposes||(this.customPurposes=[],this.options.googleAdsPreferenceManagement&&this.customPurposes.push({id:this.settings.GOOGLE_ADS_PERSONALIZED_ID,name:"Personalized advertising from Google and its partners",description:"Google and its partner ad technology providers use cookies for personalization and measurement purposes. Users can customize their consent preferences for both Google and its partners. To learn more, please refer to the <a target='_blank' rel='noopener' href='https://support.google.com/admanager/answer/9012903'>privacy policies of the respective services</a>."}),this.options.googleAdditionalConsentMode&&this.customPurposes.push({id:"gac",name:"",description:""})),this.customPurposes}},{key:"fireCallback",value:function(e,t){var n=this.options.callback[e],i=t;switch(this.emit("callback.before."+e,i),e){case"onReady":i=this.consent.consent;break;case"onPreferenceExpressed":case"onPreferenceNotNeeded":this.fireCallback("onPreferenceExpressedOrNotNeeded",i);break;case"onConsentRead":!n&&this.isConsentGiven()&&(n=this.options.callback.onConsentGiven);break;case"onCcpaFirstAcknowledged":n=this.options.callback.onCcpaFirstAcknowledged;break;case"onCcpaFirstOptOut":n=this.options.callback.onCcpaFirstOptOut}if(n)try{this.debug("activating callback: "+n),n(i)}catch(t){if(this.options.raiseOnException)throw t;"onError"!==e?this.error("Exception while invoking callback "+e+": "+(t.message||t)):this.log("Exception while invoking callback "+e+": "+(t.message||t),"error")}}},{key:"getPreferences",value:function(){var e,t,n=!(null===(e=_iub.cs.preferenceState)||void 0===e||null===(e=e.usPurposes)||void 0===e||!e.userConsentGiven);if(!this.consent.id&&!n)return{};var i={id:this.options.cookiePolicyId};this.consent.timestamp&&(i.timestamp=this.consent.timestamp);var o,a=this.preferenceState.getStateObject();(this.options.perPurposeConsent&&(this.options.gdprApplies||this.options.lgpdApplies||this.options.fadpApplies)?i.purposes=a.purposes:i.consent=!!this.consent.consent,this.state.tcfv2String&&(i.tcfv2=this.state.tcfv2String),null!==(t=this.customPreferences)&&void 0!==t&&t.gac&&(i.gac=this.customPreferences.gac),this.options.ccpaApplies&&(i.ccpa=this.preferences.storage.usPrivacy.getUspString()),this.options.enableGpp)&&(i.gppString=(null===(o=this.gppCmpApi)||void 0===o||null===(o=o.cmpApi)||void 0===o||null===(o=o.model)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.gppString)||"");return a.usPurposes&&(i.uspr=a.usPurposes),i}},{key:"isConsentGiven",value:function(){if(!this.consent)return!1;var e=!0,t=this.options.perPurposeConsent&&(this.options.gdprApplies||this.options.lgpdApplies||this.options.fadpApplies);return t&&e&&(this.consent.purposes||(e=!1),e=this.preferenceState.purposes.isAllApproved()),this.preferenceState.usPurposes.isActive&&e&&(e=this.preferenceState.usPurposes.userConsentGiven),t||this.options.usprApplies?e:!0===this.consent.consent}},{key:"start",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.debug("executing start() ...");var n=this.options,i=!1!==t.doConsentRewrite;if(this.state.fatalError)return this.error("exiting start() since in fatalError ..."),!1;if(this.setup()){this.info("IubendaCookieSolution setup OK! Starting ..."),this.emit("start"),this.tracker.start(this.isPreferenceExpressed()),n.enableGpp&&(this.gppCmpApi=new yo(n)),_e((function(){if(e.options.enableTcf&&kt(e.ui),e.ui.createPreferencesWidgets(),Wt(e.ui),e.ui.bindVendorListBtns(),n.enableCcpa&&n.ccpaApplies)for(var t=document.querySelectorAll(".iubenda-ccpa-opt-out"),i=0;i<t.length;i++)e.handleAskOptOutClick(t[i])}),!0),this.renewCookies(),this.state.needsConsent&&this.isPreferenceExpressed()?(this.options.showBannerForCH&&!this.consent.timestamp&&this.startCsUi(),this.isConsentGiven()?(this.state.consentFoundOnLoad=!0,i&&this.storage.storeConsentLocal(),this.fireCallback("onPreferenceExpressed",this.getPreferencesExpressed())):(this.options.callback.onConsentRead?this.fireCallback("onConsentRead"):this.isConsentRejected()&&this.fireCallback("onConsentRejected"),this.fireCallback("onPreferenceExpressed",this.getPreferencesExpressed())),this.updateTcfApi(!1),this.updateGppApi(!1),this.ui.bindButtons(),this.csReady()):this.state.needsConsent&&!this.isPreferenceExpressed()?(this.updateTcfApi(!0),this.updateGppApi(!0),this.startCsUi(),this.isPriorConsent()||(this.state.activatingNoPriorConsent=!0,this.fireCallback("onPreferenceNotNeeded"))):(this.updateTcfApi(!1),this.updateGppApi(!1),this.ui.bindButtons(),this.csReady());var o=!this.state.needsConsent;this.applyConsent(o),this.state.reloadAfterLocaleSet&&this.reloadPage(),n.enableCcpa&&(window.__uspapi=function(t,n,i){"function"==typeof i&&1===n&&"getUSPData"===t&&i({version:n,uspString:e.preferences.storage.usPrivacy.getUspString()},!0)},n.ccpaApplies&&this.shouldAcknowledgeCcpaOnLoad()&&this.preferences.storage.usPrivacy.acknowledgeCcpa()),this.enablePrivacyPolicyLinks(),this.preferences.storage.fadp.storeFadpConsent(),this.options.hasSensitiveData||!0!==this.options.usprApplies||this.preferences.storage.uspr.storeUSPurposeCookie()}else this.fatal("Cannot start IubendaCookieSolution");n.ccpaApplies&&Dt();var a=de(".iubenda-cs-uspr-link");return a.forEach((function(t){e.handleUsprPPClick(t)})),null}},{key:"setup",value:function(){var e;if(this.debug("executing setup() ..."),this.state.fatalError)return this.error("exiting setup() since in fatalError ..."),!1;if(this.invalidateConsentIfNecessary(),this.options.perPurposeConsent&&null!==(e=this.consent)&&void 0!==e&&e.purposes&&this.preferenceState.purposes.setPreference(this.consent.purposes),!this.options.gdprApplies&&!this.options.lgpdApplies){if(this.options.ccpaApplies&&this.options.ccpaNoticeDisplay&&!this.state.ccpaAcknowledged)return this.state.needsConsent=!0,!0;if(this.options.showBannerForUS||this.options.showBannerForCH)return this.state.needsConsent=!0,!0;this.info("Setting state.needsConsent = false since gdprApplies is false, scripts will be activated and banner will not be shown."),this.state.needsConsent=!1}return this.migratePurposesPreferences(),!0}},{key:"enablePrivacyPolicyLinks",value:function(){for(var e=de("#iubenda-cs-banner .iubenda-privacy-policy-link"),t=0;t<e.length;t++)this.handleBannerPPClick(e[t])}},{key:"invalidateConsentIfNecessary",value:function(){this.isPreferenceValid()||this.deleteConsent({skipResetCookies:this.options.skipSaveConsent,skipResetRemoteCookies:!this.options.enableRemoteConsent})}},{key:"isPreferenceValid",value:function(){var e,t=di(this.consent.timestamp||0),n=di(this.options.invalidateConsentBefore);if(n&&t>0&&t<n)return!1;if(this.options.consApiKey&&(null===(e=this.consent)||void 0===e||null===(e=e.cons)||void 0===e||!e.rand)){var i=this.options.invalidateConsentWithoutLog,o="string"==typeof i||"number"==typeof i,a=o?new Date(i).getTime():null;if(!0===i||o&&a>t)return!1}var r=this.storage.getLocal(this.storage.configuration.consentUsprNameLocal);return!(this.options.usprApplies&&!r&&this.consent.timestamp)}},{key:"migratePurposesPreferences",value:function(){var e=this;if(this.options.perPurposeConsent&&!this.isPreferenceExpressed()&&this.consent&&void 0!==this.consent.consent)this.debug("switching from no per-purpose to per-purpose"),this.preferenceState.purposes.setPreference({all:this.consent.consent}),this.consent.purposes=this.preferenceState.purposes.getPreferences();else if(!this.options.perPurposeConsent&&void 0===this.consent.consent&&void 0!==this.consent.purposes){this.debug("switching from per-purpose to no per-purpose");var t=Object.keys(this.consent.purposes).filter((function(e){return 1!=+e})).map((function(t){return e.consent.purposes[t]}));t.length&&(t.every(Boolean)?this.consent.consent=!0:t.some(Boolean)||(this.consent.consent=!1))}}},{key:"handleAskOptOutClick",value:function(e){var t=this;Ne(e,"click",(function(e){e.stopPropagation(),t.askCcpaOptOut()}))}},{key:"askCcpaOptOut",value:function(){this.ui.showCcpaOptOutConfirmBox()}},{key:"updateTcfApi",value:function(e,t){var n=this.options;if(n.enableTcf&&_iub.cmp&&_iub.cmp.exposeCmpGlobalFunction){if(this.state.lastCmpUiVisibleState===!!e)return;this.state.lastCmpUiVisibleState=!!e,this.info("Going to expose global API, reading data ...");var i=this.fetchCustomPreferences();this.info("Updating consent data via CMP API ..."),_iub.cmp.exposeCmpGlobalFunction(t||this.state.tcfv2String,n.gdprAppliesGlobally,n.gdprApplies,!1,i,e)}}},{key:"updateGppApi",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"processing";if(this.options.enableGpp){var i=t?{tcString:this.state.tcfv2String,usPurposes:this.preferenceState.usPurposes}:{};this.gppCmpApi.update(e,i,n)}}},{key:"csReady",value:function(){_iub.csReady=!0,this.state.ccpaAcknowledged&&this.fireCallback("onCcpaAcknowledged"),this.state.ccpaOptedOut&&this.fireCallback("onCcpaOptOut"),this.fireCallback("onReady")}},{key:"startCsUi",value:function(){var e=this;this.options.hideInIframe&&this.state.inIframe||this.startCmpWidget().then((function(){e.ui.start()}))}},{key:"startCmpWidget",value:function(){var e=this,t=T();return this.options.enableTcf?this.cmpLibraryPromise.then((function(){e.ui.setCmpWidget(e.state.tcfv2String,e.customPreferencesResult),t.resolve()})):t.resolve(),t}},{key:"isPriorConsent",value:function(){return this.state.enabled?this.state.needsConsent?!!(this.options.gdprApplies||this.options.lgpdApplies||this.options.showBannerForUS):(this.info("Prior consent is not needed for the current user."),!1):(this.info("Cookie policy NOT ENABLED, starting in priorConsent false mode."),!1)}},{key:"startActivation",value:function(e,t){var n=this;if(!_iub.csActivationViaSafeMode||t){if(!_iub.csActivationInProgress){_iub.csActivationInProgress=!0,_iub.csActivationDone=!1;var i=null;e&&(i=this.options.get("callback.onActivationDone"));var o=this.firstActivationCompletedPromise;this.emit("before-activation");var a={usPurposesPreference:this.preferenceState.usPurposes,consent:this.consent.consent};this.startActivator(a,(function(){_iub.csActivationInProgress=!1,_iub.csActivationDone=!0,n.emit("activation-done"),o&&!o._isResolved&&o.resolve(),i&&i()}))}}else $e.debug("activation already done or in progress by SAFEMODE activator. Yielding."),this.firstActivationCompletedPromise.resolve()}},{key:"handleBannerPPClick",value:function(e){var t=this;Ne(e,"click",(function(e){e.preventDefault(),e.stopPropagation(),setTimeout((function(){t.ui.showPPCcpaSection(t.options.cookiePolicyInOtherWindow)}),0)}))}},{key:"handleUsprPPClick",value:function(e){var t=this;Ne(e,"click",(function(e){e.stopPropagation(),setTimeout((function(){t.ui.showPPUsprSection(t.options.cookiePolicyInOtherWindow)}),0)}))}},{key:"skipUnsupported",value:function(){return!this.browserDetect.isMobile()&&"Explorer"===this.browserDetect.browser&&this.browserDetect.version<11}},{key:"setUspString",value:function(e){null===e?this.state.ccpaUspStateFound=!1:(this.state.ccpaUspStateFound=!0,this.state.ccpaAcknowledged="Y"===e[1],this.state.ccpaOptedOut="Y"===e[2])}},{key:"applyConsent",value:function(e){var t=!!e;if(this.debug("applying current consent [with force option: "+t+"] ..."),t||this.isPreferenceExpressed())this.info("consent has been given ..."),this.state.activatingNoPriorConsent?this.info("snippets already activated ..."):(this.updateTcfApi(!1),this.updateGppApi(!1,!0,"processed"),this.startActivation(!0)),this.fireCallback(this.state.needsConsent?"onConsentRead":"onPreferenceNotNeeded");else{this.info("consent NOT given");var n={usPurposesPreference:this.preferenceState.usPurposes};this.startActivator(n)}}},{key:"startActivator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={perPurposeConsent:this.options.perPurposeConsent,skipPurposeCheck:!this.state.enabled,gdprApplies:this.options.gdprApplies,lgpdApplies:this.options.lgpdApplies,usprApplies:this.options.usprApplies,fadpApplies:this.options.fadpApplies,promptToAcceptOnBlockedElements:this.options.promptToAcceptOnBlockedElements,banner:this.options.banner,purposes:this.options.purposes,renderOverlay:Fi},i=p(p({},e),{},{state:this.preferenceState});this.activator.activateOnDomReady(t,n,i,this.state.ccpaOptedOut)}},{key:"consentGiven",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.eventName,i=this.checkConsentGiven(n);if(this.options.perPurposeConsent&&(i?this.preferenceState.purposes.setPreference({all:!0},!0):this.preferenceState.purposes.setPreference({all:!1})),this.options.usprApplies&&(this.preferenceState.usPurposes.userConsentGiven=!0),this.options.enableTcf&&!this.options.perPurposeConsent)try{var o=this.ui.cmpWidget.getEnabledPurposeIds();-1===o.indexOf(1)&&this.ui.CPiFrame.isInTcfView()&&(i=!1)}catch(e){}this.consent=this.preferences.storage.core.getConsentObj(i),this.options.reloadOnConsent&&!this.state.consentFoundOnLoad&&(this.state.reloadAfterRemoteSet=(this.options.enableRemoteConsent?1:0)+(this.options.enableTcf?1:0));var a=[T((function(e){return e()}))];this.storage.storeConsent(),this.preferences.storage.uspr.storeUSPurposeCookie(),this.options.enableTcf&&(this.options.gdprApplies||this.options.lgpdApplies)&&!this.options.skipSaveConsent&&a.push(T((function(t){e.storeCmpChoice().then((function(n){e.updateTcfApi(!1,n),t()}))}))),D(a).then((function(){e.updateGppApi(!1,!0,"processed"),e.fireConsentCallbacks(n)})),this.tracker.consentGiven(n)}},{key:"isCpOpen",value:function(){return this.state.cpOpen}},{key:"isConsentRejected",value:function(){return!!this.isPreferenceExpressed()&&(this.options.perPurposeConsent?!!this.consent.purposes&&this.preferenceState.purposes.isAllDisapproved():!1===this.consent.consent)}},{key:"storeCmpChoice",value:function(){var e=this,t=this.ui,n=t.cmpWidget,i=this.state.tcfv2String,o=T(),a=this.customPreferencesResult;return this._waitForCmpWidgetRender().then((function(){e._fetchVendorIdsToEnable(n,i).then((function(r){t.consentRejected?(n.disableAllPurposesAndAllVendors(),(e.options.googleAdsPreferenceManagement||e.options.googleAdditionalConsentMode)&&n.disableAllCustomPurposes()):!i&&t.consentAccepted?(n.enableAllPurposesAndAllVendors(),n.enableAllCustomPurposes(),(e.options.googleAdsPreferenceManagement||e.options.googleAdditionalConsentMode)&&n.enableMissingCustomPreferences(a)):r.length&&(n.enableVendors(r),n.enableLegIntVendors&&n.enableLegIntVendors(r)),e.storeCustomPreferences(n.getCustomPreferences());var s=n.getPreferenceString();e.storeCMPPreference(s),e.state.tcfv2String=s,e.storeCustomPreferences(n.getCustomPreferences()),e.storeCMPChoicePromise.resolve(s),o.resolve(s)}))})),o}},{key:"_waitForCmpWidgetRender",value:function(){var e=T();return this.ui.cmpWidget.hasBeenRendered()?e.resolve():this.ui.cmpWidget.render((function(){e.resolve()})),e}},{key:"_fetchVendorIdsToEnable",value:function(e,t){var n=T();if(!t)return n.resolve([]),n;if(e.hasBeenDisplayed())return n.resolve([]),n;var i=e._vendorsJSON,o=gi(t).getVendorListVersion();return o>=i.vendorListVersion?(n.resolve([]),n):(e.getVendorList(o,(function(e){for(var t={},o=0;o<i.vendors.length;o++)t[i.vendors[o].id]=!0;for(var a=0;a<e.vendors.length;a++)delete t[e.vendors[a].id];var r=Object.keys(t).map((function(e){return+e}));n.resolve(r)}),(function(){n.resolve([])})),n)}},{key:"fireConsentCallbacks",value:function(e){var t=this;this.emit("on-consent-first-given"),this.fireCallback("onConsentFirstGiven",e),"rejectButtonClick"===e&&(this.fireCallback("onConsentFirstRejected"),this.fireCallback("onConsentRejected"));var n=this.getPreferencesExpressed();this.fireCallback("onPreferenceFirstExpressed",n),this.fireCallback("onPreferenceExpressed",n),this.options.reloadOnConsent&&!this.state.consentFoundOnLoad?this.options.enableTcf?this.storeCMPChoicePromise.then((function(){t.reloadOrWaitForTimeOut()})):this.reloadOrWaitForTimeOut():this.applyConsent()}},{key:"reloadOrWaitForTimeOut",value:function(){var e=this;if(this.state.reloadAfterRemoteSet>0){var t=this.options.enableTcf?this.settings.timeoutBeforeReloadWithCmp:this.settings.timeoutBeforeReload;setTimeout((function(){e.reloadPage()}),t)}else this.reloadPage()}},{key:"handleMultipleLanguages",value:function(){var e=this.remoteConfig.csFeatures;e&&"string"==typeof e.multiple_languages&&_iub.csConfiguration.lang&&e.multiple_languages!==_iub.csConfiguration.lang&&(this.remoteConfig.csEnabled=!1,this.state.enabled=!1)}},{key:"enableCsOnPreviewMode",value:function(e){e.previewMode&&(this.remoteConfig.csEnabled=!0,this.state.enabled=!0)}},{key:"checkDataAfterRequest",value:function(){var e=this.remoteConfig.csEnabled;void 0===e?($e.warn("Remote configuration NOT correctly loaded: Iubenda Cookie Solution enabled without Priorconsent."),this.remoteConfig.csEnabled=this.state.enabled=!1):(this.state.remoteConfigLoaded=!0,this.state.enabled=e)}},{key:"checkMobileLicensing",value:function(){if("iubenda_sdk"in window){var e=this.remoteConfig.csFeatures;this.state.fromSDK=!0;var t=!0;void 0!==(null==e?void 0:e.mobile_app_integration)&&(t=!e||!!e.mobile_app_integration),t||(this.remoteConfig.csEnabled=!1,this.state.enabled=!1,window.iubenda_sdk.emit("cserror",{message:"The mobile integration is not enabled."}))}}},{key:"setConfiguration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.state.preLoaded||(this.checkDataAfterRequest(),this.handleMultipleLanguages(),this.checkMobileLicensing(),this.enableCsOnPreviewMode(e),this.options=new Li(e,this.remoteConfig))}},{key:"shouldShowBanner",value:function(){return this.isPreferenceExpressed()&&!this.options.showBannerForCH||this.ui&&this.ui.isOnlyCcpaConsentGiven()?(this.info("consent given, no banner to show"),!1):(this.debug("consent NOT given, setting up UI"),!0)}},{key:"setCpOpen",value:function(e){this.state.cpOpen!==e&&(this.state.cpOpen=e,e?this.fireCallback("on2ndLayerShown"):this.fireCallback("on2ndLayerClosed"))}},{key:"version",value:function(){return $e.warn("[Deprecation] _iub.cs.version() is deprecated, please use _iub.cs.VERSION instead"),this.settings.version}},{key:"remoteCookiesSet",value:function(e){this.storage.remoteCookiesSet(e)}},{key:"pickUpRemoteCookie",value:function(e){this.storage.pickUpRemoteCookie(e)}},{key:"log",value:function(e,t){var n=t.toLowerCase();$e.log(n,e),"error"!==n&&"fatal"!==n||("fatal"===n&&(this.state.fatalError=!0),null!=e&&this.state.errors.push(e))}},{key:"closeCP",value:function(){this.ui.closeCPiFrame()}},{key:"stringEndsWith",value:function(e,t){return-1!==e.indexOf(t,e.length-t.length)}},{key:"getSavedPreferences",value:function(){var e=this.fetchCustomPreferences();return this.savedPreferences.cmpCookie=this.state.tcfv2String,this.savedPreferences.customPreferences=e,this.savedPreferences}},{key:"debug",value:function(e){this.log(e,"debug")}},{key:"warn",value:function(e){this.log(e,"warn")}},{key:"error",value:function(e){this.log(e,"error"),this.fireCallback("onError",e)}},{key:"fatal",value:function(e){this.log(e,"fatal"),this.fireCallback("onFatalError",e)}},{key:"info",value:function(e){this.log(e,"info")}},{key:"shouldAcknowledgeCcpaOnLoad",value:function(){return!this.state.ccpaAcknowledged&&(!(this.options.ccpaNoticeDisplay&&!this.options.ccpaAcknowledgeOnDisplay)||!!this.options.ccpaAcknowledgeOnLoad)}},{key:"checkConsentGiven",value:function(e){var t=!(!this.isCpOpen()&&this.isConsentRejected())&&!("rejectButtonClick"===e);if(this.options.enableTcf&&!this.options.perPurposeConsent)try{-1===this.ui.cmpWidget.getEnabledPurposeIds().indexOf(1)&&this.ui.CPiFrame.isInTcfView()&&(t=!1)}catch(e){}return t}},{key:"loadPreferences",value:function(){this.preferences.load()}},{key:"storePreferences",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"cookiePolicyClosed";this.preferences.store(e,n,t)}},{key:"acceptAllUltimate",value:function(e){this.options.isRejectionRecoveryDisabled()&&!0!==this.options.previewMode||this.acceptAll(e)}},{key:"acceptAll",value:function(e){this.preferences.store({consent:!0,ccpa:!0,uspr:{sd5:!0,sd8:!0,sd9:!0},purposes:{all:!0},tcfv2:{all:!0},gac:{all:!0}},e,!0)}},{key:"rejectAll",value:function(e){var t={consent:!1,ccpa:!1,uspr:{sd5:!1,sd8:!1,sd9:!1},tcfv2:{all:!1},gac:{all:!1}};this.options.fadpApplies||(t.purposes={all:!1}),this.preferences.store(t,e,!0)}}])}(),Jo="iub_newsletter_store",Ko="iub_newsletter_store_views",Yo=function(){return o((function e(t){var i;if(n(this,e),!t)throw new Error("NewsletterWidget missing configuration");this.configuration=t,this.loaded=!1,this.pageViews=parseInt(null!==(i=localStorage.getItem(Ko))&&void 0!==i?i:0,10),this.containerElementInPage=null,this.emitter=new rt}),[{key:"increasePageViewCounter",value:function(){localStorage.setItem(Ko,++this.pageViews)}},{key:"load",value:function(e,t){var n=this;if(!this.isNewsletterSubscribed()&&this.isNewsletterDateValid(t)&&!this.loaded){var i="https://cdn.iubenda.com/cs/email_pref/versions/0.1.5/newsletter-widget-[lang].umd.js";e(i=i.replace("[lang]",this.configuration.lang.toLowerCase())).then((function(){Ho=new IubendaNewsletter.NewsletterWidget(n.configuration),n.loaded=!0,n.increasePageViewCounter(),n.emitter.emit("iub.newsletter.load",n)}))}}},{key:"on",value:function(e,t){this.emitter.on(e,t)}},{key:"init",value:function(){if(!(this.pageViews<this.configuration.showFromPageView)){var e={},t=document.querySelector("._iub_emailmarketing_widget");t&&(e.configuration={position:"inline"},e.attachTo=t),Ho.on("iub.newsletter.close",(function(){var e,t,n={};try{n=JSON.parse(localStorage.getItem(Jo))}catch(e){}localStorage.setItem(Jo,JSON.stringify({subscribedAt:(null===(e=n)||void 0===e?void 0:e.subscribedAt)||void 0,subscribed:!(null===(t=n)||void 0===t||!t.subscribed),closedAt:(new Date).toUTCString()}))})),Ho.on("iub.newsletter.subscribed",(function(){var e,t={};try{t=JSON.parse(localStorage.getItem(Jo))}catch(e){}localStorage.setItem(Jo,JSON.stringify({subscribedAt:(new Date).toUTCString(),subscribed:!0,closedAt:(null===(e=t)||void 0===e?void 0:e.closedAt)||void 0}))})),Ho.init(e)}}},{key:"storageKey",get:function(){return Jo}},{key:"isNewsletterSubscribed",value:function(){try{return!0===JSON.parse(localStorage.getItem(Jo)).subscribed}catch(e){}return!1}},{key:"isNewsletterDateValid",value:function(e){var t=localStorage.getItem(Jo);try{var n=JSON.parse(t),i=new Date(n.closedAt),o=(new Date).getTime()-i.getTime(),a=Math.floor(o/6e4);return a<0||a>=e}catch(e){}return!0}}])}(),Xo=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this._csSiteConf=t.csSiteConf,this._csRC=t.csRC,this.csEnabled=t.csEnabled,this._csPurposes=t.csPurposes,this._csT=t.csT,this._csFeatures=t.csFeatures,this._cpUpd=t.cpUpd,this._ppUpd=t.ppUpd,this._googleConsentModeV2=t.googleConsentModeV2}),[{key:"csSiteConf",get:function(){return this._csSiteConf}},{key:"csRC",get:function(){return this._csRC}},{key:"csPurposes",get:function(){return this._csPurposes}},{key:"csT",get:function(){return this._csT}},{key:"csFeatures",get:function(){return this._csFeatures}},{key:"cpUpd",get:function(){return this._cpUpd}},{key:"ppUpd",get:function(){return this._ppUpd}},{key:"googleConsentModeV2",get:function(){return this._googleConsentModeV2}}])}();function $o(){var e="https://cdn.iubenda.com/cs/tcf/versions/tcf-v2-0.27.1.js";return"Symbol"in window&&"assign"in Object&&"values"in Object&&"entries"in Object&&"isInteger"in Number||(e=e.replace(/(.*)\/tcf-v2(.*?\.js)/,"$1/tcf-v2-polyfilled$2")),e}function Qo(e){var t=T(),n=document.createElement("script");return n.src=e,n.setAttribute("charset","UTF-8"),n.onload=function(){t.resolve()},document.head.appendChild(n),t}function Zo(){var e=T().resolve();return function(){try{return"consentState"in JSON.parse(window.name)}catch(e){return!1}}()&&(e=Qo("https://cdn.iubenda.com/cookie_solution/versions/cs_amp-1.5.0.js")),e}new(function(){return o((function e(t,i){n(this,e),this.csPremergedConfig=function(e){return P(Xe,e)}(t),this.csConfiguration=t;var o=this.csConfiguration.lang;"object"===m(i)&&Object.prototype.hasOwnProperty.call(i,o)&&x(this.csConfiguration,i[o]),_iub.csLoaded||(_iub.csLoaded=!0,this.init())}),[{key:"init",value:function(){var e=this;Zo().then((function(){try{e.getRemoteConfig().then((function(t){e.cmpLibraryPromise=e.getCmpLibraryPromise(t);var n=e.createInstance(t);if(!!window.localStorage&&n.options.hasEmailMarketing){var i,o={apiKey:null===(i=_iub.csRC)||void 0===i?void 0:i.consentDatabasePublicKey,lang:n.options.lang,source:window.location.href,privacyPolicyId:n.options.cookiePolicyId,privacyPolicyUrl:n.options.privacyPolicyUrl,privacyPolicyInOtherWindow:n.options.cookiePolicyInOtherWindow,preview:n.options.emailMarketing.preview,position:n.options.emailMarketing.position,customI18n:n.options.emailMarketing.customI18n,showFromPageView:n.options.emailMarketing.showFromPageView,theme:n.options.emailMarketing.theme,styles:n.options.emailMarketing.styles||{}},a=new Yo(o);n.on("callback.before.onPreferenceExpressedOrNotNeeded",(function(){return a.load(Qo,n.options.emailMarketing.closeRetainTime)})),a.on("iub.newsletter.load",(function(e){n.fireCallback("onEmailMarketingLoaded",e),n.newsletter=e,n.options.emailMarketing.autoInit&&e.init()}))}e.preLoadCS(n)}))}catch(t){e.handleStartupFailure(t)}}))}},{key:"addAnalyticsPurposeIfNeeded",value:function(e){var t=-1===e.indexOf(4),n=-1!==e.indexOf(6),i=-1!==e.indexOf(7);t&&(n||i)&&e.push(4)}},{key:"getRemoteConfig",value:function(){var e=this,t=T();return ot(_iub.csConfiguration,(function(n){e.handleStartupFailure(n),t.resolve({})}),(function(){var n=new Xo({csSiteConf:_iub.csSiteConf,csRC:_iub.csRC,csEnabled:_iub.csEnabled,csPurposes:_iub.csPurposes||[],csT:_iub.csT,csFeatures:_iub.csFeatures,cpUpd:_iub.cpUpd,ppUpd:_iub.ppUpd,googleConsentModeV2:_iub.googleConsentModeV2});e.addAnalyticsPurposeIfNeeded(n.csPurposes),t.resolve(n)})),t}},{key:"getCmpLibraryPromise",value:function(e){var t=T().resolve();this.isConfigurationTcfEnabled(e)&&(t=Qo($o()));return t}},{key:"isConfigurationTcfEnabled",value:function(e){var t=Xe.enableTcf;return e.csSiteConf&&void 0!==e.csSiteConf.enableTcf&&(t=e.csSiteConf.enableTcf),void 0===this.csConfiguration.enableTcf&&void 0===this.csConfiguration.enableCMP||(t=!(!this.csPremergedConfig.enableTcf&&!this.csPremergedConfig.enableCMP)),e.csRC&&void 0!==e.csRC.enableTcf&&(t=e.csRC.enableTcf),t}},{key:"loadDom",value:function(e){var t=T();return e.options.startOnDomReady?ze((function(){return t.resolve()})):_e((function(){return t.resolve()}),!1),t}},{key:"preLoadCS",value:function(e){var t=this;this.cmpLibraryPromise.then((function(){t.loadDom(e).then((function(){try{e.preLoad()}catch(e){t.handleStartupFailure(e)}}))}))}},{key:"createInstance",value:function(e){var t=new qo(this.csConfiguration,this.cmpLibraryPromise,e);return _iub.cs=t,Q.install(t,t.options,$e),t}},{key:"handleStartupFailure",value:function(e){var t,n;null===(t=this.csPremergedConfig)||void 0===t||null===(t=t.callback)||void 0===t||null===(n=t.onStartupFailed)||void 0===n||n.call(t,e.message||e),$e.error("Cookie Solution startup failed",e)}}])}())(_iub.csConfiguration,_iub.csLangConfiguration)}();