@nationalarchives/frontend 0.19.0 → 0.20.1

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.
Files changed (42) hide show
  1. package/nationalarchives/all+analytics.js +1 -1
  2. package/nationalarchives/all+analytics.js.map +1 -1
  3. package/nationalarchives/all.js +1 -1
  4. package/nationalarchives/all.js.map +1 -1
  5. package/nationalarchives/components/checkboxes/macro-options.json +15 -15
  6. package/nationalarchives/components/compound-filters/macro-options.json +6 -6
  7. package/nationalarchives/components/cookie-banner/macro-options.json +11 -7
  8. package/nationalarchives/components/date-input/date-input-day.njk +1 -1
  9. package/nationalarchives/components/date-input/date-input-month.njk +1 -1
  10. package/nationalarchives/components/date-input/date-input-year.njk +1 -1
  11. package/nationalarchives/components/date-input/fixtures.json +5 -5
  12. package/nationalarchives/components/date-input/macro-options.json +10 -16
  13. package/nationalarchives/components/date-input/template.njk +11 -11
  14. package/nationalarchives/components/date-search/macro-options.json +11 -11
  15. package/nationalarchives/components/error-summary/error-summary.js +1 -1
  16. package/nationalarchives/components/error-summary/error-summary.js.map +1 -1
  17. package/nationalarchives/components/error-summary/error-summary.mjs +108 -0
  18. package/nationalarchives/components/error-summary/macro-options.json +1 -1
  19. package/nationalarchives/components/files-list/macro-options.json +1 -1
  20. package/nationalarchives/components/footer/fixtures.json +3 -3
  21. package/nationalarchives/components/footer/macro-options.json +25 -18
  22. package/nationalarchives/components/footer/template.njk +3 -5
  23. package/nationalarchives/components/gallery/macro-options.json +1 -1
  24. package/nationalarchives/components/hero/macro-options.json +4 -3
  25. package/nationalarchives/components/index-grid/macro-options.json +1 -1
  26. package/nationalarchives/components/picture/macro-options.json +1 -1
  27. package/nationalarchives/components/radios/macro-options.json +11 -11
  28. package/nationalarchives/components/search-field/macro-options.json +7 -7
  29. package/nationalarchives/components/search-field/template.njk +1 -2
  30. package/nationalarchives/components/secondary-navigation/macro-options.json +3 -3
  31. package/nationalarchives/components/select/macro-options.json +10 -10
  32. package/nationalarchives/components/skip-link/macro-options.json +4 -2
  33. package/nationalarchives/components/tabs/macro-options.json +1 -1
  34. package/nationalarchives/components/text-input/fixtures.json +79 -12
  35. package/nationalarchives/components/text-input/macro-options.json +33 -12
  36. package/nationalarchives/components/text-input/text-input.njk +3 -2
  37. package/nationalarchives/components/textarea/fixtures.json +58 -10
  38. package/nationalarchives/components/textarea/macro-options.json +26 -10
  39. package/nationalarchives/components/textarea/template.njk +1 -1
  40. package/nationalarchives/components/warning/macro-options.json +4 -3
  41. package/nationalarchives/templates/fixtures.json +6 -6
  42. package/package.json +1 -1
@@ -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}()},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:()=>p}),window.TNAFrontendCookies=window.TNAFrontendCookies||null,window.TNAFrontendCookieEvents=window.TNAFrontendCookieEvents||null;var m=function(){return u((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)}}])}(),f=["usage","settings","marketing","essential"],p=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,"completePoliciesOnInit",!1);var i=n.defaultDomain,r=n.defaultPath,o=n.secure,a=n.policiesKey,s=n.newInstance,c=void 0!==s&&s,u=n.defaultAge,h=n.noInit,p=void 0!==h&&h;if(!c&&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===u?parseInt(document.documentElement.dataset.tnaCookiesDefaultAge)||31536e3:u,this.events=new m,this.completePoliciesOnInit=Object.keys(this.policies).length===f.length&&f.every((function(t){return Object.keys(e.policies).includes(t)&&"boolean"==typeof e.policies[t]})),this.completePoliciesOnInit||p||this.init(),window.TNAFrontendCookies=this}),[{key:"init",value:function(){var t=this.policies,e=Object.fromEntries(Object.keys(t).filter((function(t){return f.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,c=n.path,u=void 0===c?this.defaultPath:c,d=n.secure,h=void 0===d?this.secure:d,m=n.session,f=void 0!==m&&m;if(t){var p="".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e),";").concat(l?" domain=".concat(l,"; "):""," samesite=").concat(a,"; path=").concat(u).concat(f?"":"; max-age=".concat(r)).concat(h?"; secure":"");document.cookie=p,this.events.trigger("setCookie",{key:t,value:e,maxAge:r,path:u,sameSite:a,domain:l,secure:h,session:f,cookie:p})}}},{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:()=>v.A,DateInput:()=>a.DateInput,ErrorSummary:()=>s.ErrorSummary,Footer:()=>l.Footer,Gallery:()=>c.Gallery,GlobalHeader:()=>u.GlobalHeader,Header:()=>d.Header,Picture:()=>h.Picture,SkipLink:()=>m.SkipLink,Tabs:()=>f.Tabs,TextInput:()=>p.TextInput,initAll:()=>y});var i=n(944),r=n(592),o=n(24),a=n(728),s=n(552),l=n(876),c=n(344),u=n(576),d=n(432),h=n(384),m=n(292),f=n(42),p=n(866),v=n(169),y=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 v=function(){window.removeEventListener("touchstart",v),n.classList.add("tna-template--touched")};window.addEventListener("touchstart",v),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 y=e.querySelector('[data-module="tna-breadcrumbs"]');y&&new r.Breadcrumbs(y);var b=e.querySelector('[data-module="tna-cookie-banner"]');b&&new o.CookieBanner(b),e.querySelectorAll('[data-module="date-input"]').forEach((function(t){new a.DateInput(t)}));var g=e.querySelector('[data-module="tna-error-summary"]');g&&new s.ErrorSummary(g).init();var k=e.querySelector('[data-module="tna-footer"]');k&&new l.Footer(k),e.querySelectorAll('[data-module="tna-gallery"]').forEach((function(t){new c.Gallery(t)}));var w=e.querySelector('[data-module="tna-global-header"]');w&&new u.GlobalHeader(w);var _=e.querySelector('[data-module="tna-header"]');_&&new d.Header(_),e.querySelectorAll('[data-module="tna-picture"]').forEach((function(t){new h.Picture(t)})),e.querySelectorAll('[data-module="tna-skip-link"]').forEach((function(t){new m.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 p.TextInput(t)}));var $=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 $(t)})),window.addEventListener("resize",(function(){S.forEach((function(t){return $(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.$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(){this.$module&&("true"===this.$module.dataset.disableAutofocus||this.setFocus(this.$module))}},{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()}}],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>&hellip;",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")}}))},648:(t,e,n)=>{n.d(e,{EventTracker:()=>D,GA4:()=>F,helpers:()=>W});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}}]}],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-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}}]}],h=[{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"}]}],m=[{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"}}]}],f=[{scope:".tna-header",areaName:"header",events:[{eventName:"toggle",targetElement:".tna-header__navigation-button",on:"click",data:{state:s.expanded}}]}],p=[{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}}}]}],v=[{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()}}}]}],y=[{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()}}}]}],b=[{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}}]}],g=[{scope:".tna-text-input",areaName:"text-input",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()}}}]}],k=[{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 w(t,e){if(e&&("object"==T(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 _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_=function(){return!!t})()}function $(t){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function A(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)||C(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 x(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 E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T(t){return T="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},T(t)}function I(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L(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 P(t,e,n){return e&&L(t.prototype,e),n&&L(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function j(t,e,n){return(e=O(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t){var e=function(t){if("object"!=T(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==T(e)?e:e+""}function N(t){return function(t){if(Array.isArray(t))return q(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C(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 C(t,e){if(t){if("string"==typeof t)return q(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)?q(t,e):void 0}}function q(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 B=[].concat(N([{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}}]}]),N(l),N(c),N(u),N(d),N(h),N(m),N(f),N([{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")}}}]}]),N(p),N(v),N(y),N(b),N(g),N(k)),D=function(){return P((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I(this,t),j(this,"cookies",new i.A),j(this,"events",[]),j(this,"startTime",new Date),j(this,"prefix","tna"),j(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;B.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"===T(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,f=o.rootData,p=void 0===f?{}:f,v=o.onCondition,y=void 0===v?null:v;t.addEventListener(d,(function(d){var f=[t,e,d,l,c];(null===y||u.computedValue.apply(u,[y].concat(f)))&&u.recordEvent(n?"".concat(u.prefix,".").concat(n):u.generateEventName(s,o),E(E({},h),{},{name:u.generateEventName(s,o),value:null!=h&&h.value?u.computedValue.apply(u,[h.value].concat(f)):null,state:null!=h&&h.state?u.computedValue.apply(u,[h.state].concat(f)):null,group:null!=h&&h.group?u.computedValue.apply(u,[h.group].concat(f)):null,xPath:r(t),targetElement:m,timeSincePageLoad:new Date-u.startTime,index:l,instance:c,scope:a,areaName:s}),Object.fromEntries(Object.entries(E(E({},i),p)).map((function(t){var e=A(t,2),n=e[0],i=e[1];return[n,u.computedValue.apply(u,[i].concat(f))]}))))}))}},{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(E(E({event:t},e),n))}},{key:"getTnaMetaTags",value:function(){var t=this;return Object.fromEntries([].concat(N(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")]}))),N(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}}])}(),F=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(I(this,e),window.TNAFrontendAnalyticsGA4)return w(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=$(r=e),j(t=w(i,_()?Reflect.construct(r,o||[],$(i).constructor):r.apply(i,o)),"addTrackingCode",!0),j(t,"trackingCodeAdded",!1),j(t,"trackingEnabled",!1),j(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&&S(t,e)}(e,t),P(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=E(E({event:t},Object.fromEntries(Object.entries(e).map((function(t){var e=A(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(E(E(E({},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)}}])}(D),M=document.documentElement.dataset.ga4;M&&new F({id:M});var W={getXPathTo:r,getClosestHeading:a,valueGetters:s}},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,{DateInput:()=>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.$dayWrapper=e&&e.querySelector(".tna-date-input__item--day"),this.$dayInput=this.$dayWrapper&&this.$dayWrapper.querySelector("input"),this.$monthWrapper=e&&e.querySelector(".tna-date-input__item--month"),this.$monthInput=this.$monthWrapper&&this.$monthWrapper.querySelector("input"),this.$yearWrapper=e&&e.querySelector(".tna-date-input__item--year"),this.$yearInput=this.$yearWrapper&&this.$yearWrapper.querySelector("input"),this.$module&&(this.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=parseInt(this.$monthInput.value.trim());return!isNaN(this.$monthInput.value)&&!isNaN(t)&&t>0&&t<=12}},{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}()},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,DateInput:()=>r.DateInput,ErrorSummary:()=>r.ErrorSummary,EventTracker:()=>o.EventTracker,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(648);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.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}()},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:()=>p}),window.TNAFrontendCookies=window.TNAFrontendCookies||null,window.TNAFrontendCookieEvents=window.TNAFrontendCookieEvents||null;var m=function(){return u((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)}}])}(),f=["usage","settings","marketing","essential"],p=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,"completePoliciesOnInit",!1);var i=n.defaultDomain,r=n.defaultPath,o=n.secure,a=n.policiesKey,s=n.newInstance,c=void 0!==s&&s,u=n.defaultAge,h=n.noInit,p=void 0!==h&&h;if(!c&&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===u?parseInt(document.documentElement.dataset.tnaCookiesDefaultAge)||31536e3:u,this.events=new m,this.completePoliciesOnInit=Object.keys(this.policies).length===f.length&&f.every((function(t){return Object.keys(e.policies).includes(t)&&"boolean"==typeof e.policies[t]})),this.completePoliciesOnInit||p||this.init(),window.TNAFrontendCookies=this}),[{key:"init",value:function(){var t=this.policies,e=Object.fromEntries(Object.keys(t).filter((function(t){return f.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,c=n.path,u=void 0===c?this.defaultPath:c,d=n.secure,h=void 0===d?this.secure:d,m=n.session,f=void 0!==m&&m;if(t){var p="".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e),";").concat(l?" domain=".concat(l,"; "):""," samesite=").concat(a,"; path=").concat(u).concat(f?"":"; max-age=".concat(r)).concat(h?"; secure":"");document.cookie=p,this.events.trigger("setCookie",{key:t,value:e,maxAge:r,path:u,sameSite:a,domain:l,secure:h,session:f,cookie:p})}}},{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:()=>v.A,DateInput:()=>a.DateInput,ErrorSummary:()=>s.ErrorSummary,Footer:()=>l.Footer,Gallery:()=>c.Gallery,GlobalHeader:()=>u.GlobalHeader,Header:()=>d.Header,Picture:()=>h.Picture,SkipLink:()=>m.SkipLink,Tabs:()=>f.Tabs,TextInput:()=>p.TextInput,initAll:()=>y});var i=n(944),r=n(592),o=n(24),a=n(728),s=n(552),l=n(876),c=n(344),u=n(576),d=n(432),h=n(384),m=n(292),f=n(42),p=n(866),v=n(169),y=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 v=function(){window.removeEventListener("touchstart",v),n.classList.add("tna-template--touched")};window.addEventListener("touchstart",v),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 y=e.querySelector('[data-module="tna-breadcrumbs"]');y&&new r.Breadcrumbs(y);var b=e.querySelector('[data-module="tna-cookie-banner"]');b&&new o.CookieBanner(b),e.querySelectorAll('[data-module="date-input"]').forEach((function(t){new a.DateInput(t)}));var g=e.querySelector('[data-module="tna-error-summary"]');g&&new s.ErrorSummary(g).init();var k=e.querySelector('[data-module="tna-footer"]');k&&new l.Footer(k),e.querySelectorAll('[data-module="tna-gallery"]').forEach((function(t){new c.Gallery(t)}));var w=e.querySelector('[data-module="tna-global-header"]');w&&new u.GlobalHeader(w);var _=e.querySelector('[data-module="tna-header"]');_&&new d.Header(_),e.querySelectorAll('[data-module="tna-picture"]').forEach((function(t){new h.Picture(t)})),e.querySelectorAll('[data-module="tna-skip-link"]').forEach((function(t){new m.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 p.TextInput(t)}));var $=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 $(t)})),window.addEventListener("resize",(function(){S.forEach((function(t){return $(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.$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>&hellip;",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")}}))},648:(t,e,n)=>{n.d(e,{EventTracker:()=>D,GA4:()=>F,helpers:()=>H});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}}]}],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-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}}]}],h=[{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"}]}],m=[{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"}}]}],f=[{scope:".tna-header",areaName:"header",events:[{eventName:"toggle",targetElement:".tna-header__navigation-button",on:"click",data:{state:s.expanded}}]}],p=[{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}}}]}],v=[{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()}}}]}],y=[{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()}}}]}],b=[{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}}]}],g=[{scope:".tna-text-input",areaName:"text-input",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()}}}]}],k=[{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 w(t,e){if(e&&("object"==T(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 _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_=function(){return!!t})()}function $(t){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function A(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)||C(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 E(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 x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T(t){return T="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},T(t)}function I(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L(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,j(i.key),i)}}function P(t,e,n){return e&&L(t.prototype,e),n&&L(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function O(t,e,n){return(e=j(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function j(t){var e=function(t){if("object"!=T(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==T(e)?e:e+""}function N(t){return function(t){if(Array.isArray(t))return q(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C(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 C(t,e){if(t){if("string"==typeof t)return q(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)?q(t,e):void 0}}function q(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 B=[].concat(N([{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}}]}]),N(l),N(c),N(u),N(d),N(h),N(m),N(f),N([{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")}}}]}]),N(p),N(v),N(y),N(b),N(g),N(k)),D=function(){return P((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I(this,t),O(this,"cookies",new i.A),O(this,"events",[]),O(this,"startTime",new Date),O(this,"prefix","tna"),O(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;B.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"===T(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,f=o.rootData,p=void 0===f?{}:f,v=o.onCondition,y=void 0===v?null:v;t.addEventListener(d,(function(d){var f=[t,e,d,l,c];(null===y||u.computedValue.apply(u,[y].concat(f)))&&u.recordEvent(n?"".concat(u.prefix,".").concat(n):u.generateEventName(s,o),x(x({},h),{},{name:u.generateEventName(s,o),value:null!=h&&h.value?u.computedValue.apply(u,[h.value].concat(f)):null,state:null!=h&&h.state?u.computedValue.apply(u,[h.state].concat(f)):null,group:null!=h&&h.group?u.computedValue.apply(u,[h.group].concat(f)):null,xPath:r(t),targetElement:m,timeSincePageLoad:new Date-u.startTime,index:l,instance:c,scope:a,areaName:s}),Object.fromEntries(Object.entries(x(x({},i),p)).map((function(t){var e=A(t,2),n=e[0],i=e[1];return[n,u.computedValue.apply(u,[i].concat(f))]}))))}))}},{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(x(x({event:t},e),n))}},{key:"getTnaMetaTags",value:function(){var t=this;return Object.fromEntries([].concat(N(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")]}))),N(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}}])}(),F=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(I(this,e),window.TNAFrontendAnalyticsGA4)return w(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=$(r=e),O(t=w(i,_()?Reflect.construct(r,o||[],$(i).constructor):r.apply(i,o)),"addTrackingCode",!0),O(t,"trackingCodeAdded",!1),O(t,"trackingEnabled",!1),O(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&&S(t,e)}(e,t),P(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=x(x({event:t},Object.fromEntries(Object.entries(e).map((function(t){var e=A(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(x(x(x({},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)}}])}(D),M=document.documentElement.dataset.ga4;M&&new F({id:M});var H={getXPathTo:r,getClosestHeading:a,valueGetters:s}},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,{DateInput:()=>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.$dayWrapper=e&&e.querySelector(".tna-date-input__item--day"),this.$dayInput=this.$dayWrapper&&this.$dayWrapper.querySelector("input"),this.$monthWrapper=e&&e.querySelector(".tna-date-input__item--month"),this.$monthInput=this.$monthWrapper&&this.$monthWrapper.querySelector("input"),this.$yearWrapper=e&&e.querySelector(".tna-date-input__item--year"),this.$yearInput=this.$yearWrapper&&this.$yearWrapper.querySelector("input"),this.$module&&(this.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=parseInt(this.$monthInput.value.trim());return!isNaN(this.$monthInput.value)&&!isNaN(t)&&t>0&&t<=12}},{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}()},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,DateInput:()=>r.DateInput,ErrorSummary:()=>r.ErrorSummary,EventTracker:()=>o.EventTracker,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(648);return i})()));
2
2
  //# sourceMappingURL=all+analytics.js.map