!function(){'use strict';!function(){window.FS=window.FS||{},window.FS.GDPR=window.FS.GDPR||{};const e='true'===(window.isWls||'false'),t=e=>{e.preventDefault(),window.OneTrust&&window.OneTrust.ToggleInfoDisplay&&window.OneTrust.ToggleInfoDisplay()};var n=document.querySelector('ul.PageFooter-legal');if(n){const r=JSON.parse(n.dataset.cookieTranslations),i=document.createElement('li');i.classList.add('PageFooter-legalItem','ty-c4'),e?(i.innerHTML=`<button class="CTA CTA--underlined--light PageFooter-legalLink ty-c4 ">${r.cookiePreferences}</button>`,i.onclick=t):i.innerHTML=`<button id="ot-sdk-btn" class="ot-sdk-show-settings fs-footer-button">${r.cookieSettings}</button>`;const c=document.createElement('li');c.classList.add('PageFooter-legalItem','ty-c4'),c.innerHTML=`<button class="CTA CTA--underlined--light PageFooter-legalLink ty-c4 ">${r.dontSell}</button>`,c.onclick=t;var o=n.querySelectorAll('li.PageFooter-legalItem');o.length>2?(n.insertBefore(i,o[2]),n.insertBefore(c,o[2])):(n.appendChild(i),n.appendChild(c))}else{const e=document.querySelectorAll('.fs-open-cookie-preferences');if(e)for(const n of e)n.onclick=t}var r=[];window.FS.GDPR.onConsentChange=function(e){r.push(e)};var i=[];window.FS.GDPR.getSavedConsent=function(e){window.OnetrustActiveGroups?e(f(window.OnetrustActiveGroups.split(','))):i.push(e)};var c={};window.FS.GDPR.ifAllowed=function(e,t){window.OnetrustActiveGroups?f(window.OnetrustActiveGroups)[e]&&t():c[e]?c[e].push(t):c[e]=[t]};const s={};window.FS.GDPR.loadScript=function({script:e,tagOptions:t={}},n,o=(()=>{}),r=(()=>{})){window.FS.GDPR.getSavedConsent((i=>{if(i[n]){if(!s[e]){var c=document.createElement('script');c.src=e,Object.keys(t).forEach((e=>{c[e]=t[e]}));var a=document.getElementsByTagName('script')[0];a.parentNode.insertBefore(c,a),s[e]=!0}o()}else r()}))};var a=document.createElement('script');a.type='text/javascript',a.charset='UTF-8',a.dataset.documentLanguage=!0,a.src='https://cdn.cookielaw.org/scripttemplates/otSDKStub.js',a.dataset.domainScript='9e48cc7d-034f-4801-a2a7-b5b0c39710cc';var d=document.createElement('script');d.type='text/javascript',d.innerHTML='function OptanonWrapper() { }',document.head.insertBefore(d,document.head.firstChild),document.head.insertBefore(a,document.head.firstChild);var l=document.querySelector('div[fs-gdpr-banner]')||document.querySelector('link[href*="/alt/fshr/shared/css/gdpr-banner"'),u=document.getElementById('GdprCookieBanner');l&&l.remove(),u&&u.remove();var f=function(e){return{necessary:(e=e||[]).includes('C0001'),performance:e.includes('C0002'),functional:e.includes('C0003'),ads:e.includes('C0004'),social:e.includes('C0005')}};var p=function(){var e=document.getElementById('onetrust-accept-btn-handler'),t=document.getElementById('accept-recommended-btn-handler'),n=document.getElementsByClassName('save-preference-btn-handler onetrust-close-btn-handler')[0];!function(e){var t=('; '+document.cookie).split('; '+e+'=');if(2==t.length)return t.pop().split(';').shift()}('OptanonAlertBoxClosed')&&e&&e.addEventListener('click',(function(){location.reload()})),t&&t.addEventListener('click',(function(){location.reload()})),n&&n.addEventListener('click',(function(){setTimeout((()=>{location.reload()}),1e3)}))},m=function(e,t,n,o){o=o||(new Date).getTime(),window[e]?t():(new Date).getTime()-o>=3e4?n():setTimeout((function(){m(e,t,n,o)}),500)};var w;(w=function(){m('OneTrust',(function(){p(),window.OneTrust.OnConsentChanged((function(e){r.forEach((function(t){t(f(e.detail))}))}))}),(function(){console.error('Failed to find OneTrust after 30 seconds.')})),m('OnetrustActiveGroups',(function(){var e=f(window.OnetrustActiveGroups.split(','));i.forEach((function(t){t(e)})),Object.keys(e).filter((function(t){return e[t]&&c[t]})).forEach((function(e){for(;c[e].length>0;)c[e].pop()()}))}),(function(){console.error('Failed to find OneTrust Active Groups after 30 seconds.'),i.forEach((function(e){e(f([]))}))}))})&&'function'==typeof w?'complete'===document.readyState?w():window.addEventListener('load',(()=>{w()})):console.error('onLoadComplete requires a callback function')}()}();
