1import{s as D}from"../js/global.x_thqChx4Q.min.js";function z(){const l=document.querySelector(".header-2025");if(!l)return;const d=document.body,h=document.querySelector(".open-menu"),I=document.querySelectorAll(".nav-dropdown"),O=document.querySelectorAll(".listed-dropdown"),a=Array.from(document.querySelectorAll(".nav-filter")),u=document.querySelector(".hero-section .hero-container")||document.querySelector(".hero-section"),R="(min-width: 1200px)",f="nav_filter";let p=window.scrollY,w=!1,S=0;h&&h.addEventListener("click",()=>{const e=l.classList.toggle("show-menu");d.classList.toggle("overflow-hidden",e),h.setAttribute("aria-expanded",String(e))}),I.forEach(e=>{var s;const t=(s=e.parentElement)==null?void 0:s.querySelector(".menu-item-button"),o=e.querySelector(".nav-dropdown-featured .nav-dropdown-featured-content a"),r=(t==null?void 0:t.dataset.href)??"";e.addEventListener("toggle",v=>{const L=v.newState==="open";if(t==null||t.classList.toggle("open",L),!L)return;const n=e.querySelectorAll(".nav-dropdown-featured-image img[data-src]");F(n),o&&b(o.getAttribute("href")??"",r,"displayed")}),o&&o.addEventListener("click",()=>{b(o.getAttribute("href")??"",r,"interacted")})});const E=window.matchMedia(R),_=Array.from(O).map(e=>{const t=Array.from(e.querySelectorAll(".listed-nav-title")),o=Array.from(e.querySelectorAll(".dropdown-sublist")),r=e.querySelectorAll(".mobile-close"),s=()=>{t.forEach(n=>{n.classList.remove("active")}),o.forEach(n=>{n.classList.remove("active")})},v=n=>{if(!n)return;s(),n.classList.add("active");const c=n.dataset.navItem;if(!c)return;const i=o.find(x=>x.dataset.navItem===c);i==null||i.classList.add("active")};return t.forEach(n=>{n.addEventListener("click",c=>{v(c.currentTarget)})}),r.forEach(n=>{n.addEventListener("click",s)}),{syncForViewport:()=>{if(!E.matches){s();return}const n=t.find(c=>{const i=c.dataset.navItem;return i&&d.classList.contains(i)});v(n??t[0])}}}),A=()=>{_.forEach(e=>{e.syncForViewport()})};if(A(),E.addEventListener("change",A),a.length>0){let e=T(f);e||(e="all",y(f,e));let t=a.find(o=>
1o.dataset.filter===e);t||(t=a.find(o=>o.dataset.filter==="all"),t&&y(f,"all")),t&&k(t),a.forEach(o=>{o.addEventListener("click",()=>{const r=o.dataset.filter;r&&(k(o),y(f,r))})})}function C(){w||(w=!0,window.requestAnimationFrame(()=>{const e=window.scrollY;q(e),m(e),w=!1}))}window.addEventListener("scroll",C,{passive:!0});function q(e){if(e<=5){l.classList.remove("down"),d.classList.remove("header-has-down"),p=e;return}const t=e>p;l.classList.toggle("down",t),d.classList.toggle("header-has-down",t),p=e}function m(e){const t=document.querySelector(".custom-nav-bg");if(!t)return;const o=e>S-100;t.classList.toggle("secondary-nav-active",o)}function g(){if(!u){m(window.scrollY);return}S=u.getBoundingClientRect().bottom+window.scrollY,m(window.scrollY)}g(),window.addEventListener("resize",g,{passive:!0}),u&&"ResizeObserver"in window&&new ResizeObserver(()=>{g()}).observe(u),q(window.scrollY),m(window.scrollY);function b(e,t,o){D({event:"internal_promo",navigation_type:"nav_primary_2",promo_status:o,promoPos:t,promoted_page:e,promo_type:"nav promo"})}function F(e=[]){e.forEach(t=>{const o=t.dataset.src;o&&(t.src=o,delete t.dataset.src)})}function y(e,t,o=365){const r=new Date(Date.now()+o*864e5).toUTCString();document.cookie=[`${e}=${encodeURIComponent(t)}`,`expires=${r}`,"path=/","SameSite=Lax"].join("; ")}function T(e){const t=`${e}=`,o=document.cookie.split("; ").find(s=>s.startsWith(t));if(!o)return null;const r=o.slice(t.length);try{return decodeURIComponent(r)}catch{return r}}function k(e){a.forEach(t=>{t.classList.remove("active")}),e.classList.add("active")}}export{z as navigation};
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.