(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,944220,e=>{"use strict";var t=e.i(902875),n=e.i(247865),i=e.i(368847),l=e.i(144103),s=e.i(632137),a=e.i(336726);let o=({headings:e,title:o,ariaLabel:r,closeLabel:d})=>{let[c,u]=(0,n.useState)(!1),x=(0,n.useRef)(null),b=function(e){let[t,i]=(0,n.useState)(e[0]??null),l=e.join("|");return(0,n.useEffect)(()=>{if("u"document.getElementById(e)).filter(e=>null!==e);if(0===t.length)return;let n=new Set,s=new IntersectionObserver(t=>{t.forEach(e=>{e.isIntersecting?n.add(e.target.id):n.delete(e.target.id)});let l=e.find(e=>n.has(e));l&&i(l)},{rootMargin:"-64px 0px -80% 0px",threshold:0});return t.forEach(e=>s.observe(e)),()=>s.disconnect()},[l]),t}(e.map(e=>e.id));if(e.lengthe.id===b)),h=e[m];return(0,t.jsx)("nav",{"aria-label":r,"data-testid":"article-navigation",className:"mb-6 md:hidden",children:(0,t.jsx)("div",{"data-testid":"article-navigation-mobile",children:(0,t.jsx)(l.MobileDrawer,{title:o,closeLabel:d,isOpen:c,setIsOpen:u,trigger:(0,t.jsxs)("button",{type:"button",className:"bg-brand-light z-sticky sticky top-0 flex w-full items-center justify-between gap-2 rounded-md px-4 py-3 text-left",children:[(0,t.jsxs)(i.Text,{variant:"Body.S.Bold",elementType:"span",color:"inverse",className:"truncate",children:[m+1,". ",h?.text]}),(0,t.jsx)(a.ChevronDown,{color:"inverse",size:"sm",className:"shrink-0","aria-hidden":"true"})]}),onCloseAutoFocus:e=>{let t=x.current?document.getElementById(x.current):null;(x.current=null,t)&&(e.preventDefault(),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0}))},children:(0,t.jsx)("ul",{role:"list",className:"m-0 list-none space-y-1 p-0",children:e.map((e,n)=>(0,t.jsx)("li",{className:(0,s.cn)(3===e.level&&"pl-4"),children:(0,t.jsxs)("a",{href:`#${e.id}`,onClick:()=>{x.current=e.id,u(!1)},className:(0,s.cn)("text-inherit no-underline hover:underline focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none","block py-1.5",e.id===b&&"font-bold"),children:[n+1,". ",e.text]})},e.id))})})})})};e.s(["ArticleNavigationView",0,o,"default",0,o],944220)},364063,function(e){e.n(e.i(944220))},144103,e=>{"use strict";var t=e.i(902875),n=e.i(62544),i=e.i(632137),l=e.i(368847),s=e.i(226602);e.s(["MobileDrawer",0,({isOpen:e,setIsOpen:a,children:o,title:r,closeLabel:d,trigger:c,onCloseAutoFocus:u})=>(0,t.jsxs)(n.Dialog,{open:e,onOpenChange:a,children:[c&&(0,t.jsx)(n.DialogTrigger,{asChild:!0,children:c}),(0,t.jsxs)(n.DialogContent,{showCloseButton:!1,onCloseAutoFocus:u,className:(0,i.cn)("p-0","fixed inset-x-0 top-auto bottom-0 flex h-auto flex-col bg-white","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:slide-out-to-bottom-[10%] data-[state=open]:slide-in-from-bottom-[10%]","left-0 w-full max-w-none translate-x-0 translate-y-0 shadow-lg duration-300 sm:max-w-none","border-x-0 border-b-0","rounded-t-3xl rounded-b-none"),children:[(0,t.jsxs)("div",{className:"relative pt-4",children:[(0,t.jsx)(n.DialogTitle,{className:"flex items-center justify-center pt-0 pb-2",children:(0,t.jsx)(l.default,{variant:"Body.M",elementType:"span",className:"min-w-0 px-12 text-center font-bold break-words",children:r})}),(0,t.jsx)(n.DialogClose,{"aria-label":d,className:"absolute end-5 top-4 cursor-pointer rounded-sm text-black hover:text-gray-700 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(s.Close,{ariaHidden:!0,title:"",className:"text-current"})}),(0,t.jsx)("div",{className:"absolute right-0 bottom-0 left-0 h-[1px] bg-[#e9e9e9]"})]}),(0,t.jsx)("div",{className:"max-h-[70vh] overflow-y-auto p-4 pt-0",children:o})]})]})])}]);