1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,799433,e=>{"use strict";var t=e.i(90942),a=e.i(191149),r=e.i(649351),n=e.i(248686),s=e.i(135857),i=e.i(500733);let l=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M228.88,113.61A60,60,0,0,0,166,33.42,60,60,0,0,0,65.1,47.83a60,60,0,0,0-38,94.56A60.08,60.08,0,0,0,83.6,223a57.83,57.83,0,0,0,6.45-.36A60,60,0,0,0,190.9,208.17a60,60,0,0,0,38-94.56ZM181.81,58.3a36,36,0,0,1,26.58,37.6L170,73.73a12,12,0,0,0-12,0L120,95.67V81.81L154.5,61.9A35.74,35.74,0,0,1,181.81,58.3ZM136,123.38v9.24l-8,4.62-8-4.62v-9.24l8-4.62ZM84,72a36,36,0,0,1,56.39-29.67L102,64.49a12,12,0,0,0-6,10.39v43.88l-12-6.93ZM44.33,88.93A35.81,35.81,0,0,1,60,74.43v44.33a12,12,0,0,0,6,10.4l38,21.93L92,158,57.5,138.1A36,36,0,0,1,44.33,88.93ZM74.19,197.7a36,36,0,0,1-26.58-37.6L86,182.27a12,12,0,0,0,12,0l38-21.94v13.86L101.5,194.1A35.74,35.74,0,0,1,74.19,197.7ZM172,184a36,36,0,0,1-56.39,29.67L154,191.51a12,12,0,0,0,6-10.39V137.24l12,6.93Zm39.67-16.93A35.81,35.81,0,0,1,196,181.57V137.24a12,12,0,0,0-6-10.4l-38-21.93L164,98l34.5,19.92A36,36,0,0,1,211.67,167.07Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M96,174.19l56-32.33v36.95L107.5,204.5a48,48,0,0,1-66.4-64.08h0A48,48,0,0,0,51.5,148.5ZM204.5,107.5,160,81.81l-32,18.48,56,32.33V184a48,48,0,0,1-1.81,13h0A48,48,0,0,0,204.5,107.5ZM104,77.19,148.5,51.5a47.77,47.77,0,0,1,12.19-5v0A48,48,0,0,0,72,72v51.38l32,18.48Z",opacity:"0.2"}),s.createElement("path",{d:"M224.32,114.24a56,56,0,0,0-60.07-76.57A56,56,0,0,0,67.93,51.44a56,56,0,0,0-36.25,90.32A56,56,0,0,0,69,217,56.39,56.39,0,0,0,83.59,219a55.75,55.75,0,0,0,8.17-.61,56,56,0,0,0,96.31-13.78,56,56,0,0,0,36.25-90.32ZM182.85,54.43a40,40,0,0,1,28.56,48c-.95-.63-1.91-1.24-2.91-1.81L164,74.88a8,8,0,0,0-8,0l-44,25.41V81.81l40.5-23.38A39.76,39.76,0,0,1,182.85,54.43ZM144,137.24l-16,9.24-16-9.24V118.76l16-9.24,16,9.24ZM80,72a40,40,0,0,1,67.53-29c-1,.51-2,1-3,1.62L100,70.27a8,8,0,0,0-4,6.92V128l-16-9.24ZM40.86,86.93A39.75,39.75,0,0,1,64.12,68.57C64.05,69.71,64,70.85,64,72v51.38a8,8,0,0,0,4,6.93l44,25.4L96,165,55.5,141.57A40,40,0,0,1,40.86,86.93ZM73.15,201.57a40,40,0,0,1-28.56-48c.95.63,1.91,1.24,2.91,1.81L92,181.12a8,8,0,0,0,8,0l44-25.41v18.48l-40.5,23.38A39.76,39.76,0,0,1,73.15,201.57ZM176,184a40,40,0,0,1-67.52,29.05c1-.51,2-1.05,3-1.63L156,185.73a8,8,0,0,0,4-6.92V128l16,9.24Zm39.14-14.93a39.75,39.75,0,0,1-23.26,18.36c.07-1.14.12-2.28.12-3.43V132.62a8,8,0,0,0-4-6.93l-44-25.4,16-9.24,40.5,23.38A40,40,0,0,1,215.14,169.07Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M224.32,114.24a56,56,0,0,0-60.07-76.57A56,56,0,0,0,67.93,51.44a56,56,0,0,0-36.25,90.32A56,56,0,0,0,69,217,56.39,56.39,0,0,0,83.59,219a55.75,55.75,0,0,0,8.17-.61,56,56,0,0,0,96.31-13.78,56,56,0,0,0,36.25-90.32Zm-80.32,23-16,9.24-16-9.24V118.76l16-9.24,16,9.24Zm38.85-82.81a40,40,0,0,1,28.56,48c-.95-.63-1.91-1.24-2.91-1.81L164,74.88a8,8,0,0,0-8,0l-44,25.41V81.81l40.5-23.38A39.76,39.76,0,0,1,182.85,54.43Zm-142,32.5A39.75,39.75,0,0,1,64.12,68.57C64.05,69.71,64,70.85,64,72v51.38a8,8,0,0,0,4,6.93l44,25.4L96,165,55.5,141.57A40,40,0,0,1,40.86,86.93ZM136,224a39.79,39.79,0,0,1-27.52-10.95c1-.51,2-1.05,3-1.63L156,185.73a8,8,0,0,0,4-6.92V128l16,9.24V184A40,40,0,0,1,136,224Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M222,114.56a54,54,0,0,0-58.67-74.73,54,54,0,0,0-94,13.46A54,54,0,0,0,34,141.44a54,54,0,0,0,35.56,73.65A54.54,54.54,0,0,0,83.59,217a52.86,52.86,0,0,0,9.06-.78,54,54,0,0,0,94-13.46A54,54,0,0,0,222,114.56ZM183.37,52.5a42,42,0,0,1,29.21,53.14,54.84,54.84,0,0,0-5.08-3.33L163,76.62a6,6,0,0,0-6,0l-47,27.13V80.66l41.5-24A41.73,41.73,0,0,1,183.37,52.5ZM146,138.39l-18,10.39-18-10.39V117.61l18-10.39,18,10.39ZM78,72a42,42,0,0,1,72.92-28.43,56.18,56.18,0,0,0-5.42,2.74L101,72a6,6,0,0,0-3,5.19v54.27L78,119.92ZM39.13,85.93a41.75,41.75,0,0,1,27.22-20A55.09,55.09,0,0,0,66,72v51.38a6,6,0,0,0,3,5.2l47,27.13L96,167.26l-41.5-24A42,42,0,0,1,39.13,85.93ZM72.63,203.5a42,42,0,0,1-29.21-53.14,54.84,54.84,0,0,0,5.08,3.33L93,179.38a6,6,0,0,0,6,0l47-27.13v23.09l-41.5,24A41.73,41.73,0,0,1,72.63,203.5ZM178,184a42,42,0,0,1-72.92,28.43,56.18,56.18,0,0,0,5.42-2.74L155,184a6,6,0,0,0,3-5.19V124.54l20,11.54Zm38.87-13.93a41.75,41.75,0,0,1-27.22,20A55.09,55.09,0,0,0,190,184V132.62a6,6,0,0,0-3-5.2l-47-27.13,20-11.55,41.5,24A42,42,0,0,1,216.87,170.07Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M224.32,114.24a56,56,0,0,0-60.07-76.57A56,56,0,0,0,67.93,51.44a56,56,0,0,0-36.25,90.32A56,56,0,0,0,69,217,56.39,56.39,0,0,0,83.59,219a55.75,55.75,0,0,0,8.17-.61,56,56,0,0,0,96.31-13.78,56,56,0,0,0,36.25-90.32ZM182.85,54.43a40,40,0,0,1,28.56,48c-.95-.63-1.91-1.24-2.91-1.81L164,74.88a8,8,0,0,0-8,0l-44,25.41V81.81l40.5-23.38A39.76,39.76,0,0,1,182.85,54.43ZM144,137.24l-16,9.24-16-9.24V118.76l16-9.24,16,9.24ZM80,72a40,40,0,0,1,67.53-29c-1,.51-2,1-3,1.62L100,70.27a8,8,0,0,0-4,6.92V128l-16-9.24ZM40.86,86.93A39.75,39.75,0,0,1,64.12,68.57C64.05,69.71,64,70.85,64,72v51.38a8,8,0,0,0,4,6.93l44,25.4L96,165,55.5,141.57A40,40,0,0,1,40.86,86.93ZM73.15,201.57a40,40,0,0,1-28.56-48c.95.63,1.91,1.24,2.91,1.81L92,181.12a8,8,0,0,0,8,0l44-25.41v18.48l-40.5,23.38A39.76,39.76,0,0,1,73.15,201.57ZM176,184a40,40,0,0,1-67.52,29.05c1-.51,2-1.05,3-1.63L156,185.73a8,8,0,0,0,4-6.92V128l16,9.24Zm39.14-14.93a39.75,39.75,0,0,1-23.26,18.36c.07-1.14.12-2.28.12-3.43V132.62a8,8,0,0,0-4-6.93l-44-25.4,16-9.24,40.5,23.38A40,40,0,0,1,215.14,169.07Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M219.68,114.91A52,52,0,0,0,162.49,42,52,52,0,0,0,70.82,55.15a52,52,0,0,0-34.5,85.94A52,52,0,0,0,70,213.16,52.33,52.33,0,0,0,83.59,215a51.66,51.66,0,0,0,9.93-1,52,52,0,0,0,91.66-13.13,52,52,0,0,0,34.5-85.94Zm-35.8-64.34a44,44,0,0,1,29.66,58.36,51.84,51.84,0,0,0-7-4.89L162,78.35a4,4,0,0,0-4,0l-50,28.87V79.5L150.5,55A43.69,43.69,0,0,1,183.88,50.57Zm-35.88,89-20,11.54-20-11.54v-23.1l20-11.54,20,11.54ZM76,72a44,44,0,0,1,78.25-27.62A52.08,52.08,0,0,0,146.5,48L102,73.73a4,4,0,0,0-2,3.46v57.74L76,121.07ZM37.4,84.93A43.72,43.72,0,0,1,68.71,63.46,52.26,52.26,0,0,0,68,72v51.38a4,4,0,0,0,2,3.46l50,28.87L96,169.57,53.5,145A44,44,0,0,1,37.4,84.93Zm34.72,120.5a44,44,0,0,1-29.66-58.36,51.84,51.84,0,0,0,7,4.89L94,177.65a4,4,0,0,0,4,0l50-28.87V176.5L105.5,201A43.69,43.69,0,0,1,72.12,205.43ZM180,184a44,44,0,0,1-78.26,27.61A51.66,51.66,0,0,0,109.5,208L154,182.27a4,4,0,0,0,2-3.46V121.07l24,13.86Zm38.6-12.93a43.72,43.72,0,0,1-31.31,21.47A52.26,52.26,0,0,0,188,184V132.62a4,4,0,0,0-2-3.46l-50-28.87,24-13.86L202.5,111A44,44,0,0,1,218.6,171.07Z"}))]]),d=s.forwardRef((e,t)=>
1s.createElement(i.default,{ref:t,...e,weights:l}));d.displayName="OpenAiLogoIcon",e.i(840596);var o=e.i(279742),c=e.i(129911);function m({size:e=12,color:t="currentColor",className:a,style:r,...n}){return(0,s.createElement)("svg",{className:a,fill:t,height:e,role:"img",style:r,viewBox:"0 0 24 24",width:e,xmlns:"http://www.w3.org/2000/svg",...n},(0,s.createElement)("path",{d:"m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.
10182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"}))}e.s(["PageActions",0,function({content:e,title:s,url:i}){let{isCopied:l,copy:u}=(0,c.useCopy)(e),h=[{icon:(0,t.jsx)(r.Copy,{}),id:"copy-page",label:"Copy Page"},{icon:(0,t.jsx)(n.Eye,{}),id:"view-markdown",label:"View Markdown"},{icon:(0,t.jsx)(d,{}),id:"ask-chatgpt",label:"Ask in ChatGPT"},{icon:(0,t.jsx)(m,{}),id:"ask-claude",label:"Ask in Claude"}];return(0,t.jsxs)("div",{className:"flex flex-col gap-0",children:[(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-0 overflow-x-auto [-webkit-overflow-scrolling:touch] sm:flex-nowrap sm:overflow-x-visible",children:h.map((r,n)=>{let d=n===h.length-1,c="copy-page"===r.id;return(0,t.jsxs)("div",{className:"flex items-center gap-0",children:[(0,t.jsx)(o.Button,{"aria-label":r.ariaLabel??r.label,beforeIcon:c&&l?(0,t.jsx)(a.Check,{className:"size-3"}):r.icon,onClick:()=>{!function(t){switch(t.id){case"copy-page":u();break;case"view-markdown":let a,r;a=new Blob([e],{type:"text/plain"}),r=URL.createObjectURL(a),window.open(r,"_blank"),setTimeout(()=>{URL.revokeObjectURL(r)},1e3);break;case"ask-chatgpt":case"ask-claude":let n=i.startsWith("/")?`${globalThis.location.origin}${i}`:i,l=encodeURIComponent(`Please read and analyze this documentation page: 2 3 Title: ${s} 4 URL: ${n} 5 6 Content: 7 ${e} 8 9 Note: Please ignore any React import statements (e.g., "import ... from ...") and React component code in the content. Focus only on the documentation content itself. 10 11 Please provide a summary and answer any questions I might have about this content.`);if("ask-claude"===t.id){let e=`https://claude.ai/new?q=${l}`;window.open(e,"_blank")}else if("ask-chatgpt"===t.id){let e=`https://chat.openai.com?q=${l}`;window.open(e,"_blank")}}}(r)},size:"sm",variant:"ghost",children:r.label}),!d&&(0,t.jsx)("div",{"aria-hidden":"true",className:"h-6 w-px shrink-0 bg-fd-border"})]},r.id)})}),(0,t.jsx)("div",{"aria-hidden":"true",className:"mt-1 h-px w-full bg-fd-border"})]})}],799433)},19863,e=>{"use strict";e.s(["LayoutBody",()=>W,"useNotebookLayout",()=>G],19863);var t=e.i(806889),a=e.i(580884),r=e.i(964505),n=e.i(636312);e.i(231628);var s=e.i(984989),i=e.i(90942),l=e.i(135857);function d(e){let{props:{nav:t},slots:a}=G(),r="calc(var(--fd-layout-width,97rem) - var(--fd-sidebar-col) - var(--fd-toc-width))",{collapsed:n}=a.sidebar?.useSidebar?.()??{},[d,o]=(0,l.useState)(n),c=d!==n;return(0,l.useEffect)(()=>{c&&o(n)},[n,c]),(0,i.jsx)("div",{id:"nd-notebook-layout","data-sidebar-collapsed":n,"data-column-changed":c,...e,style:{gridTemplate:t?.mode==="top"?`". header header header ." 12"sidebar sidebar toc-popover toc-popover ." 13"sidebar sidebar main toc ." 1fr / minmax(min-content, 1fr) var(--fd-sidebar-col) minmax(0, ${r}) var(--fd-toc-width) minmax(min-content, 1fr)`:`"sidebar sidebar header header ." 14"sidebar sidebar toc-popover toc-popover ." 15"sidebar sidebar main toc ." 1fr / minmax(min-content, 1fr) var(--fd-sidebar-col) minmax(0, ${r}) var(--fd-toc-width) minmax(min-content, 1fr)`,"--fd-docs-row-1":"var(--fd-banner-height, 0px)","--fd-docs-row-2":"calc(var(--fd-docs-row-1) + var(--fd-header-height))","--fd-docs-row-3":"calc(var(--fd-docs-row-2) + var(--fd-toc-popover-height))","--fd-sidebar-col":n?"0px":"var(--fd-sidebar-width)",...e.style},className:(0,s.cn)("grid overflow-x-clip min-h-(--fd-docs-height) auto-cols-auto auto-rows-auto [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-toc-popover-height:0px] [--fd-sidebar-width:0px] [--fd-toc-width:0px] data-[column-changed=true]:transition-[grid-template-columns]",e.className),children:e.children})}var o=e.i(497167),c=e.i(465127),m=e.i(388808),u=e.i(393105),h=e.i(997152),f=e.i(850020),x=e.i(979619),p=e.i(485392),g=e.i(799176),b=e.i(452280),v=e.i(183163),j=e.i(258719),w=e.i(505515);let y=(0,e.i(207298).cva)("relative flex flex-row items-center gap-2 rounded-lg p-2 text-start text-fd-muted-foreground wrap-anywhere [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{link:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground
15/80 hover:transition-none data-[active=true]:bg-fd-primary/10 data-[active=true]:text-fd-primary data-[active=true]:hover:transition-colors",button:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"},highlight:{true:"data-[active=true]:before:content-[''] data-[active=true]:before:bg-fd-primary data-[active=true]:before:absolute data-[active=true]:before:w-px data-[active=true]:before:inset-y-2.5 data-[active=true]:before:inset-s-2.5"}}});function N(e){return`calc(${2+3*e} * var(--spacing))`}let{useSidebar:L}=u.base_exports;function A(e){return(0,i.jsx)(u.SidebarProvider,{...e})}function k(e){return(0,i.jsx)(u.SidebarTrigger,{...e})}function Z(e){return(0,i.jsx)(u.SidebarCollapseTrigger,{...e})}function M({ref:e,className:t,children:a,...r}){let{props:{nav:n}}=G(),d=n?.mode??"auto",o=(0,l.useRef)(null);return(0,i.jsx)(u.SidebarContent,{children:({collapsed:n,hovered:l,ref:m,...u})=>(0,i.jsxs)("div",{"data-sidebar-placeholder":"",className:(0,s.cn)("sticky z-20 [grid-area:sidebar] pointer-events-none *:pointer-events-auto md:layout:[--fd-sidebar-width:268px] max-md:hidden","auto"===d?"top-(--fd-docs-row-1) h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))]":"top-(--fd-docs-row-2) h-[calc(var(--fd-docs-height)-var(--fd-docs-row-2))]"),children:[n&&(0,i.jsx)("div",{className:"absolute inset-s-0 inset-y-0 w-4",...u}),(0,i.jsx)("aside",{id:"nd-sidebar",ref:(0,c.mergeRefs)(o,e,m),"data-collapsed":n,"data-hovered":n&&l,className:(0,s.cn)("absolute flex flex-col w-full inset-s-0 inset-y-0 items-end text-sm duration-250 *:w-(--fd-sidebar-width)","auto"===d&&"bg-fd-card border-e",n&&["inset-y-2 rounded-xl bg-fd-card transition-transform border w-(--fd-sidebar-width)",l?"shadow-lg translate-x-2 rtl:-translate-x-2":"-translate-x-(--fd-sidebar-width) rtl:translate-x-full"],o.current&&"true"===o.current.getAttribute("data-collapsed")!==n&&"transition-[width,inset-block,translate,background-color]",t),...r,...u,children:a})]})})}function S({children:e,className:t,...a}){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.SidebarDrawerOverlay,{className:"fixed z-40 inset-0 backdrop-blur-xs data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out"}),(0,i.jsx)(u.SidebarDrawerContent,{className:(0,s.cn)("fixed text-[0.9375rem] flex flex-col shadow-lg border-s inset-e-0 inset-y-0 w-[85%] max-w-[380px] z-40 bg-fd-background data-[state=open]:animate-fd-sidebar-in data-[state=closed]:animate-fd-sidebar-out",t),...a,children:e})]})}function T(e){return(0,i.jsx)(u.SidebarFolder,{...e})}function V({className:e,style:t,children:a,...r}){let n=(0,u.useFolderDepth)();return(0,i.jsx)(u.SidebarItem,{className:(0,s.cn)(y({variant:"link",highlight:n>=1}),e),style:{paddingInlineStart:N(n),...t},...r,children:a})}function C({className:e,style:t,...a}){let{depth:r,collapsible:n}=(0,u.useFolder)();return(0,i.jsx)(u.SidebarFolderTrigger,{className:(0,s.cn)(y({variant:n?"button":null}),"w-full",e),style:{paddingInlineStart:N(r-1),...t},...a,children:a.children})}function z({className:e,style:t,...a}){let r=(0,u.useFolderDepth)();return(0,i.jsx)(u.SidebarFolderLink,{className:(0,s.cn)(y({variant:"link",highlight:r>1}),"w-full",e),style:{paddingInlineStart:N(r-1),...t},...a,children:a.children})}function F({className:e,children:t,...a}){let r=(0,u.useFolderDepth)();return(0,i.jsx)(u.SidebarFolderContent,{className:(0,s.cn)("relative",1===r&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:inset-s-2.5",e),...a,children:(0,i.jsx)("div",{className:"flex flex-col gap-0.5 pt-0.5",children:t})})}let P=(0,h.createPageTreeRenderer)({SidebarFolder:T,SidebarFolderContent:F,SidebarFolderLink:z,SidebarFolderTrigger:C,SidebarItem:V,SidebarSeparator:function({className:e,style:t,children:a,...r}){let n=(0,u.useFolderDepth)();return(0,i.jsx)(u.SidebarSeparator,{className:(0,s.cn)("inline-flex items-center gap-2 mb-1.5 px-2 mt-6 empty:mb-0 [&_svg]:size-4 [&_svg]:shrink-0",0===n&&"first:mt-0",e),style:{paddingInlineStart:N(n),...t},...r,children:a})}}),I=(0,f.createLinkItemRenderer)({SidebarFolder:T,SidebarFolderContent:F,SidebarFolderLink:z,SidebarFolderTrigger:C,SidebarItem:V});function E({banner:e,footer:t,components:r,collapsible:n=!0,...d}){let{menuItems:c,slots:m,props:{nav:h,tabs:f,tabMode:x}}
15=G(),p=h?.mode??"auto",g=c.filter(e=>"icon"===e.type);function b(t){return"function"==typeof e?(0,l.createElement)(e,t):(0,i.jsxs)("div",{...t,className:(0,s.cn)("flex flex-col gap-3 p-4 pb-2 empty:hidden",t.className),children:[t.children,e]})}function y(e){return"function"==typeof t?(0,l.createElement)(t,e):(0,i.jsxs)("div",{...e,children:[e.children,t]})}let N=(0,i.jsxs)(u.SidebarViewport,{children:[c.filter(e=>"icon"!==e.type).map((e,t,a)=>(0,i.jsx)(I,{item:e,className:(0,s.cn)("lg:hidden",t===a.length-1&&"mb-3")},t)),(0,i.jsx)(P,{...r})]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(M,{...d,children:[b({children:(0,i.jsxs)(i.Fragment,{children:["auto"===p&&(0,i.jsxs)("div",{className:"flex justify-between",children:[m.navTitle&&(0,i.jsx)(m.navTitle,{className:"inline-flex items-center gap-2.5 font-medium"}),h?.children,n&&(0,i.jsx)(Z,{className:(0,s.cn)((0,o.buttonVariants)({color:"ghost",size:"icon-sm",className:"mt-px mb-auto text-fd-muted-foreground"})),children:(0,i.jsx)(j.SidebarIcon,{})})]}),f.length>0&&(0,i.jsx)(R,{options:f,className:(0,s.cn)("navbar"===x&&"lg:hidden")})]})}),N,y({className:(0,s.cn)("hidden flex-row text-fd-muted-foreground items-center border-t px-4 py-2.5",g.length>0&&"max-lg:flex"),children:g.map((e,t)=>(0,i.jsx)(a.LinkItem,{item:e,className:(0,s.cn)((0,o.buttonVariants)({size:"icon-sm",color:"ghost",className:"lg:hidden"})),"aria-label":e.label,children:e.icon},t))})]}),(0,i.jsxs)(S,{...d,children:[b({children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{className:(0,s.cn)((0,o.buttonVariants)({size:"icon-sm",color:"ghost",className:"ms-auto text-fd-muted-foreground"})),children:(0,i.jsx)(w.X,{})}),f.length>0&&(0,i.jsx)(R,{options:f})]})}),N,y({className:(0,s.cn)("hidden flex-row text-fd-muted-foreground items-center border-t p-4 pt-2 justify-end",(m.languageSelect||m.themeSwitch)&&"flex",g.length>0&&"max-lg:flex"),children:(0,i.jsxs)(i.Fragment,{children:[g.map((e,t)=>(0,i.jsx)(a.LinkItem,{item:e,className:(0,s.cn)((0,o.buttonVariants)({size:"icon-sm",color:"ghost"}),"text-fd-muted-foreground lg:hidden",t===g.length-1&&"me-auto"),"aria-label":e.label,children:e.icon},t)),m.languageSelect&&(0,i.jsx)(m.languageSelect.root,{children:(0,i.jsx)(v.Languages,{className:"size-4.5 text-fd-muted-foreground"})}),m.themeSwitch&&(0,i.jsx)(m.themeSwitch,{})]})})]})]})}function R({options:e,placeholder:t,...a}){let[n,d]=(0,l.useState)(!1),{closeOnRedirect:o}=L(),c=(0,p.usePathname)(),u=(0,l.useMemo)(()=>e.findLast(e=>(0,r.isLayoutTabActive)(e,c)),[e,c]),h=()=>{o.current=!1,d(!1)},f=u?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"size-9 shrink-0 empty:hidden md:size-5",children:u.icon}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-sm font-medium",children:u.title}),(0,i.jsx)("p",{className:"text-sm text-fd-muted-foreground empty:hidden md:hidden",children:u.description})]})]}):t;return(0,i.jsxs)(m.Popover,{open:n,onOpenChange:d,children:[f&&(0,i.jsxs)(m.PopoverTrigger,{...a,className:(0,s.cn)("flex items-center gap-2 rounded-lg p-2 border bg-fd-secondary/50 text-start text-fd-secondary-foreground transition-colors hover:bg-fd-accent data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground",a.className),children:[f,(0,i.jsx)(b.ChevronsUpDown,{className:"shrink-0 ms-auto size-4 text-fd-muted-foreground"})]}),(0,i.jsx)(m.PopoverContent,{className:"flex flex-col gap-1 w-(--radix-popover-trigger-width) p-1 fd-scroll-container",children:e.map(e=>{let t=u&&e.url===u.url;if(t||!e.unlisted)return(0,i.jsxs)(x.default,{href:e.url,onClick:h,...e.props,className:(0,s.cn)("flex items-center gap-2 rounded-lg p-1.5 hover:bg-fd-accent hover:text-fd-accent-foreground",e.props?.className),children:[(0,i.jsx)("div",{className:"shrink-0 size-9 md:mb-auto md:size-5 empty:hidden",children:e.icon}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-sm font-medium leading-none",children:e.title}),(0,i.jsx)("p",{className:"text-[0.8125rem] text-fd-muted-foreground mt-1 empty:hidden",children:e.description})]}),(0,i.jsx)(g.Check,{className:(0,s.cn)("shrink-0 ms-auto size-3.5 text-fd-
15primary",!t&&"invisible")})]},e.url)})})]})}var D=e.i(545067),$=e.i(185360),$=$;function U(e){let{slots:t,navItems:r,isNavTransparent:n,props:{tabMode:l,nav:d,tabs:c,sidebar:m}}=G(),{open:u}=t.sidebar?.useSidebar?.()??{},h=d?.mode??"auto",f=m.collapsible??!0,x="navbar"===l&&c.length>0;return d?.component?d.component:(0,i.jsxs)("header",{id:"nd-subnav","data-transparent":n&&!u,...e,className:(0,s.cn)("sticky [grid-area:header] flex flex-col top-(--fd-docs-row-1) z-10 backdrop-blur-sm transition-colors data-[transparent=false]:bg-fd-background/80 layout:[--fd-header-height:--spacing(14)]",x&&"lg:layout:[--fd-header-height:--spacing(24)]",e.className),children:[(0,i.jsxs)("div",{"data-header-body":"",className:(0,s.cn)("flex border-b px-4 gap-2 h-14","top"===h&&"md:px-6"),children:[(0,i.jsxs)("div",{className:(0,s.cn)("items-center","top"===h&&"flex flex-1","auto"===h&&"hidden has-data-[collapsed=true]:md:flex max-md:flex"),children:[f&&t.sidebar&&"auto"===h&&(0,i.jsx)(t.sidebar.collapseTrigger,{className:(0,s.cn)((0,o.buttonVariants)({color:"ghost",size:"icon-sm"}),"-ms-1.5 text-fd-muted-foreground data-[collapsed=false]:hidden max-md:hidden"),children:(0,i.jsx)($.default,{})}),t.navTitle&&(0,i.jsx)(t.navTitle,{className:(0,s.cn)("inline-flex items-center gap-2.5 font-semibold","auto"===h&&"md:hidden")}),d?.children]}),t.searchTrigger&&(0,i.jsx)(t.searchTrigger.full,{hideIfDisabled:!0,className:(0,s.cn)("w-full my-auto max-md:hidden","top"===h?"ps-2.5 rounded-xl max-w-sm":"max-w-[240px]")}),(0,i.jsxs)("div",{className:"flex flex-1 items-center justify-end md:gap-2",children:[(0,i.jsx)("div",{className:"flex items-center gap-6 empty:hidden max-lg:hidden",children:r.filter(e=>"icon"!==e.type).map((e,t)=>(0,i.jsx)(O,{item:e},t))}),r.filter(e=>"icon"===e.type).map((e,t)=>(0,i.jsx)(a.LinkItem,{item:e,className:(0,s.cn)((0,o.buttonVariants)({size:"icon-sm",color:"ghost"}),"text-fd-muted-foreground max-lg:hidden"),"aria-label":e.label,children:e.icon},t)),(0,i.jsxs)("div",{className:"flex items-center md:hidden",children:[t.searchTrigger&&(0,i.jsx)(t.searchTrigger.sm,{hideIfDisabled:!0,className:"p-2"}),t.sidebar&&(0,i.jsx)(t.sidebar.trigger,{className:(0,s.cn)((0,o.buttonVariants)({color:"ghost",size:"icon-sm",className:"p-2 -me-1.5"})),children:(0,i.jsx)($.default,{})})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2 max-md:hidden",children:[t.languageSelect&&(0,i.jsx)(t.languageSelect.root,{children:(0,i.jsx)(v.Languages,{className:"size-4.5 text-fd-muted-foreground"})}),t.themeSwitch&&(0,i.jsx)(t.themeSwitch,{}),f&&t.sidebar&&"top"===h&&(0,i.jsx)(t.sidebar.collapseTrigger,{className:(0,s.cn)((0,o.buttonVariants)({color:"secondary",size:"icon-sm"}),"text-fd-muted-foreground rounded-full -me-1.5"),children:(0,i.jsx)($.default,{})})]})]})]}),x&&(0,i.jsx)(_,{"data-header-tabs":"",className:"overflow-x-auto border-b px-6 h-10 max-lg:hidden",tabs:c})]})}function _({tabs:e,className:t,...a}){let n=(0,p.usePathname)(),d=(0,l.useMemo)(()=>e.findLastIndex(e=>(0,r.isLayoutTabActive)(e,n)),[e,n]);return(0,i.jsx)("div",{className:(0,s.cn)("flex flex-row items-end gap-6",t),...a,children:e.map((e,t)=>{let{title:a,url:r,unlisted:n,props:{className:l,...o}={}}=e,c=d===t;return(0,i.jsx)(x.default,{href:r,className:(0,s.cn)("inline-flex border-b-2 border-transparent transition-colors items-center pb-1.5 font-medium gap-2 text-fd-muted-foreground text-sm text-nowrap hover:text-fd-accent-foreground",n&&!c&&"hidden",c&&"border-fd-primary text-fd-primary",l),...o,children:a},t)})})}function O({item:e,className:t,...r}){return"custom"===e.type?e.children:"menu"===e.type?(0,i.jsx)(B,{item:e,className:t,...r}):(0,i.jsx)(a.LinkItem,{item:e,className:(0,s.cn)("text-sm text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground data-[active=true]:text-fd-primary",t),...r,children:e.text})}function B({item:e,hoverDelay:t=50,className:r,...n}){let[d,o]=(0,l.useState)(!1),c=(0,l.useRef)(null),u=(0,l.useRef)(null),h=e=>{c.current&&(clearTimeout(c.current),c.current=null),c.current=window.setTimeout(()=>{o(e),u.current=Date.now()+300},t)},f=e=>{"touch"!==e.pointerType&&h(!0)},x=e=>{"touch"!==e.pointerType&&h(!1)};return(0,i.jsxs)(m.Popover,{open:d,onOpenChange:e=>{(null===u.current||Date.now()>=u.current)&&o(e)},children:[(0,i.jsxs)(m.PopoverTrigger,{className:(0,s.cn)("inline-flex items-center gap-1.5 p-1 text-sm text-fd-muted-foreground transition-colors has-data-[active=true]:text-fd-primary data-[state=open]:text-fd-accent-foreground focus-visible:outline-none",r),onPointerEnter:f,onPointerLeave:x,...n,children:[e.url?(0,i.jsx)(a.LinkItem,{item:e,children:e.text}):e.text,(0,i.jsx)(D.ChevronDown,{className:"size-3"})]}),(0,i.jsx)(m.PopoverContent,{className:"flex flex-col p-1 text-fd-muted-foreground text-start",onPointerEnter:f,onPointerLeave:x,children:e.items.map((e,t)=>"custom"===e.type?(0,i.jsx)(l.Fragment,{children:e.children},t):(0,i.jsxs)(a.LinkItem,{item:e,className:"inline-flex items-center gap-2 rounded-md p-2 transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground data-[active=true]:text-fd-primary [&_svg]:size-4",onClick:()=>{("ontouchstart"in window||navigator.maxTouchPoints>0)&&o(!1)},children:[e.icon,e.text]},t))})]})}let{useBaseSlots:q}=(0,a.baseSlots)({useProps:()=>G().props}),K=(0,l.createContext)(null);function G(){let e=(0,l.use)(K);if(!e)throw Error("Please use <DocsPage /> (`fumadocs-ui/layouts/notebook/page`) under <DocsLayout /> (`fumadocs-ui/layouts/notebook`).");return e}function W(e){let{nav:{enabled:a=!0,transparentMode:s="none"}={},sidebar:{defaultOpenLevel:l,prefetch:o,...c}={},slots:m,tabMode:u="sidebar",tabs:h,tree:f,containerProps:x,children:p}=e,g=(0,n.useIsScrollTop)({enabled:"top"===s})??!0,{baseSlots:b,baseProps:v}=q(e),j=(0,r.useLinkItems)(e),w={...b,header:m?.header??U,container:m?.container??d,sidebar:m?.sidebar??{provider:A,root:E,trigger:k,collapseTrigger:Z,useSidebar:L}};return(0,i.jsx)(t.TreeContextProvider,{tree:f,children:(0,i.jsx)(K,{value:{props:{tabs:h,tabMode:u,sidebar:c,...v},isNavTransparent:"top"===s?g:"always"===s,slots:w,...j},children:(0,i.jsx)(w.sidebar.provider,{defaultOpenLevel:l,prefetch:o,children:(0,i.jsxs)(w.container,{...x,children:[a&&(0,i.jsx)(w.header,{}),(0,i.jsx)(w.sidebar.root,{...c}),p]})})})})}}]);
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.