@justeattakeaway/pie-cookie-banner 1.10.12 → 1.10.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cdn_dist/index.js CHANGED
@@ -274,7 +274,7 @@ const oi=Symbol.for(""),ni=e=>{if((null==e?void 0:e.r)===oi)return null==e?void
274
274
  * Copyright 2020 Google LLC
275
275
  * SPDX-License-Identifier: BSD-3-Clause
276
276
  */
277
- const so=_e(class extends Se{constructor(e){if(super(e),e.type!==xe&&e.type!==ke&&e.type!==Ae)throw Error("The `live` directive is not allowed on child or event bindings");if(void 0!==e.strings)throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===V||t===q)return t;const i=e.element,o=e.name;if(e.type===xe){if(t===i[o])return V}else if(e.type===Ae){if(!!t===i.hasAttribute(o))return V}else if(e.type===ke&&i.getAttribute(o)===t+"")return V;return Me(e),t}});var lo=Object.defineProperty,co=Object.getOwnPropertyDescriptor,ho=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?co(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&lo(t,i,r),r};let po=class extends ui{constructor(){super(...arguments),this.size="xs",this.defaultClasses="c-pieIcon c-pieIcon--check",this.class="c-pieIcon c-pieIcon--check",this.name="IconCheck"}render(){return W`<svg width="${this._svgWidth}" height="${this._svgHeight}" fill="${this.fill}" xmlns="http://www.w3.org/2000/svg" role="presentation" focusable="false" fill="currentColor" viewBox="0 0 16 16" class="c-pieIcon c-pieIcon--check"><path d="M5.865 12.489a1.22 1.22 0 0 1-.875-.385L1.875 8.656l.98-.875 3.028 3.369 7.253-7.822.963.875-7.35 7.875q-.171.18-.398.282c-.15.066-.322.127-.486.129"></path></svg>`}};ho([be({type:String,reflect:!0})],po.prototype,"size",2),ho([be({type:String,reflect:!0})],po.prototype,"class",2),po=ho([He("icon-check")],po);const vo=class e extends ce{willUpdate(){this.getAttribute("v")||this.setAttribute("v",e.v)}};vo.v="2.6.3";let mo=vo,bo=class extends Event{constructor(e,t,i,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=i,this.subscribe=o??!1}};
277
+ const so=_e(class extends Se{constructor(e){if(super(e),e.type!==xe&&e.type!==ke&&e.type!==Ae)throw Error("The `live` directive is not allowed on child or event bindings");if(void 0!==e.strings)throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===V||t===q)return t;const i=e.element,o=e.name;if(e.type===xe){if(t===i[o])return V}else if(e.type===Ae){if(!!t===i.hasAttribute(o))return V}else if(e.type===ke&&i.getAttribute(o)===t+"")return V;return Me(e),t}});var lo=Object.defineProperty,co=Object.getOwnPropertyDescriptor,ho=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?co(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&lo(t,i,r),r};let po=class extends ui{constructor(){super(...arguments),this.size="xs",this.defaultClasses="c-pieIcon c-pieIcon--check",this.class="c-pieIcon c-pieIcon--check",this.name="IconCheck"}render(){return W`<svg width="${this._svgWidth}" height="${this._svgHeight}" fill="${this.fill}" xmlns="http://www.w3.org/2000/svg" role="presentation" focusable="false" fill="currentColor" viewBox="0 0 16 16" class="c-pieIcon c-pieIcon--check"><path d="M5.865 12.489a1.22 1.22 0 0 1-.875-.385L1.875 8.656l.98-.875 3.028 3.369 7.253-7.822.963.875-7.35 7.875q-.171.18-.398.282c-.15.066-.322.127-.486.129"></path></svg>`}};ho([be({type:String,reflect:!0})],po.prototype,"size",2),ho([be({type:String,reflect:!0})],po.prototype,"class",2),po=ho([He("icon-check")],po);const vo=class e extends ce{willUpdate(){this.getAttribute("v")||this.setAttribute("v",e.v)}};vo.v="2.7.0";let mo=vo,bo=class extends Event{constructor(e,t,i,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=i,this.subscribe=o??!1}};
278
278
  /**
279
279
  * @license
280
280
  * Copyright 2021 Google LLC
@@ -329,7 +329,7 @@ class uo{constructor(e,t,i,o){if(this.subscribe=!1,this.provided=!1,this.value=v
329
329
  </div>
330
330
  ${this.renderSwitchLabel()}
331
331
  ${this.renderAriaDescription()}
332
- </${p}>`}};Co.styles=s("*,*:after,*:before{box-sizing:inherit}:host{display:block}*,*:before,*:after{cursor:inherit}.c-switch-wrapper{display:inline-flex;align-items:center;gap:var(--dt-spacing-b);vertical-align:top;font-family:var(--dt-font-body-l-family);cursor:pointer}.c-switch-wrapper[disabled]{cursor:not-allowed}.c-switch{--int-states-mixin-bg-color: var(--dt-color-interactive-form);--switch-bg-color--checked: var(--dt-color-interactive-brand);--switch-bg-color--disabled: var(--dt-color-disabled-01);--switch-width: 48px;--switch-height: 24px;--switch-control-size: 20px;--switch-padding: 2px;--switch-radius: var(--dt-radius-rounded-e);--switch-translation: calc(var(--switch-width) - var(--switch-control-size) - 2 * var(--switch-padding));position:relative;display:flex;width:var(--switch-width);height:var(--switch-height);flex-shrink:0;padding:var(--switch-padding);border-radius:var(--switch-radius);background-color:var(--int-states-mixin-bg-color)}@media(hover:hover){.c-switch:hover:not(:disabled,.is-disabled,.is-dismissible){--hover-modifier: calc(-1 * var(--dt-color-hover-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-form-h), var(--dt-color-interactive-form-s), calc(var(--dt-color-interactive-form-l) + var(--hover-modifier)))}}.c-switch:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch.is-loading:not(:disabled,.is-disabled){--active-modifier: calc(-1 * var(--dt-color-active-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-form-h), var(--dt-color-interactive-form-s), calc(var(--dt-color-interactive-form-l) + var(--active-modifier)))}@supports (background-color: color-mix(in srgb,black,white)){@media(hover:hover){.c-switch:hover:not(:disabled,.is-disabled,.is-dismissible){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-hover-01-bg) var(--dt-color-hover-01), var(--dt-color-interactive-form))}}.c-switch:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch.is-loading:not(:disabled,.is-disabled){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-active-01-bg) var(--dt-color-active-01), var(--dt-color-interactive-form))}}.c-switch[checked]{--int-states-mixin-bg-color: var(--dt-color-interactive-brand)}@media(hover:hover){.c-switch[checked]:hover:not(:disabled,.is-disabled,.is-dismissible){--hover-modifier: calc(-1 * var(--dt-color-hover-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-brand-h), var(--dt-color-interactive-brand-s), calc(var(--dt-color-interactive-brand-l) + var(--hover-modifier)))}}.c-switch[checked]:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch[checked].is-loading:not(:disabled,.is-disabled){--active-modifier: calc(-1 * var(--dt-color-active-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-brand-h), var(--dt-color-interactive-brand-s), calc(var(--dt-color-interactive-brand-l) + var(--active-modifier)))}@supports (background-color: color-mix(in srgb,black,white)){@media(hover:hover){.c-switch[checked]:hover:not(:disabled,.is-disabled,.is-dismissible){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-hover-01-bg) var(--dt-color-hover-01), var(--dt-color-interactive-brand))}}.c-switch[checked]:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch[checked].is-loading:not(:disabled,.is-disabled){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-active-01-bg) var(--dt-color-active-01), var(--dt-color-interactive-brand))}}[disabled] .c-switch{--int-states-mixin-bg-color: var(--switch-bg-color--disabled);pointer-events:none}.c-switch:has(.c-switch-input:focus-visible){box-shadow:0 0 0 2px var(--dt-color-focus-inner),0 0 0 4px var(--dt-color-focus-outer);outline:none}.c-switch--in-interactive-container{background-image:linear-gradient(var(--interactive-container-tint, transparent) 0 0)}.c-switch--in-interactive-container:hover:not(:disabled),.c-switch--in-interactive-container:active:not(:disabled){--int-states-mixin-bg-color: var(--dt-color-interactive-form)}.c-switch--in-interactive-container[checked]:hover:not(:disabled),.c-switch--in-interactive-container[checked]:active:not(:disabled){--int-states-mixin-bg-color: var(--dt-color-interactive-brand)}.c-switch-input{position:absolute;display:block;height:1px;width:1px;border:0;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0);clip-path:inset(50%)}.c-switch-input *{overflow:hidden}.c-switch-input:disabled{background-color:transparent}.c-switch-control{position:absolute;left:2px;width:var(--switch-control-size);height:var(--switch-control-size);border-radius:var(--switch-radius);background-color:var(--dt-color-interactive-light);padding:var(--switch-padding)}.c-switch-wrapper:dir(rtl) .c-switch-control{position:absolute;left:initial;right:2px}.c-switch-control .c-pieIcon--check{vertical-align:top}.c-switch[checked] .c-switch-control{transform:translate(var(--switch-translation))}.c-switch[checked] .c-switch-control .c-pieIcon--check{color:var(--dt-color-interactive-brand)}.c-switch-input:disabled~.c-switch-control{color:var(--switch-bg-color--disabled)}.c-switch-input:disabled~.c-switch-control .c-pieIcon--check{color:var(--switch-bg-color--disabled)}.c-switch-label{color:var(--dt-color-content-default-solid)}.c-switch-description{position:absolute;display:block;height:1px;width:1px;border:0;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0);clip-path:inset(50%)}.c-switch-description *{overflow:hidden}.c-switch-wrapper--label-leading{flex-direction:row-reverse}.c-switch-wrapper--label-trailing{flex-direction:row}@media(prefers-reduced-motion:no-preference){.c-switch-wrapper--allow-animation .c-switch{transition:background-color .15s cubic-bezier(.4,0,.9,1) 0s}}@media(prefers-reduced-motion:no-preference){.c-switch-wrapper--allow-animation .c-switch[checked]{transition:background-color .15s cubic-bezier(.4,0,.9,1) 0s}}@media(prefers-reduced-motion:no-preference){.c-switch-wrapper--allow-animation .c-switch-control{transition:transform .15s cubic-bezier(.4,0,.9,1) 0s}}@media(prefers-reduced-motion:no-preference){.c-switch[checked] .c-switch-wrapper--allow-animation .c-switch-control{transition:transform .15s cubic-bezier(.4,0,.9,1) 0s}}@media(prefers-reduced-motion:no-preference){.c-switch[checked] .c-switch-wrapper--allow-animation .c-switch-control .c-pieIcon--check{transition:color .15s cubic-bezier(.4,0,.9,1) 0s}}@media(prefers-reduced-motion:no-preference){.c-switch-input:disabled~.c-switch-wrapper--allow-animation .c-switch-control .c-pieIcon--check{transition:color .15s cubic-bezier(.4,0,.9,1) 0s}}.c-switch-wrapper:dir(rtl) .c-switch[checked] .c-switch-control{transform:translate(calc(-1 * var(--switch-translation)))}"),Eo([be({type:String})],Co.prototype,"label",2),Eo([be({type:String}),Fe("pie-switch",["leading","trailing"],wo)],Co.prototype,"labelPlacement",2),Eo([be({type:Object})],Co.prototype,"aria",2),Eo([be({type:Boolean,reflect:!0})],Co.prototype,"checked",2),Eo([be({type:Boolean,reflect:!0})],Co.prototype,"defaultChecked",2),Eo([be({type:Boolean,reflect:!0})],Co.prototype,"required",2),Eo([be({type:String})],Co.prototype,"value",2),Eo([be({type:String,reflect:!0})],Co.prototype,"name",2),Eo([be({type:Boolean,reflect:!0})],Co.prototype,"disabled",2),Eo([function({context:e,subscribe:t}){return(i,o)=>{"object"==typeof o?o.addInitializer(function(){new uo(this,{context:e,callback:e=>{i.set.call(this,e)},subscribe:t})}):i.constructor.addInitializer(i=>{new uo(i,{context:e,callback:e=>{i[o]=e},subscribe:t})})}}({context:Re,subscribe:!0}),ue()],Co.prototype,"_contextAria",2),Eo([fe('input[type="checkbox"]')],Co.prototype,"input",2),Eo([fe(".c-switch")],Co.prototype,"switchBody",2),Eo([fe('label, input[type="checkbox"]')],Co.prototype,"focusTarget",2),Eo([ue()],Co.prototype,"_isAnimationAllowed",2),Co=Eo([He("pie-switch")],Co);const zo={banner:{title:"Cookies",description:"We use our own and third party cookies and other tech to enhance and personalise your user experience, optimize analytics, and show ads with third parties (read our <linkStatement>Statement</linkStatement>). Necessary cookies are always set. Click <linkNecessaryOnly>Necessary only</linkNecessaryOnly> to continue without accepting more. Click <linkManagePreferences>Manage preferences</linkManagePreferences> to share your preferences or <linkAcceptAll>Accept all</linkAcceptAll>.",cta:{managePreferences:"Manage preferences",necessaryOnly:"Necessary only",acceptAll:"Accept all"}},preferencesManagement:{title:"Manage your preferences",description:"You can find all the information in the <linkCookieStatement>Cookie Statement</linkCookieStatement> and <linkCookieTechList>Cookie technology list</linkCookieTechList>.",all:{title:"Turn all on"},necessary:{title:"Necessary",description:"These cookies are necessary to ensure that the website and its features function properly. Services you have asked for cannot be provided without these cookies."},functional:{title:"Functional",description:"These cookies allow the website to remember the choices you make to give you better functionality and personal features."},analytical:{title:"Analytical",description:"These analytical cookies, including statistics, are used to understand how visitors interact with the website and we can measure and improve the performance of our website."},personalized:{title:"Personalised (targeting and advertising)",description:"These marketing cookies are used to tailor the delivery of information to you based upon your interest and to measure the effectiveness of such advertisements, both on our website and our advertising partners' websites."},cta:{save:{label:"Save",ariaLabel:""}}}},To=Object.freeze(Object.defineProperty({__proto__:null,default:zo},Symbol.toStringTag,{value:"Module"})),$o={BULGARIAN:"bg",CATALAN:"ca",DANISH:"da",DUTCH:"nl",ENGLISH:"en",FRENCH:"fr",GERMAN:"de",HEBREW:"he",ITALIAN:"it",POLISH:"pl",SLOVAK:"sk",SPANISH:"es"},Oo={AUSTRALIA:"au",AUSTRIA:"at",BELGIUM:"be",BULGARIA:"bg",CANADA:"ca",DENMARK:"dk",FRANCE:"fr",GERMANY:"de",GREAT_BRITAIN:"gb",IRELAND:"ie",ISRAEL:"il",ITALY:"it",LUXEMBOURG:"lu",NETHERLANDS:"nl",POLAND:"pl",SLOVAKIA:"sk",SPAIN:"es",SWITZERLAND:"ch"},Mo="pie-cookie-banner-accept-all",Bo="pie-cookie-banner-necessary-only",No="pie-cookie-banner-manage-prefs",Lo="pie-cookie-banner-prefs-saved",Po=[{id:"all",hasDivider:!0,hasDescription:!1},{id:"necessary",checked:!0,disabled:!0,hasDescription:!0},{id:"functional",hasDescription:!0},{id:"analytical",hasDescription:!0},{id:"personalized",hasDescription:!0}],Io={hasPrimaryActionsOnly:!1,defaultPreferences:{},country:Oo.GREAT_BRITAIN,language:$o.ENGLISH,cookieStatementLink:"",personalizedLabel:"",personalizedDescription:"",cookieTechnologiesLink:"",openLinksInSameTab:!1},Do=new Set([`${$o.BULGARIAN}`,`${$o.ENGLISH}-${Oo.CANADA}`,`${$o.FRENCH}-${Oo.CANADA}`,`${$o.DANISH}`,`${$o.ENGLISH}-${Oo.FRANCE}`,`${$o.FRENCH}-${Oo.FRANCE}`,`${$o.FRENCH}`,`${$o.GERMAN}`,`${$o.ENGLISH}`,`${$o.HEBREW}`,`${$o.ITALIAN}`,`${$o.DUTCH}`,`${$o.POLISH}`,`${$o.SLOVAK}`,`${$o.CATALAN}`,`${$o.SPANISH}`]),jo=new Map([[Oo.AUSTRALIA,`${$o.ENGLISH}`],[Oo.AUSTRIA,`${$o.GERMAN}`],[Oo.BELGIUM,`${$o.DUTCH}`],[Oo.BULGARIA,`${$o.BULGARIAN}`],[Oo.CANADA,`${$o.ENGLISH}`],[Oo.DENMARK,`${$o.DANISH}`],[Oo.FRANCE,`${$o.FRENCH}-${Oo.FRANCE}`],[Oo.GERMANY,`${$o.GERMAN}`],[Oo.GREAT_BRITAIN,`${$o.ENGLISH}`],[Oo.IRELAND,`${$o.ENGLISH}`],[Oo.ISRAEL,`${$o.HEBREW}`],[Oo.ITALY,`${$o.ITALIAN}`],[Oo.LUXEMBOURG,`${$o.FRENCH}`],[Oo.NETHERLANDS,`${$o.DUTCH}`],[Oo.POLAND,`${$o.POLISH}`],[Oo.SLOVAKIA,`${$o.SLOVAK}`],[Oo.SPAIN,`${$o.SPANISH}`],[Oo.SWITZERLAND,`${$o.GERMAN}`]]);
332
+ </${p}>`}};Co.styles=s("*,*:after,*:before{box-sizing:inherit}:host{display:block}*,*:before,*:after{cursor:inherit}.c-switch-wrapper{display:inline-flex;align-items:center;gap:var(--dt-spacing-b);vertical-align:top;font-family:var(--dt-font-body-l-family);cursor:pointer}.c-switch-wrapper[disabled]{cursor:not-allowed}.c-switch{--int-states-mixin-bg-color: var(--dt-color-interactive-form);--switch-bg-color--checked: var(--dt-color-interactive-brand);--switch-bg-color--disabled: var(--dt-color-disabled-01);--switch-bg-color--checked-disabled: var(--dt-color-support-brand-tonal);--switch-width: 48px;--switch-height: 24px;--switch-control-size: 20px;--switch-padding: 2px;--switch-radius: var(--dt-radius-rounded-e);--switch-translation: calc(var(--switch-width) - var(--switch-control-size) - 2 * var(--switch-padding));position:relative;display:flex;width:var(--switch-width);height:var(--switch-height);flex-shrink:0;padding:var(--switch-padding);border-radius:var(--switch-radius);background-color:var(--int-states-mixin-bg-color)}@media(hover:hover){.c-switch:hover:not(:disabled,.is-disabled,.is-dismissible){--hover-modifier: calc(-1 * var(--dt-color-hover-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-form-h), var(--dt-color-interactive-form-s), calc(var(--dt-color-interactive-form-l) + var(--hover-modifier)))}}.c-switch:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch.is-loading:not(:disabled,.is-disabled){--active-modifier: calc(-1 * var(--dt-color-active-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-form-h), var(--dt-color-interactive-form-s), calc(var(--dt-color-interactive-form-l) + var(--active-modifier)))}@supports (background-color: color-mix(in srgb,black,white)){@media(hover:hover){.c-switch:hover:not(:disabled,.is-disabled,.is-dismissible){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-hover-01-bg) var(--dt-color-hover-01), var(--dt-color-interactive-form))}}.c-switch:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch.is-loading:not(:disabled,.is-disabled){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-active-01-bg) var(--dt-color-active-01), var(--dt-color-interactive-form))}}.c-switch[checked]{--int-states-mixin-bg-color: var(--dt-color-interactive-brand)}@media(hover:hover){.c-switch[checked]:hover:not(:disabled,.is-disabled,.is-dismissible){--hover-modifier: calc(-1 * var(--dt-color-hover-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-brand-h), var(--dt-color-interactive-brand-s), calc(var(--dt-color-interactive-brand-l) + var(--hover-modifier)))}}.c-switch[checked]:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch[checked].is-loading:not(:disabled,.is-disabled){--active-modifier: calc(-1 * var(--dt-color-active-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-brand-h), var(--dt-color-interactive-brand-s), calc(var(--dt-color-interactive-brand-l) + var(--active-modifier)))}@supports (background-color: color-mix(in srgb,black,white)){@media(hover:hover){.c-switch[checked]:hover:not(:disabled,.is-disabled,.is-dismissible){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-hover-01-bg) var(--dt-color-hover-01), var(--dt-color-interactive-brand))}}.c-switch[checked]:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch[checked].is-loading:not(:disabled,.is-disabled){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-active-01-bg) var(--dt-color-active-01), var(--dt-color-interactive-brand))}}[disabled] .c-switch{--int-states-mixin-bg-color: var(--switch-bg-color--disabled);pointer-events:none}[disabled] .c-switch[checked]{--int-states-mixin-bg-color: var(--switch-bg-color--checked-disabled)}.c-switch:has(.c-switch-input:focus-visible){box-shadow:0 0 0 2px var(--dt-color-focus-inner),0 0 0 4px var(--dt-color-focus-outer);outline:none}.c-switch--in-interactive-container{background-image:linear-gradient(var(--interactive-container-tint, transparent) 0 0)}.c-switch--in-interactive-container:hover:not(:disabled),.c-switch--in-interactive-container:active:not(:disabled){--int-states-mixin-bg-color: var(--dt-color-interactive-form)}.c-switch--in-interactive-container[checked]:hover:not(:disabled),.c-switch--in-interactive-container[checked]:active:not(:disabled){--int-states-mixin-bg-color: var(--dt-color-interactive-brand)}.c-switch-input{position:absolute;display:block;height:1px;width:1px;border:0;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0);clip-path:inset(50%)}.c-switch-input *{overflow:hidden}.c-switch-input:disabled{background-color:transparent}.c-switch-control{position:absolute;left:2px;width:var(--switch-control-size);height:var(--switch-control-size);border-radius:var(--switch-radius);background-color:var(--dt-color-interactive-light);padding:var(--switch-padding)}.c-switch-wrapper:dir(rtl) .c-switch-control{position:absolute;left:initial;right:2px}.c-switch-control .c-pieIcon--check{vertical-align:top}.c-switch[checked] .c-switch-control{transform:translate(var(--switch-translation))}.c-switch[checked] .c-switch-control .c-pieIcon--check{color:var(--dt-color-interactive-brand)}.c-switch-input:disabled~.c-switch-control{color:var(--switch-bg-color--disabled)}.c-switch-input:disabled~.c-switch-control .c-pieIcon--check{color:var(--switch-bg-color--disabled)}.c-switch-label{color:var(--dt-color-content-default-solid)}.c-switch-description{position:absolute;display:block;height:1px;width:1px;border:0;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0);clip-path:inset(50%)}.c-switch-description *{overflow:hidden}.c-switch-wrapper--label-leading{flex-direction:row-reverse}.c-switch-wrapper--label-trailing{flex-direction:row}@media(prefers-reduced-motion:no-preference){.c-switch-wrapper--allow-animation .c-switch{transition:background-color .15s cubic-bezier(.4,0,.9,1) 0s}}@media(prefers-reduced-motion:no-preference){.c-switch-wrapper--allow-animation .c-switch[checked]{transition:background-color .15s cubic-bezier(.4,0,.9,1) 0s}}@media(prefers-reduced-motion:no-preference){.c-switch-wrapper--allow-animation .c-switch-control{transition:transform .15s cubic-bezier(.4,0,.9,1) 0s}}@media(prefers-reduced-motion:no-preference){.c-switch[checked] .c-switch-wrapper--allow-animation .c-switch-control{transition:transform .15s cubic-bezier(.4,0,.9,1) 0s}}@media(prefers-reduced-motion:no-preference){.c-switch[checked] .c-switch-wrapper--allow-animation .c-switch-control .c-pieIcon--check{transition:color .15s cubic-bezier(.4,0,.9,1) 0s}}@media(prefers-reduced-motion:no-preference){.c-switch-input:disabled~.c-switch-wrapper--allow-animation .c-switch-control .c-pieIcon--check{transition:color .15s cubic-bezier(.4,0,.9,1) 0s}}.c-switch-wrapper:dir(rtl) .c-switch[checked] .c-switch-control{transform:translate(calc(-1 * var(--switch-translation)))}"),Eo([be({type:String})],Co.prototype,"label",2),Eo([be({type:String}),Fe("pie-switch",["leading","trailing"],wo)],Co.prototype,"labelPlacement",2),Eo([be({type:Object})],Co.prototype,"aria",2),Eo([be({type:Boolean,reflect:!0})],Co.prototype,"checked",2),Eo([be({type:Boolean,reflect:!0})],Co.prototype,"defaultChecked",2),Eo([be({type:Boolean,reflect:!0})],Co.prototype,"required",2),Eo([be({type:String})],Co.prototype,"value",2),Eo([be({type:String,reflect:!0})],Co.prototype,"name",2),Eo([be({type:Boolean,reflect:!0})],Co.prototype,"disabled",2),Eo([function({context:e,subscribe:t}){return(i,o)=>{"object"==typeof o?o.addInitializer(function(){new uo(this,{context:e,callback:e=>{i.set.call(this,e)},subscribe:t})}):i.constructor.addInitializer(i=>{new uo(i,{context:e,callback:e=>{i[o]=e},subscribe:t})})}}({context:Re,subscribe:!0}),ue()],Co.prototype,"_contextAria",2),Eo([fe('input[type="checkbox"]')],Co.prototype,"input",2),Eo([fe(".c-switch")],Co.prototype,"switchBody",2),Eo([fe('label, input[type="checkbox"]')],Co.prototype,"focusTarget",2),Eo([ue()],Co.prototype,"_isAnimationAllowed",2),Co=Eo([He("pie-switch")],Co);const zo={banner:{title:"Cookies",description:"We use our own and third party cookies and other tech to enhance and personalise your user experience, optimize analytics, and show ads with third parties (read our <linkStatement>Statement</linkStatement>). Necessary cookies are always set. Click <linkNecessaryOnly>Necessary only</linkNecessaryOnly> to continue without accepting more. Click <linkManagePreferences>Manage preferences</linkManagePreferences> to share your preferences or <linkAcceptAll>Accept all</linkAcceptAll>.",cta:{managePreferences:"Manage preferences",necessaryOnly:"Necessary only",acceptAll:"Accept all"}},preferencesManagement:{title:"Manage your preferences",description:"You can find all the information in the <linkCookieStatement>Cookie Statement</linkCookieStatement> and <linkCookieTechList>Cookie technology list</linkCookieTechList>.",all:{title:"Turn all on"},necessary:{title:"Necessary",description:"These cookies are necessary to ensure that the website and its features function properly. Services you have asked for cannot be provided without these cookies."},functional:{title:"Functional",description:"These cookies allow the website to remember the choices you make to give you better functionality and personal features."},analytical:{title:"Analytical",description:"These analytical cookies, including statistics, are used to understand how visitors interact with the website and we can measure and improve the performance of our website."},personalized:{title:"Personalised (targeting and advertising)",description:"These marketing cookies are used to tailor the delivery of information to you based upon your interest and to measure the effectiveness of such advertisements, both on our website and our advertising partners' websites."},cta:{save:{label:"Save",ariaLabel:""}}}},To=Object.freeze(Object.defineProperty({__proto__:null,default:zo},Symbol.toStringTag,{value:"Module"})),$o={BULGARIAN:"bg",CATALAN:"ca",DANISH:"da",DUTCH:"nl",ENGLISH:"en",FRENCH:"fr",GERMAN:"de",HEBREW:"he",ITALIAN:"it",POLISH:"pl",SLOVAK:"sk",SPANISH:"es"},Oo={AUSTRALIA:"au",AUSTRIA:"at",BELGIUM:"be",BULGARIA:"bg",CANADA:"ca",DENMARK:"dk",FRANCE:"fr",GERMANY:"de",GREAT_BRITAIN:"gb",IRELAND:"ie",ISRAEL:"il",ITALY:"it",LUXEMBOURG:"lu",NETHERLANDS:"nl",POLAND:"pl",SLOVAKIA:"sk",SPAIN:"es",SWITZERLAND:"ch"},Mo="pie-cookie-banner-accept-all",Bo="pie-cookie-banner-necessary-only",No="pie-cookie-banner-manage-prefs",Lo="pie-cookie-banner-prefs-saved",Po=[{id:"all",hasDivider:!0,hasDescription:!1},{id:"necessary",checked:!0,disabled:!0,hasDescription:!0},{id:"functional",hasDescription:!0},{id:"analytical",hasDescription:!0},{id:"personalized",hasDescription:!0}],Io={hasPrimaryActionsOnly:!1,defaultPreferences:{},country:Oo.GREAT_BRITAIN,language:$o.ENGLISH,cookieStatementLink:"",personalizedLabel:"",personalizedDescription:"",cookieTechnologiesLink:"",openLinksInSameTab:!1},Do=new Set([`${$o.BULGARIAN}`,`${$o.ENGLISH}-${Oo.CANADA}`,`${$o.FRENCH}-${Oo.CANADA}`,`${$o.DANISH}`,`${$o.ENGLISH}-${Oo.FRANCE}`,`${$o.FRENCH}-${Oo.FRANCE}`,`${$o.FRENCH}`,`${$o.GERMAN}`,`${$o.ENGLISH}`,`${$o.HEBREW}`,`${$o.ITALIAN}`,`${$o.DUTCH}`,`${$o.POLISH}`,`${$o.SLOVAK}`,`${$o.CATALAN}`,`${$o.SPANISH}`]),jo=new Map([[Oo.AUSTRALIA,`${$o.ENGLISH}`],[Oo.AUSTRIA,`${$o.GERMAN}`],[Oo.BELGIUM,`${$o.DUTCH}`],[Oo.BULGARIA,`${$o.BULGARIAN}`],[Oo.CANADA,`${$o.ENGLISH}`],[Oo.DENMARK,`${$o.DANISH}`],[Oo.FRANCE,`${$o.FRENCH}-${Oo.FRANCE}`],[Oo.GERMANY,`${$o.GERMAN}`],[Oo.GREAT_BRITAIN,`${$o.ENGLISH}`],[Oo.IRELAND,`${$o.ENGLISH}`],[Oo.ISRAEL,`${$o.HEBREW}`],[Oo.ITALY,`${$o.ITALIAN}`],[Oo.LUXEMBOURG,`${$o.FRENCH}`],[Oo.NETHERLANDS,`${$o.DUTCH}`],[Oo.POLAND,`${$o.POLISH}`],[Oo.SLOVAKIA,`${$o.SLOVAK}`],[Oo.SPAIN,`${$o.SPANISH}`],[Oo.SWITZERLAND,`${$o.GERMAN}`]]);
333
333
  /*! @license DOMPurify 3.4.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.8/LICENSE */
334
334
  function Ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,o=Array(t);i<t;i++)o[i]=e[i];return o}function Fo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o,n,r,a,s=[],l=!0,c=!1;try{if(r=(i=i.call(e)).next,0===t);else for(;!(l=(o=r.call(i)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw n}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ro(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ro(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Ho=Object.entries,Uo=Object.setPrototypeOf,Wo=Object.isFrozen,Vo=Object.getPrototypeOf,qo=Object.getOwnPropertyDescriptor;let Go=Object.freeze,Ko=Object.seal,Yo=Object.create,Zo="undefined"!=typeof Reflect&&Reflect,Xo=Zo.apply,Qo=Zo.construct;Go||(Go=function(e){return e}),Ko||(Ko=function(e){return e}),Xo||(Xo=function(e,t){for(var i=arguments.length,o=new Array(i>2?i-2:0),n=2;n<i;n++)o[n-2]=arguments[n];return e.apply(t,o)}),Qo||(Qo=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return new e(...i)});const Jo=wn(Array.prototype.forEach),en=wn(Array.prototype.lastIndexOf),tn=wn(Array.prototype.pop),on=wn(Array.prototype.push),nn=wn(Array.prototype.splice),rn=Array.isArray,an=wn(String.prototype.toLowerCase),sn=wn(String.prototype.toString),ln=wn(String.prototype.match),cn=wn(String.prototype.replace),dn=wn(String.prototype.indexOf),hn=wn(String.prototype.trim),pn=wn(Number.prototype.toString),vn=wn(Boolean.prototype.toString),mn="undefined"==typeof BigInt?null:wn(BigInt.prototype.toString),bn="undefined"==typeof Symbol?null:wn(Symbol.prototype.toString),un=wn(Object.prototype.hasOwnProperty),gn=wn(Object.prototype.toString),fn=wn(RegExp.prototype.test),yn=(kn=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Qo(kn,t)});var kn;function wn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var i=arguments.length,o=new Array(i>1?i-1:0),n=1;n<i;n++)o[n-1]=arguments[n];return Xo(e,t,o)}}function xn(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:an;if(Uo&&Uo(e,null),!rn(t))return e;let o=t.length;for(;o--;){let n=t[o];if("string"==typeof n){const e=i(n);e!==n&&(Wo(t)||(t[o]=e),n=e)}e[n]=!0}return e}function An(e){for(let t=0;t<e.length;t++){un(e,t)||(e[t]=null)}return e}function _n(e){const t=Yo(null);for(const o of Ho(e)){var i=Fo(o,2);const n=i[0],r=i[1];un(e,n)&&(rn(r)?t[n]=An(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=_n(r):t[n]=r)}return t}function Sn(e,t){for(;null!==e;){const i=qo(e,t);if(i){if(i.get)return wn(i.get);if("function"==typeof i.value)return wn(i.value)}e=Vo(e)}return function(){return null}}const En=Go(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Cn=Go(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zn=Go(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Tn=Go(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$n=Go(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),On=Go(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Mn=Go(["#text"]),Bn=Go(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Nn=Go(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ln=Go(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pn=Go(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),In=Ko(/{{[\w\W]*|^[\w\W]*}}/g),Dn=Ko(/<%[\w\W]*|^[\w\W]*%>/g),jn=Ko(/\${[\w\W]*/g),Rn=Ko(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fn=Ko(/^aria-[\-\w]+$/),Hn=Ko(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Un=Ko(/^(?:\w+script|data):/i),Wn=Ko(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vn=Ko(/^html$/i),qn=Ko(/^[a-z][.\w]*(-[.\w]+)+$/i),Gn=1,Kn=3,Yn=7,Zn=8,Xn=9,Qn=11;var Jn=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const i=t=>e(t);if(i.version="3.4.8",i.removed=[],!t||!t.document||t.document.nodeType!==Xn||!t.Element)return i.isSupported=!1,i;let o=t.document;const n=o,r=n.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,s=t.Node,l=t.Element,c=t.NodeFilter,d=t.NamedNodeMap;void 0===d&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const h=t.DOMParser,p=t.trustedTypes,v=l.prototype,m=Sn(v,"cloneNode"),b=Sn(v,"remove"),u=Sn(v,"nextSibling"),g=Sn(v,"childNodes"),f=Sn(v,"parentNode"),y=Sn(v,"shadowRoot"),k=Sn(v,"attributes"),w=s&&s.prototype?Sn(s.prototype,"nodeType"):null,x=s&&s.prototype?Sn(s.prototype,"nodeName"):null;if("function"==typeof a){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let A,_="",S=0;const E=function(e){if(S>0)throw yn('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');S++;try{return A.createHTML(e)}finally{S--}},C=o,z=C.implementation,T=C.createNodeIterator,$=C.createDocumentFragment,O=C.getElementsByTagName,M=n.importNode;let B={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof Ho&&"function"==typeof f&&z&&void 0!==z.createHTMLDocument;const N=In,L=Dn,P=jn,I=Rn,D=Fn,j=Un,R=Wn,F=qn;let H=Hn,U=null;const W=xn({},[...En,...Cn,...zn,...$n,...Mn]);let V=null;const q=xn({},[...Bn,...Nn,...Ln,...Pn]);let G=Object.seal(Yo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,Y=null;const Z=Object.seal(Yo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let X=!0,Q=!0,J=!1,ee=!0,te=!1,ie=!0,oe=!1,ne=!1,re=!1,ae=!1,se=!1,le=!1,ce=!0,de=!1;const he="user-content-";let pe=!0,ve=!1,me={},be=null;const ue=xn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ge=null;const fe=xn({},["audio","video","img","source","image","track"]);let ye=null;const ke=xn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),we="http://www.w3.org/1998/Math/MathML",xe="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml";let _e=Ae,Se=!1,Ee=null;const Ce=xn({},[we,xe,Ae],sn);let ze=xn({},["mi","mo","mn","ms","mtext"]),Te=xn({},["annotation-xml"]);const $e=xn({},["title","style","font","a","script"]);let Oe=null;const Me=["application/xhtml+xml","text/html"];let Be=null,Ne=null;const Le=o.createElement("form"),Pe=function(e){return e instanceof RegExp||e instanceof Function},Ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ne&&Ne===e)return;e&&"object"==typeof e||(e={}),e=_n(e),Oe=-1===Me.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Be="application/xhtml+xml"===Oe?sn:an,U=un(e,"ALLOWED_TAGS")&&rn(e.ALLOWED_TAGS)?xn({},e.ALLOWED_TAGS,Be):W,V=un(e,"ALLOWED_ATTR")&&rn(e.ALLOWED_ATTR)?xn({},e.ALLOWED_ATTR,Be):q,Ee=un(e,"ALLOWED_NAMESPACES")&&rn(e.ALLOWED_NAMESPACES)?xn({},e.ALLOWED_NAMESPACES,sn):Ce,ye=un(e,"ADD_URI_SAFE_ATTR")&&rn(e.ADD_URI_SAFE_ATTR)?xn(_n(ke),e.ADD_URI_SAFE_ATTR,Be):ke,ge=un(e,"ADD_DATA_URI_TAGS")&&rn(e.ADD_DATA_URI_TAGS)?xn(_n(fe),e.ADD_DATA_URI_TAGS,Be):fe,be=un(e,"FORBID_CONTENTS")&&rn(e.FORBID_CONTENTS)?xn({},e.FORBID_CONTENTS,Be):ue,K=un(e,"FORBID_TAGS")&&rn(e.FORBID_TAGS)?xn({},e.FORBID_TAGS,Be):_n({}),Y=un(e,"FORBID_ATTR")&&rn(e.FORBID_ATTR)?xn({},e.FORBID_ATTR,Be):_n({}),me=!!un(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?_n(e.USE_PROFILES):e.USE_PROFILES),X=!1!==e.ALLOW_ARIA_ATTR,Q=!1!==e.ALLOW_DATA_ATTR,J=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ee=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,te=e.SAFE_FOR_TEMPLATES||!1,ie=!1!==e.SAFE_FOR_XML,oe=e.WHOLE_DOCUMENT||!1,ae=e.RETURN_DOM||!1,se=e.RETURN_DOM_FRAGMENT||!1,le=e.RETURN_TRUSTED_TYPE||!1,re=e.FORCE_BODY||!1,ce=!1!==e.SANITIZE_DOM,de=e.SANITIZE_NAMED_PROPS||!1,pe=!1!==e.KEEP_CONTENT,ve=e.IN_PLACE||!1,H=function(e){try{return fn(e,""),!0}catch(t){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Hn,_e="string"==typeof e.NAMESPACE?e.NAMESPACE:Ae,ze=un(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?_n(e.MATHML_TEXT_INTEGRATION_POINTS):xn({},["mi","mo","mn","ms","mtext"]),Te=un(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?_n(e.HTML_INTEGRATION_POINTS):xn({},["annotation-xml"]);const t=un(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?_n(e.CUSTOM_ELEMENT_HANDLING):Yo(null);if(G=Yo(null),un(t,"tagNameCheck")&&Pe(t.tagNameCheck)&&(G.tagNameCheck=t.tagNameCheck),un(t,"attributeNameCheck")&&Pe(t.attributeNameCheck)&&(G.attributeNameCheck=t.attributeNameCheck),un(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(G.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),te&&(Q=!1),se&&(ae=!0),me&&(U=xn({},Mn),V=Yo(null),!0===me.html&&(xn(U,En),xn(V,Bn)),!0===me.svg&&(xn(U,Cn),xn(V,Nn),xn(V,Pn)),!0===me.svgFilters&&(xn(U,zn),xn(V,Nn),xn(V,Pn)),!0===me.mathMl&&(xn(U,$n),xn(V,Ln),xn(V,Pn))),Z.tagCheck=null,Z.attributeCheck=null,un(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Z.tagCheck=e.ADD_TAGS:rn(e.ADD_TAGS)&&(U===W&&(U=_n(U)),xn(U,e.ADD_TAGS,Be))),un(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Z.attributeCheck=e.ADD_ATTR:rn(e.ADD_ATTR)&&(V===q&&(V=_n(V)),xn(V,e.ADD_ATTR,Be))),un(e,"ADD_URI_SAFE_ATTR")&&rn(e.ADD_URI_SAFE_ATTR)&&xn(ye,e.ADD_URI_SAFE_ATTR,Be),un(e,"FORBID_CONTENTS")&&rn(e.FORBID_CONTENTS)&&(be===ue&&(be=_n(be)),xn(be,e.FORBID_CONTENTS,Be)),un(e,"ADD_FORBID_CONTENTS")&&rn(e.ADD_FORBID_CONTENTS)&&(be===ue&&(be=_n(be)),xn(be,e.ADD_FORBID_CONTENTS,Be)),pe&&(U["#text"]=!0),oe&&xn(U,["html","head","body"]),U.table&&(xn(U,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw yn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw yn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=A;A=e.TRUSTED_TYPES_POLICY;try{_=E("")}catch(i){throw A=t,i}}else void 0===A&&null!==e.TRUSTED_TYPES_POLICY&&(A=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(i=t.getAttribute(o));const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(r){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(p,r)),A&&"string"==typeof _&&(_=E(""));(B.uponSanitizeElement.length>0||B.uponSanitizeAttribute.length>0)&&U===W&&(U=_n(U)),B.uponSanitizeAttribute.length>0&&V===q&&(V=_n(V)),Go&&Go(e),Ne=e},De=xn({},[...Cn,...zn,...Tn]),je=xn({},[...$n,...On]),Re=function(e){on(i.removed,{element:e});try{f(e).removeChild(e)}catch(t){b(e)}},Fe=function(e,t){try{on(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(o){on(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ae||se)try{Re(t)}catch(o){}else try{t.setAttribute(e,"")}catch(o){}},He=function(e){let t=null,i=null;if(re)e="<remove></remove>"+e;else{const t=ln(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Oe&&_e===Ae&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=A?E(e):e;if(_e===Ae)try{t=(new h).parseFromString(n,Oe)}catch(a){}if(!t||!t.documentElement){t=z.createDocument(_e,"template",null);try{t.documentElement.innerHTML=Se?_:n}catch(a){}}const r=t.body||t.documentElement;return e&&i&&r.insertBefore(o.createTextNode(i),r.childNodes[0]||null),_e===Ae?O.call(t,oe?"html":"body")[0]:oe?t.documentElement:r},Ue=function(e){return T.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},We=function(e){var t,i;e.normalize();const o=T.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let n=o.nextNode();for(;n;){let e=n.data;Jo([N,L,P],t=>{e=cn(e,t," ")}),n.data=e,n=o.nextNode()}const r=null!==(t=null===(i=e.querySelectorAll)||void 0===i?void 0:i.call(e,"template"))&&void 0!==t?t:[];Jo(Array.from(r),e=>{qe(e.content)&&We(e.content)})},Ve=function(e){const t=x?x(e):null;return"string"==typeof t&&("form"===Be(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==k(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==w(e)||e.childNodes!==g(e)))},qe=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return w(e)===Qn}catch(t){return!1}},Ge=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(t){return!1}};function Ke(e,t,o){Jo(e,e=>{e.call(i,t,o,Ne)})}const Ye=function(e){let t=null;if(Ke(B.beforeSanitizeElements,e,null),Ve(e))return Re(e),!0;const o=Be(x?x(e):e.nodeName);if(Ke(B.uponSanitizeElement,e,{tagName:o,allowedTags:U}),ie&&e.hasChildNodes()&&!Ge(e.firstElementChild)&&fn(/<[/\w!]/g,e.innerHTML)&&fn(/<[/\w!]/g,e.textContent))return Re(e),!0;if(ie&&e.namespaceURI===Ae&&"style"===o&&Ge(e.firstElementChild))return Re(e),!0;if(e.nodeType===Yn)return Re(e),!0;if(ie&&e.nodeType===Zn&&fn(/<[/\w]/g,e.data))return Re(e),!0;if(K[o]||!(Z.tagCheck instanceof Function&&Z.tagCheck(o))&&!U[o]){if(!K[o]&&Qe(o)){if(G.tagNameCheck instanceof RegExp&&fn(G.tagNameCheck,o))return!1;if(G.tagNameCheck instanceof Function&&G.tagNameCheck(o))return!1}if(pe&&!be[o]){const t=f(e),i=g(e);if(i&&t){for(let o=i.length-1;o>=0;--o){const n=m(i[o],!0);t.insertBefore(n,u(e))}}}return Re(e),!0}return((w?w(e):e.nodeType)!==Gn||function(e){let t=f(e);t&&t.tagName||(t={namespaceURI:_e,tagName:"template"});const i=an(e.tagName),o=an(t.tagName);return!!Ee[e.namespaceURI]&&(e.namespaceURI===xe?t.namespaceURI===Ae?"svg"===i:t.namespaceURI===we?"svg"===i&&("annotation-xml"===o||ze[o]):Boolean(De[i]):e.namespaceURI===we?t.namespaceURI===Ae?"math"===i:t.namespaceURI===xe?"math"===i&&Te[o]:Boolean(je[i]):e.namespaceURI===Ae?!(t.namespaceURI===xe&&!Te[o])&&!(t.namespaceURI===we&&!ze[o])&&!je[i]&&($e[i]||!De[i]):!("application/xhtml+xml"!==Oe||!Ee[e.namespaceURI]))}(e))&&("noscript"!==o&&"noembed"!==o&&"noframes"!==o||!fn(/<\/no(script|embed|frames)/i,e.innerHTML))?(te&&e.nodeType===Kn&&(t=e.textContent,Jo([N,L,P],e=>{t=cn(t,e," ")}),e.textContent!==t&&(on(i.removed,{element:e.cloneNode()}),e.textContent=t)),Ke(B.afterSanitizeElements,e,null),!1):(Re(e),!0)},Ze=function(e,t,i){if(Y[t])return!1;if(ce&&("id"===t||"name"===t)&&(i in o||i in Le))return!1;const n=V[t]||Z.attributeCheck instanceof Function&&Z.attributeCheck(t,e);if(Q&&!Y[t]&&fn(I,t));else if(X&&fn(D,t));else if(!n||Y[t]){if(!(Qe(e)&&(G.tagNameCheck instanceof RegExp&&fn(G.tagNameCheck,e)||G.tagNameCheck instanceof Function&&G.tagNameCheck(e))&&(G.attributeNameCheck instanceof RegExp&&fn(G.attributeNameCheck,t)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(t,e))||"is"===t&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&fn(G.tagNameCheck,i)||G.tagNameCheck instanceof Function&&G.tagNameCheck(i))))return!1}else if(ye[t]);else if(fn(H,cn(i,R,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==dn(i,"data:")||!ge[e]){if(J&&!fn(j,cn(i,R,"")));else if(i)return!1}else;return!0},Xe=xn({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Qe=function(e){return!Xe[an(e)]&&fn(F,e)},Je=function(e){Ke(B.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Ve(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let n=t.length;for(;n--;){const a=t[n],s=a.name,l=a.namespaceURI,c=a.value,d=Be(s),h=c;let v="value"===s?h:hn(h);if(o.attrName=d,o.attrValue=v,o.keepAttr=!0,o.forceKeepAttr=void 0,Ke(B.uponSanitizeAttribute,e,o),v=o.attrValue,!de||"id"!==d&&"name"!==d||0===dn(v,he)||(Fe(s,e),v=he+v),ie&&fn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,v)){Fe(s,e);continue}if("attributename"===d&&ln(v,"href")){Fe(s,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){Fe(s,e);continue}if(!ee&&fn(/\/>/i,v)){Fe(s,e);continue}te&&Jo([N,L,P],e=>{v=cn(v,e," ")});const m=Be(e.nodeName);if(Ze(m,d,v)){if(A&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(l);else switch(p.getAttributeType(m,d)){case"TrustedHTML":v=E(v);break;case"TrustedScriptURL":v=A.createScriptURL(v)}if(v!==h)try{l?e.setAttributeNS(l,s,v):e.setAttribute(s,v),Ve(e)?Re(e):tn(i.removed)}catch(r){Fe(s,e)}}else Fe(s,e)}Ke(B.afterSanitizeAttributes,e,null)},et=function(e){let t=null;const i=Ue(e);for(Ke(B.beforeSanitizeShadowDOM,e,null);t=i.nextNode();){Ke(B.uponSanitizeShadowNode,t,null),Ye(t),Je(t),qe(t.content)&&et(t.content);if((w?w(t):t.nodeType)===Gn){const e=y?y(t):t.shadowRoot;qe(e)&&(tt(e),et(e))}}Ke(B.afterSanitizeShadowDOM,e,null)},tt=function(e){const t=w?w(e):e.nodeType;if(t===Gn){const t=y?y(e):e.shadowRoot;qe(t)&&(tt(t),et(t))}const i=g?g(e):e.childNodes;if(!i)return;const o=[];Jo(i,e=>{on(o,e)});for(const n of o)tt(n);if(t===Gn){const t=x?x(e):null;if("string"==typeof t&&"template"===Be(t)){const t=e.content;qe(t)&&tt(t)}}};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,r=null,a=null,s=null;if(Se=!e,Se&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ge(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return pn(e);case"boolean":return vn(e);case"bigint":return mn?mn(e):"0";case"symbol":return bn?bn(e):"Symbol()";case"undefined":default:return gn(e);case"function":case"object":{if(null===e)return gn(e);const t=e,i=Sn(t,"toString");if("function"==typeof i){const e=i(t);return"string"==typeof e?e:gn(e)}return gn(e)}}}(e)))throw yn("dirty is not a string, aborting");if(!i.isSupported)return e;if(ne||Ie(t),i.removed=[],"string"==typeof e&&(ve=!1),ve){const t=x?x(e):e.nodeName;if("string"==typeof t){const e=Be(t);if(!U[e]||K[e])throw yn("root node is forbidden and cannot be sanitized in-place")}if(Ve(e))throw yn("root node is clobbered and cannot be sanitized in-place");tt(e)}else if(Ge(e))o=He("\x3c!----\x3e"),r=o.ownerDocument.importNode(e,!0),r.nodeType===Gn&&"BODY"===r.nodeName||"HTML"===r.nodeName?o=r:o.appendChild(r),tt(r);else{if(!ae&&!te&&!oe&&-1===e.indexOf("<"))return A&&le?E(e):e;if(o=He(e),!o)return ae?null:le?_:""}o&&re&&Re(o.firstChild);const l=Ue(ve?e:o);for(;a=l.nextNode();)Ye(a),Je(a),qe(a.content)&&et(a.content);if(ve)return te&&We(e),e;if(ae){if(te&&We(o),se)for(s=$.call(o.ownerDocument);o.firstChild;)s.appendChild(o.firstChild);else s=o;return(V.shadowroot||V.shadowrootmode)&&(s=M.call(n,s,!0)),s}let c=oe?o.outerHTML:o.innerHTML;return oe&&U["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&fn(Vn,o.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+c),te&&Jo([N,L,P],e=>{c=cn(c,e," ")}),A&&le?E(c):c},i.setConfig=function(){Ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ne=!0},i.clearConfig=function(){Ne=null,ne=!1},i.isValidAttribute=function(e,t,i){Ne||Ie({});const o=Be(e),n=Be(t);return Ze(o,n,i)},i.addHook=function(e,t){"function"==typeof t&&on(B[e],t)},i.removeHook=function(e,t){if(void 0!==t){const i=en(B[e],t);return-1===i?void 0:nn(B[e],i,1)[0]}return tn(B[e])},i.removeHooks=function(e){B[e]=[]},i.removeAllHooks=function(){B={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();function er(e){console.error(`[localisation-utils]: ${e}`)}function tr(e,t){if(!e)throw new Error('"locale" parameter cannot be empty');if(!t)throw new Error('"key" parameter cannot be empty');const i=function(e,t){const i=i=>String.prototype.split.call(t,i).filter(Boolean).reduce((e,t)=>null!=e&&"object"==typeof e?e[t]:e,e),o=i(/[,[\]]+?/)||i(/[,[\].]+?/);return"string"!=typeof o?"":o}(e,t);return i||(er(`Couldn't find a value for the key "${t}", it will be used as fallback.`),t)}function ir(e,t){const i=Object.keys(t);if(0===i.length)return[e];const o=function(e){const t=e.map(e=>`(<${e}.*>.*</${e}>)`).join("|");return new RegExp(t,"igm")}(i);return e.split(o).filter(e=>Boolean(e)).map(e=>{if(!e.match(o))return e;const t=e.match(/<(.*)>(.*)<\/.*>/);if(!t)return e;const[,i,n]=t;return[i,n]}).map(e=>{if(!Array.isArray(e))return e;const[i,o]=e,n=t[i];return n||"function"==typeof n?n(o):(er(`Custom tag "${i}" does not have a matching enhancer function`),o)})}function or(e,t="_blank"){if("undefined"==typeof window)return e.replace(/<[^>]*>/g,"");const i=["A","PIE-LINK"],o="_self"===t?"_self":"_blank",n=e=>{if(!i.includes(e.tagName))return;if(e.setAttribute("target",o),"_blank"!==o)return void e.removeAttribute("rel");const t=new Set((e.getAttribute("rel")??"").split(/\s+/).filter(Boolean));t.add("noopener"),t.add("noreferrer"),e.setAttribute("rel",Array.from(t).join(" "))};try{return Jn.addHook("afterSanitizeAttributes",n),Jn.sanitize(e,{ALLOWED_TAGS:i.map(e=>e.toLowerCase()),ALLOWED_ATTR:["href","rel","target"]})}finally{Jn.removeHook("afterSanitizeAttributes")}}var nr,rr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,sr=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?ar(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&rr(t,i,r),r};e.PieCookieBanner=class extends pe{constructor(){super(...arguments),this._isCookieBannerHidden=!1,this._isModalOpen=!1,this._locale=zo,this.hasPrimaryActionsOnly=Io.hasPrimaryActionsOnly,this.defaultPreferences=Io.defaultPreferences,this.cookieStatementLink=Io.cookieStatementLink,this.personalizedLabel=Io.personalizedLabel,this.personalizedDescription=Io.personalizedDescription,this.cookieTechnologiesLink=Io.cookieTechnologiesLink,this.country=Io.country,this.language=Io.language,this.openLinksInSameTab=Io.openLinksInSameTab,this._getLocaleString=(e,t)=>{let i=`${e}-${t}`.toLowerCase();if(Do.has(i))return i;if(i=`${e}`.toLowerCase(),Do.has(i))return i;const o=jo.get(t.toLowerCase());return o&&Do.has(o)?o:`${Io.language}`},this._customTagEnhancers={linkStatement:e=>W`<pie-link href="${this.cookieStatementLink}" variant="inverse" target="${this._linkTargetAttribute}" data-test-id="cookie-statement-link">${e}</pie-link>`,linkNecessaryOnly:e=>W`<pie-link data-test-id="body-necessary-only" tag="button" variant="inverse" @click="${this._onNecessaryOnly}">${e}</pie-link>`,linkManagePreferences:e=>W`<pie-link data-test-id="body-manage-prefs" tag="button" variant="inverse" @click="${this._openManagePreferencesModal}">${e}</pie-link>`,linkAcceptAll:e=>W`<pie-link data-test-id="body-accept-all" tag="button" variant="inverse" @click="${this._onAcceptAll}">${e}</pie-link>`,linkCookieStatement:e=>W`<pie-link href="${this.cookieStatementLink}" size="small" target="${this._linkTargetAttribute}" data-test-id="cookie-statement-link">${e}</pie-link>`,linkCookieTechList:e=>W`<pie-link href="${this.cookieTechnologiesLink}" size="small" target="${this._linkTargetAttribute}" data-test-id="cookie-technology-link">${e}</pie-link>`},this._onNecessaryOnly=()=>{Ue(this,Bo),this._isCookieBannerHidden=!0},this._onAcceptAll=()=>{Ue(this,Mo),this._isCookieBannerHidden=!0},this._openManagePreferencesModal=()=>{this._isCookieBannerHidden=!0,Ue(this,No),this._isModalOpen=!0},this._handleSwitchStates=e=>{const{id:t}=null==e?void 0:e.currentTarget,i=[...this._preferencesNodes].find(({id:e})=>"all"===e);if(t===i.id){const{checked:t}=e.target;this._preferencesNodes.forEach(e=>{e.checked=e.disabled?e.checked:t})}else i.checked=[...this._preferencesNodes].filter(({id:e})=>"all"!==e).every(({checked:e})=>e)}}get _linkTargetAttribute(){return this.openLinksInSameTab?"_self":"_blank"}async updated(e){(e.has("language")||e.has("country"))&&await this._setLocaleBasedOnCountryAndLanguage(this.language,this.country)}async _setLocaleBasedOnCountryAndLanguage(e,t){try{const i=this._getLocaleString(e,t);this._locale=(await((e,t,i)=>{const o=e[t];return o?"function"==typeof o?o():Promise.resolve(o):new Promise((e,o)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==i?". Note that variables only represent file names one level deep.":""))))})})(Object.assign({"../locales/bg.js":()=>Promise.resolve().then(()=>Er),"../locales/ca.js":()=>Promise.resolve().then(()=>Cr),"../locales/da.js":()=>Promise.resolve().then(()=>zr),"../locales/de.js":()=>Promise.resolve().then(()=>Tr),"../locales/en-ca.js":()=>Promise.resolve().then(()=>Or),"../locales/en-fr.js":()=>Promise.resolve().then(()=>Mr),"../locales/en.js":()=>Promise.resolve().then(()=>To),"../locales/es.js":()=>Promise.resolve().then(()=>Br),"../locales/fr-ca.js":()=>Promise.resolve().then(()=>Nr),"../locales/fr-fr.js":()=>Promise.resolve().then(()=>Lr),"../locales/fr.js":()=>Promise.resolve().then(()=>Pr),"../locales/he.js":()=>Promise.resolve().then(()=>Ir),"../locales/it.js":()=>Promise.resolve().then(()=>Dr),"../locales/nl.js":()=>Promise.resolve().then(()=>jr),"../locales/pl.js":()=>Promise.resolve().then(()=>Rr),"../locales/sk.js":()=>Promise.resolve().then(()=>Fr)}),`../locales/${i}.js`,3)).default}catch{this._locale=zo}}_localiseText(e){return tr(this._locale,e)}_localiseRichText(e){return function(e,t,i){if(!e)throw new Error('"locale" parameter cannot be empty');if(!t)throw new Error('"key" parameter cannot be empty');if(!i)throw new Error('"customTagEnhancers" parameter cannot be empty');return ir(tr(e,t),i)}(this._locale,e,this._customTagEnhancers)}_renderPreferenceLabel(e){return"personalized"===e&&this.personalizedLabel?this.personalizedLabel:this._localiseText(`preferencesManagement.${e}.title`)}_renderPreferenceDescription(e,t){return"personalized"===e&&this.personalizedDescription?Ie(or(this.personalizedDescription,this._linkTargetAttribute)):Ie(or(t,this._linkTargetAttribute))}_displayCookieBanner(){this._isModalOpen=!1,this._isCookieBannerHidden=!1}_handlePreferencesSaved(){let e={};[...this._preferencesNodes].filter(({id:e})=>"all"!==e).forEach(({id:t,checked:i})=>{e={...e,[t]:i}}),Ue(this,Lo,e),this._isModalOpen=!1,this._isCookieBannerHidden=!0}renderPreference({id:e,checked:t,disabled:i,hasDivider:o,hasDescription:n}){var r;const a=this._renderPreferenceLabel(e),s=`preferencesManagement.${e}.description`,l=n&&this._localiseText(s),c=["functional","personalized","analytical"].every(e=>{var t;return!0===(null==(t=this.defaultPreferences)?void 0:t[e])});return W`
335
335
  <div class="c-cookieBanner-preference">
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ const In = (t, n, o) => {
27
27
  this.getAttribute("v") || this.setAttribute("v", He.v);
28
28
  }
29
29
  };
30
- He.v = "1.10.12";
30
+ He.v = "1.10.13";
31
31
  let ft = He;
32
32
  const Dn = "*,*:after,*:before{box-sizing:inherit}*{margin:0}.c-cookieBanner{--cb-font-family: var(--dt-font-interactive-l-family);--cb-font-size: calc(var(--dt-font-body-l-size) * 1px);--cb-line-height: calc(var(--dt-font-body-l-line-height) * 1px);--cb-font-weight: var(--dt-font-body-l-weight);--cb-padding-inline: var(--dt-spacing-d);--cb-padding-block: var(--dt-spacing-d);--cb-offset: 0;color-scheme:only dark;background-color:var(--dt-color-background-dark);color:var(--dt-color-content-inverse);font-family:var(--cb-font-family);font-size:var(--cb-font-size);line-height:var(--cb-line-height);font-weight:var(--cb-font-weight);padding-block-start:var(--cb-padding-block);padding-block-end:var(--cb-padding-block);max-height:432px;position:fixed;bottom:var(--cb-offset);left:var(--cb-offset);right:var(--cb-offset);border-top-left-radius:var(--dt-radius-rounded-c);border-top-right-radius:var(--dt-radius-rounded-c);z-index:var(--dt-z-index-cookie-banner)}@media(min-width:700px)and (orientation:landscape){.c-cookieBanner{--cb-padding-inline: var(--dt-spacing-f);--cb-offset: var(--dt-spacing-d);max-height:90%;border-bottom-left-radius:var(--dt-radius-rounded-c);border-bottom-right-radius:var(--dt-radius-rounded-c)}}.c-cookieBanner[isCookieBannerHidden]{display:none}@media(prefers-reduced-motion:no-preference){@keyframes animate-enter{0%{transform:translate3d(0,75%,0)}to{transform:translateZ(0)}}.c-cookieBanner{animation:.5s animate-enter ease-out}}.c-cookieBanner-title,.c-cookieBanner-body,.c-cookieBanner-actions{padding-inline-start:var(--cb-padding-inline);padding-inline-end:var(--cb-padding-inline)}.c-cookieBanner-title{--cb-title-font-size: var(--dt-font-heading-s-size--narrow);--cb-title-line-height: var(--dt-font-heading-s-line-height--narrow);font-size:calc(var(--cb-title-font-size) * 1px);font-weight:var(--dt-font-heading-s-weight);line-height:calc(var(--cb-title-line-height) * 1px)}@media(min-width:700px)and (orientation:landscape){.c-cookieBanner-title{--cb-title-font-size: var(--dt-font-heading-s-size--wide);--cb-title-line-height: var(--dt-font-heading-s-line-height--wide)}}.c-cookieBanner-body{--cb-scroll-shadow-color: var(--dt-color-black);margin-block-start:var(--dt-spacing-a);max-height:200px;overflow-y:auto;background:linear-gradient(to bottom,transparent,var(--dt-color-background-dark) 75%) center bottom,linear-gradient(transparent,var(--cb-scroll-shadow-color)) center bottom;background-repeat:no-repeat;background-size:100% 48px,100% 8px;background-attachment:local,scroll}@media(min-width:700px)and (orientation:landscape){.c-cookieBanner-body{max-height:150px}}.c-cookieBanner-actions{--cb-actions-flex-dir: column;margin-block-start:var(--dt-spacing-d);display:flex;gap:var(--dt-spacing-d);flex-direction:var(--cb-actions-flex-dir)}.c-cookieBanner-actions>pie-link{text-align:center;align-self:center}@media(min-width:700px)and (orientation:landscape){.c-cookieBanner-actions{--cb-actions-flex-dir: row-reverse;justify-content:flex-start;align-items:center}.c-cookieBanner-actions>pie-button{width:auto}}.c-cookieBanner-subheading{--cb-subheading-font-size: var(--dt-font-heading-s-size--narrow);--cb-subheading-line-height: var(--dt-font-heading-s-line-height--narrow);font-size:calc(var(--cb-subheading-font-size) * 1px);font-weight:var(--dt-font-heading-s-weight);line-height:calc(var(--cb-subheading-line-height) * 1px)}@media(min-width:700px)and (orientation:landscape){.c-cookieBanner-subheading{--cb-subheading-font-size: var(--dt-font-heading-s-size--wide);--cb-subheading-line-height: var(--dt-font-heading-s-line-height--wide)}}.c-cookieBanner-description{font-size:calc(var(--dt-font-body-s-size) * 1px);line-height:calc(var(--dt-font-body-s-line-height) * 1px)}.c-cookieBanner-preference{display:flex;gap:var(--dt-spacing-d);justify-content:space-between;margin-block-start:var(--dt-spacing-e);margin-block-end:var(--dt-spacing-e)}.c-cookieBanner-preference p{margin-block-start:var(--dt-spacing-b)}.c-cookieBanner-preference:last-child{margin-block-end:0}", p = {
33
33
  BULGARIAN: "bg",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-cookie-banner",
3
3
  "description": "PIE Design System Cookie Banner built using Web Components",
4
- "version": "1.10.12",
4
+ "version": "1.10.13",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/justeattakeaway/pie",
@@ -60,7 +60,7 @@
60
60
  "@justeattakeaway/pie-icon-button": "2.7.29",
61
61
  "@justeattakeaway/pie-link": "1.5.1",
62
62
  "@justeattakeaway/pie-modal": "1.27.6",
63
- "@justeattakeaway/pie-switch": "2.6.3",
63
+ "@justeattakeaway/pie-switch": "2.7.0",
64
64
  "@justeattakeaway/pie-webc-core": "18.0.0",
65
65
  "dompurify": "3.4.8"
66
66
  },