(()=>{"use strict";const e=function(e,t){02&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];try{s=new CustomEvent(t,{bubbles:i,cancelable:r,detail:n})}catch(e){(s=document.createEvent("CustomEvent")).initCustomEvent(t,i,r,n)}e.dispatchEvent(s)};function s(e,s){e.addEventListener("click",(()=>t(e,"closeDrawerCloseZone")),!1);const n=e.getAttribute("aria-controls");n&&n.split(" ").forEach((e=>{const t=document.getElementById(e);t.addEventListener("closeDrawer",s.onCloseDrawer,!1),t.addEventListener("openDrawer",s.onOpenDrawer,!1)})),this.close=()=>e.setAttribute("aria-hidden","true"),this.open=()=>e.setAttribute("aria-hidden","false")}class n{constructor(){this.drawerCloseZones=[],e(document.querySelectorAll(".c-drawer-close-zone"),((e,t)=>{this.drawerCloseZones[t]=new s(e,{onCloseDrawer:()=>this.drawerCloseZones[t].close(),onOpenDrawer:()=>this.drawerCloseZones[t].open()})}))}}const i=function(e,t){var s;try{s=new CustomEvent(t)}catch(e){(s=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,null)}e.dispatchEvent(s)};var r,o=window.innerWidth,a=window.innerHeight;function c(e){const t=Math.floor(8999999*Math.random()+1e6);return`${e}-${(new Date).getTime()}${t}`}r="inc2734/dispatch-custom-resize-event/dispatch",Boolean(sessionStorage.getItem(r))||window.addEventListener("resize",(function(){window.innerWidth!==o?(i(window,"resize:width"),o=window.innerWidth,a=window.innerHeight):function(){if(i(window,"resize:height"),window.innerHeight===a)i(window,"resize:height:undo");else{i(window,"resize:height:update");var e=/iP(hone|(o|a)d)/.test(navigator.userAgent);49{t(s,"resizeDrawer"),n.onResize(e)}),!1),s.addEventListener("click",(e=>e.stopPropagation()),!1),s.addEventListener("keydown",n.onKeydown,!1);const i=s.getAttribute("id");if(i){const t=document.querySelectorAll(`[aria-controls~=${i}]`);e(t,(e=>{e.addEventListener("closeHamburgerBtn",n.onCloseHamburgerBtn,!1),e.addEventListener("openHamburgerBtn",n.onOpenHamburgerBtn,!1),e.addEventListener("closeDrawerCloseZone",n.onCloseDrawerCloseZone,!1)}))}this.items=[];const r=s.parentNode,o=s.classList[0];e(s.querySelectorAll(n.args.item),((e,t)=>{this.items[t]=new l(e,{args:n.args,closeDrawer:n.closeDrawer,onFocusin:()=>{this.items.forEach((e=>e!==this.items[t]&&e.close()))},onClose:()=>this.items[t].close(),onOpen:()=>{this.items[t].open(),this.items.forEach((e=>e!==this.items[t]&&e.close()))}})})),this.close=()=>{s.classList.contains(`${o}--fixed`)&&"body"===r.tagName.toLowerCase()&&r.classList.remove("u-noscroll"),t(s,"closeDrawer"),null!==u&&u.focus(),s.setAttribute("aria-hidden","true"),this.items.forEach((e=>e.close()))},this.open=()=>{s.classList.contains(`${o}--fixed`)&&"body"===r.tagName.toLowerCase()&&r.classList.add("u-noscroll"),t(s,"openDrawer"),s.setAttribute("aria-hidden","false"),u=document.activeElement;const e=s.querySelector('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [tabindex="-1"], [contenteditable]');e&&setTimeout((()=>e.focus()),200),s.scrollTop=0},this.toggle=()=>{"true"===s.getAttribute("aria-hidden")?this.open():this.close()}}function l(t,s){t.addEventListener("focusin",s.onFocusin,!1),this.toggleBtn=void 0,this.submenu=void 0;const n=c("drawer");e(t.children,(e=>{e.classList.contains(s.args.toggle.slice(1))?this.toggleBtn=new h(e,{args:s.args,ariaControls:!e.getAttribute("aria-controls")&&n,onClick:()=>{"false"===e.getAttribute("aria-expanded")?s.onOpen():s.onClose()}}):e.classList.contains(s.args.submenu.slice(1))?this.submenu=new g(e,{args:s.args,id:!e.getAttribute("id")&&n,closeDrawer:s.closeDrawer}):"a"===e.tagName.toLowerCase()&&new m(e,{onClick:s.closeDrawer})})),this.close=()=>{this.toggleBtn&&this.submenu&&(this.toggleBtn.close(),this.submenu.close(),this.submenu.subitems.forEach((e=>e.close())))},this.open=()=>{this.toggleBtn&&this.submenu&&(this.toggleBtn.open(),this.submenu.open())}}function h(e,t){e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),t.onClick(e)}),!1),e.setAttribute("aria-controls",t.ariaControls),this.close=()=>e.setAttribute("aria-expanded","false"),this.open=()=>e.setAttribute("aria-expanded","true")}function g(t,s){t.setAttribute("id",s.id),this.subitems=[],e(t.children,((e,t)=>{e.classList.contains(s.args.subitem.slice(1))&&(this.subitems[t]=new l(e,{args:s.args,closeDrawer:s.closeDrawer,onFocusin:()=>{this.subitems.forEach((e=>e!==this.subitems[t]&&e.close()))},onClose:()=>this.subitems[t].close(),onOpen:()=>{this.subitems[t].open(),this.subitems.forEach((e=>e!==this.subitems[t]&&e.close()))}}))})),this.close=()=>t.setAttribute("aria-hidden","true"),this.open=()=>t.setAttribute("aria-hidden","false")}function m(e,t){e.addEventListener("click",t.onClick,!1)}class b{constructor(t={}){this.args=t,this.args.drawer=this.args.drawer||".c-drawer",this.args.toggle=this.args.toggle||`${this.args.drawer}__toggle`,this.args.submenu=this.args.submenu||`${this.args.drawer}__submenu`,this.args.item=this.args.item||`${this.args.drawer}__item`,this.args.subitem=this.args.subitem||`${this.args.drawer}__subitem`,this.drawers={},e(document.querySelectorAll(this.args.drawer),((e,s)=>{const n=e.getAttribute("id")||s;this.drawers[n]=new d(e,{args:t,closeDrawer:()=>this.drawers[n].close(),onResize:()=>this.drawers[n].close(),onKeydown:e=>27===e.keyCode&&this.drawers[n].close(),onCloseHamburgerBtn:()=>this.drawers[n].close(),onOpenHamburgerBtn:()=>this.drawers[n].open(),onCloseDrawerCloseZone:()=>this.drawers[n].close()})}));const s=e=>{const t=e.target.getAttribute("data-basis-drawer-toggle-btn");t&&this.drawers[t]&&this.drawers[t].toggle()};document.removeEventListener("click",s,!1),document.addEventListener("click",s,!1)}}function w(e,s){e.addEventListener("click",(s=>{s.preventDefault(),s.stopPropagation(),"false"===e.getAttribute("aria-expanded")?t(e,"openHamburgerBtn"):t(e,"closeHamburgerBtn")}),!1);const n=e.getAttribute("aria-controls");n&&n.split(" ").forEach((e=>{const t=document.getElementById(e);t&&(t.addEventListener("closeDrawer",s.onCloseDrawer,!1),t.addEventListener("openDrawer",s.onOpenDrawer,!1))})),this.close=()=>e.setAttribute("aria-expanded","false"),this.open=()=>e.setAttribute("aria-expanded","true")}class f{constructor(t={}){this.args=t,this.args.btn=this.args.btn||".c-hamburger-btn",this.hamburgerBtns=[],e(document.querySelectorAll(this.args.btn),((e,t)=>{this.hamburgerBtns[t]=new w(e,{onCloseDrawer:()=>this.hamburgerBtns[t].close(),onOpenDrawer:()=>this.hamburgerBtns[t].open()})}))}}function p(t,s){t.addEventListener("focusin",(e=>{e.stopPropagation(),s.onFocusin(e)}),!1),e(t.querySelectorAll(s.args.submenu),(e=>{new v(e,{useTurnLeft:()=>{const t=e.getBoundingClientRect();return!(t.left+t.width/2{t.useTurnLeft()?e.classList.add("c-navbar__submenu--turn-left"):e.classList.remove("c-navbar__submenu--turn-left")};s(),window.addEventListener("resize:width",s,!1)}function E(t,s){this.items=[],e(t.querySelectorAll(`${s.args.item}`),((e,t)=>{this.items[t]=new L(e,{args:s.args,onFocusin:()=>{this.items[t].open(),this.items.forEach((e=>e!==this.items[t]&&e.close()))},onMouseleave:()=>this.items[t].close(),onMouseover:()=>{this.items[t].open(),this.items.forEach((e=>e!==this.items[t]&&e.close()))}})}))}function L(t,s){new p(t,{args:s.args,onFocusin:s.onFocusin}),["mouseover","touchstart"].forEach((e=>{t.addEventListener(e,(e=>{e.stopPropagation(),s.onMouseover(e)}),!1)})),["mouseleave","touchend"].forEach((e=>{t.addEventListener(e,(e=>{e.stopPropagation(),s.onMouseleave(e)}),!1)})),this.submenu=void 0,e(t.children,(e=>{e.classList.contains(s.args.submenu.slice(1))&&(this.submenu=new A(e,{args:s.args}))})),this.close=()=>{this.submenu&&(t.setAttribute("data-submenu-visibility","hidden"),this.submenu.close(),this.submenu.subitems.forEach((e=>e.close())))},this.open=()=>{this.submenu&&(t.setAttribute("data-submenu-visibility","visible"),this.submenu.open())}}function A(t,s){this.subitems=[],e(t.children,((e,t)=>{e.classList.contains(s.args.subitem.slice(1))&&(this.subitems[t]=new L(e,{args:s.args,onFocusin:()=>{this.subitems[t].open(),this.subitems.forEach((e=>e!==this.subitems[t]&&e.close()))},onMouseleave:()=>this.subitems[t].close(),onMouseover:()=>{this.subitems[t].open(),this.subitems.forEach((e=>e!==this.subitems[t]&&e.close()))}}))})),this.close=()=>t.setAttribute("aria-hidden","true"),this.open=()=>t.setAttribute("aria-hidden","false")}function C(t,s){this.items=[],e(t.querySelectorAll(s.args.item),((e,t)=>{this.items[t]=new y(e,{args:s.args,onFocusin:()=>{this.items.forEach((e=>e!==this.items[t]&&e.close()))},onClose:()=>this.items[t].close(),onOpen:()=>{this.items[t].open(),this.items.forEach((e=>e!==this.items[t]&&e.close()))}})}))}function y(t,s){new p(t,{args:s.args,onFocusin:s.onFocusin}),this.toggleBtn=void 0,this.submenu=void 0;const n=c("navbar");e(t.children,(e=>{e.classList.contains(s.args.toggle.slice(1))?this.toggleBtn=new B(e,{args:s.args,ariaControls:!e.getAttribute("aria-controls")&&n,onClick:()=>{"false"===e.getAttribute("aria-expanded")?s.onOpen():s.onClose()},onResize:()=>s.onClose()}):e.classList.contains(s.args.submenu.slice(1))&&(this.submenu=new D(e,{args:s.args,id:!e.getAttribute("id")&&n}))})),this.close=()=>{this.toggleBtn&&this.submenu&&(t.setAttribute("data-submenu-visibility","hidden"),this.toggleBtn.close(),this.submenu.close(),this.submenu.subitems.forEach((e=>e.close())))},this.open=()=>{this.toggleBtn&&this.submenu&&(t.setAttribute("data-submenu-visibility","visible"),this.toggleBtn.open(),this.submenu.open())}}function B(e,t){e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),t.onClick(e)}),!1),window.addEventListener("resize:width",t.onResize,!1),e.setAttribute("aria-controls",t.ariaControls),this.close=()=>e.setAttribute("aria-expanded","false"),this.open=()=>e.setAttribute("aria-expanded","true")}function D(t,s){t.setAttribute("id",s.id),this.subitems=[],e(t.children,((e,t)=>{e.classList.contains(s.args.subitem.slice(1))&&(this.subitems[t]=new y(e,{args:s.args,onFocusin:()=>{this.subitems.forEach((e=>e!==this.subitems[t]&&e.close()))},onClose:()=>this.subitems[t].close(),onOpen:()=>{this.subitems[t].open(),this.subitems.forEach((e=>e!==this.subitems[t]&&e.close()))}}))})),this.close=()=>t.setAttribute("aria-hidden","true"),this.open=()=>t.setAttribute("aria-hidden","false")}class _{constructor(t={}){this.args=t,this.args.wrapper=this.args.wrapper||".c-navbar",this.args.item=this.args.item||`${this.args.wrapper}__item`,this.args.submenu=this.args.submenu||`${this.args.wrapper}__submenu`,this.args.subitem=this.args.subitem||`${this.args.wrapper}__subitem`,this.args.toggle=this.args.toggle||`${this.args.wrapper}__toggle`,e(document.querySelectorAll(this.args.wrapper),(e=>{"hover"===(e.getAttribute("data-popup-mode")||"hover")?new E(e,{args:t}):new C(e,{args:t})}))}}function O(e,t){window.addEventListener("load",t.onLoad,!1),window.addEventListener("pageshow",t.onLoad,!1),this.close=()=>{e.setAttribute("aria-hidden","true"),e.setAttribute("data-page-effect","fadein")},this.open=()=>{e.setAttribute("aria-hidden","false"),e.setAttribute("data-page-effect","fadeout")}}function k(e,t){e.addEventListener("click",(s=>{if(!(s.shiftKey||s.ctrlKey||s.metaKey)){if(e.hash&&window.location.pathname+window.location.search===e.pathname+e.search)return;s.preventDefault(),t.onClick(s)}}),!1)}class S{constructor(t={}){this.args=t,this.args.pageEffect=this.args.pageEffect||".c-page-effect",this.args.duration=this.args.duration||0===this.args.duration?this.args.duration:200;const s=document.querySelector(this.args.pageEffect);if(!s)return;this.pageEffect=new O(s,{onLoad:()=>this.pageEffect.close()});const n=document.querySelectorAll('[data-page-effect-link="true"], a[href]:not([target="_blank"]):not([href^="#"]):not([href*="javascript"]):not([href*=".jpg"]):not([href*=".jpeg"]):not([href*=".gif"]):not([href*=".png"]):not([href*=".mov"]):not([href*=".swf"]):not([href*=".mp4"]):not([href*=".flv"]):not([href*=".avi"]):not([href*=".mp3"]):not([href*=".pdf"]):not([href*=".zip"]):not([href^="mailto:"]):not([data-page-effect-link="false"])');this.elementsFireFadeOut=[],e(n,((e,t)=>{this.elementsFireFadeOut[t]=new k(e,{onClick:()=>{this.pageEffect.open(),setTimeout((()=>window.location.href=e.getAttribute("href")),this.args.duration)}})}))}}function x(){const e=document.getElementsByTagName("html");if(!(1>e.length))return e[0]}function z(){const e=document.getElementsByClassName("l-header");if(!(1>e.length))return e[0]}document.addEventListener("DOMContentLoaded",(()=>{new n,new b({drawer:".c-drawer"}),new b({drawer:".c-dropdown"}),new f,new _,new S}),!1),document.addEventListener("DOMContentLoaded",(()=>{const e=x();if(function(e){const t=document.getElementById("page-start");t&&"undefined"!=typeof IntersectionObserver&&new IntersectionObserver((t=>t.forEach((t=>{return s=t.isIntersecting,e.setAttribute("data-scrolled",!s);var s}))),{root:null,rootMargin:"0px",threshold:0}).observe(t)}(e),!window.location.hash)return;const t=z();if(!t)return;if(t.offsetWidth{window.removeEventListener("scroll",n,!1),t.removeAttribute("aria-hidden")},i=()=>{const e=Math.floor(window.pageYOffset),r=function(){const e=document.getElementsByClassName("l-header__drop-nav");if(!(1>e.length))return e[0]}(),o=function(e,t){if(e)return window.getComputedStyle(e).getPropertyValue(t)}(t,"position");if("absolute"!==o&&"sticky"!==o&&"fixed"!==o&&!r)return window.removeEventListener("scroll",i,!1),void t.removeAttribute("aria-hidden");t.setAttribute("aria-hidden","true"),25>Math.abs(s-e)||(window.removeEventListener("scroll",i,!1),window.addEventListener("scroll",n,!1))};window.addEventListener("scroll",i,!1)}),!1),document.addEventListener("DOMContentLoaded",(()=>{new Spider(".c-entries-carousel")}),!1),document.addEventListener("DOMContentLoaded",(()=>{const e=new ResizeObserver((e=>{for(const t of e)t.target.style.setProperty("--scrollbar-width",window.innerWidth-t.target.clientWidth+"px")})),t=x();e.observe(t)}),!1),document.addEventListener("DOMContentLoaded",(()=>{const t=z();if(t&&function(e){return e.offsetWidth{e(s,(e=>{const s=e.getBoundingClientRect(),n=t.getBoundingClientRect();e.style.setProperty("--rect-top",s.top-n.top+"px"),e.style.setProperty("--rect-right",`${s.right}px`),e.style.setProperty("--rect-height",`${s.height}px`),e.style.setProperty("--rect-width",`${s.width}px`)}))},n=t.querySelectorAll(".p-global-nav .c-navbar__item");s(n),window.addEventListener("resize",(()=>{s(n)})),t.querySelector(".l-header__content").addEventListener("wheel",(()=>{s(n),e(n.children,(e=>{e.classList.contain(".c-navbar__submenu")&&submenu.setAttribute("aria-hidden","true")}))})),new ResizeObserver((()=>{setTimeout((()=>s(n)),100)})).observe(t)}})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".l-contents");if(!e)return;const t=e.querySelector(".l-contents__main"),s=e.querySelector(".l-contents__sidebar");t&&s?new ResizeObserver((()=>{const n=t.offsetWidth!==s.offsetWidth||t.getBoundingClientRect().top===s.getBoundingClientRect().top;e.setAttribute("data-with-sidebar",n)})).observe(e):e.setAttribute("data-with-sidebar",!1)}))})();