!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 r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function a(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},s.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(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&&f(e,t)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function p(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"===v(e[n])&&e[n]){var o=O(e[n],[].concat(g(t),[n]));i=i.concat(o)}else{var r=[].concat(g(t),[n]).join(".");i.push(r)}}),i},I=function(e){try{return JSON.parse(e)}catch(e){return null}};function B(){var e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"dataLayer",i=arguments.length>3?arguments[3]:void 0;if(!window[n]||!window[n].length)return!1;for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"dataLayer",arguments.length>1?arguments[1]:void 0);return!1!==e}function L(){return window._iub&&window._iub.csConfiguration&&window._iub.csConfiguration.logLevel?window._iub.csConfiguration.logLevel:"warning"}function D(){var e=L();-1!==["debug","info"].indexOf(e)&&console.info("[IUBCS|INFO]: The default consent or the TCF stub has been correctly found before Google Tag Manager is initialized.")}function E(){if(window._iub&&window._iub.csConfiguration&&!1!==window._iub.csConfiguration.googleConsentMode&&window._iub&&window._iub instanceof Object&&!0!==_iub.comoImplementationLogged){window._iub&&window._iub instanceof Object&&(_iub.comoImplementationLogged=!0);var e="google_tag_manager"in window,t="__tcfapi"in window,n=!!window._iub&&!!window._iub.csConfiguration&&!0===window._iub.csConfiguration.googleEnableAdvertiserConsentMode;e&&!B()&&!n||e&&!t&&n?function(){var e=L();-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.")}():D()}}function T(e,t,n){for(var i=!!t,o={},r=0,a=Object.keys(n);r1?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=k(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))}}])}(),pe=function(e,t,n){var i=[t].concat(n);console[e].apply?console[e].apply(console,i):console[e](i.join(" "))},de={configure:function(){},log:function(e,t){try{if("console"in window&&"log"in console&&"warn"in console&&"error"in console){var n="[IUBCS|"+e.toUpperCase()+"]:";he.LOG_LEVELS[e]299)try{var r=JSON.parse(i).message;n(r)}catch(e){n("Failed to decode the response from ConS server")}else n(null,i)}var o="".concat("https://cpl.iubenda.com/big_data/consent","?apikey=").concat(e),r=JSON.stringify(t);"function"==typeof window.fetch?function(e,t,n){var i;fetch(e,{method:"POST",headers:{"Content-Type":"text/plain"},body:t,keepalive:!0}).then(function(e){return i=e.status,e.text()}).then(function(e){return n({response:e,status:i})}).catch(function(e){return n({err:e.toString()})})}(o,r,i):function(e,t,n){var i=new XMLHttpRequest;i.onload=function(){return n({response:i.responseText,status:i.status})},i.onerror=function(){return n({err:"Failed to send data to ConS server"})},i.open("POST",e),i.setRequestHeader("Content-Type","text/plain"),i.send(t)}(o,r,i)}var Ce=new ve({sendConsent:function(e,t,n){this.isSendingDenied()?"function"==typeof n&&n("Send consent denied"):ke(e,t,n)},getBannerHtml:function(e){var t=e;return"banner"===this.currentLayer?t=this.bannerHTML:"secondLayer"===this.currentLayer&&(t="Updated from the 2nd layer"),t},getPageUrl:function(){return location.href},ConsStorage:function(){return o(function e(t){n(this,e),this.storageKey=t},[{key:"items",get:function(){var e;try{e=JSON.parse(localStorage.getItem(this.storageKey))}catch(e){}return e||[]},set:function(e){try{0===e.length?localStorage.removeItem(this.storageKey):localStorage.setItem(this.storageKey,JSON.stringify(e))}catch(e){}}},{key:"add",value:function(e){var t=this.items,n=ye(t,function(t){return t.scoped_id===e.scoped_id});-1!==n?t[n]=e:t.push(e),this.items=t}},{key:"remove",value:function(e){var t=this.items,n=ye(t,function(t){return t.scoped_id===e});-1!==n&&t.splice(n,1),this.items=t}}])}()}),we=function(){},Pe=function(){return o(function e(){n(this,e),this._registry={},this._instances={}},[{key:"register",value:function(e,t){t.install=t.install||we,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[e];if(!o)return null;var r={};_(r,o),Object.setPrototypeOf(r,Object.getPrototypeOf(o)),r.cs=t,r.logger=i,r.config=r.config||{};var a={};return Object.keys(n).forEach(function(e){r.config.hasOwnProperty(e)&&(a[e]=n[e])}),_(r.config,a),r}},{key:"install",value:function(e,t,n){var i=this,o=this._registry,r=this._instances;Object.keys(o).forEach(function(o){var a=i.createPluginInstance(o,e,t,n);r[o]=a,a.start()})}},{key:"get",value:function(e){return this._registry[e]}}])}(),Se=new Pe;Se.register("googleConsentMode",$),Se.register("uetConsentMode",ae),Se.register("ConS_integration",Ce);var xe={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"},_e={iab_tcf:"https://iabeurope.eu/transparency-consent-framework/"},Ae=["iab_tcf"],Oe=[{start:/\[or (.+?)\]/,end:"",exec:function(e,t,n){return Fe(e,n)?"[or]":""}},{start:/\[= (.+?)\]/,end:"",exec:function(e,t,n){return Be(n,e.split("."))}},{start:/\[list (.+?)\]/,end:/\[\/list\]/,exec:function(e,t,n){return Ne(t,e)}},{start:/\[if (.+?)\]/,end:/\[\/if\]/,exec:function(e,t,n){return Fe(e,n)?t:""}},{start:/\[tip (.+?)\]/,end:/\[\/tip\]/,exec:function(e,t){return'"}},{start:/\[link (.+?)\]/,end:/\[\/link\]/,exec:function(e,t){var n,i,o=!!e.match(/ unstyled$/);e=e.replace(/ unstyled$/,"");var r=xe[e]||"",a=_iub.cs,s=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,c="";null!==(i=a.options)&&void 0!==i&&null!==(i=i.banner)&&void 0!==i&&i.linksColor&&-1===Ae.indexOf(e)&&!o&&(c="style=color:"+a.options.banner.linksColor.replace(/\s+/g,"")+"!important;");var l=t,u=r?"javascript:void(0)":_e[e]||e;if("cookie_policy"===e){var p=a.options.banner.cookiePolicyLinkCaption;u=a.ui.getCookiePolicyHref(),p&&(l=p)}var d=/^http/i.test(u)||"cookie_policy"===e;return(d?""+l+(d?"":"")}}],Ie=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},Me=function(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()},Ue=function(e,t){var n=(t||document).getElementsByClassName(e);return Array.prototype.concat.apply([],n)},ze=function(e){return e&&e.length?Ve("."+e.join(", .")):[]},We=function(e,t){for(var n=t.parentNode;null!=n;){if(n===e)return!0;n=n.parentNode}return!1},Ge=function(e){return document.createElement(e.toUpperCase())},He=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},qe=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Ke=function(e,t){var n=e.nextSibling,i=e.parentNode;qe(e),i.insertBefore(t,n)},Ye=function(e,t){return e.parentNode.insertBefore(t,e.nextSibling)},Je=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}}}},Xe=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)},$e=function(e){e.hasAttribute("type")&&e.setAttribute("data-iub-type",e.getAttribute("type")),e.setAttribute("type","text/plain"),e.setAttribute("data-iub-script","true")},Ze=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 At(){return-1!==["localhost"].indexOf(window.location.hostname)||null!==window.location.hostname.match(/.iubenda.com$/)}function Ot(e){return At()&&!0===e.previewMode&&!!e.previewRemoteConfigurationUrl}function It(e){return!0===(arguments.length>1&&void 0!==arguments[1]&&arguments[1])?e.previewRemoteConfigurationUrl:mt.urlForRemoteConf.replace("%{cookie_policy_id}",e.cookiePolicyId)}function Bt(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 Lt=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)}}}])}(),Dt=function(e){return new Lt(e)},Et=function(e,t){return e.shadowRoot?function e(t,n){var i=[];return t.querySelectorAll(n).forEach(function(e){return i.push(e)}),t.querySelectorAll("*").forEach(function(t){t.shadowRoot&&i.push.apply(i,g(e(t.shadowRoot,n)))}),i}(e.shadowRoot,t):e.querySelectorAll(t)},Tt=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).activeElement;return e?e.shadowRoot?Tt(e.shadowRoot):e:null},Ft=function(e){var t=!e.hasAttribute("disabled"),n=!e.getAttribute("aria-hidden");return t&&n&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Nt='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"])',Rt=null,Vt=!1,jt=[],Mt=!1,Ut=!1,zt=!1,Wt=!1,Gt=function(e){if(!Wt&&(Mt||null===e.relatedTarget&&!zt)){Mt=!1;var t=e.target;if(Rt){var n=document.querySelector(Rt);if(!n.contains(t)){var i=function(e,t){var n=Et(e,Nt),i=0,o=1;t&&(i=n.length-1,o=-1);for(var r=n[i];r&&!Ft(r);)r=n[i+=o];return r}(n,Ut);i.focus()}}}},Ht=function(e){var t=Tt(),n=document.querySelector(Rt);if(n){var i,o=(i=Et(n,Nt),{first:Array.from(i).find(Ft),last:Array.from(i).reverse().find(Ft)}),r=o.first,a=o.last;return a!==t||Ut?r===t&&Ut?(e.preventDefault(),void a.focus()):void 0:(e.preventDefault(),void r.focus())}},qt=function(e){if(!Wt){var t=e.code||e.key;(Mt="Tab"===t)&&(Ut=e.shiftKey&&Mt,Ht(e))}},Kt=function(e){!function(e){if(Rt){var t=document.querySelector(Rt);if(t){var n=t.contains(e.target);jt.length>2&&jt.filter(function(e){return e.selector}).forEach(function(t){var i=document.querySelector(t.selector);i&&!n&&(n=i.contains(e.target))}),Wt=!n}}}(e),zt=!0},Yt=function(){zt=!1},Jt=function(e){if(Vt||(Vt=!0,lt(document.body,"focusin",Gt),lt(window,"keydown",qt),lt(document,"mousedown",Kt),lt(document,"mouseup",Yt)),e)jt.push({selector:Rt,lastActive:Tt()}),Rt=e;else{var t=jt.pop();t&&(Rt=t.selector,t.lastActive.focus())}},Xt=function(e,t){e.addEventListener("click",function(e){e.stopPropagation(),e.preventDefault(),setTimeout(function(){t.showCP(!1,!0)},0)})},$t={en:{brand:{linkTitle:"iubenda - Cookie Policy and Cookie Compliance Management"},banner:{accept_button_caption:"Accept[if banner.showPurposesToggles] all[/if]",advertising_preferences_caption:"advertising preferences panel",close_without_accepting_button_caption:"Close without accepting",continue_acception_button_caption:"Continue without accepting →",cookie_policy_caption:"cookie policy",customize_button_caption:"Learn more[if (perPurposeConsent or (enableTcf and gdprApplies) or usprApplies) and not banner.showPurposesToggles] and customize[/if]",do_not_sell_caption:"Do Not Sell My Personal Information",checkbox_title:"Click to enable or disable",dynamic:{and:"and",body:'[if useUIModule] [/if] We [if banner.ownerName] ([= banner.ownerName]) [/if] [if banner.useThirdParties] and selected third parties [if banner.totalNumberOfProviders] ([= banner.totalNumberOfProviders]) [/if] [/if] [if usprApplies or ccpaApplies]collect personal information[if usprApplies and hasPrivacyPolicy] as specified in the %{privacy_policy}[/if][/if][if not gdprApplies and not lgpdApplies and not fadpApplies and (usprApplies or ccpaApplies)].[if useUIModule] [/if][/if][if gdprApplies or lgpdApplies or fadpApplies][if usprApplies or ccpaApplies] and [/if][/if][if gdprApplies or lgpdApplies or fadpApplies]use cookies or similar technologies [if useUIModule] [/if] for technical purposes and[if not fadpApplies], with your consent,[/if] for[if not banner.listPurposes or useUIModule] other purposes[/if][if banner.listPurposes and not useUIModule] [if adPersonalization][/if]%{purposes}[if adPersonalization][/if][/if][if hasCookiePolicy] as specified in the [link cookie_policy]cookie policy[/link][/if]. [if enableTcf and gdprApplies][if not useUIModule]\n[/if][if useUIModule] [/if]With 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][if not useUIModule]\n[/if][if useUIModule] [/if]You 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][if not useUIModule]\n[/if][if useUIModule] [/if]In case of sale of your personal information, you may opt out by using the link "%{do_not_sell}".[if not useUIModule]\n[/if][if useUIModule] [/if][if hasPrivacyPolicy][if not useUIModule]\n[/if][if useUIModule] [/if]To 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][if not useUIModule]\n[/if][if useUIModule] [/if][if gdprApplies or lgpdApplies][if banner.acceptButtonDisplay][list or][if banner.acceptButtonDisplay][if not useUIModule]\n[/if][if useUIModule] [/if]Use 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][if not useUIModule]\n[/if][if useUIModule] [/if]Note for US consumers: y[/if][if not gdprApplies and not lgpdApplies and not fadpApplies][if not useUIModule]\n[/if][if useUIModule] [/if]Y[/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"},title_purposes_list:"We use them for",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",title_2nd_layer:"Preferences",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"}}},Zt={},Qt={},en={},tn={};function nn(){_(tn,$t),_(tn,Zt),_(tn,Qt),_(tn,en)}function on(e){Zt=e}nn();var rn=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"},an=!1,sn=!1,cn=!1,ln=!1,un=function(){if(!cn){var e=document.getElementsByTagName("head")[0];pt("#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:#555!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}#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-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;line-height:inherit;list-style-type:inherit!important;list-style-position:outside!important;list-style-image:none!important;margin:0;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;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;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-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{opacity:0!important;pointer-events:none!important;transition:opacity .4s ease!important}#iubenda-cs-banner.iubenda-cs-visible>*{pointer-events:auto!important}#iubenda-cs-banner.iubenda-cs-visible{opacity:1!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}@media screen and (max-height:300px){#iubenda-cs-banner .iubenda-cs-rationale{overflow-y:auto!important;display:block!important}#iubenda-cs-banner .iubenda-cs-rationale:before{content:\"\";position:fixed;bottom:0;left:0;width:100%;height:40%;background:linear-gradient(to bottom,rgba(0,0,0,0),#000);z-index:1;pointer-events:none}}#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:first-child{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 screen and (max-height:300px){#iubenda-cs-banner .iubenda-cs-opt-group{position:relative!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>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,#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-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}#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{border-top:1px solid var(--iub-granular-border)!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-floatable-default-btn),.iubenda-tp-btn:not(.iubenda-floatable-tb-btn) *,.iubenda-tp-btn:not(.iubenda-floatable-tb-btn):not([data-tp-nostyle],.iubenda-floatable-default-btn),.iubenda-uspr-btn *,.iubenda-uspr-btn:not([data-tp-nostyle],.iubenda-floatable-default-btn){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;line-height:inherit;list-style-type:inherit!important;list-style-position:outside!important;list-style-image:none!important;margin:0;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;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;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-floatable-default-btn),.iubenda-tp-btn:not(.iubenda-floatable-tb-btn):not([data-tp-nostyle],.iubenda-floatable-default-btn),.iubenda-uspr-btn:not([data-tp-nostyle],.iubenda-floatable-default-btn){-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;line-height:38px!important;height:38px!important;min-width:38px!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:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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:38px;height:38px}.iubenda-tp-alert-btn[data-tp-icon=data-tp-icon],.iubenda-tp-btn:not(.iubenda-floatable-tb-btn)[data-tp-icon=data-tp-icon],.iubenda-uspr-btn[data-tp-icon=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:38px 38px!important}.iubenda-tp-alert-btn[data-tp-icon=generic],.iubenda-tp-btn:not(.iubenda-floatable-tb-btn)[data-tp-icon=generic],.iubenda-uspr-btn[data-tp-icon=generic]{background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_1711_3144)'%3E%3Cpath d='M9.85732 0.605164C8.61149 0.605164 7.41668 1.10007 6.53575 1.981C5.65482 2.86194 5.15991 4.05674 5.15991 5.30257V6.08547H6.72571V5.30257C6.72571 4.47202 7.05565 3.67548 7.64294 3.08819C8.23023 2.5009 9.02676 2.17097 9.85732 2.17097C10.6879 2.17097 11.4844 2.5009 12.0717 3.08819C12.659 3.67548 12.9889 4.47202 12.9889 5.30257V6.08547H14.5547V5.30257C14.5547 4.05674 14.0598 2.86194 13.1789 1.981C12.298 1.10007 11.1031 0.605164 9.85732 0.605164Z' fill='%23333333'/%3E%3Cpath d='M14.5548 7.65131H5.15998C4.53707 7.65131 3.93967 7.89876 3.4992 8.33922C3.05873 8.77969 2.81128 9.37709 2.81128 10V16.2632C2.81128 16.8861 3.05873 17.4835 3.4992 17.924C3.93967 18.3645 4.53707 18.6119 5.15998 18.6119H14.5548C15.1777 18.6119 15.7751 18.3645 16.2156 17.924C16.656 17.4835 16.9035 16.8861 16.9035 16.2632V10C16.9035 9.37709 16.656 8.77969 16.2156 8.33922C15.7751 7.89876 15.1777 7.65131 14.5548 7.65131ZM10.6403 13.7031V15.4803C10.6403 15.688 10.5578 15.8871 10.411 16.0339C10.2642 16.1807 10.065 16.2632 9.85739 16.2632C9.64975 16.2632 9.45061 16.1807 9.30379 16.0339C9.15697 15.8871 9.07449 15.688 9.07449 15.4803V13.7031C8.77598 13.5308 8.54268 13.2648 8.41077 12.9463C8.27887 12.6279 8.25573 12.2748 8.34494 11.9418C8.43415 11.6089 8.63073 11.3147 8.90419 11.1049C9.17765 10.895 9.5127 10.7813 9.85739 10.7813C10.2021 10.7813 10.5371 10.895 10.8106 11.1049C11.084 11.3147 11.2806 11.6089 11.3698 11.9418C11.459 12.2748 11.4359 12.6279 11.304 12.9463C11.1721 13.2648 10.9388 13.5308 10.6403 13.7031Z' fill='%23333333'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1711_3144'%3E%3Crect width='18.7896' height='18.7896' fill='white' transform='translate(0.462402 0.605164)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")!important;background-repeat:no-repeat!important;background-size:25px 25px!important;background-position:top 6.5px left 6.5px!important}.iubenda-tp-alert-btn[data-tp-circle],.iubenda-tp-btn:not(.iubenda-floatable-tb-btn)[data-tp-circle],.iubenda-uspr-btn[data-tp-circle]{border-radius:38px!important}.iubenda-tp-alert-btn[data-tp-label]:after,.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left],.iubenda-tp-btn:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right],.iubenda-tp-btn:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-anchored][data-tp-hover][data-tp-float=center-left],.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-left],.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-anchored]:not([data-tp-hover]):not([data-tp-label])[data-tp-float=center-right],.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-anchored]:not([data-tp-hover])[data-tp-label][data-tp-float=center-left],.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-float=bottom-left],.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-float=bottom-left][data-tp-anchored],.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-float=top-left],.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-float=top-left][data-tp-anchored],.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-float=bottom-left],.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-float=bottom-right],.iubenda-tp-btn:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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:not(.iubenda-floatable-tb-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,.iubenda-uspr-btn button{padding:.75rem!important;cursor:pointer!important;flex:1 1 auto!important;display:inline-flex!important;align-items:center!important;grid-gap:0.5rem!important;border:none;background:0 0}.iubenda-uspr-btn a img,.iubenda-uspr-btn button img{width:2.5rem!important;flex-shrink:0!important}.iubenda-uspr-btn a:hover,.iubenda-uspr-btn button:hover{background-color:rgba(0,0,0,.025)!important}.iubenda-uspr-btn>:first-child{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{font-family:-apple-system,sans-serif!important;font-size:1rem;font-weight:700;display:flex;justify-content:center;align-items:center;padding:.5em 1em;line-height:1;text-decoration:none;transition:background-color .3s ease;cursor:pointer;border:none;background:0 0}.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),cn=!0}},pn=function(e){if(!ln&&!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 r in e.properties)e.properties[r]&&(o+="".concat(r,": ").concat(e.properties[r]).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];pt(n,i),ln=!0}};var dn="en",hn=dn,fn=function(e,t){for(var n=e,i=0;n&&i2&&void 0!==arguments[2]?arguments[2]:{},r=e.split("."),a=fn(tn[hn],r)||t||e;return void 0===a&&hn!==dn&&(a=fn(tn[dn],r)),Re(a=a||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)};bn.setLang=function(e){hn=e};var gn=bn,mn=function(e){return-1!==["en","it","de","es","fr","pt-BR","nl","da"].indexOf(e)?e.toLowerCase():"en"};function vn(e){var t=null!=e?e:"en",n=2===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)?"csbrui-v2":"csbr2";return{brandLink:"https://www.iubenda.com/"+mn(t)+"/cookie-solution?utm_source=cs&utm_medium=web&utm_campaign="+n,brandLinkTitle:tn[t].brand.linkTitle}}function yn(e){var t=null!=e?e:"en",n=2===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)?"csbrui-v2-2l":"csbr1";return{brandLink:"https://www.iubenda.com/"+mn(t)+"/cookie-solution?utm_source=cs&utm_medium=web&utm_campaign="+n,brandLinkTitle:tn[t].brand.linkTitle}}window._iub.csTranslate=gn;var kn=function(e,t){e.addEventListener("click",function(e){e.stopPropagation(),e.preventDefault(),t.cs.api.showBanner()})},Cn=function(e,t){e.getAttribute("data-iub-enabled")||(e.addEventListener("click",function(n){n.stopPropagation(),n.preventDefault();var i=e.getAttribute("data-accept-purposes"),o=null;i&&(o=i.split(",")),!0===t.cs.options.preferencesLinkOpensBanner?t.cs.api.showBanner():t.openPreferences({event:n,acceptPurposes:o})}),e.setAttribute("data-iub-enabled",1))},wn="iub-popover",Pn="iub-popover-header-title",Sn="iub-popover-content-body",xn="iub-popover-header-close",_n="iub-popover-visible",An=function(){return o(function e(t){n(this,e),this.cs=t},[{key:"titleEl",get:function(){return Ue(Pn)[0]}},{key:"bodyEl",get:function(){return Ue(Sn)[0]}},{key:"onClick",value:function(e){var t=e.target;if(ot(t,"iub-popover-trigger")){var n=t.getAttribute("data-iub-popover"),i=t.getAttribute("data-iub-popover-title");i||null===n||(i=gn("tooltips."+n+".title",""));var o=t.getAttribute("data-iub-popover-body");o||null===n||(o=gn("tooltips."+n+".body","")),this.showPopover(t,i,o),e.preventDefault()}}},{key:"showPopover",value:function(e,t,n){var i=this,o=this.cs.ui,r=function(e,t){for(var n=e.parentNode;null!=n;){if(!0===t(n))return n;n=n.parentNode}return null}(e,function(e){var t="iubenda-iframe-popup"===e.id;return t&&!e._iubPopupInit&&(lt(e,"click",function(e){i.onIframePopupClick(e)}),e._iubPopupInit=1),t||ot(e,"iubenda-cs-container")}),a=this.createPopover(r);this.titleEl.innerHTML=t,this.bodyEl.innerHTML=n,o.bindOpenCmpBtns(a),o.bindVendorListBtns(a),a.offsetWidth,nt(r.parentNode,_n),Jt(".".concat(wn)),setTimeout(function(){a.querySelector(".".concat(xn)).focus()},50)}},{key:"onIframePopupClick",value:function(e){var t=Ue(wn)[0],n=e.target;n===t||We(t,n)||this.close(),e.stopPropagation()}},{key:"close",value:function(){var e=Ue(wn)[0];if(e&&e.parentNode){var t=Ue(_n)[0];t&&(Jt(),it(t,_n),setTimeout(function(){e.parentNode.removeChild(e)},300))}}},{key:"createPopover",value:function(e){var t=this,n=Ue(wn)[0];return n||((n=document.createElement("div")).className=wn,n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby","iub-popover-title"),n.setAttribute("aria-describedby","iub-popover-content"),n.innerHTML=['
','

[POPOVER TITLE]

','","
",'
','
[POPOVER CONTENT]
',"
"].join(""),lt(n,"click",function(e){return t.onPopoverClick(e)}),e.appendChild(n),n)}},{key:"onPopoverClick",value:function(e){ot(e.target,xn)&&this.close()}},{key:"listen",value:function(e){var t=this;lt(e,"click",function(e){t.onClick(e)})}},{key:"isOpen",value:function(){return!!Ue(_n)[0]}}])}(),On=0,In=1,Bn=2,Ln=function(){return o(function e(t){n(this,e),this.options=t,this.isActive=this.setActive();var i=vn(t.lang,t.uiVersion);this.link=i.brandLink,this.linkTitle=i.brandLinkTitle},[{key:"setActive",value:function(){var e=this.options.cookieSolutionWhiteLabeling;return!(!this.options.banner.theme&&!1===e)&&(this.options.optOutBranding?!this.options.userDefinedConfig.whitelabel||e===On:!(e>=In)&&!!ge.isDefault(this.options))}},{key:"getBadgeButtonScreenReaderSpan",value:function(){return'('.concat(gn("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 this.options.cookieSolutionWhiteLabeling===On||!1===this.options.cookieSolutionWhiteLabeling?(t="outside",n=this.getBadgeButton()):n=this.getBadgeText(),{position:t,element:e?n.outerHTML:n}}}])}(),Dn=["value"],En=function(){return o(function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(this,e);var r=o.value,a=h(o,Dn);this.options=d({disabled:!1},a),this.label=t,this.callback=i,this.value=r||!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,Le(n.value))}),this.content.appendChild(t);var n=document.createElement("label");n.setAttribute("for",this.toggleId);var i=document.createElement("span");i.innerHTML=this.label,n.appendChild(i),this.content.appendChild(n)}},{key:"getNode",value:function(){return this.content}}])}(),Tn="bannerAcceptClicked",Fn={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"]},Nn=function(){return o(function e(t,i,o){n(this,e),this.cookiePolicyHref=o,this.banner=null,this.cs=t,this.popover=new An(this.cs),this.bannerShown=!1,this.hasTheUserScrolledToBottom=!1,this.numberOfPages=1,this.singlePageHeight=0,this.setupEvents(i)},[{key:"shown",get:function(){return this.bannerShown}},{key:"setupEvents",value:function(e){var t=this;e.on("banner-shown",function(){t.cs.fireCallback("onBannerShown"),t.cs.options.banner.backgroundOverlay&&e.disablePageScrolling("banner")}),e.on("banner-click",function(e){setTimeout(function(){t.bannerClicked(e)},0)})}},{key:"bannerSetup",value:function(){var e,t,n=this,i=this.cs.options,o=tn[i.lang].banner,r="",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&&(un(),i.banner.zIndex&&ht(this.banner,"z-index:"+i.banner.zIndex+" !important;"),i.banner.backgroundColor&&(r+="background-color: "+i.banner.backgroundColor+" !important;"),i.banner.textColor&&(r+="color: "+i.banner.textColor+" !important;"),i.banner.fontSize?r+="font-size: "+i.banner.fontSize+" !important;":i.banner.fontSizeBody&&(r+="font-size: "+i.banner.fontSizeBody+" !important;")),i.banner.backgroundColor&&"#000"===i.banner.backgroundColor&&this.banner.classList.add("iubenda-cs-black");var c=Fn[i.banner.position];c||(c=Fn.top);for(var l=0,u=c.length;l'+o.title+"");var g=(i.banner.closeButtonDisplay||i.banner.continueWithoutAcceptingButtonDisplay)&&!i.banner.logo,m=i.banner.logo,v='iubenda-cs-small-margin-top"';g?v="":m&&(v="iubenda-cs-no-margin-top"),d=b+'
').concat(f,"
")}var y=i.banner.cookiePolicyLinkCaption||o.cookie_policy_caption,k=i.cookiePolicyInOtherWindow?"":' role="button"',C="').concat(y,""),w="",P="",S=i.cookiePolicyInOtherWindow?' aria-label="'.concat(o.privacy_policy_caption," - ").concat(o.link_label_new_tab,'"'):"",x=i.cookiePolicyInOtherWindow?"":' role="button"',_="').concat(o.privacy_policy_caption,""),A="";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}",C)).replace("%{advertising_preferences_link}",w)).replace("%{vendor_list_link}",P)).replace("%{privacy_policy}",_)).replace("%{do_not_sell}",A)).replace("%{purposes}",function(){var e;return Vn(i,null===(e=n.cs.preferenceState.purposes)||void 0===e?void 0:e.data)});var O=i.banner.html,I="";if(i.banner.logo&&(I='
'+i.banner.logoAltText+'
',nt(this.banner,"iubenda-cs-branded")),!i.banner.continueWithoutAcceptingButtonDisplay&&i.banner.closeButtonDisplay&&nt(this.banner,"iubenda-cs-padded"),null===O){var B=new Ln(i).getBadge(!0),L=B?" iubenda-cs-themed":"";this.banner.innerHTML='
'+I+function(e){if(e.banner.continueWithoutAcceptingButtonDisplay)return'").concat(e.banner.continueWithoutAcceptingButtonCaption,"");var t=st({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"";var n=e.banner.customizeButtonCaption||Re(t.customize_button_caption,e);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"";var n=e.banner.rejectButtonCaption||t.reject_button_caption;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 r=n+o;if(!r)return"";var a=st({color:e.banner.backgroundColor});return'
"+r+"
"}(i,o)+("inside"===(null==B?void 0:B.position)?B.element:"")+"
"+("outside"===(null==B?void 0:B.position)?B.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=gn("footer.btnCaption")),i&&i.style.setProperty("display","none","important")}},r=e.preferenceState.getFullState();if(Object.keys(r.purposes).forEach(function(n){if(void 0===r.tcfv2||"5"!==n){i++;var s=r.purposes[n],c=gn("per_purpose.purposes.".concat(n,".name")),l=function(t,n){var i={purposes:a({},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 p=new En(c,l,u);t.appendChild(p.getNode())}}),void 0!==r.tcfv2){i++;var s=gn("per_purpose.purposes.5.name"),c=new En(s,function(t,i){var s=a({},t.id,i);r.purposes&&r.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!==O.indexOf("%{banner_content}")&&(O=O.replace("%{banner_content}",d)),this.banner.innerHTML=O;if(h){var D=Ue("iubenda-banner-content",this.banner)[0];D&&nt(D,"iubenda-custom-content")}var E=!1,T=null,F=0,N="iubenda-cs-fix-height",R=function(){if(n.banner){var e=window.innerHeight;E&&e>F&&(n.banner.classList.remove(N),T.style.removeProperty("height"),E=!1);var t=T.clientHeight,o=T.querySelector(".iubenda-cs-brand-badge"),r=0;if(o){var a=getComputedStyle(o);t+=r=o.offsetHeight+parseInt(a.marginTop,10)+parseInt(a.marginBottom,10)}F=e,t>=e&&!E?(n.banner.classList.add(N),r&&(T.style.setProperty("height","calc(100% - ".concat(r,"px)"),"important"),T.style.setProperty("position","fixed","important"),T.style.setProperty("top","0","important")),E=!0):t-1}},{key:"createLegacyDynamicBannerText",value:function(e){var t=e.dynamic,n=this.cs.options.banner.applyStyles,i=t.paragraph_1?Re(t.paragraph_1,this.cs.options):"",o=t.paragraph_2?Re(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 Rn(i,n)+Rn(o,n)}},{key:"createDynamicBannerText",value:function(e){var t=e.dynamic,n=this.cs.options.banner.applyStyles;return Rn(Re(t.body,this.cs.options),n)}},{key:"getBanner",value:function(){return this.cs.options.useUIModule?document.querySelector("tb-banner-wrapper"):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=gn("banner.page_counter_caption")+" "+t+"/"+e}},{key:"updateHasTheUserScrolledToBottom",value:function(){this.isBannerScrolledToBottom()&&(this.hasTheUserScrolledToBottom=!0)}},{key:"removeBanner",value:function(){var e;(this.cs.emit("bannerClose"),this.banner)&&(this.cs.debug("closing banner ..."),Vt&&(Vt=!1,ut(document.body,"focusin",Gt),ut(window,"keydown",qt),ut(document,"mouseup",Yt),ut(document,"mousedown",Kt)),Rt=null,qe((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 Rn(e,t){return e?e.split("\n").map(function(e){return t?'

'+e+"

":e}).join(t?"":"
"):""}function Vn(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]=rn(t,e)}),jn(e.lang,i)}function jn(e,t){var n=Object.keys(t),i=Object.values(t),o=gn("banner.dynamic.and");return"es"===e&&(o=function(e){var t=gn("per_purpose.purposes."+e[e.length-1]+".bannerName");return"i"===t[0]?"e":"y"}(n)),Ne(function(e){return e.map(function(e){return e?(t=e,n=gn("banner.dynamic.startQuote"),i=gn("banner.dynamic.endQuote"),o=gn(t),/.+\s.+/.test(o)?n+o+i:o):"";var t,n,i,o})}(i).join("[or] "),o)}function Mn(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="banner.close_button_label",i=gn(n),o=(null===(e=t.banner)||void 0===e?void 0:e.continueWithoutAcceptingButtonCaption)||"";return i===n||i===o?"":(o=o.replace(/(\s)+?(→|→)/,""),'aria-label="'.concat(o?o+" - ":"").concat(i,'"'))}function Un(e){e.addEventListener("mouseenter",function(){e.classList.add("hover")}),e.addEventListener("mouseleave",function(){e.classList.remove("hover")})}function zn(e){e.addEventListener("focus",function(){e.classList.add("focus")}),e.addEventListener("blur",function(){e.classList.remove("focus")})}var Wn=["top-left","top-right","bottom-left","bottom-right","center-left","center-right"],Gn=[].concat(Wn,["inline-center","inline-left","inline-right"]),Hn="bottom-right",qn="inline-center",Kn=function(e){function i(e,o){var r,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return n(this,i),(r=t(this,i)).link=e,r.child=document.createElement("a"),a&&(r.child.href=r.link),r.child.className="iubenda-tp-alert-btn iubenda-tp-btn--warning",r.child.setAttribute("target","_blank"),r.child.setAttribute("data-tp-icon",a?"data-tp-icon":"generic"),r.child.setAttribute("data-tp-float",r.getPosition(o)),s&&r.child.addEventListener("click",s),r.content=document.createElement("div"),r.render(),r}return l(i,e),o(i,[{key:"render",value:function(){this.content.className="iubenda-tp-btn-container",this.content.style.position="relative",this.content.appendChild(this.child)}},{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!==Wn.indexOf(e)?e:Hn}}])}()),Yn=function(e,t,n){var i="?",o=e;/\?.+/.test(e)?i="&":o=o.replace("?","");var r=o.split("#"),a="";return r[1]&&(a="#"+r[1]),o.split("#")[0]+i+t+"="+n+a},Jn=function(e,t,n){return e+(-1!==e.indexOf("?")?"&":"?")+t+"="+n},Xn=function(e){return/\#[^\?]+/.test(e)};function $n(e,t,n,i){var o=i,r=n;"function"==typeof r&&(o=r,r={}),o=o||function(){};var a,s=((r=r||{}).method||"GET").toUpperCase(),c=!1!==r.async,l=r.xhr||new XMLHttpRequest,u=r.headers||{};"GET"!==s&&"form"!==r.type||(a=function(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")}(t));var p,d=e;return"GET"===s&&(d+=a.length?"?"+a:""),l.open(s,d,c),l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status||304===l.status){var e=(l.getResponseHeader("Content-Type")||"").match(/^application\/json\s*(;|$)/);o(null,e?JSON.parse(l.responseText||""):l.responseText)}else o(l)},"GET"!==s&&("json"===r.type?(l.setRequestHeader("Content-Type","application/json"),p=JSON.stringify(t)):"form"===r.type?(l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),p=a):p=""+t),Object.keys(u).forEach(function(e){l.setRequestHeader(e,u[e])}),l.send(p),l}var Zn=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(){Zn(e,t,n,i+1)})},Qn=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),r=i||{};if(r.maxCookieSize&&o.length>r.maxCookieSize)throw new Error("Unable to save cookie ".concat(t,": maxCookieSize ").concat(r.maxCookieSize," exeeded"));document.cookie=o}},{key:"getItem",value:function(e,t){for(var n=[],i=document.cookie.split(/\s*;\s*/),o=0;o=0;r--){var a=o&1<0&&void 0!==arguments[0]?arguments[0]:{},i=t.attributes,o=void 0===i?{}:i,r=t.tag,a=void 0===r?"div":r,s=t.className,c=void 0===s?"":s,l=t.id,u=void 0===l?"":l,p=t.screenReaderText,d=void 0===p?"":p,h=t.screenReaderElementTag,f=void 0===h?"span":h,b=t.text,g=void 0===b?"":b,m=t.html,v=void 0===m?"":m;n(this,e),this.el=document.createElement(null!=a?a:"div"),this.setAttributes(o),c&&(this.el.className=c),u&&(this.el.id=u),g&&(this.el.innerText=g),v&&(this.el.innerHTML=v),d&&this.createScreenReaderElement(d,f||"span",u)},[{key:"setAttributes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!==t&&"object"===v(t)&&Object.entries(t).forEach(function(t){var n=b(t,2),i=n[0],o=n[1];o&&e.el.setAttribute("".concat(i),"".concat(o))})}},{key:"createScreenReaderElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.el.id;return this.screenReaderElement=document.createElement(t),"label"===t&&n&&this.screenReaderElement.setAttribute("for",n),this.screenReaderElement.className="iub-sr-only",this.screenReaderElement.innerText=e,this.screenReaderElement=this.el.appendChild(this.screenReaderElement),this.screenReaderElement}},{key:"node",get:function(){return this.el}},{key:"mount",value:function(e){"before"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).insertPoint?e.insertBefore(this.el,e.firstChild):e.appendChild(this.el)}},{key:"unmount",value:function(){try{this.el.parentElement.removeChild(this.el)}catch(e){he.error(e)}}}])}();var si=function(e){function i(){var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.onClick,a=void 0===r?null:r,l=o.id,u=void 0===l?"":l,p=o.text,h=void 0===p?"":p,f=o.html,b=void 0===f?"":f,g=o.tabindex,m=void 0===g?0:g,v=o.useBaseClass,y=void 0===v||v,k=o.title,C=void 0===k?"":k,w=o.type,P=void 0===w?"button":w,S=o.href,x=void 0===S?"":S,_=o.screenReaderText,A=void 0===_?"":_,O=o.screenReaderElementTag,I=void 0===O?"":O;n(this,i),e=t(this,i,[d(d({},arguments[0]),{},{tag:P,screenReaderText:A,screenReaderElementTag:I,id:u,text:h,html:b})]);var B,L,D,E,T,F,N={tabindex:m};return"a"!==P||x||(N.role="button"),(B=i,L="setAttributes",D=e,T=s(c(1&(E=3)?B.prototype:B),L,D),2&E&&"function"==typeof T?function(e){return T.apply(D,e)}:T)([N]),"button"===N.role&&((F=e.el).addEventListener("keydown",function(e){" "!==e.key&&"Space"!==e.code||e.preventDefault()}),F.addEventListener("keyup",function(e){" "!==e.key&&"Space"!==e.code||(e.preventDefault(),F.click())})),a&&"function"==typeof a&&e.el.addEventListener("click",a),C&&e.el.setAttribute("title",C),x&&e.el.setAttribute("href",x),y&&(e.el.className="iubenda-base-btn ".concat(e.el.className)),e}return l(i,e),o(i,[{key:"mount",value:function(e){"function"==typeof this.onClick&&this.el.addEventListener("click",this.onClick,!1),e.appendChild(this.el)}},{key:"unmount",value:function(){"function"==typeof this.onClick&&this.el.removeEventListener("click",this.onClick);try{this.el.parentElement.removeChild(this.el)}catch(e){he.error(e)}}},{key:"getRootNode",value:function(){return this.el}}])}(ai),ci=function(e){function i(){var e,o=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).label,r=void 0===o?"":o;n(this,i);var a="iubenda-floatable-default-btn";if(e=t(this,i,[d(d({},arguments[0]),{},{className:r?"".concat(a," iubenda-floatable-btn-with-label"):a})]),r){var s=document.createElement("span");s.innerText=r,e.el.appendChild(s)}return e}return l(i,e),o(i)}(si),li=function(e){function i(){var e;return n(this,i),(e=t(this,i,[d(d({},arguments[0]),{},{html:''})])).el.classList.add("iubenda-tp-btn","iubenda-cs-preferences-link","iubenda-floatable-tb-btn"),e}return l(i,e),o(i)}(ci),ui={ITEM_ADDED:"floatable.item_added",STYLE_ADDED:"floatable.style_added",ATTRIBUTE_ADDED:"floatable.attribute_added",OPERATION_ADDED:"floatable.operation_added"},pi="floatable-wrapper",di=0,hi=1,fi=2;function bi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return"item"===e[di]})}function gi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){var t,n;return void 0!==(null===(t=e[fi])||void 0===t?void 0:t.priority)&&null!==(null===(n=e[fi])||void 0===n?void 0:n.priority)})}function mi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){var t,n;return void 0===(null===(t=e[fi])||void 0===t?void 0:t.priority)||null===(null===(n=e[fi])||void 0===n?void 0:n.priority)})}function vi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).sort(function(e,t){return e[fi].priority0&&void 0!==arguments[0]?arguments[0]:[];return[].concat(g(vi(gi(e))),g(mi(e)))}function ki(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[].concat(g(mi(e)),g(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).sort(function(e,t){return e[fi].priority<=t[fi].priority?1:-1})}(gi(e))))}function Ci(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=function(){var e=document.querySelector(".".concat(pi));return e||((e=document.createElement("div")).className=pi),e}();t.innerHTML="",e.forEach(function(e){var n=e[hi],i=e[fi]||{},o=function(e){if(e instanceof HTMLElement)return e;var t=document.createElement("div");return"string"==typeof e?(t.innerText=e,t):t}(n);t.appendChild(o),"function"==typeof(null==i?void 0:i.onMount)&&i.onMount(o)}),document.querySelector(".".concat(pi))||document.body.appendChild(t)}function wi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=document.querySelector(".".concat(pi));t&&e.forEach(function(e){!function(e,t){if(!e)return;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n])}(t,e)})}function Pi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=document.querySelector(".".concat(pi));t&&e.forEach(function(e){Object.entries(e).forEach(function(e){var n=b(e,2),i=n[0],o=n[1];"class"===e[di]?function(e,t){if(!e)return;if("string"==typeof t)return void e.classList.add(t);if(Array.isArray(t))return void t.forEach(function(t){e.classList.add(t)});if(t.split(" ").length>1)t.split(" ").forEach(function(t){e.classList.add(t)})}(t,o):function(e,t,n){if(!e)return;e.removeAttribute(t),e.setAttribute(t,n)}(t,i,o)})})}var Si=function(){return o(function e(){n(this,e),this.listenersMap={}},[{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){this.addListener(e,t)}},{key:"once",value:function(e,t){this.addListener(e,t,!0)}},{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)}},{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)}}}])}(),xi=new Si;function _i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!Array.isArray(e))throw new TypeError("Expected array for operations");var t=e;!function(e){if("floatableWatcher"in e)return void console.warn("floatableWatcher is already defined");Object.defineProperty(e,"floatableWatcher",{configurable:!1,enumerable:!1,writable:!1,value:function(){return!0}})}(t);var n=function(e){Ai(ui.OPERATION_ADDED,{ops:t,added:e});var n=e[di],i={ops:t,added:e};switch(n){case"item":Ai(ui.ITEM_ADDED,i);break;case"style":Ai(ui.STYLE_ADDED,i);break;case"attribute":Ai(ui.ATTRIBUTE_ADDED,i)}};return t.hasOwnProperty("push")||Object.defineProperty(t,"push",{configurable:!0,enumerable:!1,writable:!0,value:function(){var e=Array.prototype.push.apply(this,[arguments[0]]);return[arguments[0]].forEach(function(e){return n(e)}),e}}),t}function Ai(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};xi.emit(e,{detail:t})}(e,t),function(e){var t={detail:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bubbles:!1,cancelable:!1};try{document.dispatchEvent(new CustomEvent(e,t))}catch(t){console.warn("Failed to dispatch public event ".concat(e),t)}}(e,t)}var Oi="0.0.8",Ii=null;function Bi(){if(window._iub=window._iub||[],window._iub.floatableLayer=window._iub.floatableLayer||[],null!==Ii)return Ii;try{e=window._iub.floatableLayer,(t={version:Oi,FloatableEvent:ui}).init=function(){xi.on(ui.OPERATION_ADDED,function(e){Li(e.detail.ops)}),t.ops=_i(e),Li(t.ops)},(Ii=t).init()}catch(e){console.error("Error initializing Floatable:",e)}var e,t;return Ii}function Li(e){var t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return"item"===e[di]}).map(function(e){return e[hi]})}(yi(bi(e))),n=yi(bi(e)),i=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return"style"===e[di]}).map(function(e){return e[hi]})}(ki(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return"style"===e[di]})}(e))),o=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return"attribute"===e[di]}).map(function(e){return e[hi]})}(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[].concat(g(vi(gi(e))),g(mi(e)))}(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return"attribute"===e[di]})}(e)));t.length>0&&(Ci(n),Pi(o),wi(i))}var Di=!1,Ei=new be,Ti="rejectButtonClick",Fi="bannerXClose";function Ni(){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,Fi),this.banner.removeBanner()}function Ri(){this.cs.rejectAll(Ti),this.consentRejected=!0,this.banner.removeBanner()}var Vi=function(){function e(t){n(this,e),Dt(this),this.cs=t,this.defaultBranding=ge.isDefault(this.cs.options),this.document=document,this.mainC=null,this.overlay=null,this.CPiFrame=null,this.isMobile=Ei.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 An(this.cs);var i=this.getCookiePolicyHref();this.banner=new Nn(t,this,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;Ue("iubenda-cs-cookie-policy-lnk").forEach(function(t){lt(t,"click",function(t){e.bannerCookiePolicyClicked({event:t,isCookiePolicyLink:!0})},!0)})}},{key:"bindCloseBannerBtns",value:function(){var e=this,t=Ue("iubenda-cs-close-btn"),n=Ue("iubenda-cs-cwa-button");t.concat(n).forEach(function(t){lt(t,"click",function(t){setTimeout(function(){e.bannerCloseBtnClicked(t)},0)},!0)})}},{key:"bindOpenCmpBtns",value:function(e){for(var t=Ue("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 r=this.checkCPAnotherWindow(i);setTimeout(function(){e.showCP(r,!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",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(!an){var e=document.getElementsByTagName("head")[0];pt('#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),an=!0}}(),document.getElementsByTagName("body")[0].appendChild(e),this.disablePageScrolling("iframe",document),this.hideFloatingPreferencesButton()}},{key:"showCP",value:function(t,n,i,o,r){var a=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=He("https://cdn.iubenda.com/cookie_solution/iubenda_cs/1.92.0/second_layer-".concat(this.cs.options.lang,".js")),this.secondLayerScript.setAttribute("charset","UTF-8"),document.getElementsByTagName("head")[0].appendChild(this.secondLayerScript));var c=this.createFrameLoadingElements(),l=c.mainC,u=c.spinner;this.showFrameLoading(l),this.cs.setCpOpen(!0);var p=function(){a.secondLayerScriptLoaded=!0,a.showCPLayer2(window._iub.IubendaFrame,s,n,i,o,r,l,u)};this.secondLayerScriptLoaded?p():this.secondLayerScript.onload=p}}},{key:"applyAriaLabel",value:function(e){var t=null;switch(e){case"cookie-policy":t=gn("modal.cookie_policy","");break;case"privacy-policy":t=gn("modal.privacy_policy","");break;case"tcf":var n=document.querySelector("#iubenda-iframe .iub-cmp-header h2");t=(null==n?void 0:n.innerText)||"";break;default:var i=document.querySelector("#iubenda-iframe .purposes-header-title");t=(null==i?void 0:i.innerText)||""}var o=document.getElementById("iubenda-iframe-popup");null==o||o.setAttribute("aria-label",t)}},{key:"showCPLayer2",value:function(e,t,n,i,o,r,a,s){var c=this,l=null,u=gn("banner.cookie_policy_caption");o&&(u=gn("banner.privacy_policy_caption")),o||(l={message:"string"==typeof this.cs.options.footer.message?this.cs.options.footer.message:tn[this.cs.options.lang].footer.message,btnCaption:"string"==typeof this.cs.options.footer.btnCaption?this.cs.options.footer.btnCaption:tn[this.cs.options.lang].footer.btnCaption});var p,d=this.getSavedPreferences();switch(this.cs.options.enableTcf&&this.createCmp(d.cmpCookie,d.customPreferences),(this.cs.options.perPurposeConsent||this.cs.options.usprApplies)&&this.mustShowPerPurposeView?(this.mustShowPerPurposeView=!1,p=this.WIDGET_PER_PURPOSE):this.cs.options.enableTcf&&this.cs.options.gdprApplies&&(this.mustShowTCFView||n)?(this.mustShowTCFView=!1,p=this.WIDGET_TCF):p=this.WIDGET_POLICY,p===this.WIDGET_PER_PURPOSE&&(this.cs.preferenceState.saveState(),this.cs.preferenceState.usPurposes.isActive&&this.cs.preferenceState.usPurposes.savePreferenceState()),p!==this.WIDGET_POLICY&&this.cs.updateGppApi(!0,!1,"initial"),pn(this.cs.options),this.CPiFrame=new e({cs:this.cs,iFrUrl:t,inParent:!1,straightShow:!0,closeBtnUrl:this.iFrameCloseBtnUrl,mainC:a,spinner:s,embedP:document.getElementsByTagName("body")[0],disableESC:!0,baseZIndex:this.cs.options.banner.zIndex+1,scrolling:null!=this.cs.options.cookiePolicyUrl,showCcpa:o,footer:l,widgetToShow:p,frameTitle:u,lang:this.cs.options.lang,uiVersion:this.cs.options.uiVersion,onLoad:function(){var e;c.cs.preferenceState.saveState(),p===c.WIDGET_PER_PURPOSE&&c.preSelectPurposes(r),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=p;"policy"===p&&(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:Ti})},onBack:function(){c.cs.options.banner.showPurposesToggles||c.cs.preferenceState.recoveryState(),c.banner.isVisible()||c.cs.updateGppApi(!1,!1,"processed"),c.cookiePolicyClosed({eventName:"backButtonClick"})}},this.cmpWidget),p){case this.WIDGET_PER_PURPOSE:this.CPiFrame.showPerPurposeWidget();break;case this.WIDGET_TCF:this.CPiFrame.showTCFWidget(i);break;default:this.CPiFrame.showPolicy()}}},{key:"scrollWidgetToPurpose",value:function(e,t){var n,i,o,r=this.CPiFrame.mainC.querySelector(".purposes-content"),a=this.CPiFrame.mainC.querySelector(".iub-consent-buttons.purposes-buttons"),s=r.querySelector(".purposes-header"),c=this.CPiFrame.mainC.querySelector("*[class*='purpose-item-".concat(e,"'], *[class*='purposes-item-").concat(e,"']"));r&&c&&a&&s&&(n=r.scrollTop,i=c.offsetTop-a.clientHeight-s.offsetTop-n,o=Date.now(),0===i?t():requestAnimationFrame(function e(){var a=Math.min((Date.now()-o)/250,1);r.scrollTop=n+i*a,1===a?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=gn("ccpa.opt_out_prompt");var o=document.createElement("div");o.className="iubenda-alert-dialog-buttons";var r=function(n){Jt(),"confirm"==n&&e.cs.preferences.storage.usPrivacy.optOutCcpa(),document.body.removeChild(t),e.cs.state.ccpaOptOutConfirmationOpen=!1},a=document.createElement("button");a.className="iubenda-button-cancel",a.innerText=gn("ccpa.opt_out_cancel"),a.addEventListener("click",function(){return r("cancel")});var s=document.createElement("button");s.className="iubenda-button-confirm",s.innerText=gn("ccpa.opt_out_confirm"),s.addEventListener("click",function(){return r("confirm")}),t.appendChild(n),n.appendChild(i),n.appendChild(o),o.appendChild(a),o.appendChild(s),document.body.appendChild(t),Jt("#".concat(t.id))}}},{key:"checkUsprFloatingPreferences",value:function(){if(this.cs.options.usprApplies){var e=["#iubenda-cs-banner","#iubenda-iframe"],t=je(".iubenda-cs-preferences-link",e),n=je(".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:"createPreferencesWidgetsClassic",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:Gn,defaultPosition:qn}),o=i.position,r=i.isAnchored,a=this.createUsprPreferenceWidget(this.cs.options.usprPreferenceWidget,o),s=a.widget,c=a.container;n.push({widget:s,container:c,isAnchored:r})}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:Wn,defaultPosition:Hn}),p=u.position,d=u.isAnchored,h=e.createGdprPreferenceWidget(this.cs.options,p);n.push({widget:h,container:h,isAnchored:d})}if(0===n.length)return n;!0===this.cs.options.banner.applyStyles&&un();for(var f=0,b=n;f').concat(gn("uspr.preference_widget.notice_caption"),"\n ")),e.preference&&(i+='\n '.concat(gn("uspr.preference_widget.preference_caption"),"\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(gn("uspr.preference_widget.preference_caption"),"\n \n ")}e.uspr&&(i+='\n ').concat(gn("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)this.cs.options.floatingGroup?e.style.setProperty("display","flex","important"):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;et(function(){var t,n=r(e.createPreferencesWidgets());try{for(n.s();!(t=n.n()).done;){var i=t.value;Cn(i,e)}}catch(e){n.e(e)}finally{n.f()}},!0)}},{key:"generateWarningButton",value:function(e,t){var n=this,i=new Kn(e,t,this.defaultBranding,function(){return n.cs.fireCallback("onWarningButtonClick")});document.body.appendChild(i.getNode()),i.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 Ti:this.consentRejected=!0;break;case"bannerAcceptClicked":case Fi: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(),r=this.cs.checkConsentGiven(e),a=d(d({consent:r,ccpa:r},o),t);return this.cs.preferenceState.usPurposes.isActive&&(a.uspr=this.cs.preferenceState.usPurposes.getPreferences()),a}},{key:"cookiePolicyClosed",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).eventName||"cookiePolicyClosed";if(this.cs.debug("cookie policy closed"),this.showingCookiePolicy=!1,"backButtonClick"!==e&&this.CPiFrame.closureTriggeredByFooterButton){this.registerEvent(e);var t=this.getPreferenceObject(e);this.cs.preferences.store(t,e,!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(Ni.bind(this),e)}},{key:"onRejectButtonClick",value:function(e){this.cs.debug("banner Reject clicked"),this.banner.scrollBannerIfNeeded(Ri.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:"createFloatable",value:function(){this.cs.options.floatingGroup&&(window._iub.floatableLayer=window._iub.floatableLayer||[],Bi(),function(){if(!Di){var e=document.getElementsByTagName("head")[0];pt(':root{--iub-floating-height:38px;--iub-floating-width:38px;--iub-floating-padding:0 0 0 38px;--iub-floating-background-color:#1CC691;--iub-floating-border:1.14px solid rgba(0, 0, 0, .24);--iub-floating-gap:0;--iub-default-unit:5px;--iub-floating-z-index-base:9995}.floatable-wrapper:not(.iub-floatable-wrapper-aw-2025){position:fixed;bottom:16px;left:66px;z-index:2147483647}.floatable-wrapper:not(.iub-floatable-wrapper-aw-2025) .floatable-bottom-left{position:fixed;bottom:16px;left:66px;right:unset;top:unset}.floatable-wrapper:not(.iub-floatable-wrapper-aw-2025) .floatable-bottom-right{position:fixed;bottom:16px;right:66px;left:unset;top:unset}.floatable-wrapper:not(.iub-floatable-wrapper-aw-2025) .floatable-top-left{position:fixed;top:16px;left:66px;right:unset;bottom:unset}.floatable-wrapper:not(.iub-floatable-wrapper-aw-2025) .floatable-top-right{position:fixed;top:16px;right:66px;left:unset;bottom:unset}.floatable-wrapper.iub-floatable-wrapper-2025{display:flex!important;width:-moz-fit-content!important;width:fit-content!important;position:fixed!important;margin:16px!important;left:unset!important}.floatable-wrapper.iub-floatable-wrapper-2025 .iub-accessibility-btn{width:var(--iub-floating-width)!important;height:var(--iub-floating-height)!important}.floatable-wrapper.iub-floatable-wrapper-2025 .iub-accessibility-btn svg{display:none!important}.floatable-wrapper.iub-floatable-wrapper-2025 .iub-accessibility-btn{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2217%22%20height%3D%2217%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23333%22%20stroke%3D%22%23333%22%20stroke-width%3D%22.211%22%20d%3D%22M2.534%205.195a1.006%201.006%200%200%201%201.18-.576l.634.163c1.46.364%202.81.613%204.51.613%201.937%200%203.42-.325%205.13-.773l.098-.02c.492-.08.979.214%201.129.7l.023.094c.09.44-.122.89-.524%201.092l-.09.04c-.75.288-1.51.556-2.278.816l-.771.257a.84.84%200%200%200-.566.948l1.297%207.09.014.1c.04.462-.236.898-.668%201.066l-.096.032a1.054%201.054%200%200%201-1.272-.639l-.032-.104-1.106-4.265a.299.299%200%200%200-.561-.048l-.017.048-1.105%204.265c-.139.534-.669.86-1.2.766l-.105-.023a1.053%201.053%200%200%201-.75-1.197L6.71%208.524l.013-.15a.827.827%200%200%200-.418-.72l-.137-.062c-.787-.27-1.564-.527-2.332-.806l-.766-.288a.978.978%200%200%201-.57-1.209l.034-.094Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20stroke%3D%22%23333%22%20stroke-width%3D%22.211%22%20d%3D%22M8.63.908c.318-.039.64.005.937.128l.125.057a1.857%201.857%200%200%201%201.02%201.657l-.01.184a1.857%201.857%200%200%201-1.661%201.662l-.184.01c-.321%200-.636-.084-.914-.242l-.116-.071a1.858%201.858%200%200%201-.627-.708l-.057-.125a1.856%201.856%200%200%201-.105-1.072l.031-.133c.085-.308.25-.59.477-.817l.1-.093c.242-.209.534-.352.849-.414L8.63.908Z%22%2F%3E%3C%2Fsvg%3E")!important;background-repeat:no-repeat!important;background-position:center!important;box-shadow:0 0 0 1px rgba(0,0,0,.15)}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=bottom-left]{left:0!important;bottom:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=bottom-right]{flex-direction:row-reverse!important;right:0!important;bottom:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=center-left]{flex-direction:column!important;top:unset!important;bottom:unset!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=top-left]{flex-direction:column!important;left:0!important;top:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=top-right]{flex-direction:column!important;right:0!important;top:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=center-right]{flex-direction:column!important;top:unset!important;bottom:unset!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=center-left] .iub-accessibility-btn,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=center-left] .iubenda-tp-btn{left:0!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;border-left:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=center-right] .iub-accessibility-btn,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=center-right] .iubenda-tp-btn{right:0!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-left]{display:flex!important;flex-direction:row!important;left:0!important;transform-origin:left bottom!important;transform:translateY(-15vh) rotate(90deg)!important;top:25%!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-right]{display:flex!important;flex-direction:row!important;right:0!important;transform:translateY(-100%) rotate(90deg)!important;transform-origin:right bottom!important;transform:translateY(-55vh) translateX(0) rotate(-90deg)!important;bottom:25%!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float^=top-]::after{border-top-left-radius:0!important;border-top-right-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float^=top-]{margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important;bottom:unset}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float^=top-] a,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float^=top-] button,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float^=top-] div{border-top-left-radius:0!important;border-top-right-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float^=bottom-]::after{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float^=bottom-]{margin-bottom:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;top:unset}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float^=bottom-] a,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float^=bottom-] button,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float^=bottom-] div{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-top-left-radius:var(--iub-default-unit)!important;border-top-right-radius:var(--iub-default-unit)!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-left]::after{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-left]{margin-left:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-left] a,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-left] button,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-left] div{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-right]::after{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-right]{margin-right:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-right] a,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-right] button,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=center-right] div{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-top-right-radius:var(--iub-default-unit)!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored] .iubenda-tp-btn,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=top-left] .iub-accessibility-btn{left:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important;border-top:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=top-right] .iub-accessibility-btn,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=top-right] .iubenda-tp-btn{border-top-left-radius:0!important;border-top-right-radius:0!important;border-top:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=bottom-left] .iub-accessibility-btn,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=bottom-left] .iubenda-tp-btn{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-bottom:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=bottom-right] .iub-accessibility-btn,.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-anchored][data-tp-float=bottom-right] .iubenda-tp-btn{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-bottom:0!important}.floatable-wrapper.iub-floatable-wrapper-2025:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border:var(--iub-floating-border)!important;border-radius:var(--iub-default-unit)!important;box-sizing:border-box!important;z-index:2147483647!important;background-color:transparent!important;pointer-events:none!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=top-right]{flex-direction:row!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=bottom-right]{flex-direction:row!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=top-left]{flex-direction:row!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float=bottom-left]{flex-direction:row!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float]{padding:var(--iub-floating-padding);height:var(--iub-floating-height);background-color:var(--iub-floating-background-color);gap:var(--iub-floating-gap)!important;border-radius:var(--iub-default-unit)!important;z-index:2147483647;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2222%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M4.783.714c2.486%200%204.5%202.034%204.5%204.544%200%201.118-.4%202.142-1.064%202.934l.956%2013.094H.63L1.556%208.42A4.54%204.54%200%200%201%20.283%205.258c0-2.51%202.014-4.544%204.5-4.544Zm-.626%2011.06v5.908h1.481v-7.435l-1.481%201.527Zm.626-7.69c-.597%200-1.082.495-1.082%201.105s.485%201.103%201.082%201.103c.598%200%201.083-.493%201.083-1.103s-.485-1.105-1.083-1.105Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:14px}.floatable-wrapper.iub-floatable-wrapper-2025.floatable-wrapper-unbranded[data-tp-float]{background-image:none!important;background-color:transparent!important;padding:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float*=-right]:has(> :last-child:nth-child(2))>:first-child{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:1px solid rgba(0,0,0,.1)!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float*=-right]:has(> :last-child:nth-child(2))>:first-child button{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:1px solid rgba(0,0,0,.1)!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float*=-right]:has(> :last-child:nth-child(2))>:last-child{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float*=-right]:has(> :last-child:nth-child(2))>:last-child button{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float*=-left]:has(> :last-child:nth-child(2))>:last-child{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float*=-left]:has(> :last-child:nth-child(2))>:last-child button{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float*=-left]:has(> :last-child:nth-child(2))>:first-child{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:1px solid rgba(0,0,0,.1)!important}.floatable-wrapper.iub-floatable-wrapper-2025[data-tp-float*=-left]:has(> :last-child:nth-child(2))>:first-child button{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:1px solid rgba(0,0,0,.1)!important}.floatable-wrapper .iubenda-floatable-default-btn{padding:0!important;width:var(--iub-floating-width)!important;height:var(--iub-floating-height)!important;box-sizing:border-box!important;border:none!important;background-color:#fff!important;border-radius:var(--iub-default-unit)!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;z-index:calc(var(--iub-floating-z-index-base) + 1)!important;background-repeat:no-repeat!important;background-size:20px 20px!important}.floatable-wrapper .iubenda-floatable-aw-btn{box-shadow:0 0 2px rgba(0,0,0,.2)!important}.floatable-wrapper .iubenda-floatable-aw-btn:hover{box-shadow:0 0 3px rgba(0,0,0,.4)!important}.floatable-wrapper.iub-floatable-wrapper-2025 .iub-accessibility-btn,.floatable-wrapper.iub-floatable-wrapper-2025 .iubenda-floatable-aw-btn{box-shadow:none!important}.floatable-wrapper .iubenda-floatable-btn-with-label{width:auto!important;font-size:12px!important;padding:0 var(--iub-default-unit)!important;background-position:7px!important}.floatable-wrapper .iubenda-floatable-btn-with-label span{padding:0 var(--iub-default-unit)!important;color:#000!important;font-size:12px!important;font-weight:400!important;cursor:pointer!important}.iub-brand-container{position:absolute;left:var(--iub-default-unit);top:var(--iub-default-unit);z-index:-1}',e),Di=!0}}())}},{key:"floatable",value:function(){this.cs.options.floatingGroup&&window._iub.floatableLayer.push(arguments)}}],[{key:"prepare2ndLayerDeps",value:function(){_iub._2ndLayerDeps={dom:{domAddEventListener:lt,domRemoveClass:it,domHasClass:ot,domGetElementsByClassName:Ue,domAddClass:nt,domCreateEvent:rt,domRemove:qe,setStyle:ht,domText:ct,domCreate:Ge},i18n:{i18nForBanner:tn,updateI18nForBanner:nn,setSecondLayerI18n:on},brand_badge:{BrandBadge:Ln},browser_detect:{BrowserDetect:be},focus:{setFocusTrapActive:Jt},uri:{uriAddParamToUri:Yn,uriHasHash:Xn},ui_i18n:{csTranslate:gn,iubendaFrameLink:yn},logger:{logger:wt}}}},{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=gn("per_purpose.widget_title");var i=document.createElement("button");if(e.floatingGroup){var o={title:gn("per_purpose.widget_title"),attributes:{}};"string"==typeof e.floatingPreferencesButtonCaption?o.label=e.floatingPreferencesButtonCaption:!0===e.floatingPreferencesButtonCaption&&(o.label=gn("floating_preferences_button.caption")),(i=new li(o).node).style.setProperty("z-index",e.floatingPreferencesButtonZIndex,"important"),e.floatingPreferencesButtonHover&&i.setAttribute("data-tp-hover","data-tp-hover")}else{i.className="iubenda-tp-btn iubenda-cs-preferences-link",i.setAttribute("title",gn("per_purpose.widget_title"));var r,a=ge.isDefault(e);(e.floatingPreferencesButtonIcon||!e.floatingPreferencesButtonCaption||e.floatingPreferencesButtonHover)&&i.setAttribute("data-tp-icon",a?"data-tp-icon":"generic"),e.floatingPreferencesButtonHover&&i.setAttribute("data-tp-hover","data-tp-hover"),"string"==typeof e.floatingPreferencesButtonCaption?r=e.floatingPreferencesButtonCaption:!0===e.floatingPreferencesButtonCaption&&(r=gn("floating_preferences_button.caption")),r&&i.setAttribute("data-tp-label",r),i.style.setProperty("z-index",e.floatingPreferencesButtonZIndex,"important"),i.setAttribute("data-tp-float",t),i.appendChild(n)}return i}}])}();window._iub.setStyle=ht,window._iub.onLoadCall=function(e,t){e.onload=t};var ji,Mi,Ui,zi,Wi=["all"],Gi={s:!0,sh:!0,adv:!0,sd5:!1,sd8:!1,sd9:!1},Hi=["s","sh","adv"],qi=function(e){return e?e.filter(function(e){return void 0!==Gi[e.toString().trim()]}):[]},Ki=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(Hi),!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(Gi);return t&&(n=n.filter(function(e){return t.indexOf(e)>=0})),n}},{key:"setAllPurposesValue",value:function(e){var t=this;wt.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=Gi[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=h(e,Wi),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 C(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 qi(e)}}])}(),Yi=null!==(ji=null===(Mi=_iub.csConfiguration)||void 0===Mi?void 0:Mi.rebuildIframe)&&void 0!==ji?ji:Ct.rebuildIframe,Ji=null!==(Ui=null===(zi=_iub.csConfiguration)||void 0===zi?void 0:zi.inlineDelay)&&void 0!==Ui?Ui:Ct.inlineDelay,Xi=["_iub_cs_activate-inline","_iub_cs_activate","_iub_cs_activate_iframe","_iub_cs_activate_notused","_iub_cs_prompt"],$i="_iub_cs_activate-activated",Zi="_iub_cs_activate-overlay",Qi="data-iub-purposes",eo=document.write,to=document.writeln;function no(e,t){var n=t.addRef,i=t.removeRef,o=e.parentNode,r=e.nextSibling,a="",s=o,c=null,l=function(){var e=document.implementation.createHTMLDocument("");return e.open(),e.write(""),e}(),u=Je(l.body);u.reiterate(),u.next();var p=l.body;function d(e){var t=/(\<[\n\s]*\/[\n\s]*script[\n\s]*>)/gi,d=a+e,h=[];t.lastIndex=a.length;for(var f=t.lastIndex;t.exec(d);){var g=t.lastIndex;h.push({chunk:d.substring(f,g),lastNodeIsScript:!0}),f=g}var m=d.substring(f);m&&h.push({chunk:m,lastNodeIsScript:!1}),h.forEach(function(e){var t=e.chunk,d=e.lastNodeIsScript;a+=t,function(e,t){l.write(e),u.reiterate();var a=function(e){for(var t=e;t.childNodes.length;)t=t.childNodes[t.childNodes.length-1];return t}(l.body);if(c&&(c.nodeValue=p.nodeValue),a!==p||t)for(p=a;;){var d=b(u.next().value,2),h=d[0],f=d[1];if(f)if("enter"===h){var g=f.cloneNode(!1);g.nodeType===Node.ELEMENT_NODE&&Xe(g)&&$e(g);var m=s===o?r:null;if(s.insertBefore(g,m),g.nodeType===Node.ELEMENT_NODE&&(s=g),c=g.nodeType===Node.TEXT_NODE?g:null,!t&&f===a)break}else if(c=null,f.nodeType===Node.ELEMENT_NODE){if(Xe(s)){var v=s,y=document.createElement("script");Qe(y,Qe(v)),Ze(y),y.appendChild(document.createTextNode(v.innerHTML)),y.hasAttribute("src")&&(y.async=!1,y.addEventListener("load",function(){return i()}),y.addEventListener("error",function(){return i()}),n()),s=v.parentNode,v.parentNode.replaceChild(y,v);break}s=s.parentNode}}}(t,d)})}document.write=d,document.writeln=function(e){return d(e+"\n")}}function io(e){return e.getAttribute("data-suppressedsrc")||e.getAttribute("suppressedsrc")||e.getAttribute("src")}function oo(e,t){return e.getAttribute("data-suppressed"+t)||e.getAttribute("suppressed"+t)||e.getAttribute(t)}function ro(e,t){if(!e.src)return t(null,e);var n="readyState",i="onreadystatechange",o=e.onload,r=e.onerror,a=e[i];function s(s,l){if(e.onload=o,e.onerror=r,e[i]=a,e[s])try{e[s].apply(e,l)}catch(e){console.error(e)}!e[n]||/^c|loade/.test(e[n])?t(null,e):c()}function c(){e.onload=function(){for(var e=arguments.length,t=new Array(e),n=0;n\s*$/g,so=function(e){return new Error("Error on loading tag "+e.nodeName+" with id "+e.id+" and class "+e.className)},co=function(e,t){(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&e.removeEventListener("load",co),po(t,null,e)},lo=function(e,t){(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&e.removeEventListener("error",co);var n=so(e);"function"==typeof t&&t(n,e)},uo=function(e,t){e.removeAttribute("data-suppressed"+t),e.removeAttribute("suppressed"+t)},po=function(e,t,n){"function"==typeof e&&e(t,n)},ho=function(e,t){e.addEventListener("load",co.bind(null,e,t)),e.addEventListener("error",lo.bind(null,e,t)),e.setAttribute("href",oo(e,"href")),uo(e,"href"),nt(e,$i)},fo=function(e,t){var n=io(e),i=oo(e,"poster");i&&(e.setAttribute("poster",i),uo(e,"poster"));var o=function(){po(t,null,e),e.removeEventListener("loadedmetadata",o)},r=function(){po(t,so(e),e),e.removeEventListener("error",r)};n&&ko(e,t),e.querySelectorAll("source").forEach(function(e){ko(e)}),e.querySelectorAll("track").forEach(function(e){ko(e)}),e.addEventListener("loadedmetadata",o),e.addEventListener("error",r),e.load(),nt(e,$i)},bo=fo;function go(e,t){var n=io(e),i=e.text||e.textContent||e.innerHTML||"";i=i.replace(ao,"");var o=Qe(e);delete o["data-suppressedsrc"],delete o.suppressedsrc,delete o.type,delete o.src,o.async=!1;var r=Ge("div");Ye(e,r),qe(e);var a=function(e,t){var n=document.createElement("iframe");return e&&n.setAttribute("src",e),"string"==typeof t&&(n.text=t),n}(n,i);Qe(a,o),ro(a,t),nt(a,$i),Ke(r,a)}var mo=function(e,t,n){var i,o,r=function(){s+=1},a=function(){(s-=1)<=0&&(document.write=eo,document.writeln=to,o&&wt.error("Snippet activation failed",o,i||e),t&&t(!o&&i),t=c=e=null)},s=0;r(),no(e,{addRef:r,removeRef:a});var c=function(e){return!!e.className.match(/\b_iub_cs_activate-inline\b/)}(e)?Ji:0;n(function(e,t){setTimeout(function(){o=e,i=t,a()},c)})},vo=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()},yo=function(e,t){e[t]=oo(e,t),e.removeAttribute("suppressed"+t),e.removeAttribute("data-suppressed"+t)},ko=function(e,t){yo(e,"src"),e.removeAttribute("type"),po(t,null,e)},Co=function(e,t){yo(e,"srcset"),po(t,null,e)},wo=function(e,t){try{Me(e,"script")?function(e,t){var n=io(e),i=e.text||e.textContent||e.innerHTML||"";i=i.replace(ao,"");var o=Qe(e),r=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"];var a=He(n,i);if(a.setAttribute("type",r),e.async&&(a.async=e.async),e.defer&&(a.defer=e.defer),e.nonce&&(a.nonce=e.nonce),Qe(a,o),nt(a,$i),ro(a,t),We(document,e)){var s=Ge("div");Ye(e,s),qe(e),Ke(s,a)}else document.body.appendChild(a)}(e,t):Me(e,"iframe")&&Yi?go(e,t):Me(e,"link")?ho(e,t):Me(e,"video")?fo(e,t):Me(e,"audio")?bo(e,t):Me(e,"object")?function(e,t){var n=oo(e,"data");n?(e.setAttribute("data",n),uo(e,"data"),po(t,null,e)):po(t,so(e),e),nt(e,$i)}(e,t):Me(e,"picture")?function(e,t){var n=e.querySelector("img");if(n){var i=io(n);n.setAttribute("src",i),uo(n,"src")}e.querySelectorAll("source").forEach(function(e){Co(e)}),po(t,null,e),nt(e,$i)}(e,t):e.getAttribute("suppressedcontent")?function(e,t){var n=Qe(e).suppressedcontent;e.innerHTML=n,po(t,null,e),nt(e,$i)}(e,t):(ko(e,t),nt(e,$i))}catch(e){t(e)}},Po=0,So=1,xo=2,_o=function(){return o(function e(t){n(this,e),this.cs=t,this.lastActivationParams={},Dt(this)},[{key:"purposeIdsForElement",value:function(e,t){var n,i,o=e.getAttribute(Qi);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;mo(e,t,function(t){vo(e,function(){wo(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):Ve("._iub_cs_activate-inline,._iub_cs_activate").forEach(function(e){i.getElementActivationStatus(e,i.lastActivationParams.options,i.lastActivationParams.preference,i.lastActivationParams.isCcpaOptedOut)===So&&wo(e,n)}):n(e,t)}},{key:"insertOverlay",value:function(e,t,n,i){var o=this,r=function(e,t){if(null==t||!t.isActive)return[];var n=e.getAttribute(Qi);return t.validatePurposes(n)}(n,t.usPurposesPreference),a=this.purposeIdsForElement(n,t.state),s=[].concat(g(r),g(a));if("IFRAME"!==n.nodeName)return n.classList.add(Zi),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(Yi){var l=document.createElement("iframe");Qe(l,Qe(n)),n.parentNode.replaceChild(l,n),n=l}return n.classList.add(Zi),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),wt.debug("Running activateSnippets on",e.length,"elems"),Zn(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?(wt.debug("Running insertOverlays on",n.length,"elems"),Zn(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},wt.debug("Running activateAllSnippets");var r=ze(Xi),a=[],s=[],c=[],l=n.promptToAcceptOnBlockedElements&&(n.perPurposeConsent||n.usprApplies);r.forEach(function(e){var r=t.getElementActivationStatus(e,n,i,o);r!==So?r===xo&&!e.classList.contains(Zi)&&l&&("IFRAME"===e.nodeName?s.push(e):e.classList.contains("_iub_cs_prompt")&&c.push(e)):a.push(e)});var u=n.renderOverlay?function(e,t,i){return i&&function(){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)}}(),n.renderOverlay(e,t,{styleOptions:n.banner},i)}:null;this.activateSnippets(a,function(){var n=[].concat(s,c);t.insertOverlays(u,i,n,function(){wt.debug("activateAllSnippets done, calling done callback..."),t.emit("all-snippets-activated"),e&&e()})})}},{key:"activateOnDomReady",value:function(e,t,n,i){var o=this;et(function(){o.activateAllSnippets(e,t,n,i)},!0)}},{key:"hasAllUSPurposeApproved",value:function(e,t){var n=e.getAttribute(Qi);return null!=t&&t.isActive&&n?t.checkPurposes(n):null}},{key:"hasOnlyUSPurposes",value:function(e){var t=e.getAttribute(Qi);if(!t)return null;var n=t.split(",").map(function(e){return e.trim()});return C(n,qi(n))}},{key:"getElementActivationStatus",value:function(e,t,n,i){if(ot(e,$i))return Po;if(this.isNecessaryPurpose(e))return So;if(i&&this.shouldElementBeBlockedForCcpa(e))return xo;if(!1===this.hasAllUSPurposeApproved(e,n.usPurposesPreference))return xo;if(!1===t.gdprApplies&&!1===t.lgpdApplies&&!1===t.fadpApplies)return So;var o=this.hasAllPurposesApproved(e,n.state);if(t.perPurposeConsent&&!o)return xo;var r=this.hasOnlyUSPurposes(e);return t.perPurposeConsent||n.consent||r?!1===this.purposesPreferenceIsValid(e,n.state,t)&&!r?xo:So:xo}},{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(Qi))||"neccessary"===e.getAttribute(Qi)}}])}(),Ao=function(){return o(function e(t){n(this,e),this.cs=t,this.browserDetect=new be,this.settings={inDelay:100,influx:{serverUrl:"https://idb.iubenda.com",dbName:"hits1"}},this._enabled=ge.isDefault(t.options)&&this.enabledForTheSDK&&!this.cs.options.previewMode},[{key:"enabledForTheSDK",get:function(){var e;return!0!==(null===(e=this.cs.state)||void 0===e?void 0:e.fromSDK)||!this.cs.options.isUsingNewPricing()}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e}},{key:"start",value:function(e){var t=this;setTimeout(function(){t.track("pageview",{e_c:t.cs.options.cookiePolicyId,e_a:e?"page_view_consent":"page_view_no_consent",e_v:t.cs.options.uiVersion})},this.settings.inDelay)}},{key:"track",value:function(e,t){var n=this;if(this.unsupported()||!this.enabled)return!0;try{var i="hits,cp="+t.e_c;t.e_v&&(i+=",uiv="+t.e_v),"pageview"===e?i+=this.addPriorConsentValue(t.e_a)+",sf=1":"consent_given"===e&&(i+=",cg=1"+this.addPerPurposeAnalyticsToString()+","+this.addConsentTypeTag(t.e_n)+"=1"),i+=" value=1",$n(this.settings.influx.serverUrl+"/csdata?db="+this.settings.influx.dbName,i,{method:"POST",async:!0},function(e,t){n.cs.debug(e||t)})}catch(n){this.cs.debug("Exception while hitting (I) for "+e+", parameters: (see below), exception : "+(n.message||n)),this.cs.debug(t)}return!1}},{key:"unsupported",value:function(){return"Explorer"===this.browserDetect.browser&&this.browserDetect.version<10||(!!this.browserDetect.isBotAndShouldSkipBots()||!navigator.cookieEnabled)}},{key:"addPriorConsentValue",value:function(e){var t=this.cs.options.remoteConfig.csEnabled&&(this.cs.isPriorConsent()||this.cs.options.usprApplies),n="";return"page_view_consent"===e?(n+=t?",pv_cs=1":",pv_cs=1,pv_cs_nopc=1",n+=this.addPerPurposeAnalyticsToString()):"page_view_no_consent"===e&&(n+=t?",pv_nocs=1":",pv_nocs=1,pv_nocs_nopc=1"),n}},{key:"addPerPurposeAnalyticsToString",value:function(){var e="";this.cs.isConsentGiven()?e+=",cg_a=1":this.cs.isConsentRejected()?e+=",cg_r=1":e+=",cg_p=1";var t=this.getAcceptedPurposes();return t&&(e+=","+t),e}},{key:"getAcceptedPurposes",value:function(){if(!this.cs.options.perPurposeConsent)return"";var e=this.cs.consent.purposes;return Object.keys(e).map(function(t){return"p"+t+"="+(e[t]?1:0)}).join(",")}},{key:"addConsentTypeTag",value:function(e){var t;switch(e){case"bannerXClose":t="cg_bx";break;case"rejectButtonClick":t="cg_br";break;case"bannerAcceptClicked":t="cg_ba";break;case"documentClicked":t="cg_dc";break;case"cookiePolicyClosed":t="cg_cpc";break;default:t="cg_na"}return t}},{key:"consentGiven",value:function(e){this.track("consent_given",{e_c:this.cs.options.cookiePolicyId,e_a:"consent_given",e_n:e,e_v:this.cs.options.uiVersion})}}])}(),Oo=function(e,t){window._iub=window._iub||{},window._iub.sharedData=window._iub.sharedData||{};var n=function(e,i){var o=i.shift();0===i.length?e[o]=t:(e[o]=e[o]||{},n(e[o],i))};n(window._iub.sharedData,e.split("."))},Io={code:0,message:"Not recognized"},Bo={code:1,message:"Invalid type"},Lo={code:2,message:"Invalid format"},Do={code:3,message:"Mismatch"},Eo=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n(this,e),this.invalidType=t,this.errorType=r,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)}}])}(),To=0,Fo=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:To,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:[])||[],r=0,a=Object.keys(e);r3&&void 0!==arguments[3]&&arguments[3];if(void 0===e)return[];var o=[];if("object"!==v(e)||null===e)return o.push(Eo.fromPropertyName("i18n",Do,To)),o;"object"===v(t)&&"object"===v(e)||o.push(Eo.fromInvalidType(Bo,To));var r=Object.keys(e).reduce(function(t,r){var a=[];return"object"!==v(e[r])?o.push(Eo.fromProperty("lang",r,Do,To)):(function(e){var t=v(e);return"string"!==t||"string"===t&&null===e.match(/^[a-z]{2}$|^[a-z]{2}-[a-z]{2}$/i)}(r)&&o.push(Eo.fromProperty("lang",r,Lo,To)),function(e,t){return e[t].callback&&"string"!=typeof e[t].callback}(e,r)&&o.push(new Eo(Do,"".concat(r,".callback"),null,To)),n&&n.en&&!0===i&&(a=Fo(e[r],n.en,To,r))),t.concat(a)},[]);return o.concat(r)},Ro=function(e){return new RegExp(/^\d{4}-\d{2}-\d{2}$/).test(e)},Vo={invalidateConsentInterval:function(e){return"object"!==v(e)?Lo:e.startDate?Ro(e.startDate)?e.endDate?Ro(e.endDate)?null:d(d({},Lo),{},{message:"endDate is not a valid date (YYYY-MM-DD)"}):d(d({},Lo),{},{message:"endDate not found"}):d(d({},Lo),{},{message:"startDate is not a valid date (YYYY-MM-DD)"}):d(d({},Lo),{},{message:"startDate not found"})}};var jo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:To,i=[];return Object.keys(e).forEach(function(o){e.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&i.push(Eo.fromProperty(o,e[o],Io,n))}),i}(e,t);return!0!==n||Object.keys(e).forEach(function(n){var o=Vo[n]?Vo[n](e[n]):null;o?i.push(Eo.fromPropertyName(n,o,To)):!function(e,t,n){return e[n]instanceof HTMLElement&&!(void 0!==t[n])}(e,t,n)?function(e,t,n){return"i18n"!==n&&"object"===v(e[n])&&null!==e[n]&&"object"===v(t[n])&&Object.keys(e[n]).length>1}(e,t,n)&&(i=i.concat(Fo(e[n],t[n],To,n))):i.push(Eo.fromPropertyName(n,Io,To))}),i},Mo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e);var o=A(Ct,!0);if(this.i18nForBanner=tn,this.RENAMED_OPTIONS={enableCMP:"enableTcf","banner.usesThirdParties":"banner.useThirdParties","banner.innerHtmlCloseBtn":"banner.closeButtonCaption",noticeAtCollectionUrl:"privacyPolicyNoticeAtCollectionUrl"},this._remoteConfig=i,this.userDefinedConfig=_({},d(d(d({},i._csSiteConf||{}),t),i._csRC||{})),this.userConfig={hasEmailMarketing:t.hasEmailMarketing,showBannerForUS:t.showBannerForUS,floatingPreferencesButtonDisplay:t.floatingPreferencesButtonDisplay,useUIModule:t.useUIModule},t.lang&&!this.isLanguageSupported(t.lang)&&(t.i18n&&t.i18n[t.lang]&&(_(Qt,{en:t.i18n[t.lang]}),nn()),t.lang="en"),t.additionalPurposes){var r=t.additionalPurposes;Array.isArray(r)||(r=_([],r));var s={per_purpose:{purposes:{}}};r.forEach(function(e){s.per_purpose.purposes[e.id]={name:e.defaultLabel,bannerName:e.defaultLabel,description:e.defaultDescription}}),_(Qt,a({},t.lang,s)),nn()}if(delete t.skipTcfValidation,delete t.consApiKey,_(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(en).forEach(function(e){return delete en[e]}),nn()),this.forceCustomizeButtonDisplayIfNeeded(),this.forceAcceptButtonDisplayIfNeeded(),this.forceRejectButtonDisplayIfNeeded(),this.forceCloseButtonDisplayIfNeeded(),this.setInvalidateConsentBefore(),this.merge(o,t),Oo("options.cmpId",this.cmpId),Oo("options.cmpVersion",this.cmpVersion),this.validationErrors=this.validate(o,t),this.validationErrors.map(function(e){e.errorType===To&&wt.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:"isExpireAfterValueAlwaysAllowed",value:function(e){return 365===e||180===e}},{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){_(this,this.remoteConfig.csSiteConf||{}),_(this,e),_(this,this.getRenamedOptions(e,this.RENAMED_OPTIONS)),_(this,this.remoteConfig.csRC||{})}},{key:"setTcfValidationOptions",value:function(){var e;this.skipTcfValidation||(null===(e=en[this.lang])||void 0===e||null===(e=e.banner)||void 0===e||null===(e=e.dynamic)||void 0===e||delete e.body,nn(),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&&gn.setLang(this.lang)}},{key:"setGdprApplies",value:function(){if(!this.enableGdpr)return this.gdprAppliesGlobally=!1,void(this.gdprApplies=!1);if(this.gdprAppliesGlobally)return wt.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 wt.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 wt.info("Setting gdprApplies=false since countryDetection is true and user is detected from outside EU ("+_iub.cc+")."),void(this.gdprApplies=!1);wt.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 wt.info("Setting lgpdApplies=false since countryDetection is true and user is detected from outside BR ("+_iub.cc+")."),void(this.lgpdApplies=!1);wt.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=qi(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&&(_(en,this.i18n),nn())}},{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("."),r=e,a=0;a1?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"===v(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("."),r=0;r1&&void 0!==arguments[1]?arguments[1]:{promptIfNot:!0};return this.cs.arePurposesAccepted(e,t)}},{key:"consentGiven",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.force||!1;if(this.ui.banner.shown||t){var n=e.eventName||"cookiePolicyClosed";switch(this.ui.registerEvent(n),n){case"rejectButtonClick":this.cs.rejectAll(n);break;case"bannerXClose":this.cs.options.banner.closeButtonRejects?this.cs.rejectAll(n):this.cs.acceptAll(n);break;default:this.cs.acceptAll(n)}this.ui.banner.removeBanner()}}},{key:"showTcfVendors",value:function(){this.ui.showTcfVendors()}},{key:"showCP",value:function(){var e=new MouseEvent("click",{bubbles:!0,cancelable:!1});this.ui.bannerCookiePolicyClicked({event:e})}},{key:"openPreferences",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).acceptPurposes;this.ui.openPreferences({acceptPurposes:e})}},{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"===v(i)){if("tcfv2"in i&&(this.cs.state.tcfv2String=i.tcfv2||""),"consent"in i&&(n=!1!==i.consent),"purposes"in i){var r=A(i.purposes);r[1]=!0,this.cs.consent.purposes=r,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,r=i.parameters,a=i.callId;this._callAPIFunction(o,r,function(e,n){var i={__iubCsReturn:{returnValue:e,success:n,callId:a}};t.source.frames.postMessage(JSON.stringify(i),t.origin)})}catch(e){this.logger.error("Error: "+e)}}},{key:"getSupportedOptions",value:function(){return O(Ct)}},{key:"acceptAll",value:function(){this.cs.acceptAllUltimate("cookiePolicyClosed")}},{key:"rejectAll",value:function(){this.cs.rejectAll("rejectButtonClick")}},{key:"showBanner",value:function(){this.cs.options.useUIModule?this.cs.emit("bannerShow"):(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;arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.cs.emit("storePreferences",e):(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:"emailManager",value:function(){return this.cs.emailManager}},{key:"accessibilityWidget",value:function(){return this.cs.accessibilityWidget}}],[{key:"_parseJson",value:function(e){try{return JSON.parse(e)}catch(e){}return null}}])}();function Wo(e,t){var n=this,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).styleOptions,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r={};t.forEach(function(e){r[e]=rn(e,n.options)});var a=jn(e,r),s=t.join(","),c=gn("blocked_overlay.title"),l=gn("blocked_overlay.paragraph").replace("%{purposes}",a),u=gn("blocked_overlay.accept_button"),p=gn("blocked_overlay.accept_button_sr_only"),d=st({"background-color":null==i?void 0:i.backgroundColor,color:null==i?void 0:i.textColor}),h=st({"background-color":null==i?void 0:i.acceptButtonColor,color:null==i?void 0:i.acceptButtonCaptionColor}),f='\n
\n
\n
\n

').concat(c,"

\n

").concat(l,'

\n
\n \n
\n
\n ");return o?f:'\n \n \n \n \n \n \n '.concat(c,"\n \n \n \n ").concat(f,"\n \n \n ")}function Go(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 Ho="loading",qo="loaded",Ko="visible",Yo="hidden",Jo="ready",Xo="not ready",$o="initial",Zo="processing",Qo="processed",er=function(){return o(function e(t,i){n(this,e);var o={cmpId:t,cmpStatus:Ho,cmpDisplayStatus:Yo,supportedAPIs:[],supportedAPIs_1_1:[],sectionList:[],applicableSections:[],gppVersion:i||"1.0",signalStatus:Xo,gppString:"",gppUpdatedSectionIds:{},parsedSections:{}};this.data=o,this.fireEvent=function(){}},[{key:"setFireEvent",value:function(e){this.fireEvent=e}},{key:"updateData",value:function(e){this.data=x(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 tr(e){if("string"!=typeof e)return{section:null,data:null};var t=e.split(".");return{section:t[0],data:t.slice(1).join(".")}}function nr(e){if(!e)return e;var t=e;return"string"==typeof e&&(t=Number(e)),t.toString()}var ir=[1.1,1],or="__gpp",rr=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[or].queue}catch(e){this.callQueue=[]}try{this.events=window[or].events}catch(e){this.events=[]}try{this.lastId=window[or].lastId}catch(e){this.lastId=0}for(window[or]=this.apiCall.bind(this);this.callQueue.length;){var r=this.callQueue.shift();this.apiCall.apply(this,g(r))}}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&&r<=this.maxfibo&&o>=0;)for(r++,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,r=0,a=0;a0&&r!=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=r?this.gppSectionIds[r-1]:0,h=i[r],f=null,b=0;br.length?m.setCS(r):m.setCS(o),m.getBase64CS()}if(2==this.Version){if((m=new cr).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;np&&(p=this.CustomPurposesConsent[n]);for(n=0;np&&(p=this.CustomPurposesLI[n]);m.writeInt(p,6),m.writeBitField(this.CustomPurposesConsent,p),m.writeBitField(this.CustomPurposesLI,p),u=m.getBase64CS()}return s+(c.length>0?".":"")+c+(l.length>0?".":"")+l+(u.length>0?".":"")+u}if(3==this.Version){for(n=0;nparseInt(t.sectionID)?1:0});for(n=0;n2&&void 0!==arguments[2]?arguments[2]:null,o=ir.reduce(function(e,t){return e[t]=n.model.getPingData(t),e},{}),r=nr(i);this.callResponder.events.forEach(function(n){var i=n.id,a=n.callback,s=n.version,c=nr(void 0===s?1:s);try{r&&r!==c||a({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,r=e.updatedSections,s=e.displayStatus,c=[];if(this.model.data.cmpStatus===Ho&&(this.model.data.cmpStatus=qo,c.push(["cmpStatus",qo])),s&&s!==this.model.data.cmpDisplayStatus&&(this.model.data.cmpDisplayStatus=s,c.push(["cmpDisplayStatus",s])),r){Object.keys(r).forEach(function(e){var t=o.pluginManager.get(e);t&&(t.update(r[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 dr).Version=3,i.gppSections=n.map(function(e){return{sectionID:e.sectionId(),write:function(){return e.getString()}}}),i.toString())}if(t!==Zo){var u=a(a({},$o,Xo),Qo,Jo);if(this.model.data.signalStatus!==u[t])switch(this.model.data.signalStatus=u[t],t){case $o:c.unshift(["signalStatus",this.model.data.signalStatus,"1.1"]);break;case Qo:c.push(["signalStatus",this.model.data.signalStatus,"1.1"])}}c.forEach(function(e){return o.fireEvent.apply(o,g(e))})}}])}();function gr(){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,r=0,a=0;a0&&r<=this.maxfibo&&o>=0;)for(r++,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,r=0,a=0;a0&&r!=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,r=n.indexOf(i.alias)>=0;return o||r})}},{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,g(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];"boolean"!=typeof t.all?Object.keys(t).map(function(e){return e.toString()}).forEach(function(i){e.setData(i,t[i],!n)}):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}}])}(),Dr=["purposes"],Er=["purposes"],Tr=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 Lr(e),this.usPurposes=new Ki(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=x(this.state,e);this.state=t}},{key:"processState",value:function(e){var t=e.purposes,n=void 0===t?{}:t,i=h(e,Dr);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=h(e,Er);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}}])}(),Fr=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():F(function(e){return e()})}},{key:"setTcfString",value:function(e){var t=this,n=F();return!this.cs.options.enableTcf||this.cs.options.skipSaveConsent?n.resolve():(this.cs.updateTcfApi(!0,e.tcfv2),N([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=F();return!this.cs.options.enableTcf||this.cs.options.skipSaveConsent?n.resolve():(this.cs.updateTcfApi(!0,this.tcfString),N([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=F();return!this.cs.options.enableTcf||this.cs.options.skipSaveConsent?t.resolve():(this.cs.updateTcfApi(!0,this.tcfString),N([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:"load",value:function(){var e=this,t=F(),n=this.cs.options;return n.enableTcf?(this.cs.cmpLibraryPromise.then(function(){var i=e.cs.fetchCMPCookie(),o=e.cs.customPreferencesResult,r=e.cs.getMissingCustomPreferences(o).length>0,a=(n.askConsentIfCMPNotFound||1!==e.cs.state.tcfConsentStatus)&&(!i||r)&&n.gdprApplies;i&&(e.tcfString=i),t.resolve({needsCMPConsent:a})}),t):t.resolve()}}])}(),Nr=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")}}])}(),Rr=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=F(),t=this.storage.getLocal(this.storage.configuration.consentUsprNameLocal);return this.loadedData=t,e.resolve(t)}}])}(),Vr=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()))}}])}(),jr=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=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d({timestamp:(new Date).toISOString(),version:this.cs.settings.version},t);return this.cs.options.perPurposeConsent&&(this.cs.options.gdprApplies||this.cs.options.lgpdApplies||this.cs.options.fadpApplies)?n.purposes=this.cs.preferenceState.purposes.getPreferences():n.consent=e,n}},{key:"storeConsent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.storageData=this.getConsentObj(e,t),this.cs.consent=this.storageData,this.storage.storeConsent()}},{key:"load",value:function(){var e=this,t=F(),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}}])}(),Mr=function(){return o(function e(t){n(this,e),this.cs=t,this.storage=t.storage,this.tcf=new Fr(t,this.storage),this.usPrivacy=new Nr(t),this.uspr=new Rr(t,this.storage),this.core=new jr(t,this.storage),this.fadp=new Vr(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 r=F();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));var a=void 0!==e.purposes,s=void 0!==e.consent;if((a||s)&&(o=!0,a&&this.core.setPurposesPreference(e.purposes),this.core.storeConsent(e.consent)),e.cons&&(this.cs.consent.cons=e.cons),(this.cs.options.gdprApplies||this.cs.options.lgpdApplies)&&void 0!==e.tcfv2){o=!0;var c={tcfv2:e.tcfv2,gac:e.gac};this.tcf.setTcfPreference(c,n).then(function(){return r.resolve()})}else r.resolve();return r.then(function(){i.cs.updateGppApi(!1,!0,"processed"),o&&i.cs.fireConsentCallbacks(t),i.cs.tracker.consentGiven(t),i.cs.ui.generateFloatingPreferencesButton()}),r}},{key:"load",value:function(){var e=F();return N([this.core.load(),this.tcf.load(),this.uspr.load()]).then(function(t){var n=b(t,3),i=n[0],o=n[1],r=n[2];return e.resolve({core:i,tcf:o,uspr:r})}),e}}])}(),Ur=function(){return o(function e(t){n(this,e),this.cs=t,this.storage=new Mr(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 Tr(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)}}])}(),zr=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",r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var a="";if("timestamp"===o)a="".concat(r.getTime());else a=r.toUTCString();return a}},{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]:{};if("callback"===this.state.remote.method)this.resetRemoteCookiesViaCallback();else this.resetRemoteCookieViaIframe(e,t)}},{key:"getRemoteCookies",value:function(){var e=this;if(this.getRemoteConsentPromise=F(),"callback"===this.state.remote.method)this.getRemoteCookiesViaCallback();else 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(){if("callback"===this.state.remote.method)this.cs.debug("skipping compact remote cookie since in 'callback' remote method");else 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=F();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=Jn(n,e,encodeURIComponent(JSON.stringify(t))),this.cs.debug("setting cross site cookies via callback at url: "+n),tt(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),tt(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){if("callback"===this.state.remote.method)this.setRemoteCookieViaCallback(e,t);else this.setRemoteCookieViaIframe(e,t)}},{key:"createIframeBridge",value:function(e,t){var n,i=document.createElement("IFRAME"),o=[location.protocol,"//",location.host,location.pathname].join(""),r=this.buildLoopbackServerUrl()+this.cs.options.loopbackServer.iframeBridge.iframePath;n=Jn(r,"origin",encodeURIComponent(o)),Object.keys(e).forEach(function(t){n=Jn(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"),et(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)}}])}(),Wr=function(e){function i(e,o){return n(this,i),t(this,i,[e,o])}return l(i,e),o(i,[{key:"testStorageAvailability",value:function(){try{this.setLocal("iub_storage_available","1"),this.state.available=-1!=document.cookie.indexOf("iub_storage_available="),this.resetLocal("iub_storage_available")}catch(e){this.state.available=!1}}},{key:"getLocal",value:function(e,t){return this.getLocalCookie(e,t)}},{key:"getLocalCookie",value:function(e,t){var n;this.cs.debug("reading cookie from local domain: "+e);for(var i=[],o=Qn.all(),r=0;r "+l),Qn.setItem(e,a,c)}catch(t){this._setLocalCookieInChunks({name:e,valueToSave:a,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,r=e.maxCookieChunks,a=e.setCookieOptions,s=function(e,t){return e.match(new RegExp(".{1,"+t+"}","g"))||[]}(n,o-(i.length-n.length)-2);if(s.length>r)return this.cs.error("cookie `"+t+"` should be split into "+s.length+" cookies, more than the allowed "+r+" chunks, aborting."),void this.cs.debug("was trying to save: "+i);for(var c=0;c3){var s=this.isAllowedMultilevelDomain.call(this,e);a.length<4&&!s?n=3:s&&(n=r.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)}}])}(zr),Gr=function(e){function i(e,o){return n(this,i),t(this,i,[e,o])}return l(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:I(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;return"object"===v(t)&&null!==t&&(o=JSON.stringify(S(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)}}])}(zr),Hr={COOKIE:"cookieStorage",LOCAL_STORAGE:"localStorage",ALL:"all"},qr=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}}])}(),Kr=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 qr(this.cs),this.setupStorageDrivers(),this.setupStorageTypes(),window.addEventListener("message",this.receiveMessageFromBridge.bind(this),!1)},[{key:"setupStorageDrivers",value:function(){var e=Hr.COOKIE,t=Hr.LOCAL_STORAGE;this[e]=new Wr(this.cs,this.configuration),this[t]=new Gr(this.cs,this.configuration),this.storageDrivers=a(a({},e,this[e]),t,this[t])}},{key:"setupStorageTypes",value:function(){var e,t,n,i,o,r,a,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=Hr[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?Hr[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?Hr[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?Hr[this.options.storage.items.tcf.type.toUpperCase()]:this.storageType,this.coreStorageType=null!==(r=this.options.storage)&&void 0!==r&&null!==(r=r.items)&&void 0!==r&&null!==(r=r.core)&&void 0!==r&&r.type?Hr[this.options.storage.items.core.type.toUpperCase()]:this.storageType,this.granularStorageType=null!==(a=this.options.storage)&&void 0!==a&&null!==(a=a.items)&&void 0!==a&&null!==(a=a.granular)&&void 0!==a&&a.type?Hr[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?Hr[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 r=t.processStorageValue(n,o);t[n].setLocal(e,r,null,!1),t[i].resetLocal(e)}})}},{key:"processStorageValue",value:function(e,t){if(/^%7B.*%7D$/i.test(t)){if(e===Hr.LOCAL_STORAGE)return decodeURIComponent(t)}else if(/^\{.*\}$/i.test(t)&&e===Hr.COOKIE)return encodeURIComponent(t);return t}},{key:"getSyncStorageType",value:function(e){return e===Hr.COOKIE?Hr.LOCAL_STORAGE:Hr.COOKIE}},{key:"getStorageType",value:function(e){var t,n=Hr.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],r="";n=n||{};var a=this.getStorageType(e);return a===Hr.ALL?Object.keys(Hr).forEach(function(a){"ALL"!==a&&(r=i[Hr[a]].setLocal(e,t,n,o))}):r=this[a].setLocal(e,t,n,o),r}},{key:"setLocalCMP",value:function(e,t,n){var i=this,o="",r=this.getStorageType(e);return r===Hr.ALL?Object.keys(Hr).forEach(function(r){"ALL"!==r&&(o=i[Hr[r]].setLocalCMP(e,t,n))}):o=this[r].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.getStorageType("_iub_cs")].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!")}}])}(),Yr=function(){return o(function e(t){var i=this,o=t.options,r=t.preferences;n(this,e);var a=document.getElementsByTagName("head")[0];pt("#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}",a),this.csOptions=o,this.csPreferences=r,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,r=e.target.getAttribute("data-iub-purposes"),a=r.split(",").map(function(e){return e.trim()}),s=!o.isActive||(null===(t=o.checkPurposes(r))||void 0===t||t),c=n.processPurposesString(r),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,a)},!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");qe(i),this.appendButtonElement(n,t,e),this.container.style.display=""}else{var o,r,a=st({"background-color":null===(o=this.csOptions.banner)||void 0===o?void 0:o.backgroundColor,color:null===(r=this.csOptions.banner)||void 0===r?void 0:r.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",a),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 r=document.createElement("h2");r.innerText=gn("blocked_popup.title");var a=document.createElement("p");a.innerHTML=gn("blocked_popup.paragraph").replace("%{purposes}",i),o.appendChild(r),o.appendChild(a),e.appendChild(o)}},{key:"appendButtonElement",value:function(e,t,n){var i,o,r=this,a=st({"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=gn("blocked_popup.accept_button"),s.setAttribute("style",a),s.addEventListener("click",function(){r.container.style.display="none";var e={consent:!0};t.forEach(function(t){!!r.csPreferences.state.usPurposes.validatePurposes(t).length?(e.uspr=e.uspr||{},e.uspr[t]=!0):(e.purposes=e.purposes||{},e.purposes[t]=!0)}),r.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)||"":""}}])}(),Jr=function(){return o(function e(t){var i=t.options;n(this,e),this.options=i,this.loaded=!1,this.emitter=new Lt,this.load()},[{key:"load",value:function(){var e=this;if(!this.loaded)return _iub.accessibilityWidget?(this.loaded=!0,void this.postLoad()):void bt("https://cdn.iubenda.com/aw/versions/0.0.20/accessibility-widget.iife.js").then(function(){e.loaded=!0,e.emitter.emit("iub.accessibilityWidget.load",e),e.postLoad()})}},{key:"postLoad",value:function(){this.loaded&&this.options.accessibilityWidget.autoInit&&this.init()}},{key:"init",value:function(){if(this.loaded){var e=this.options.accessibilityWidget,t=e.sitePublicId,n=e.useCustomTrigger,i=e.backgroundColor,o=e.fillColor,r=e.position,a=e.offsetX,s=e.offsetY,c=e.label;t&&(_iub.accessibilityWidget.init({sitePublicId:t,useCustomTrigger:n,autoLoad:!0,v1Style:!1,lang:this.options.lang,backgroundColor:i,fillColor:o,position:r,offsetX:a,offsetY:s,label:c}),this.emitter.emit("iub.accessibilityWidget.init",this))}}},{key:"on",value:function(e,t){this.emitter.on(e,t)}},{key:"off",value:function(e,t){this.emitter.off(e,t)}}])}(),Xr=function(){return o(function e(t){var i=t.options,o=t.cs,r=t.logger,a=t.preferences;n(this,e),this.options=i,this.cs=o,this.logger=r,this.preferences=a;var s=tn[this.options.lang];this.I18NBanner=s.banner},[{key:"totalNumberOfAdsVendors",get:function(){var e;return(null===(e=this.options.tcfVendors)||void 0===e?void 0:e.length)||window._iub.vendorsCountGVL3||0}},{key:"cookiePolicyLink",get:function(){var e=this.options.banner.cookiePolicyLinkCaption||this.I18NBanner.cookie_policy_caption,t=this.options.cookiePolicyInOtherWindow?"":' role="button"';return"').concat(e,"")}},{key:"advertisingPrefLink",get:function(){return"').concat(this.I18NBanner.advertising_preferences_caption,"")}},{key:"vendorListLink",get:function(){return"').concat(this.I18NBanner.vendor_list_caption,"")}},{key:"privacyPolicyLink",get:function(){var e=this.options.cookiePolicyInOtherWindow?' aria-label="'.concat(this.I18NBanner.privacy_policy_caption," - ").concat(this.I18NBanner.link_label_new_tab,'"'):"",t=this.options.cookiePolicyInOtherWindow?"":' role="button"';return"').concat(this.I18NBanner.privacy_policy_caption,"")}},{key:"doNotSellLink",get:function(){return"').concat(this.I18NBanner.do_not_sell_caption,"")}},{key:"getBannerTextVariables",value:function(e){return"total_number_of_ads_vendors"===e?this.totalNumberOfAdsVendors:"cookie_policy_link"===e?this.cookiePolicyLink:"advertising_preferences_link"===e?this.advertisingPrefLink:"vendor_list_link"===e?this.vendorListLink:"privacy_policy"===e?this.privacyPolicyLink:"do_not_sell"===e?this.doNotSellLink:"purposes"===e?Vn(this.options,null===(t=this.cs.preferenceState.purposes)||void 0===t?void 0:t.data):null;var t}},{key:"bindDataEvents",value:function(e){var t={"iubenda-vendor-list-link":"cmp:thirdPartiesLink-open","iubenda-advertising-preferences-link":"cmp:advertisingPurposesLink-open","iubenda-privacy-policy-link":"cmp:privacyPolicyLink-open","iubenda-cs-cookie-policy-lnk":"cmp:cookiePolicyLink-open","iubenda-do-not-sell-link":"cmp:doNotSellLink-open","iubenda-cs-preferences-link":"cmp:preferencesModal-open"},n=document.createElement("div");return n.innerHTML=e,Object.keys(t).forEach(function(e){n.querySelectorAll(".".concat(e)).forEach(function(n){n.setAttribute("data-event",t[e])})}),n.innerHTML}},{key:"getBannerText",value:function(){var e=this,t=this.cs.ui.banner.getIubendaCsParagraph(this.I18NBanner,this.options);return this.options.banner.content&&(t=this.options.banner.content),t=t.replace(/\%\{([^\}]+)\}/gm,function(t,n){var i=e.getBannerTextVariables(n);return null!=i?i:(e.logger.debug("Variable not found in banner text:",t),t)}),this.bindDataEvents(t)}},{key:"shouldShow",value:function(){return this.cs.shouldShowBanner()}},{key:"getBannerLabels",value:function(){var e,t=g((null===(e=this.preferences)||void 0===e||null===(e=e.state)||void 0===e||null===(e=e.purposes)||void 0===e?void 0:e.activeIds)||[]);-1===t.indexOf("5")&&(this.options.enableTcf||this.options.googleAdditionalConsentMode)&&t.push("5");var n=t.filter(function(e){return!isNaN(Number(e))}).map(function(e){var t=e.trim(),n=gn("per_purpose.purposes.".concat(t,".bannerName"));return{id:t,label:n=String(n[0]).toUpperCase()+String(n).slice(1),toggleTitle:gn("banner.checkbox_title")}}),i=gn("banner.close_without_accepting_button_caption");this.options.banner.continueWithoutAcceptingButtonCaption!==gn("banner.continue_acception_button_caption")&&(i=this.options.banner.continueWithoutAcceptingButtonCaption);var o="";"×"!==this.options.banner.closeButtonCaption&&(o=this.options.banner.closeButtonCaption);var r=gn("banner.close_button_label"),a=null;return i!==r&&(a="".concat(i.replace(/(\s)+?(→|→)/,"")," - ").concat(r)),{title:gn("banner.title"),rejectButton:this.options.banner.rejectButtonCaption,acceptButton:this.options.banner.acceptButtonCaption,closeButton:o,closeButtonLabel:gn("banner.close_button_label"),saveAndContinueCaption:gn("footer.btnCaption"),continueAcceptionButton:i,continueAcceptionButtonLabel:a,purposeTitle:gn("banner.title_purposes_list"),title2ndLayer:gn("banner.title_2nd_layer"),purposesTitle:gn("banner.title_purposes_list"),paginationLabel:gn("banner.page_counter_caption"),purposes:n}}},{key:"getBrandBadge",value:function(){var e=new Ln(this.options);return null!=e&&e.isActive?vn(this.options.lang,this.options.uiVersion):{}}},{key:"getConfig",value:function(){return d({bannerText:this.getBannerText(),brandBadge:this.getBrandBadge()},this.getBannerLabels())}}])}(),$r=function(){return o(function e(t){var i=this,o=t.options,r=t.emitter,s=t.pubSub,c=t.cs,l=t.logger,u=t.preferences;n(this,e),a(this,"tempMethods",{onBannerShown:function(){i.cs.fireCallback("onBannerShown")},onBannerClosed:function(){i.cs.fireCallback("onBannerClosed")},openPreferences:function(){i.cs.ui.openPreferences()},acceptAll:function(){i.cs.acceptAll("bannerAcceptClicked"),i.cs.ui.banner.removeBanner()},rejectAll:function(){i.cs.rejectAll("rejectButtonClick"),i.cs.ui.banner.removeBanner()},definePreferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=d(d({consent:!0,ccpa:!0,uspr:{sd5:!0,sd8:!0,sd9:!0}},i.preferences.state.getState()),e);i.cs.storePreferences(t,!0),i.cs.ui.banner.removeBanner()},updatePreferenceState:function(e){var t,n;null===(t=i.cs.preferences)||void 0===t||null===(t=t.state)||void 0===t||null===(n=t.processState)||void 0===n||n.call(t,e)},thirdPartiesLinkOpen:function(){i.cs.ui.showTcfVendors()},advertisingPurposesLinkOpen:function(){i.cs.ui.showCP(!1,!0)},privacyPolicyLinkOpen:function(){i.cs.ui.showPPCcpaSection(i.options.cookiePolicyInOtherWindow)},cookiePolicyLinkOpen:function(){i.cs.ui.bannerCookiePolicyClicked({isCookiePolicyLink:!0})},doNotSellLinkOpen:function(){i.cs.askCcpaOptOut()}}),this.cs=c,this.active=!!o.useUIModule,this.active&&Object.keys(s).length&&(this.publisherId="cmp.ui_manager",this.logger=l,this.options=o,this.emitter=r,this.pubSub=s,this.preferences=u,this.embedUIV2(),this.setDispatchers(),this.setListeners())},[{key:"embedUIV2",value:function(){var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src","https://cdn.iubenda.com/ui-v2/versions/latest/ui-v2.iife.js"),document.body.appendChild(e)}},{key:"debouncePublishPreferences",value:function(e){var t=this;this.preferenceData=this.preferenceData||{},this.preferenceData=x(this.preferenceData,e),clearTimeout(this.publishTimeout),this.publishTimeout=setTimeout(function(){var e=t.preferenceData.main;void 0!==t.preferenceData.mkt&&(e[5]=t.preferenceData.mkt),t.pubSub.publish("cmp:purposes-onChange",t.publisherId,e)},100)}},{key:"setDispatchers",value:function(){var e=this,t=new Xr({options:this.options,cs:this.cs,logger:this.logger,preferences:this.preferences});this.emitter.on("ready",function(){e.pubSub.publish("cmp:core-ready",e.publisherId,{options:e.options},!0),t.shouldShow()&&e.emitter.emit("bannerShow")}),this.emitter.on("updateGroupPurposeState",function(t){e.debouncePublishPreferences({mkt:t})}),this.emitter.on("updatePreferenceState",function(t){e.debouncePublishPreferences({main:t})}),this.emitter.on("updateTcfState",function(t){e.debouncePublishPreferences({tcf:t})}),this.emitter.on("updateGacState",function(t){e.debouncePublishPreferences({gac:t})}),this.emitter.on("bannerClose",function(){e.tempMethods.onBannerClosed(),e.pubSub.publish("cmp:banner-hide",e.publisherId,{})}),this.emitter.on("bannerShow",function(){e.tempMethods.onBannerShown();var n=t.getConfig(),i=e.preferences.state.getState();e.pubSub.publish("cmp:banner-show",e.publisherId,{bannerLabels:n,bannerState:i},!0)}),this.emitter.on("overlayBannerClose",function(){e.pubSub.publish("cmp:overlayBanner-hide",e.publisherId,{})})}},{key:"setListeners",value:function(){var e=this;this.pubSub.subscribe("cmp:preferencesModal-open",this.publisherId,function(){e.emitter.emit("openPreferences"),e.tempMethods.openPreferences()}),this.pubSub.subscribe("cmp:preferences-acceptAll",this.publisherId,function(){e.emitter.emit("acceptAll"),e.tempMethods.acceptAll()}),this.pubSub.subscribe("cmp:preferences-rejectAll",this.publisherId,function(){e.emitter.emit("rejectAll"),e.tempMethods.rejectAll()}),this.pubSub.subscribe("cmp:preferences-define",this.publisherId,function(t){e.emitter.emit("definePreferences",t),e.tempMethods.definePreferences(t)}),this.pubSub.subscribe("cmp:preferences-setState",this.publisherId,function(t){var n,i={purposes:t.main};(e.options.enableTcf||e.options.googleAdditionalConsentMode)&&null!=t&&null!==(n=t.main)&&void 0!==n&&n[5]&&(i.mkt=t.main[5]),e.options.enableTcf&&null!=t&&t.tcfv2&&(i.tcfv2=t.tcfv2),e.options.googleAdditionalConsentMode&&null!=t&&t.gac&&(i.gac=t.gac),e.emitter.emit("updatePreferenceState",i.purposes),e.tempMethods.updatePreferenceState(i)}),this.pubSub.subscribe("cmp:thirdPartiesLink-open",this.publisherId,function(){e.tempMethods.thirdPartiesLinkOpen()}),this.pubSub.subscribe("cmp:advertisingPurposesLink-open",this.publisherId,function(){e.tempMethods.advertisingPurposesLinkOpen()}),this.pubSub.subscribe("cmp:privacyPolicyLink-open",this.publisherId,function(){e.tempMethods.privacyPolicyLinkOpen()}),this.pubSub.subscribe("cmp:cookiePolicyLink-open",this.publisherId,function(){e.tempMethods.cookiePolicyLinkOpen()}),this.pubSub.subscribe("cmp:doNotSellLink-open",this.publisherId,function(){e.tempMethods.doNotSellLinkOpen()})}}])}(),Zr=function(){return o(function e(t){var i=t.options;n(this,e),this.configuration=d({privacyPolicyId:i.cookiePolicyId,privacyPolicyUrl:i.privacyPolicyUrl},i.emailManager),this.lang=i.lang.toLowerCase(),this.loaded=!1,this.emitter=new Lt,this.load()},[{key:"load",value:function(){var e=this;if(!this.loaded){var t="https://cdn.iubenda.com/cs/email-manager-widget/versions/1.0.14/email-manager-widget-[lang].iife.js";bt(t=t.replace("[lang]",this.lang)).then(function(){e.loaded=!0,e.emitter.emit("iub.emailManager.load",e),e.configuration.autoInit&&e.init()})}}},{key:"init",value:function(){if(this.loaded){var e=this.configuration.categories?this.configuration.categories.map(function(e){return e.id}):[],t=this.configuration.i18n?this.configuration.i18n[this.lang]:{},n="inline"===this.configuration.position,i={lang:this.lang,theme:this.configuration.theme,sitePublicId:this.configuration.sitePublicId,position:this.configuration.position,preview:this.configuration.preview,source:location.href,categories:e,customI18n:t,privacyPolicyId:this.configuration.privacyPolicyId,privacyPolicyUrl:this.configuration.privacyPolicyUrl,attachTo:n?document.querySelector("._manageEmailPreferences"):null},o=window.EmailManagerWidget;if(Ar=new o.EmailManagerWidget(i),n)Ar.init();else document.querySelectorAll(".iubenda-manage-email-preferences-link").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),Ar.init()})})}}},{key:"on",value:function(e,t){this.emitter.on(e,t)}},{key:"off",value:function(e,t){this.emitter.off(e,t)}}])}(),Qr="iub_newsletter_store",ea="iub_newsletter_store_views",ta=function(){return o(function e(t){var i,o,r=t.options,a=t.logger;n(this,e),!!window.localStorage||a.error("NewsletterWidgetModule requires localStorage support"),this.configuration={apiKey:null===(i=_iub.csRC)||void 0===i?void 0:i.consentDatabasePublicKey,lang:r.lang,source:window.location.href,privacyPolicyId:r.cookiePolicyId,privacyPolicyUrl:r.privacyPolicyUrl,privacyPolicyInOtherWindow:r.cookiePolicyInOtherWindow,preview:r.emailMarketing.preview,position:r.emailMarketing.position,customI18n:r.emailMarketing.customI18n,showFromPageView:r.emailMarketing.showFromPageView,theme:r.emailMarketing.theme,styles:r.emailMarketing.styles||{}},this.closeRetainTime=r.emailMarketing.closeRetainTime||0,this.autoInit=r.emailMarketing.autoInit||!1,this.loaded=!1,this.pageViews=parseInt(null!==(o=localStorage.getItem(ea))&&void 0!==o?o:0,10),this.containerElementInPage=null,this.emitter=new Lt},[{key:"increasePageViewCounter",value:function(){localStorage.setItem(ea,++this.pageViews)}},{key:"load",value:function(){var e=this;if(!this.isNewsletterSubscribed()&&this.isNewsletterDateValid(this.closeRetainTime)&&!this.loaded){var t="https://cdn.iubenda.com/cs/email_pref/versions/0.1.21/newsletter-widget-[lang].iife.js";bt(t=t.replace("[lang]",this.configuration.lang.toLowerCase())).then(function(){Or=new IubendaNewsletter.NewsletterWidget(e.configuration),e.loaded=!0,e.increasePageViewCounter(),e.emitter.emit("iub.newsletter.load",e),e.autoInit&&e.init()})}}},{key:"on",value:function(e,t){this.emitter.on(e,t)}},{key:"off",value:function(e,t){this.emitter.off(e,t)}},{key:"init",value:function(){if(!(this.pageViews=e}catch(e){}return!0}}])}(),na=function(){return o(function e(t){var i=t.options,o=t.logger,r=t.preferences,a=t.emitter,s=t.cs;n(this,e),this.options=i,this.logger=o,this.preferences=r,this.emitter=a,this.cs=s,this.addEventListeners()},[{key:"addEventListeners",value:function(){this.emitter.on("storePreferences",this.store.bind(this))}},{key:"storeTCFString",value:function(e){var t=ri(e),n={expireAfter:ti(t.getLastUpdate(),this.cs.settings.MAX_TCF2_COOKIE_DURATION)};this.cs.storeCMPPreference(e,n)}},{key:"store",value:function(e){this.options.ccpaApplies&&void 0!==e.ccpa&&(!0===e.ccpa?this.preferences.storage.usPrivacy.acknowledgeCcpa():(this.logger.debug("CCPA Opt Out"),this.preferences.storage.usPrivacy.optOutCcpa())),this.options.usprApplies&&void 0!==e.uspr&&this.preferences.storage.uspr.acceptAllUSPurposeConsent(e.uspr),e.cons&&(this.cs.consent.cons=e.cons);var t=void 0!==e.purposes,n=void 0!==e.consent;if(t||n){t&&this.preferences.storage.core.setPurposesPreference(e.purposes);var i={};e.timestamp&&(i.timestamp=e.timestamp),e.version&&(i.version=e.version),e.cons&&(i.cons=e.cons),this.preferences.storage.core.storeConsent(e.consent,i)}if(this.options.enableTcf&&"string"==typeof e.tcfv2&&this.storeTCFString(e.tcfv2),(this.options.gdprApplies||this.options.lgpdApplies)&&"string"==typeof e.gac){var o={gac:e.gac};this.cs.customPreferencesResult=o,this.cs.storeCustomPreferences(o)}}}])}();function ia(e){return e?"string"!=typeof e?"":decodeURIComponent(e.replace("#cmpimport=","").split("&")[0]):""}function oa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return{};var n=function(e){if(!e)return new Map;for(var t=ia(e).split("_::::_"),n=new Map,i=0,o=t.length;i0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||"object"!==v(t))return{};var i=oa(ia(e),n);if(t.hasOwnProperty("cmpsetpurposes")&&"string"==typeof t.cmpsetpurposes){var o,r,a=t.cmpsetpurposes.split("_");i.purposes=null!==(o=i.purposes)&&void 0!==o?o:{},i.uspr=null!==(r=i.uspr)&&void 0!==r?r:{};var s=function(e){return!e||"object"!==v(e)||!(!e.hasOwnProperty("cmpautoaccept")||!1===e.cmpautoaccept)||!e.hasOwnProperty("cmpautoreject")||!1===e.cmpautoreject}(t);a.forEach(function(e){var t="".concat(e).replace(n,"");["s","sh","adv","sd8"].includes(t)?i.uspr[t]=s:i.purposes[t]=s})}return t.hasOwnProperty("cmpsetvendors")&&console.log("TCF vendors customization not supported"),i}var aa=function(){return o(function e(t){var i=t.options,o=t.emitter,r=t.setPreferencesCallback;n(this,e),this.active=!!i.useMobilePreferences,this.active&&(this.options=i,this.emitter=o,this.setPreferencesCallback=r,this.setDispatchers())},[{key:"setDispatchers",value:function(){var e=this;this.emitter.on("ready",function(){e.setPreferencesCallback(ra(window.location.hash,{},"purpose-"))})}}])}(),sa=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=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;try{wt.info("Register module:",e.name),n=new e(d(d({},this.sharedData),t))}catch(t){wt.error("Register module error:",e.name,t)}return n}}])}();function ca(e){var t=e.globalObject,n=function(){try{return Math.floor(performance.now())}catch(e){return 0}}(),i=function(){var e,t,n,i="000";if("undefined"==typeof window)return i;return(null===(e=window._iub)||void 0===e||null===(e=e.csRC)||void 0===e?void 0:e.publicId)||(null===(t=window._iub)||void 0===t||null===(t=t.csConfiguration)||void 0===t?void 0:t.siteId)||(null===(n=window._iub)||void 0===n||null===(n=n.csSiteConf)||void 0===n?void 0:n.siteId)||i}(),o=function(e){var t=e.globalObject;if(void 0===t)return"000";if(!("sessionStorage"in t))return"000";sessionStorage.getItem("cmp_sid_wwcs")||sessionStorage.setItem("cmp_sid_wwcs",ua());return sessionStorage.getItem("cmp_sid_wwcs")}({globalObject:t}),r=function(e){var t=e.globalObject,n=ua();if(void 0===t)return"000"+n;if("cmpupvid_wwcs"in t)return t.cmpupvid_wwcs;return t.cmpupvid_wwcs=n,n}({globalObject:t});return{msSessionStarted:n,siteId:i,sessionId:o,upvid:r}}function la(e){var t=ca({globalObject:e.globalObject}),n=t.msSessionStarted,i=t.siteId,o=t.sessionId,r=t.upvid;!function(e){"function"==typeof fetch&&fetch(e,{method:"POST",mode:"cors",keepalive:!0})}("https://cnt4.iubenda.com/t/cs/".concat(i,"/").concat(n,"/").concat(o,"/init?st=").concat(function(){try{return Math.floor(performance.timeOrigin)}catch(e){return 0}}(),"&upvid=").concat(r))}function ua(){try{return crypto.randomUUID()}catch(e){return Math.random().toString(16).substring(2)+Date.now().toString(16)}}function pa(e){var t=[],n=(e||"").split("~"),i=n[0],o=n[1],r=n[2],a=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}),r=Math.max.apply(null,o),a=1;a<=r;a++){var s=-1!==o.indexOf(a);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=a(o||"");if(t.push(s),r){var c=a(r.replace("dv.",""));t.push(c)}}var l=t.join("~");return btoa(unescape(encodeURIComponent(l)))}function da(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 r=decodeURIComponent(escape(atob(i)));o=new Int16Array(r.split("").map(function(e){return e.charCodeAt(0)}))}return n+"~"+o.join(".")}return""}(e):function(e){var t=[],n=decodeURIComponent(escape(atob(e))),i=n.split("~"),o=i[0],r=i[1],a=i[2],s=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]:{},s=arguments.length>3?arguments[3]:void 0;n(this,e),Dt(this),this.settings=mt,this.VERSION=this.settings.version,this.remoteConfig=a,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 _o(this),this.crossSiteConsent={},this.consent=this.getInitialConsent(),this.checkIfInIframe(),this.ui=new Vi(this),this.tracker=new Ao(this),this.storage=new Kr({cs:this}),this.options.storage.autoSync&&this.storage.syncStorage(),this.cookie=this.storage,null===(o=(r=_iub).__csAmpHook)||void 0===o||o.call(r,this,zr),this.browserDetect=new be,this.api=new zo(this),this.cmpLibraryPromise=i,this.storeCMPChoicePromise=F(),this.customPreferencesResult=this.fetchCustomPreferences(),this.savedPreferences={},this.customPurposes=null,this.firstActivationCompletedPromise=F(),this.preferences=new Ur(this);var c={on:this.on.bind(this),once:this.once.bind(this),off:this.off.bind(this),emit:this.emit.bind(this)};this.modules=new sa({options:this.options,preferences:this.preferences,logger:wt,emitter:c,pubSub:s||{}})},[{key:"getInitialConsent",value:function(){return{consent:void 0,timestamp:void 0,version:void 0}}},{key:"getPreferenceHistroyItem",value:function(){this.debug("Reading ".concat(this.storage.configuration.preferenceIdNameLocal," ..."));var e=this.storage.getLocal(this.storage.configuration.preferenceIdNameLocal)||{};return"object"!==v(e)?{}:e}},{key:"getPreferenceIdStorageKey",value:function(){return this.options.storage.useSiteId?"s".concat(this.options.siteId):this.options.cookiePolicyId}},{key:"getPreferenceId",value:function(){var e,t=this.getPreferenceIdStorageKey();this.debug("Reading preferenceId of ".concat(t," ..."));var n=null===(e=this.getPreferenceHistroyItem())||void 0===e?void 0:e[t];if(n)return n;try{var i;this.debug("Constructing preferenceId from consent and rand...");var o,r=this.storage.getLocal(this.storage.configuration.consentNameLocal),a=!(null==r||null===(i=r.cons)||void 0===i||!i.rand),s=!(null==r||!r.timestamp);if(a&&s)return ce(r.timestamp,null==r||null===(o=r.cons)||void 0===o?void 0:o.rand)}catch(e){this.debug("Error constructing preferenceId from consent and rand: ".concat(e))}return""}},{key:"updatePreferenceId",value:function(e){var t=this.getPreferenceIdStorageKey();this.debug("Updating preferenceId of ".concat(t," to: '").concat(e,"'"));var n=this.getPreferenceHistroyItem()||{};n[t]=e,this.storage.setLocal(this.storage.configuration.preferenceIdNameLocal,n,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=ce(_iub.cs.consent.timestamp,null===(o=_iub.cs.consent)||void 0===o||null===(o=o.cons)||void 0===o?void 0:o.rand)}if(i)try{this.updatePreferenceId(i)}catch(e){this.error("Error on preferences sync",e)}}},{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")?x(e,{gac:da(e.gac)}):e}},{key:"renewCookies",value:function(){var e=this;if(this.state.needsConsent&&this.isPreferenceExpressed()){var t=ti(this.consent.timestamp,this.options.preferenceCookie.expireAfter);this.storage.storeConsentLocal({expireAfter:t})}if(this.options.enableTcf&&this.state.tcfv2String){var n=ri(this.state.tcfv2String),i={expireAfter:ti(n.getLastUpdate(),this.settings.MAX_TCF2_COOKIE_DURATION)};this.storeCMPPreference(this.state.tcfv2String,i)}if(this.refreshGACConsent().then(function(){e.storeCustomPreferences(e.customPreferencesResult,!0)}),this.preferenceState.usPurposes.userConsentGiven&&this.preferences.storage.uspr.storeUSPurposeCookie(),this.usPrivacyCookie){var o=(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:o})}}},{key:"refreshGACConsent",value:function(){var e,t=this,n=F();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 r=this.ui.getSavedPreferences();return this.createCmpWidget(r.cmpCookie,r.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,r="tcf_v2",a=tn[o];a||(a=tn.en);var s=a[r]||tn.en[r],c=this.getCustomPurposes();this.ui.cmpWidget=new _iub.cmp.Widget(n,o,s,c,i,{popover:this.ui.popover,promiseCreate:F})}},{key:"isPreferenceExpressed",value:function(){var e=this.options,t=e.gdprApplies,n=e.lgpdApplies,i=e.usprApplies,o=e.fadpApplies,r=e.perPurposeConsent,a=e.enableTcf,s=e.askConsentIfCMPNotFound,c=e.skipSaveConsent;if(t||n||o){var l;if(r&&!this.preferenceState.purposes.hasGivenPreference())return!1;if(!(r||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&&a&&!this.state.tcfv2String&&t)&&(t||n||i||o))}},{key:"getPreferencesExpressed",value:function(){var e=d({},this.getPreferences());return this.options.ccpaApplies&&(e.ccpa=this.preferences.storage.usPrivacy.generateCcpaCookie()),e}},{key:"storeCMPPreference",value:function(e,t){var n=Go(this.options);try{this.storage.setLocalCMP(n,e,t)}catch(e){this.error("Error on store CMP preferences",e)}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);try{this.storage.setLocal(this.storage.configuration.consentGranularNameLocal,n)}catch(e){this.error("Error on store custom preferences",e)}}}},{key:"_acknowledgeCustomPreferences",value:function(e){this.customPreferences=x(this.customPreferences||{},e)}},{key:"encodeCustomPreferences",value:function(e){return e&&e.gac?x(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),r=this.storage.getLocal(n);if(this.storage.configuration.forceCookiePolicyId=!1,i||o||r)try{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()),r&&(this.storage.setLocal(this.storage.configuration.consentUsprNameLocal,r),this.storage.resetLocalCookie(n))}catch(e){this.error("Error on migrating the preferences",e)}}}},{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 Ir(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.preferenceModule=this.modules.register(na,{cs:this}),this.startCs(),null):(un(),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=Go(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=ri(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.cons&&(i.cons=this.consent.cons),this.consent.timestamp&&(i.timestamp=this.consent.timestamp);var o,r=this.preferenceState.getStateObject();(this.options.perPurposeConsent&&(this.options.gdprApplies||this.options.lgpdApplies||this.options.fadpApplies)?i.purposes=r.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 r.usPurposes&&(i.uspr=r.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:"trackInitialized",value:function(){var e;"undefined"!=typeof _iub&&"object"===v(_iub.csRC)&&null!==_iub.csRC&&!0===(null===(e=_iub)||void 0===e||null===(e=e.csRC)||void 0===e?void 0:e.wwcsCheckActive)&&la({globalObject:window})}},{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()),this.trackInitialized(),n.enableGpp&&(this.gppCmpApi=new Ir(n)),et(function(){var t,i,o;if(e.options.enableTcf&&function(e){for(var t=document.getElementsByClassName("iubenda-advertising-preferences-link"),n=0;n0&&t=t)return wt.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 r=this.options.invalidateConsentWithoutLog,a="string"==typeof r||"number"==typeof r,s=a?new Date(r).getTime():null;if(!0===r||a&&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;lt(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"),this.emit("ready")}},{key:"startCsUi",value:function(){var e=this;this.options.useUIModule?this.csReady():this.options.hideInIframe&&this.state.inIframe||this.startCmpWidget().then(function(){e.ui.start()})}},{key:"startCmpWidget",value:function(){var e=this,t=F();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 r={usPurposesPreference:this.preferenceState.usPurposes,consent:this.consent.consent};this.startActivator(r,function(){_iub.csActivationInProgress=!1,_iub.csActivationDone=!0,n.emit("activation-done"),o&&!o._isResolved&&o.resolve(),i&&i()})}}else wt.debug("activation already done or in progress by SAFEMODE activator. Yielding."),this.firstActivationCompletedPromise.resolve()}},{key:"handleBannerPPClick",value:function(e){var t=this;lt(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;lt(e,"click",function(e){e.preventDefault(),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:Wo.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]:{}).eventName,n=this.checkConsentGiven(t);if(this.options.perPurposeConsent&&(n?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{-1===this.ui.cmpWidget.getEnabledPurposeIds().indexOf(1)&&this.ui.CPiFrame.isInTcfView()&&(n=!1)}catch(e){}this.consent=this.preferences.storage.core.getConsentObj(n),this.options.reloadOnConsent&&!this.state.consentFoundOnLoad&&(this.state.reloadAfterRemoteSet=(this.options.enableRemoteConsent?1:0)+(this.options.enableTcf?1:0));var i=[F(function(e){return e()})];this.storage.storeConsent(),this.preferences.storage.uspr.storeUSPurposeCookie(),this.options.enableTcf&&(this.options.gdprApplies||this.options.lgpdApplies)&&!this.options.skipSaveConsent&&i.push(F(function(t){e.storeCmpChoice().then(function(n){e.updateTcfApi(!1,n),t()})})),N(i).then(function(){e.updateGppApi(!1,!0,"processed"),e.fireConsentCallbacks(t)}),this.tracker.consentGiven(t)}},{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=F(),r=this.customPreferencesResult;return this._waitForCmpWidgetRender().then(function(){e._fetchVendorIdsToEnable(n,i).then(function(a){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(r)):a.length&&(n.enableVendors(a),n.enableLegIntVendors&&n.enableLegIntVendors(a)),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=F();return this.ui.cmpWidget.hasBeenRendered()?e.resolve():this.ui.cmpWidget.render(function(){e.resolve()}),e}},{key:"_fetchVendorIdsToEnable",value:function(e,t){var n=F();if(!t)return n.resolve([]),n;if(e.hasBeenDisplayed())return n.resolve([]),n;var i=e._vendorsJSON,o=ri(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?(wt.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 Mo(e,this.remoteConfig))}},{key:"shouldShowBanner",value:function(){return this.state.needsConsent?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):(this.info("consent not needed, no banner to show"),!1)}},{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 wt.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();wt.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)}},{key:"arePurposesAccepted",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{promptIfNot:!0};return new Promise(function(i,o){if(!(Array.isArray(e)&&e.length>0))return o(new Error("Specify purposes list as an array"));var r=t.getPreferences(),a=d(d({},r.purposes),r.uspr);if(0===Object.keys(a).length)return i(!1);if(c(a,e))return i(!0);function s(t){return c(d(d({},t.purposes),t.uspr),e)?i(!0):i(!1)}function c(e,t){return t.every(function(t){return!0===e[t]})}n.promptIfNot?(t.api.openPreferences({acceptPurposes:e}),t.once("callback.before.onPreferenceFirstExpressed",s),t.once("callback.before.on2ndLayerClosed",function(){t.off("callback.before.onPreferenceFirstExpressed",s)})):i(!1)})}}])}();function fa(){var e="https://cdn.iubenda.com/cs/tcf/versions/tcf-v2-0.30.2.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 ba(e){var t=F(),n=document.createElement("script");return n.src=e,n.setAttribute("charset","UTF-8"),n.onload=function(){t.resolve()},document.head.appendChild(n),t}function ga(){var e=F().resolve();return function(){try{return"consentState"in JSON.parse(window.name)}catch(e){return!1}}()&&(e=ba("https://cdn.iubenda.com/cookie_solution/versions/cs_amp-1.5.3.js")),e}var ma=function(){return o(function e(t,i,o){n(this,e),this.csPremergedConfig=function(e){return S(Ct,e)}(t),this.csConfiguration=t,this.pubSubLib=o;var r=this.csConfiguration.lang;"object"===v(i)&&Object.prototype.hasOwnProperty.call(i,r)&&_(this.csConfiguration,i[r]),_iub.csLoaded||(_iub.csLoaded=!0,this.init())},[{key:"init",value:function(){var e=this;ga().then(function(){try{e.getRemoteConfig().then(function(t){e.cmpLibraryPromise=e.getCmpLibraryPromise(t);var n=e.createInstance(t);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=F();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)a();else{var r=0;wt.info("Loading javascript remote configuration"),Bt(It(e,Ot(e)),function n(i){i.success?(wt.info("Remote configuration correctly loaded."),a()):++r<5?setTimeout(function(){wt.info("Loading javascript remote configuration","Attempt ".concat(r+1)),Bt(It(e,Ot(e)),n)},200):t(o)})}else t(o);function a(){wt.info("Merging remote configuration with default.");var e=new _t({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=F().resolve();this.isConfigurationTcfEnabled(e)&&(t=ba(fa()));return t}},{key:"isConfigurationTcfEnabled",value:function(e){var t=Ct.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=F();return e.options.startOnDomReady?dt(function(){return t.resolve()}):et(function(){return t.resolve()},!1),t}},{key:"waitForPreload",value:function(){return F(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 ha(this.csConfiguration,this.cmpLibraryPromise,e,this.pubSubLib);return _iub.cs=t,Se.install(t,t.options,wt),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),wt.error("Cookie Solution startup failed",e)}}])}(),va=window._cmp&&window._cmp.pubSub;new ma(_iub.csConfiguration,_iub.csLangConfiguration,va)}();