!function(){"use strict";var t=t=>{"complete"!==document.readyState&&"interactive"!==document.readyState||t(),document.addEventListener("DOMContentLoaded",t,{once:!0})};function e(e){const{component:i,load:n,name:r,querySelector:s={},querySelectorAll:o={},options:a={}}=e;if("function"!=typeof i)return;const l=()=>{(()=>{const t=void 0===r?null==e?void 0:e.root:`[data-component='${r}']`;let i;try{i=document.querySelectorAll(t)}catch(t){return console.error(t),[]}return i.length<1?(console.log(`No elements found for ${t}`),[]):Array.from(i).map((t=>{const e={};return Object.keys(s).forEach((i=>{e[i]=t.querySelector(s[i])})),Object.keys(o).forEach((i=>{const n=t.querySelectorAll(o[i]);e[i]=Array.from(n)})),{element:t,children:e,options:a}}))})().forEach((t=>new i(t)))};if(!1===n)return l;!function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(e)if("function"==typeof i)i(e);else if(Array.isArray(i)){const[t,n]=i;null==t||t.addEventListener(n,e)}}(l,n)}e({name:"menu-button",component:class{#t=!1;static getTargetElement(t){if(!t.hasAttribute("aria-controls"))throw new Error("Configuration error: The component element is missing the required 'aria-controls' attribute");const e=t.getAttribute("aria-controls"),i=document.getElementById(e);if(null===i)throw new Error(`Configuration error: A target element with ID of '${e}' is not found`);return i}constructor(t){let{element:e,options:i}=t;this.controller=e,this.target=this.constructor.getTargetElement(e),this.initialized=!1;const{close:n,useTransition:r}={useTransition:!1,close:"",...i};this.useTransition=r,""!==n&&(this.closeButton=document.querySelector(n)),this.init()}init=()=>{this.setUp()};setUp=()=>{this.target.setAttribute("aria-hidden","true"),this.target.setAttribute("role","dialog"),this.target.setAttribute("aria-modal","true"),this.controller.addEventListener("click",this.show),this.target.addEventListener("keydown",this.handleTargetKeydown),null!=this.closeButton&&(this.closeButton.addEventListener("click",this.handleCloseButtonClick),this.closeButton.addEventListener("keydown",this.handleCloseButtonKeydown)),this.useTransition&&this.target.addEventListener("transitionend",this.handleTargetShown),this.initialized=!0};set expanded(t){if(this.#t=t,this.controller.setAttribute("aria-expanded",this.expanded),this.expanded?(this.target.setAttribute("aria-hidden","false"),this.useTransition||this.closeButton.focus(),this.createBackdrop()):(this.target.setAttribute("aria-hidden","true"),this.removeBackdrop()),!this.firstInteractiveChild||!this.lastInteractiveChild){const t=function(t){const e=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(","),i=t.querySelectorAll(e);return Array.from(i).filter((t=>null!==t.offsetParent))}(this.target);if(t.length>0){const[e,i]=function(t){const e=(i=t,Array.isArray(i)?i:i instanceof HTMLElement?new Array(i):i instanceof NodeList||i instanceof HTMLCollection?Array.from(i):[]);var i;const n=e.length-1,{0:r,[n]:s}=e;return[r,s]}(t);this.firstInteractiveChild=e,this.lastInteractiveChild=i}}}get expanded(){return this.#t}handleTargetKeydown=t=>{const{code:e,shiftKey:i}=t,{activeElement:n}=document;"Escape"===e&&this.expanded?(t.preventDefault(),this.hide()):"Tab"===e&&(i?this.firstInteractiveChild===n&&(t.preventDefault(),this.closeButton?this.closeButton.focus():this.lastInteractiveChild.focus()):this.lastInteractiveChild===n&&(t.preventDefault(),this.closeButton?this.closeButton.focus():this.firstInteractiveChild.focus()))};handleCloseButtonClick=t=>{this.expanded&&(t.preventDefault(),this.hide())};handleCloseButtonKeydown=t=>{const{code:e,shiftKey:i}=t;"Escape"===e&&this.expanded?(t.preventDefault(),this.hide()):"Tab"===e&&this.expanded&&(t.preventDefault(),i?this.lastInteractiveChild.focus():this.firstInteractiveChild.focus())};handleTargetShown=t=>{this.target===t.target&&this.closeButton.focus()};show=()=>{this.expanded=!0};hide=()=>{this.expanded=!1,this.controller.focus()};createBackdrop=()=>{if(this.backdrop)return;const t=document.createElement("div");t.className="menu-backdrop",t.setAttribute("aria-hidden","true"),t.addEventListener("click",this.handleBackdropClick),document.body.appendChild(t),this.backdrop=t};removeBackdrop=()=>{this.backdrop&&(this.backdrop.removeEventListener("click",this.handleBackdropClick),this.backdrop.remove(),this.backdrop=null)};handleBackdropClick=()=>{this.hide()}},options:{close:".site-header__menu-button--close"}}),e({name:"sticky-header",component:class{constructor(t){let{element:e}=t;this.element=e,this.init()}init=()=>{this.element&&(this.observer=new IntersectionObserver((t=>{let[e]=t;return e.target.classList.toggle("is-pinned",e.intersectionRatio<1)}),{threshold:[1]}),this.observer.observe(this.element))}}});var i=JSON.parse('{"xl":"1280","lg":"1024","md":"768","sm":"600","xs":"480","adminbar-sm":"601","adminbar-lg":"783"}'),n=Object.keys(i).reduce(((t,e)=>{const n=i[e]/16+"rem",r=(i[e]-1)/16+"rem";return t[`${e}Min`]=window.matchMedia(`(min-width: ${n})`),t[`${e}Max`]=window.matchMedia(`(max-width: ${r})`),t}),{});class r{static getTargetElement(t){if(!t.hasAttribute("aria-controls"))throw new Error("Configuration error: The component element is missing the required 'aria-controls' attribute");const e=t.getAttribute("aria-controls"),i=document.getElementById(e);if(null===i)throw new Error(`Configuration error: A target element with ID of '${e}' is not found`);return i}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controller=t,this.target=this.constructor.getTargetElement(t),this.init=this.init.bind(this),this.setup=this.setup.bind(this),this.setState=this.setState.bind(this),this.patchButtonKeydownSupport=this.patchButtonKeydownSupport.bind(this),this.controllerHandleClick=this.controllerHandleClick.bind(this),this.stateWasUpdated=this.stateWasUpdated.bind(this),this.toggle=this.toggle.bind(this),this.destroy=this.destroy.bind(this),this.options=Object.assign({breakpoint:"",shownClass:"accordion__target--is-shown",loadOpen:!1},e),this.state={expanded:this.options.loadOpen},this.mediaQuery=n[e.breakpoint],this.init(),this.mediaQuery&&this.mediaQuery.addEventListener("change",this.init)}init(){var t;!this.mediaQuery||null!==(t=this.mediaQuery)&&void 0!==t&&t.matches?this.setup():this.destroy()}setup(){const{expanded:t}=this.state;requestAnimationFrame((()=>{this.controller.setAttribute("aria-expanded",t)})),"BUTTON"!==this.controller.nodeName&&(this.controller.setAttribute("role","button"),this.controller.addEventListener("keydown",this.patchButtonKeydownSupport)),requestAnimationFrame((()=>{this.target.setAttribute("aria-hidden",!t)})),this.target.setAttribute("aria-labelledby",this.controller.id),this._overwriteRoleAttribute=!this.target.hasAttribute("role"),this._overwriteRoleAttribute&&this.target.setAttribute("role","region"),this.controller.addEventListener("click",this.controllerHandleClick)}setState(t){const e={...this.state,...t};this.state=e,this.stateWasUpdated(e)}stateWasUpdated(t){let{expanded:e}=t;const{shownClass:i}=this.options;requestAnimationFrame((()=>{this.controller.setAttribute("aria-expanded",`${e}`)})),e?requestAnimationFrame((()=>{this.target.setAttribute("aria-hidden","false"),this.target.classList.add(i)})):requestAnimationFrame((()=>{this.target.setAttribute("aria-hidden","true"),this.target.classList.remove(i)}))}patchButtonKeydownSupport(t){const{code:e}=t;["Space","Enter"].includes(e)&&(t.preventDefault(),this.toggle())}controllerHandleClick(t){t.preventDefault(),this.toggle()}toggle(){const{expanded:t}=this.state;this.setState({expanded:!t})}destroy(){const{shownClass:t}=this.options;requestAnimationFrame((()=>{this.controller.removeAttribute("aria-expanded")})),requestAnimationFrame((()=>{this.target.removeAttribute("aria-hidden"),this.target.classList.remove(t)})),this._overwriteRoleAttribute&&this.target.removeAttribute("role"),this.target.removeAttribute("aria-labelledby"),this.controller.removeEventListener("click",this.controllerHandleClick),this.controller.removeEventListener("keydown",this.patchButtonKeydownSupport),this.mediaQuery&&this.mediaQuery.removeEventListener("change",this.handleBreakpointChange),this.state={expanded:this.options.loadOpen}}}e({name:"site-footer",component:function(t){let{children:e,options:i}=t;const n=[],{toggles:s}=e;s.forEach((t=>{n.push(new r(t,i))}))},querySelectorAll:{toggles:".footer-menu__toggle"},options:{breakpoint:"mdMax"}})}(); //# sourceMappingURL=global.bundle.min.js.map