!function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n=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 d(e){for(var t=1;t1&&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=A(e[n],[].concat(b(t),[n]));i=i.concat(o)}else{var a=[].concat(b(t),[n]).join(".");i.push(a)}})),i},O=function(e){try{return JSON.parse(e)}catch(e){return null}};function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"dataLayer";if(!window[n]||!window[n].length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"dataLayer")}()&&!n||e&&!t&&n?function(){var e=B();-1!==["debug","info","warn"].indexOf(e)&&console.warn("[IUBCS|WARN]: Google Tag Manager initialized before setting the default consent or before embedding the TCF stub.")}():L()}}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;t1?n-1:0),o=1;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))}}])}());function ue(e,t,n){(n||"boolean"==typeof n)&&(e[t]=n)}le.registerStrategy("console",ce);var de=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 ue(a,"consent",i),ue(a,"purposes",o),ue(a,"tcfv2",this.cs.state.tcfv2String),ue(a,"uspr",r),ue(a,"gac",null===(t=this.cs.customPreferences)||void 0===t?void 0:t.gac),ue(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,n,i=this.cs.consent,o=i.timestamp,a=i.cons,r=(void 0===a?{}:a).rand,s=ae(o,void 0===r?(n=window.crypto||window.msCrypto,[].slice.call(n.getRandomValues(new Uint8Array(3))).map((function(e){return oe(e.toString(16),2)})).join("")):r),c={scoped_id:s,legal_notices:[{identifier:"cookie_policy"}],preferences:this.getCurrentPreferences(),proofs:this.getCurrentProofs(),page_url:this.getPageUrl()};return null!==(e=this.cs)&&void 0!==e&&e.getPreferenceId&&this.cs.getPreferenceId()&&(c.previous_preference_id=this.cs.getPreferenceId()),le.debug("payload",c),null!==(t=this.cs)&&void 0!==t&&t.updatePreferenceId&&this.cs.updatePreferenceId(s),c}},{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,i&&this.cs.updatePreferenceId&&this.cs.updatePreferenceId(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",n)}},{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 pe(e,t){for(var n=0;n299)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:he}),me=function(){},ve=new(function(){return o((function e(){n(this,e),this._registry={},this._instances={}}),[{key:"register",value:function(e,t){t.install=t.install||me,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]}}])}());ve.register("googleConsentMode",K),ve.register("uetConsentMode",ie),ve.register("ConS_integration",ge);var ye={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"},ke={iab_tcf:"https://iabeurope.eu/transparency-consent-framework/"},Ce=["iab_tcf"],we=[{start:/\[or (.+?)\]/,end:"",exec:function(e,t,n){return Ie(e,n)?"[or]":""}},{start:/\[= (.+?)\]/,end:"",exec:function(e,t,n){return Se(n,e.split("."))}},{start:/\[list (.+?)\]/,end:/\[\/list\]/,exec:function(e,t,n){return Be(t,e)}},{start:/\[if (.+?)\]/,end:/\[\/if\]/,exec:function(e,t,n){return Ie(e,n)?t:""}},{start:/\[tip (.+?)\]/,end:/\[\/tip\]/,exec:function(e,t){return''+t+""}},{start:/\[link (.+?)\]/,end:/\[\/link\]/,exec:function(e,t){var n,i,o=ye[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===Ce.indexOf(e)&&(s="style=color:"+a.options.banner.linksColor.replace(/\s+/g,"")+"!important;");var c=t,l=o?"javascript:void(0)":ke[e]||e;if("cookie_policy"===e){var u=a.options.banner.cookiePolicyLinkCaption;l=a.ui.getCookiePolicyHref(),u&&(c=u)}var d=/^http/i.test(l)||"cookie_policy"===e;return(d?""+c+(d?"":"")}}],Pe=function(e,t){for(var n,i=Number.MAX_VALUE,o=0;o1&&void 0!==arguments[1]?arguments[1]:[],n=e||{},i=0;i1&&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},Ee=function(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()},Fe=function(e,t){var n=(t||document).getElementsByClassName(e);return Array.prototype.concat.apply([],n)},Ne=function(e){return e&&e.length?De("."+e.join(", .")):[]},Re=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())},je=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},Ue=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Me=function(e,t){var n=e.nextSibling,i=e.parentNode;Ue(e),i.insertBefore(t,n)},ze=function(e,t){return e.parentNode.insertBefore(t,e.nextSibling)},Ge=function(e){var t=[],n=0;function i(e){t.push(["enter",e]);for(var n=0;n=t.length?{done:!0}:{value:t[n++],done:!1}}}},We=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)},He=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")},qe=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;i0&&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 vt(){return-1!==["localhost"].indexOf(window.location.hostname)||null!==window.location.hostname.match(/.iubenda.com$/)}function yt(e){return vt()&&!0===e.previewMode&&!!e.previewRemoteConfigurationUrl}function kt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!0===t?e.previewRemoteConfigurationUrl:ct.urlForRemoteConf.replace("%{cookie_policy_id}",e.cookiePolicyId)}function Ct(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)}var wt=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)}}}])}(),Pt=function(e){return new wt(e)},St=function(e){var t=!e.hasAttribute("disabled"),n=!e.getAttribute("aria-hidden");return t&&n&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},xt='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"])',_t=null,At=!1,Ot=[],It=!1,Bt=!1,Lt=!1,Dt=function(e){if(It||null===e.relatedTarget&&!Lt){It=!1;var t=e.target;if(_t){var n=document.querySelector(_t);if(!n.contains(t))(function(e,t){var n=e.querySelectorAll(xt),i=0,o=1;t&&(i=n.length-1,o=-1);for(var a=n[i];a&&!St(a);)a=n[i+=o];return a})(n,Bt).focus()}}},Tt=function(e){var t=e.code||e.key;(It="Tab"===t)&&(Bt=e.shiftKey&&It,function(e){var t=document.activeElement,n=document.querySelector(_t);if(n){var i=n.querySelectorAll(xt),o=i[0],a=i[i.length-1];a!==t||Bt?o===t&&Bt&&(e.preventDefault(),a.focus()):(e.preventDefault(),o.focus())}}(e))},Et=function(){Lt=!0},Ft=function(){Lt=!1},Nt=function(e){if(At||(At=!0,nt(document.body,"focusin",Dt),nt(window,"keydown",Tt),nt(document,"mousedown",Et),nt(document,"mouseup",Ft)),e)Ot.push({selector:_t,lastActive:document.activeElement}),_t=e;else{var t=Ot.pop();t&&(_t=t.selector,t.lastActive.focus())}},Rt=function(e){for(var t=document.getElementsByClassName("iubenda-advertising-preferences-link"),n=0;n[/if]%{purposes}[if adPersonalization][/if][/if][if hasCookiePolicy] as specified in the [link cookie_policy]cookie policy[/link][/if]. [if enableTcf and gdprApplies]\nWith respect to advertising, we and %{total_number_of_ads_vendors} selected [link vendors]third parties[/link], may use precise geolocation data, and identification through device scanning in order to store and/or access information on a device and process personal data like your usage data for the following [link adv_pref]advertising purposes[/link]: personalised advertising and content, advertising and content measurement, audience research and services development.[/if][if gdprApplies or lgpdApplies][if banner.explicitWithdrawal]\nYou can freely give, deny, or withdraw your consent at any time[if (enableTcf and gdprApplies) or banner.howToWithdraw] by accessing the preferences panel[/if]. [if enableTcf]If you give consent, it will be valid only in this domain.[/if] Denying consent may make related features unavailable.[/if][/if][/if][if ccpaApplies and not usprApplies]\nIn case of sale of your personal information, you may opt out by using the link "%{do_not_sell}".\n[if hasPrivacyPolicy]\nTo find out more about the categories of personal information collected and the purposes for which such information will be used, please refer to our %{privacy_policy}.[/if][/if]\n[if gdprApplies or lgpdApplies][if banner.acceptButtonDisplay][list or][if banner.acceptButtonDisplay]\nUse the “[= banner.acceptButtonCaption]” button[/if][if banner.closeButtonDisplay and not banner.closeButtonRejects and not banner.continueWithoutAcceptingButtonDisplay][or] close this notice[/if][/list] to consent. [/if][if not banner.acceptButtonDisplay and banner.closeButtonDisplay and not banner.closeButtonRejects]Close this notice to consent.[/if][if banner.rejectButtonDisplay][list or][if banner.rejectButtonDisplay]Use the “[= banner.rejectButtonCaption]” button[/if][if (banner.closeButtonDisplay and banner.closeButtonRejects) or banner.continueWithoutAcceptingButtonDisplay][or] close this notice[/if][/list][if banner.rejectButtonDisplay] to continue without accepting.[/if][/if][if not banner.rejectButtonDisplay and ((banner.closeButtonDisplay and banner.closeButtonRejects) or banner.continueWithoutAcceptingButtonDisplay)]Close this notice to continue without accepting.[/if][/if][if fadpApplies and not gdprApplies and not lgpdApplies]You have the right to opt out of the use of cookies and similar technologies at any time.[/if][if usprApplies and hasSensitiveData][if gdprApplies or lgpdApplies or fadpApplies]\nNote for US consumers: y[/if][if not gdprApplies and not lgpdApplies and not fadpApplies]\nY[/if]ou can give or deny your consent to the processing of your precise geolocation data at any time via the “[= banner.acceptButtonCaption]” and “[= banner.rejectButtonCaption]” buttons or inside the [link second_layer]privacy choices panel[/link].[/if]',endQuote:"”",or:"or",startQuote:"“",activate:"Activate",purpose:"purpose",vendor:"vendor"},page_counter_caption:"Press again to continue",paragraph_1:"This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the %{cookie_policy_link}.",paragraph_2:"By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.",privacy_policy_caption:"privacy policy",reject_button_caption:"Reject[if banner.showPurposesToggles] all[/if]",title:"Notice",vendor_list_caption:"third-parties",link_label_new_tab:"link opens in a new tab",close_button_label:"Close this notice"},blocked_overlay:{accept_button:"Update",accept_button_sr_only:"Upadate consent preferences",paragraph:"You denied the use of cookies or similar technologies for the purpose of %{purposes}. To view this content, please update your consent preferences.",title:"Content is blocked"},blocked_popup:{accept_button:"Update",paragraph:"You denied the use of cookies or similar technologies for the purpose of %{purposes}. To use this feature, please update your consent preferences.",title:"This feature is blocked"},ccpa:{opt_out_cancel:"Cancel",opt_out_confirm:"Confirm",opt_out_prompt:"Do you really wish to opt out?"},floating_preferences_button:{caption:"Privacy preferences"},footer:{btnCaption:"Save and continue",message:"By continuing to browse or by otherwise closing this window, you accept the current cookie settings."},uspr:{gpc_signal:"Your opt-out preference signal (GPC) has been honored. Use your device settings to modify it.",preference_widget:{notice_caption:"Notice at collection",preference_caption:"Your Privacy Choices",preference_img_alt:"California Consumer Privacy Act (CCPA) Opt-Out Icon"},privacy_policy:"privacy policy",purposes:{adv:"Processing of my personal information for targeted advertising",s:"Sale of my personal information",sd8:"Processing of my precise geolocation data",sh:"Sharing of my personal information"},widget_intro:"The options provided in this section unify and simplify the exercise of some of your privacy rights as a user residing in the United States.
To learn more about your privacy rights and how to exercise them, consult our %{privacy_policy}.",widget_title:"Your privacy rights under US state privacy laws"},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:"necessary",name:"Necessary"},2:{bannerName:"functionality",name:"Functionality"},3:{bannerName:"experience",name:"Experience"},4:{bannerName:"measurement",name:"Measurement"},5:{bannerName:"marketing[if adPersonalization] (personalized ads)[/if]",name:"Marketing"},googleAdsPersonalized:{name:"Personalized advertising by Google and its partners"}},widget_title:"Your[if not fadpApplies] consent[/if] preferences for tracking technologies"}}},Ut={},Mt={},zt={},Gt={};function Wt(){x(Gt,jt),x(Gt,Ut),x(Gt,Mt),x(Gt,zt)}function Ht(e){Ut=e}Wt();var qt=function(e,t){if((t.usprPurposes&&"string"==typeof t.usprPurposes?t.usprPurposes.split(",").map((function(e){return e.trim()})):[]).some((function(t){return t===e})))return"uspr.purposes."+e;var n=(t.purposes&&"string"==typeof t.purposes?t.purposes.split(",").map((function(e){return e.trim()})):[]).some((function(t){return t===e})),i=(t.additionalPurposes&&Array.isArray(t.additionalPurposes)?t.additionalPurposes.map((function(e){return e.id})):[]).some((function(t){return t===e}));return n||i?"per_purpose.purposes."+e+".bannerName":isNaN(e)?"uspr.purposes."+e:"per_purpose.purposes."+e+".bannerName"},Jt=!1,Kt=!1,Yt=!1,$t=!1,Xt=function(){if(!Kt){var e=document.getElementsByTagName("head")[0];ot('.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),Kt=!0}},Zt=function(){if(!Yt){var e=document.getElementsByTagName("head")[0];ot("#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-banner-content:not(.iubenda-custom-content) * .iub-sr-only,#iubenda-cs-banner [class*=\" iub\"] .iub-sr-only,#iubenda-cs-banner [class^=iub] .iub-sr-only{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}#iubenda-cs-banner .iubenda-banner-content:not(.iubenda-custom-content) * .iub-sr-only:focus,#iubenda-cs-banner [class*=\" iub\"] .iub-sr-only:focus,#iubenda-cs-banner [class^=iub] .iub-sr-only:focus{position:static!important;width:auto!important;height:auto!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;text-decoration:underline!important}#iubenda-cs-banner .iubenda-banner-content a:hover,#iubenda-cs-banner .iubenda-banner-content button:hover{text-decoration:none!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:#70b3ff!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}}.iub-sr-only{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}.iub-sr-only:focus{position:static!important;width:auto!important;height:auto!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:#70b3ff!important;outline-offset:2px!important}.iubenda-tp-alert-btn .iub-sr-only,.iubenda-tp-btn .iub-sr-only,.iubenda-uspr-btn .iub-sr-only{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}.iubenda-tp-alert-btn .iub-sr-only:focus,.iubenda-tp-btn .iub-sr-only:focus,.iubenda-uspr-btn .iub-sr-only:focus{position:static!important;width:auto!important;height:auto!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),Yt=!0}},Qt=function(e){if(!$t&&!0===e.banner.applyStyles){var t={backgroundColor:e.banner.backgroundColor,textColor:e.banner.textColor,outlineColor:e.banner.outlineColor,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,"outline-color":t.outlineColor}},{selector:"#iubenda-cs-banner .iub-toggle .iub-toggle-label",properties:{color:t.brandTextColor,"outline-color":t.outlineColor}},{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,"outline-color":t.outlineColor}},{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,"outline-color":t.outlineColor}},{selector:"#iubenda-cs-banner .iubenda-cs-close-btn",properties:{"font-size":t.buttonExitFontSize,color:t.buttonExitTextColor,"background-color":t.buttonExitBackgroundColor,"outline-color":t.outlineColor}},{selector:"#iubenda-cs-banner .iubenda-cs-opt-group",properties:{color:t.backgroundColor,"outline-color":t.outlineColor}},{selector:["#iubenda-cs-banner .iubenda-cs-opt-group button",".iubenda-alert button.iubenda-button-cancel"],properties:{"background-color":t.buttonBackgroundColor,color:t.buttonTextColor,"outline-color":t.outlineColor}},{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,"outline-color":t.outlineColor}},{selector:"#iubenda-cs-banner .iubenda-cs-opt-group button.iubenda-cs-reject-btn",properties:{"background-color":t.rejectButtonColor,color:t.rejectButtonCaptionColor,"outline-color":t.outlineColor}},{selector:"#iubenda-cs-banner button.iubenda-cs-cwa-button",properties:{"background-color":t.continueWithoutAcceptingButtonColor,color:t.continueWithoutAcceptingButtonCaptionColor,"outline-color":t.outlineColor}},{selectors:['#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"],properties:{"outline-color":t.outlineColor}}],!0),i=document.head||document.getElementsByTagName("head")[0];ot(n,i),$t=!0}};function en(){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 tn="en",nn=tn,on=function(e,t){for(var n=e,i=0;n&&i2&&void 0!==arguments[2]?arguments[2]:{},a=e.split("."),r=on(Gt[nn],a)||t||e;return void 0===r&&nn!==tn&&(r=on(Gt.en,a)),Le(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)};an.setLang=function(e){nn=e};var rn=an,sn=function(e){return-1!==["en","it","de","es","fr","pt-BR","nl","da"].indexOf(e)?e.toLowerCase():"en"};function cn(e){var t=null!=e?e:"en";return{brandLink:"https://www.iubenda.com/"+sn(t)+"/cookie-solution?utm_source=cs&utm_medium=web&utm_campaign=csbr1",brandLinkTitle:Gt[t].brand.linkTitle}}window._iub.csTranslate=rn;var ln=function(e){for(var t=document.getElementsByClassName("iubenda-cs-preferences-link"),n=0,i=t.length;n','

[POPOVER TITLE]

','',"",'
','
[POPOVER CONTENT]
',"
"].join(""),nt(n,"click",(function(e){return t.onPopoverClick(e)})),e.appendChild(n),n)}},{key:"onPopoverClick",value:function(e){Xe(e.target,fn)&&this.close()}},{key:"listen",value:function(e){var t=this;nt(e,"click",(function(e){t.onClick(e)}))}},{key:"isOpen",value:function(){return!!Fe(bn)[0]}}])}(),mn=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/"+sn(o=null!=i?i:"en")+"/cookie-solution?utm_source=cs&utm_medium=web&utm_campaign=csbr2",brandLinkTitle:Gt[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:"getBadgeButtonScreenReaderSpan",value:function(){return'('.concat(rn("banner.link_label_new_tab"),")")}},{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="Created with iubenda".concat(this.getBadgeButtonScreenReaderSpan(),"");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 \n iubenda').concat(this.getBadgeButtonScreenReaderSpan(),"\n "),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}}}])}(),vn=["value"],yn=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=p(o,vn);this.options=d({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,xe(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}}])}(),kn="bannerAcceptClicked",Cn={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"]},wn=function(){return o((function e(t,i){n(this,e),this.cookiePolicyHref=i,this.banner=null,this.cs=t,this.popover=new gn(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=Gt[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&&(Zt(),i.banner.zIndex&&rt(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=Cn[i.banner.position];c||(c=Cn.top);for(var l=0,u=c.length;l'+o.title+"");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"),d=f+'
').concat(h,"
")}var v=i.banner.cookiePolicyLinkCaption||o.cookie_policy_caption,y=i.cookiePolicyInOtherWindow?"":' role="button"',k="').concat(v,""),C="",w="",P=i.cookiePolicyInOtherWindow?' aria-label="'.concat(o.privacy_policy_caption," - ").concat(o.link_label_new_tab,'"'):"",S=i.cookiePolicyInOtherWindow?"":' role="button"',x="').concat(o.privacy_policy_caption,""),_="";d=(d=(d=(d=(d=(d=(d=d.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}",k)).replace("%{advertising_preferences_link}",C)).replace("%{vendor_list_link}",w)).replace("%{privacy_policy}",x)).replace("%{do_not_sell}",_)).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");var i={};return n.forEach((function(t){i[t]=qt(t,e)})),Sn(e.lang,i)}(i,null===(e=n.cs.preferenceState.purposes)||void 0===e?void 0:e.data)}));var A=i.banner.html,O="";if(i.banner.logo&&(O='
logo
',Ye(this.banner,"iubenda-cs-branded")),!i.banner.continueWithoutAcceptingButtonDisplay&&i.banner.closeButtonDisplay&&Ye(this.banner,"iubenda-cs-padded"),null===A){var I=new mn(i).getBadge(!0),B=I?" iubenda-cs-themed":"";this.banner.innerHTML='
'+O+function(e){if(e.banner.continueWithoutAcceptingButtonDisplay)return'").concat(e.banner.continueWithoutAcceptingButtonCaption,"");var t=et({display:e.banner.closeButtonDisplay?"":"none"});return'\n \n ")}(i)+'
'+d+"
"+(i.banner.showPurposesToggles?'
':"")+'
'+function(e,t){var n=function(e,t){if(!e.banner.customizeButtonDisplay)return"";return'"}(e,t),i="iubenda-cs-opt-group-custom";e.banner.showPurposesToggles&&(i+=" iubenda-cs-opt-group-granular");n&&(n='
'+n+"
");var o=function(e,t){if(!e.banner.rejectButtonDisplay)return"";return'"}(e,t)+function(e,t){var n=e.banner.acceptButtonCaption||t.accept_button_caption;if(!e.banner.acceptButtonDisplay)return"";return'"}(e,t);o&&(o='");var a=n+o;if(!a)return"";return'
"+a+"
"}(i,o)+("inside"===(null==I?void 0:I.position)?I.element:"")+"
"+("outside"===(null==I?void 0:I.position)?I.element:"")+"
",this.applyAccessibilityParams(this.banner,i),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=rn("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=rn("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};s.value&&!s.blocked&&e.on("callback.before.onBannerShown",(function(){o(e)}));var d=new yn(c,l,u);t.appendChild(d.getNode())}})),void 0!==a.tcfv2){i++;var s=rn("per_purpose.purposes.5.name"),c=new yn(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!==A.indexOf("%{banner_content}")&&(A=A.replace("%{banner_content}",d)),this.banner.innerHTML=A;if(p){var L=Fe("iubenda-banner-content",this.banner)[0];L&&Ye(L,"iubenda-custom-content")}var D=!1,T=null,E=0,F="iubenda-cs-fix-height",N=function(){if(n.banner){var e=window.innerHeight;D&&e>E&&(n.banner.classList.remove(F),T.style.removeProperty("height"),D=!1);var t=T.clientHeight,o=T.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)}E=e,t>=e&&!D?(n.banner.classList.add(F),a&&T.style.setProperty("height","calc(100% - ".concat(a,"px)"),"important"),D=!0):t-1}},{key:"createLegacyDynamicBannerText",value:function(e){var t=e.dynamic,n=this.cs.options.banner.applyStyles,i=t.paragraph_1?Le(t.paragraph_1,this.cs.options):"",o=t.paragraph_2?Le(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 Pn(i,n)+Pn(o,n)}},{key:"createDynamicBannerText",value:function(e){var t=e.dynamic,n=this.cs.options.banner.applyStyles;return Pn(Le(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=rn("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 ..."),At&&(At=!1,it(document.body,"focusin",Dt),it(window,"keydown",Tt),it(document,"mousedown",Et),it(document,"mouseup",Ft)),_t=null,Ue((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 Pn(e,t){return e?e.split("\n").map((function(e){return t?'

'+e+"

":e})).join(t?"":"
"):""}function Sn(e,t){var n=Object.keys(t),i=Object.values(t),o=rn("banner.dynamic.and");return"es"===e&&(o=function(e){return"i"===rn("per_purpose.purposes."+e[e.length-1]+".bannerName")[0]?"e":"y"}(n)),Be(function(e){return e.map((function(e){return e?(t=e,n=rn("banner.dynamic.startQuote"),i=rn("banner.dynamic.endQuote"),o=rn(t),/.+\s.+/.test(o)?n+o+i:o):"";var t,n,i,o}))}(i).join("[or] "),o)}function xn(){var e="banner.close_button_label",t=rn(e);return t===e?"":'aria-label="'.concat(t,'"')}function _n(e){e.addEventListener("mouseenter",(function(){e.classList.add("hover")})),e.addEventListener("mouseleave",(function(){e.classList.remove("hover")}))}function An(e){e.addEventListener("focus",(function(){e.classList.add("focus")})),e.addEventListener("blur",(function(){e.classList.remove("focus")}))}var On=["top-left","top-right","bottom-left","bottom-right","center-left","center-right"],In=[].concat(On,["inline-center","inline-left","inline-right"]),Bn="bottom-right",Ln=function(e){function i(e,o){var a;return n(this,i),(a=t(this,i)).link=e,a.html='\n \n \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!==On.indexOf(e)?e:Bn}}])}()),Dn=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},Tn=function(e,t,n){return e+(-1!==e.indexOf("?")?"&":"?")+t+"="+n},En=function(e){return/\#[^\?]+/.test(e)},Fn=new fe,Nn="rejectButtonClick",Rn="bannerXClose";function Vn(){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,Rn),this.banner.removeBanner()}function jn(){this.cs.rejectAll(Nn),this.consentRejected=!0,this.banner.removeBanner()}var Un=function(){function e(t){n(this,e),Pt(this),this.cs=t,this.document=document,this.mainC=null,this.overlay=null,this.CPiFrame=null,this.isMobile=Fn.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 gn(this.cs);var i=this.getCookiePolicyHref();this.banner=new wn(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;Fe("iubenda-cs-cookie-policy-lnk").forEach((function(t){nt(t,"click",(function(t){e.bannerCookiePolicyClicked({event:t,isCookiePolicyLink:!0})}),!0)}))}},{key:"bindCloseBannerBtns",value:function(){var e=this,t=Fe("iubenda-cs-close-btn"),n=Fe("iubenda-cs-cwa-button");t.concat(n).forEach((function(t){nt(t,"click",(function(t){setTimeout((function(){e.bannerCloseBtnClicked(t)}),0)}),!0)}))}},{key:"bindOpenCmpBtns",value:function(e){for(var t=Fe("iubenda-advertising-preferences-link",e),n=0;n0?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(!Jt){var e=document.getElementsByTagName("head")[0];ot('#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),Jt=!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=je("https://cdn.iubenda.com/cookie_solution/iubenda_cs/1.75.2/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 d=function(){r.secondLayerScriptLoaded=!0,r.showCPLayer2(window._iub.IubendaFrame,s,n,i,o,a,l,u)};this.secondLayerScriptLoaded?d():this.secondLayerScript.onload=d}}},{key:"applyAriaLabel",value:function(e){var t=this.CPiFrame.mainC;t.removeAttribute("aria-label");var n=null;switch(e){case"cookie-policy":n=rn("modal.cookie_policy");break;case"privacy-policy":n=rn("modal.privacy_policy");break;case"tcf":var i=document.querySelector("#iubenda-iframe .iub-cmp-header h2");n=null==i?void 0:i.innerText;break;case"per-purpose":default:var o=document.querySelector("#iubenda-iframe .purposes-header-title");n=null==o?void 0:o.innerText}t.setAttribute("aria-label",n)}},{key:"showCPLayer2",value:function(e,t,n,i,o,a,r,s){var c=this,l=null,u=rn("banner.cookie_policy_caption");o&&(u=rn("banner.privacy_policy_caption")),o||(l={message:"string"==typeof this.cs.options.footer.message?this.cs.options.footer.message:Gt[this.cs.options.lang].footer.message,btnCaption:"string"==typeof this.cs.options.footer.btnCaption?this.cs.options.footer.btnCaption:Gt[this.cs.options.lang].footer.btnCaption});var d,p=this.getSavedPreferences();switch(this.cs.options.enableTcf&&this.createCmp(p.cmpCookie,p.customPreferences),(this.cs.options.perPurposeConsent||this.cs.options.usprApplies)&&this.mustShowPerPurposeView?(this.mustShowPerPurposeView=!1,d=this.WIDGET_PER_PURPOSE):this.cs.options.enableTcf&&this.cs.options.gdprApplies&&(this.mustShowTCFView||n)?(this.mustShowTCFView=!1,d=this.WIDGET_TCF):d=this.WIDGET_POLICY,d===this.WIDGET_PER_PURPOSE&&(this.cs.preferenceState.saveState(),this.cs.preferenceState.usPurposes.isActive&&this.cs.preferenceState.usPurposes.savePreferenceState()),d!==this.WIDGET_POLICY&&this.cs.updateGppApi(!0,!1,"initial"),Qt(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:d,frameTitle:u,lang:this.cs.options.lang,onLoad:function(){var e;c.cs.preferenceState.saveState(),d===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();var t=d;"policy"===d&&(t=o?"privacy-policy":"cookie-policy"),c.applyAriaLabel(t)},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:Nn})},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),d){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=rn("ccpa.opt_out_prompt");var o=document.createElement("div");o.className="iubenda-alert-dialog-buttons";var a=function(n){Nt(),"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=rn("ccpa.opt_out_cancel"),r.addEventListener("click",(function(){return a("cancel")}));var s=document.createElement("button");s.className="iubenda-button-confirm",s.innerText=rn("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),Nt("#".concat(t.id))}}},{key:"checkUsprFloatingPreferences",value:function(){if(this.cs.options.usprApplies){var e=["#iubenda-cs-banner","#iubenda-iframe"],t=Te(".iubenda-cs-preferences-link",e),n=Te(".iubenda-cs-uspr-link",e);t.length&&n.length||(void 0===this.cs.options.userDefinedConfig.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&&"string"!=typeof this.cs.options.floatingPreferencesButtonDisplay&&!this.cs.options.skipTcfValidation&&void 0===this.cs.options.userDefinedConfig.floatingPreferencesButtonDisplay)&&(0===document.querySelectorAll(".iubenda-advertising-preferences-link").length&&(this.forcedFloatingPreferencesButtonDisplay=!0));this.cs.options.fadpApplies&&"string"!=typeof this.cs.options.floatingPreferencesButtonDisplay&&void 0===this.cs.options.userDefinedConfig.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:In,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:On,defaultPosition:Bn}),d=u.position,p=u.isAnchored,h=e.createGdprPreferenceWidget(this.cs.options,d);n.push({widget:h,container:h,isAnchored:p})}if(0===n.length)return n;!0===this.cs.options.banner.applyStyles&&Zt();for(var f=0,b=n;f').concat(rn("uspr.preference_widget.notice_caption"),"\n ")),e.preference&&(i+='\n \n ').concat(rn("uspr.preference_widget.preference_caption"),"\n \n ")),n.innerHTML='
'.concat(i,"
");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 \n \n ').concat(rn("uspr.preference_widget.preference_caption"),"\n \n ")}e.uspr&&(i+='\n ').concat(rn("uspr.preference_widget.notice_caption"),"\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;Je((function(){var t,n=a(e.createPreferencesWidgets());try{for(n.s();!(t=n.n()).done;){var i=t.value;un(i,e)}}catch(e){n.e(e)}finally{n.f()}}),!0)}},{key:"generateWarningButton",value:function(e,t){var n=new Ln(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 Nn:this.consentRejected=!0;break;case"bannerAcceptClicked":case Rn: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=d(d({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(Vn.bind(this),e)}},{key:"onRejectButtonClick",value:function(e){this.cs.debug("banner Reject clicked"),this.banner.scrollBannerIfNeeded(jn.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:nt,domRemoveClass:$e,domHasClass:Xe,domGetElementsByClassName:Fe,domAddClass:Ye,domCreateEvent:Ze,domRemove:Ue,setStyle:rt,domText:tt,domCreate:Ve},i18n:{i18nForBanner:Gt,updateI18nForBanner:Wt,setSecondLayerI18n:Ht},brand_badge:{BrandBadge:mn},browser_detect:{BrowserDetect:fe},focus:{setFocusActive:Nt},uri:{uriAddParamToUri:Dn,uriHasHash:En},ui_i18n:{csTranslate:rn,iubendaFrameLink:cn},logger:{logger:ht}}}},{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=document.createElement("label");n.className="iub-sr-only",n.innerText=rn("per_purpose.widget_title");var i,o=document.createElement("button");return o.className="iubenda-tp-btn iubenda-cs-preferences-link",o.setAttribute("title",rn("per_purpose.widget_title")),(e.floatingPreferencesButtonIcon||!e.floatingPreferencesButtonCaption||e.floatingPreferencesButtonHover)&&o.setAttribute("data-tp-icon","data-tp-icon"),e.floatingPreferencesButtonHover&&o.setAttribute("data-tp-hover","data-tp-hover"),"string"==typeof e.floatingPreferencesButtonCaption?i=e.floatingPreferencesButtonCaption:!0===e.floatingPreferencesButtonCaption&&(i=rn("floating_preferences_button.caption")),i&&o.setAttribute("data-tp-label",i),o.style.setProperty("z-index",e.floatingPreferencesButtonZIndex,"important"),o.setAttribute("data-tp-float",t),o.appendChild(n),o}}])}();window._iub.setStyle=rt,window._iub.onLoadCall=function(e,t){e.onload=t};var Mn,zn,Gn,Wn,Hn=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(){Hn(e,t,n,i+1)}))},qn=["all"],Jn={s:!0,sh:!0,adv:!0,sd5:!1,sd8:!1,sd9:!1},Kn=["s","sh","adv"],Yn=function(e){return e?e.filter((function(e){return void 0!==Jn[e.toString().trim()]})):[]},$n=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(Kn),!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(Jn);return t&&(n=n.filter((function(e){return t.indexOf(e)>=0}))),n}},{key:"setAllPurposesValue",value:function(e){var t=this;ht.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=Jn[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=p(e,qn),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=d({},this.purposes)}},{key:"clearPreferenceState",value:function(){this.preferenceState={}}},{key:"recoveryPreferenceState",value:function(){Object.keys(this.preferenceState).length&&(this.purposes=d({},this.preferenceState),this.clearPreferenceState())}},{key:"getPreferences",value:function(){return this.purposes}},{key:"filterUsprPurpose",value:function(e){return Yn(e)}}])}(),Xn=null!==(Mn=null===(zn=_iub.csConfiguration)||void 0===zn?void 0:zn.rebuildIframe)&&void 0!==Mn?Mn:pt.rebuildIframe,Zn=null!==(Gn=null===(Wn=_iub.csConfiguration)||void 0===Wn?void 0:Wn.inlineDelay)&&void 0!==Gn?Gn:pt.inlineDelay,Qn=["_iub_cs_activate-inline","_iub_cs_activate","_iub_cs_activate_iframe","_iub_cs_activate_notused","_iub_cs_prompt"],ei="_iub_cs_activate-activated",ti="_iub_cs_activate-overlay",ni="_iub_cs_prompt",ii="data-iub-purposes",oi=document.write,ai=document.writeln;function ri(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(""),e}(),u=Ge(l.body);u.reiterate(),u.next();var d=l.body;function p(e){var t=/(\<[\n\s]*\/[\n\s]*script[\n\s]*>)/gi,p=r+e,h=[];t.lastIndex=r.length;for(var b=t.lastIndex;t.exec(p);){var g=t.lastIndex;h.push({chunk:p.substring(b,g),lastNodeIsScript:!0}),b=g}var m=p.substring(b);m&&h.push({chunk:m,lastNodeIsScript:!1}),h.forEach((function(e){var t=e.chunk,p=e.lastNodeIsScript;r+=t,function(e,t){l.write(e),u.reiterate();var r,p=function(e){for(var t=e;t.childNodes.length;)t=t.childNodes[t.childNodes.length-1];return t}(l.body);if(c&&(c.nodeValue=d.nodeValue),p!==d||t)for(d=p;;){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&&We(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===p)break}else if(c=null,g.nodeType===Node.ELEMENT_NODE){if(We(s)){var y=s,k=document.createElement("script");qe(k,qe(y)),He(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,p)}))}document.write=p,document.writeln=function(e){return p(e+"\n")}}function si(e){return e.getAttribute("data-suppressedsrc")||e.getAttribute("suppressedsrc")||e.getAttribute("src")}function ci(e,t){return e.getAttribute("data-suppressed"+t)||e.getAttribute("suppressed"+t)||e.getAttribute(t)}function li(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\s*$/g,di=function(e){return new Error("Error on loading tag "+e.nodeName+" with id "+e.id+" and class "+e.className)},pi=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n&&e.removeEventListener("load",pi),bi(t,null,e)},hi=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n&&e.removeEventListener("error",pi);var i=di(e);"function"==typeof t&&t(i,e)},fi=function(e,t){e.removeAttribute("data-suppressed"+t),e.removeAttribute("suppressed"+t)},bi=function(e,t,n){"function"==typeof e&&e(t,n)},gi=function(e,t){e.addEventListener("load",pi.bind(null,e,t)),e.addEventListener("error",hi.bind(null,e,t)),e.setAttribute("href",ci(e,"href")),fi(e,"href"),Ye(e,ei)},mi=function(e,t){var n=si(e),i=ci(e,"poster");i&&(e.setAttribute("poster",i),fi(e,"poster"));var o=function(){bi(t,null,e),e.removeEventListener("loadedmetadata",o)},a=function(){bi(t,di(e),e),e.removeEventListener("error",a)};n&&Pi(e,t),e.querySelectorAll("source").forEach((function(e){Pi(e)})),e.querySelectorAll("track").forEach((function(e){Pi(e)})),e.addEventListener("loadedmetadata",o),e.addEventListener("error",a),e.load(),Ye(e,ei)},vi=mi;function yi(e,t){var n=si(e),i=e.text||e.textContent||e.innerHTML||"";i=i.replace(ui,"");var o=qe(e);delete o["data-suppressedsrc"],delete o.suppressedsrc,delete o.type,delete o.src,o.async=!1;var a=Ve("div");ze(e,a),Ue(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);qe(r,o),li(r,t),Ye(r,ei),Me(a,r)}var ki=function(e,t,n){var i,o,a=function(){s+=1},r=function(){(s-=1)<=0&&(document.write=oi,document.writeln=ai,o&&ht.error("Snippet activation failed",o,i||e),t&&t(!o&&i),t=c=e=null)},s=0;a(),ri(e,{addRef:a,removeRef:r});var c=function(e){return!!e.className.match(/\b_iub_cs_activate-inline\b/)}(e)?Zn:0;n((function(e,t){setTimeout((function(){o=e,i=t,r()}),c)}))},Ci=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()},wi=function(e,t){e[t]=ci(e,t),e.removeAttribute("suppressed"+t),e.removeAttribute("data-suppressed"+t)},Pi=function(e,t){wi(e,"src"),e.removeAttribute("type"),bi(t,null,e)},Si=function(e,t){wi(e,"srcset"),bi(t,null,e)},xi=function(e,t){try{Ee(e,"script")?function(e,t){var n=si(e),i=e.text||e.textContent||e.innerHTML||"";i=i.replace(ui,"");var o=qe(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=je(n,i);if(r.setAttribute("type",a),e.nonce&&(r.nonce=e.nonce),qe(r,o),Ye(r,ei),li(r,t),Re(document,e)){var s=Ve("div");ze(e,s),Ue(e),Me(s,r)}else document.body.appendChild(r)}(e,t):Ee(e,"iframe")&&Xn?yi(e,t):Ee(e,"link")?gi(e,t):Ee(e,"video")?mi(e,t):Ee(e,"audio")?vi(e,t):Ee(e,"object")?function(e,t){var n=ci(e,"data");n?(e.setAttribute("data",n),fi(e,"data"),bi(t,null,e)):bi(t,di(e),e),Ye(e,ei)}(e,t):Ee(e,"picture")?function(e,t){var n=e.querySelector("img");if(n){var i=si(n);n.setAttribute("src",i),fi(n,"src")}e.querySelectorAll("source").forEach((function(e){Si(e)})),bi(t,null,e),Ye(e,ei)}(e,t):e.getAttribute("suppressedcontent")?function(e,t){var n=qe(e).suppressedcontent;e.innerHTML=n,bi(t,null,e),Ye(e,ei)}(e,t):(Pi(e,t),Ye(e,ei))}catch(e){t(e)}},_i=0,Ai=1,Oi=2,Ii=function(){return o((function e(t){n(this,e),this.cs=t,this.lastActivationParams={},Pt(this)}),[{key:"purposeIdsForElement",value:function(e,t){var n,i,o=e.getAttribute(ii);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;ki(e,t,(function(t){Ci(e,(function(){xi(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)===Ai&&xi(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(ii);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(ti),n.setAttribute("suppressedcontent",n.innerHTML),n.innerHTML=e(this.cs.options.lang,s,!0),n.querySelector(".iubenda-cs__preferences-link").addEventListener("click",(function(e){e.preventDefault(),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(e){e.preventDefault(),o.cs.api.openPreferences({acceptPurposes:s})})),o.emit("overlay-inserted",n),i())};if("about:blank"!==n.src){if(Xn){var l=document.createElement("iframe");qe(l,qe(n)),n.parentNode.replaceChild(l,n),n=l}return n.classList.add(ti),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),ht.debug("Running activateSnippets on",e.length,"elems"),Hn(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?(ht.debug("Running insertOverlays on",n.length,"elems"),Hn(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},ht.debug("Running activateAllSnippets");var a=Ne(Qn),r=[],s=[],c=[],l=n.promptToAcceptOnBlockedElements&&(n.perPurposeConsent||n.usprApplies);a.forEach((function(e){var a=t.getElementActivationStatus(e,n,i,o);a!==Ai?a===Oi&&!e.classList.contains(ti)&&l&&("IFRAME"===e.nodeName?s.push(e):e.classList.contains(ni)&&c.push(e)):r.push(e)}));var u=function(e,t,i){return i&&en(),n.renderOverlay(e,t,{styleOptions:n.banner},i)},d=n.renderOverlay?u:null;this.activateSnippets(r,(function(){var n=[].concat(s,c);t.insertOverlays(d,i,n,(function(){ht.debug("activateAllSnippets done, calling done callback..."),t.emit("all-snippets-activated"),e&&e()}))}))}},{key:"activateOnDomReady",value:function(e,t,n,i){var o=this;Je((function(){o.activateAllSnippets(e,t,n,i)}),!0)}},{key:"hasAllUSPurposeApproved",value:function(e,t){var n=e.getAttribute(ii);return null!=t&&t.isActive&&n?t.checkPurposes(n):null}},{key:"hasOnlyUSPurposes",value:function(e){var t=e.getAttribute(ii);if(!t)return null;var n=t.split(",").map((function(e){return e.trim()}));return k(n,Yn(n))}},{key:"getElementActivationStatus",value:function(e,t,n,i){if(Xe(e,ei))return _i;if(this.isNecessaryPurpose(e))return Ai;if(i&&this.shouldElementBeBlockedForCcpa(e))return Oi;if(!1===this.hasAllUSPurposeApproved(e,n.usPurposesPreference))return Oi;if(!1===t.gdprApplies&&!1===t.lgpdApplies&&!1===t.fadpApplies)return Ai;var o=this.hasAllPurposesApproved(e,n.state);if(t.perPurposeConsent&&!o)return Oi;var a=this.hasOnlyUSPurposes(e);return t.perPurposeConsent||n.consent||a?!1===this.purposesPreferenceIsValid(e,n.state,t)&&!a?Oi:Ai:Oi}},{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(ii))||"neccessary"===e.getAttribute(ii)}}])}(),Bi=function(e){var t=new Date(e);return Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())};function Li(e){return function(e){for(var t=atob(e),n=new Array(8*t.length),i=0;i=0;a--){var r=o&1<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)}}])}(),Gi=0,Wi=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gi,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);r2&&void 0!==arguments[2]?arguments[2]:Gi,i=[];return Object.keys(e).forEach((function(o){e.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&i.push(zi.fromProperty(o,e[o],Vi,n))})),i};function qi(e){var t=m(e);return"string"!==t||"string"===t&&null===e.match(/^[a-z]{2}$|^[a-z]{2}-[a-z]{2}$/i)}function Ji(e,t){return e[t].callback&&"string"!=typeof e[t].callback}var Ki=function(e){return new RegExp(/^\d{4}-\d{2}-\d{2}$/).test(e)},Yi={invalidateConsentInterval:function(e){return"object"!==m(e)?Ui:e.startDate?Ki(e.startDate)?e.endDate?Ki(e.endDate)?null:d(d({},Ui),{},{message:"endDate is not a valid date (YYYY-MM-DD)"}):d(d({},Ui),{},{message:"endDate not found"}):d(d({},Ui),{},{message:"startDate is not a valid date (YYYY-MM-DD)"}):d(d({},Ui),{},{message:"startDate not found"})}};function $i(e,t,n){return e[n]instanceof HTMLElement&&!(void 0!==t[n])}function Xi(e,t,n){return"i18n"!==n&&"object"===m(e[n])&&null!==e[n]&&"object"===m(t[n])&&Object.keys(e[n]).length>1}var Zi=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=_(pt,!0);if(this.i18nForBanner=Gt,this.RENAMED_OPTIONS={enableCMP:"enableTcf","banner.usesThirdParties":"banner.useThirdParties","banner.innerHtmlCloseBtn":"banner.closeButtonCaption",noticeAtCollectionUrl:"privacyPolicyNoticeAtCollectionUrl"},this._remoteConfig=i,this.userDefinedConfig=x({},d(d(d({},i._csSiteConf||{}),t),i._csRC||{})),this.userConfig={hasEmailMarketing:t.hasEmailMarketing,showBannerForUS:t.showBannerForUS,floatingPreferencesButtonDisplay:t.floatingPreferencesButtonDisplay},t.lang&&!this.isLanguageSupported(t.lang)&&(t.i18n&&t.i18n[t.lang]&&(x(Mt,{en:t.i18n[t.lang]}),Wt()),t.lang="en"),t.additionalPurposes){var a=t.additionalPurposes;Array.isArray(a)||(a=x([],a));var s={per_purpose:{purposes:{}}};a.forEach((function(e){s.per_purpose.purposes[e.id]={name:e.defaultLabel,bannerName:e.defaultLabel,description:e.defaultDescription}})),x(Mt,r({},t.lang,s)),Wt()}if(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 c=this.privacyPolicyUrl;c||(c="https://www.iubenda.com/privacy-policy/"+this.cookiePolicyId+"/legal"),this.privacyPolicyNoticeAtCollectionUrl=c+"#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(zt).forEach((function(e){return delete zt[e]})),Wt()),this.forceCustomizeButtonDisplayIfNeeded(),this.forceAcceptButtonDisplayIfNeeded(),this.forceRejectButtonDisplayIfNeeded(),this.forceCloseButtonDisplayIfNeeded(),this.setInvalidateConsentBefore(),this.merge(o,t),Ri("options.cmpId",this.cmpId),Ri("options.cmpVersion",this.cmpVersion),this.validationErrors=this.validate(o,t),this.validationErrors.map((function(e){e.errorType===Gi&&ht.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=zt[this.lang])||void 0===e||null===(e=e.banner)||void 0===e||null===(e=e.dynamic)||void 0===e||delete e.body,Wt(),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&&rn.setLang(this.lang)}},{key:"setGdprApplies",value:function(){if(!this.enableGdpr)return this.gdprAppliesGlobally=!1,void(this.gdprApplies=!1);if(this.gdprAppliesGlobally)return ht.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 ht.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 ht.info("Setting gdprApplies=false since countryDetection is true and user is detected from outside EU ("+_iub.cc+")."),void(this.gdprApplies=!1);ht.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 ht.info("Setting lgpdApplies=false since countryDetection is true and user is detected from outside BR ("+_iub.cc+")."),void(this.lgpdApplies=!1);ht.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=Yn(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(zt,this.i18n),Wt())}},{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;r2&&void 0!==arguments[2]&&arguments[2],i=Hi(e,t);return!0!==n||Object.keys(e).forEach((function(n){var o=Yi[n]?Yi[n](e[n]):null;o?i.push(zi.fromPropertyName(n,o,Gi)):$i(e,t,n)?i.push(zi.fromPropertyName(n,Vi,Gi)):Xi(e,t,n)&&(i=i.concat(Wi(e[n],t[n],Gi,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(zi.fromPropertyName("i18n",Mi,Gi)),o;"object"===m(t)&&"object"===m(e)||o.push(zi.fromInvalidType(ji,Gi));var a=Object.keys(e).reduce((function(t,a){var r=[];return"object"!==m(e[a])?o.push(zi.fromProperty("lang",a,Mi,Gi)):(qi(a)&&o.push(zi.fromProperty("lang",a,Ui,Gi)),Ji(e,a)&&o.push(new zi(Mi,"".concat(a,".callback"),null,Gi)),n&&n.en&&!0===i&&(r=Wi(e[a],n.en,Gi,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;a0&&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=_(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 A(pt)}},{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:"getPreferenceId",value:function(){return this.cs.getPreferenceId()}},{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}}])}(),to="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}.iub-sr-only{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}.iub-sr-only:focus{position:static!important;width:auto!important;height:auto!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}}";function no(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.styleOptions,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r={};t.forEach((function(e){r[e]=qt(e,n.options)}));var s=Sn(e,r),c=t.join(","),l=rn("blocked_overlay.title"),u=rn("blocked_overlay.paragraph").replace("%{purposes}",s),d=rn("blocked_overlay.accept_button"),p=rn("blocked_overlay.accept_button_sr_only"),h=et({"background-color":null==o?void 0:o.backgroundColor,color:null==o?void 0:o.textColor}),f=et({"background-color":null==o?void 0:o.acceptButtonColor,color:null==o?void 0:o.acceptButtonCaptionColor}),b='\n
\n
\n
\n

').concat(l,"

\n

").concat(u,'

\n
\n \n
\n
\n ");return a?b:'\n \n \n \n \n \n \n '.concat(l,"\n \n \n \n ").concat(b,"\n \n \n ")}function io(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 oo="loading",ao="loaded",ro="visible",so="hidden",co="ready",lo="not ready",uo="initial",po="processing",ho="processed",fo=function(){return o((function e(t,i){n(this,e);var o={cmpId:t,cmpStatus:oo,cmpDisplayStatus:so,supportedAPIs:[],supportedAPIs_1_1:[],sectionList:[],applicableSections:[],gppVersion:i||"1.0",signalStatus:lo,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 bo(e){if("string"!=typeof e)return{section:null,data:null};var t=e.split(".");return{section:t[0],data:t.slice(1).join(".")}}function go(e){if(!e)return e;var t=e;return"string"==typeof e&&(t=Number(e)),t.toString()}var mo=[1.1,1],vo=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;n1?t-1:0),i=1;i0&&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=(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.lengthparseInt(t)?1:0}));e.length>0&&0===e[0];)e.shift();for(var t=[],n=0,i=0,o=0,a=0,r=0;r0&&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;no.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=a?this.gppSectionIds[a-1]:0,h=i[a],f=null,b=0;ba.length?m.setCS(a):m.setCS(o),m.getBase64CS()}if(2==this.Version){if((m=new Co).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;nd&&(d=this.CustomPurposesConsent[n]);for(n=0;nd&&(d=this.CustomPurposesLI[n]);m.writeInt(d,6),m.writeBitField(this.CustomPurposesConsent,d),m.writeBitField(this.CustomPurposesLI,d),u=m.getBase64CS()}return s+(c.length>0?".":"")+c+(l.length>0?".":"")+l+(u.length>0?".":"")+u}if(3==this.Version){for(n=0;nparseInt(t.sectionID)?1:0}));for(n=0;n2&&void 0!==arguments[2]?arguments[2]:null,o=mo.reduce((function(e,t){return e[t]=n.model.getPingData(t),e}),{}),a=go(i);this.callResponder.events.forEach((function(n){var i=n.id,r=n.callback,s=n.version,c=go(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===oo&&(this.model.data.cmpStatus=ao,c.push(["cmpStatus",ao])),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 xo).Version=3,i.gppSections=n.map((function(e){return{sectionID:e.sectionId(),write:function(){return e.getString()}}})),i.toString())}if(t!==po){var u=r(r({},uo,lo),ho,co);if(this.model.data.signalStatus!==u[t])switch(this.model.data.signalStatus=u[t],t){case uo:c.unshift(["signalStatus",this.model.data.signalStatus,"1.1"]);break;case ho:c.push(["signalStatus",this.model.data.signalStatus,"1.1"])}}c.forEach((function(e){return o.fireEvent.apply(o,b(e))}))}}])}();function Io(){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;r0&&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=(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.lengthparseInt(t)?1:0}));e.length>0&&0===e[0];)e.shift();for(var t=[],n=0,i=0,o=0,a=0,r=0;r0&&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;no.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=0;return!(!n.blocked&&!i)}},{key:"processPurposesString",value:function(e){var t=this;if(!e)return[];var n=e.split(",").map((function(e){return e.trim()}));return this.allIds.filter((function(e){var i=t.purposeOptions[e],o=n.indexOf(e)>=0,a=n.indexOf(i.alias)>=0;return o||a}))}},{key:"getDefaultPurposes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={},i=this.processPurposesString(t);return i.length>0&&i.push.apply(i,b(this.additionalPurposes)),this.allIds.forEach((function(t){e.checkPurposeIdByList(t,i)&&(n[t]=e.purposeOptions[t].default)})),n}},{key:"getPurposesString",value:function(){return Object.keys(this.data).join(",")}},{key:"setData",value:function(e,t,n){this.purposeOptions[e]&&(n||this.expressedIds.indexOf(e)<0)&&!this.purposeOptions[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!t.purposeOptions[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:"isPurposeBlocked",value:function(e){var t;return null!==(t=this.purposeOptions[e].blocked)&&void 0!==t&&t}},{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||t.purposeOptions[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]},e.purposeOptions[i].blocked&&(n[i].blocked=!0))})),n}}])}(),Go=["purposes"],Wo=["purposes"],Ho=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 zo(e),this.usPurposes=new $n(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=p(e,Go);this.purposes.setPreference(n),this.setState(i)}},{key:"getFullState",value:function(){return d(d({},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=d(d({},this.state),{},{purposes:d({},this.purposes.getPreferences())})}},{key:"recoveryState",value:function(){if(this.savedState){var e=this.savedState,t=e.purposes,n=p(e,Wo);this.usPurposes.isActive&&this.usPurposes.recoveryPreferenceState(),t&&this.purposes.setPreference(t),this.state=d({},n),this.clearState()}}},{key:"clearState",value:function(){this.usPurposes.isActive&&this.usPurposes.clearPreferenceState(),this.savedNewState=null,this.savedState=null}}])}(),qo=0,Jo=1,Ko=2,Yo=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),E([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),E([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),E([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 qo;case"consent_only":return Jo;case"li_only":return Ko;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=io(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()}}])}(),$o=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")}}])}(),Xo=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)}}])}(),Zo=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()))}}])}(),Qo=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}}])}(),ea=function(){return o((function e(t){n(this,e),this.cs=t,this.storage=t.storage,this.tcf=new Yo(t,this.storage),this.usPrivacy=new $o(t),this.uspr=new Xo(t,this.storage),this.core=new Qo(t,this.storage),this.fadp=new Zo(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 E([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}}])}(),ta=function(){return o((function e(t){n(this,e),this.cs=t,this.storage=new ea(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 Ho(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)}}])}(),na=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=Tn(n,e,encodeURIComponent(JSON.stringify(t))),this.cs.debug("setting cross site cookies via callback at url: "+n),Ke(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(d({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),Ke(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=d({meth:"get",c_name:this.configuration.consentNameRemote},this.getMigrateCookieName("consentNameRemote"));this.createCSIframeBridge(e)}if(this.cs.options.ccpaApplies){var t=d({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=Tn(a,"origin",encodeURIComponent(o)),Object.keys(e).forEach((function(t){n=Tn(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"),Je((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)}}])}(),ia=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 "+l),ia.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;c3){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)}}])}(na),aa=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:O(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)}}])}(na),ra={COOKIE:"cookieStorage",LOCAL_STORAGE:"localStorage",ALL:"all"},sa=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}},{key:"preferenceIdNameLocal",get:function(){return this.cs.settings.PREFERENCE_ID}},{key:"preferenceIdNameRemote",get:function(){return this.preferenceHistoryNameLocal}}])}(),ca=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 sa(this.cs),this.setupStorageDrivers(),this.setupStorageTypes(),window.addEventListener("message",this.receiveMessageFromBridge.bind(this),!1)}),[{key:"setupStorageDrivers",value:function(){var e=ra.COOKIE,t=ra.LOCAL_STORAGE;this[e]=new oa(this.cs,this.configuration),this[t]=new aa(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,s;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=ra[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?ra[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?ra[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?ra[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?ra[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?ra[this.options.storage.items.granular.type.toUpperCase()]:this.storageType,this.preferenceIdStorageType=null!==(s=this.options.storage)&&void 0!==s&&null!==(s=s.items)&&void 0!==s&&null!==(s=s.preferenceId)&&void 0!==s&&s.type?ra[this.options.storage.items.preferenceId.type.toUpperCase()]:this.storageType}},{key:"syncStorage",value:function(){var e,t=this;[this.configuration.consentNameLocal,this.configuration.consentUsprNameLocal,this.configuration.ccpaNameLocal,this.configuration.consentGranularNameLocal,this.configuration.preferenceIdNameLocal,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===ra.LOCAL_STORAGE)return decodeURIComponent(t)}else if(/^\{.+\}$/i.test(t)&&e===ra.COOKIE)return encodeURIComponent(t);return t}},{key:"getSyncStorageType",value:function(e){return e===ra.COOKIE?ra.LOCAL_STORAGE:ra.COOKIE}},{key:"getStorageType",value:function(e){var t,n=ra.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;break;case this.configuration.preferenceIdNameLocal:n=this.preferenceIdStorageType}return n}},{key:"setLocalCookie",value:function(e,t,n){return this.setLocal(e,t,n)}},{key:"setLocal",value:function(e,t,n){var i=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a="",r=this.getStorageType(e);return r===ra.ALL?Object.keys(ra).forEach((function(r){"ALL"!==r&&(a=i[ra[r]].setLocal(e,t,n,o))})):a=this[r].setLocal(e,t,n,o),a}},{key:"setLocalCMP",value:function(e,t,n){var i=this,o="",a=this.getStorageType(e);return a===ra.ALL?Object.keys(ra).forEach((function(a){"ALL"!==a&&(o=i[ra[a]].setLocalCMP(e,t,n))})):o=this[a].setLocalCMP(e,t,n),o}},{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!")}}])}(),la=function(){return o((function e(t){var i=this,o=t.options,a=t.preferences;n(this,e);var r=document.getElementsByTagName("head")[0];ot("#iubenda_cs_rejection_recovery_popup{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;z-index:9999999999;font-family:sans-serif}#iubenda_cs_rejection_recovery_popup .iubenda-cs__close{background:0 0;display:flex;width:20px;height:20px;text-align:center;font-size:16px;font-weight:700;margin:0 0 -20px 0;padding:0;justify-content:center;align-items:center;border:0;cursor:pointer;align-self:flex-end}#iubenda_cs_rejection_recovery_popup .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_rejection_recovery_popup .iubenda-cs__body h1{font-size:1.25rem;margin:0 0 .5rem 0}#iubenda_cs_rejection_recovery_popup .iubenda-cs__body p{margin:0;font-weight:300}#iubenda_cs_rejection_recovery_popup .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_rejection_recovery_popup .iubenda-cs__button:hover{background-color:#005aa0!important}",r),this.csOptions=o,this.csPreferences=a,this.container=null,document.querySelectorAll("._iub_cs_activate-popup").forEach((function(e){e.addEventListener("click",(function(e){var t,n=i.csPreferences.state.purposes,o=i.csPreferences.state.usPurposes,a=e.target.getAttribute("data-iub-purposes"),r=a.split(",").map((function(e){return e.trim()})),s=!o.isActive||(null===(t=o.checkPurposes(a))||void 0===t||t),c=n.processPurposesString(a),l=n.hasApproved(c);if(!1===i.csOptions.gdprApplies&&!1===i.csOptions.lgpdApplies&&!1===i.csOptions.fadpApplies&&(l=!0),!(s&&l))return e.stopPropagation(),void i.openIubendaRejectionRecoveryPopup(e.target,r)}),!0)}))}),[{key:"openIubendaRejectionRecoveryPopup",value:function(e,t){if(this.container=document.getElementById("iubenda_cs_rejection_recovery_popup"),this.container){var n=this.container.querySelector(".iubenda-cs__dialog"),i=n.querySelector(".iubenda-cs__button");Ue(i),this.appendButtonElement(n,t,e),this.container.style.display=""}else{var o,a,r=et({"background-color":null===(o=this.csOptions.banner)||void 0===o?void 0:o.backgroundColor,color:null===(a=this.csOptions.banner)||void 0===a?void 0:a.textColor}).replace('style="',"").replace('"',"");this.container=document.createElement("div"),this.container.id="iubenda_cs_rejection_recovery_popup";var s=document.createElement("div");s.className="iubenda-cs__dialog",s.setAttribute("style",r),this.appendCloseButton(s),this.appendContentElement(s,t),this.appendButtonElement(s,t,e),this.container.appendChild(s),document.body.appendChild(this.container)}}},{key:"appendContentElement",value:function(e,t){var n=this,i=t.map((function(e){return n.getIubendaPurposeListName(e)})).join(", "),o=document.createElement("div");o.className="iubenda-cs__body";var a=document.createElement("h2");a.innerText=rn("blocked_popup.title");var r=document.createElement("p");r.innerHTML=rn("blocked_popup.paragraph").replace("%{purposes}",i),o.appendChild(a),o.appendChild(r),e.appendChild(o)}},{key:"appendButtonElement",value:function(e,t,n){var i,o,a=this,r=et({"background-color":null===(i=this.csOptions.banner)||void 0===i?void 0:i.acceptButtonColor,color:null===(o=this.csOptions.banner)||void 0===o?void 0:o.acceptButtonCaptionColor}).replace('style="',"").replace('"',""),s=document.createElement("button");s.className="iubenda-cs__button",s.innerText=rn("blocked_popup.accept_button"),s.setAttribute("style",r),s.addEventListener("click",(function(){a.container.style.display="none";var e={consent:!0};t.forEach((function(t){!!a.csPreferences.state.usPurposes.validatePurposes(t).length?(e.uspr=e.uspr||{},e.uspr[t]=!0):(e.purposes=e.purposes||{},e.purposes[t]=!0)})),a.csPreferences.store(e,"cookiePolicyClosed",!1),n.click()})),e.appendChild(s)}},{key:"appendCloseButton",value:function(e){var t=this,n=document.createElement("button");n.className="iubenda-cs__close",n.innerText="✕",n.addEventListener("click",(function(){t.container.style.display="none"})),e.appendChild(n)}},{key:"getIubendaPurposeListName",value:function(e){var t,n,i=this.csPreferences.state.usPurposes,o=this.csOptions.lang;return o?i.validatePurposes(e).length?(null===(n=this.csOptions.i18nForBanner)||void 0===n||null===(n=n[o])||void 0===n||null===(n=n.uspr)||void 0===n||null===(n=n.purposes)||void 0===n?void 0:n[e])||"":(null===(t=this.csOptions.i18nForBanner)||void 0===t||null===(t=t[o])||void 0===t||null===(t=t.per_purpose)||void 0===t||null===(t=t.purposes)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.name)||"":""}}])}(),ua=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.sharedData=t}),[{key:"register",value:function(e){var t=null;try{ht.info("Register module:",e.name),t=new e(this.sharedData)}catch(t){ht.error("Register module error:",e.name,t)}return t}}])}();function da(e,t){var n=864e5;return(t*n-Date.now()+new Date(e).getTime())/n}function pa(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 ha(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;o2&&void 0!==arguments[2]?arguments[2]:{};n(this,e),Pt(this),this.settings=ct,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 Ii(this),this.crossSiteConsent={},this.consent=this.getInitialConsent(),this.checkIfInIframe(),this.ui=new Un(this),this.tracker=new Ni(this),!0===this.options.previewMode&&(this.tracker.state.enabled=!1),this.storage=new ca({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,na),this.browserDetect=new fe,this.api=new eo(this),this.cmpLibraryPromise=i,this.storeCMPChoicePromise=T(),this.customPreferencesResult=this.fetchCustomPreferences(),this.savedPreferences={},this.customPurposes=null,this.firstActivationCompletedPromise=T(),this.preferences=new ta(this),this.modules=new ua({options:this.options,preferences:this.preferences})}),[{key:"getInitialConsent",value:function(){return{consent:void 0,timestamp:void 0,version:void 0}}},{key:"getPreferenceId",value:function(){return this.debug("Reading preferenceId..."),this.storage.getLocal(this.storage.configuration.preferenceIdNameLocal,!0)||null}},{key:"updatePreferenceId",value:function(e){this.debug("Updating preferenceId to: '".concat(e,"'")),this.storage.setLocal(this.storage.configuration.preferenceIdNameLocal,e,null,!1)}},{key:"syncPreferenceId",value:function(){var e,t,n;this.debug("Syncing preferenceId...");var i=null;if(null!==(e=_iub.cs.consent)&&void 0!==e&&null!==(e=e.cons)&&void 0!==e&&e.returnedId)i=_iub.cs.consent.cons.returnedId;else if(null!==(t=_iub.cs.consent)&&void 0!==t&&t.timestamp&&null!==(n=_iub.cs.consent)&&void 0!==n&&null!==(n=n.cons)&&void 0!==n&&n.rand){var o;i=ae(_iub.cs.consent.timestamp,null===(o=_iub.cs.consent)||void 0===o||null===(o=o.cons)||void 0===o?void 0:o.rand)}i&&this.updatePreferenceId(i)}},{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:ha(e.gac)}):e}},{key:"renewCookies",value:function(){var e=this;if(this.state.needsConsent&&this.isPreferenceExpressed()){var t=da(this.consent.timestamp,this.options.preferenceCookie.expireAfter);this.storage.storeConsentLocal({expireAfter:t})}if(this.options.enableTcf&&this.state.tcfv2String){var n={expireAfter:da(Ei(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=Gt[o];a||(a=Gt.en);var r=a.tcf_v2||Gt.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=d({},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=io(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(){var e=-1!==navigator.userAgent.indexOf("Google")?500:0,t=this.options.reloadOnConsentRequestTimeout||0,n=Math.max(e,t);this.info("Reloading page at consent given ..."),0===n?location.reload(!0):setTimeout((function(){location.reload(!0)}),n)}},{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:pa(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.state.consentFoundOnLoad=!0,this.options.enableGpp&&(this.gppCmpApi=new Uo(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):(Zt(),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=io(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=Ei(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()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||n36e5}},{key:"getMissingCustomPreferences",value:function(e){for(var t=[],n=this.getCustomPurposes(),i=0;iprivacy policies of the respective services."}),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 Uo(n)),Je((function(){if(e.options.enableTcf&&Rt(e.ui),e.ui.createPreferencesWidgets(),ln(e.ui),e.ui.bindVendorListBtns(),n.enableCcpa&&n.ccpaApplies)for(var t=document.querySelectorAll(".iubenda-ccpa-opt-out"),i=0;i0&&t=t)return ht.debug("Consent out of interval, invalidating consent"),!1}if(this.options.consApiKey&&(null===(e=this.consent)||void 0===e||null===(e=e.cons)||void 0===e||!e.rand)){var a=this.options.invalidateConsentWithoutLog,r="string"==typeof a||"number"==typeof a,s=r?new Date(a).getTime():null;if(!0===a||r&&s>t)return!1}var c=this.storage.getLocal(this.storage.configuration.consentUsprNameLocal);return!(this.options.usprApplies&&!c&&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;nt(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 ht.debug("activation already done or in progress by SAFEMODE activator. Yielding."),this.firstActivationCompletedPromise.resolve()}},{key:"handleBannerPPClick",value:function(e){var t=this;nt(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;nt(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:no.bind(this)},i=d(d({},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()}))}))),E(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=Ei(t).getVendorListVersion();return o>=i.vendorListVersion?(n.resolve([]),n):(e.getVendorList(o,(function(e){for(var t={},o=0;o0){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?(ht.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 Zi(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 ht.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();ht.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)}}])}(),ga="iub_newsletter_store",ma="iub_newsletter_store_views",va=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(ma))&&void 0!==i?i:0,10),this.containerElementInPage=null,this.emitter=new wt}),[{key:"increasePageViewCounter",value:function(){localStorage.setItem(ma,++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.9/newsletter-widget-[lang].umd.js";e(i=i.replace("[lang]",this.configuration.lang.toLowerCase())).then((function(){fa=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=e}catch(e){}return!0}}])}();function ya(){var e="https://cdn.iubenda.com/cs/tcf/versions/tcf-v2-0.29.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 ka(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 Ca(){var e=T().resolve();return function(){try{return"consentState"in JSON.parse(window.name)}catch(e){return!1}}()&&(e=ka("https://cdn.iubenda.com/cookie_solution/versions/cs_amp-1.5.1.js")),e}new(function(){return o((function e(t,i){n(this,e),this.csPremergedConfig=function(e){return P(pt,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;Ca().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 va(o);n.on("callback.before.onPreferenceExpressedOrNotNeeded",(function(){return a.load(ka,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 function(e,t,n){var i,o="Something went wrong within loading remote configuration.";if(e.cookiePolicyId)if(null!==(i=_iub.flags)&&void 0!==i&&i.hasFullConfiguration)r();else{var a=0;ht.info("Loading javascript remote configuration"),Ct(kt(e,yt(e)),(function n(i){i.success?(ht.info("Remote configuration correctly loaded."),r()):++a<5?setTimeout((function(){ht.info("Loading javascript remote configuration","Attempt ".concat(a+1)),Ct(kt(e,yt(e)),n)}),200):t(o)}))}else t(o);function r(){ht.info("Merging remote configuration with default.");var e=new mt({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});null==n||n(e)}}(_iub.csConfiguration,(function(n){e.handleStartupFailure(n),t.resolve({})}),(function(n){e.addAnalyticsPurposeIfNeeded(n.csPurposes),t.resolve(n)})),t}},{key:"getCmpLibraryPromise",value:function(e){var t=T().resolve();this.isConfigurationTcfEnabled(e)&&(t=ka(ya()));return t}},{key:"isConfigurationTcfEnabled",value:function(e){var t=pt.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?at((function(){return t.resolve()})):Je((function(){return t.resolve()}),!1),t}},{key:"waitForPreload",value:function(){return T((function(e){document.prerendering?document.addEventListener("prerenderingchange",e,{once:!0}):e()}))}},{key:"preLoadCS",value:function(e){var t=this;this.cmpLibraryPromise.then((function(){t.loadDom(e).then((function(){t.waitForPreload().then((function(){try{e.preLoad()}catch(e){t.handleStartupFailure(e)}}))}))}))}},{key:"createInstance",value:function(e){var t=new ba(this.csConfiguration,this.cmpLibraryPromise,e);return _iub.cs=t,ve.install(t,t.options,ht),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),ht.error("Cookie Solution startup failed",e)}}])}())(_iub.csConfiguration,_iub.csLangConfiguration)}();