1/*! For license information please see main.js.LICENSE.txt */ 2(()=>{"use strict";var e={350(){document.getElementById("wagtail-theme").addEventListener("click",e=>{document.dispatchEvent(new CustomEvent("theme:toggle-theme-mode",e)),"light"===localStorage.getItem("wagtail-theme")?e.target.setAttribute("aria-label","Change to Dark Theme"):e.target.setAttribute("aria-label","Change to Light Theme")})}},t={};function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}!function n(o){var i=t[o];if(void 0!==i)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}(350);var i,a,r,s,l,c=(i=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],a=function(){function e(t){var o=t.targetModal,i=t.triggers,a=void 0===i?[]:i,r=t.onShow,s=void 0===r?function(){}:r,l=t.onClose,c=void 0===l?function(){}:l,d=t.openTrigger,u=void 0===d?"data-micromodal-trigger":d,h=t.closeTrigger,f=void 0===h?"data-micromodal-close":h,v=t.openClass,p=void 0===v?"is-open":v,b=t.disableScroll,m=void 0!==b&&b,g=t.disableFocus,y=void 0!==g&&g,w=t.awaitCloseAnimation,E=void 0!==w&&w,k=t.awaitOpenAnimation,S=void 0!==k&&k,C=t.debugMode,L=void 0!==C&&C;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modal=document.getElementById(o),this.config={debugMode:L,disableScroll:m,openTrigger:u,closeTrigger:f,openClass:p,onShow:s,onClose:c,awaitCloseAnimation:E,awaitOpenAnimation:S,disableFocus:y},a.length>0&&this.registerTriggers.apply(this,n(a)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var t;return(t=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];n.filter(Boolean).forEach(function(t){t.addEventListener("click",function(t){return e.showModal(t)})})}},{key:"showModal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation?this.modal.addEventListener("animationend",function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()},!1):this.setFocusToFirstNode(),this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var n=this.config.openClass;this.modal.addEventListener("animationend",function e(){t.classList.remove(n),t.removeEventListener("animationend",e,!1)},!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){(e.target.hasAttribute(this.config.closeTrigger)||e.target.parentNode.hasAttribute(this.config.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),this.closeModal(e))}}
2,{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(i);return Array.apply(void 0,n(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var n=t.filter(function(t){return!t.hasAttribute(e.config.closeTrigger)});n.length>0&&n[0].focus(),0===n.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter(function(e){return null!==e.offsetParent}),this.modal.contains(document.activeElement)){var n=t.indexOf(document.activeElement);e.shiftKey&&0===n&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&n===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,t),e}(),r=null,s=function(e){if(!document.getElementById(e))return console.warn("MicroModal: âSeems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(e,'"></div>')),!1},l=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: âPlease specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>'))}(e),!t)return!0;for(var n in t)s(n);return!0},{init:function(e){var t=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),o=n(document.querySelectorAll("[".concat(t.openTrigger,"]"))),i=function(e,t){var n=[];return e.forEach(function(e){var o=e.attributes[t].value;void 0===n[o]&&(n[o]=[]),n[o].push(e)}),n}(o,t.openTrigger);if(!0!==t.debugMode||!1!==l(o,i))for(var s in i){var c=i[s];t.targetModal=s,t.triggers=n(c),r=new a(t)}},show:function(e,t){var n=t||{};n.targetModal=e,!0===n.debugMode&&!1===s(e)||(r&&r.removeEventListeners(),(r=new a(n)).showModal())},close:function(e){e?r.closeModalById(e):r.closeModal()}});"undefined"!=typeof window&&(window.MicroModal=c);const d=c,u=class{static selector(){return"[data-get-started]"}constructor(e){this.node=e,this.modalId="get-started-menu",this.bindEvents()}bindEvents(){this.node.addEventListener("click",()=>{this.openMenu()})}openMenu(){d.show(this.modalId,{awaitCloseAnimation:!0})}},h=class{static selector(){return"[data-site-search-desktop]"}constructor(e){this.node=e,this.modalId="site-search-modal",this.bindEvents()}bindEvents(){this.node.addEventListener("click",()=>{this.openMenu()})}openMenu(){d.show(this.modalId,{awaitCloseAnimation:!0})}},f=class{static selector(){return"[data-site-search-mobile]"}constructor(e){this.node=e,this.mobileSearchForm=document.querySelector("[data-search-mobile]"),this.hiddenClass="is-hidden",this.expandedClass="is-expanded",this.bindEvents()}bindEvents(){this.node.addEventListener("click",()=>{this.mobileSearchForm.classList.contains(this.hiddenClass)?(this.mobileSearchForm.classList.remove(this.hiddenClass),this.node.classList.add(this.expandedClass),this.node.ariaExpanded=!0,this.node.ariaLabel=this.node.ariaLabel.replace("Open","Close")):(this.mobileSearchForm.classList.add(this.hiddenClass),this.node.classList.remove(this.expandedClass),this.node.ariaExpanded=!1,this.node.ariaLabel=this.node.ariaLabel.replace("Close","Open"))})}},v=class{static selector(){return"[data-footer-menu-column]"}constructor(e){this.node=e,this.toggleButton=this.node.querySelector("[data-footer-menu-toggle]"),this.openIcon=this.node.querySelector("[data-footer-open-icon]"),this.closeIcon=this.node.querySelector("[data-footer-close-icon]"),this.menuList=this.node.querySelector("[data-footer-menu-list]"),this.openClass="is-open",this.bindEvents()}bindEvents(){this.toggleButton.addEventListener("click",()=>{this.node.classList.contains(this.openClass)?this.handleClose():this.handleOpen()})}handleClose(){this.node.classList.remove(this.openClass),this.toggleButton.ariaLabel=this.toggleButton.ariaLabel.replace("Close","Open"),this.toggleButton.ariaExpanded=!1}handleOpen(){this.node.classList.add(this.openClass),this.toggleButton.ariaLabel=this.toggleButton.ariaLabel.replace("Open","Close"),this.toggleButton.ariaExpanded=!0}},p=class{static selector(){return"[data-feature-index]"}constructor(e){this.node=e,this.allFilterCheckbox=this.node.querySelector("[data-feature-filter-all]"),this.filterCheckboxes=[...this.node.querySelectorAll("[data-feature-filter]")],this.allFeatureGroups=[...this.node.querySelectorAll("[data-feature-group]")],this.hiddenClass="is-hidden",this.bindEvents()}bindEvents(){this.allFilterCheckbox.addEventListener("change",e=>{e.target.checked?this.resetUI():this.allFilterCheckbox.checked=!0}
2),this.filterCheckboxes.forEach(e=>{e.addEventListener("change",e=>{e.target.checked?(this.allFilterCheckbox.checked=!1,this.handleShowGroup(e.target),this.updateFilterGroups()):(this.handleHideGroup(e.target),this.updateFilterGroups())})})}handleShowGroup(e){this.node.querySelector(`[data-feature-group="${e.id}"]`).classList.remove(this.hiddenClass)}handleHideGroup(e){this.node.querySelector(`[data-feature-group="${e.id}"]`).classList.add(this.hiddenClass)}updateFilterGroups(){const e=this.filterCheckboxes.filter(e=>!1===e.checked),t=this.filterCheckboxes.filter(e=>!0===e.checked);e.forEach(e=>{this.node.querySelector(`[data-feature-group="${e.id}"]`).classList.add(this.hiddenClass)}),0===t.length&&(this.allFilterCheckbox.checked=!0,this.resetUI())}resetUI(){this.filterCheckboxes.forEach(e=>{e.checked=!1}),this.allFeatureGroups.forEach(e=>e.classList.remove(this.hiddenClass))}},b=class{static selector(){return"[data-code-snippet]"}constructor(e){this.node=e,this.codeBlock=this.node.querySelector("[data-code-to-copy]"),this.copyButton=this.node.querySelector("[data-copy-code-button]"),this.snippet=this.codeBlock?this.codeBlock.innerText:null,this.copiedClass="has-copied",this.bindEvents()}bindEvents(){this.copyButton.addEventListener("click",()=>{navigator.clipboard.writeText(this.snippet).then(()=>{this.node.classList.add(this.copiedClass),setTimeout(()=>{this.node.classList.remove(this.copiedClass)},1250)})})}};var m=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],g=m.join(","),y="undefined"==typeof Element,w=y?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,E=!y&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},k=function(e,t){var n;void 0===t&&(t=!0);var o=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===o||"true"===o||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):k(e.parentNode))},S=function(e,t,n){if(k(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(g));return t&&w.call(e,g)&&o.unshift(e),o.filter(n)},C=function(e,t,n){for(var o=[],i=Array.from(e);i.length;){var a=i.shift();if(!k(a,!1))if("SLOT"===a.tagName){var r=a.assignedElements(),s=r.length?r:a.children,l=C(s,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{w.call(a,g)&&n.filter(a)&&(t||!e.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),d=!k(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&d){var u=C(!0===c?a.children:c.children,!0,n);n.flatten?o.push.apply(o,u):o.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return o},L=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},A=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!L(e)?0:e.tabIndex},x=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},T=function(e){return"INPUT"===e.tagName},N=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},F=function(e,t){return!(t.disabled||function(e){return T(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var i=w.call(e,"details>summary:first-of-type")?e.parentElement:e;if(w.call(i,"details:not([open]) *"))return!0;
2if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return N(e)}else{if("function"==typeof o){for(var a=e;e;){var r=e.parentElement,s=E(e);if(r&&!r.shadowRoot&&!0===o(r))return N(e);e=e.assignedSlot?e.assignedSlot:r||s===e.ownerDocument?r:s.host}e=a}if(function(e){var t,n,o,i,a=e&&E(e),r=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(n=r)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(r)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!s&&r;){var l,c,d;s=!(null===(c=r=null===(l=a=E(r))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(r))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!w.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},I=function(e,t){return!(function(e){return function(e){return T(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||E(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)}(t)||A(t)<0||!F(e,t))},O=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},M=function(e){var t=[],n=[];return e.forEach(function(e,o){var i=!!e.scopeParent,a=i?e.scopeParent:e,r=function(e,t){var n=A(e);return n<0&&t&&!L(e)?0:n}(a,i),s=i?M(e.candidates):a;0===r?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:o,tabIndex:r,item:e,isScope:i,content:s})}),n.sort(x).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},D=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==w.call(e,g)&&I(t,e)},P=m.concat("iframe:not([inert]):not([inert] *)").join(","),R=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==w.call(e,P)&&F(t,e)};function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=U(e))||t){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw a}}}}function _(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?q(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function U(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}var K={getActiveTrap:function(e){return(null==e?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){t!==K.getActiveTrap(e)&&K.pauseTrap(e);var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),K.unpauseTrap(e)},pauseTrap:function(e){var t=K.getActiveTrap(e);null==t||t._setPausedState(!0)},unpauseTrap:function(e){var t=K.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},$=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},H=function(e){return $(e)&&!e.shiftKey},z=function(e){return $(e)&&e.shiftKey},V=function(e){return setTimeout(e,0)},Y=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e?e.apply(void 0,n):e},W=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},X=[],J=function(e,t){var n,o=(null==t?void 0:t.document)||document,i=(null==t?void 0:t.trapStack)||X,a=G({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:H,isKeyBackward:z},t),r={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return r.containerGroups.findIndex(function(t){var o=t.container,i=t.tabbableNodes;return o.contains(e)||(null==n?void 0:n.includes(o))||i.find(function(t){return t===e})})},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,i=void 0!==n&&n,r=t.params,s=void 0===r?[]:r,l=a[e];if("function"==typeof l&&(l=l.apply(void 0,function(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||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.")}()}(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"==typeof l){try{c=o.querySelector(l)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!i)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},d=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!R(e,a.tabbableOptions))if(l(o.activeElement)>=0)e=o.activeElement;else{var t=r.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(r.containerGroups=r.containers.map(function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?C([e],t.includeContainer,{filter:I.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:O}):S(e,t.includeContainer,I.bind(null,t)),M(n)}(e,a.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?C([e],t.includeContainer,{filter:F.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):S(e,t.includeContainer,F.bind(null,t))}(e,a.tabbableOptions),o=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,r=n.find(function(e){return D(e)}),s=n.slice().reverse().find(function(e){return D(e)}),l=!!t.find(function(e){return A(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:o,lastTabbableNode:i,firstDomTabbableNode:r,lastDomTabbableNode:s,nextTabbableNode:function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.indexOf(e);return i<0?o?n.slice(n.indexOf(e)+1).find(function(e){return D(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return D(e)}):t[i+(o?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(e){return e.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?h(t.shadowRoot):t}
2,f=function(e){!1!==e&&e!==h(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),r.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):f(d()))},v=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},p=function(e){var t=e.target,n=e.event,o=e.isBackward,i=void 0!==o&&o;t=t||W(n),u();var s=null;if(r.tabbableGroups.length>0){var d=l(t,n),h=d>=0?r.containerGroups[d]:void 0;if(d<0)s=i?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(i){var f=r.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(f<0&&(h.container===t||R(t,a.tabbableOptions)&&!D(t,a.tabbableOptions)&&!h.nextTabbableNode(t,!1))&&(f=d),f>=0){var v=0===f?r.tabbableGroups.length-1:f-1,p=r.tabbableGroups[v];s=A(t)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else $(n)||(s=h.nextTabbableNode(t,!1))}else{var b=r.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(b<0&&(h.container===t||R(t,a.tabbableOptions)&&!D(t,a.tabbableOptions)&&!h.nextTabbableNode(t))&&(b=d),b>=0){var m=b===r.tabbableGroups.length-1?0:b+1,g=r.tabbableGroups[m];s=A(t)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else $(n)||(s=h.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},b=function(e){var t=W(e);l(t,e)>=0||(Y(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):Y(a.allowOutsideClick,e)||e.preventDefault())},m=function(e){var t=W(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(r.mostRecentlyFocusedNode=t);else{var o;e.stopImmediatePropagation();var i=!0;if(r.mostRecentlyFocusedNode)if(A(r.mostRecentlyFocusedNode)>0){var s=l(r.mostRecentlyFocusedNode),c=r.containerGroups[s].tabbableNodes;if(c.length>0){var u=c.findIndex(function(e){return e===r.mostRecentlyFocusedNode});u>=0&&(a.isKeyForward(r.recentNavEvent)?u+1<c.length&&(o=c[u+1],i=!1):u-1>=0&&(o=c[u-1],i=!1))}}else r.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return A(e)>0})})||(i=!1);else i=!1;i&&(o=p({target:r.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(r.recentNavEvent)})),f(o||r.mostRecentlyFocusedNode||d())}r.recentNavEvent=void 0},g=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.recentNavEvent=e;var n=p({event:e,isBackward:t});n&&($(e)&&e.preventDefault(),f(n))}(e,a.isKeyBackward(e))},y=function(e){(function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)})(e)&&!1!==Y(a.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},w=function(e){var t=W(e);l(t,e)>=0||Y(a.clickOutsideDeactivates,e)||Y(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},E=function(){if(r.active)return K.activateTrap(i,n),r.delayInitialFocusTimer=a.delayInitialFocus?V(function(){f(d())}):f(d()),o.addEventListener("focusin",m,!0),o.addEventListener("mousedown",b,{capture:!0,passive:!1}),o.addEventListener("touchstart",b,{capture:!0,passive:!1}),o.addEventListener("click",w,{capture:!0,passive:!1}),o.addEventListener("keydown",g,{capture:!0,passive:!1}),o.addEventListener("keydown",y),n},k=function(){if(r.active)return o.removeEventListener("focusin",m,!0),o.removeEventListener("mousedown",b,!0),o.removeEventListener("touchstart",b,!0),o.removeEventListener("click",w,!0),o.removeEventListener("keydown",g,!0),o.removeEventListener("keydown",y),n},L="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===r.mostRecentlyFocusedNode})})&&f(d())}):void 0,x=function(){L&&(L.disconnect(),r.active&&!r.paused&&r.containers.map(function(e){L.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return r.active},get paused(){return r.paused},activate:function(e){if(r.active)return this;var t,l=s(e,"onActivate"),c=s(e,"onPostActivate"),d=s(e,"checkCanFocusTrap"),f=K.getActiveTrap(i),v=!1;f&&!f.paused&&(null===(t=f._setSubtreeIsolation)||void 0===t||t.call(f,!1),v=!0);try{d||u(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=h(o),null==l||l();var p=function(){d&&u(),E(),x(),a.isolateSubtrees&&n._setSubtreeIsolation(!0),null==c||c()};if(d)return d(r.containers.concat()).then(p,p),this;p()}catch(e){var b;throw f===K.getActiveTrap(i)&&v&&(null===(b=f._setSubtreeIsolation)||void 0===b||b.call(f,!0)),e}return this},deactivate:function(e){if(!r.active)return this;var t=G({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,r.paused||n._setSubtreeIsolation(!1),r.alreadySilent.clear(),k(),r.active=!1,r.paused=!1,x(),K.deactivateTrap(i,n);var o=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),d=s(t,"returnFocus","returnFocusOnDeactivate");null==o||o();var u=function(){V(function(){d&&f(v(r.nodeFocusedBeforeActivation)),null==l||l()})};return d&&c?(c(v(r.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(e){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return r.active?(r.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,e)):this}
2,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),a.isolateSubtrees&&function(e){r.active&&!r.paused&&n._setSubtreeIsolation(!1),r.adjacentElements.clear(),r.alreadySilent.clear();var t,o=new Set,i=new Set,a=j(e);try{for(a.s();!(t=a.n()).done;){var s=t.value;o.add(s);for(var l="undefined"!=typeof ShadowRoot&&s.getRootNode()instanceof ShadowRoot,c=s;c;){o.add(c);var d=c.parentElement,u=[];d?u=d.children:!d&&l&&(u=c.getRootNode().children,d=c.getRootNode().host,l="undefined"!=typeof ShadowRoot&&d.getRootNode()instanceof ShadowRoot);var h,f=j(u);try{for(f.s();!(h=f.n()).done;){var v=h.value;i.add(v)}}catch(e){f.e(e)}finally{f.f()}c=d}}}catch(e){a.e(e)}finally{a.f()}o.forEach(function(e){i.delete(e)}),r.adjacentElements=i}(r.containers),r.active&&(u(),a.isolateSubtrees&&!r.paused&&n._setSubtreeIsolation(!0)),x(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(e,t){if(r.paused===e)return this;if(r.paused=e,e){var o=s(t,"onPause"),i=s(t,"onPostPause");null==o||o(),k(),x(),n._setSubtreeIsolation(!1),null==i||i()}else{var a=s(t,"onUnpause"),l=s(t,"onPostUnpause");null==a||a(),n._setSubtreeIsolation(!0),u(),E(),x(),null==l||l()}return this}},_setSubtreeIsolation:{value:function(e){a.isolateSubtrees&&r.adjacentElements.forEach(function(t){var n;e?"aria-hidden"===a.isolateSubtrees?("true"!==t.ariaHidden&&"true"!==(null===(n=t.getAttribute("aria-hidden"))||void 0===n?void 0:n.toLowerCase())||r.alreadySilent.add(t),t.setAttribute("aria-hidden","true")):((t.inert||t.hasAttribute("inert"))&&r.alreadySilent.add(t),t.setAttribute("inert",!0)):r.alreadySilent.has(t)||("aria-hidden"===a.isolateSubtrees?t.removeAttribute("aria-hidden"):t.removeAttribute("inert"))})}}}),n.updateContainerElements(e),n};const Q=class{static selector(){return"[data-mobile-menu-toggle]"}constructor(e){this.node=e,this.body=document.querySelector("body"),this.mobileMenu=document.querySelector("[data-mobile-menu]");const t=this.node.classList.contains("is-open"),n=this.mobileMenu.classList.contains("is-visible"),o=this.body.classList.contains("no-scroll"),i=t&&n&&o;this.state={open:i},this.mobileMenu?this.focusTrap=J(this.mobileMenu):this.focusTrap=null,this.bindEventListeners()}bindEventListeners(){this.node.addEventListener("pointerup",e=>{e.preventDefault(),e.stopPropagation(),this.toggle()}),this.mobileMenu&&this.mobileMenu.addEventListener("keydown",e=>{"Escape"===e.key&&this.close()})}toggle(){this.state.open?this.close():this.open()}open(){const e=new Event("onMenuOpen");document.dispatchEvent(e),this.node.classList.add("is-open"),this.node.setAttribute("aria-expanded","true"),this.body.classList.add("no-scroll"),this.mobileMenu.classList.add("is-visible");const t=document.querySelector(".sitewide-alert"),n=document.querySelector(".space-banner");t&&(this.mobileMenu.style.marginTop=t.clientHeight+"px"),n&&(n.style.display="none"),this.state.open=!0,this.focusTrap&&this.focusTrap.activate()}close(){this.node.classList.remove("is-open"),this.node.setAttribute("aria-expanded","false"),this.body.classList.remove("no-scroll"),this.mobileMenu.classList.remove("is-visible");const e=document.querySelector(".space-banner");e&&(e.style.display=""),this.state.open=!1,this.focusTrap&&this.focusTrap.deactivate()}},Z=class{static selector(){return"[data-mobile-menu] [data-open-subnav]"}constructor(e){this.node=e,this.subnav=this.node.nextElementSibling,this.subnav&&(this.backLink=this.subnav.querySelector("[data-subnav-back]"),this.bindEventListeners())}bindEventListeners(){this.subnav&&(this.node.addEventListener("click",e=>{e.preventDefault(),this.open()}),this.backLink&&this.backLink.addEventListener("click",e=>{e.preventDefault(),this.close()}),this.subnav.addEventListener("keydown",e=>{"Escape"===e.key&&this.close()}))}open(){this.subnav&&(this.subnav.classList.add("is-visible"),this.node.setAttribute("aria-expanded","true"))}close(){this.subnav&&(this.subnav.classList.remove("is-visible"),this.node.setAttribute("aria-expanded","fal
2se"))}},ee=class{static selector(){return"[data-desktop-menu] [data-open-subnav]"}static parentSelector(){return this.node.closest("[data-has-subnav]")}constructor(e){this.node=e,this.toggleNode=this.node.closest("[data-has-subnav]"),this.allToggleNodes=document.querySelectorAll("[data-desktop-menu] [data-has-subnav]"),this.activeClass="active",this.bindEventListeners()}bindEventListeners(){this.node.addEventListener("click",e=>{if(e.preventDefault(),this.allToggleNodes.forEach(e=>{e!==this.toggleNode&&(e.classList.remove(this.activeClass),e.querySelector("[data-open-subnav]").setAttribute("aria-expanded","false"))}),this.toggleNode.classList.contains(this.activeClass))this.toggleNode.classList.remove(this.activeClass),this.node.setAttribute("aria-expanded","false");else{const e=new Event("onMenuOpen");document.dispatchEvent(e),this.toggleNode.classList.add(this.activeClass),this.node.setAttribute("aria-expanded","true")}})}},te=class{constructor(){this.desktopSubMenus=document.querySelectorAll(ee.selector()),this.allPrimaryNavs=document.querySelectorAll("[data-desktop-menu] [data-primary-nav]"),this.bindEvents()}closeMenus(e){let t=!0;this.allPrimaryNavs.forEach(n=>{e&&n.contains(e.target)&&(t=!1)}),t&&this.desktopSubMenus.forEach(e=>{e.closest("[data-has-subnav]").classList.remove("active"),e.setAttribute("aria-expanded","false")})}bindEvents(){this.desktopSubMenus&&0!==this.desktopSubMenus.length&&(document.addEventListener("touchstart",e=>{this.closeMenus(e)}),document.addEventListener("click",e=>{this.closeMenus(e)})),document.addEventListener("keydown",e=>{"Escape"===e.key&&this.closeMenus()})}};function ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var oe=function e(t,n){function o(e,o,i){if("undefined"!=typeof document){"number"==typeof(i=ne({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var r in i)i[r]&&(a+="; "+r,!0!==i[r]&&(a+="="+i[r].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+a}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],o={},i=0;i<n.length;i++){var a=n[i].split("="),r=a.slice(1).join("=");try{var s=decodeURIComponent(a[0]);if(o[s]=t.read(r,s),e===s)break}catch(e){}}return e?o[e]:o}},remove:function(e,t){o(e,"",ne({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,ne({},this.attributes,t))},withConverter:function(t){return e(ne({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const ie=class{static selector(){return"[data-cookie-message]"}constructor(e){this.messageContainer=e,this.optInButton=this.messageContainer.querySelector("[data-cookie-opt-in]"),this.optOutButton=this.messageContainer.querySelector("[data-cookie-opt-out]"),this.cookieName="wagtail_cookie",this.cookieDuration=365,this.activeClass="active",this.inactiveClass="inactive",this.checkCookie(),this.bindEvents()}checkCookie(){this.messageContainer&&(oe.get(this.cookieName)||this.messageContainer.classList.add(this.activeClass))}applyCookie(e,t){e.preventDefault(),this.messageContainer.classList.remove(this.activeClass),this.messageContainer.classList.add(this.inactiveClass),oe.set(this.cookieName,t,{expires:this.cookieDuration})}bindEvents(){this.optInButton&&(this.optInButton.addEventListener("click",e=>{this.applyCookie(e,!0)}),this.optOutButton.addEventListener("click",e=>this.applyCookie(e,!1)))}},ae=class{static selector(){return"[data-site-wide-alert]"}constructor(e){this.node=e,this.node.dataset.siteWideAlert&&this.checkAndInitializeAlert()}checkAndInitializeAlert(){fetch(this.node.dataset.siteWideAlert).then(e=>e.json()).then(e=>{e.text&&this.populateAlert(e)}).catch(()=>{})}populateAlert(e){if(e.text){const t=document.createElement("aside");t.classList.add("sitewide-alert"),document.querySelector("body").classList.add("banner-active");const n=document.createElement("div");n.classList.add("sitewide-alert__wrapper");const o=document.createElement("div");if(o.classList.add("sitewide-alert__text"),o.innerHTML=e.text,n.appendChild(o),e.cta_text&&e.cta_url){const t=document.createElement("a");if(t.href=e.cta_url,t.classList.add("sitewide-alert__cta"),t.textContent=e.cta_text,e.bg_colour&&e.text_colour){const n="#"+e.bg_colour,o="#"+e.text_colour;t.style.backgroundColor=o,t.style.color=n}n.appendChild(t)}t.appendChild(n),this.node.append(t),document.documentElement.style.setProperty("--banner-height",`${this.node.clientHeight}px`),e.bg_colour&&(t.style.backgroundColor="#"+e.bg_colour),e.text_colour&&(t.style.color="#"+e.text_colour),e.bg_colour||e.text_colour||t.classList.add("sitewide-alert--default"),setTimeout(()=>{t.classList.add("sitewide-alert--active")},1)}}};
2function re(e){document.querySelectorAll(e.selector()).forEach(t=>new e(t))}document.addEventListener("DOMContentLoaded",()=>{document.documentElement.classList.remove("no-js"),re(ie),re(ae),re(u),re(h),re(f),re(v),re(p),re(b),re(Q),re(Z),re(ee),new te})})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.