@nationalarchives/frontend 0.22.0 → 0.23.0
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/nationalarchives/all+analytics.js +1 -1
- package/nationalarchives/all+analytics.js.map +1 -1
- package/nationalarchives/all.css +1 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/all.js +1 -1
- package/nationalarchives/all.js.map +1 -1
- package/nationalarchives/analytics.js +1 -1
- package/nationalarchives/analytics.js.map +1 -1
- package/nationalarchives/analytics.mjs +12 -4
- package/nationalarchives/assets/fonts/fa-brands-400.woff2 +0 -0
- package/nationalarchives/assets/fonts/fa-solid-900.woff2 +0 -0
- package/nationalarchives/components/accordion/accordion.js +1 -1
- package/nationalarchives/components/accordion/accordion.js.map +1 -1
- package/nationalarchives/components/accordion/accordion.mjs +1 -1
- package/nationalarchives/components/accordion/fixtures.json +26 -7
- package/nationalarchives/components/accordion/macro-options.json +9 -2
- package/nationalarchives/components/accordion/template.njk +2 -2
- package/nationalarchives/components/breadcrumbs/breadcrumbs.js +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.js.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.mjs +1 -0
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +10 -4
- package/nationalarchives/components/cookie-banner/cookie-banner.js +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.js.map +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.mjs +1 -1
- package/nationalarchives/components/date-input/date-input.css +1 -1
- package/nationalarchives/components/date-input/date-input.css.map +1 -1
- package/nationalarchives/components/date-input/date-input.js +1 -1
- package/nationalarchives/components/date-input/date-input.js.map +1 -1
- package/nationalarchives/components/date-input/date-input.scss +4 -0
- package/nationalarchives/components/error-summary/error-summary.js +1 -1
- package/nationalarchives/components/error-summary/error-summary.js.map +1 -1
- package/nationalarchives/components/file-input/file-input.css.map +1 -1
- package/nationalarchives/components/file-input/file-input.js +1 -1
- package/nationalarchives/components/file-input/file-input.js.map +1 -1
- package/nationalarchives/components/file-input/file-input.scss +3 -3
- package/nationalarchives/components/footer/fixtures.json +3 -3
- package/nationalarchives/components/footer/footer.js +1 -1
- package/nationalarchives/components/footer/footer.js.map +1 -1
- package/nationalarchives/components/footer/template.njk +1 -1
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/gallery/gallery.js +1 -1
- package/nationalarchives/components/gallery/gallery.js.map +1 -1
- package/nationalarchives/components/gallery/gallery.scss +2 -2
- package/nationalarchives/components/global-header/global-header.js +1 -1
- package/nationalarchives/components/global-header/global-header.js.map +1 -1
- package/nationalarchives/components/header/header.js +1 -1
- package/nationalarchives/components/header/header.js.map +1 -1
- package/nationalarchives/components/hero/fixtures.json +7 -7
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +20 -24
- package/nationalarchives/components/hero/template.njk +3 -3
- package/nationalarchives/components/picture/picture.css.map +1 -1
- package/nationalarchives/components/picture/picture.js +1 -1
- package/nationalarchives/components/picture/picture.js.map +1 -1
- package/nationalarchives/components/picture/picture.scss +2 -3
- package/nationalarchives/components/skip-link/skip-link.js +1 -1
- package/nationalarchives/components/skip-link/skip-link.js.map +1 -1
- package/nationalarchives/components/tabs/tabs.js +1 -1
- package/nationalarchives/components/tabs/tabs.js.map +1 -1
- package/nationalarchives/components/text-input/text-input.js +1 -1
- package/nationalarchives/components/text-input/text-input.js.map +1 -1
- package/nationalarchives/font-awesome.css +9 -9
- package/nationalarchives/font-awesome.css.map +1 -1
- package/nationalarchives/font-awesome.scss +6 -5
- package/nationalarchives/lib/analytics-helpers.mjs +9 -13
- package/nationalarchives/lib/cookies.mjs +69 -14
- package/nationalarchives/lib/font-awesome/_animated.scss +93 -98
- package/nationalarchives/lib/font-awesome/_bordered.scss +27 -0
- package/nationalarchives/lib/font-awesome/_core.scss +20 -40
- package/nationalarchives/lib/font-awesome/_fa.scss +3 -0
- package/nationalarchives/lib/font-awesome/_functions.scss +3 -52
- package/nationalarchives/lib/font-awesome/_icons.scss +6 -4
- package/nationalarchives/lib/font-awesome/_list.scss +9 -6
- package/nationalarchives/lib/font-awesome/_mixins.scss +23 -60
- package/nationalarchives/lib/font-awesome/_pulled.scss +15 -0
- package/nationalarchives/lib/font-awesome/_rotated-flipped.scss +10 -9
- package/nationalarchives/lib/font-awesome/_shims.scss +1255 -1250
- package/nationalarchives/lib/font-awesome/_sizing.scss +6 -4
- package/nationalarchives/lib/font-awesome/_stacked.scss +11 -10
- package/nationalarchives/lib/font-awesome/_variables.scss +5110 -5025
- package/nationalarchives/lib/font-awesome/_widths.scss +12 -0
- package/nationalarchives/lib/font-awesome/brands.css +3 -3
- package/nationalarchives/lib/font-awesome/brands.css.map +1 -1
- package/nationalarchives/lib/font-awesome/brands.scss +29 -16
- package/nationalarchives/lib/font-awesome/fontawesome.css +3 -3
- package/nationalarchives/lib/font-awesome/fontawesome.css.map +1 -1
- package/nationalarchives/lib/font-awesome/fontawesome.scss +12 -15
- package/nationalarchives/lib/font-awesome/solid.css +3 -3
- package/nationalarchives/lib/font-awesome/solid.css.map +1 -1
- package/nationalarchives/lib/font-awesome/solid.scss +39 -14
- package/nationalarchives/lib/font-awesome/v4-shims.css +3 -3
- package/nationalarchives/lib/font-awesome/v4-shims.css.map +1 -1
- package/nationalarchives/lib/font-awesome/v4-shims.scss +5 -5
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/nationalarchives/templates/fixtures.json +6 -6
- package/nationalarchives/tools/_index.scss +1 -0
- package/nationalarchives/tools/_shadows.scss +5 -0
- package/nationalarchives/utilities/lists/_index.scss +0 -1
- package/package.json +2 -2
- package/nationalarchives/assets/fonts/fa-brands-400.ttf +0 -0
- package/nationalarchives/assets/fonts/fa-solid-900.ttf +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TNAFrontend=e():t.TNAFrontend=e()}(self,(()=>(()=>{"use strict";var t={24:(t,e,n)=>{n.d(e,{CookieBanner:()=>s});var i=n(169);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$acceptButton=e&&e.querySelector('[value="accept"]'),this.$rejectButton=e&&e.querySelector('[value="reject"]'),this.$prompt=e&&e.querySelector(".tna-cookie-banner__message--prompt"),this.$acceptedMessage=e&&e.querySelector(".tna-cookie-banner__message--accepted"),this.$rejectedMessage=e&&e.querySelector(".tna-cookie-banner__message--rejected"),this.$closeButtons=e&&e.querySelectorAll('[value="close"]'),this.$module&&this.$acceptButton&&this.$rejectButton&&this.$prompt&&this.$acceptedMessage&&this.$rejectedMessage&&this.$closeButtons&&(this.cookies=new i.A({newInstance:!0}),this.cookiePreferencesSetKey=this.$module.dataset.preferencesKey||"cookie_preferences_set",this.cookies.completePoliciesOnInit||this.cookies.delete(this.cookiePreferencesSetKey),this.cookies.exists(this.cookiePreferencesSetKey)&&this.cookies.hasValue(this.cookiePreferencesSetKey,"true")||(this.$module.removeAttribute("hidden"),this.$acceptButton.addEventListener("click",(function(){return n.accept()})),this.$rejectButton.addEventListener("click",(function(){return n.reject()}))))},(e=[{key:"accept",value:function(){this.$prompt.setAttribute("hidden",""),this.complete(),this.$acceptedMessage.removeAttribute("hidden"),this.$acceptedMessage.focus(),this.$acceptedMessage.setAttribute("tabindex","-1"),this.cookies.acceptAllPolicies()}},{key:"reject",value:function(){this.$prompt.setAttribute("hidden",""),this.complete(),this.$rejectedMessage.removeAttribute("hidden"),this.$rejectedMessage.focus(),this.$rejectedMessage.setAttribute("tabindex","-1"),this.cookies.rejectAllPolicies()}},{key:"complete",value:function(){var t=this;this.cookies.set(this.cookiePreferencesSetKey,!0),this.$closeButtons.forEach((function(e){e.addEventListener("click",(function(){return t.close()}))}))}},{key:"close",value:function(){this.$module.setAttribute("hidden","")}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},42:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{Tabs:()=>a});var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$tabList=e&&e.querySelector(".tna-tabs__list"),this.$tabListItemLinks=e&&this.$tabList&&this.$tabList.querySelectorAll(".tna-tabs__button"),this.$tabItems=e&&e.querySelectorAll(".tna-tabs__item"),this.$module&&this.$tabList&&this.$tabListItemLinks&&this.$tabItems&&this.$tabListItemLinks.length===this.$tabItems.length&&(this.currentTabIndex=0,this.init())},e=[{key:"init",value:function(){var t=this;this.$module.classList.add("tna-tabs--interactive"),this.$tabList.removeAttribute("hidden"),this.$tabListItemLinks.forEach((function(e){var n=e.getAttribute("aria-controls");e.setAttribute("aria-selected",!1);var i=document.getElementById(n);i.setAttribute("aria-labelledby",e.id),i.setAttribute("role","tabpanel"),e.addEventListener("click",(function(e){return t.handleItemLinkClick(e)}),!0)})),this.switchTabByIndex(this.currentTabIndex),this.$module.addEventListener("keydown",(function(e){return t.handleItemLinkKeyDown(e)}))}},{key:"handleItemLinkClick",value:function(t){t.preventDefault();var e=t.currentTarget.getAttribute("aria-controls");this.switchTabByID(e)}},{key:"handleItemLinkKeyDown",value:function(t){var e=!1;switch(t.key){case"ArrowLeft":case"ArrowUp":this.previousTab(),e=!0;break;case"ArrowRight":case"ArrowDown":this.nextTab(),e=!0;break;case"Home":this.switchTabByIndex(0,!0),e=!0;break;case"End":this.switchTabByIndex(this.$tabListItemLinks.length-1,!0),e=!0}e&&(t.stopPropagation(),t.preventDefault())}},{key:"nextTab",value:function(){this.currentTabIndex<this.$tabListItemLinks.length-1?this.switchTabByIndex(this.currentTabIndex+1,!0):this.switchTabByIndex(0,!0)}},{key:"previousTab",value:function(){this.currentTabIndex>=1?this.switchTabByIndex(this.currentTabIndex-1,!0):this.switchTabByIndex(this.$tabListItemLinks.length-1,!0)}},{key:"switchTabByIndex",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.currentTabIndex=t,this.$tabListItemLinks.forEach((function(t,i){i===e.currentTabIndex?(t.setAttribute("aria-selected",!0),t.setAttribute("tabindex","0"),n&&t.focus()):(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"))})),this.$tabItems.forEach((function(t,n){n===e.currentTabIndex?(t.removeAttribute("hidden"),t.setAttribute("tabindex","0")):(t.setAttribute("hidden",""),t.setAttribute("tabindex","-1"))}))}},{key:"switchTabByID",value:function(t){var e=Array.from(this.$tabItems).findIndex((function(e){return e.getAttribute("id")===t}));this.switchTabByIndex(e)}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},76:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{FileInputDroppable:()=>a});var a=function(){return t=function t(e){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$input=e&&e.querySelector(".tna-file-input"),this.$module&&this.$input){this.acceptMutltipleFiles=this.$input.hasAttribute("multiple"),this.$droppableArea=document.createElement("div"),this.$droppableArea.classList.add("tna-file-input__droppable"),this.$module.insertBefore(this.$droppableArea,this.$input),this.$droppableArea.appendChild(this.$input),this.$pseudoSelectFileText=document.createElement("span"),this.$pseudoSelectFileText.setAttribute("aria-live","polite"),this.$pseudoSelectFileText.classList.add("tna-file-input__droppable-status"),this.$pseudoSelectFileText.textContent="No file".concat(this.acceptMutltipleFiles?"s":""," chosen"),this.$droppableArea.appendChild(this.$pseudoSelectFileText);var i=document.createElement("div");i.classList.add("tna-button-group","tna-button-group--small","tna-!--margin-top-xs","tna-file-input__droppable-buttons"),this.$droppableArea.appendChild(i);var r=document.createElement("span");r.classList.add("tna-button"),r.textContent="Choose file".concat(this.acceptMutltipleFiles?"s":""),i.appendChild(r);var o=document.createElement("span");o.textContent="or drop file".concat(this.acceptMutltipleFiles?"s":""),i.appendChild(o),this.$droppableAreaAriaLabel=document.createElement("span"),this.$droppableAreaAriaLabel.classList.add("tna-visually-hidden"),this.$droppableAreaAriaLabel.setAttribute("aria-live","assertive"),this.$droppableArea.appendChild(this.$droppableAreaAriaLabel),this.$input.addEventListener("dragenter",(function(t){return n.showDropTarget(t)})),this.$input.addEventListener("dragleave",(function(){return n.hideDropTarget()})),this.$input.addEventListener("dragend",(function(){return n.hideDropTarget()})),this.$input.addEventListener("change",(function(){return n.onChange()})),this.$input.addEventListener("drop",(function(){return n.onChange()}))}},e=[{key:"isContainingFiles",value:function(t){var e=0===t.types.length,n=t.types.some((function(t){return"Files"===t}));return e||n}},{key:"showDropTarget",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.dataTransfer&&this.isContainingFiles(t.dataTransfer)&&(this.$droppableArea.classList.add(t.dataTransfer.items.length>1?"tna-file-input__droppable--over-multiple":"tna-file-input__droppable--over"),e&&(this.$droppableAreaAriaLabel.textContent="Entered drop zone"))}},{key:"hideDropTarget",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$droppableArea.classList.remove("tna-file-input__droppable--over","tna-file-input__droppable--over-multiple"),t&&(this.$droppableAreaAriaLabel.textContent="Left drop zone")}},{key:"onChange",value:function(){var t,e=this.$input.files;this.acceptMutltipleFiles?0===e.length?this.$pseudoSelectFileText.textContent="No files chosen":this.$pseudoSelectFileText.textContent="".concat(e.length," file").concat(e.length>1?"s":""," chosen"):this.$pseudoSelectFileText.textContent=(null===(t=e[0])||void 0===t?void 0:t.name)||"No file chosen",this.hideDropTarget(!1)}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},169:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,h(i.key),i)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{A:()=>f}),window.TNAFrontendCookies=window.TNAFrontendCookies||null,window.TNAFrontendCookieEvents=window.TNAFrontendCookieEvents||null;var m=function(){return c((function t(){if(l(this,t),d(this,"events",{}),d(this,"oneTimeEvents",{}),window.TNAFrontendCookieEvents)return window.TNAFrontendCookieEvents;window.TNAFrontendCookieEvents=this}),[{key:"on",value:function(t,e){Object.hasOwn(this.events,t)||(this.events[t]=[]),this.events[t]=[].concat(a(this.events[t]),[e])}},{key:"once",value:function(t,e){Object.hasOwn(this.oneTimeEvents,t)||(this.oneTimeEvents[t]=[]),this.oneTimeEvents[t]=[].concat(a(this.oneTimeEvents[t]),[e])}},{key:"trigger",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.hasOwn(this.events,t)&&this.events[t].forEach((function(t){return t.call(e,n)})),Object.hasOwn(this.oneTimeEvents,t))for(var i=this.oneTimeEvents[t].length-1;i>=0;i--)this.oneTimeEvents[t][i].call(this,n),this.oneTimeEvents[t].splice(i,1)}}])}(),p=["usage","settings","marketing","essential"],f=function(){return c((function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,t),d(this,"defaultDomain",""),d(this,"defaultPath",""),d(this,"secure",!0),d(this,"policiesKey",""),d(this,"events",null),d(this,"defaultAge",null),d(this,"completePoliciesOnInit",!1);var i=n.defaultDomain,r=n.defaultPath,o=n.secure,a=n.policiesKey,s=n.newInstance,u=void 0!==s&&s,c=n.defaultAge,h=n.noInit,f=void 0!==h&&h;if(!u&&window.TNAFrontendCookies)return window.TNAFrontendCookies;this.defaultDomain=void 0===i?document.documentElement.dataset.tnaCookiesDomain||"":i,this.defaultPath=void 0===r?document.documentElement.dataset.tnaCookiesPath||"/":r,this.secure=void 0===o?"true"!==document.documentElement.dataset.tnaCookiesInsecure:o,this.policiesKey=void 0===a?document.documentElement.dataset.tnaCookiesPoliciesKey||"cookies_policy":a,this.defaultAge=void 0===c?parseInt(document.documentElement.dataset.tnaCookiesDefaultAge)||31536e3:c,this.events=new m,this.completePoliciesOnInit=Object.keys(this.policies).length===p.length&&p.every((function(t){return Object.keys(e.policies).includes(t)&&"boolean"==typeof e.policies[t]})),this.completePoliciesOnInit||f||this.init(),window.TNAFrontendCookies=this}),[{key:"init",value:function(){var t=this.policies,e=Object.fromEntries(Object.keys(t).filter((function(t){return p.includes(t)})).map((function(e){return[e,t[e]]})));this.savePolicies(o(o({usage:!1,settings:!1,marketing:!1},e),{},{essential:!0}))}},{key:"destroyInstance",value:function(){window.TNAFrontendCookies=null}},{key:"all",get:function(){var t={};return document.cookie.split("; ").filter((function(t){return t})).forEach((function(e){var n=e.trim().split("=");n[0]&&(t[n[0]]=n[1])})),t}},{key:"policies",get:function(){try{return JSON.parse(this.get(this.policiesKey)||"{}")}catch(t){return{}}}},{key:"exists",value:function(t){return Object.hasOwn(this.all,t)}},{key:"hasValue",value:function(t,e){return this.get(t)==e}},{key:"get",value:function(t){return this.exists(t)?decodeURIComponent(this.all[t]):null}},{key:"set",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.maxAge,r=void 0===i?this.defaultAge:i,o=n.sameSite,a=void 0===o?"Lax":o,s=n.domain,l=void 0===s?this.defaultDomain:s,u=n.path,c=void 0===u?this.defaultPath:u,d=n.secure,h=void 0===d?this.secure:d,m=n.session,p=void 0!==m&&m;if(t){var f="".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e),";").concat(l?" domain=".concat(l,"; "):""," samesite=").concat(a,"; path=").concat(c).concat(p?"":"; max-age=".concat(r)).concat(h?"; secure":"");document.cookie=f,this.events.trigger("setCookie",{key:t,value:e,maxAge:r,path:c,sameSite:a,domain:l,secure:h,session:p,cookie:f})}}},{key:"delete",value:function(t){var e={maxAge:-1,path:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",domain:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)||void 0};this.set(t,"",e),this.events.trigger("deleteCookie",o({key:t},e))}},{key:"deleteAll",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Object.keys(this.all).forEach((function(i){t.delete(i,e,n)})),this.events.trigger("deleteAllCookies",{path:e,domain:n})}},{key:"acceptPolicy",value:function(t){this.setPolicy(t,!0),this.events.trigger("acceptPolicy",t),this.events.trigger("changePolicy",d({},t,!0))}},{key:"rejectPolicy",value:function(t){this.setPolicy(t,!1),this.events.trigger("rejectPolicy",t),this.events.trigger("changePolicy",d({},t,!1))}},{key:"setPolicy",value:function(t,e){"essential"!==t&&(this.savePolicies(o(o({},this.policies),{},d(d({},t,e),"essential",!0))),this.events.trigger("changePolicy",d({},t,e)))}},{key:"acceptAllPolicies",value:function(){var t=Object.fromEntries(Object.keys(this.policies).map((function(t){return[t.toLowerCase(),!0]})));this.savePolicies(t),this.events.trigger("acceptAllPolicies"),this.events.trigger("changePolicy",t)}},{key:"rejectAllPolicies",value:function(){var t=o(o({},Object.fromEntries(Object.keys(this.policies).map((function(t){return[t.toLowerCase(),!1]})))),{},{essential:!0});this.savePolicies(t),this.events.trigger("rejectAllPolicies"),this.events.trigger("changePolicy",t)}},{key:"savePolicies",value:function(t){this.set(this.policiesKey,JSON.stringify(t))}},{key:"isPolicyAccepted",value:function(t){return Object.hasOwn(this.policies,t)?!0===this.policies[t]:null}},{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"once",value:function(t,e){this.events.once(t,e)}}])}()},177:(t,e,n)=>{n.d(e,{Accordion:()=>i.Accordion,Breadcrumbs:()=>r.Breadcrumbs,CookieBanner:()=>o.CookieBanner,Cookies:()=>y.A,DateInputProgressive:()=>a.DateInputProgressive,ErrorSummary:()=>s.ErrorSummary,FileInputDroppable:()=>l.FileInputDroppable,Footer:()=>u.Footer,Gallery:()=>c.Gallery,GlobalHeader:()=>d.GlobalHeader,Header:()=>h.Header,Picture:()=>m.Picture,SkipLink:()=>p.SkipLink,Tabs:()=>f.Tabs,TextInput:()=>v.TextInput,initAll:()=>b});var i=n(944),r=n(592),o=n(24),a=n(728),s=n(552),l=n(76),u=n(876),c=n(344),d=n(576),h=n(432),m=n(384),p=n(292),f=n(42),v=n(866),y=n(169),b=function(t){var e=(t=void 0!==t?t:{}).scope instanceof HTMLElement?t.scope:document,n=document.documentElement;n.classList.add("tna-template--js-enabled");var y=function(){window.removeEventListener("touchstart",y),n.classList.add("tna-template--touched")};window.addEventListener("touchstart",y),window.addEventListener("keydown",(function(t){"Tab"===t.key&&(n.classList.add("tna-template--tabbed"),n.classList.remove("tna-template--clicked"))})),window.addEventListener("mousedown",(function(){n.classList.add("tna-template--clicked"),n.classList.remove("tna-template--tabbed")})),e.querySelectorAll('[data-module="tna-accordion"]').forEach((function(t){new i.Accordion(t)}));var b=e.querySelector('[data-module="tna-breadcrumbs"]');b&&new r.Breadcrumbs(b);var g=e.querySelector('[data-module="tna-cookie-banner"]');g&&new o.CookieBanner(g),e.querySelectorAll('[data-module="date-input-progressive"]').forEach((function(t){new a.DateInputProgressive(t)}));var k=e.querySelector('[data-module="tna-error-summary"]');k&&new s.ErrorSummary(k).init(),e.querySelectorAll('[data-module="tna-file-input"]').forEach((function(t){new l.FileInputDroppable(t)}));var w=e.querySelector('[data-module="tna-footer"]');w&&new u.Footer(w),e.querySelectorAll('[data-module="tna-gallery"]').forEach((function(t){new c.Gallery(t)}));var $=e.querySelector('[data-module="tna-global-header"]');$&&new d.GlobalHeader($);var _=e.querySelector('[data-module="tna-header"]');_&&new h.Header(_),e.querySelectorAll('[data-module="tna-picture"]').forEach((function(t){new m.Picture(t)})),e.querySelectorAll('[data-module="tna-skip-link"]').forEach((function(t){new p.SkipLink(t)})),e.querySelectorAll('[data-module="tna-tabs"]').forEach((function(t){new f.Tabs(t)})),e.querySelectorAll('[data-module="tna-text-input"]').forEach((function(t){new v.TextInput(t)}));var S=function(t){var e=t.scrollWidth>t.clientWidth,n=t.querySelector(".tna-table__caption");e?(t.setAttribute("tabindex","0"),null==n||n.classList.add("tna-table__caption--scroll")):(t.removeAttribute("tabindex"),null==n||n.classList.remove("tna-table__caption--scroll"))},A=document.querySelectorAll(".tna-table-wrapper:has(.tna-table__caption)");A.forEach((function(t){return S(t)})),window.addEventListener("resize",(function(){A.forEach((function(t){return S(t)}))})),window.matchMedia("print").addEventListener("change",(function(t){t.matches?(document.querySelectorAll(".tna-details__details:not([open])").forEach((function(t){t.setAttribute("open",""),t.dataset.wasClosed=""})),document.querySelectorAll(".tna-accordion__content[hidden], .tna-picture__transcript[hidden]").forEach((function(t){t.removeAttribute("hidden"),t.dataset.wasClosed=""}))):(document.querySelectorAll(".tna-details__details[data-was-closed]").forEach((function(t){t.removeAttribute("open"),delete t.dataset.wasClosed})),document.querySelectorAll(".tna-accordion__content[data-was-closed], .tna-picture__transcript[data-was-closed]").forEach((function(t){t.setAttribute("hidden",""),t.dataset.wasClosed=""})))}))}},181:(t,e,n)=>{n.d(e,{A:()=>i});const i=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},292:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{SkipLink:()=>a});var a=function(){return t=function t(e){var n,i,r,a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,r=!1,(i=o(i="linkedElementListener"))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,this.$module=e,this.linkedElementId=e.getAttribute("href").split("#").pop(),this.$linkedElement=e&&this.linkedElementId&&document.getElementById(this.linkedElementId),this.$module&&this.$linkedElement&&this.$module.addEventListener("click",(function(){return a.focusLinkedElement()}))},(e=[{key:"focusLinkedElement",value:function(){var t=this;this.$linkedElement.getAttribute("tabindex")||(this.$linkedElement.setAttribute("tabindex","-1"),this.$linkedElement.classList.add("tna-!--no-focus-style"),this.linkedElementListener||(this.$linkedElement.addEventListener("blur",(function(){return t.removeFocusProperties()})),this.linkedElementListener=!0)),this.$linkedElement.focus()}},{key:"removeFocusProperties",value:function(){this.$linkedElement.removeAttribute("tabindex"),this.$linkedElement.classList.remove("tna-!--no-focus-style")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},344:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{Gallery:()=>a});var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$itemsContainer=e&&e.querySelector(".tna-gallery__items"),this.$items=this.$itemsContainer&&this.$itemsContainer.querySelectorAll(".tna-gallery__item"),this.$navigation=e&&e.querySelector(".tna-gallery__navigation"),this.$navigationItems=this.$navigation&&e.querySelectorAll(".tna-gallery__navigation-item"),this.$options=e&&e.querySelector(".tna-gallery__options"),this.$navigationButtons=e&&e.querySelector(".tna-gallery__navigation-buttons"),this.$module&&this.$itemsContainer&&this.$items&&!(this.$items.length<2)&&this.$navigation&&this.$navigationItems&&this.$options&&this.$navigationButtons&&(this.$module.classList.add("tna-gallery--interactive"),this.$showIndex=this.$options.querySelector('button[value="show-index"]'),this.$enterFullscreen=this.$options.querySelector('button[value="enter-fullscreen"]'),this.$exitFullscreen=this.$options.querySelector('button[value="exit-fullscreen"]'),this.$navigationButtonPrev=this.$navigationButtons.querySelector(".tna-gallery__navigation-prev"),this.$navigationButtonNext=this.$navigationButtons.querySelector(".tna-gallery__navigation-next"),this.$module.addEventListener("fullscreenchange",(function(){return n.syncFullScreen()})),this.setup(),this.allowGridIndex=this.$module.dataset.showgrid||!1,this.allowGridIndex?this.showIndex():(this.currentId=this.$items[0].id,this.showItem(this.currentId)))},e=[{key:"setup",value:function(){var t,e,n,i,r,o,a,s=this;this.$items.forEach((function(t){var e;t.setAttribute("hidden",""),t.setAttribute("aria-hidden","true"),null===(e=t.querySelector(".tna-gallery__item-header"))||void 0===e||e.setAttribute("aria-hidden","true")})),this.$navigation.removeAttribute("hidden"),this.$navigationItems.forEach((function(t){t.addEventListener("click",(function(){s.showItem(t.getAttribute("aria-controls")),s.$itemsContainer.setAttribute("tabindex","0"),s.$itemsContainer.focus()}))})),this.$module.addEventListener("keydown",(function(t){var e=!1;switch(t.key){case"ArrowLeft":case"ArrowUp":s.showPreviousItem(),e=!0;break;case"ArrowRight":case"ArrowDown":s.showNextItem(),e=!0;break;case"Home":s.showFirstItem(),e=!0;break;case"End":s.showLastItem(),e=!0}e&&(t.stopPropagation(),t.preventDefault())})),this.$options.removeAttribute("hidden"),document.fullscreenEnabled&&this.$enterFullscreen&&this.$exitFullscreen&&(null===(r=this.$enterFullscreen)||void 0===r||r.addEventListener("click",(function(){return s.enterFullScreen()})),null===(o=this.$exitFullscreen)||void 0===o||o.addEventListener("click",(function(){return s.exitFullScreen()})),null===(a=this.$enterFullscreen)||void 0===a||a.removeAttribute("hidden")),null===(t=this.$showIndex)||void 0===t||t.addEventListener("click",(function(){return s.showIndex()})),null===(e=this.$navigationButtons)||void 0===e||e.removeAttribute("hidden"),null===(n=this.$navigationButtonPrev)||void 0===n||n.addEventListener("click",(function(){s.showPreviousItem()})),null===(i=this.$navigationButtonNext)||void 0===i||i.addEventListener("click",(function(){s.showNextItem()})),this.$liveRegion=document.createElement("div"),this.$liveRegion.setAttribute("aria-live","polite"),this.$liveRegion.setAttribute("aria-atomic","true"),this.$liveRegion.setAttribute("class","tna-gallery__item-header"),this.$itemsContainer.prepend(this.$liveRegion),this.$itemsContainer.classList.add("tna-gallery__items--hide-item-titles"),this.$itemsContainer.addEventListener("blur",(function(){return s.$itemsContainer.removeAttribute("tabindex")}))}},{key:"showIndex",value:function(){var t;this.showItem(""),this.$itemsContainer.classList.add("tna-gallery__items--hide-items"),null===(t=this.$showIndex)||void 0===t||t.setAttribute("hidden","")}},{key:"showItem",value:function(t){var e,n=this;this.$items.forEach((function(e){t&&e.id===t?(e.removeAttribute("hidden"),e.removeAttribute("aria-hidden")):(e.setAttribute("hidden",""),e.setAttribute("aria-hidden","true"))})),this.$navigationItems.forEach((function(e){t&&e.getAttribute("aria-controls")===t?(e.setAttribute("aria-current","true"),n.isFullScreen()&&e.scrollIntoView({block:"nearest"})):e.setAttribute("aria-current","false")})),this.allowGridIndex&&(null===(e=this.$showIndex)||void 0===e||e.removeAttribute("hidden")),this.$itemsContainer.classList.remove("tna-gallery__items--hide-items"),this.currentId=t,this.$liveRegion.textContent="Image ".concat(this.getCurrentItemIndex()+1," of ").concat(this.$items.length)}},{key:"getCurrentItemIndex",value:function(){var t=this;return Array.from(this.$items).findIndex((function(e){return e.id===t.currentId}))}},{key:"showPreviousItem",value:function(){var t=this.getCurrentItemIndex()-1;t<0&&(t=this.$items.length-1),this.showItem(this.$items[t].id)}},{key:"showNextItem",value:function(){var t=this.getCurrentItemIndex()+1;t>=this.$items.length&&(t=0),this.showItem(this.$items[t].id)}},{key:"showFirstItem",value:function(){this.showItem(this.$items[0].id)}},{key:"showLastItem",value:function(){this.showItem(this.$items[this.$items.length-1].id)}},{key:"isFullScreen",value:function(){return document.fullscreenElement}},{key:"enterFullScreen",value:function(){this.$module.requestFullscreen(),this.syncFullScreen(),this.$module.focus()}},{key:"exitFullScreen",value:function(){document.exitFullscreen(),this.syncFullScreen()}},{key:"syncFullScreen",value:function(){this.isFullScreen()?(this.$enterFullscreen.setAttribute("hidden",""),this.$exitFullscreen.removeAttribute("hidden")):(this.$exitFullscreen.setAttribute("hidden",""),this.$enterFullscreen.removeAttribute("hidden"))}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},384:(t,e,n)=>{n.d(e,{Picture:()=>s});var i=n(181);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$imageWrapper=e&&e.querySelector(".tna-picture__image-wrapper"),this.$transcriptToggle=this.$imageWrapper&&this.$imageWrapper.querySelector(".tna-picture__toggle-transcript"),this.$transcript=e&&e.querySelector(".tna-picture__transcript"),this.transcriptOpened=!1,this.$module&&this.$imageWrapper&&this.$transcriptToggle&&this.$transcript&&(this.openLabel=this.$module.dataset.informationLabelOpen||"Open transcript",this.closeLabel=this.$module.dataset.informationLabelClose||"Close transcript",this.init())},e=[{key:"init",value:function(){var t=this,e="tna-picture-".concat((0,i.A)());this.$transcriptToggle.removeAttribute("hidden"),this.$transcriptToggle.setAttribute("aria-controls",e),this.$transcriptToggle.innerText=this.openLabel,this.$transcriptToggle.addEventListener("click",(function(){return t.toggleTranscript()})),this.$transcript.setAttribute("id",e),this.$transcript.setAttribute("hidden",""),this.$transcript.addEventListener("keydown",(function(e){"Escape"===e.key&&(t.toggleTranscript(),t.$transcriptToggle.focus())}))}},{key:"toggleTranscript",value:function(){this.transcriptOpened=!this.transcriptOpened,this.transcriptOpened?(this.$transcriptToggle.setAttribute("aria-expanded",!0),this.$transcriptToggle.innerText=this.closeLabel,this.$transcript.removeAttribute("hidden")):(this.$transcriptToggle.setAttribute("aria-expanded",!1),this.$transcriptToggle.innerText=this.openLabel,this.$transcript.setAttribute("hidden",""))}}],e&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},432:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{Header:()=>a});var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$toggleButton=e&&e.querySelector(".tna-header__navigation-button"),this.$navigation=e&&e.querySelector(".tna-header__navigation"),this.$links=e&&this.$navigation&&this.$navigation.querySelectorAll("[tabindex='0']"),this.menuOpened=!1,this.mql=window.matchMedia("(max-width: 48em)"),this.$module&&this.$toggleButton&&this.$navigation&&(this.$toggleButton.removeAttribute("hidden"),this.syncState(),this.$toggleButton.addEventListener("click",(function(){return n.handleToggleNavigation()})),"addEventListener"in this.mql?this.mql.addEventListener("change",(function(){return n.syncState()})):this.mql.addListener((function(){return n.syncState()})),this.$module.addEventListener("keyup",(function(t){"Escape"===t.code&&n.menuOpened&&n.mql.matches&&(n.menuOpened=!1,n.syncState(),n.$toggleButton.focus())})))},(e=[{key:"handleToggleNavigation",value:function(){this.menuOpened=!this.menuOpened,this.syncState()}},{key:"syncState",value:function(){this.mql.matches?this.menuOpened?this.show():this.hide():this.show()}},{key:"show",value:function(){this.$navigation.classList.add("tna-header__navigation--open"),this.$navigation.removeAttribute("hidden"),this.$navigation.setAttribute("aria-hidden","false"),this.$toggleButton.setAttribute("aria-expanded","true"),this.$toggleButton.setAttribute("title","Close menu"),this.$toggleButton.classList.add("tna-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","0")}},{key:"hide",value:function(){this.$navigation.classList.remove("tna-header__navigation--open"),this.$navigation.hidden=!0,this.$navigation.setAttribute("aria-hidden","true"),this.$toggleButton.setAttribute("aria-expanded","false"),this.$toggleButton.setAttribute("title","Open menu"),this.$toggleButton.classList.remove("tna-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","-1")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},552:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{ErrorSummary:()=>a});var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e},e=[{key:"init",value:function(){var t=this;this.$module&&("true"===this.$module.dataset.disableAutofocus||this.setFocus(this.$module),this.$module.addEventListener("click",(function(e){return t.handleClick(e)})))}},{key:"setFocus",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.getAttribute("tabindex");function r(){var e;null===(e=n.onBlur)||void 0===e||e.call(t),i||t.removeAttribute("tabindex")}i||t.setAttribute("tabindex","-1"),t.addEventListener("focus",(function(){t.addEventListener("blur",r,{once:!0})}),{once:!0}),null===(e=n.onBeforeFocus)||void 0===e||e.call(t),t.focus()}},{key:"handleClick",value:function(t){var e=t.target;e&&this.focusTarget(e)&&t.preventDefault()}},{key:"getFragmentFromUrl",value:function(t){if(t.includes("#"))return t.split("#").pop()}},{key:"focusTarget",value:function(t){if(!(t instanceof HTMLAnchorElement))return!1;var e=this.getFragmentFromUrl(t.href);if(!e)return!1;var n=document.getElementById(e);if(!n)return!1;var i=this.getAssociatedLegendOrLabel(n);return!!i&&(i.scrollIntoView(),n.focus({preventScroll:!0}),!0)}},{key:"getAssociatedLegendOrLabel",value:function(t){var e,n=t.closest("fieldset");if(n){var i=n.getElementsByTagName("legend");if(i.length){var r=i[0];if(t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type))return r;var o=r.getBoundingClientRect().top,a=t.getBoundingClientRect();if(a.height&&window.innerHeight&&a.top+a.height-o<window.innerHeight/2)return r}}return null!==(e=document.querySelector("label[for='".concat(t.getAttribute("id"),"']")))&&void 0!==e?e:t.closest("label")}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},576:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{GlobalHeader:()=>a});var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$toggleButton=e&&e.querySelector(".tna-global-header__navigation-button"),this.$navigation=e&&e.querySelector(".tna-global-header__navigation-wrapper"),this.$topNavigation=e&&e.querySelector(".tna-global-header__top-navigation-wrapper"),this.$links=e&&(this.$navigation&&this.$navigation.querySelectorAll("[tabindex='0']")||this.$topNavigation&&this.$topNavigation.querySelectorAll("[tabindex='0']")),this.menuOpened=!1,this.mql=window.matchMedia("(max-width: 48em)"),this.$module&&this.$toggleButton&&(this.$navigation||this.$topNavigation)&&(this.$toggleButton.removeAttribute("hidden"),this.syncState(),this.$toggleButton.addEventListener("click",(function(){return n.handleToggleNavigation()})),"addEventListener"in this.mql?this.mql.addEventListener("change",(function(){return n.syncState()})):this.mql.addListener((function(){return n.syncState()})),this.$module.addEventListener("keyup",(function(t){"Escape"===t.code&&n.mql.matches&&n.menuOpened&&(n.menuOpened=!1,n.syncState(),n.$toggleButton.focus())})))},(e=[{key:"handleToggleNavigation",value:function(){this.menuOpened=!this.menuOpened,this.syncState()}},{key:"syncState",value:function(){this.mql.matches?this.menuOpened?this.show():this.hide():this.show()}},{key:"hide",value:function(){this.$navigation&&(this.$navigation.hidden=!0,this.$navigation.setAttribute("aria-hidden","true")),this.$topNavigation&&(this.$topNavigation.hidden=!0,this.$topNavigation.setAttribute("aria-hidden","true")),this.$toggleButton.setAttribute("aria-expanded","false"),this.$toggleButton.setAttribute("title","Open menu"),this.$toggleButton.classList.remove("tna-global-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","-1")}},{key:"show",value:function(){this.$navigation&&(this.$navigation.hidden=!1,this.$navigation.setAttribute("aria-hidden","false")),this.$topNavigation&&(this.$topNavigation.hidden=!1,this.$topNavigation.setAttribute("aria-hidden","false")),this.$toggleButton.setAttribute("aria-expanded","true"),this.$toggleButton.setAttribute("title","Close menu"),this.$toggleButton.classList.add("tna-global-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","0")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},592:(t,e,n)=>{n.d(e,{Breadcrumbs:()=>l});var i=n(181);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var l=a((function t(e){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$breadcrumbsList=e&&e.querySelector(".tna-breadcrumbs__list"),this.$breadcrumbs=e&&this.$breadcrumbsList&&e.querySelectorAll(".tna-breadcrumbs__item"),this.$module&&this.$breadcrumbsList&&this.$breadcrumbs&&this.$breadcrumbs.length>2&&!this.$module.classList.contains("tna-breadcrumbs--no-collapse")){var r="tna-breadcrumbs-".concat((0,i.A)()),o=document.createElement("li");o.classList.add("tna-breadcrumbs__item","tna-breadcrumbs__item--expandable"),o.style.display="none";var a=document.createElement("button");a.classList.add("tna-breadcrumbs__link"),a.innerHTML="<span class='tna-!--visually-hidden'>Expand breadcrumbs</span>…",a.setAttribute("type","button"),a.setAttribute("aria-expanded","false"),a.setAttribute("aria-controls",r),a.addEventListener("click",(function(){n.$module.classList.remove("tna-breadcrumbs--collapsed"),o.remove(),n.$module.setAttribute("tabindex","0"),n.$module.focus(),n.$module.setAttribute("tabindex","-1")})),o.appendChild(a),this.$breadcrumbsList.setAttribute("id",r),this.$breadcrumbsList.insertBefore(o,this.$breadcrumbs[this.$breadcrumbs.length-2].nextSibling),this.$module.classList.add("tna-breadcrumbs--collapsed")}}))},728:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{DateInputProgressive:()=>a}),n(169);var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$yearWrapper=e&&e.querySelector(".tna-date-input__item--year"),this.$yearInput=this.$yearWrapper&&this.$yearWrapper.querySelector("input"),this.$monthWrapper=e&&e.querySelector(".tna-date-input__item--month"),this.$monthInput=this.$monthWrapper&&this.$monthWrapper.querySelector("input"),this.$dayWrapper=e&&e.querySelector(".tna-date-input__item--day"),this.$dayInput=this.$dayWrapper&&this.$dayWrapper.querySelector("input"),this.$module&&(this.update(),window.addEventListener("pageshow",(function(){return n.update()})),this.$yearInput&&(this.$yearInput.addEventListener("keyup",(function(){return n.update()})),this.$yearInput.addEventListener("change",(function(){return n.update()}))),this.$monthInput&&(this.$monthInput.addEventListener("keyup",(function(){return n.update()})),this.$monthInput.addEventListener("change",(function(){return n.update()}))),this.$dayInput&&(this.$dayInput.addEventListener("keyup",(function(){return n.update()})),this.$dayInput.addEventListener("change",(function(){return n.update()}))))},(e=[{key:"update",value:function(){this.isValidYear()?(this.showMonth(),this.isValidMonth()?this.showDay():this.hideDay()):(this.hideMonth(),this.hideDay())}},{key:"isValidYear",value:function(){if(!this.$yearInput)return!0;var t=parseInt(this.$yearInput.value.trim());return!isNaN(this.$yearInput.value)&&!isNaN(t)&&t>0}},{key:"isValidMonth",value:function(){if(!this.$monthInput)return!0;var t=this.$monthInput.value.trim(),e=parseInt(t);return!isNaN(this.$monthInput.value)&&!isNaN(e)&&e>0&&e<=12||["january","february","march","april","may","june","july","august","september","october","november","december","jan","feb","mar","apr","jun","jul","aug","sep","oct","nov","dec"].includes(t.toLowerCase())}},{key:"showMonth",value:function(){this.$monthWrapper&&this.$monthWrapper.removeAttribute("hidden")}},{key:"hideMonth",value:function(){this.$monthWrapper&&this.$monthWrapper.setAttribute("hidden","")}},{key:"showDay",value:function(){this.$dayWrapper&&this.$dayWrapper.removeAttribute("hidden")}},{key:"hideDay",value:function(){this.$dayWrapper&&this.$dayWrapper.setAttribute("hidden","")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},859:(t,e,n)=>{n.d(e,{EventTracker:()=>H,GA4:()=>W,helpers:()=>R});var i=n(169),r=function(t){if(""!==t.id)return'id("'+t.id+'")';if(t===document.body)return t.tagName;var e=0;if(!t.parentNode)return t.tagName;for(var n=t.parentNode.childNodes,i=0;i<n.length;i++){var o=n[i];if(o===t)return r(t.parentNode)+"/"+t.tagName+"["+(e+1)+"]";1===o.nodeType&&o.tagName===t.tagName&&e++}},o=function(t,e){return e.some((function(e){return t.includes(e)}))},a=function(t){var e="",n=t;do{for(;n.previousElementSibling;)if(n=n.previousElementSibling,["h1","h2","h3","h4","h5","h6"].includes(n.tagName)||n.classList.length&&o(Array.from(n.classList),["tna-heading-xl","tna-heading-l","tna-heading-m","tna-heading-s"])){e=n.innerText;break}n=n.parentElement}while(n.parentElement&&!e);return e},s={text:function(t){return t.innerText.replace(/\n/g," ")},html:function(t){return t.innerHTML},value:function(t){return t.value},index:function(t,e,n,i){return i},instance:function(t,e,n,i,r){return r},checked:function(t){return t.checked?"checked":"unchecked"},expanded:function(t){var e=t.getAttribute("aria-expanded");return null===e?null:"true"===e.toString()?"opened":"closed"},closestHeading:function(t){return a(t)},xpath:function(t){return r(t.target)}};const l=[{scope:".tna-breadcrumbs",areaName:"breadcrumbs",rootEventName:"select_navigation",rootData:{data_component_name:"breadcrumbs"},events:[{eventName:"click",targetElement:"a.tna-breadcrumbs__link",on:"click",data:{state:"expand",value:s.html},rootData:{data_link_type:"breadcrumb_link",data_link:s.text}},{eventName:"click",targetElement:".tna-breadcrumbs__item--expandable button.tna-breadcrumbs__link",on:"click",data:{state:"expand",value:s.html},rootData:{data_link_type:"breadcrumb_expand",data_link:s.text}}]}],u=[{scope:".tna-checkboxes",areaName:"checkboxes",events:[{eventName:"toggle",targetElement:".tna-checkboxes__item input",on:"change",data:{state:s.checked,value:function(t,e,n){return t.parentNode.innerText.trim()},group:function(t,e,n){var i;return null===(i=e.closest(".tna-form__group"))||void 0===i||null===(i=i.querySelector(".tna-form__heading"))||void 0===i||null===(i=i.innerText)||void 0===i?void 0:i.trim()}}}]}],c=[{scope:".tna-details",areaName:"details",events:[{eventName:"click",targetElement:".tna-details__summary",on:"click",data:{state:function(t,e,n){var i,r;return null!==(i=null===(r=e.querySelector(".tna-details__details"))||void 0===r?void 0:r.hasAttribute("open"))&&void 0!==i&&i?"closed":"opened"},value:s.text}}]}],d=[{scope:".tna-error-summary",areaName:"error-summary",events:[{eventName:"jump",targetElement:"a.tna-error-summary__link",on:"click",data:{value:s.text}}]}];var h=function(t){return JSON.stringify(Array.from(t.files).map((function(t){return{name:t.name,size:t.size,type:t.type}})))};const m=[{scope:".tna-file-input",areaName:"file-input",events:[{eventName:"blurred",on:"blur",data:{value:h,state:function(t){return t.files.length},group:function(t,e){var n;return null===(n=e.closest(".tna-form__group"))||void 0===n||null===(n=n.querySelector(".tna-form__heading"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}}},{eventName:"cancelled",on:"cancel",data:{value:h,state:function(t){return t.files.length},group:function(t,e){var n;return null===(n=e.closest(".tna-form__group"))||void 0===n||null===(n=n.querySelector(".tna-form__heading"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}}},{eventName:"changed",on:"change",data:{value:h,state:function(t){return t.files.length},group:function(t,e){var n;return null===(n=e.closest(".tna-form__group"))||void 0===n||null===(n=n.querySelector(".tna-form__heading"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}}}]}],p=[{scope:".tna-footer",areaName:"footer",rootEventName:"global_navigation",rootData:{data_component_name:"footer"},events:[{eventName:"link.click",targetElement:".tna-footer__navigation-block-item-link",on:"click",data:{value:s.text},rootData:{data_link_type:"link",data_section:s.closestHeading,data_link:s.text}},{eventName:"social_link.click",targetElement:".tna-footer__social-item-link",on:"click",data:{value:s.text},rootData:{data_link_type:"icon",data_section:"Social media",data_link:function(t){return t.dataset.name}}},{eventName:"legal_link.click",targetElement:".tna-footer__legal-item-link",on:"click",data:{value:s.text},rootData:{data_link_type:"link",data_section:"Legal information",data_link:s.text}},{eventName:"mailing_list.click",targetElement:".tna-footer__mailing-list a.tna-button",on:"click",data:{value:s.text},rootData:{data_link_type:"button",data_section:"Mailing list",data_link:s.text}},{eventName:"ogl.click",targetElement:".tna-footer__licence p a.tna-footer__link",on:"click",data:{value:s.text},rootData:{data_link_type:"link",data_section:"OGL",data_link:s.text}},{eventName:"govuk.click",targetElement:".tna-footer__govuk-link",on:"click",data:{value:s.text},rootData:{data_link_type:"Logo",data_section:"GOV.UK",data_link:s.text}},{eventName:"theme.change",targetElement:".tna-footer__theme-selector-button",on:"click",data:{value:s.value}}]}],f=[{scope:".tna-gallery",areaName:"gallery",rootEventName:"select_media",rootData:{media_type:"gallery",media_duration:function(t,e){return e.querySelectorAll(".tna-gallery__navigation-item").length},media_provider:"tna",media_title:function(t,e,n,i,r){var o;return(null===(o=e.querySelector(".tna-gallery__header-inner"))||void 0===o||null===(o=o.innerText)||void 0===o?void 0:o.trim())||"gallery_".concat(r)},media_progress:function(t,e){return(Array.from(e.querySelectorAll(".tna-gallery__navigation-item")).findIndex((function(t){return"true"===t.getAttribute("aria-current")}))||-1)+1}},events:[{eventName:"click",targetElement:".tna-gallery__navigation-item",on:"click",data:{value:s.text},rootData:{data_link:"image",media_action:"progress",media_progress:s.index}},{eventName:"click",targetElement:".tna-gallery__navigation-prev",on:"click",data:{value:function(t,e){var n;return null===(n=e.querySelector(".tna-gallery__item:not([hidden]) .tna-gallery__item-header"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}},rootData:{data_link:"previous",media_action:"progress"}},{eventName:"click",targetElement:".tna-gallery__navigation-next",on:"click",data:{value:function(t,e){var n;return null===(n=e.querySelector(".tna-gallery__item:not([hidden]) .tna-gallery__item-header"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}},rootData:{data_link:"next",media_action:"progress"}},{eventName:"keypress",on:"keydown",onCondition:function(t,e,n){return["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","End","Home"].includes(n.key)},data:{value:function(t,e,n){return n.key}},rootData:{data_link:"keypress",media_action:"progress"}},{eventName:"enter-fullscreen",targetElement:'.tna-gallery__options button[value="enter-fullscreen"]',on:"click",rootData:{data_link:"enter_full_screen_button"}},{eventName:"exit-fullscreen",targetElement:'.tna-gallery__options button[value="exit-fullscreen"]',on:"click",rootData:{data_link:"exit_full_screen_button"}},{eventName:"index",targetElement:'.tna-gallery__options button[value="show-index"]',on:"click"}]}],v=[{scope:".tna-global-header",areaName:"header",rootEventName:"global_navigation",rootData:{data_component_name:"header"},events:[{eventName:"toggle",targetElement:".tna-global-header__navigation-button",on:"click",data:{state:s.expanded},rootData:{data_link_type:"mobile_menu",data_link:function(t){var e=t.getAttribute("aria-expanded");return null===e?null:"true"===e.toString()?"Open menu":"Close menu"},data_section:"Burger menu"}},{eventName:"logo.click",targetElement:".tna-global-header__logo",on:"click",rootData:{data_link_type:"logo",data_link:"The National Archives",data_section:"Top navigation and logo"}},{eventName:"primary_link.click",targetElement:".tna-global-header__navigation-item-link",on:"click",data:{value:s.text},rootData:{data_link_type:"menu",data_section:s.text,data_position:1,data_link:s.text}},{eventName:"secondary_link.click",targetElement:".tna-global-header__top-navigation-link",on:"click",data:{value:s.text},rootData:{data_link_type:"icon",data_link:s.text,data_section:"Top navigation and logo"}}]}],y=[{scope:".tna-header",areaName:"header",events:[{eventName:"toggle",targetElement:".tna-header__navigation-button",on:"click",data:{state:s.expanded}}]}],b=[{scope:".tna-picture",areaName:"picture",events:[{eventName:"toggle_transcript",targetElement:".tna-picture__toggle-transcript",on:"click",data:{state:s.expanded,value:function(t,e,n){var i=a(e),r=e.querySelector(".tna-picture__image"),o=r.getAttribute("src"),s=r.getAttribute("alt"),l="".concat(s," (").concat(o,")");return i?"".concat(i," > ").concat(l):l}}}]}],g=[{scope:".tna-radios",areaName:"radios",events:[{eventName:"toggle",targetElement:".tna-radios__item input",on:"change",data:{state:s.checked,value:function(t,e,n){return t.parentNode.innerText},group:function(t,e,n){var i;return null===(i=e.closest(".tna-form__group"))||void 0===i||null===(i=i.querySelector(".tna-form__heading"))||void 0===i||null===(i=i.innerText)||void 0===i?void 0:i.trim()}}}]}],k=[{scope:".tna-search-field",areaName:"search-field",events:[{eventName:"blurred",targetElement:".tna-search-field__input",on:"blur",data:{value:s.value,group:function(t,e,n){var i;return null===(i=e.querySelector(".tna-form__heading"))||void 0===i||null===(i=i.innerText)||void 0===i?void 0:i.trim()}}}]}],w=[{scope:".tna-sidebar",areaName:"sidebar",rootEventName:"select_navigation",rootData:{data_component_name:"sidebar",data_section:function(t,e){var n;return null===(n=e.querySelector(".tna-sidebar__heading"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}},events:[{eventName:"click",targetElement:"a.tna-sidebar__link",on:"click",rootData:{data_link_type:"sidebar_link",data_link:s.text,data_position:s.index}}]}],$=[{scope:".tna-text-input",areaName:"text-input",events:[{eventName:"blurred",on:"blur",data:{value:s.value,group:function(t,e){var n;return null===(n=e.closest(".tna-form__group"))||void 0===n||null===(n=n.querySelector(".tna-form__heading"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}}}]}],_=[{scope:".tna-textarea",areaName:"textarea",events:[{eventName:"blurred",on:"blur",data:{value:s.value,group:function(t,e,n){var i;return null===(i=e.closest(".tna-form__group"))||void 0===i||null===(i=i.querySelector(".tna-form__heading"))||void 0===i||null===(i=i.innerText)||void 0===i?void 0:i.trim()}}}]}];function S(t,e){if(e&&("object"==P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(A=function(){return!!t})()}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||B(t,e)||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.")}()}function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,q(i.key),i)}}function N(t,e,n){return e&&O(t.prototype,e),n&&O(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function C(t,e,n){return(e=q(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t){var e=function(t){if("object"!=P(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==P(e)?e:e+""}function D(t){return function(t){if(Array.isArray(t))return F(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||B(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){if(t){if("string"==typeof t)return F(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(t,e):void 0}}function F(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var M=[].concat(D([{scope:".tna-accordion",areaName:"accordion",rootEventName:"select_feature",rootData:{data_component_name:"accordion"},events:[{eventName:"click",targetElement:".tna-accordion__summary",on:"click",data:{state:s.expanded,value:s.text},rootData:{data_link_type:s.expanded,data_link:s.text,data_position:s.index}}]}]),D(l),D(u),D(c),D(d),D(m),D(p),D(f),D(v),D(y),D([{scope:".tna-hero",areaName:"hero",events:[{eventName:"toggle_caption",targetElement:".tna-hero__details-summary",on:"click",data:{state:function(t,e,n){var i,r;return null!==(i=null===(r=e.querySelector(".tna-hero__details"))||void 0===r?void 0:r.hasAttribute("open"))&&void 0!==i&&i?"closed":"opened"},value:function(t,e,n){var i;return null===(i=e.querySelector("img[alt]"))||void 0===i?void 0:i.getAttribute("alt")}}}]}]),D(b),D(g),D(k),D(w),D($),D(_)),H=function(){return N((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,t),C(this,"cookies",new i.A),C(this,"events",[]),C(this,"startTime",new Date),C(this,"prefix","tna"),C(this,"document",document);var n=e.prefix,r=void 0===n?null:n,o=e.documentScope,a=void 0===o?document:o;r&&(this.prefix=r),a&&(this.document=a)}),[{key:"start",value:function(t){var e=this;navigator.doNotTrack&&1===navigator.doNotTrack||(this.cookies.isPolicyAccepted("usage")&&this.enableTracking(),this.cookies.on("changePolicy",(function(t){Object.hasOwn(t,"usage")&&(t.usage?e.enableTracking():e.disableTracking())})),t&&this.initAll())}},{key:"enableTracking",value:function(){}},{key:"disableTracking",value:function(){}},{key:"initAll",value:function(){var t=this;M.forEach((function(e){t.addListeners(e.scope,e.areaName,e.events,e.rootEventName||"",e.rootData||{})}))}},{key:"addListeners",value:function(t,e,n){var i,r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};"string"==typeof t?i=Array.from(this.document.querySelectorAll(t)):"object"===P(t)&&(i=[t]),i&&i.forEach((function(i,s){n.forEach((function(n){n.on&&(n.targetElement?Array.from(i.querySelectorAll(n.targetElement)).forEach((function(l,u){return r.attachListener(l,i,o,a,n,t,e,u+1,s+1)})):r.attachListener(i,i,o,a,n,t,e,1,s+1))}))}))}},{key:"generateEventName",value:function(t,e){return"".concat(this.prefix,".").concat(t,".").concat(e.eventName||e.on)}},{key:"attachListener",value:function(t,e,n,i,o,a,s,l,u){var c=this,d=o.on,h=o.data,m=o.targetElement,p=o.rootData,f=void 0===p?{}:p,v=o.onCondition,y=void 0===v?null:v;t.addEventListener(d,(function(d){var p=[t,e,d,l,u];(null===y||c.computedValue.apply(c,[y].concat(p)))&&c.recordEvent(n?"".concat(c.prefix,".").concat(n):c.generateEventName(s,o),I(I({},h),{},{name:c.generateEventName(s,o),value:null!=h&&h.value?c.computedValue.apply(c,[h.value].concat(p)):null,state:null!=h&&h.state?c.computedValue.apply(c,[h.state].concat(p)):null,group:null!=h&&h.group?c.computedValue.apply(c,[h.group].concat(p)):null,xPath:r(t),targetElement:m,timeSincePageLoad:new Date-c.startTime,index:l,instance:u,scope:a,areaName:s}),Object.fromEntries(Object.entries(I(I({},i),f)).map((function(t){var e=T(t,2),n=e[0],i=e[1];return[n,c.computedValue.apply(c,[i].concat(p))]}))))}))}},{key:"computedValue",value:function(t,e,n,i,r,o){return"function"==typeof t?t.call(this,e,n,i,r,o):null!=t?t:null}},{key:"recordEvent",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.events.push(I(I({event:t},e),n))}},{key:"getTnaMetaTags",value:function(){var t=this;return Object.fromEntries([].concat(D(Array.from(document.head.querySelectorAll('meta[name^="'.concat(this.prefix,'_root:"][content]'))).map((function(e){return[e.getAttribute("name").replace(new RegExp("^".concat(t.prefix,"_root:")),""),e.getAttribute("content")]}))),D(Array.from(document.head.querySelectorAll('meta[name^="'.concat(this.prefix,'."][content]'))).map((function(t){return[t.getAttribute("name"),t.getAttribute("content")]})))))}},{key:"getUserPreferences",value:function(){var t,e,n,i,r,o,a,s,l,u,c,d,h={};return h["".concat(this.prefix,".pref.prefers-color-scheme")]=null!==(t=(e=window).matchMedia)&&void 0!==t&&t.call(e,"(prefers-color-scheme: dark)").matches?"dark":"light",h["".concat(this.prefix,".pref.forced-colors")]=null===(n=(i=window).matchMedia)||void 0===n?void 0:n.call(i,"(forced-colors: active)").matches,h["".concat(this.prefix,".pref.prefers-contrast")]=null!==(r=(o=window).matchMedia)&&void 0!==r&&r.call(o,"(prefers-contrast: more)").matches?"more":null!==(a=(s=window).matchMedia)&&void 0!==a&&a.call(s,"(prefers-contrast: less)").matches?"less":"normal",h["".concat(this.prefix,".pref.prefers-reduced-motion")]=null===(l=(u=window).matchMedia)||void 0===l?void 0:l.call(u,"(prefers-reduced-motion: reduce)").matches,h["".concat(this.prefix,".pref.prefers-reduced-transparency")]=null===(c=(d=window).matchMedia)||void 0===c?void 0:c.call(d,"(prefers-reduced-transparency: reduce)").matches,h}}])}(),W=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(j(this,e),window.TNAFrontendAnalyticsGA4)return S(t,window.TNAFrontendAnalyticsGA4);var i,r,o,a=n.id,s=void 0===a?"":a,l=n.prefix,u=void 0===l?null:l,c=n.initAll,d=void 0===c||c,h=n.addTrackingCode,m=void 0===h||h;return i=this,o=[{prefix:u}],r=x(r=e),C(t=S(i,A()?Reflect.construct(r,o||[],x(i).constructor):r.apply(i,o)),"addTrackingCode",!0),C(t,"trackingCodeAdded",!1),C(t,"trackingEnabled",!1),C(t,"gTagId",void 0),window.TNAFrontendAnalyticsGA4=t,t.addTrackingCode=m,window.dataLayer=window.dataLayer||[],s&&(t.gTagId=s,t.ga4Disable="ga-disable-".concat(t.gTagId),t.cookies.isPolicyAccepted("usage")||(window[t.ga4Disable]=!0,t.cookies.set(t.ga4Disable,"true"))),t.start(d),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(e,t),N(e,[{key:"destroy",value:function(){window.TNAFrontendAnalyticsGA4=null}},{key:"recordEvent",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=I(I({event:t},Object.fromEntries(Object.entries(e).map((function(t){var e=T(t,2),i=e[0],r=e[1];return["".concat(n.prefix,".event.").concat(i),r]})))),i);this.pushToDataLayer(r)}},{key:"gtag",value:function(){this.pushToDataLayer(arguments)}},{key:"pushToDataLayer",value:function(t){window.dataLayer.push(t)}},{key:"enableTracking",value:function(){if(!this.trackingEnabled){if(window[this.ga4Disable]=!1,this.cookies.set(this.ga4Disable,"false"),!this.trackingCodeAdded&&this.addTrackingCode){if(!this.gTagId)throw Error("ID was not specified");this.pushToDataLayer(I(I(I({},this.getTnaMetaTags()),this.getUserPreferences()),{},{"gtm.start":(new Date).getTime(),event:"gtm.js"}));var t=document.getElementsByTagName("script")[0],e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtm.js?id=".concat(this.gTagId,"&l=dataLayer"),t?t.parentNode.insertBefore(e,t):document.head.appendChild(e),this.trackingCodeAdded=!0}this.trackingEnabled=!0}}},{key:"disableTracking",value:function(){var t=this;this.trackingEnabled&&(window[this.ga4Disable]=!0,this.cookies.set(this.ga4Disable,"true"),Object.keys(this.cookies.all).forEach((function(e){e.startsWith("_ga")&&t.cookies.delete(e)})),this.trackingEnabled=!1)}}])}(H),G=document.documentElement.dataset.ga4;G&&new W({id:G});var R={getXPathTo:r,getClosestHeading:a,valueGetters:s}},866:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{TextInput:()=>a});var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$input=e&&e.querySelector(".tna-text-input"),this.$module&&this.$input&&"password"===this.$input.getAttribute("type")&&(this.$textInputWrapper=document.createElement("div"),this.$textInputWrapper.classList.add("tna-text-input-wrapper"),this.$textInputPasswordToggle=document.createElement("button"),this.$textInputPasswordToggle.setAttribute("type","button"),this.$textInputPasswordToggle.classList.add("tna-button","tna-button--small","tna-button--icon-only"),this.$textInputPasswordToggle.setAttribute("aria-controls",this.$input.id),this.updateTogglePasswordButtonText(),this.$textInputWrapper.appendChild(this.$input),this.$textInputWrapper.appendChild(this.$textInputPasswordToggle),this.$module.appendChild(this.$textInputWrapper),this.$textInputPasswordToggle.addEventListener("click",(function(){n.togglePasswordType(),n.$input.focus()})))},(e=[{key:"togglePasswordType",value:function(){"password"===this.$input.getAttribute("type")?this.$input.setAttribute("type","text"):this.$input.setAttribute("type","password"),this.updateTogglePasswordButtonText()}},{key:"updateTogglePasswordButtonText",value:function(){"password"===this.$input.getAttribute("type")?(this.$textInputPasswordToggle.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" height="16" aria-hidden="true" focusable="false">\x3c!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--\x3e<path d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>Show password',this.$textInputPasswordToggle.setAttribute("title","Show password"),this.$textInputPasswordToggle.setAttribute("aria-label","Show password")):(this.$textInputPasswordToggle.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" height="16" aria-hidden="true" focusable="false">\x3c!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--\x3e<path d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg></i>Hide password',this.$textInputPasswordToggle.setAttribute("title","Hide password"),this.$textInputPasswordToggle.setAttribute("aria-label","Hide password"))}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},876:(t,e,n)=>{n.d(e,{Footer:()=>s});var i=n(169);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$themeSelector=e&&e.querySelector(".tna-footer__theme-selector"),this.$tnaTemplate=document.querySelector(".tna-template"),this.$module&&this.$themeSelector&&this.$tnaTemplate&&(this.$themeSelectorButtons=this.$themeSelector.querySelectorAll("button.tna-footer__theme-selector-button[value]"),Array.from(this.$themeSelectorButtons).forEach((function(t){t.addEventListener("click",(function(t){var e=t.target;n.setTheme(e.value),n.selectThemeSelectorButton(e)}))})),this.cookies=new i.A,this.cookies.isPolicyAccepted("settings")&&this.showThemeSelector(),this.cookies.on("changePolicy",(function(t){Object.hasOwn(t,"settings")&&(!0===t.settings?n.showThemeSelector():(n.cookies.delete("theme"),n.hideThemeSelector()))})))},(e=[{key:"showThemeSelector",value:function(){var t=this;if(this.$themeSelector.removeAttribute("hidden"),this.cookies.exists("theme")){var e=Array.from(this.$themeSelectorButtons).find((function(e){return e.value===t.cookies.get("theme")}));e&&this.selectThemeSelectorButton(e)}}},{key:"hideThemeSelector",value:function(){this.$themeSelector.setAttribute("hidden","")}},{key:"setTheme",value:function(t){if("light"===t)this.$tnaTemplate.classList.remove("tna-template--system-theme","tna-template--dark-theme");else if("dark"===t)this.$tnaTemplate.classList.remove("tna-template--system-theme"),this.$tnaTemplate.classList.add("tna-template--dark-theme");else{if("system"!==t)return;this.$tnaTemplate.classList.remove("tna-template--dark-theme"),this.$tnaTemplate.classList.add("tna-template--system-theme")}this.cookies.set("theme",t)}},{key:"selectThemeSelectorButton",value:function(t){Array.from(this.$themeSelectorButtons).forEach((function(e){e.value===t.value?(e.classList.remove("tna-button--plain"),e.setAttribute("aria-current",!0)):(e.classList.add("tna-button--plain"),e.removeAttribute("aria-current"))}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},944:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{Accordion:()=>a});var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$items=e&&e.querySelectorAll(".tna-accordion__item"),this.$module&&this.$items&&(this.allowMultipleItemsOpen="true"===this.$module.dataset.multiselectable,this.$items.forEach((function(t){return n.initItem(t)})),this.initState())},(e=[{key:"initItem",value:function(t){var e=this,n=t.querySelector(".tna-accordion__heading"),i=t.querySelector(".tna-accordion__body");if(n&&i){t.classList.add("tna-accordion__details"),t.classList.remove("tna-accordion__item"),n.removeAttribute("class"),i.classList.add("tna-accordion__content"),i.classList.remove("tna-accordion__body"),i.setAttribute("hidden","");var r=document.createElement("button");r.classList.add("tna-accordion__summary"),r.setAttribute("type","button"),r.setAttribute("aria-controls",i.id),r.innerText=n.innerText,n.innerText="",n.appendChild(r),r.addEventListener("click",(function(){"true"===r.getAttribute("aria-expanded")?e.closeItem(t):e.openItem(t)}))}}},{key:"initState",value:function(){var t=this;this.$items.forEach((function(e){"true"===e.dataset.isopen?t.openItem(e):t.closeItem(e),e.removeAttribute("data-isopen")}))}},{key:"openItem",value:function(t){this.allowMultipleItemsOpen||this.closeAllItemsExcept(t);var e=t.querySelector(".tna-accordion__summary"),n=t.querySelector(".tna-accordion__content");e.setAttribute("aria-expanded","true"),e.setAttribute("aria-label","".concat(e.innerText.trim(),", Hide this section")),n.removeAttribute("hidden")}},{key:"closeItem",value:function(t){var e=t.querySelector(".tna-accordion__summary"),n=t.querySelector(".tna-accordion__content");e.setAttribute("aria-expanded","false"),e.setAttribute("aria-label","".concat(e.innerText.trim(),", Show this section")),n.setAttribute("hidden","")}},{key:"closeAllItemsExcept",value:function(t){var e=this;Array.from(this.$items).filter((function(e){return e.querySelector(".tna-accordion__summary")!==t&&"true"===e.querySelector(".tna-accordion__summary").getAttribute("aria-expanded")})).forEach((function(t){return e.closeItem(t)}))}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};n.r(i),n.d(i,{Accordion:()=>r.Accordion,Breadcrumbs:()=>r.Breadcrumbs,CookieBanner:()=>r.CookieBanner,Cookies:()=>r.Cookies,DateInputProgressive:()=>r.DateInputProgressive,ErrorSummary:()=>r.ErrorSummary,EventTracker:()=>o.EventTracker,FileInputDroppable:()=>r.FileInputDroppable,Footer:()=>r.Footer,GA4:()=>o.GA4,Gallery:()=>r.Gallery,GlobalHeader:()=>r.GlobalHeader,Header:()=>r.Header,Picture:()=>r.Picture,SkipLink:()=>r.SkipLink,Tabs:()=>r.Tabs,TextInput:()=>r.TextInput,helpers:()=>o.helpers,initAll:()=>r.initAll});var r=n(177),o=n(859);return i})()));
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TNAFrontend=e():t.TNAFrontend=e()}(self,()=>(()=>{"use strict";var t={24:(t,e,n)=>{n.d(e,{CookieBanner:()=>s});var i=n(169);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$acceptButton=e&&e.querySelector('[value="accept"]'),this.$rejectButton=e&&e.querySelector('[value="reject"]'),this.$prompt=e&&e.querySelector(".tna-cookie-banner__message--prompt"),this.$acceptedMessage=e&&e.querySelector(".tna-cookie-banner__message--accepted"),this.$rejectedMessage=e&&e.querySelector(".tna-cookie-banner__message--rejected"),this.$closeButtons=e&&e.querySelectorAll('[value="close"]'),this.$module&&this.$acceptButton&&this.$rejectButton&&this.$prompt&&this.$acceptedMessage&&this.$rejectedMessage&&this.$closeButtons&&(this.cookies=new i.A({newInstance:!0}),this.cookiePreferencesSetKey=this.$module.dataset.preferencesKey||"cookie_preferences_set",this.cookies.policiesCorrectOnInit||this.cookies.delete(this.cookiePreferencesSetKey),this.cookies.exists(this.cookiePreferencesSetKey)&&this.cookies.hasValue(this.cookiePreferencesSetKey,"true")||(this.$module.removeAttribute("hidden"),this.$acceptButton.addEventListener("click",function(){return n.accept()}),this.$rejectButton.addEventListener("click",function(){return n.reject()})))},(e=[{key:"accept",value:function(){this.$prompt.setAttribute("hidden",""),this.complete(),this.$acceptedMessage.removeAttribute("hidden"),this.$acceptedMessage.focus(),this.$acceptedMessage.setAttribute("tabindex","-1"),this.cookies.acceptAllPolicies()}},{key:"reject",value:function(){this.$prompt.setAttribute("hidden",""),this.complete(),this.$rejectedMessage.removeAttribute("hidden"),this.$rejectedMessage.focus(),this.$rejectedMessage.setAttribute("tabindex","-1"),this.cookies.rejectAllPolicies()}},{key:"complete",value:function(){var t=this;this.cookies.set(this.cookiePreferencesSetKey,!0),this.$closeButtons.forEach(function(e){e.addEventListener("click",function(){return t.close()})})}},{key:"close",value:function(){this.$module.setAttribute("hidden","")}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},42:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{Tabs:()=>a});var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$tabList=e&&e.querySelector(".tna-tabs__list"),this.$tabListItemLinks=e&&this.$tabList&&this.$tabList.querySelectorAll(".tna-tabs__button"),this.$tabItems=e&&e.querySelectorAll(".tna-tabs__item"),this.$module&&this.$tabList&&this.$tabListItemLinks&&this.$tabItems&&this.$tabListItemLinks.length===this.$tabItems.length&&(this.currentTabIndex=0,this.init())},e=[{key:"init",value:function(){var t=this;this.$module.classList.add("tna-tabs--interactive"),this.$tabList.removeAttribute("hidden"),this.$tabListItemLinks.forEach(function(e){var n=e.getAttribute("aria-controls");e.setAttribute("aria-selected",!1);var i=document.getElementById(n);i.setAttribute("aria-labelledby",e.id),i.setAttribute("role","tabpanel"),e.addEventListener("click",function(e){return t.handleItemLinkClick(e)},!0)}),this.switchTabByIndex(this.currentTabIndex),this.$module.addEventListener("keydown",function(e){return t.handleItemLinkKeyDown(e)})}},{key:"handleItemLinkClick",value:function(t){t.preventDefault();var e=t.currentTarget.getAttribute("aria-controls");this.switchTabByID(e)}},{key:"handleItemLinkKeyDown",value:function(t){var e=!1;switch(t.key){case"ArrowLeft":case"ArrowUp":this.previousTab(),e=!0;break;case"ArrowRight":case"ArrowDown":this.nextTab(),e=!0;break;case"Home":this.switchTabByIndex(0,!0),e=!0;break;case"End":this.switchTabByIndex(this.$tabListItemLinks.length-1,!0),e=!0}e&&(t.stopPropagation(),t.preventDefault())}},{key:"nextTab",value:function(){this.currentTabIndex<this.$tabListItemLinks.length-1?this.switchTabByIndex(this.currentTabIndex+1,!0):this.switchTabByIndex(0,!0)}},{key:"previousTab",value:function(){this.currentTabIndex>=1?this.switchTabByIndex(this.currentTabIndex-1,!0):this.switchTabByIndex(this.$tabListItemLinks.length-1,!0)}},{key:"switchTabByIndex",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.currentTabIndex=t,this.$tabListItemLinks.forEach(function(t,i){i===e.currentTabIndex?(t.setAttribute("aria-selected",!0),t.setAttribute("tabindex","0"),n&&t.focus()):(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"))}),this.$tabItems.forEach(function(t,n){n===e.currentTabIndex?(t.removeAttribute("hidden"),t.setAttribute("tabindex","0")):(t.setAttribute("hidden",""),t.setAttribute("tabindex","-1"))})}},{key:"switchTabByID",value:function(t){var e=Array.from(this.$tabItems).findIndex(function(e){return e.getAttribute("id")===t});this.switchTabByIndex(e)}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},76:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{FileInputDroppable:()=>a});var a=function(){return t=function t(e){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$input=e&&e.querySelector(".tna-file-input"),this.$module&&this.$input){this.acceptMutltipleFiles=this.$input.hasAttribute("multiple"),this.$droppableArea=document.createElement("div"),this.$droppableArea.classList.add("tna-file-input__droppable"),this.$module.insertBefore(this.$droppableArea,this.$input),this.$droppableArea.appendChild(this.$input),this.$pseudoSelectFileText=document.createElement("span"),this.$pseudoSelectFileText.setAttribute("aria-live","polite"),this.$pseudoSelectFileText.classList.add("tna-file-input__droppable-status"),this.$pseudoSelectFileText.textContent="No file".concat(this.acceptMutltipleFiles?"s":""," chosen"),this.$droppableArea.appendChild(this.$pseudoSelectFileText);var i=document.createElement("div");i.classList.add("tna-button-group","tna-button-group--small","tna-!--margin-top-xs","tna-file-input__droppable-buttons"),this.$droppableArea.appendChild(i);var r=document.createElement("span");r.classList.add("tna-button"),r.textContent="Choose file".concat(this.acceptMutltipleFiles?"s":""),i.appendChild(r);var o=document.createElement("span");o.textContent="or drop file".concat(this.acceptMutltipleFiles?"s":""),i.appendChild(o),this.$droppableAreaAriaLabel=document.createElement("span"),this.$droppableAreaAriaLabel.classList.add("tna-visually-hidden"),this.$droppableAreaAriaLabel.setAttribute("aria-live","assertive"),this.$droppableArea.appendChild(this.$droppableAreaAriaLabel),this.$input.addEventListener("dragenter",function(t){return n.showDropTarget(t)}),this.$input.addEventListener("dragleave",function(){return n.hideDropTarget()}),this.$input.addEventListener("dragend",function(){return n.hideDropTarget()}),this.$input.addEventListener("change",function(){return n.onChange()}),this.$input.addEventListener("drop",function(){return n.onChange()})}},e=[{key:"isContainingFiles",value:function(t){var e=0===t.types.length,n=t.types.some(function(t){return"Files"===t});return e||n}},{key:"showDropTarget",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.dataTransfer&&this.isContainingFiles(t.dataTransfer)&&(this.$droppableArea.classList.add(t.dataTransfer.items.length>1?"tna-file-input__droppable--over-multiple":"tna-file-input__droppable--over"),e&&(this.$droppableAreaAriaLabel.textContent="Entered drop zone"))}},{key:"hideDropTarget",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$droppableArea.classList.remove("tna-file-input__droppable--over","tna-file-input__droppable--over-multiple"),t&&(this.$droppableAreaAriaLabel.textContent="Left drop zone")}},{key:"onChange",value:function(){var t,e=this.$input.files;this.acceptMutltipleFiles?0===e.length?this.$pseudoSelectFileText.textContent="No files chosen":this.$pseudoSelectFileText.textContent="".concat(e.length," file").concat(e.length>1?"s":""," chosen"):this.$pseudoSelectFileText.textContent=(null===(t=e[0])||void 0===t?void 0:t.name)||"No file chosen",this.hideDropTarget(!1)}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},169:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){d(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,h(i.key),i)}}function u(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{A:()=>f}),window.TNAFrontendCookies=window.TNAFrontendCookies||null,window.TNAFrontendCookieEvents=window.TNAFrontendCookieEvents||null;var m=function(){return u(function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(l(this,t),d(this,"events",{}),d(this,"oneTimeEvents",{}),d(this,"debug",!1),this.debug=e,window.TNAFrontendCookieEvents)return this.log("Using existing TNAFrontendCookieEvents instance"),window.TNAFrontendCookieEvents;window.TNAFrontendCookieEvents=this},[{key:"log",value:function(){if(this.debug){for(var t,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];(t=console).log.apply(t,["[TNA Frontend Cookie Events]"].concat(n))}}},{key:"on",value:function(t,e){Object.hasOwn(this.events,t)||(this.events[t]=[]),this.events[t]=[].concat(a(this.events[t]),[e])}},{key:"once",value:function(t,e){Object.hasOwn(this.oneTimeEvents,t)||(this.oneTimeEvents[t]=[]),this.oneTimeEvents[t]=[].concat(a(this.oneTimeEvents[t]),[e])}},{key:"trigger",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.hasOwn(this.events,t)&&(this.log("Triggering event: ".concat(t),n),this.events[t].forEach(function(t){return t.call(e,n)})),Object.hasOwn(this.oneTimeEvents,t)){this.log("Triggering one-time event: ".concat(t),n);for(var i=this.oneTimeEvents[t].length-1;i>=0;i--)this.oneTimeEvents[t][i].call(this,n),this.oneTimeEvents[t].splice(i,1)}}}])}(),p=["usage","settings","marketing","essential"],f=function(){return u(function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,t),d(this,"defaultDomain",""),d(this,"defaultPath",""),d(this,"secure",!0),d(this,"policiesKey",""),d(this,"events",null),d(this,"defaultAge",null),d(this,"policiesCorrectOnInit",!1),d(this,"debug","true"===document.documentElement.dataset.tnaFrontendDebug);var i=n.defaultDomain,r=n.defaultPath,o=n.secure,a=n.policiesKey,s=n.defaultAge,c=n.newInstance,u=void 0!==c&&c,h=n.noInit,f=void 0!==h&&h;if(!u&&window.TNAFrontendCookies)return window.TNAFrontendCookies;this.defaultDomain=void 0===i?document.documentElement.dataset.tnaCookiesDomain||window.location.hostname:i,this.defaultPath=void 0===r?document.documentElement.dataset.tnaCookiesPath||"/":r,this.secure=void 0===o?"true"!==document.documentElement.dataset.tnaCookiesInsecure:o,this.policiesKey=void 0===a?document.documentElement.dataset.tnaCookiesPoliciesKey||"cookies_policy":a,this.defaultAge=void 0===s?parseInt(document.documentElement.dataset.tnaCookiesDefaultAge)||31536e3:s,this.events=new m(this.debug),this.policiesCorrectOnInit=Object.keys(this.policies).length===p.length&&p.every(function(t){return Object.keys(e.policies).includes(t)&&"boolean"==typeof e.policies[t]}),this.policiesCorrectOnInit||f||this.init(),this.log({defaultDomain:this.defaultDomain,defaultPath:this.defaultPath,secure:this.secure,policiesKey:this.policiesKey,defaultAge:this.defaultAge,policiesCorrectOnInit:this.policiesCorrectOnInit}),u||window.TNAFrontendCookies||(window.TNAFrontendCookies=this)},[{key:"init",value:function(){var t=this.policies;this.log("Existing policies on init:",t);var e=Object.fromEntries(Object.keys(t).filter(function(t){return p.includes(t)}).map(function(e){return[e,t[e]]}));Object.keys(e).length>0&&this.log("Filtered existing policies:",e),this.savePolicies(o(o({usage:!1,settings:!1,marketing:!1},e),{},{essential:!0}))}},{key:"log",value:function(){if(this.debug){for(var t,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];(t=console).log.apply(t,["[TNA Frontend Cookies]"].concat(n,[this.all]))}}},{key:"destroyInstance",value:function(){this.log("Destroying TNAFrontendCookies instance"),window.TNAFrontendCookies=null}},{key:"all",get:function(){var t={};return document.cookie.split("; ").filter(function(t){return t}).forEach(function(e){var n=e.trim().split("=");n[0]&&(t[n[0]]=n[1])}),t}},{key:"policies",get:function(){try{return JSON.parse(this.get(this.policiesKey)||"{}")}catch(t){return{}}}},{key:"exists",value:function(t){return Object.hasOwn(this.all,t)}},{key:"hasValue",value:function(t,e){return this.get(t)==e}},{key:"get",value:function(t){return this.exists(t)?decodeURIComponent(this.all[t]):null}},{key:"set",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.maxAge,r=void 0===i?this.defaultAge:i,o=n.sameSite,a=void 0===o?"Lax":o,s=n.domain,l=void 0===s?this.defaultDomain:s,c=n.path,u=void 0===c?this.defaultPath:c,d=n.secure,h=void 0===d?this.secure:d,m=n.session,p=void 0!==m&&m;if(t){var f="".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e),"; domain=").concat(l,"; samesite=").concat(a,"; path=").concat(u).concat(p?"":"; max-age=".concat(r)).concat(h?"; secure":"");document.cookie=f,this.log("Set cookie:",{key:t,value:e,maxAge:r,path:u,sameSite:a,domain:l,secure:h,session:p,cookie:f}),this.events.trigger("setCookie",{key:t,value:e,maxAge:r,path:u,sameSite:a,domain:l,secure:h,session:p,cookie:f})}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.defaultDomain,i={maxAge:-1,path:e,domain:n||void 0};this.set(t,"",i),this.log("Deleted cookie:",o({key:t,path:e,domain:n},i)),this.events.trigger("deleteCookie",o({key:t},i))}},{key:"deleteAll",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultDomain;Object.keys(this.all).forEach(function(i){t.delete(i,e,n)}),this.log("Deleted all cookies",{path:e,domain:n}),this.events.trigger("deleteAllCookies",{path:e,domain:n})}},{key:"acceptPolicy",value:function(t){this.log("Accepting policy:",t),this.setPolicy(t,!0),this.events.trigger("acceptPolicy",t),this.events.trigger("changePolicy",d({},t,!0))}},{key:"rejectPolicy",value:function(t){this.log("Rejecting policy:",t),this.setPolicy(t,!1),this.events.trigger("rejectPolicy",t),this.events.trigger("changePolicy",d({},t,!1))}},{key:"setPolicy",value:function(t,e){"essential"!==t?(this.log("Setting policy ".concat(t," to ").concat(e)),this.savePolicies(o(o({},this.policies),{},d(d({},t,e),"essential",!0))),this.events.trigger("changePolicy",d({},t,e))):this.log("Cannot change essential policy, it is always accepted.")}},{key:"acceptAllPolicies",value:function(){this.log("Accepting all policies");var t=Object.fromEntries(Object.keys(this.policies).map(function(t){return[t.toLowerCase(),!0]}));this.savePolicies(t),this.events.trigger("acceptAllPolicies"),this.events.trigger("changePolicy",t)}},{key:"rejectAllPolicies",value:function(){this.log("Rejecting all policies");var t=o(o({},Object.fromEntries(Object.keys(this.policies).map(function(t){return[t.toLowerCase(),!1]}))),{},{essential:!0});this.savePolicies(t),this.events.trigger("rejectAllPolicies"),this.events.trigger("changePolicy",t)}},{key:"savePolicies",value:function(t){this.log("Saving policies:",t),this.set(this.policiesKey,JSON.stringify(t))}},{key:"isPolicyAccepted",value:function(t){return Object.hasOwn(this.policies,t)?!0===this.policies[t]:null}},{key:"on",value:function(t,e){this.log("Adding event listener for: ".concat(t)),this.events.on(t,e)}},{key:"once",value:function(t,e){this.log("Adding one-time event listener for: ".concat(t)),this.events.once(t,e)}}])}()},177:(t,e,n)=>{n.d(e,{Accordion:()=>i.Accordion,Breadcrumbs:()=>r.Breadcrumbs,CookieBanner:()=>o.CookieBanner,Cookies:()=>y.A,DateInputProgressive:()=>a.DateInputProgressive,ErrorSummary:()=>s.ErrorSummary,FileInputDroppable:()=>l.FileInputDroppable,Footer:()=>c.Footer,Gallery:()=>u.Gallery,GlobalHeader:()=>d.GlobalHeader,Header:()=>h.Header,Picture:()=>m.Picture,SkipLink:()=>p.SkipLink,Tabs:()=>f.Tabs,TextInput:()=>v.TextInput,initAll:()=>b});var i=n(944),r=n(592),o=n(24),a=n(728),s=n(552),l=n(76),c=n(876),u=n(344),d=n(576),h=n(432),m=n(384),p=n(292),f=n(42),v=n(866),y=n(169),b=function(t){var e=(t=void 0!==t?t:{}).scope instanceof HTMLElement?t.scope:document,n=document.documentElement;n.classList.add("tna-template--js-enabled");var y=function(){window.removeEventListener("touchstart",y),n.classList.add("tna-template--touched")};window.addEventListener("touchstart",y),window.addEventListener("keydown",function(t){"Tab"===t.key&&(n.classList.add("tna-template--tabbed"),n.classList.remove("tna-template--clicked"))}),window.addEventListener("mousedown",function(){n.classList.add("tna-template--clicked"),n.classList.remove("tna-template--tabbed")}),e.querySelectorAll('[data-module="tna-accordion"]').forEach(function(t){new i.Accordion(t)});var b=e.querySelector('[data-module="tna-breadcrumbs"]');b&&new r.Breadcrumbs(b);var g=e.querySelector('[data-module="tna-cookie-banner"]');g&&new o.CookieBanner(g),e.querySelectorAll('[data-module="date-input-progressive"]').forEach(function(t){new a.DateInputProgressive(t)});var k=e.querySelector('[data-module="tna-error-summary"]');k&&new s.ErrorSummary(k).init(),e.querySelectorAll('[data-module="tna-file-input"]').forEach(function(t){new l.FileInputDroppable(t)});var w=e.querySelector('[data-module="tna-footer"]');w&&new c.Footer(w),e.querySelectorAll('[data-module="tna-gallery"]').forEach(function(t){new u.Gallery(t)});var $=e.querySelector('[data-module="tna-global-header"]');$&&new d.GlobalHeader($);var _=e.querySelector('[data-module="tna-header"]');_&&new h.Header(_),e.querySelectorAll('[data-module="tna-picture"]').forEach(function(t){new m.Picture(t)}),e.querySelectorAll('[data-module="tna-skip-link"]').forEach(function(t){new p.SkipLink(t)}),e.querySelectorAll('[data-module="tna-tabs"]').forEach(function(t){new f.Tabs(t)}),e.querySelectorAll('[data-module="tna-text-input"]').forEach(function(t){new v.TextInput(t)});var A=function(t){var e=t.scrollWidth>t.clientWidth,n=t.querySelector(".tna-table__caption");e?(t.setAttribute("tabindex","0"),null==n||n.classList.add("tna-table__caption--scroll")):(t.removeAttribute("tabindex"),null==n||n.classList.remove("tna-table__caption--scroll"))},S=document.querySelectorAll(".tna-table-wrapper:has(.tna-table__caption)");S.forEach(function(t){return A(t)}),window.addEventListener("resize",function(){S.forEach(function(t){return A(t)})}),window.matchMedia("print").addEventListener("change",function(t){t.matches?(document.querySelectorAll(".tna-details__details:not([open])").forEach(function(t){t.setAttribute("open",""),t.dataset.wasClosed=""}),document.querySelectorAll(".tna-accordion__content[hidden], .tna-picture__transcript[hidden]").forEach(function(t){t.removeAttribute("hidden"),t.dataset.wasClosed=""})):(document.querySelectorAll(".tna-details__details[data-was-closed]").forEach(function(t){t.removeAttribute("open"),delete t.dataset.wasClosed}),document.querySelectorAll(".tna-accordion__content[data-was-closed], .tna-picture__transcript[data-was-closed]").forEach(function(t){t.setAttribute("hidden",""),t.dataset.wasClosed=""}))})}},181:(t,e,n)=>{n.d(e,{A:()=>i});const i=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)})}},292:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{SkipLink:()=>a});var a=function(){return t=function t(e){var n,i,r,a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,r=!1,(i=o(i="linkedElementListener"))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,this.$module=e,this.linkedElementId=e.getAttribute("href").split("#").pop(),this.$linkedElement=e&&this.linkedElementId&&document.getElementById(this.linkedElementId),this.$module&&this.$linkedElement&&this.$module.addEventListener("click",function(){return a.focusLinkedElement()})},(e=[{key:"focusLinkedElement",value:function(){var t=this;this.$linkedElement.getAttribute("tabindex")||(this.$linkedElement.setAttribute("tabindex","-1"),this.$linkedElement.classList.add("tna-!--no-focus-style"),this.linkedElementListener||(this.$linkedElement.addEventListener("blur",function(){return t.removeFocusProperties()}),this.linkedElementListener=!0)),this.$linkedElement.focus()}},{key:"removeFocusProperties",value:function(){this.$linkedElement.removeAttribute("tabindex"),this.$linkedElement.classList.remove("tna-!--no-focus-style")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},344:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{Gallery:()=>a});var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$itemsContainer=e&&e.querySelector(".tna-gallery__items"),this.$items=this.$itemsContainer&&this.$itemsContainer.querySelectorAll(".tna-gallery__item"),this.$navigation=e&&e.querySelector(".tna-gallery__navigation"),this.$navigationItems=this.$navigation&&e.querySelectorAll(".tna-gallery__navigation-item"),this.$options=e&&e.querySelector(".tna-gallery__options"),this.$navigationButtons=e&&e.querySelector(".tna-gallery__navigation-buttons"),this.$module&&this.$itemsContainer&&this.$items&&!(this.$items.length<2)&&this.$navigation&&this.$navigationItems&&this.$options&&this.$navigationButtons&&(this.$module.classList.add("tna-gallery--interactive"),this.$showIndex=this.$options.querySelector('button[value="show-index"]'),this.$enterFullscreen=this.$options.querySelector('button[value="enter-fullscreen"]'),this.$exitFullscreen=this.$options.querySelector('button[value="exit-fullscreen"]'),this.$navigationButtonPrev=this.$navigationButtons.querySelector(".tna-gallery__navigation-prev"),this.$navigationButtonNext=this.$navigationButtons.querySelector(".tna-gallery__navigation-next"),this.$module.addEventListener("fullscreenchange",function(){return n.syncFullScreen()}),this.setup(),this.allowGridIndex=this.$module.dataset.showgrid||!1,this.allowGridIndex?this.showIndex():(this.currentId=this.$items[0].id,this.showItem(this.currentId)))},e=[{key:"setup",value:function(){var t,e,n,i,r,o,a,s=this;this.$items.forEach(function(t){var e;t.setAttribute("hidden",""),t.setAttribute("aria-hidden","true"),null===(e=t.querySelector(".tna-gallery__item-header"))||void 0===e||e.setAttribute("aria-hidden","true")}),this.$navigation.removeAttribute("hidden"),this.$navigationItems.forEach(function(t){t.addEventListener("click",function(){s.showItem(t.getAttribute("aria-controls")),s.$itemsContainer.setAttribute("tabindex","0"),s.$itemsContainer.focus()})}),this.$module.addEventListener("keydown",function(t){var e=!1;switch(t.key){case"ArrowLeft":case"ArrowUp":s.showPreviousItem(),e=!0;break;case"ArrowRight":case"ArrowDown":s.showNextItem(),e=!0;break;case"Home":s.showFirstItem(),e=!0;break;case"End":s.showLastItem(),e=!0}e&&(t.stopPropagation(),t.preventDefault())}),this.$options.removeAttribute("hidden"),document.fullscreenEnabled&&this.$enterFullscreen&&this.$exitFullscreen&&(null===(r=this.$enterFullscreen)||void 0===r||r.addEventListener("click",function(){return s.enterFullScreen()}),null===(o=this.$exitFullscreen)||void 0===o||o.addEventListener("click",function(){return s.exitFullScreen()}),null===(a=this.$enterFullscreen)||void 0===a||a.removeAttribute("hidden")),null===(t=this.$showIndex)||void 0===t||t.addEventListener("click",function(){return s.showIndex()}),null===(e=this.$navigationButtons)||void 0===e||e.removeAttribute("hidden"),null===(n=this.$navigationButtonPrev)||void 0===n||n.addEventListener("click",function(){s.showPreviousItem()}),null===(i=this.$navigationButtonNext)||void 0===i||i.addEventListener("click",function(){s.showNextItem()}),this.$liveRegion=document.createElement("div"),this.$liveRegion.setAttribute("aria-live","polite"),this.$liveRegion.setAttribute("aria-atomic","true"),this.$liveRegion.setAttribute("class","tna-gallery__item-header"),this.$itemsContainer.prepend(this.$liveRegion),this.$itemsContainer.classList.add("tna-gallery__items--hide-item-titles"),this.$itemsContainer.addEventListener("blur",function(){return s.$itemsContainer.removeAttribute("tabindex")})}},{key:"showIndex",value:function(){var t;this.showItem(""),this.$itemsContainer.classList.add("tna-gallery__items--hide-items"),null===(t=this.$showIndex)||void 0===t||t.setAttribute("hidden","")}},{key:"showItem",value:function(t){var e,n=this;this.$items.forEach(function(e){t&&e.id===t?(e.removeAttribute("hidden"),e.removeAttribute("aria-hidden")):(e.setAttribute("hidden",""),e.setAttribute("aria-hidden","true"))}),this.$navigationItems.forEach(function(e){t&&e.getAttribute("aria-controls")===t?(e.setAttribute("aria-current","true"),n.isFullScreen()&&e.scrollIntoView({block:"nearest"})):e.setAttribute("aria-current","false")}),this.allowGridIndex&&(null===(e=this.$showIndex)||void 0===e||e.removeAttribute("hidden")),this.$itemsContainer.classList.remove("tna-gallery__items--hide-items"),this.currentId=t,this.$liveRegion.textContent="Image ".concat(this.getCurrentItemIndex()+1," of ").concat(this.$items.length)}},{key:"getCurrentItemIndex",value:function(){var t=this;return Array.from(this.$items).findIndex(function(e){return e.id===t.currentId})}},{key:"showPreviousItem",value:function(){var t=this.getCurrentItemIndex()-1;t<0&&(t=this.$items.length-1),this.showItem(this.$items[t].id)}},{key:"showNextItem",value:function(){var t=this.getCurrentItemIndex()+1;t>=this.$items.length&&(t=0),this.showItem(this.$items[t].id)}},{key:"showFirstItem",value:function(){this.showItem(this.$items[0].id)}},{key:"showLastItem",value:function(){this.showItem(this.$items[this.$items.length-1].id)}},{key:"isFullScreen",value:function(){return document.fullscreenElement}},{key:"enterFullScreen",value:function(){this.$module.requestFullscreen(),this.syncFullScreen(),this.$module.focus()}},{key:"exitFullScreen",value:function(){document.exitFullscreen(),this.syncFullScreen()}},{key:"syncFullScreen",value:function(){this.isFullScreen()?(this.$enterFullscreen.setAttribute("hidden",""),this.$exitFullscreen.removeAttribute("hidden")):(this.$exitFullscreen.setAttribute("hidden",""),this.$enterFullscreen.removeAttribute("hidden"))}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},384:(t,e,n)=>{n.d(e,{Picture:()=>s});var i=n(181);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$imageWrapper=e&&e.querySelector(".tna-picture__image-wrapper"),this.$transcriptToggle=this.$imageWrapper&&this.$imageWrapper.querySelector(".tna-picture__toggle-transcript"),this.$transcript=e&&e.querySelector(".tna-picture__transcript"),this.transcriptOpened=!1,this.$module&&this.$imageWrapper&&this.$transcriptToggle&&this.$transcript&&(this.openLabel=this.$module.dataset.informationLabelOpen||"Open transcript",this.closeLabel=this.$module.dataset.informationLabelClose||"Close transcript",this.init())},e=[{key:"init",value:function(){var t=this,e="tna-picture-".concat((0,i.A)());this.$transcriptToggle.removeAttribute("hidden"),this.$transcriptToggle.setAttribute("aria-controls",e),this.$transcriptToggle.innerText=this.openLabel,this.$transcriptToggle.addEventListener("click",function(){return t.toggleTranscript()}),this.$transcript.setAttribute("id",e),this.$transcript.setAttribute("hidden",""),this.$transcript.addEventListener("keydown",function(e){"Escape"===e.key&&(t.toggleTranscript(),t.$transcriptToggle.focus())})}},{key:"toggleTranscript",value:function(){this.transcriptOpened=!this.transcriptOpened,this.transcriptOpened?(this.$transcriptToggle.setAttribute("aria-expanded",!0),this.$transcriptToggle.innerText=this.closeLabel,this.$transcript.removeAttribute("hidden")):(this.$transcriptToggle.setAttribute("aria-expanded",!1),this.$transcriptToggle.innerText=this.openLabel,this.$transcript.setAttribute("hidden",""))}}],e&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},432:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{Header:()=>a});var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$toggleButton=e&&e.querySelector(".tna-header__navigation-button"),this.$navigation=e&&e.querySelector(".tna-header__navigation"),this.$links=e&&this.$navigation&&this.$navigation.querySelectorAll("[tabindex='0']"),this.menuOpened=!1,this.mql=window.matchMedia("(max-width: 48em)"),this.$module&&this.$toggleButton&&this.$navigation&&(this.$toggleButton.removeAttribute("hidden"),this.syncState(),this.$toggleButton.addEventListener("click",function(){return n.handleToggleNavigation()}),"addEventListener"in this.mql?this.mql.addEventListener("change",function(){return n.syncState()}):this.mql.addListener(function(){return n.syncState()}),this.$module.addEventListener("keyup",function(t){"Escape"===t.code&&n.menuOpened&&n.mql.matches&&(n.menuOpened=!1,n.syncState(),n.$toggleButton.focus())}))},(e=[{key:"handleToggleNavigation",value:function(){this.menuOpened=!this.menuOpened,this.syncState()}},{key:"syncState",value:function(){this.mql.matches?this.menuOpened?this.show():this.hide():this.show()}},{key:"show",value:function(){this.$navigation.classList.add("tna-header__navigation--open"),this.$navigation.removeAttribute("hidden"),this.$navigation.setAttribute("aria-hidden","false"),this.$toggleButton.setAttribute("aria-expanded","true"),this.$toggleButton.setAttribute("title","Close menu"),this.$toggleButton.classList.add("tna-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","0")}},{key:"hide",value:function(){this.$navigation.classList.remove("tna-header__navigation--open"),this.$navigation.hidden=!0,this.$navigation.setAttribute("aria-hidden","true"),this.$toggleButton.setAttribute("aria-expanded","false"),this.$toggleButton.setAttribute("title","Open menu"),this.$toggleButton.classList.remove("tna-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","-1")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},552:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{ErrorSummary:()=>a});var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e},e=[{key:"init",value:function(){var t=this;this.$module&&("true"===this.$module.dataset.disableAutofocus||this.setFocus(this.$module),this.$module.addEventListener("click",function(e){return t.handleClick(e)}))}},{key:"setFocus",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.getAttribute("tabindex");function r(){var e;null===(e=n.onBlur)||void 0===e||e.call(t),i||t.removeAttribute("tabindex")}i||t.setAttribute("tabindex","-1"),t.addEventListener("focus",function(){t.addEventListener("blur",r,{once:!0})},{once:!0}),null===(e=n.onBeforeFocus)||void 0===e||e.call(t),t.focus()}},{key:"handleClick",value:function(t){var e=t.target;e&&this.focusTarget(e)&&t.preventDefault()}},{key:"getFragmentFromUrl",value:function(t){if(t.includes("#"))return t.split("#").pop()}},{key:"focusTarget",value:function(t){if(!(t instanceof HTMLAnchorElement))return!1;var e=this.getFragmentFromUrl(t.href);if(!e)return!1;var n=document.getElementById(e);if(!n)return!1;var i=this.getAssociatedLegendOrLabel(n);return!!i&&(i.scrollIntoView(),n.focus({preventScroll:!0}),!0)}},{key:"getAssociatedLegendOrLabel",value:function(t){var e,n=t.closest("fieldset");if(n){var i=n.getElementsByTagName("legend");if(i.length){var r=i[0];if(t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type))return r;var o=r.getBoundingClientRect().top,a=t.getBoundingClientRect();if(a.height&&window.innerHeight&&a.top+a.height-o<window.innerHeight/2)return r}}return null!==(e=document.querySelector("label[for='".concat(t.getAttribute("id"),"']")))&&void 0!==e?e:t.closest("label")}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},576:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{GlobalHeader:()=>a});var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$toggleButton=e&&e.querySelector(".tna-global-header__navigation-button"),this.$navigation=e&&e.querySelector(".tna-global-header__navigation-wrapper"),this.$topNavigation=e&&e.querySelector(".tna-global-header__top-navigation-wrapper"),this.$links=e&&(this.$navigation&&this.$navigation.querySelectorAll("[tabindex='0']")||this.$topNavigation&&this.$topNavigation.querySelectorAll("[tabindex='0']")),this.menuOpened=!1,this.mql=window.matchMedia("(max-width: 48em)"),this.$module&&this.$toggleButton&&(this.$navigation||this.$topNavigation)&&(this.$toggleButton.removeAttribute("hidden"),this.syncState(),this.$toggleButton.addEventListener("click",function(){return n.handleToggleNavigation()}),"addEventListener"in this.mql?this.mql.addEventListener("change",function(){return n.syncState()}):this.mql.addListener(function(){return n.syncState()}),this.$module.addEventListener("keyup",function(t){"Escape"===t.code&&n.mql.matches&&n.menuOpened&&(n.menuOpened=!1,n.syncState(),n.$toggleButton.focus())}))},(e=[{key:"handleToggleNavigation",value:function(){this.menuOpened=!this.menuOpened,this.syncState()}},{key:"syncState",value:function(){this.mql.matches?this.menuOpened?this.show():this.hide():this.show()}},{key:"hide",value:function(){this.$navigation&&(this.$navigation.hidden=!0,this.$navigation.setAttribute("aria-hidden","true")),this.$topNavigation&&(this.$topNavigation.hidden=!0,this.$topNavigation.setAttribute("aria-hidden","true")),this.$toggleButton.setAttribute("aria-expanded","false"),this.$toggleButton.setAttribute("title","Open menu"),this.$toggleButton.classList.remove("tna-global-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","-1")}},{key:"show",value:function(){this.$navigation&&(this.$navigation.hidden=!1,this.$navigation.setAttribute("aria-hidden","false")),this.$topNavigation&&(this.$topNavigation.hidden=!1,this.$topNavigation.setAttribute("aria-hidden","false")),this.$toggleButton.setAttribute("aria-expanded","true"),this.$toggleButton.setAttribute("title","Close menu"),this.$toggleButton.classList.add("tna-global-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","0")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},592:(t,e,n)=>{n.d(e,{Breadcrumbs:()=>l});var i=n(181);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var l=a(function t(e){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$breadcrumbsList=e&&e.querySelector(".tna-breadcrumbs__list"),this.$breadcrumbs=e&&this.$breadcrumbsList&&e.querySelectorAll(".tna-breadcrumbs__item"),this.$module&&this.$breadcrumbsList&&this.$breadcrumbs&&this.$breadcrumbs.length>2&&!this.$module.classList.contains("tna-breadcrumbs--no-collapse")){var r="tna-breadcrumbs-".concat((0,i.A)()),o=document.createElement("li");o.classList.add("tna-breadcrumbs__item","tna-breadcrumbs__item--expandable"),o.style.display="none";var a=document.createElement("button");a.classList.add("tna-breadcrumbs__link"),a.innerHTML="<span class='tna-!--visually-hidden'>Expand breadcrumbs</span>…",a.setAttribute("type","button"),a.setAttribute("aria-expanded","false"),a.setAttribute("aria-controls",r),a.addEventListener("click",function(){n.$module.classList.remove("tna-breadcrumbs--collapsed"),o.remove(),n.$module.setAttribute("tabindex","0"),n.$module.focus(),n.$module.setAttribute("tabindex","-1")}),o.appendChild(a),this.$breadcrumbsList.setAttribute("id",r),this.$breadcrumbsList.insertBefore(o,this.$breadcrumbs[this.$breadcrumbs.length-2].nextSibling),this.$module.classList.add("tna-breadcrumbs--collapsed")}})},728:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{DateInputProgressive:()=>a}),n(169);var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$yearWrapper=e&&e.querySelector(".tna-date-input__item--year"),this.$yearInput=this.$yearWrapper&&this.$yearWrapper.querySelector("input"),this.$monthWrapper=e&&e.querySelector(".tna-date-input__item--month"),this.$monthInput=this.$monthWrapper&&this.$monthWrapper.querySelector("input"),this.$dayWrapper=e&&e.querySelector(".tna-date-input__item--day"),this.$dayInput=this.$dayWrapper&&this.$dayWrapper.querySelector("input"),this.$module&&(this.update(),window.addEventListener("pageshow",function(){return n.update()}),this.$yearInput&&(this.$yearInput.addEventListener("keyup",function(){return n.update()}),this.$yearInput.addEventListener("change",function(){return n.update()})),this.$monthInput&&(this.$monthInput.addEventListener("keyup",function(){return n.update()}),this.$monthInput.addEventListener("change",function(){return n.update()})),this.$dayInput&&(this.$dayInput.addEventListener("keyup",function(){return n.update()}),this.$dayInput.addEventListener("change",function(){return n.update()})))},(e=[{key:"update",value:function(){this.isValidYear()?(this.showMonth(),this.isValidMonth()?this.showDay():this.hideDay()):(this.hideMonth(),this.hideDay())}},{key:"isValidYear",value:function(){if(!this.$yearInput)return!0;var t=parseInt(this.$yearInput.value.trim());return!isNaN(this.$yearInput.value)&&!isNaN(t)&&t>0}},{key:"isValidMonth",value:function(){if(!this.$monthInput)return!0;var t=this.$monthInput.value.trim(),e=parseInt(t);return!isNaN(this.$monthInput.value)&&!isNaN(e)&&e>0&&e<=12||["january","february","march","april","may","june","july","august","september","october","november","december","jan","feb","mar","apr","jun","jul","aug","sep","oct","nov","dec"].includes(t.toLowerCase())}},{key:"showMonth",value:function(){this.$monthWrapper&&this.$monthWrapper.removeAttribute("hidden")}},{key:"hideMonth",value:function(){this.$monthWrapper&&this.$monthWrapper.setAttribute("hidden","")}},{key:"showDay",value:function(){this.$dayWrapper&&this.$dayWrapper.removeAttribute("hidden")}},{key:"hideDay",value:function(){this.$dayWrapper&&this.$dayWrapper.setAttribute("hidden","")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},859:(t,e,n)=>{n.d(e,{EventTracker:()=>H,GA4:()=>W,helpers:()=>R});var i=n(169),r=function(t){if(""!==t.id)return'id("'+t.id+'")';if(t===document.body)return t.tagName;var e=0;if(!t.parentNode)return t.tagName;for(var n=t.parentNode.childNodes,i=0;i<n.length;i++){var o=n[i];if(o===t)return r(t.parentNode)+"/"+t.tagName+"["+(e+1)+"]";1===o.nodeType&&o.tagName===t.tagName&&e++}},o=function(t,e){var n="",i=t;do{for(;i.previousElementSibling;)if(i=i.previousElementSibling,e.some(function(t){return i.matches(t)})){n=i.innerText;break}i=i.parentElement}while(i.parentElement&&!n);return n},a=function(t){return o(t,["h1","h2","h3","h4","h5","h6"])},s={text:function(t){return t.innerText.replace(/\n/g," ")},html:function(t){return t.innerHTML},value:function(t){return t.value},index:function(t,e,n,i){return i},instance:function(t,e,n,i,r){return r},checked:function(t){return t.checked?"checked":"unchecked"},expanded:function(t){var e=t.getAttribute("aria-expanded");return null===e?null:"true"===e.toString()?"opened":"closed"},closestHeading:function(t){return a(t)},xpath:function(t){return r(t.target)}};const l=[{scope:".tna-breadcrumbs",areaName:"breadcrumbs",rootEventName:"select_navigation",rootData:{data_component_name:"breadcrumbs"},events:[{eventName:"click",targetElement:"a.tna-breadcrumbs__link",on:"click",data:{state:"expand",value:s.html},rootData:{data_link_type:"breadcrumb_link",data_link:s.text}},{eventName:"click",targetElement:".tna-breadcrumbs__item--expandable button.tna-breadcrumbs__link",on:"click",data:{state:"expand",value:s.html},rootData:{data_link_type:"breadcrumb_expand",data_link:s.text}}]}],c=[{scope:".tna-checkboxes",areaName:"checkboxes",events:[{eventName:"toggle",targetElement:".tna-checkboxes__item input",on:"change",data:{state:s.checked,value:function(t,e,n){return t.parentNode.innerText.trim()},group:function(t,e,n){var i;return null===(i=e.closest(".tna-form__group"))||void 0===i||null===(i=i.querySelector(".tna-form__heading"))||void 0===i||null===(i=i.innerText)||void 0===i?void 0:i.trim()}}}]}],u=[{scope:".tna-details",areaName:"details",events:[{eventName:"click",targetElement:".tna-details__summary",on:"click",data:{state:function(t,e,n){var i,r;return null!==(i=null===(r=e.querySelector(".tna-details__details"))||void 0===r?void 0:r.hasAttribute("open"))&&void 0!==i&&i?"closed":"opened"},value:s.text}}]}],d=[{scope:".tna-error-summary",areaName:"error-summary",events:[{eventName:"jump",targetElement:"a.tna-error-summary__link",on:"click",data:{value:s.text}}]}];var h=function(t){return JSON.stringify(Array.from(t.files).map(function(t){return{name:t.name,size:t.size,type:t.type}}))};const m=[{scope:".tna-file-input",areaName:"file-input",events:[{eventName:"blurred",on:"blur",data:{value:h,state:function(t){return t.files.length},group:function(t,e){var n;return null===(n=e.closest(".tna-form__group"))||void 0===n||null===(n=n.querySelector(".tna-form__heading"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}}},{eventName:"cancelled",on:"cancel",data:{value:h,state:function(t){return t.files.length},group:function(t,e){var n;return null===(n=e.closest(".tna-form__group"))||void 0===n||null===(n=n.querySelector(".tna-form__heading"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}}},{eventName:"changed",on:"change",data:{value:h,state:function(t){return t.files.length},group:function(t,e){var n;return null===(n=e.closest(".tna-form__group"))||void 0===n||null===(n=n.querySelector(".tna-form__heading"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}}}]}],p=[{scope:".tna-footer",areaName:"footer",rootEventName:"global_navigation",rootData:{data_component_name:"footer"},events:[{eventName:"link.click",targetElement:".tna-footer__navigation-block-item-link",on:"click",data:{value:s.text},rootData:{data_link_type:"link",data_section:s.closestHeading,data_link:s.text}},{eventName:"social_link.click",targetElement:".tna-footer__social-item-link",on:"click",data:{value:s.text},rootData:{data_link_type:"icon",data_section:"Social media",data_link:function(t){return t.dataset.name}}},{eventName:"legal_link.click",targetElement:".tna-footer__legal-item-link",on:"click",data:{value:s.text},rootData:{data_link_type:"link",data_section:"Legal information",data_link:s.text}},{eventName:"mailing_list.click",targetElement:".tna-footer__mailing-list a.tna-button",on:"click",data:{value:s.text},rootData:{data_link_type:"button",data_section:"Mailing list",data_link:s.text}},{eventName:"ogl.click",targetElement:".tna-footer__licence p a.tna-footer__link",on:"click",data:{value:s.text},rootData:{data_link_type:"link",data_section:"OGL",data_link:s.text}},{eventName:"govuk.click",targetElement:".tna-footer__govuk-link",on:"click",data:{value:s.text},rootData:{data_link_type:"Logo",data_section:"GOV.UK",data_link:s.text}},{eventName:"theme.change",targetElement:".tna-footer__theme-selector-button",on:"click",data:{value:s.value}}]}],f=[{scope:".tna-gallery",areaName:"gallery",rootEventName:"select_media",rootData:{media_type:"gallery",media_duration:function(t,e){return e.querySelectorAll(".tna-gallery__navigation-item").length},media_provider:"tna",media_title:function(t,e,n,i,r){var o;return(null===(o=e.querySelector(".tna-gallery__header-inner"))||void 0===o||null===(o=o.innerText)||void 0===o?void 0:o.trim())||"gallery_".concat(r)},media_progress:function(t,e){return(Array.from(e.querySelectorAll(".tna-gallery__navigation-item")).findIndex(function(t){return"true"===t.getAttribute("aria-current")})||-1)+1}},events:[{eventName:"click",targetElement:".tna-gallery__navigation-item",on:"click",data:{value:s.text},rootData:{data_link:"image",media_action:"progress",media_progress:s.index}},{eventName:"click",targetElement:".tna-gallery__navigation-prev",on:"click",data:{value:function(t,e){var n;return null===(n=e.querySelector(".tna-gallery__item:not([hidden]) .tna-gallery__item-header"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}},rootData:{data_link:"previous",media_action:"progress"}},{eventName:"click",targetElement:".tna-gallery__navigation-next",on:"click",data:{value:function(t,e){var n;return null===(n=e.querySelector(".tna-gallery__item:not([hidden]) .tna-gallery__item-header"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}},rootData:{data_link:"next",media_action:"progress"}},{eventName:"keypress",on:"keydown",onCondition:function(t,e,n){return["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","End","Home"].includes(n.key)},data:{value:function(t,e,n){return n.key}},rootData:{data_link:"keypress",media_action:"progress"}},{eventName:"enter-fullscreen",targetElement:'.tna-gallery__options button[value="enter-fullscreen"]',on:"click",rootData:{data_link:"enter_full_screen_button"}},{eventName:"exit-fullscreen",targetElement:'.tna-gallery__options button[value="exit-fullscreen"]',on:"click",rootData:{data_link:"exit_full_screen_button"}},{eventName:"index",targetElement:'.tna-gallery__options button[value="show-index"]',on:"click"}]}],v=[{scope:".tna-global-header",areaName:"header",rootEventName:"global_navigation",rootData:{data_component_name:"header"},events:[{eventName:"toggle",targetElement:".tna-global-header__navigation-button",on:"click",data:{state:s.expanded},rootData:{data_link_type:"mobile_menu",data_link:function(t){var e=t.getAttribute("aria-expanded");return null===e?null:"true"===e.toString()?"Open menu":"Close menu"},data_section:"Burger menu"}},{eventName:"logo.click",targetElement:".tna-global-header__logo",on:"click",rootData:{data_link_type:"logo",data_link:"The National Archives",data_section:"Top navigation and logo"}},{eventName:"primary_link.click",targetElement:".tna-global-header__navigation-item-link",on:"click",data:{value:s.text},rootData:{data_link_type:"menu",data_section:s.text,data_position:1,data_link:s.text}},{eventName:"secondary_link.click",targetElement:".tna-global-header__top-navigation-link",on:"click",data:{value:s.text},rootData:{data_link_type:"icon",data_link:s.text,data_section:"Top navigation and logo"}}]}],y=[{scope:".tna-header",areaName:"header",events:[{eventName:"toggle",targetElement:".tna-header__navigation-button",on:"click",data:{state:s.expanded}}]}],b=[{scope:".tna-picture",areaName:"picture",events:[{eventName:"toggle_transcript",targetElement:".tna-picture__toggle-transcript",on:"click",data:{state:s.expanded,value:function(t,e,n){var i=a(e),r=e.querySelector(".tna-picture__image"),o=r.getAttribute("src"),s=r.getAttribute("alt"),l="".concat(s," (").concat(o,")");return i?"".concat(i," > ").concat(l):l}}}]}],g=[{scope:".tna-radios",areaName:"radios",events:[{eventName:"toggle",targetElement:".tna-radios__item input",on:"change",data:{state:s.checked,value:function(t,e,n){return t.parentNode.innerText},group:function(t,e,n){var i;return null===(i=e.closest(".tna-form__group"))||void 0===i||null===(i=i.querySelector(".tna-form__heading"))||void 0===i||null===(i=i.innerText)||void 0===i?void 0:i.trim()}}}]}],k=[{scope:".tna-search-field",areaName:"search-field",events:[{eventName:"blurred",targetElement:".tna-search-field__input",on:"blur",data:{value:s.value,group:function(t,e,n){var i;return null===(i=e.querySelector(".tna-form__heading"))||void 0===i||null===(i=i.innerText)||void 0===i?void 0:i.trim()}}}]}],w=[{scope:".tna-sidebar",areaName:"sidebar",rootEventName:"select_navigation",rootData:{data_component_name:"sidebar",data_section:function(t,e){var n;return null===(n=e.querySelector(".tna-sidebar__heading"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}},events:[{eventName:"click",targetElement:"a.tna-sidebar__link",on:"click",rootData:{data_link_type:"sidebar_link",data_link:s.text,data_position:s.index}}]}],$=[{scope:".tna-text-input",areaName:"text-input",events:[{eventName:"blurred",on:"blur",data:{value:s.value,group:function(t,e){var n;return null===(n=e.closest(".tna-form__group"))||void 0===n||null===(n=n.querySelector(".tna-form__heading"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.trim()}}}]}],_=[{scope:".tna-textarea",areaName:"textarea",events:[{eventName:"blurred",on:"blur",data:{value:s.value,group:function(t,e,n){var i;return null===(i=e.closest(".tna-form__group"))||void 0===i||null===(i=i.querySelector(".tna-form__heading"))||void 0===i||null===(i=i.innerText)||void 0===i?void 0:i.trim()}}}]}];function A(t,e){if(e&&("object"==P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function S(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(S=function(){return!!t})()}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function x(t,e){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},x(t,e)}function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,e)||F(t,e)||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.")}()}function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach(function(e){N(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,q(i.key),i)}}function C(t,e,n){return e&&O(t.prototype,e),n&&O(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function N(t,e,n){return(e=q(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t){var e=function(t){if("object"!=P(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==P(e)?e:e+""}function D(t){return function(t){if(Array.isArray(t))return B(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||F(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,e){if(t){if("string"==typeof t)return B(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var M=[].concat(D([{scope:".tna-accordion",areaName:"accordion",rootEventName:"select_feature",rootData:{data_component_name:"accordion"},events:[{eventName:"click",targetElement:".tna-accordion__summary",on:"click",data:{state:s.expanded,value:s.text},rootData:{data_link_type:s.expanded,data_link:s.text,data_position:s.index}}]}]),D(l),D(c),D(u),D(d),D(m),D(p),D(f),D(v),D(y),D([{scope:".tna-hero",areaName:"hero",events:[{eventName:"toggle_caption",targetElement:".tna-hero__details-summary",on:"click",data:{state:function(t,e,n){var i,r;return null!==(i=null===(r=e.querySelector(".tna-hero__details"))||void 0===r?void 0:r.hasAttribute("open"))&&void 0!==i&&i?"closed":"opened"},value:function(t,e,n){var i;return null===(i=e.querySelector("img[alt]"))||void 0===i?void 0:i.getAttribute("alt")}}}]}]),D(b),D(g),D(k),D(w),D($),D(_)),H=function(){return C(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,t),N(this,"cookies",new i.A),N(this,"events",[]),N(this,"startTime",new Date),N(this,"prefix","tna"),N(this,"document",document);var n=e.prefix,r=void 0===n?null:n,o=e.documentScope,a=void 0===o?document:o;r&&(this.prefix=r),a&&(this.document=a)},[{key:"start",value:function(t){var e=this;navigator.doNotTrack&&1===navigator.doNotTrack||(this.cookies.isPolicyAccepted("usage")&&this.enableTracking(),this.cookies.on("changePolicy",function(t){Object.hasOwn(t,"usage")&&(t.usage?e.enableTracking():e.disableTracking())}),t&&this.initAll())}},{key:"enableTracking",value:function(){}},{key:"disableTracking",value:function(){}},{key:"initAll",value:function(){var t=this;M.forEach(function(e){t.addListeners(e.scope,e.areaName,e.events,e.rootEventName||"",e.rootData||{})})}},{key:"addListeners",value:function(t,e,n){var i,r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};"string"==typeof t?i=Array.from(this.document.querySelectorAll(t)):"object"===P(t)&&(i=[t]),i&&i.forEach(function(i,s){n.forEach(function(n){n.on&&(n.targetElement?Array.from(i.querySelectorAll(n.targetElement)).forEach(function(l,c){return r.attachListener(l,i,o,a,n,t,e,c+1,s+1)}):r.attachListener(i,i,o,a,n,t,e,1,s+1))})})}},{key:"generateEventName",value:function(t,e){return"".concat(this.prefix,".").concat(t,".").concat(e.eventName||e.on)}},{key:"attachListener",value:function(t,e,n,i,o,a,s,l,c){var u=this,d=o.on,h=o.data,m=o.targetElement,p=o.rootData,f=void 0===p?{}:p,v=o.onCondition,y=void 0===v?null:v;t.addEventListener(d,function(d){var p=[t,e,d,l,c];(null===y||u.computedValue.apply(u,[y].concat(p)))&&u.recordEvent(o.rootEventName?"".concat(u.prefix,".").concat(o.rootEventName):n?"".concat(u.prefix,".").concat(n):u.generateEventName(s,o),I(I({},h),{},{name:u.generateEventName(s,o),value:null!=h&&h.value?u.computedValue.apply(u,[h.value].concat(p)):null,state:null!=h&&h.state?u.computedValue.apply(u,[h.state].concat(p)):null,group:null!=h&&h.group?u.computedValue.apply(u,[h.group].concat(p)):null,xPath:r(t),targetElement:m,timeSincePageLoad:new Date-u.startTime,index:l,instance:c,scope:a,areaName:s}),Object.fromEntries(Object.entries(I(I({},i),f)).map(function(t){var e=T(t,2),n=e[0],i=e[1];return[n,u.computedValue.apply(u,[i].concat(p))]})))})}},{key:"computedValue",value:function(t,e,n,i,r,o){return"function"==typeof t?t.call(this,e,n,i,r,o):null!=t?t:null}},{key:"recordEvent",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.events.push(I(I({event:t},e),n))}},{key:"getTnaMetaTags",value:function(){var t=this;return Object.fromEntries([].concat(D(Array.from(document.head.querySelectorAll('meta[name^="'.concat(this.prefix,'_root:"][content]'))).map(function(e){return[e.getAttribute("name").replace(new RegExp("^".concat(t.prefix,"_root:")),""),e.getAttribute("content")]})),D(Array.from(document.head.querySelectorAll('meta[name^="'.concat(this.prefix,'."][content]'))).map(function(t){return[t.getAttribute("name"),t.getAttribute("content")]}))))}},{key:"getUserPreferences",value:function(){var t,e,n,i,r,o,a,s,l,c,u,d,h={};return h["".concat(this.prefix,".pref.prefers-color-scheme")]=null!==(t=(e=window).matchMedia)&&void 0!==t&&t.call(e,"(prefers-color-scheme: dark)").matches?"dark":"light",h["".concat(this.prefix,".pref.forced-colors")]=null===(n=(i=window).matchMedia)||void 0===n?void 0:n.call(i,"(forced-colors: active)").matches,h["".concat(this.prefix,".pref.prefers-contrast")]=null!==(r=(o=window).matchMedia)&&void 0!==r&&r.call(o,"(prefers-contrast: more)").matches?"more":null!==(a=(s=window).matchMedia)&&void 0!==a&&a.call(s,"(prefers-contrast: less)").matches?"less":"normal",h["".concat(this.prefix,".pref.prefers-reduced-motion")]=null===(l=(c=window).matchMedia)||void 0===l?void 0:l.call(c,"(prefers-reduced-motion: reduce)").matches,h["".concat(this.prefix,".pref.prefers-reduced-transparency")]=null===(u=(d=window).matchMedia)||void 0===u?void 0:u.call(d,"(prefers-reduced-transparency: reduce)").matches,h}}])}(),W=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(j(this,e),window.TNAFrontendAnalyticsGA4)return A(t,window.TNAFrontendAnalyticsGA4);var i,r,o,a=n.id,s=void 0===a?"":a,l=n.prefix,c=void 0===l?null:l,u=n.initAll,d=void 0===u||u,h=n.addTrackingCode,m=void 0===h||h;return i=this,o=[{prefix:c}],r=E(r=e),N(t=A(i,S()?Reflect.construct(r,o||[],E(i).constructor):r.apply(i,o)),"addTrackingCode",!0),N(t,"trackingCodeAdded",!1),N(t,"trackingEnabled",!1),N(t,"gTagId",void 0),window.TNAFrontendAnalyticsGA4=t,t.addTrackingCode=m,window.dataLayer=window.dataLayer||[],s&&(t.gTagId=s,t.ga4Disable="ga-disable-".concat(t.gTagId),t.cookies.isPolicyAccepted("usage")||(window[t.ga4Disable]=!0,t.cookies.set(t.ga4Disable,"true"))),t.start(d),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&x(t,e)}(e,t),C(e,[{key:"destroy",value:function(){window.TNAFrontendAnalyticsGA4=null}},{key:"recordEvent",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=I(I({event:t},Object.fromEntries(Object.entries(e).map(function(t){var e=T(t,2),i=e[0],r=e[1];return["".concat(n.prefix,".event.").concat(i),r]}))),i);this.pushToDataLayer(r)}},{key:"gtag",value:function(){this.pushToDataLayer(arguments)}},{key:"pushToDataLayer",value:function(t){window.dataLayer.push(t)}},{key:"enableTracking",value:function(){if(!this.trackingEnabled){if(window[this.ga4Disable]=!1,this.cookies.set(this.ga4Disable,"false"),!this.trackingCodeAdded&&this.addTrackingCode){if(!this.gTagId)throw Error("ID was not specified");this.pushToDataLayer(I(I(I({},this.getTnaMetaTags()),this.getUserPreferences()),{},{"gtm.start":(new Date).getTime(),event:"gtm.js"}));var t=document.getElementsByTagName("script")[0],e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtm.js?id=".concat(this.gTagId,"&l=dataLayer"),t?t.parentNode.insertBefore(e,t):document.head.appendChild(e),this.trackingCodeAdded=!0}this.trackingEnabled=!0}}},{key:"disableTracking",value:function(){var t=this;this.trackingEnabled&&(window[this.ga4Disable]=!0,this.cookies.set(this.ga4Disable,"true"),Object.keys(this.cookies.all).forEach(function(e){e.startsWith("_ga")&&t.cookies.delete(e)}),this.trackingEnabled=!1)}}])}(H),G=document.documentElement.dataset.ga4;G&&new W({id:G});var R={getXPathTo:r,getClosestHeading:a,getClosestElement:o,valueGetters:s}},866:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{TextInput:()=>a});var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$input=e&&e.querySelector(".tna-text-input"),this.$module&&this.$input&&"password"===this.$input.getAttribute("type")&&(this.$textInputWrapper=document.createElement("div"),this.$textInputWrapper.classList.add("tna-text-input-wrapper"),this.$textInputPasswordToggle=document.createElement("button"),this.$textInputPasswordToggle.setAttribute("type","button"),this.$textInputPasswordToggle.classList.add("tna-button","tna-button--small","tna-button--icon-only"),this.$textInputPasswordToggle.setAttribute("aria-controls",this.$input.id),this.updateTogglePasswordButtonText(),this.$textInputWrapper.appendChild(this.$input),this.$textInputWrapper.appendChild(this.$textInputPasswordToggle),this.$module.appendChild(this.$textInputWrapper),this.$textInputPasswordToggle.addEventListener("click",function(){n.togglePasswordType(),n.$input.focus()}))},(e=[{key:"togglePasswordType",value:function(){"password"===this.$input.getAttribute("type")?this.$input.setAttribute("type","text"):this.$input.setAttribute("type","password"),this.updateTogglePasswordButtonText()}},{key:"updateTogglePasswordButtonText",value:function(){"password"===this.$input.getAttribute("type")?(this.$textInputPasswordToggle.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" height="16" aria-hidden="true" focusable="false">\x3c!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--\x3e<path d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>Show password',this.$textInputPasswordToggle.setAttribute("title","Show password"),this.$textInputPasswordToggle.setAttribute("aria-label","Show password")):(this.$textInputPasswordToggle.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" height="16" aria-hidden="true" focusable="false">\x3c!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--\x3e<path d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg></i>Hide password',this.$textInputPasswordToggle.setAttribute("title","Hide password"),this.$textInputPasswordToggle.setAttribute("aria-label","Hide password"))}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},876:(t,e,n)=>{n.d(e,{Footer:()=>s});var i=n(169);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$themeSelector=e&&e.querySelector(".tna-footer__theme-selector"),this.$tnaTemplate=document.querySelector(".tna-template"),this.$module&&this.$themeSelector&&this.$tnaTemplate&&(this.$themeSelectorButtons=this.$themeSelector.querySelectorAll("button.tna-footer__theme-selector-button[value]"),Array.from(this.$themeSelectorButtons).forEach(function(t){t.addEventListener("click",function(t){var e=t.target;n.setTheme(e.value),n.selectThemeSelectorButton(e)})}),this.cookies=new i.A,this.cookies.isPolicyAccepted("settings")&&this.showThemeSelector(),this.cookies.on("changePolicy",function(t){Object.hasOwn(t,"settings")&&(!0===t.settings?n.showThemeSelector():(n.cookies.delete("theme"),n.hideThemeSelector()))}))},(e=[{key:"showThemeSelector",value:function(){var t=this;if(this.$themeSelector.removeAttribute("hidden"),this.cookies.exists("theme")){var e=Array.from(this.$themeSelectorButtons).find(function(e){return e.value===t.cookies.get("theme")});e&&this.selectThemeSelectorButton(e)}}},{key:"hideThemeSelector",value:function(){this.$themeSelector.setAttribute("hidden","")}},{key:"setTheme",value:function(t){if("light"===t)this.$tnaTemplate.classList.remove("tna-template--system-theme","tna-template--dark-theme");else if("dark"===t)this.$tnaTemplate.classList.remove("tna-template--system-theme"),this.$tnaTemplate.classList.add("tna-template--dark-theme");else{if("system"!==t)return;this.$tnaTemplate.classList.remove("tna-template--dark-theme"),this.$tnaTemplate.classList.add("tna-template--system-theme")}this.cookies.set("theme",t)}},{key:"selectThemeSelectorButton",value:function(t){Array.from(this.$themeSelectorButtons).forEach(function(e){e.value===t.value?(e.classList.remove("tna-button--plain"),e.setAttribute("aria-current",!0)):(e.classList.add("tna-button--plain"),e.removeAttribute("aria-current"))})}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},944:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{Accordion:()=>a});var a=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$items=e&&e.querySelectorAll(".tna-accordion__item"),this.$module&&this.$items&&(this.allowMultipleItemsOpen="true"!==this.$module.dataset.singleOpenItem,this.$items.forEach(function(t){return n.initItem(t)}),this.initState())},(e=[{key:"initItem",value:function(t){var e=this,n=t.querySelector(".tna-accordion__heading"),i=t.querySelector(".tna-accordion__body");if(n&&i){t.classList.add("tna-accordion__details"),t.classList.remove("tna-accordion__item"),n.removeAttribute("class"),i.classList.add("tna-accordion__content"),i.classList.remove("tna-accordion__body"),i.setAttribute("hidden","");var r=document.createElement("button");r.classList.add("tna-accordion__summary"),r.setAttribute("type","button"),r.setAttribute("aria-controls",i.id),r.innerText=n.innerText,n.innerText="",n.appendChild(r),r.addEventListener("click",function(){"true"===r.getAttribute("aria-expanded")?e.closeItem(t):e.openItem(t)})}}},{key:"initState",value:function(){var t=this;this.$items.forEach(function(e){"true"===e.dataset.isopen?t.openItem(e):t.closeItem(e),e.removeAttribute("data-isopen")})}},{key:"openItem",value:function(t){this.allowMultipleItemsOpen||this.closeAllItemsExcept(t);var e=t.querySelector(".tna-accordion__summary"),n=t.querySelector(".tna-accordion__content");e.setAttribute("aria-expanded","true"),e.setAttribute("aria-label","".concat(e.innerText.trim(),", Hide this section")),n.removeAttribute("hidden")}},{key:"closeItem",value:function(t){var e=t.querySelector(".tna-accordion__summary"),n=t.querySelector(".tna-accordion__content");e.setAttribute("aria-expanded","false"),e.setAttribute("aria-label","".concat(e.innerText.trim(),", Show this section")),n.setAttribute("hidden","")}},{key:"closeAllItemsExcept",value:function(t){var e=this;Array.from(this.$items).filter(function(e){return e.querySelector(".tna-accordion__summary")!==t&&"true"===e.querySelector(".tna-accordion__summary").getAttribute("aria-expanded")}).forEach(function(t){return e.closeItem(t)})}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};n.r(i),n.d(i,{Accordion:()=>r.Accordion,Breadcrumbs:()=>r.Breadcrumbs,CookieBanner:()=>r.CookieBanner,Cookies:()=>r.Cookies,DateInputProgressive:()=>r.DateInputProgressive,ErrorSummary:()=>r.ErrorSummary,EventTracker:()=>o.EventTracker,FileInputDroppable:()=>r.FileInputDroppable,Footer:()=>r.Footer,GA4:()=>o.GA4,Gallery:()=>r.Gallery,GlobalHeader:()=>r.GlobalHeader,Header:()=>r.Header,Picture:()=>r.Picture,SkipLink:()=>r.SkipLink,Tabs:()=>r.Tabs,TextInput:()=>r.TextInput,helpers:()=>o.helpers,initAll:()=>r.initAll});var r=n(177),o=n(859);return i})());
|
2
2
|
//# sourceMappingURL=all+analytics.js.map
|