(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[756,823],{7955:function(e,t,r){Promise.resolve().then(r.bind(r,2228)),Promise.resolve().then(r.t.bind(r,5878,23)),Promise.resolve().then(r.t.bind(r,2972,23)),Promise.resolve().then(r.bind(r,621))},621:function(e,t,r){"use strict";r.d(t,{default:function(){return i}});var n=r(7437),o=r(2265);function i(e){var t,r;let{items:i,ariaLabel:l="Page sections"}=e,[s,a]=(0,o.useState)(null!==(r=null===(t=i[0])||void 0===t?void 0:t.href)&&void 0!==r?r:""),[d,c]=(0,o.useState)(!1),u=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=()=>{var e,t;let r=u.current;r&&c(r.getBoundingClientRect().top<=65);let n=null!==(t=null===(e=i[0])||void 0===e?void 0:e.href)&&void 0!==t?t:"";for(let e of i){let t=document.getElementById(e.href.replace(/^#/,""));t&&t.getBoundingClientRect().top<=130&&(n=e.href)}a(n)};return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},[i]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:u,className:"h-px pointer-events-none","aria-hidden":"true"}),(0,n.jsx)("nav",{className:["sticky top-16 xl:top-20 z-40","transition-[max-height,opacity,background-color,border-color,box-shadow] duration-300 ease-in-out",d?"max-h-[60px] opacity-100 bg-[--bg]/95 backdrop-blur-md border-y border-[--border]/60 shadow-[0_2px_12px_rgba(0,0,0,0.05)]":"max-h-0 overflow-hidden opacity-0 pointer-events-none bg-transparent border-y border-transparent"].join(" "),"aria-label":l,"aria-hidden":!d,children:(0,n.jsx)("div",{className:"az-wide",children:(0,n.jsx)("ul",{className:"flex items-center overflow-x-auto",style:{scrollbarWidth:"none",msOverflowStyle:"none"},role:"list",children:i.map(e=>{let t=s===e.href;return(0,n.jsx)("li",{className:"flex-shrink-0",role:"listitem",children:(0,n.jsxs)("a",{href:e.href,tabIndex:d?0:-1,className:["relative flex items-center px-3.5 py-3","text-xs font-medium whitespace-nowrap","transition-colors duration-150",t?"text-gold-700":"text-graphite hover:text-[--text]"].join(" "),children:[e.label,t&&(0,n.jsx)("span",{className:"absolute bottom-0 inset-x-3.5 h-0.5 bg-gold-700 rounded-t-full","aria-hidden":"true"})]})},e.href)})})})})]})}}},function(e){e.O(0,[717,878,971,117,744],function(){return e(e.s=7955)}),_N_E=e.O()}]);