(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,27230,e=>{"use strict";var t=e.i(902875),i=e.i(247865),l=e.i(725287),r=e.i(632137),n=e.i(368847),a=e.i(240058),s=e.i(546446),c=e.i(663333),o=e.i(235577),u=e.i(315730);let d="inline-flex h-8 items-center rounded-2xl text-sm leading-[1.15] font-semibold whitespace-nowrap text-gray-900 transition-colors focus-visible:outline-none",h={filled:(0,r.cn)(d,"bg-gray-100 px-3 hover:bg-gray-200 active:bg-gray-300 focus-visible:bg-gray-200"),divided:(0,r.cn)(d,"underline-offset-4 hover:underline focus-visible:underline active:opacity-75")},m=()=>(0,t.jsx)("span",{"aria-hidden":"true",className:"h-[15px] w-px shrink-0 bg-gray-300"}),g=({side:e,show:i})=>(0,t.jsx)("div",{"aria-hidden":"true",className:(0,r.cn)("pointer-events-none absolute top-0 h-full w-24 from-white from-0% via-white via-60% to-transparent","left"===e?(0,r.cn)("-left-25 bg-gradient-to-r transition-[left]",i&&"left-0"):(0,r.cn)("-right-25 bg-gradient-to-l transition-[right]",i&&"right-0"))}),b=(0,i.memo)(({items:e,basePath:l,activeIndex:n,wrap:d=!1,variant:b="filled",className:p,sourceModule:x})=>{let f="divided"===b,v=f?"gap-4":"gap-2",w=(0,s.useAtomValue)(c.deviceClassAtom),{ref:y,showLeft:j,showRight:k,scrollLeft:N,scrollRight:C}=(0,u.useHorizontalScroll)({enabled:"mobile"!==w&&"tablet"!==w&&!d,scrollAmount:200,contentKey:e}),S=e.map((e,s)=>(0,t.jsxs)(i.Fragment,{children:[f&&!d&&s>0&&(0,t.jsx)(m,{}),(0,t.jsx)(a.default,{href:`${l}/${e.slug}`,className:(0,r.cn)(h[b],s===n&&"bg-blue-100 text-blue-500 hover:bg-blue-200 focus-visible:bg-blue-200 active:bg-blue-300"),"aria-current":s===n?"page":void 0,sourceModule:x,children:e.label})]},`${e.label}_${e.slug}`));return d?(0,t.jsx)("div",{className:(0,r.cn)("flex min-w-0 flex-wrap items-center",v,p),children:S}):(0,t.jsxs)("div",{className:(0,r.cn)("relative min-w-0 overflow-hidden",p),children:[(0,t.jsx)("div",{ref:y,className:(0,r.cn)("scrollbar-hide flex items-center overflow-x-auto",f?"h-8":"h-12",v),children:S}),(0,t.jsx)(g,{side:"left",show:j}),(0,t.jsx)(g,{side:"right",show:k}),(0,t.jsx)(o.ScrollButton,{hidden:!j,onClick:N,direction:"left",size:"sm",className:"left-0"}),(0,t.jsx)(o.ScrollButton,{hidden:!k,onClick:C,direction:"right",size:"sm",className:"right-0"})]})});b.displayName="ChipStrip",e.s(["TopicChipsClient",0,function({links:e,sectionBasePath:a,wrap:s,heading:c,sectionKey:o,variant:u="default"}){let d=(0,l.useParams)(),h="string"==typeof d.locale?d.locale:"en-US",m=(0,i.useMemo)(()=>d.section===o?e.findIndex(e=>e.slug===d.slug):-1,[e,d.section,d.slug,o]),g=c?"nav":"div",p="en-US"===h?a:`/${h}${a}`;return"masthead"===u?(0,t.jsxs)(g,{"aria-label":c||void 0,className:"flex min-w-0 items-center",children:[c&&(0,t.jsx)(n.Text,{elementType:"span",variant:"Body.S",color:"primary",className:"mr-2 shrink-0 text-sm leading-[1.15] font-black tracking-normal",children:c}),(0,t.jsx)(b,{items:e,basePath:p,activeIndex:m,variant:"divided",sourceModule:"topic-chips",className:"min-w-0"})]}):(0,t.jsx)(g,{"aria-label":c||void 0,className:"@container/topicchips w-full min-w-0",children:(0,t.jsxs)("div",{className:(0,r.cn)("flex min-w-0",s?"flex-col gap-1 @lg/topicchips:flex-row @lg/topicchips:items-center @lg/topicchips:gap-0":"flex-row items-center"),children:[c&&(0,t.jsx)(n.Text,{elementType:"span",variant:"Title.S",color:"primary",className:(0,r.cn)("shrink-0 truncate text-sm @sm/topicchips:text-base @lg/topicchips:text-xl",!s&&"max-w-[40%] pr-3"),children:c}),(0,t.jsx)(b,{items:e,basePath:p,activeIndex:m,wrap:s,sourceModule:"topic-chips",className:(0,r.cn)("min-w-0",s?"w-full @lg/topicchips:flex-1":"flex-1")})]})})}],27230)},317139,function(e){e.n(e.i(27230))},235577,e=>{"use strict";var t=e.i(902875),i=e.i(523084),l=e.i(47524),r=e.i(632137),n=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:a,hidden:s,size:c="default",variant:o="light",className:u}){let d="sm"===c,h=(0,r.cn)("text-current",d?"size-4":"size-6 transition-[width,height] duration-150 group-hover:size-7 group-active:size-6 group-active:duration-100");return(0,t.jsx)(n.Button,{type:"button",onClick:a,"aria-hidden":"true",tabIndex:-1,className:(0,r.cn)("group z-sticky absolute top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center rounded-full p-0 transition-all duration-150 ease-in-out active:duration-100","dark"===o?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===o?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===o?"bg-white/80 text-gray-900 backdrop-blur-[2px] hover:bg-white/95 active:bg-white":"bg-transparent text-gray-900 hover:bg-gray-100 active:bg-gray-200",d?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",s&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",s&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",s&&"pointer-events-none opacity-0",u),children:"left"===e?(0,t.jsx)(i.ChevronLeft,{className:h}):(0,t.jsx)(l.ChevronRight,{className:h})})}])},315730,e=>{"use strict";var t=e.i(147732),i=e.i(247865);e.s(["useHorizontalScroll",0,function({enabled:e=!0,scrollAmount:l=200,contentKey:r}={}){let n=(0,i.useRef)(null),a=(0,i.useRef)(null),s=(0,i.useRef)(!1),[c,o]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),h=(0,i.useCallback)(()=>{let t=n.current;if(!t||!e){o(!1),d(!1);return}let{scrollLeft:i,scrollWidth:l,clientWidth:r}=t,a=Math.abs(i),c=a>2,u=a+r(0,t.debounce)(h,150),[h]),g=(0,i.useCallback)(()=>{null===a.current&&(a.current=requestAnimationFrame(()=>{h(),a.current=null}))},[h]);(0,i.useEffect)(()=>{let t=n.current;return t&&(s.current="rtl"===getComputedStyle(t).direction),h(),e&&(t?.addEventListener("scroll",g),window.addEventListener("resize",m)),()=>{null!==a.current&&cancelAnimationFrame(a.current),a.current=null,t?.removeEventListener("scroll",g),m.cancel(),window.removeEventListener("resize",m)}},[e,h,g,m,r]);let b=(0,i.useCallback)(()=>n.current?.scrollBy({left:-l,behavior:"smooth"}),[l]),p=(0,i.useCallback)(()=>n.current?.scrollBy({left:l,behavior:"smooth"}),[l]);return{ref:n,showLeft:c,showRight:u,scrollLeft:b,scrollRight:p}}])}]);