/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
(function($,Drupal,once){Drupal.behaviors.cookieproFocusHandler={attach:function attach(){var skipToContentLink=$('#skip-to-content');$(once('clickFocusHandler','body')).on('click','#onetrust-accept-btn-handler, #onetrust-reject-all-handler',function(){skipToContentLink.removeClass('focusable').blur();setTimeout(function(){skipToContentLink.addClass('focusable').blur();},10);});}};})(jQuery,Drupal,once);;
(function($,Drupal,window,document,once){Drupal.behaviors.backToTop={attach:function attach(context){var backToTopParent=$('.main-wrapper',context);var backToTopButtonMarkup=$(""));var isMobile=window.matchMedia('screen and (min-width: 0px) and (max-width: 575px)');function backToTopVisibility(){var scrollFromTop=this.pageYOffset||this.document.documentElement.scrollTop;var viewportHeight=Math.max(this.document.documentElement.clientHeight,this.innerHeight||0);var documentHeight=$(document).height();var scrollPositionPercentage=Math.round(scrollFromTop/(documentHeight-viewportHeight)*100);if(scrollPositionPercentage>50){backToTopButtonMarkup.addClass('show');}else{backToTopButtonMarkup.removeClass('show');}}
function backToTopInitializer(e){if(e.matches){backToTopParent.append(backToTopButtonMarkup);window.addEventListener('scroll',backToTopVisibility,{capture:true,passive:true});}else{backToTopButtonMarkup.detach();window.removeEventListener('scroll',backToTopVisibility,{capture:true,passive:true});}}
$(once('initializeBackToTop',backToTopParent)).each(function(){backToTopInitializer(isMobile);isMobile.addListener(backToTopInitializer);});$(once('backToTop',backToTopButtonMarkup)).on('click',function(e){e.preventDefault();$('html, body').animate({scrollTop:0},'300');$(this).removeClass('show').blur();});}};})(jQuery,Drupal,window,document,once);;
((Drupal,drupalSettings)=>{Drupal.extlink=Drupal.extlink||{};Drupal.extlink.attach=(context,drupalSettings)=>{if(typeof drupalSettings.data==='undefined'||!drupalSettings.data.hasOwnProperty('extlink'))return;let extIconPlacement='append';if(drupalSettings.data.extlink.extIconPlacement&&drupalSettings.data.extlink.extIconPlacement!=='0')extIconPlacement=drupalSettings.data.extlink.extIconPlacement;const pattern=/^(([^:]+?\.)*)([^.:]+)((\.[a-z0-9]{1,253})*)(:[0-9]{1,5})?$/;const host=window.location.host.replace(pattern,'$2$3$6');const subdomain=window.location.host.replace(host,'');let subdomains;if(drupalSettings.data.extlink.extSubdomains)subdomains='([^/]*\\.)?';else if(subdomain==='www.'||subdomain==='')subdomains='(www\\.)?';else subdomains=subdomain.replace('.','\\.');let whitelistedDomains=false;if(drupalSettings.data.extlink.whitelistedDomains){whitelistedDomains=[];for(let i=0;i{try{let url='';if(typeof el.href==='string')url=el.href.toLowerCase();else{if(typeof el.href==='object')url=el.href.baseVal;}const isExtCssIncluded=extCssInclude&&(el.matches(extCssInclude)||el.closest(extCssInclude));if(url.indexOf('http')===0&&((!internalLink.test(url)&&!(extExclude&&extExclude.test(url)))||(extInclude&&extInclude.test(url))||isExtCssIncluded)&&!(extCssExclude&&el.matches(extCssExclude))&&!(extCssExclude&&el.closest(extCssExclude))&&!(extCssExplicit&&!el.closest(extCssExplicit))){let match=false;if(!isExtCssIncluded&&whitelistedDomains){for(let i=0;i{if(!(drupalSettings.data.extlink.extTargetNoOverride&&link.matches('a[target]')))externalLinks[i].setAttribute('target','_blank');});externalLinks.forEach((link,i)=>{const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','noopener');return;}if(val.indexOf('noopener')>-1)if(val.indexOf('noopener')===-1)externalLinks[i].setAttribute('rel',`${val} noopener`);else{}else externalLinks[i].setAttribute('rel',`${val} noopener`);});}if(drupalSettings.data.extlink.extNofollow)externalLinks.forEach((link,i)=>{const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','nofollow');return;}let target='nofollow';if(drupalSettings.data.extlink.extFollowNoOverride)target='follow';if(val.indexOf(target)===-1)externalLinks[i].setAttribute('rel',`${val} nofollow`);});if(drupalSettings.data.extlink.extNoreferrer)externalLinks.forEach((link,i)=>{if(drupalSettings.data.extlink.extExcludeNoreferrer&&extExcludeNoreferrer.test(link.getAttribute('href')))return;const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','noreferrer');return;}externalLinks[i].setAttribute('rel',`${val} noreferrer`);});externalLinks.forEach((link,i)=>{const oldTitle=link.getAttribute('title');let newTitle=drupalSettings.data.extlink.extTargetAppendNewWindowLabel;if(oldTitle!==null){if(Drupal.extlink.hasNewWindowText(oldTitle))return;newTitle=Drupal.extlink.combineLabels(oldTitle,newTitle);}externalLinks[i].setAttribute('title',newTitle);});Drupal.extlink=Drupal.extlink||{};Drupal.extlink.popupClickHandler=Drupal.extlink.popupClickHandler||(()=>{if(drupalSettings.data.extlink.extAlert)return confirm(drupalSettings.data.extlink.extAlertText);});const _that=this;Drupal.extlink.handleClick=function(event){const shouldNavigate=Drupal.extlink.popupClickHandler.call(_that);if(typeof shouldNavigate!=='undefined'&&!shouldNavigate)event.preventDefault();};externalLinks.forEach((val,i)=>{externalLinks[i].removeEventListener('click',Drupal.extlink.handleClick);externalLinks[i].addEventListener('click',Drupal.extlink.handleClick);});};Drupal.extlink.hasNewWindowText=function(label){return label.toLowerCase().indexOf(Drupal.t('new window'))!==-1;};Drupal.extlink.combineLabels=function(labelA,labelB){labelA=labelA||'';labelB=labelB||'';const labelANoParens=labelA.trim().replace('(','').replace(')','');const labelBNoParens=labelB.trim().replace('(','').replace(')','');if(labelA===labelANoParens){if(labelB===labelBNoParens)return `${labelA}, ${labelB}`;return `${labelA} ${labelB}`;}if(labelB===labelBNoParens)return `${labelB} ${labelA}`;return `(${labelANoParens}, ${labelBNoParens})`;};Drupal.extlink.applyClassAndSpan=(links,className,iconPlacement)=>{let linksToProcess;if(drupalSettings.data.extlink.extImgClass)linksToProcess=links;else linksToProcess=links.filter((link)=>{return link.querySelector('img, svg')===null;});for(let i=0;i0){const lastText=lastTextNode.textContent;const lastWordRegex=new RegExp(/\S+\s*$/,'g');const lastWord=lastText.match(lastWordRegex);if(lastWord!==null){const breakPreventer=document.createElement('span');breakPreventer.classList.add('extlink-nobreak');breakPreventer.textContent=lastWord[0];if(trailingWhitespace){breakPreventer.append(trailingWhitespace.textContent);trailingWhitespace.textContent='';}lastTextNode.textContent=lastText.substring(0,lastText.length-lastWord[0].length);lastTextNode.parentNode.append(breakPreventer);link=breakPreventer;}}}let iconElement;if(drupalSettings.data.extlink.extUseFontAwesome){iconElement=document.createElement('span');iconElement.setAttribute('class',`fa-${className} extlink`);if(className===drupalSettings.data.extlink.mailtoClass){if(drupalSettings.data.extlink.mailtoLabel)link.ariaLabel=drupalSettings.data.extlink.mailtoLabel;iconElement.innerHTML=``;}else if(className===drupalSettings.data.extlink.extClass){if(drupalSettings.data.extlink.extLabel)link.ariaLabel=drupalSettings.data.extlink.extLabel;iconElement.innerHTML=``;}else{if(className===drupalSettings.data.extlink.telClass){if(drupalSettings.data.extlink.telLabel)link.ariaLabel=drupalSettings.data.extlink.telLabel;iconElement.innerHTML=``;}}}else{iconElement=document.createElementNS('http://www.w3.org/2000/svg','svg');iconElement.setAttribute('focusable','false');iconElement.classList.add(className);iconElement.setAttribute('data-extlink-placement',iconPlacement);if(className===drupalSettings.data.extlink.mailtoClass){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.mailtoLabel);iconElement.setAttribute('viewBox','0 10 70 20');iconElement.innerHTML=`${drupalSettings.data.extlink.mailtoLabel}`;}else if(className===drupalSettings.data.extlink.extClass){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.extLabel);iconElement.setAttribute('viewBox','0 0 80 40');iconElement.innerHTML=`${drupalSettings.data.extlink.extLabel}`;}else{if(className===drupalSettings.data.extlink.telClass){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.telLabel);iconElement.setAttribute('viewBox','0 0 181.352 181.352');iconElement.innerHTML=`${drupalSettings.data.extlink.telLabel}`;}}}iconElement.setAttribute('role','img');iconElement.setAttribute('aria-hidden',drupalSettings.data.extlink.extHideIcons);link[iconPlacement](iconElement);}}};Drupal.behaviors.extlink=Drupal.behaviors.extlink||{};Drupal.behaviors.extlink.attach=(context,drupalSettings)=>{if(typeof extlinkAttach==='function')extlinkAttach(context);else Drupal.extlink.attach(context,drupalSettings);};})(Drupal,drupalSettings);;
var MessageBirdChatWidgetSettings={widgetId:'73cbe1f0-9cdd-42c7-a4ac-ba30d08eeebe',initializeOnLoad:true};!function(){"use strict";if(Boolean(document.getElementById("live-chat-widget-script")))console.error("MessageBirdChatWidget: Snippet loaded twice on page");else{var e,t;window.MessageBirdChatWidget={},window.MessageBirdChatWidget.queue=[];for(var i=["init","setConfig","toggleChat","identify","hide","on","shutdown"],n=function n(){var e=i[d];window.MessageBirdChatWidget[e]=function(){for(var t=arguments.length,i=new Array(t),n=0;n{$.ajax({type:'POST',cache:false,url:drupalSettings.statistics.url,data:drupalSettings.statistics.data});});})(jQuery,drupalSettings);;
(function($,Drupal,once){Drupal.behaviors.showAll={attach:function attach(context){var showAllGroup=$('.show-all__group',context);var showAllItemHidden=showAllGroup.find('[class*="show-all__group-item--hidden"]');var showAllButton=showAllGroup.find('.show-all__button');if(showAllItemHidden.length&&showAllButton.length){$(once('showAll',showAllButton)).on('click',function(){$(this).parent(showAllGroup).siblings(showAllItemHidden).fadeIn(200).removeClass('.show-all__group-item--hidden');$(this).addClass('hidden');});}}};})(jQuery,Drupal,once);;
(function($,Drupal,drupalSettings,window,once){Drupal.behaviors.loadSidebarBanner={attach:function attach(context){var sidebar=$('#youwe_sidebar_banner',context);var endpoint="/".concat(drupalSettings.path.pathPrefix,"sidebar-banner-ajax-render/").concat(drupalSettings.entity_id,"/").concat(drupalSettings.entity_type);function ajaxLoadSidebarBanner(wrapper){$.ajax({type:'GET',url:endpoint,dataType:'html',success:function success(response){if(!response.length){return;}
wrapper.html(response);Drupal.attachBehaviors();if(window.BUI!==undefined){window.BUI.initComponents();}},error:function error(){console.log('An error occured trying to fetch the Sidebar Banner with ajax');}});}
$(once('ajaxLoadSidebarBanner',sidebar)).each(function(){ajaxLoadSidebarBanner($(this));});}};})(jQuery,Drupal,drupalSettings,window,once);;
function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}
function _objectSpread(target){for(var i=1;i3&&arguments[3]!==undefined?arguments[3]:'';var contentTags=arguments.length>4&&arguments[4]!==undefined?arguments[4]:'';var contentTitle=arguments.length>5&&arguments[5]!==undefined?arguments[5]:'';var teaserType=arguments.length>6&&arguments[6]!==undefined?arguments[6]:'';window.dataLayer=window.dataLayer||[];window.dataLayer.push(_objectSpread(_objectSpread(_objectSpread(_objectSpread({event:event,entity_id:entityId,user_id:userId},attributionLabel?{attribution_label:attributionLabel}:{}),contentTags?{content_tags:contentTags}:{}),contentTitle?{content_title:contentTitle}:{}),teaserType?{teaser_type:teaserType}:{}));}
if(entity.length){$(once('gtmEntityClickElement',entity)).each(function(){var entityId=$(this).data('entity-id');var entityType=$(this).data('entity-type');var userId=$(this).data('user-id');var attributionLabel=$(this).data('attribution-label');var contentWrapper=$(this).find('.gtm-click-element__content');var contentLink=contentWrapper.length?contentWrapper.find('a'):$(this).find('.node--view-mode-teaser__link');var contentTitle=$(this).data('content-title');contentLink.on('click',function(){dataLayerPush("".concat(entityType,"_click"),entityId,userId,attributionLabel,entityContentTags,contentTitle,entityTeaserType);});});}}};})(jQuery,Drupal,drupalSettings,once);;
function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}
function _objectSpread(target){for(var i=1;i3&&arguments[3]!==undefined?arguments[3]:'';var contentTags=arguments.length>4&&arguments[4]!==undefined?arguments[4]:'';var contentTitle=arguments.length>5&&arguments[5]!==undefined?arguments[5]:'';var teaserType=arguments.length>6&&arguments[6]!==undefined?arguments[6]:'';window.dataLayer=window.dataLayer||[];window.dataLayer.push(_objectSpread(_objectSpread(_objectSpread(_objectSpread({event:event,entity_id:entityId,user_id:userId},attributionLabel?{attribution_label:attributionLabel}:{}),contentTags?{content_tags:contentTags}:{}),contentTitle?{content_title:contentTitle}:{}),teaserType?{teaser_type:teaserType}:{}));}
var viewObserver=new IntersectionObserver(function(entries,observer){entries.forEach(function(entry){if(entry.isIntersecting){var entityId=entry.target.dataset.entityId;var entityType=entry.target.dataset.entityType;var userId=entry.target.dataset.userId;var attributionLabel=entry.target.dataset.attributionLabel;var contentTitle=entry.target.dataset.contentTitle;dataLayerPush("".concat(entityType,"_viewed"),entityId,userId,attributionLabel,entityContentTags,contentTitle,entityTeaserType);observer.unobserve(entry.target);}});},{threshold:0.75});if(entity.length){$(once('gtmEntityViewElement',entity)).each(function(){viewObserver.observe($(this)[0]);});}}};})(jQuery,Drupal,drupalSettings,once);;
/* @license MIT no URL */
;(function(factory){var registeredInModuleLoader=false;if(typeof define==='function'&&define.amd){define(factory);registeredInModuleLoader=true;}if(typeof exports==='object'){module.exports=factory();registeredInModuleLoader=true;}if(!registeredInModuleLoader){var OldCookies=window.Cookies;var api=window.Cookies=factory();api.noConflict=function(){window.Cookies=OldCookies;return api;};}}(function(){function extend(){var i=0;var result={};for(;i1){attributes=extend({path:'/'},api.defaults,attributes);if(typeof attributes.expires==='number'){var expires=new Date();expires.setMilliseconds(expires.getMilliseconds()+attributes.expires*864e+5);attributes.expires=expires;}attributes.expires=attributes.expires?attributes.expires.toUTCString():'';try{result=JSON.stringify(value);if(/^[\{\[]/.test(result))value=result;}catch(e){}if(!converter.write)value=encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);else value=converter.write(value,key);key=encodeURIComponent(String(key));key=key.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent);key=key.replace(/[\(\)]/g,escape);var stringifiedAttributes='';for(var attributeName in attributes){if(!attributes[attributeName])continue;stringifiedAttributes+='; '+attributeName;if(attributes[attributeName]===true)continue;stringifiedAttributes+='='+attributes[attributeName];}return (document.cookie=key+'='+value+stringifiedAttributes);}if(!key)result={};var cookies=document.cookie?document.cookie.split('; '):[];var rdecode=/(%[0-9A-Z]{2})+/g;var i=0;for(;i