boltdocs 2.5.5 → 2.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/bin/boltdocs.js +1 -1
  2. package/dist/cache-Cr8W2zgZ.cjs +6 -0
  3. package/dist/cache-DFdakSmR.mjs +6 -0
  4. package/dist/client/index.d.mts +1276 -861
  5. package/dist/client/index.d.ts +1276 -861
  6. package/dist/client/index.js +6 -1
  7. package/dist/client/index.mjs +6 -1
  8. package/dist/client/ssr.cjs +6 -0
  9. package/dist/client/ssr.d.cts +80 -0
  10. package/dist/client/ssr.d.mts +63 -61
  11. package/dist/client/ssr.mjs +6 -1
  12. package/dist/client/theme/neutral.css +388 -0
  13. package/dist/node/cli-entry.cjs +8 -0
  14. package/dist/node/cli-entry.d.cts +2 -0
  15. package/dist/node/cli-entry.d.mts +2 -1
  16. package/dist/node/cli-entry.mjs +7 -5
  17. package/dist/node/index.cjs +6 -0
  18. package/dist/node/index.d.cts +574 -0
  19. package/dist/node/index.d.mts +385 -378
  20. package/dist/node/index.mjs +6 -1
  21. package/dist/node-CWXme96p.mjs +73 -0
  22. package/dist/node-VYfhzGrh.cjs +73 -0
  23. package/dist/package-BY8Jd2j4.cjs +6 -0
  24. package/dist/package-OFZf0s2j.mjs +6 -0
  25. package/dist/search-dialog-BeNyI_KQ.mjs +6 -0
  26. package/dist/search-dialog-dYsCAk5S.js +6 -0
  27. package/dist/use-search-D25n0PrV.mjs +6 -0
  28. package/dist/use-search-WuzdH1cJ.js +6 -0
  29. package/package.json +16 -12
  30. package/src/client/app/index.tsx +15 -12
  31. package/src/client/components/default-layout.tsx +21 -19
  32. package/src/client/hooks/use-i18n.ts +1 -1
  33. package/src/client/hooks/use-routes.ts +1 -1
  34. package/src/client/hooks/use-version.ts +1 -1
  35. package/src/client/store/boltdocs-context.tsx +119 -0
  36. package/CHANGELOG.md +0 -98
  37. package/dist/cache-3FOEPC2P.mjs +0 -1
  38. package/dist/chunk-5B5NKOW6.mjs +0 -77
  39. package/dist/chunk-J2PTDWZM.mjs +0 -1
  40. package/dist/chunk-TP5KMRD3.mjs +0 -1
  41. package/dist/chunk-Y4RE5KI7.mjs +0 -1
  42. package/dist/client/ssr.d.ts +0 -78
  43. package/dist/client/ssr.js +0 -1
  44. package/dist/node/cli-entry.d.ts +0 -1
  45. package/dist/node/cli-entry.js +0 -82
  46. package/dist/node/index.d.ts +0 -567
  47. package/dist/node/index.js +0 -77
  48. package/dist/package-QFIAETHR.mjs +0 -1
  49. package/dist/search-dialog-O6VLVSOA.mjs +0 -1
  50. package/src/client/store/use-boltdocs-store.ts +0 -44
  51. package/src/node/cache.ts +0 -408
  52. package/src/node/cli/build.ts +0 -53
  53. package/src/node/cli/dev.ts +0 -22
  54. package/src/node/cli/doctor.ts +0 -243
  55. package/src/node/cli/index.ts +0 -9
  56. package/src/node/cli/ui.ts +0 -54
  57. package/src/node/cli-entry.ts +0 -24
  58. package/src/node/config.ts +0 -382
  59. package/src/node/errors.ts +0 -44
  60. package/src/node/index.ts +0 -84
  61. package/src/node/mdx/cache.ts +0 -12
  62. package/src/node/mdx/highlighter.ts +0 -47
  63. package/src/node/mdx/index.ts +0 -122
  64. package/src/node/mdx/rehype-shiki.ts +0 -62
  65. package/src/node/mdx/remark-code-meta.ts +0 -35
  66. package/src/node/mdx/remark-shiki.ts +0 -61
  67. package/src/node/plugin/entry.ts +0 -87
  68. package/src/node/plugin/html.ts +0 -99
  69. package/src/node/plugin/index.ts +0 -478
  70. package/src/node/plugin/types.ts +0 -9
  71. package/src/node/plugins/index.ts +0 -17
  72. package/src/node/plugins/plugin-errors.ts +0 -62
  73. package/src/node/plugins/plugin-lifecycle.ts +0 -117
  74. package/src/node/plugins/plugin-sandbox.ts +0 -59
  75. package/src/node/plugins/plugin-store.ts +0 -54
  76. package/src/node/plugins/plugin-types.ts +0 -107
  77. package/src/node/plugins/plugin-validator.ts +0 -105
  78. package/src/node/routes/cache.ts +0 -28
  79. package/src/node/routes/index.ts +0 -293
  80. package/src/node/routes/parser.ts +0 -262
  81. package/src/node/routes/sorter.ts +0 -42
  82. package/src/node/routes/types.ts +0 -61
  83. package/src/node/schema/config.ts +0 -195
  84. package/src/node/schema/frontmatter.ts +0 -17
  85. package/src/node/search/index.ts +0 -55
  86. package/src/node/security/constants/index.ts +0 -10
  87. package/src/node/security/csp.ts +0 -31
  88. package/src/node/security/headers.ts +0 -27
  89. package/src/node/ssg/index.ts +0 -205
  90. package/src/node/ssg/meta.ts +0 -33
  91. package/src/node/ssg/options.ts +0 -15
  92. package/src/node/ssg/robots.ts +0 -53
  93. package/src/node/ssg/sitemap.ts +0 -55
  94. package/src/node/utils.ts +0 -349
  95. package/tsconfig.json +0 -26
  96. package/tsup.config.ts +0 -56
@@ -1 +0,0 @@
1
- var je=Object.defineProperty;var tr=(e,t)=>{for(var o in t)je(e,o,{get:t[o],enumerable:!0})};import{createContext as Je,use as Ke}from"react";var $e=Je(null);function Y(){let e=Ke($e);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}import{useLocation as tt}from"react-router-dom";import{createContext as Xe,use as _e,useCallback as Ye,useRef as Ze}from"react";import{jsx as qe}from"react/jsx-runtime";var be=Xe({preload:()=>{},routes:[]});function Z(){return _e(be)}function ar({routes:e,modules:t,children:o}){let r=Ze(null),s=Ye(a=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{let u=a.split("#")[0].split("?")[0],i=e.find(l=>l.path===u||u==="/"&&l.path==="");if(i?.filePath){let l=Object.keys(t).find(g=>g.endsWith("/"+i.filePath));l&&t[l]().catch(g=>{console.error(`[boltdocs] Failed to preload route ${a}:`,g)})}},100)},[e,t]);return qe(be.Provider,{value:{preload:s,routes:e},children:o})}import{create as Qe}from"zustand";import{persist as Ue,createJSONStorage as et}from"zustand/middleware";var q=Qe()(Ue(e=>({currentLocale:void 0,currentVersion:void 0,hasHydrated:!1,setLocale:t=>e({currentLocale:t}),setVersion:t=>e({currentVersion:t}),setHasHydrated:t=>e({hasHydrated:t})}),{name:"boltdocs-storage",storage:et(()=>localStorage),partialize:e=>({currentLocale:e.currentLocale,currentVersion:e.currentVersion}),onRehydrateStorage:()=>e=>{e?.setHasHydrated(!0)}}));function Q(){let{routes:e}=Z(),t=Y(),o=tt(),r=q(m=>m.currentLocale),s=q(m=>m.currentVersion),a=q(m=>m.hasHydrated),u=e.find(m=>m.path===o.pathname),i=t.i18n?u?.locale||(a?r:void 0)||t.i18n.defaultLocale:void 0,l=t.versions?u?.version||(a?s:void 0)||t.versions.defaultVersion:void 0,g=e.filter(m=>{let F=t.i18n?(m.locale||t.i18n.defaultLocale)===i:!0,ne=t.versions?(m.version||t.versions.defaultVersion)===l:!0;if(!(F&&ne))return!1;let se=t.i18n;if(se){let Fe=!!u?.locale,Ge=!!m.locale;if(e.some(_=>_!==m&&_.filePath===m.filePath&&_.version===m.version&&(_.locale||se.defaultLocale)===(m.locale||se.defaultLocale))&&Fe!==Ge)return!1}return!0}),c=t.i18n?.localeConfigs?.[i]?.label||t.i18n?.locales[i]||i,v=t.versions?.versions.find(m=>m.path===l)?.label||l,C=t.i18n?Object.entries(t.i18n.locales).map(([m,F])=>{let ne=t.i18n?.localeConfigs?.[m];return{key:m,label:ne?.label||F,isCurrent:m===i}}):[],W=t.versions?t.versions.versions.map(m=>({key:m.path,label:m.label,isCurrent:m.path===l})):[];return{routes:g,allRoutes:e,currentRoute:u,currentLocale:i,currentLocaleLabel:c,availableLocales:C,currentVersion:l,currentVersionLabel:v,availableVersions:W,config:t}}function ae(e){let t=Y(),{currentLocale:o,currentVersion:r}=Q();if(!t||typeof e!="string"||e.startsWith("http")||e.startsWith("//"))return e;let s=t.i18n,a=t.versions;if(!s&&!a)return e;let u=e.startsWith("/docs"),i=e.split("/").filter(Boolean),l=0;i[l]==="docs"&&l++,a&&i.length>l&&a.versions.find(v=>v.path===i[l])&&l++,s&&i.length>l&&s.locales[i[l]]&&l++;let g=i.slice(l),f=[];u&&(f.push("docs"),a&&r&&f.push(r)),s&&o&&o!==s.defaultLocale&&f.push(o),f.push(...g);let c=`/${f.join("/")}`;return c.length>1&&c.endsWith("/")?c.slice(0,-1):c||"/"}import{clsx as ot}from"clsx";import{twMerge as rt}from"tailwind-merge";function n(...e){return rt(ot(e))}import Ce from"react";import{Link as nt}from"react-aria-components";import{useLocation as st}from"react-router-dom";import{jsx as ye}from"react/jsx-runtime";var N=Ce.forwardRef((e,t)=>{let{href:o,prefetch:r="hover",onMouseEnter:s,onFocus:a,...u}=e,i=ae(o??""),{preload:l}=Z();return ye(nt,{...u,ref:t,href:i,onMouseEnter:c=>{s?.(c),r==="hover"&&typeof i=="string"&&i.startsWith("/")&&l(i)},onFocus:c=>{a?.(c),r==="hover"&&typeof i=="string"&&i.startsWith("/")&&l(i)}})});N.displayName="Link";var at=Ce.forwardRef((e,t)=>{let{href:o,end:r=!1,className:s,children:a,...u}=e,i=st(),l=ae(o??""),g=r?i.pathname===l:i.pathname.startsWith(l),f=typeof s=="function"?s({isActive:g}):n(s,g&&"active"),c=typeof a=="function"?a({isActive:g}):a;return ye(N,{...u,ref:t,href:o,className:f,children:c})});at.displayName="NavLink";import*as U from"react-aria-components";import{cva as it}from"class-variance-authority";import{Fragment as ct,jsx as O,jsxs as pt}from"react/jsx-runtime";var Re=it("flex flex-row items-center justify-center w-auto font-semibold tracking-tight no-underline whitespace-nowrap select-none outline-none transition-all duration-200 cursor-pointer pressed:scale-[0.97] hover:-translate-y-px leading-none",{variants:{variant:{primary:"bg-primary-500 text-white shadow-md hover:brightness-110 hover:shadow-lg",secondary:"bg-bg-surface text-text-main border border-border-subtle hover:bg-bg-muted hover:border-border-strong",outline:"bg-transparent text-text-main border border-border-strong hover:bg-bg-surface hover:border-primary-500",ghost:"bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-main",danger:"bg-[var(--color-danger-500)]/10 text-[var(--color-danger-500)] border border-[var(--color-danger-500)]/20 hover:bg-[var(--color-danger-500)]/15",success:"bg-[var(--color-success-500)]/10 text-[var(--color-success-500)] border border-[var(--color-success-500)]/20 hover:bg-[var(--color-success-500)]/15",warning:"bg-[var(--color-warning-500)]/10 text-[var(--color-warning-500)] border border-[var(--color-warning-500)]/20 hover:bg-[var(--color-warning-500)]/15",info:"bg-[var(--color-info-500)]/10 text-[var(--color-info-500)] border border-[var(--color-info-500)]/20 hover:bg-[var(--color-info-500)]/15",subtle:"bg-primary-500/10 text-primary-500 hover:bg-primary-500/20",link:"bg-transparent text-primary-500 !p-0 !min-h-0 hover:underline"},size:{sm:"min-h-8 px-3.5 text-[0.8125rem] gap-1.5",md:"min-h-10 px-5 text-[0.9375rem] gap-2",lg:"min-h-12 px-7 text-[1.05rem] gap-2.5"},rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},iconSize:{sm:"w-8 h-8 p-0",md:"w-10 h-10 p-0",lg:"w-12 h-12 p-0"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:null}},defaultVariants:{variant:"primary",size:"md",rounded:"md"}}),lt=({href:e,icon:t,iconPosition:o="left",isIconOnly:r,children:s,className:a,variant:u,size:i,rounded:l,iconSize:g,disabled:f,...c})=>{let L=r||!s&&!!t,v=L?O("span",{className:"inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]",children:t}):pt(ct,{children:[t&&o==="left"&&O("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t}),O("span",{className:"flex items-center",children:s}),t&&o==="right"&&O("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t})]});return e?O(U.Link,{href:e,className:n(Re({variant:u,size:i,rounded:l,iconSize:L?g:void 0,disabled:f}),a),...c,children:v}):O(U.Button,{className:n(Re({variant:u,size:i,rounded:l,iconSize:L?g:void 0,disabled:f}),a),...c,children:v})};import*as z from"react-aria-components";import{Fragment as mt,jsx as G,jsxs as le}from"react/jsx-runtime";var Pe=({className:e,children:t,...o})=>G(z.Tooltip,{...o,offset:8,className:r=>n("group z-50 overflow-visible rounded-md bg-bg-surface/90 px-2.5 py-1.5 text-xs font-medium text-text-main shadow-lg backdrop-blur-md ring-1 ring-border-subtle outline-hidden select-none","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95 data-entering:duration-100","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95 data-exiting:duration-75","data-[placement=top]:slide-in-from-bottom-1","data-[placement=bottom]:slide-in-from-top-1","data-[placement=left]:slide-in-from-right-1","data-[placement=right]:slide-in-from-left-1",typeof e=="function"?e(r):e),children:r=>le(mt,{children:[G(z.OverlayArrow,{children:le("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90",children:[G("title",{children:"Arrow"}),G("path",{d:"M0 0 L4 4 L8 0"})]})}),typeof t=="function"?t(r):t]})}),ie=({content:e,children:t,delay:o=500,closeDelay:r=0,...s})=>le(z.TooltipTrigger,{delay:o,closeDelay:r,children:[t,G(Pe,{...s,children:e})]});ie.Root=ie;ie.Content=Pe;import{useState as So,useEffect as Io}from"react";import*as T from"react-aria-components";import{ChevronDown as dt}from"lucide-react";import{Fragment as xt,jsx as B,jsxs as ce}from"react/jsx-runtime";var j=({children:e,className:t,...o})=>B("nav",{className:n("relative flex items-center",t),...o,children:e}),ut=({children:e,className:t})=>B("div",{className:n("flex list-none items-center gap-1",t),children:e}),ft=({children:e,label:t,className:o})=>ce(T.MenuTrigger,{children:[ce(T.Button,{className:n("flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium outline-none transition-colors cursor-pointer","text-text-muted hover:bg-bg-surface hover:text-text-main","focus-visible:ring-2 focus-visible:ring-primary-500/30",o),children:[t,B(dt,{size:14,className:"transition-transform"})]}),B(T.Popover,{placement:"bottom start",className:"entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95 fill-mode-forwards",children:B(T.Menu,{className:"w-56 outline-none rounded-xl border border-border-subtle bg-bg-surface p-2 shadow-xl ring-1 ring-border-strong/5",children:e})})]}),gt=({label:e,href:t,description:o,className:r,children:s,...a})=>B(T.MenuItem,{href:t,className:n("block rounded-lg px-3 py-2 text-sm outline-none cursor-pointer transition-colors","hover:bg-bg-muted focus:bg-bg-muted",r),...a,children:s||ce(xt,{children:[B("div",{className:"font-semibold text-text-main",children:e}),o&&B("div",{className:"text-xs text-text-muted line-clamp-1 mt-0.5",children:o})]})});j.Root=j;j.List=ut;j.Item=ft;j.Link=gt;import*as b from"react-aria-components";import{Search as vt,Hash as bt,FileText as Ct,CornerDownLeft as yt}from"lucide-react";import{Fragment as Bt,jsx as x,jsxs as pe}from"react/jsx-runtime";var V=({children:e,isOpen:t,onOpenChange:o,className:r})=>x(b.ModalOverlay,{isOpen:t,onOpenChange:o,isDismissable:!0,className:n("fixed inset-0 z-100 bg-black/40 backdrop-blur-sm px-4 py-4 sm:py-20","entering:animate-in entering:fade-in exiting:animate-out exiting:fade-out"),children:x(b.Modal,{className:n("mx-auto w-full max-w-2xl overflow-hidden rounded-xl border border-border-subtle bg-bg-surface shadow-2xl ring-1 ring-black/5 outline-none","entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95",r),children:x(b.Dialog,{className:"flex flex-col max-h-[70vh] focus:outline-none",children:e})})}),Rt=({children:e,className:t,onSelectionChange:o,...r})=>x("div",{className:t,children:x(b.Autocomplete,{...r,onSelectionChange:o,className:"flex flex-col min-h-0",children:e})}),Pt=({className:e,...t})=>pe(b.SearchField,{className:"flex items-center gap-3 border-b border-border-subtle px-4 py-4",autoFocus:!0,children:[x(vt,{className:"h-5 w-5 text-text-muted"}),x(b.Input,{...t,className:n("w-full bg-transparent text-lg text-text-main placeholder-text-muted outline-none",e),placeholder:"Search documentation..."}),x("div",{className:"flex items-center gap-1.5 rounded-md border border-border-subtle bg-bg-main px-1.5 py-1 text-[10px] font-medium text-text-muted",children:x("kbd",{className:"font-sans",children:"ESC"})})]}),wt=({children:e,className:t,...o})=>x(b.ListBox,{...o,className:n("flex-1 overflow-y-auto p-2 outline-none",t),children:e}),Nt=({children:e,className:t,...o})=>x(b.ListBoxItem,{...o,className:n("group flex items-center gap-3 rounded-lg p-3 text-left outline-none cursor-pointer transition-colors","text-text-muted hover:bg-bg-main hover:text-text-main focus:bg-primary-500 focus:text-white selected:bg-primary-500 selected:text-white",t),children:r=>pe(Bt,{children:[e,(r.isFocused||r.isSelected)&&pe("div",{className:"ml-auto opacity-50 flex items-center gap-1",children:[x("span",{className:"text-[10px]",children:"Select"}),x(yt,{size:10})]})]})}),Tt=({isHeading:e,className:t})=>x("div",{className:n("shrink-0",t),children:e?x(bt,{size:18}):x(Ct,{size:18})}),At=({children:e,className:t})=>x("span",{className:n("block font-medium truncate flex-1 text-sm",t),children:e}),kt=({children:e,className:t})=>x("span",{className:n("ml-2 text-xs opacity-70 truncate hidden sm:inline group-focus:opacity-100",t),children:e});V.Root=V;V.Autocomplete=Rt;V.Input=Pt;V.List=wt;V.Item=Object.assign(Nt,{Icon:Tt,Title:At,Bio:kt});import{createContext as Ne,use as de,useEffect as ue,useImperativeHandle as Mt,useMemo as fe,useRef as Te,useState as Ae}from"react";import Ot from"scroll-into-view-if-needed";import{useEffect as St,useRef as It}from"react";function we(e,t){let o=It(e);St(()=>{o.current!==e&&(t(e),o.current=e)},[e,t])}function me(e){return e.startsWith("#")?e.slice(1):null}var ee=class{items=[];single=!1;observer=null;onChange;callback(t){if(t.length===0)return;for(let r of t){let s=this.items.find(a=>a.id===r.target.id);if(s){s.active=r.isIntersecting;let a=100;s.fallback=!r.isIntersecting&&r.boundingClientRect.top<a}}let o=-1;for(let r=this.items.length-1;r>=0;r--)if(this.items[r].fallback){o=r;break}o===-1&&this.items.length>0&&(o=0),this.items=this.items.map((r,s)=>({...r,active:s===o,t:s===o?Date.now():r.t})),this.onChange?.()}setItems(t){let o=this.observer;if(o)for(let r of this.items){let s=document.getElementById(r.id);s&&o.unobserve(s)}this.items=[];for(let r of t){let s=me(r.url);s&&this.items.push({id:s,active:!1,fallback:!1,t:0,original:r})}this.watchItems(),typeof window<"u"&&(setTimeout(()=>this.watchItems(),100),setTimeout(()=>this.watchItems(),500),setTimeout(()=>this.watchItems(),1e3)),this.onChange?.()}watch(t){this.observer||(this.observer=new IntersectionObserver(this.callback.bind(this),t),this.watchItems())}watchItems(){if(this.observer)for(let t of this.items){let o=document.getElementById(t.id);o&&this.observer.observe(o)}}unwatch(){this.observer?.disconnect(),this.observer=null}};import{jsx as k}from"react/jsx-runtime";var ge=Ne(null),ke=Ne(null);function Le(){let e=de(ge);if(!e)throw new Error("Component must be used under the <AnchorProvider /> component.");return e}function Ur(){let e=Le();return fe(()=>{let t;for(let o of e)o.active&&(!t||o.t>t.t)&&(t=o);return t?.id},[e])}function en(){let e=Le();return fe(()=>{let t=[];for(let o of e)o.active&&t.push(o.id);return t},[e])}function tn({containerRef:e,children:t}){return k(ke.Provider,{value:e,children:t})}function on({toc:e,single:t=!1,children:o}){let r=fe(()=>new ee,[]),[s,a]=Ae(r.items);return r.single=t,ue(()=>{r.setItems(e)},[r,e]),ue(()=>(r.watch({rootMargin:"-100px 0% 0% 0%",threshold:0}),r.onChange=()=>a([...r.items]),()=>{r.unwatch()}),[r]),k(ge.Provider,{value:s,children:o})}var S=({children:e,className:t})=>k("nav",{className:n("sticky top-navbar hidden xl:flex flex-col shrink-0","w-toc","py-8 pl-6 pr-4",t),children:e}),zt=({children:e,className:t,...o})=>k("div",{className:n("mb-4 text-xs font-bold uppercase tracking-wider text-text-main",t),...o,children:e}),Be=({children:e,className:t,ref:o,...r})=>{let s=Te(null);return Mt(o,()=>s.current),k("div",{ref:s,className:n("relative overflow-y-auto boltdocs-otp-content",t),...r,children:e})};Be.displayName="OnThisPageContent";var Vt=({children:e,className:t})=>k("ul",{className:n("relative space-y-1 text-sm border-l border-border-subtle",t),children:e}),Et=({level:e,children:t,className:o})=>k("li",{className:n(e===3&&"pl-3",o),children:t}),Dt=({children:e,href:t,active:o,onClick:r,className:s})=>{let a=de(ge),u=de(ke),i=t?me(t):null,l=Te(null),[g,f]=Ae(o);return we(i&&a?a.find(c=>c.id===i)?.active:null,c=>{c!==null&&c!==g&&(f(!!c),c&&l.current&&u?.current&&Ot(l.current,{behavior:"smooth",block:"center",inline:"center",scrollMode:"if-needed",boundary:u.current}))}),ue(()=>{o!==void 0&&f(o)},[o]),k("a",{ref:l,href:t,onClick:r,"data-active":g,className:n("block py-1 pl-4 text-[13px] outline-none transition-colors hover:text-text-main",g?"text-primary-500 font-medium":"text-text-muted",s),children:e})},Ht=({style:e,className:t})=>k("div",{className:n("absolute -left-px w-0.5 rounded-full bg-primary-500 transition-all duration-300",t),style:e});S.Root=S;S.Header=zt;S.Content=Be;S.List=Vt;S.Item=Et;S.Link=Dt;S.Indicator=Ht;import*as Se from"react-aria-components";import{ChevronLeft as Ft,ChevronRight as Gt}from"lucide-react";import{Fragment as Yt,jsx as M,jsxs as _t}from"react/jsx-runtime";var E=({children:e,className:t})=>M("nav",{className:n("grid grid-cols-1 sm:grid-cols-2 gap-4 mt-12 pt-8 border-t border-border-subtle",t),children:e}),jt=({children:e,to:t,direction:o,className:r})=>{let s=o==="next";return _t(Se.Link,{href:t,className:n("flex group items-center p-4 rounded-xl border border-border-subtle bg-bg-surface outline-none","transition-all hover:bg-bg-main hover:border-primary-500 hover:shadow-lg","focus-visible:ring-2 focus-visible:ring-primary-500/30",s?"text-right justify-end":"text-left justify-start",r),children:[!s&&M(Ft,{className:"mr-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:-translate-x-1"}),M("div",{className:"flex flex-col gap-1 flex-1",children:e}),s&&M(Gt,{className:"ml-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:translate-x-1"})]})},Jt=({children:e,className:t})=>M("span",{className:n("text-xs font-medium uppercase tracking-wider text-text-muted",t),children:e}),Kt=({children:e,className:t})=>M("span",{className:n("text-base font-bold text-text-main truncate",t),children:e}),$t=({children:e})=>M(Yt,{children:e});E.Root=E;E.Link=jt;E.Title=Jt;E.Description=Kt;E.Icon=$t;import{jsx as J}from"react/jsx-runtime";var D=({children:e,className:t="",...o})=>J("div",{className:n("w-full",t),...o,children:e}),Zt=({children:e,className:t=""})=>J("div",{role:"tablist",className:n("relative flex flex-row items-center border-b border-border-subtle",t),children:e}),qt=({children:e,id:t,selected:o,className:r="",...s})=>J("button",{role:"tab","aria-selected":o,className:n("flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors outline-none cursor-pointer bg-transparent border-none",o?"text-primary-500":"text-text-muted hover:text-text-main",r),...s,children:e}),Qt=({children:e,className:t=""})=>J("div",{className:n("p-4 outline-none",t),children:e}),Ut=({className:e="",style:t})=>J("div",{className:n("absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300",e),style:t});D.Root=D;D.List=Zt;D.Item=qt;D.Content=Qt;D.Indicator=Ut;import*as Ie from"react-aria-components";import{ChevronRight as to}from"lucide-react";import{jsx as A,jsxs as te}from"react/jsx-runtime";var oo=({badge:e})=>{let t={new:"bg-primary-500/20 text-primary-500",updated:"bg-gray-500/20 text-gray-500",deprecated:"bg-red-500/20 text-red-500"};if(typeof e=="object"&&e?.expires){let r=new Date(e.expires),s=new Date,a=r.getTime()-s.getTime();if(Math.ceil(a/(1e3*60*60*24))===0)return null}let o=typeof e=="string"?e:e?.text;return A("span",{className:n("ml-auto flex h-4.5 items-center rounded-full text-[9px] font-medium px-1.5 py-0.5 text-center whitespace-nowrap",t[o]||t.new),children:o})},K=({children:e,className:t})=>A("aside",{className:n("boltdocs-sidebar sticky top-navbar hidden lg:flex flex-col shrink-0","w-sidebar h-full","overflow-y-auto border-r border-border-subtle bg-bg-main","py-6 px-4",t),children:A("nav",{className:"flex-1 space-y-6",children:e})}),ro=({children:e,title:t,icon:o,isOpen:r=!0,onToggle:s,className:a})=>te("div",{className:n("space-y-1",a),children:[t&&te(Ie.Button,{onPress:s,className:n("flex w-full items-center justify-between px-2 py-1.5 text-xs font-bold uppercase tracking-wider outline-none cursor-pointer","text-text-muted hover:text-text-main transition-colors","focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md"),children:[te("div",{className:"flex items-center gap-2",children:[o&&A(o,{size:14}),t]}),A(to,{size:14,className:n("transition-transform duration-200",r&&"rotate-90")})]}),r&&A("div",{className:"space-y-0.5",children:e})]}),no=({children:e,className:t})=>A("div",{className:n(t),children:e}),so=({label:e,href:t,active:o,icon:r,badge:s,className:a})=>te(N,{href:t,className:n("group flex items-center gap-2.5 rounded-lg px-2.5 py-2 text-sm outline-none","transition-all duration-200 ease-in-out","focus-visible:ring-2 focus-visible:ring-primary-500/30",o?"bg-primary-500/10 text-primary-500 font-medium":"text-text-muted hover:bg-bg-surface hover:text-text-main hover:translate-x-1",a),children:[r&&A(r,{size:16,className:n(o?"text-primary-500":"text-text-muted group-hover:text-text-main")}),A("span",{className:"truncate",children:e}),s&&A(oo,{badge:s})]});K.Root=K;K.Group=ro;K.GroupItem=no;K.Link=so;import{Breadcrumb as io,Breadcrumbs as lo,Link as co}from"react-aria-components";import{ChevronRight as po}from"lucide-react";import{jsx as oe}from"react/jsx-runtime";var $=({children:e,className:t,...o})=>oe(lo,{className:n("flex items-center gap-1.5 pl-0! mb-0 text-sm text-text-muted",t),...o,children:e}),mo=({children:e,className:t,...o})=>oe(io,{className:n("flex items-center mb-0 gap-1.5",t),...o,children:e}),uo=({children:e,href:t,className:o,...r})=>oe(co,{href:t,className:n("transition-colors outline-none hover:text-text-main focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm","current:font-medium current:text-text-main current:pointer-events-none cursor-pointer",o),...r,children:e}),fo=({className:e})=>oe(po,{size:14,className:n("shrink-0 text-text-dim",e)});$.Root=$;$.Item=mo;$.Link=uo;$.Separator=fo;import{jsx as xo}from"react/jsx-runtime";var ho=({children:e,className:t,vertical:o=!1})=>xo("div",{className:n("inline-flex",o?"flex-col":"flex-row",!o&&["[&>*:not(:first-child)]:-ml-px","[&>*:first-child]:rounded-r-none","[&>*:last-child]:rounded-l-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-l-full","[&>*:last-child]:rounded-r-full"],t?.includes("rounded-xl")&&["[&>*:first-child]:rounded-l-xl","[&>*:last-child]:rounded-r-xl"],t?.includes("rounded-lg")&&["[&>*:first-child]:rounded-l-lg","[&>*:last-child]:rounded-r-lg"]],o&&["[&>*:not(:first-child)]:-mt-px","[&>*:first-child]:rounded-b-none","[&>*:last-child]:rounded-t-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-t-full","[&>*:last-child]:rounded-b-full"]],t),children:e});import{Check as bo,ChevronRight as Co,Dot as yo}from"lucide-react";import Me from"react";import*as h from"react-aria-components";import*as H from"react-aria-components";import{jsx as he,jsxs as vo}from"react/jsx-runtime";var xe=({children:e,className:t,showArrow:o,...r})=>vo(H.Popover,{offset:8,...r,className:H.composeRenderProps(t,s=>n("z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none transition-none",s)),children:[o&&he(H.OverlayArrow,{className:"group",children:he("svg",{viewBox:"0 0 12 12",className:"block h-3 w-3 fill-bg-surface/80 stroke-border-subtle group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90","aria-hidden":"true",children:he("path",{d:"M0 0 L6 6 L12 0"})})}),e]});import{Fragment as Ao,jsx as w,jsxs as X}from"react/jsx-runtime";function Ro(e){let[t,o]=Me.Children.toArray(e.children).slice(0,2);return X(h.MenuTrigger,{...e,children:[t,w(xe,{placement:e.placement,className:"min-w-35",children:o})]})}function Po(e){let[t,o]=Me.Children.toArray(e.children).slice(0,2);return X(h.SubmenuTrigger,{...e,children:[t,w(xe,{offset:-4,crossOffset:-4,children:o})]})}function I(e){return w(h.Menu,{...e,className:h.composeRenderProps(e.className,t=>n("p-1.5 outline-none max-h-[inherit] overflow-auto max-w-75",t))})}function wo(e){let t=e.textValue||(typeof e.children=="string"?e.children:void 0);return w(h.MenuItem,{...e,textValue:t,className:h.composeRenderProps(e.className,(o,{isFocused:r,isPressed:s,isDisabled:a})=>n("group relative flex flex-row items-center gap-2 px-2 py-1 rounded-lg outline-none cursor-default hover:cursor-pointer transition-none","text-text-main text-[12px]",{"bg-bg-surface-elevated text-primary-600 ring-1 ring-border-strong/5":r,"bg-bg-surface-elevanted":s,"opacity-40 grayscale pointer-events-none":a},o)),children:h.composeRenderProps(e.children,(o,{selectionMode:r,isSelected:s,hasSubmenu:a})=>X(Ao,{children:[r!=="none"&&X("span",{className:"flex items-center size-4 shrink-0 justify-center",children:[s&&r==="multiple"&&w(bo,{className:"size-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200"}),s&&r==="single"&&w(yo,{className:"size-5 text-primary-500 animate-in zoom-in-50 duration-200"})]}),w("div",{className:"flex flex-row w-full transition-colors items-center gap-2 py-1 px-1",children:o}),a&&w(Co,{className:"size-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors"})]}))})}function No({title:e,...t}){return X(h.MenuSection,{...t,className:n("flex flex-col gap-0.5",t.className),children:[e&&w(h.Header,{className:"px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none",children:e}),w(h.Collection,{items:t.items,children:t.children})]})}function To(e){return w(h.Separator,{...e,className:"mx-2 my-1.5 border-t border-border-subtle/50"})}I.Root=I;I.Item=wo;I.Trigger=Ro;I.SubTrigger=Po;I.Section=No;I.Separator=To;import{jsx as ko}from"react/jsx-runtime";function Sn({className:e,variant:t="rect",...o}){return ko("div",{className:n("animate-pulse bg-bg-muted",t==="circle"?"rounded-full":"rounded-md",e),...o})}import{Separator as Oe}from"react-aria-components";import{ToggleButton as ze}from"react-aria-components";import{Button as Mo}from"react-aria-components";import{Search as Oo,Sun as zo,Moon as Vo,ExternalLink as Eo}from"lucide-react";import{jsx as p,jsxs as P}from"react/jsx-runtime";function R(e){let{size:t=20,...o}=e;return{...o,width:t,height:t}}var Ve=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...R(e),children:[p("title",{children:"GitHub"}),p("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]}),Ee=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...R(e),children:[p("title",{children:"Discord"}),p("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z"})]}),De=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...R(e),children:[p("title",{children:"X"}),p("path",{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"})]});var He=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...R(e),children:[p("title",{children:"Bluesky"}),p("path",{d:"M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026"})]}),Gn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"TypeScript"}),p("path",{fill:"#2563EB",d:"M3.234 9.093V7.318h8.363v1.775H8.479V17.5H6.352V9.093H3.234zm15.263 1.153c-.04-.4-.21-.712-.512-.934-.301-.222-.71-.333-1.228-.333-.351 0-.648.05-.89.149-.242.096-.427.23-.557.403a.969.969 0 0 0-.189.586.838.838 0 0 0 .115.477c.086.136.204.254.353.353.149.097.321.181.517.254.195.07.404.13.626.179l.915.219c.444.1.852.232 1.223.397.371.166.693.37.965.612.271.242.482.527.631.855.152.328.23.704.234 1.129-.004.623-.163 1.163-.478 1.62-.311.454-.762.807-1.352 1.06-.587.248-1.294.372-2.123.372-.822 0-1.538-.126-2.147-.378-.607-.252-1.081-.624-1.422-1.118-.338-.497-.516-1.112-.532-1.845h2.083c.023.342.12.627.293.855.176.226.41.397.701.513a2.8 2.8 0 0 0 1 .168c.364 0 .68-.053.949-.159a1.45 1.45 0 0 0 .631-.442c.15-.189.224-.406.224-.651a.846.846 0 0 0-.204-.577c-.132-.156-.328-.288-.586-.398a5.964 5.964 0 0 0-.94-.298l-1.109-.278c-.858-.21-1.536-.536-2.033-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.491-1.615.335-.461.794-.82 1.377-1.08.584-.258 1.247-.387 1.99-.387.755 0 1.414.13 1.978.388.567.258 1.007.618 1.322 1.079.315.46.477.994.488 1.6h-2.064z"})]}),jn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"JavaScript"}),p("path",{fill:"#F59E0B",d:"M8.383 7.318h2.127v7.1c0 .656-.147 1.226-.442 1.71a2.924 2.924 0 01-1.218 1.118c-.52.262-1.125.393-1.815.393-.613 0-1.17-.107-1.67-.323a2.67 2.67 0 01-1.183-.994c-.292-.448-.436-1.01-.433-1.686h2.143c.006.269.061.5.164.691.106.19.25.335.432.438.186.1.405.15.657.15.265 0 .488-.057.67-.17.186-.116.327-.285.423-.507.096-.222.145-.496.145-.82v-7.1zm9.43 2.928c-.04-.4-.21-.712-.511-.934-.302-.222-.711-.333-1.228-.333-.352 0-.648.05-.89.149-.242.096-.428.23-.557.403a.969.969 0 00-.19.586.838.838 0 00.115.477c.087.136.204.254.353.353.15.097.322.181.517.254.196.07.405.13.627.179l.915.219c.444.1.851.232 1.223.397.37.166.692.37.964.612s.482.527.631.855a2.7 2.7 0 01.234 1.129c-.003.623-.162 1.163-.477 1.62-.312.454-.763.807-1.353 1.06-.586.248-1.294.372-2.122.372-.822 0-1.538-.126-2.148-.378-.607-.252-1.08-.624-1.422-1.118-.338-.497-.515-1.112-.532-1.845h2.083c.023.342.121.627.293.855.176.226.41.397.702.513.295.112.628.168.999.168.364 0 .68-.053.95-.159.271-.106.482-.253.63-.442.15-.189.224-.406.224-.651a.846.846 0 00-.203-.577c-.133-.156-.329-.288-.587-.398a5.964 5.964 0 00-.94-.298l-1.108-.278c-.859-.21-1.537-.536-2.034-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.492-1.615.334-.461.793-.82 1.377-1.08.583-.258 1.246-.387 1.989-.387.755 0 1.415.13 1.978.388.567.258 1.008.618 1.323 1.079.314.46.477.994.487 1.6h-2.063z"})]}),Jn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"JSON"}),p("path",{fill:"#F59E0B",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),Kn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"CSS"}),p("path",{fill:"#0EA5E9",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),$n=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"HTML"}),p("path",{fill:"#EA580C",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]});var Xn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"React"}),p("path",{fill:"#0E8ADC",d:"M12 13.677a1.677 1.677 0 100-3.354 1.677 1.677 0 000 3.354z"}),p("path",{stroke:"#0E8ADC",d:"M12 15.436c4.97 0 9-1.538 9-3.436s-4.03-3.436-9-3.436S3 10.102 3 12s4.03 3.436 9 3.436z"}),p("path",{stroke:"#0E8ADC",d:"M9.024 13.718c2.485 4.305 5.832 7.025 7.476 6.076 1.644-.949.961-5.208-1.524-9.512C12.491 5.977 9.144 3.257 7.5 4.206c-1.644.949-.961 5.208 1.524 9.512z"}),p("path",{stroke:"#0E8ADC",d:"M9.024 10.282c-2.485 4.304-3.168 8.563-1.524 9.512 1.644.95 4.99-1.771 7.476-6.076 2.485-4.304 3.168-8.563 1.524-9.512-1.644-.95-4.99 1.771-7.476 6.076z"})]}),_n=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"Markdown"}),p("path",{fill:"#60A5FA",d:"M3 15.714V8h2.323l2.322 2.836L9.968 8h2.322v7.714H9.968V11.29l-2.323 2.836-2.322-2.836v4.424H3zm14.516 0l-3.484-3.743h2.323V8h2.322v3.97H21l-3.484 3.744z"})]}),Yn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...R(e),children:[p("title",{children:"Shell"}),p("path",{stroke:"#14B8A6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.336 17l6-6-6-6M12.336 19h8"})]}),Zn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"YAML"}),p("path",{fill:"#A78BFA",d:"M6.533 5.864h2.755l2.654 5.011h.113l2.654-5.011h2.756l-4.245 7.522V17.5h-2.443v-4.114L6.533 5.864z"})]});import{jsx as d,jsxs as re}from"react/jsx-runtime";var y=({children:e,className:t,...o})=>d("header",{className:n("boltdocs-navbar sticky top-0 z-50 w-full border-b border-border-subtle bg-bg-main/80 backdrop-blur-md",t),...o,children:e}),Do=({children:e,className:t})=>d("div",{className:n("mx-auto flex lg:h-navbar max-w-(--breakpoint-3xl) items-center justify-between px-4 md:px-6",t),children:e}),Ho=({children:e,className:t})=>d("div",{className:n("flex flex-1 items-center justify-start gap-4 min-w-0",t),children:e}),Wo=({children:e,className:t})=>d("div",{className:n("flex flex-1 items-center justify-end gap-2 md:gap-4 min-w-0",t),children:e}),Fo=({children:e,className:t})=>d("div",{className:n("hidden lg:flex flex-1 justify-center items-center gap-4 px-4 min-w-0 w-full",t),children:e}),Go=({src:e,alt:t,width:o=24,height:r=24,className:s})=>d(N,{href:"/",className:n("flex items-center gap-2 shrink-0 outline-none",s),children:e?d("img",{src:e,alt:t,width:o,height:r,className:"h-6 w-6 object-contain"}):null}),jo=({children:e,className:t})=>d(N,{href:"/",children:d("span",{className:n("text-lg font-bold tracking-tight hidden sm:inline-block",t),children:e})}),Jo=({children:e,className:t})=>d("nav",{className:n("hidden md:flex items-center gap-6 text-sm font-medium",t),children:e}),Ko=({label:e,href:t,active:o,to:r,className:s})=>re(N,{href:t,target:r==="external"?"_blank":void 0,className:n("transition-colors outline-none font-medium focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm",{"text-primary-500":o,"text-text-muted hover:text-text-main":!o},s),children:[e,r==="external"&&d("span",{className:"ml-1 inline-block",children:d(Eo,{size:12})})]}),$o=({className:e,onPress:t})=>{let[o,r]=So(!1),s=o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);return Io(()=>{r(!0)},[]),re(Mo,{onPress:t,className:n("flex items-center gap-2 rounded-full border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-muted outline-none cursor-pointer","transition-all duration-200 hover:border-border-strong hover:text-text-main hover:bg-bg-muted hover:shadow-sm active:scale-[0.98]","focus-visible:ring-2 focus-visible:ring-primary-500/30","w-full max-w-[720px] justify-between",e),children:[re("div",{className:"flex items-center gap-2",children:[d(Oo,{size:16}),d("span",{className:"hidden sm:inline-block",children:"Search docs..."})]}),re("div",{className:"hidden sm:flex items-center gap-1 pointer-events-none select-none",children:[d("kbd",{className:"flex h-5 items-center justify-center rounded border border-border-subtle bg-bg-main px-1.5 font-mono text-[10px] font-medium",children:s?"\u2318":"Ctrl"}),d("kbd",{className:"flex h-5 w-5 items-center justify-center rounded border border-border-subtle bg-bg-main font-mono text-[10px] font-medium",children:"K"})]})]})},Xo=({className:e,theme:t,onThemeChange:o})=>d(ze,{isSelected:t==="dark",onChange:o,className:n("rounded-md p-2 text-text-muted outline-none cursor-pointer","transition-all duration-300 hover:bg-bg-surface hover:text-text-main hover:rotate-12 active:scale-90","focus-visible:ring-2 focus-visible:ring-primary-500/30",e),"aria-label":"Toggle theme",children:t==="dark"?d(zo,{size:20}):d(Vo,{size:20})}),_o=({name:e})=>{if(e==="github")return d(Ve,{});if(e==="discord")return d(Ee,{});if(e==="x")return d(De,{});if(e==="bluesky")return d(He,{})},Yo=({icon:e,link:t,className:o})=>d(N,{href:t,target:"_blank",rel:"noopener noreferrer",className:n("rounded-md p-2 text-text-muted outline-none transition-colors","hover:bg-bg-surface hover:text-text-main","focus-visible:ring-2 focus-visible:ring-primary-500/30",o),children:d(_o,{name:e})}),Zo=({className:e})=>d(Oe,{orientation:"vertical",className:n("h-6 w-px bg-border-subtle mx-1",e)});y.Root=y;y.Left=Ho;y.Right=Wo;y.Center=Fo;y.Logo=Go;y.Title=jo;y.Links=Jo;y.Link=Ko;y.SearchTrigger=$o;y.Theme=Xo;y.Socials=Yo;y.Split=Zo;y.Content=Do;var os=y;import{useState as ve,useMemo as qo,useEffect as Qo}from"react";import{Index as Uo}from"flexsearch";import We from"virtual:boltdocs-search";function ls(e){let{currentLocale:t,currentVersion:o}=Q(),[r,s]=ve(!1),[a,u]=ve(""),[i,l]=ve(null);Qo(()=>{if(!r||i)return;let f=new Uo({preset:"match",tokenize:"full",resolution:9,cache:!0});for(let c of We)f.add(c.id,`${c.title} ${c.content}`);l(f)},[r,i]);let g=qo(()=>{if(!a)return e.filter(v=>{let C=!t||v.locale===t,W=!o||v.version===o;return C&&W}).slice(0,10).map(v=>({id:v.path,title:v.title,path:v.path,bio:v.description||"",groupTitle:v.groupTitle}));if(!i)return[];let f=i.search(a,{limit:20,suggest:!0}),c=[],L=new Set;for(let v of f){let C=We.find(F=>F.id===v);if(!C)continue;let W=!t||C.locale===t,m=!o||C.version===o;!W||!m||L.has(C.url)||(L.add(C.url),c.push({id:C.url,title:C.title,path:C.url,bio:C.display,groupTitle:C.display.split(" > ")[0],isHeading:C.url.includes("#")}))}return c.slice(0,10)},[a,i,t,o,e]);return{isOpen:r,setIsOpen:s,query:a,setQuery:u,list:g,input:{value:a,onChange:f=>u(f.target.value)}}}export{tr as a,$e as b,Y as c,ar as d,q as e,Q as f,ae as g,n as h,N as i,at as j,Re as k,lt as l,Ve as m,Gn as n,jn as o,Jn as p,Kn as q,$n as r,Xn as s,_n as t,Yn as u,Zn as v,ie as w,y as x,os as y,j as z,V as A,Le as B,Ur as C,en as D,tn as E,on as F,S as G,E as H,D as I,K as J,$ as K,ho as L,xe as M,I as N,Sn as O,ls as P};
@@ -1 +0,0 @@
1
- import{a as u}from"./chunk-Y4RE5KI7.mjs";import rt from"path";import{fileURLToPath as it}from"url";var h=u(()=>{"use strict"});var at,B=u(()=>{"use strict";h();at=/^[a-zA-Z0-9\-_\/\.\(\)]+$/});import{z as d}from"zod";var z,L=u(()=>{"use strict";h();z=d.object({title:d.string().max(200).optional(),description:d.string().max(500).optional(),sidebarPosition:d.number().optional(),sidebarLabel:d.string().max(100).optional(),category:d.string().max(50).optional(),order:d.number().optional(),badge:d.string().max(50).optional(),icon:d.string().max(50).optional()})});var m,F,$,g,H=u(()=>{"use strict";h();m=class r extends Error{constructor(t){super(t),this.name="SecurityViolationError",Object.setPrototypeOf(this,r.prototype)}},F=class r extends m{constructor(t){super(t),this.name="PathTraversalError",Object.setPrototypeOf(this,r.prototype)}},$=class r extends m{constructor(t){super(t),this.name="EncodingSecurityError",Object.setPrototypeOf(this,r.prototype)}},g=class r extends m{constructor(t){super(t),this.name="ValidationError",Object.setPrototypeOf(this,r.prototype)}}});import R from"fs";import K from"gray-matter";import A from"isomorphic-dompurify";function St(r){return r.replace(/\\/g,"/")}function q(r){return r.replace(/^\d+\./,"")}function vt(r){let t=r.match(/^(\d+)\./);return t?parseInt(t[1],10):void 0}function Ot(r){return/\.mdx?$/.test(r)}function O(r){try{return R.statSync(r).mtimeMs}catch{return 0}}function bt(r){let t=R.readFileSync(r,"utf-8");try{let{data:e,content:n,matter:i}=K(t);if(i&&i.length>10240)throw J("FRONTMATTER_TOO_LARGE","Frontmatter block exceeds size limit",{size:i.length,file:r}),new g(`Security breach: Frontmatter size exceeds limit of ${10240} bytes`);let s=z.safeParse(e);s.success||console.warn(`[VALIDATION][${r}] Invalid frontmatter fields detected.`);let p={...s.success?s.data:{}};return p.title&&(p.title=M(p.title).trim()),p.description&&(p.description=M(p.description).trim()),{data:p,content:n}}catch(e){if(e instanceof g)throw e;return{data:{},content:t}}}function G(r){return r.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Dt(r){return G(r)}function At(r){let e=r.split("/").map(n=>q(U(n))).join("/").replace(/\/$/,"");return e=e.replace(/\.mdx?$/,""),(e==="index"||e.endsWith("/index"))&&(e=e.replace(/index$/,"")),e.startsWith("/")||(e="/"+e),e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1)),e}function Ct(r){return A.sanitize(r,{ALLOWED_TAGS:["b","i","em","strong","a","p","br","code","pre","span","div","h1","h2","h3","h4","h5","h6","ul","ol","li","table","thead","tbody","tr","th","td","blockquote","hr"],ALLOWED_ATTR:["href","title","target","class","id","src","alt","width","height"],FORCE_BODY:!0})}function M(r){return A.sanitize(r,{ALLOWED_TAGS:[],KEEP_CONTENT:!0})}function Tt(r){return r.charAt(0).toUpperCase()+r.slice(1)}function wt(r,t){return r?typeof r=="string"?r:t&&r[t]?r[t]:Object.values(r)[0]||"":""}function U(r){return r.replace(/[^a-zA-Z0-9\-_\/\.]/g,"").split("/").filter(t=>t!==".."&&t!==".").map(t=>t.replace(/\.\.+/g,".")).join("/")}function J(r,t,e={}){let n=new Date().toISOString(),i={...e};for(let s in i)typeof i[s]=="string"&&i[s].includes(":")&&(i[s]=i[s].split(/[\\/]/).pop()||i[s]);console.error(`[SECURITY][${n}] TYPE: ${r} | MESSAGE: ${t} | DETAILS: ${JSON.stringify(i)}`)}var N=u(()=>{"use strict";h();L();H();A.addHook("afterSanitizeAttributes",r=>{if(r.hasAttribute("href")){let t=r.getAttribute("href")?.toLowerCase()||"";(t.startsWith("javascript:")||t.startsWith("data:")||t.startsWith("vbscript:"))&&r.removeAttribute("href")}if(r.hasAttribute("src")){let t=r.getAttribute("src")?.toLowerCase()||"";(t.startsWith("javascript:")||t.startsWith("data:")||t.startsWith("vbscript:"))&&r.removeAttribute("src")}})});import a from"fs";import c from"path";import y from"crypto";import f from"zlib";import{promisify as x}from"util";async function Rt(){await l.flush()}var b,X,D,w,Mt,P,k,Z,Y,Q,C,T,l,j,I,W,tt=u(()=>{h();N();b=x(a.writeFile),X=x(a.readFile),D=x(a.mkdir),w=x(a.rename),Mt=x(a.unlink),P=process.env.BOLTDOCS_CACHE_DIR||".boltdocs",k="assets",Z="shards",Y=parseInt(process.env.BOLTDOCS_CACHE_LRU_LIMIT||"2000",10),Q=process.env.BOLTDOCS_CACHE_COMPRESS!=="0",C=class{constructor(t){this.limit=t}cache=new Map;get(t){let e=this.cache.get(t);return e!==void 0&&(this.cache.delete(t),this.cache.set(t,e)),e}set(t,e){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.limit){let n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(t,e)}get size(){return this.cache.size}clear(){this.cache.clear()}},T=class{queue=Promise.resolve();pendingCount=0;add(t){this.pendingCount++,this.queue=this.queue.then(t).finally(()=>{this.pendingCount--})}async flush(){await this.queue}get pending(){return this.pendingCount}},l=new T,j=class{entries=new Map;cachePath=null;compress;constructor(t={}){if(this.compress=t.compress!==void 0?t.compress:Q,t.name){let e=t.root||process.cwd(),n=this.compress?"json.gz":"json";this.cachePath=c.resolve(e,P,`${t.name}.${n}`)}}load(){if(process.env.BOLTDOCS_NO_CACHE!=="1"&&!(!this.cachePath||!a.existsSync(this.cachePath)))try{let t=a.readFileSync(this.cachePath);this.cachePath.endsWith(".gz")&&(t=f.gunzipSync(t));let e=JSON.parse(t.toString("utf-8"));this.entries=new Map(Object.entries(e))}catch{}}save(){if(process.env.BOLTDOCS_NO_CACHE==="1"||!this.cachePath)return;let t=Object.fromEntries(this.entries),e=JSON.stringify(t),n=this.cachePath,i=this.compress;l.add(async()=>{try{await D(c.dirname(n),{recursive:!0});let s=Buffer.from(e);i&&(s=f.gzipSync(s));let o=`${n}.${y.randomBytes(4).toString("hex")}.tmp`;await b(o,s),await w(o,n)}catch{}})}get(t){let e=this.entries.get(t);return!e||O(t)!==e.mtime?null:e.data}set(t,e){this.entries.set(t,{data:e,mtime:O(t)})}isValid(t){let e=this.entries.get(t);return e?O(t)===e.mtime:!1}invalidate(t){this.entries.delete(t)}invalidateAll(){this.entries.clear()}pruneStale(t){for(let e of this.entries.keys())t.has(e)||this.entries.delete(e)}get size(){return this.entries.size}async flush(){await l.flush()}},I=class{index=new Map;memoryCache=new C(Y);baseDir;shardsDir;indexPath;constructor(t,e=process.cwd()){this.baseDir=c.resolve(e,P,`transform-${t}`),this.shardsDir=c.resolve(this.baseDir,Z),this.indexPath=c.resolve(this.baseDir,"index.json")}load(){if(process.env.BOLTDOCS_NO_CACHE!=="1"&&a.existsSync(this.indexPath))try{let t=a.readFileSync(this.indexPath,"utf-8");this.index=new Map(Object.entries(JSON.parse(t)))}catch{}}save(){if(process.env.BOLTDOCS_NO_CACHE==="1")return;let t=JSON.stringify(Object.fromEntries(this.index)),e=this.indexPath;l.add(async()=>{await D(c.dirname(e),{recursive:!0}),await b(e,t)})}async getMany(t){let e=new Map,n=[];for(let i of t){let s=this.memoryCache.get(i);s?e.set(i,s):this.index.has(i)&&n.push(i)}if(n.length>0){let i=await Promise.all(n.map(async s=>{let o=this.index.get(s),p=c.resolve(this.shardsDir,`${o}.gz`);try{let _=await X(p),E=f.gunzipSync(_).toString("utf-8");return this.memoryCache.set(s,E),{key:s,val:E}}catch{return null}}));for(let s of i)s&&e.set(s.key,s.val)}return e}get(t){let e=this.memoryCache.get(t);if(e)return e;let n=this.index.get(t);if(!n)return null;let i=c.resolve(this.shardsDir,`${n}.gz`);if(!a.existsSync(i))return null;try{let s=a.readFileSync(i),o=f.gunzipSync(s).toString("utf-8");return this.memoryCache.set(t,o),o}catch{return null}}set(t,e){let n=y.createHash("md5").update(e).digest("hex");this.index.set(t,n),this.memoryCache.set(t,e);let i=c.resolve(this.shardsDir,`${n}.gz`);l.add(async()=>{if(a.existsSync(i))return;await D(this.shardsDir,{recursive:!0});let s=f.gzipSync(Buffer.from(e)),o=`${i}.${y.randomBytes(4).toString("hex")}.tmp`;await b(o,s),await w(o,i)})}get size(){return this.index.size}async flush(){await l.flush()}},W=class{assetsDir;constructor(t=process.cwd()){this.assetsDir=c.resolve(t,P,k)}getFileHash(t){return y.createHash("md5").update(a.readFileSync(t)).digest("hex")}get(t,e){if(!a.existsSync(t))return null;let n=this.getFileHash(t),i=this.getCachedPath(t,`${e}-${n}`);return a.existsSync(i)?i:null}set(t,e,n){let i=this.getFileHash(t),s=this.getCachedPath(t,`${e}-${i}`);l.add(async()=>{await D(this.assetsDir,{recursive:!0});let o=`${s}.${y.randomBytes(4).toString("hex")}.tmp`;await b(o,n),await w(o,s)})}getCachedPath(t,e){let n=c.extname(t),i=c.basename(t,n),s=e.replace(/[^a-z0-9]/gi,"-").toLowerCase();return c.join(this.assetsDir,`${i}.${s}${n}`)}clear(){a.existsSync(this.assetsDir)&&a.rmSync(this.assetsDir,{recursive:!0,force:!0})}async flush(){await l.flush()}}});export{h as a,at as b,B as c,F as d,$ as e,g as f,H as g,St as h,q as i,vt as j,Ot as k,bt as l,G as m,Dt as n,At as o,Ct as p,M as q,Tt as r,wt as s,J as t,N as u,j as v,I as w,W as x,Rt as y,tt as z};
@@ -1 +0,0 @@
1
- var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>(b&&(a=b(b=0)),a);var n=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),o=(b,a)=>{for(var c in a)e(b,c,{get:a[c],enumerable:!0})},l=(b,a,c,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&e(b,d,{get:()=>a[d],enumerable:!(f=h(a,d))||f.enumerable});return b};var p=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?e(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c,p as d};
@@ -1,78 +0,0 @@
1
- import React from 'react';
2
-
3
- /**
4
- * Metadata provided by the server for a specific route.
5
- * Maps closely to the `RouteMeta` type in the Node environment.
6
- */
7
- interface ComponentRoute {
8
- /** The final URL path */
9
- path: string;
10
- /** The absolute filesystem path of the source file */
11
- componentPath: string;
12
- /** The page title */
13
- title: string;
14
- /** Explicit order in the sidebar */
15
- sidebarPosition?: number;
16
- /** The relative path from the docs directory */
17
- filePath: string;
18
- /** The group directory name */
19
- group?: string;
20
- /** The display title of the group */
21
- groupTitle?: string;
22
- /** Explicit order of the group in the sidebar */
23
- groupPosition?: number;
24
- /** Extracted markdown headings for search indexing */
25
- headings?: {
26
- level: number;
27
- text: string;
28
- id: string;
29
- }[];
30
- /** The page summary or description */
31
- description?: string;
32
- /** The locale this route belongs to, if i18n is configured */
33
- locale?: string;
34
- /** The version this route belongs to, if versioning is configured */
35
- version?: string;
36
- /** Optional icon to display (Lucide icon name or raw SVG) */
37
- icon?: string;
38
- /** The tab this route belongs to, if tabs are configured */
39
- tab?: string;
40
- /** Optional badge to display next to the sidebar item */
41
- badge?: string | {
42
- text: 'updated' | 'new' | 'deprecated';
43
- expires?: string;
44
- };
45
- /** Optional icon for the route's group */
46
- groupIcon?: string;
47
- /** The extracted plain-text content of the page for search indexing */
48
- _content?: string;
49
- /** The raw markdown content of the page */
50
- _rawContent?: string;
51
- }
52
-
53
- /**
54
- * Options for rendering the Boltdocs application on the server (SSG).
55
- */
56
- interface RenderOptions {
57
- /** The URL path currently being rendered */
58
- path: string;
59
- /** Initial routes generated by the Vite plugin (`virtual:boltdocs-routes`) */
60
- routes: ComponentRoute[];
61
- /** Site configuration (`virtual:boltdocs-config`) */
62
- config: any;
63
- /** The name of the documentation directory (e.g. 'docs') */
64
- docsDirName: string;
65
- /** Optional custom React component to render when visiting the root path ('/') */
66
- homePage?: React.ComponentType;
67
- /** Custom external pages mapped by their route path */
68
- externalPages?: Record<string, React.ComponentType<any>>;
69
- /** Preloaded modules (since SSR cannot use dynamic imports easily) */
70
- modules: Record<string, any>;
71
- }
72
- /**
73
- * Renders the full React application into an HTML string for a specific route.
74
- * This is called by the Node SSG script during the Vite build process.
75
- */
76
- declare function render(options: RenderOptions): Promise<string>;
77
-
78
- export { type RenderOptions, render };
@@ -1 +0,0 @@
1
- "use strict";var qo=Object.create;var He=Object.defineProperty;var Jo=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var Ko=Object.getPrototypeOf,Yo=Object.prototype.hasOwnProperty;var gt=(e,t)=>{for(var o in t)He(e,o,{get:t[o],enumerable:!0})},ht=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Xo(t))!Yo.call(e,n)&&n!==o&&He(e,n,{get:()=>t[n],enumerable:!(r=Jo(t,n))||r.enumerable});return e};var A=(e,t,o)=>(o=e!=null?qo(Ko(e)):{},ht(t||!e||!e.__esModule?He(o,"default",{value:e,enumerable:!0}):o,e)),jo=e=>ht(He({},"__esModule",{value:!0}),e);var Tr={};gt(Tr,{render:()=>Nr});module.exports=jo(Tr);var Go=A(require("react")),_o=A(require("react-dom/server")),Uo=require("react-router-dom/server");var V=A(require("react")),Rr=A(require("react-dom/client")),X=require("react-router-dom");var Tt=require("lucide-react");var et=A(require("react")),Pt=require("react-aria-components"),Nt=require("react-router-dom");var Ie=require("react"),Ze=(0,Ie.createContext)(null);function se(){let e=(0,Ie.use)(Ze);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}var Ct=require("react-router-dom");var ae=require("react"),vt=require("react/jsx-runtime"),xt=(0,ae.createContext)({preload:()=>{},routes:[]});function ze(){return(0,ae.use)(xt)}function bt({routes:e,modules:t,children:o}){let r=(0,ae.useRef)(null),n=(0,ae.useCallback)(a=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{let i=a.split("#")[0].split("?")[0],l=e.find(s=>s.path===i||i==="/"&&s.path==="");if(l?.filePath){let s=Object.keys(t).find(c=>c.endsWith("/"+l.filePath));s&&t[s]().catch(c=>{console.error(`[boltdocs] Failed to preload route ${a}:`,c)})}},100)},[e,t]);return(0,vt.jsx)(xt.Provider,{value:{preload:n,routes:e},children:o})}var yt=require("zustand"),De=require("zustand/middleware"),Q=(0,yt.create)()((0,De.persist)(e=>({currentLocale:void 0,currentVersion:void 0,hasHydrated:!1,setLocale:t=>e({currentLocale:t}),setVersion:t=>e({currentVersion:t}),setHasHydrated:t=>e({hasHydrated:t})}),{name:"boltdocs-storage",storage:(0,De.createJSONStorage)(()=>localStorage),partialize:e=>({currentLocale:e.currentLocale,currentVersion:e.currentVersion}),onRehydrateStorage:()=>e=>{e?.setHasHydrated(!0)}}));function Le(){let{routes:e}=ze(),t=se(),o=(0,Ct.useLocation)(),r=Q(g=>g.currentLocale),n=Q(g=>g.currentVersion),a=Q(g=>g.hasHydrated),i=e.find(g=>g.path===o.pathname),l=t.i18n?i?.locale||(a?r:void 0)||t.i18n.defaultLocale:void 0,s=t.versions?i?.version||(a?n:void 0)||t.versions.defaultVersion:void 0,c=e.filter(g=>{let W=t.i18n?(g.locale||t.i18n.defaultLocale)===l:!0,h=t.versions?(g.version||t.versions.defaultVersion)===s:!0;if(!(W&&h))return!1;let F=t.i18n;if(F){let ce=!!i?.locale,Z=!!g.locale;if(e.some(Ve=>Ve!==g&&Ve.filePath===g.filePath&&Ve.version===g.version&&(Ve.locale||F.defaultLocale)===(g.locale||F.defaultLocale))&&ce!==Z)return!1}return!0}),p=t.i18n?.localeConfigs?.[l]?.label||t.i18n?.locales[l]||l,b=t.versions?.versions.find(g=>g.path===s)?.label||s,w=t.i18n?Object.entries(t.i18n.locales).map(([g,W])=>{let h=t.i18n?.localeConfigs?.[g];return{key:g,label:h?.label||W,isCurrent:g===l}}):[],L=t.versions?t.versions.versions.map(g=>({key:g.path,label:g.label,isCurrent:g.path===s})):[];return{routes:c,allRoutes:e,currentRoute:i,currentLocale:l,currentLocaleLabel:p,availableLocales:w,currentVersion:s,currentVersionLabel:b,availableVersions:L,config:t}}function Qe(e){let t=se(),{currentLocale:o,currentVersion:r}=Le();if(!t||typeof e!="string"||e.startsWith("http")||e.startsWith("//"))return e;let n=t.i18n,a=t.versions;if(!n&&!a)return e;let i=e.startsWith("/docs"),l=e.split("/").filter(Boolean),s=0;l[s]==="docs"&&s++,a&&l.length>s&&a.versions.find(b=>b.path===l[s])&&s++,n&&l.length>s&&n.locales[l[s]]&&s++;let c=l.slice(s),d=[];i&&(d.push("docs"),a&&r&&d.push(r)),n&&o&&o!==n.defaultLocale&&d.push(o),d.push(...c);let p=`/${d.join("/")}`;return p.length>1&&p.endsWith("/")?p.slice(0,-1):p||"/"}var Rt=require("clsx"),wt=require("tailwind-merge");function m(...e){return(0,wt.twMerge)((0,Rt.clsx)(e))}var tt=require("react/jsx-runtime"),de=et.default.forwardRef((e,t)=>{let{href:o,prefetch:r="hover",onMouseEnter:n,onFocus:a,...i}=e,l=Qe(o??""),{preload:s}=ze();return(0,tt.jsx)(Pt.Link,{...i,ref:t,href:l,onMouseEnter:p=>{n?.(p),r==="hover"&&typeof l=="string"&&l.startsWith("/")&&s(l)},onFocus:p=>{a?.(p),r==="hover"&&typeof l=="string"&&l.startsWith("/")&&s(l)}})});de.displayName="Link";var Zo=et.default.forwardRef((e,t)=>{let{href:o,end:r=!1,className:n,children:a,...i}=e,l=(0,Nt.useLocation)(),s=Qe(o??""),c=r?l.pathname===s:l.pathname.startsWith(s),d=typeof n=="function"?n({isActive:c}):m(n,c&&"active"),p=typeof a=="function"?a({isActive:c}):a;return(0,tt.jsx)(de,{...i,ref:t,href:o,className:d,children:p})});Zo.displayName="NavLink";var ee=require("react/jsx-runtime");function ot(){return(0,ee.jsx)("div",{className:"flex items-center justify-center min-h-[60vh] text-center",children:(0,ee.jsxs)("div",{className:"space-y-4",children:[(0,ee.jsx)("span",{className:"text-8xl font-black tracking-tighter text-primary-500/20",children:"404"}),(0,ee.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Page Not Found"}),(0,ee.jsx)("p",{className:"text-sm text-text-muted max-w-sm mx-auto",children:"The page you're looking for doesn't exist or has been moved."}),(0,ee.jsxs)(de,{href:"/",className:"inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white outline-none transition-all hover:brightness-110 hover:shadow-lg focus-visible:ring-2 focus-visible:ring-primary-500/30",children:[(0,ee.jsx)(Tt.ArrowLeft,{size:16})," Go to Home"]})]})})}var U=require("react"),Mt=require("react/jsx-runtime"),kt=(0,U.createContext)(void 0);function Lt({children:e}){let[t,o]=(0,U.useState)("system"),[r,n]=(0,U.useState)("dark"),[a,i]=(0,U.useState)(!1);(0,U.useEffect)(()=>{i(!0);let s=localStorage.getItem("boltdocs-theme"),c=s==="light"||s==="dark"||s==="system"?s:"system";o(c);let d=window.matchMedia("(prefers-color-scheme: dark)");((b,w)=>{n(b==="system"?w?"dark":"light":b)})(c,d.matches);let f=b=>{n(w=>(localStorage.getItem("boltdocs-theme")||"system")==="system"?b.matches?"dark":"light":w)};return d.addEventListener("change",f),()=>d.removeEventListener("change",f)},[]),(0,U.useEffect)(()=>{if(!a)return;let s=window.matchMedia("(prefers-color-scheme: dark)").matches,c=t==="system"?s?"dark":"light":t;n(c);let d=document.documentElement;c==="light"?(d.classList.add("theme-light"),d.dataset.theme="light"):(d.classList.remove("theme-light"),d.dataset.theme="dark")},[t,a]);let l=s=>{o(s),localStorage.setItem("boltdocs-theme",s)};return(0,Mt.jsx)(kt.Provider,{value:{theme:t,resolvedTheme:r,setTheme:l},children:e})}function At(){let e=(0,U.use)(kt);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}var ft=A(require("virtual:boltdocs-layout"));var Bt=require("react"),Et=require("react-aria-components"),Oe=require("react-router-dom"),Vt=require("react/jsx-runtime");function St({children:e}){let t=(0,Oe.useNavigate)();return(0,Vt.jsx)(Et.RouterProvider,{navigate:(o,r)=>{(0,Bt.startTransition)(()=>{t(o,r)})},useHref:Oe.useHref,children:e})}var Ht=require("react"),It=require("react-router-dom");function zt(){let{pathname:e,hash:t}=(0,It.useLocation)();return(0,Ht.useLayoutEffect)(()=>{let o=document.querySelector(".boltdocs-content")||window,r=()=>o===window?window.scrollY:o.scrollTop,n=(a,i="auto")=>{o===window?window.scrollTo({top:a,behavior:i}):o.scrollTo({top:a,behavior:i})};if(t){let a=t.replace("#",""),i=document.getElementById(a);if(i){let s=o===window?0:o.getBoundingClientRect().top,p=i.getBoundingClientRect().top-s-80+r();n(p,"smooth");return}}n(0)},[e,t]),null}var Dt=require("react-router-dom"),Ot=A(require("virtual:boltdocs-layout")),rt=require("react/jsx-runtime");function Wt(){return(0,rt.jsx)(Ot.default,{children:(0,rt.jsx)(Dt.Outlet,{})})}var We=require("react"),_t=require("react/jsx-runtime"),Ft=(0,We.createContext)({});function $t(){return(0,We.use)(Ft)}function Gt({components:e,children:t}){return(0,_t.jsx)(Ft.Provider,{value:e,children:t})}var qt=require("react/jsx-runtime");function Ut({Component:e}){let t=$t();return(0,qt.jsx)(e,{components:t})}var Do=require("lucide-react");var ut={};gt(ut,{Admonition:()=>re,Badge:()=>no,Button:()=>Xt,Card:()=>co,Cards:()=>lo,Caution:()=>vo,CodeBlock:()=>ie,ComponentPreview:()=>Eo,ComponentProps:()=>Mo,CopyMarkdown:()=>Io,Danger:()=>ho,Field:()=>No,FileTree:()=>Ro,Image:()=>Lo,Important:()=>bo,InfoBox:()=>xo,Link:()=>To,List:()=>yo,Note:()=>uo,Tab:()=>eo,Table:()=>Po,Tabs:()=>to,Tip:()=>fo,Video:()=>oo,Warning:()=>go});var $e=A(require("react-aria-components"));var Jt=require("class-variance-authority"),q=require("react/jsx-runtime"),Fe=(0,Jt.cva)("flex flex-row items-center justify-center w-auto font-semibold tracking-tight no-underline whitespace-nowrap select-none outline-none transition-all duration-200 cursor-pointer pressed:scale-[0.97] hover:-translate-y-px leading-none",{variants:{variant:{primary:"bg-primary-500 text-white shadow-md hover:brightness-110 hover:shadow-lg",secondary:"bg-bg-surface text-text-main border border-border-subtle hover:bg-bg-muted hover:border-border-strong",outline:"bg-transparent text-text-main border border-border-strong hover:bg-bg-surface hover:border-primary-500",ghost:"bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-main",danger:"bg-[var(--color-danger-500)]/10 text-[var(--color-danger-500)] border border-[var(--color-danger-500)]/20 hover:bg-[var(--color-danger-500)]/15",success:"bg-[var(--color-success-500)]/10 text-[var(--color-success-500)] border border-[var(--color-success-500)]/20 hover:bg-[var(--color-success-500)]/15",warning:"bg-[var(--color-warning-500)]/10 text-[var(--color-warning-500)] border border-[var(--color-warning-500)]/20 hover:bg-[var(--color-warning-500)]/15",info:"bg-[var(--color-info-500)]/10 text-[var(--color-info-500)] border border-[var(--color-info-500)]/20 hover:bg-[var(--color-info-500)]/15",subtle:"bg-primary-500/10 text-primary-500 hover:bg-primary-500/20",link:"bg-transparent text-primary-500 !p-0 !min-h-0 hover:underline"},size:{sm:"min-h-8 px-3.5 text-[0.8125rem] gap-1.5",md:"min-h-10 px-5 text-[0.9375rem] gap-2",lg:"min-h-12 px-7 text-[1.05rem] gap-2.5"},rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},iconSize:{sm:"w-8 h-8 p-0",md:"w-10 h-10 p-0",lg:"w-12 h-12 p-0"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:null}},defaultVariants:{variant:"primary",size:"md",rounded:"md"}}),pe=({href:e,icon:t,iconPosition:o="left",isIconOnly:r,children:n,className:a,variant:i,size:l,rounded:s,iconSize:c,disabled:d,...p})=>{let f=r||!n&&!!t,b=f?(0,q.jsx)("span",{className:"inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]",children:t}):(0,q.jsxs)(q.Fragment,{children:[t&&o==="left"&&(0,q.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t}),(0,q.jsx)("span",{className:"flex items-center",children:n}),t&&o==="right"&&(0,q.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t})]});return e?(0,q.jsx)($e.Link,{href:e,className:m(Fe({variant:i,size:l,rounded:s,iconSize:f?c:void 0,disabled:d}),a),...p,children:b}):(0,q.jsx)($e.Button,{className:m(Fe({variant:i,size:l,rounded:s,iconSize:f?c:void 0,disabled:d}),a),...p,children:b})};var Kt=require("react/jsx-runtime"),Xt=({className:e,variant:t,size:o,rounded:r,iconSize:n,disabled:a,...i})=>(0,Kt.jsx)(pe,{className:m("group",Fe({variant:t,size:o,rounded:r,iconSize:n,disabled:a,className:e})),...i});var nt=A(require("react-aria-components")),xe=require("lucide-react");var Yt=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{let t=document.createElement("textarea");return t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),!0}};var K=require("react");function jt(e){let{title:t}=e,[o,r]=(0,K.useState)(!1),[n,a]=(0,K.useState)(!1),[i,l]=(0,K.useState)(!1),s=(0,K.useRef)(null),c=se(),d=(0,K.useCallback)(async()=>{let p=s.current?.textContent??"";Yt(p),r(!0),setTimeout(()=>r(!1),2e3)},[]);return(0,K.useEffect)(()=>{let p=s.current?.textContent?.length??0;l(p>120)},[e.children,e.highlightedHtml]),{copied:o,isExpanded:n,setIsExpanded:a,isExpandable:i,preRef:s,handleCopy:d,shouldTruncate:i&&!n}}var v=require("react/jsx-runtime");function te(e){let{size:t=20,...o}=e;return{...o,width:t,height:t}}var Ge=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"TypeScript"}),(0,v.jsx)("path",{fill:"#2563EB",d:"M3.234 9.093V7.318h8.363v1.775H8.479V17.5H6.352V9.093H3.234zm15.263 1.153c-.04-.4-.21-.712-.512-.934-.301-.222-.71-.333-1.228-.333-.351 0-.648.05-.89.149-.242.096-.427.23-.557.403a.969.969 0 0 0-.189.586.838.838 0 0 0 .115.477c.086.136.204.254.353.353.149.097.321.181.517.254.195.07.404.13.626.179l.915.219c.444.1.852.232 1.223.397.371.166.693.37.965.612.271.242.482.527.631.855.152.328.23.704.234 1.129-.004.623-.163 1.163-.478 1.62-.311.454-.762.807-1.352 1.06-.587.248-1.294.372-2.123.372-.822 0-1.538-.126-2.147-.378-.607-.252-1.081-.624-1.422-1.118-.338-.497-.516-1.112-.532-1.845h2.083c.023.342.12.627.293.855.176.226.41.397.701.513a2.8 2.8 0 0 0 1 .168c.364 0 .68-.053.949-.159a1.45 1.45 0 0 0 .631-.442c.15-.189.224-.406.224-.651a.846.846 0 0 0-.204-.577c-.132-.156-.328-.288-.586-.398a5.964 5.964 0 0 0-.94-.298l-1.109-.278c-.858-.21-1.536-.536-2.033-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.491-1.615.335-.461.794-.82 1.377-1.08.584-.258 1.247-.387 1.99-.387.755 0 1.414.13 1.978.388.567.258 1.007.618 1.322 1.079.315.46.477.994.488 1.6h-2.064z"})]}),_e=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"JavaScript"}),(0,v.jsx)("path",{fill:"#F59E0B",d:"M8.383 7.318h2.127v7.1c0 .656-.147 1.226-.442 1.71a2.924 2.924 0 01-1.218 1.118c-.52.262-1.125.393-1.815.393-.613 0-1.17-.107-1.67-.323a2.67 2.67 0 01-1.183-.994c-.292-.448-.436-1.01-.433-1.686h2.143c.006.269.061.5.164.691.106.19.25.335.432.438.186.1.405.15.657.15.265 0 .488-.057.67-.17.186-.116.327-.285.423-.507.096-.222.145-.496.145-.82v-7.1zm9.43 2.928c-.04-.4-.21-.712-.511-.934-.302-.222-.711-.333-1.228-.333-.352 0-.648.05-.89.149-.242.096-.428.23-.557.403a.969.969 0 00-.19.586.838.838 0 00.115.477c.087.136.204.254.353.353.15.097.322.181.517.254.196.07.405.13.627.179l.915.219c.444.1.851.232 1.223.397.37.166.692.37.964.612s.482.527.631.855a2.7 2.7 0 01.234 1.129c-.003.623-.162 1.163-.477 1.62-.312.454-.763.807-1.353 1.06-.586.248-1.294.372-2.122.372-.822 0-1.538-.126-2.148-.378-.607-.252-1.08-.624-1.422-1.118-.338-.497-.515-1.112-.532-1.845h2.083c.023.342.121.627.293.855.176.226.41.397.702.513.295.112.628.168.999.168.364 0 .68-.053.95-.159.271-.106.482-.253.63-.442.15-.189.224-.406.224-.651a.846.846 0 00-.203-.577c-.133-.156-.329-.288-.587-.398a5.964 5.964 0 00-.94-.298l-1.108-.278c-.859-.21-1.537-.536-2.034-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.492-1.615.334-.461.793-.82 1.377-1.08.583-.258 1.246-.387 1.989-.387.755 0 1.415.13 1.978.388.567.258 1.008.618 1.323 1.079.314.46.477.994.487 1.6h-2.063z"})]}),Ue=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"JSON"}),(0,v.jsx)("path",{fill:"#F59E0B",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),qe=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"CSS"}),(0,v.jsx)("path",{fill:"#0EA5E9",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),Je=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"HTML"}),(0,v.jsx)("path",{fill:"#EA580C",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]});var me=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"React"}),(0,v.jsx)("path",{fill:"#0E8ADC",d:"M12 13.677a1.677 1.677 0 100-3.354 1.677 1.677 0 000 3.354z"}),(0,v.jsx)("path",{stroke:"#0E8ADC",d:"M12 15.436c4.97 0 9-1.538 9-3.436s-4.03-3.436-9-3.436S3 10.102 3 12s4.03 3.436 9 3.436z"}),(0,v.jsx)("path",{stroke:"#0E8ADC",d:"M9.024 13.718c2.485 4.305 5.832 7.025 7.476 6.076 1.644-.949.961-5.208-1.524-9.512C12.491 5.977 9.144 3.257 7.5 4.206c-1.644.949-.961 5.208 1.524 9.512z"}),(0,v.jsx)("path",{stroke:"#0E8ADC",d:"M9.024 10.282c-2.485 4.304-3.168 8.563-1.524 9.512 1.644.95 4.99-1.771 7.476-6.076 2.485-4.304 3.168-8.563 1.524-9.512-1.644-.95-4.99 1.771-7.476 6.076z"})]}),ue=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"Markdown"}),(0,v.jsx)("path",{fill:"#60A5FA",d:"M3 15.714V8h2.323l2.322 2.836L9.968 8h2.322v7.714H9.968V11.29l-2.323 2.836-2.322-2.836v4.424H3zm14.516 0l-3.484-3.743h2.323V8h2.322v3.97H21l-3.484 3.744z"})]}),fe=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...te(e),children:[(0,v.jsx)("title",{children:"Shell"}),(0,v.jsx)("path",{stroke:"#14B8A6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.336 17l6-6-6-6M12.336 19h8"})]}),ge=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"YAML"}),(0,v.jsx)("path",{fill:"#A78BFA",d:"M6.533 5.864h2.755l2.654 5.011h.113l2.654-5.011h2.756l-4.245 7.522V17.5h-2.443v-4.114L6.533 5.864z"})]});var he=A(require("react-aria-components"));var $=require("react/jsx-runtime"),Zt=({className:e,children:t,...o})=>(0,$.jsx)(he.Tooltip,{...o,offset:8,className:r=>m("group z-50 overflow-visible rounded-md bg-bg-surface/90 px-2.5 py-1.5 text-xs font-medium text-text-main shadow-lg backdrop-blur-md ring-1 ring-border-subtle outline-hidden select-none","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95 data-entering:duration-100","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95 data-exiting:duration-75","data-[placement=top]:slide-in-from-bottom-1","data-[placement=bottom]:slide-in-from-top-1","data-[placement=left]:slide-in-from-right-1","data-[placement=right]:slide-in-from-left-1",typeof e=="function"?e(r):e),children:r=>(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(he.OverlayArrow,{children:(0,$.jsxs)("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90",children:[(0,$.jsx)("title",{children:"Arrow"}),(0,$.jsx)("path",{d:"M0 0 L4 4 L8 0"})]})}),typeof t=="function"?t(r):t]})}),Ae=({content:e,children:t,delay:o=500,closeDelay:r=0,...n})=>(0,$.jsxs)(he.TooltipTrigger,{delay:o,closeDelay:r,children:[t,(0,$.jsx)(Zt,{...n,children:e})]});Ae.Root=Ae;Ae.Content=Zt;var B=require("react/jsx-runtime"),Qo={ts:Ge,tsx:me,js:_e,jsx:me,json:Ue,css:qe,html:Je,md:ue,mdx:ue,bash:fe,sh:fe,yaml:ge,yml:ge};function ie(e){let{children:t,hideCopy:o=!1,highlightedHtml:r,"data-highlighted-html":n,title:a,"data-lang":i,plain:l=!1,...s}=e,c=r||n,d=se(),p=e.lang||i||"",{copied:f,isExpanded:b,setIsExpanded:w,isExpandable:L,preRef:g,handleCopy:W,shouldTruncate:h}=jt(e),F=Qo[p];return(0,B.jsxs)("div",{className:m("group relative overflow-hidden bg-(--color-code-bg)","contain-layout contain-paint",{"my-6 rounded-lg border border-border-subtle":!l,"[&>pre]:max-h-62.5 [&>pre]:overflow-hidden":h},e.className),children:[a&&(0,B.jsxs)("div",{className:"flex items-center gap-2 border-b border-border-subtle bg-bg-surface/50 px-4 py-2 text-[13px] font-medium text-text-muted",children:[F?(0,B.jsx)(F,{size:14}):(0,B.jsx)(xe.File,{size:14,className:"opacity-60"}),(0,B.jsx)("span",{children:a})]}),(0,B.jsx)("div",{className:"absolute top-3 right-4 z-50 flex items-center gap-2 transition-all duration-300 opacity-0 group-hover:opacity-100",children:!o&&(0,B.jsx)(Ae,{content:f?"Copied!":"Copy code",children:(0,B.jsx)(nt.Button,{onPress:W,className:m("grid place-items-center size-8 bg-transparent outline-none cursor-pointer transition-all duration-200 hover:scale-110 active:scale-95 [&>svg]:size-4 [&>svg]:stroke-2",f?"text-emerald-400":"text-text-muted hover:text-text-main"),"aria-label":"Copy code",children:f?(0,B.jsx)(xe.Check,{size:20}):(0,B.jsx)(xe.Copy,{size:20})})})}),c?(0,B.jsx)("div",{ref:g,className:"shiki-wrapper [&>pre]:m-0! [&>pre]:rounded-none! [&>pre]:border-none! [&>pre]:bg-inherit! [&>pre>code]:grid! [&>pre>code]:p-5! [&>.shiki.shiki-themes]:bg-transparent!",dangerouslySetInnerHTML:{__html:c}}):(0,B.jsx)("pre",{ref:g,className:"m-0! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7]",...s,children:t}),L&&(0,B.jsx)("div",{className:m(h?"absolute bottom-0 inset-x-0 h-24 bg-linear-to-t from-(--color-code-bg) to-transparent flex items-end justify-center pb-4 z-10":"relative flex justify-center py-4"),children:(0,B.jsx)(nt.Button,{onPress:()=>w(!b),className:"rounded-full bg-bg-surface border border-border-subtle px-5 py-2 text-[0.8125rem] font-medium text-text-main outline-none cursor-pointer transition-all hover:bg-border-subtle hover:-translate-y-px backdrop-blur-md",children:b?"Show less":"Expand code"})})]})}var be=require("react"),le=A(require("react-aria-components"));var oe=require("react");function Qt({initialIndex:e=0,tabs:t}){let o=t[e]?.props.disabled?t.findIndex(c=>!c.props.disabled):e,[r,n]=(0,oe.useState)(o===-1?0:o),a=(0,oe.useRef)([]),[i,l]=(0,oe.useState)({opacity:0,transform:"translateX(0)",width:0});(0,oe.useEffect)(()=>{let c=a.current[r];c&&l({opacity:1,width:c.offsetWidth,transform:`translateX(${c.offsetLeft}px)`})},[r,t]);let s=(0,oe.useCallback)(c=>{let d=0;if(c.key==="ArrowRight"?d=1:c.key==="ArrowLeft"&&(d=-1),d!==0){let p=(r+d+t.length)%t.length;for(;t[p].props.disabled&&p!==r;)p=(p+d+t.length)%t.length;p!==r&&!t[p].props.disabled&&(n(p),a.current[p]?.focus())}},[r,t]);return{active:r,setActive:n,tabRefs:a,indicatorStyle:i,handleKeyDown:s}}var st=require("class-variance-authority"),H=require("react/jsx-runtime"),er=(0,st.cva)("relative flex items-center border-b border-border-subtle gap-1 overflow-x-auto no-scrollbar",{variants:{size:{default:"px-0",compact:"px-2"}},defaultVariants:{size:"default"}}),tr=(0,st.cva)("flex items-center gap-2 px-4 py-2.5 text-sm font-medium outline-none transition-all duration-200 cursor-pointer bg-transparent border-none select-none whitespace-nowrap",{variants:{isActive:{true:"text-primary-500",false:"text-text-muted hover:text-text-main"},isDisabled:{true:"opacity-40 pointer-events-none",false:""}},defaultVariants:{isActive:!1,isDisabled:!1}});function eo({children:e}){let t=typeof e=="string"?(0,H.jsx)(ie,{className:"language-bash",children:(0,H.jsx)("code",{children:e.trim()})}):e;return(0,H.jsx)("div",{className:"py-4",children:t})}function to({defaultIndex:e=0,children:t}){let o=(0,be.useMemo)(()=>be.Children.toArray(t).filter(l=>(0,be.isValidElement)(l)&&l.props?.label),[t]),{active:r,setActive:n,tabRefs:a,indicatorStyle:i}=Qt({initialIndex:e,tabs:o});return(0,H.jsx)("div",{className:"my-8 w-full group/tabs",children:(0,H.jsxs)(le.Tabs,{selectedKey:r.toString(),onSelectionChange:l=>n(Number(l)),className:"w-full",children:[(0,H.jsxs)(le.TabList,{"aria-label":"Content Tabs",className:m(er()),children:[o.map((l,s)=>{let{label:c,icon:d,disabled:p}=l.props,f=s.toString();return(0,H.jsxs)(le.Tab,{id:f,isDisabled:p,ref:b=>{a.current[s]=b},className:({isSelected:b,isDisabled:w})=>m(tr({isActive:b,isDisabled:w})),children:[!!d&&(0,H.jsx)("span",{className:"shrink-0 [&>svg]:w-4 [&>svg]:h-4",children:d}),(0,H.jsx)("span",{children:c})]},f)}),(0,H.jsx)("div",{className:"absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300 ease-in-out pointer-events-none",style:i,"aria-hidden":"true"})]}),o.map((l,s)=>(0,H.jsx)(le.TabPanel,{id:s.toString(),children:o[s]},s))]})})}var ve=require("react"),Me=require("react/jsx-runtime");function oo({src:e,poster:t,alt:o,children:r,controls:n,preload:a="metadata",...i}){let l=(0,ve.useRef)(null),[s,c]=(0,ve.useState)(!1);return(0,ve.useEffect)(()=>{let d=l.current;if(!d)return;let p=new IntersectionObserver(([f])=>{f.isIntersecting&&(c(!0),p.disconnect())},{rootMargin:"200px"});return p.observe(d),()=>p.disconnect()},[]),(0,Me.jsx)("div",{ref:l,className:"my-6 overflow-hidden rounded-lg border border-border-subtle",children:s?(0,Me.jsxs)("video",{className:"block w-full h-auto",src:e,poster:t,controls:!0,preload:a,playsInline:!0,...i,children:[r,"Your browser does not support the video tag."]}):(0,Me.jsx)("div",{className:"aspect-video bg-bg-surface animate-pulse",role:"img","aria-label":o||"Video"})})}var ro=require("class-variance-authority"),so=require("react/jsx-runtime"),or=(0,ro.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold tracking-tight",{variants:{variant:{default:"bg-bg-surface text-text-muted border-border-subtle",primary:"bg-primary-500/15 text-primary-400 border-primary-500/20",success:"bg-emerald-500/15 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/15 text-amber-400 border-amber-500/20",danger:"bg-red-500/15 text-red-400 border-red-500/20",info:"bg-sky-500/15 text-sky-400 border-sky-500/20"}},defaultVariants:{variant:"default"}});function no({variant:e="default",children:t,className:o="",...r}){return(0,so.jsx)("span",{className:m(or({variant:e}),o),...r,children:t})}var Be=require("react"),ao=A(require("react-aria-components"));var io=require("class-variance-authority"),I=require("react/jsx-runtime"),rr=(0,io.cva)("grid gap-4 my-6",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"}},defaultVariants:{cols:3}});function lo({cols:e=3,children:t,className:o="",...r}){return(0,I.jsx)("div",{className:m(rr({cols:e}),o),...r,children:t})}function co({title:e,icon:t,href:o,children:r,className:n="",...a}){let i=(0,Be.useRef)(null),l=(0,Be.useRef)(null),s=(0,Be.useCallback)(p=>{let f=i.current||l.current;if(!f)return;let{left:b,top:w}=f.getBoundingClientRect();f.style.setProperty("--x",`${p.clientX-b}px`),f.style.setProperty("--y",`${p.clientY-w}px`)},[]),c=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"pointer-events-none absolute -inset-px rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:"radial-gradient(400px circle at var(--x) var(--y), color-mix(in oklch, var(--color-primary-500), transparent 90%), transparent 80%)"}}),t&&(0,I.jsx)("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-primary-500/10 text-primary-400 text-lg transition-transform duration-300 group-hover:scale-105 group-hover:-rotate-3",children:t}),(0,I.jsxs)("div",{className:"space-y-1.5",children:[e&&(0,I.jsx)("h3",{className:"text-sm font-bold text-text-main",children:e}),r&&(0,I.jsx)("div",{className:"text-sm text-text-muted leading-relaxed",children:r})]})]}),d=m("group relative block rounded-xl border border-border-subtle bg-bg-surface p-5 outline-none overflow-hidden","transition-all duration-200 hover:border-primary-500/40 hover:shadow-lg hover:shadow-primary-500/5","focus-visible:ring-2 focus-visible:ring-primary-500/30",n);return o?(0,I.jsx)(ao.Link,{ref:l,href:o,className:m(d,"no-underline cursor-pointer"),onMouseMove:s,...a,children:c}):(0,I.jsx)("div",{ref:i,role:"presentation",className:d,onMouseMove:s,...a,children:c})}var S=require("lucide-react");var mo=require("class-variance-authority"),N=require("react/jsx-runtime"),nr={note:(0,N.jsx)(S.Bookmark,{size:18}),tip:(0,N.jsx)(S.Lightbulb,{size:18}),info:(0,N.jsx)(S.Info,{size:18}),warning:(0,N.jsx)(S.AlertTriangle,{size:18}),danger:(0,N.jsx)(S.ShieldAlert,{size:18}),important:(0,N.jsx)(S.Flame,{size:18}),caution:(0,N.jsx)(S.Zap,{size:18})},sr={note:"Note",tip:"Tip",info:"Info",warning:"Warning",danger:"Danger",important:"Important",caution:"Caution"},po=(0,mo.cva)("py-4 px-4 rounded-lg",{variants:{type:{note:"border-primary-400 bg-primary-500/5 text-primary-400",tip:"border-emerald-500 bg-emerald-500/5 text-emerald-500",info:"border-sky-500 bg-sky-500/5 text-sky-500",warning:"border-amber-500 bg-amber-500/5 text-amber-500",danger:"border-red-500 bg-red-500/5 text-red-500",important:"border-orange-500 bg-orange-500/5 text-orange-500",caution:"border-yellow-500 bg-yellow-500/5 text-yellow-500"}},defaultVariants:{type:"note"}});function re({type:e="note",title:t,children:o,className:r="",...n}){return(0,N.jsxs)("div",{className:m(po({type:e}),r),role:e==="warning"||e==="danger"?"alert":"note",...n,children:[(0,N.jsxs)("div",{className:"flex items-center flex-row gap-2 mb-2",children:[(0,N.jsx)("span",{className:m("shrink-0",po({type:e})),children:nr[e]}),(0,N.jsx)("span",{className:"text-sm font-bold tracking-tight text-text-main",children:t||sr[e]})]}),(0,N.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0",children:o})]})}var uo=e=>(0,N.jsx)(re,{type:"note",...e}),fo=e=>(0,N.jsx)(re,{type:"tip",...e}),go=e=>(0,N.jsx)(re,{type:"warning",...e}),ho=e=>(0,N.jsx)(re,{type:"danger",...e}),xo=e=>(0,N.jsx)(re,{type:"info",...e}),bo=e=>(0,N.jsx)(re,{type:"important",...e}),vo=e=>(0,N.jsx)(re,{type:"caution",...e});var Xe=require("react"),ye=require("lucide-react");var Ke=require("class-variance-authority"),J=require("react/jsx-runtime"),ar=(0,Ke.cva)("my-6 transition-all duration-200",{variants:{variant:{default:"list-disc pl-5 text-text-muted marker:text-primary-500/50",number:"list-decimal pl-5 text-text-muted marker:text-primary-500/50 marker:font-bold",checked:"list-none p-0",arrow:"list-none p-0",bubble:"list-none p-0"},cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"},isGrid:{true:"grid gap-x-8 gap-y-3",false:"space-y-2"},dense:{true:"space-y-1",false:"space-y-2"}},compoundVariants:[{variant:"default",dense:!0,className:"space-y-0.5"}],defaultVariants:{variant:"default",cols:1,isGrid:!1,dense:!1}}),ir=(0,Ke.cva)("group flex items-start gap-3 text-sm leading-relaxed transition-all duration-200",{variants:{variant:{default:"",number:"",checked:"hover:translate-x-0.5",arrow:"hover:translate-x-0.5",bubble:"hover:translate-x-0.5"},dense:{true:"py-0",false:"py-0.5"}},defaultVariants:{variant:"default",dense:!1}}),lr=(0,Ke.cva)("mt-1 shrink-0 flex items-center justify-center transition-transform group-hover:scale-110",{variants:{variant:{bubble:"h-5 w-5 rounded-full bg-primary-500/10 text-primary-500 text-[10px] font-bold",default:""}},defaultVariants:{variant:"default"}});function cr({icon:e,children:t,variant:o,dense:r}){return(0,J.jsxs)("li",{className:m(ir({variant:o,dense:r})),children:[e&&(0,J.jsx)("span",{className:m(lr({variant:o==="bubble"?"bubble":"default"})),children:e}),(0,J.jsx)("div",{className:"flex-1 text-text-muted group-hover:text-text-main transition-colors",children:t})]})}var dr={checked:e=>(0,J.jsx)(ye.Check,{size:14,className:m("text-emerald-500 shrink-0",e)}),arrow:e=>(0,J.jsx)(ye.ChevronRight,{size:14,className:m("text-primary-400 shrink-0",e)}),bubble:e=>(0,J.jsx)(ye.Circle,{size:6,fill:"currentColor",className:m("text-primary-500 shrink-0",e)}),default:()=>null,number:()=>null};function yo({variant:e="default",cols:t=1,dense:o=!1,children:r,className:n,...a}){let i=t!==void 0&&Number(t)>1,l=dr[e],s=ar({variant:e,cols:t,dense:o,isGrid:i,className:n}),c=e==="number"?"ol":"ul";return e==="default"||e==="number"?(0,J.jsx)(c,{className:s,...a,children:r}):(0,J.jsx)("ul",{className:s,...a,children:Xe.Children.map(r,d=>{if(!(0,Xe.isValidElement)(d))return d;let p=d,f=p.type==="li"?p.props.children:p.props.children||d;return(0,J.jsx)(cr,{icon:l(),variant:e,dense:o,children:f})})})}var Y=require("react"),j=A(require("react-aria-components")),G=require("lucide-react");var P=require("react/jsx-runtime"),Ce=16,Ee=2,pr={ts:Ge,tsx:me,js:_e,jsx:me,json:Ue,css:qe,html:Je,md:ue,mdx:ue,bash:fe,sh:fe,yaml:ge,yml:ge},at={CODE:/\.(ts|tsx|js|jsx|json|mjs|cjs|astro|vue|svelte)$/i,TEXT:/\.(md|mdx|txt)$/i,IMAGE:/\.(png|jpg|jpeg|svg|gif)$/i};function lt(e){return typeof e=="string"?e:typeof e=="number"?e.toString():Array.isArray(e)?e.map(lt).join(""):(0,Y.isValidElement)(e)&&e.props&&typeof e.props=="object"&&"children"in e.props?lt(e.props.children):""}function mr(e,t){let o=e.toLowerCase(),r="shrink-0 transition-colors duration-200";if(t)return(0,P.jsx)(G.Folder,{size:Ce,strokeWidth:Ee,className:m(r,"text-primary-400"),fill:"currentColor",fillOpacity:.15});let n=o.split(".").pop()||"",a=pr[n];if(a)return(0,P.jsx)(a,{size:Ce});let i=m(r,"text-text-dim group-hover:text-text-main");return at.CODE.test(o)?(0,P.jsx)(G.FileCode,{size:Ce,strokeWidth:Ee,className:i}):at.TEXT.test(o)?(0,P.jsx)(G.FileText,{size:Ce,strokeWidth:Ee,className:i}):at.IMAGE.test(o)?(0,P.jsx)(G.FileImage,{size:Ce,strokeWidth:Ee,className:i}):(0,P.jsx)(G.File,{size:Ce,strokeWidth:Ee,className:i})}function it(e,t){if(!(0,Y.isValidElement)(e))return!1;let o=e.type;if(typeof o=="string")return o===t;if(typeof o=="function")return o.name===t||o.name?.toLowerCase()===t;let r=e.props;return r?.originalType===t||r?.mdxType===t}function ur(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function Ye(e,t="root"){if(!(0,Y.isValidElement)(e))return[];let o=[];if(it(e,"ul"))return Y.Children.forEach(e.props.children,(r,n)=>{o.push(...Ye(r,`${t}-${n}`))}),o;if(it(e,"li")){let r=Y.Children.toArray(e.props.children),n=r.findIndex(w=>it(w,"ul")),a=n!==-1,i=a?r.slice(0,n):r,l=a?r.slice(n):[],s=lt(i),{name:c,comment:d}=ur(s),p=c.endsWith("/"),f=p?c.slice(0,-1):c,b=a||p;return o.push({id:`${t}-${f}`,name:f,comment:d,isFolder:b,children:a?Ye(l[0],`${t}-${f}`):void 0}),o}return e.props&&typeof e.props=="object"&&"children"in e.props&&Y.Children.forEach(e.props.children,(r,n)=>{o.push(...Ye(r,`${t}-${n}`))}),o}function Co({item:e}){return(0,P.jsxs)(j.TreeItem,{id:e.id,textValue:e.name,className:"outline-none group focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md",children:[(0,P.jsx)(j.TreeItemContent,{children:({isExpanded:t,hasChildItems:o})=>(0,P.jsxs)("div",{className:"flex items-center gap-2 py-1 px-1.5 rounded-md transition-colors hover:bg-primary-500/5 cursor-pointer",children:[(0,P.jsx)("div",{style:{width:"calc((var(--tree-item-level) - 1) * 1rem)"},className:"shrink-0"}),o?(0,P.jsx)(j.Button,{slot:"chevron",className:"outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors",children:(0,P.jsx)(G.ChevronRight,{size:14,strokeWidth:3,className:m("transition-transform duration-200",t&&"rotate-90")})}):(0,P.jsx)("div",{className:"w-[18px]"}),mr(e.name,e.isFolder),(0,P.jsx)("span",{className:m("text-sm transition-colors truncate select-none",e.isFolder?"font-semibold text-text-main":"text-text-muted group-hover:text-text-main"),children:e.name}),e.comment&&(0,P.jsxs)("span",{className:"ml-2 text-xs italic text-text-dim opacity-70 group-hover:opacity-100 transition-opacity whitespace-nowrap overflow-hidden text-ellipsis font-sans",children:["//"," ",e.comment]})]})}),e.children&&(0,P.jsx)(j.Collection,{items:e.children,children:t=>(0,P.jsx)(Co,{item:t})})]})}function Ro({children:e}){let t=(0,Y.useMemo)(()=>Ye(e),[e]);return(0,P.jsx)("div",{className:"my-8",children:(0,P.jsx)(j.Tree,{items:t,"aria-label":"File Tree",className:m("rounded-xl border border-border-subtle bg-bg-surface/50 p-4 font-mono text-sm shadow-sm backdrop-blur-sm outline-none","max-h-[500px] overflow-y-auto scrollbar-thin scrollbar-thumb-border-subtle","focus-visible:ring-2 focus-visible:ring-primary-500/20"),children:o=>(0,P.jsx)(Co,{item:o})})})}var Se=A(require("react-aria-components"));var Re=require("react");function wo({data:e,sortable:t=!1,paginated:o=!1,pageSize:r=10}){let[n,a]=(0,Re.useState)(null),[i,l]=(0,Re.useState)(1),s=(0,Re.useMemo)(()=>{if(!e)return[];let f=[...e];return t&&n!==null&&f.sort((b,w)=>{let L=b[n.key],g=w[n.key],W=typeof L=="string"?L:"",h=typeof g=="string"?g:"";return W<h?n.direction==="asc"?-1:1:W>h?n.direction==="asc"?1:-1:0}),f},[e,n,t]),c=Math.ceil(s.length/r),d=(0,Re.useMemo)(()=>{if(!o)return s;let f=(i-1)*r;return s.slice(f,f+r)},[s,o,i,r]);return{sortConfig:n,currentPage:i,setCurrentPage:l,totalPages:c,paginatedData:d,requestSort:f=>{if(!t)return;let b="asc";n&&n.key===f&&n.direction==="asc"&&(b="desc"),a({key:f,direction:b})}}}var z=require("lucide-react");var y=require("react/jsx-runtime");function Po({headers:e,data:t,children:o,className:r="",sortable:n=!1,paginated:a=!1,pageSize:i=10}){let{sortConfig:l,currentPage:s,setCurrentPage:c,totalPages:d,paginatedData:p,requestSort:f}=wo({data:t,sortable:n,paginated:a,pageSize:i}),b=L=>n?l?.key!==L?(0,y.jsx)(z.ChevronDown,{size:14,className:"ml-1 opacity-30"}):l.direction==="asc"?(0,y.jsx)(z.ChevronUp,{size:14,className:"ml-1 text-primary-400"}):(0,y.jsx)(z.ChevronDown,{size:14,className:"ml-1 text-primary-400"}):null,w=o||(0,y.jsxs)(y.Fragment,{children:[e&&(0,y.jsx)("thead",{children:(0,y.jsx)("tr",{children:e.map((L,g)=>(0,y.jsx)("th",{onClick:()=>f(g),className:m("text-left px-3 py-2.5 border-b-2 border-border-subtle text-text-main font-semibold text-sm",n&&"cursor-pointer select-none hover:text-primary-400 transition-colors"),children:(0,y.jsxs)("div",{className:"flex items-center",children:[L,b(g)]})},g))})}),p&&(0,y.jsx)("tbody",{children:p.map((L,g)=>(0,y.jsx)("tr",{className:"transition-colors hover:bg-bg-surface",children:L.map((W,h)=>(0,y.jsx)("td",{className:"px-3 py-2 border-b border-border-subtle text-sm text-text-muted",children:W},h))},g))})]});return(0,y.jsxs)("div",{className:m("my-6 rounded-lg border border-border-subtle overflow-hidden",r),children:[(0,y.jsx)("div",{className:"overflow-x-auto",children:(0,y.jsx)("table",{className:"w-full border-collapse text-sm",children:w})}),a&&d>1&&(0,y.jsxs)("div",{className:"flex items-center justify-between border-t border-border-subtle px-4 py-3",children:[(0,y.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",s," of ",d]}),(0,y.jsxs)("div",{className:"flex items-center gap-1",children:[(0,y.jsx)(Se.Button,{onPress:()=>c(1),isDisabled:s===1,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(z.ChevronsLeft,{size:16})}),(0,y.jsx)(Se.Button,{onPress:()=>c(L=>Math.max(L-1,1)),isDisabled:s===1,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(z.ChevronLeft,{size:16})}),(0,y.jsx)(Se.Button,{onPress:()=>c(L=>Math.min(L+1,d)),isDisabled:s===d,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(z.ChevronRight,{size:16})}),(0,y.jsx)(Se.Button,{onPress:()=>c(d),isDisabled:s===d,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(z.ChevronsRight,{size:16})})]})]})]})}var D=require("react/jsx-runtime");function No({name:e,type:t,defaultValue:o,required:r=!1,children:n,id:a,className:i=""}){return(0,D.jsxs)("article",{className:m("group relative my-6 rounded-xl border border-border-subtle bg-bg-surface p-5 transition-all duration-300","hover:border-primary-500/30 hover:shadow-lg hover:shadow-primary-500/5",i),id:a,children:[(0,D.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,D.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[(0,D.jsx)("code",{className:"inline-flex items-center rounded-md bg-primary-500/10 px-2.5 py-1 font-mono text-sm font-bold text-primary-400 border border-primary-500/20 shadow-sm transition-colors group-hover:bg-primary-500/15",children:e}),t&&(0,D.jsx)("span",{className:"rounded-md bg-bg-muted/80 border border-border-subtle px-2 py-0.5 text-[11px] font-semibold text-text-muted uppercase tracking-wider shadow-sm",children:t}),r&&(0,D.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full bg-red-500/10 px-2.5 py-0.5 text-[10px] font-bold uppercase tracking-wider text-red-400 border border-red-500/20 shadow-sm",children:[(0,D.jsx)("span",{className:"h-1 w-1 rounded-full bg-red-400 animate-pulse"}),"Required"]})]}),o&&(0,D.jsxs)("div",{className:"flex items-center gap-2 text-[11px] text-text-muted bg-bg-muted/30 px-2.5 py-1 rounded-md border border-border-subtle/50",children:[(0,D.jsx)("span",{className:"font-semibold opacity-60 uppercase tracking-tighter",children:"Default"}),(0,D.jsx)("code",{className:"font-mono text-text-main font-medium",children:o})]})]}),(0,D.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30",children:n})]})}var ko=require("react/jsx-runtime");function To({to:e,children:t,className:o="",...r}){let n=e&&(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")),a=m("text-blue-600 hover:text-blue-800 hover:underline cursor-pointer",o);return(0,ko.jsx)(de,{href:e,className:a,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,...r,children:t})}var Ao=require("react/jsx-runtime");function Lo({src:e,alt:t,theme:o,...r}){let{theme:n}=At();return o&&o!==n?null:(0,Ao.jsx)("img",{src:e,alt:t||"",...r})}var R=require("react/jsx-runtime");function Mo({title:e,props:t,className:o=""}){return(0,R.jsxs)("div",{className:m("my-6",o),children:[e&&(0,R.jsx)("h3",{className:"text-base font-bold text-text-main mb-3",children:e}),(0,R.jsx)("div",{className:"overflow-x-auto rounded-lg border border-border-subtle",children:(0,R.jsxs)("table",{className:"w-full border-collapse text-sm",children:[(0,R.jsx)("thead",{children:(0,R.jsxs)("tr",{children:[(0,R.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Property"}),(0,R.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Type"}),(0,R.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Default"}),(0,R.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Description"})]})}),(0,R.jsx)("tbody",{children:t.map((r,n)=>(0,R.jsxs)("tr",{className:"transition-colors hover:bg-bg-surface",children:[(0,R.jsxs)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:[(0,R.jsx)("code",{className:"rounded bg-bg-surface px-1.5 py-0.5 font-mono text-xs font-bold text-primary-400",children:r.name}),r.required&&(0,R.jsx)("span",{className:"ml-1 text-red-400 font-bold",children:"*"})]}),(0,R.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:(0,R.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted",children:r.type})}),(0,R.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:r.defaultValue?(0,R.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400",children:r.defaultValue}):(0,R.jsx)("span",{className:"text-text-dim",children:"\u2014"})}),(0,R.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle text-text-muted",children:r.description})]},`${r.name}-${n}`))})]})})]})}var ct=require("react");function Bo(e){let{code:t,children:o,preview:r}=e,n=(0,ct.useMemo)(()=>(t??(typeof o=="string"?o:"")).trim(),[t,o]),a=(0,ct.useMemo)(()=>r??(typeof o!="string"?o:null),[r,o]);return{initialCode:n,previewElement:a}}var we=require("react/jsx-runtime");function Eo(e){let{highlightedHtml:t,hideCode:o=!1,hideCopy:r=!1}=e,{initialCode:n,previewElement:a}=Bo(e);return(0,we.jsxs)("div",{className:"my-6 overflow-hidden rounded-xl border border-border-subtle",children:[(0,we.jsx)("div",{className:"flex items-center justify-center p-8 bg-bg-surface",children:a}),!o&&(0,we.jsx)("div",{className:"border-t border-border-subtle",children:(0,we.jsx)(ie,{hideCopy:r,lang:"tsx",highlightedHtml:t,plain:!0,children:n})})]})}var Ho=require("react"),ne=require("lucide-react");var So=require("react/jsx-runtime"),dt=({children:e,className:t,vertical:o=!1})=>(0,So.jsx)("div",{className:m("inline-flex",o?"flex-col":"flex-row",!o&&["[&>*:not(:first-child)]:-ml-px","[&>*:first-child]:rounded-r-none","[&>*:last-child]:rounded-l-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-l-full","[&>*:last-child]:rounded-r-full"],t?.includes("rounded-xl")&&["[&>*:first-child]:rounded-l-xl","[&>*:last-child]:rounded-r-xl"],t?.includes("rounded-lg")&&["[&>*:first-child]:rounded-l-lg","[&>*:last-child]:rounded-r-lg"]],o&&["[&>*:not(:first-child)]:-mt-px","[&>*:first-child]:rounded-b-none","[&>*:last-child]:rounded-t-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-t-full","[&>*:last-child]:rounded-b-full"]],t),children:e});var Te=require("lucide-react"),mt=A(require("react")),k=A(require("react-aria-components"));var Ne=A(require("react-aria-components"));var Pe=require("react/jsx-runtime"),pt=({children:e,className:t,showArrow:o,...r})=>(0,Pe.jsxs)(Ne.Popover,{offset:8,...r,className:Ne.composeRenderProps(t,n=>m("z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none transition-none",n)),children:[o&&(0,Pe.jsx)(Ne.OverlayArrow,{className:"group",children:(0,Pe.jsx)("svg",{viewBox:"0 0 12 12",className:"block h-3 w-3 fill-bg-surface/80 stroke-border-subtle group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90","aria-hidden":"true",children:(0,Pe.jsx)("path",{d:"M0 0 L6 6 L12 0"})})}),e]});var T=require("react/jsx-runtime");function fr(e){let[t,o]=mt.default.Children.toArray(e.children).slice(0,2);return(0,T.jsxs)(k.MenuTrigger,{...e,children:[t,(0,T.jsx)(pt,{placement:e.placement,className:"min-w-35",children:o})]})}function gr(e){let[t,o]=mt.default.Children.toArray(e.children).slice(0,2);return(0,T.jsxs)(k.SubmenuTrigger,{...e,children:[t,(0,T.jsx)(pt,{offset:-4,crossOffset:-4,children:o})]})}function O(e){return(0,T.jsx)(k.Menu,{...e,className:k.composeRenderProps(e.className,t=>m("p-1.5 outline-none max-h-[inherit] overflow-auto max-w-75",t))})}function hr(e){let t=e.textValue||(typeof e.children=="string"?e.children:void 0);return(0,T.jsx)(k.MenuItem,{...e,textValue:t,className:k.composeRenderProps(e.className,(o,{isFocused:r,isPressed:n,isDisabled:a})=>m("group relative flex flex-row items-center gap-2 px-2 py-1 rounded-lg outline-none cursor-default hover:cursor-pointer transition-none","text-text-main text-[12px]",{"bg-bg-surface-elevated text-primary-600 ring-1 ring-border-strong/5":r,"bg-bg-surface-elevanted":n,"opacity-40 grayscale pointer-events-none":a},o)),children:k.composeRenderProps(e.children,(o,{selectionMode:r,isSelected:n,hasSubmenu:a})=>(0,T.jsxs)(T.Fragment,{children:[r!=="none"&&(0,T.jsxs)("span",{className:"flex items-center size-4 shrink-0 justify-center",children:[n&&r==="multiple"&&(0,T.jsx)(Te.Check,{className:"size-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200"}),n&&r==="single"&&(0,T.jsx)(Te.Dot,{className:"size-5 text-primary-500 animate-in zoom-in-50 duration-200"})]}),(0,T.jsx)("div",{className:"flex flex-row w-full transition-colors items-center gap-2 py-1 px-1",children:o}),a&&(0,T.jsx)(Te.ChevronRight,{className:"size-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors"})]}))})}function xr({title:e,...t}){return(0,T.jsxs)(k.MenuSection,{...t,className:m("flex flex-col gap-0.5",t.className),children:[e&&(0,T.jsx)(k.Header,{className:"px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none",children:e}),(0,T.jsx)(k.Collection,{items:t.items,children:t.children})]})}function br(e){return(0,T.jsx)(k.Separator,{...e,className:"mx-2 my-1.5 border-t border-border-subtle/50"})}O.Root=O;O.Item=hr;O.Trigger=fr;O.SubTrigger=gr;O.Section=xr;O.Separator=br;var Vo=require("react/jsx-runtime");function E({className:e,variant:t="rect",...o}){return(0,Vo.jsx)("div",{className:m("animate-pulse bg-bg-muted",t==="circle"?"rounded-full":"rounded-md",e),...o})}var vr=require("react-aria-components"),yr=require("react-aria-components");var M=require("react/jsx-runtime"),Cr=e=>{let[t,o]=(0,Ho.useState)(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)},handleOpenRaw:()=>{let a=new Blob([e],{type:"text/plain;charset=utf-8"}),i=URL.createObjectURL(a);window.open(i,"_blank")}}};function Io({content:e,mdxRaw:t,config:o}){let r=t||e||"",{copied:n,handleCopy:a,handleOpenRaw:i}=Cr(r),l=o!==!1,s=typeof o=="object"&&o.text||"Copy Markdown";return!l||!r?null:(0,M.jsx)("div",{className:"relative inline-flex z-100 flex-shrink-0 w-max translate-y-0 active:translate-y-px transition-transform duration-200",children:(0,M.jsxs)(dt,{className:"rounded-xl border border-border-subtle bg-bg-surface/40 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:shadow-lg hover:shadow-primary-500/5 group overflow-hidden",children:[(0,M.jsx)(pe,{variant:"ghost",onPress:a,icon:n?(0,M.jsx)(ne.Check,{size:16}):(0,M.jsx)(ne.Copy,{size:16}),iconPosition:"left",className:m("px-5 py-2 bg-transparent text-[0.8125rem] font-semibold h-9 border-none shrink-0","text-text-main transition-all duration-300 hover:bg-primary-500/5",n&&"text-emerald-500 hover:bg-emerald-500/5"),children:n?"Copied!":s}),(0,M.jsxs)(O.Trigger,{placement:"bottom end",children:[(0,M.jsx)(pe,{variant:"ghost",isIconOnly:!0,icon:(0,M.jsx)(ne.ChevronDown,{size:14}),className:m("px-3.5 h-9 border-l border-border-subtle/50 text-text-muted rounded-none bg-transparent shrink-0","transition-all duration-300 hover:bg-primary-500/5 hover:text-primary-500")}),(0,M.jsxs)(O.Root,{className:"w-52",children:[(0,M.jsxs)(O.Item,{onAction:a,children:[(0,M.jsx)(ne.Copy,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),(0,M.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"Copy Markdown"})]}),(0,M.jsxs)(O.Item,{onAction:i,children:[(0,M.jsx)(ne.ExternalLink,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),(0,M.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"View as Markdown"})]})]})]})]})})}var C=require("react/jsx-runtime");function zo(){return(0,C.jsx)("div",{className:m("w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in"),children:(0,C.jsxs)("div",{className:"mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10",children:[(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(E,{className:"h-3 w-16"}),(0,C.jsx)(E,{className:"h-3 w-24"})]}),(0,C.jsx)(E,{className:"h-10 w-[60%] sm:h-12"}),(0,C.jsxs)("div",{className:"space-y-3",children:[(0,C.jsx)(E,{className:"h-4 w-full"}),(0,C.jsx)(E,{className:"h-4 w-[95%]"}),(0,C.jsx)(E,{className:"h-4 w-[40%]"})]}),(0,C.jsxs)("div",{className:"space-y-6 pt-4",children:[(0,C.jsx)(E,{className:"h-7 w-32"}),(0,C.jsxs)("div",{className:"space-y-3",children:[(0,C.jsx)(E,{className:"h-4 w-full"}),(0,C.jsx)(E,{className:"h-4 w-[98%]"}),(0,C.jsx)(E,{className:"h-4 w-[92%]"}),(0,C.jsx)(E,{className:"h-4 w-[60%]"})]})]}),(0,C.jsx)(E,{className:"h-32 w-full rounded-lg bg-bg-muted/50"}),(0,C.jsxs)("div",{className:"space-y-6 pt-4",children:[(0,C.jsx)(E,{className:"h-7 w-48"}),(0,C.jsxs)("div",{className:"space-y-3",children:[(0,C.jsx)(E,{className:"h-4 w-full"}),(0,C.jsx)(E,{className:"h-4 w-[85%]"})]})]})]})})}var _=require("react/jsx-runtime"),ke=({level:e,id:t,children:o,...r})=>{let n=`h${e}`;return(0,_.jsxs)(n,{id:t,...r,className:"boltdocs-heading",children:[o,t&&(0,_.jsx)("a",{href:`#${t}`,className:"header-anchor","aria-label":"Anchor",children:(0,_.jsx)(Do.Link,{size:16})})]})},Oo={...ut,Loading:zo,h1:e=>(0,_.jsx)(ke,{level:1,...e}),h2:e=>(0,_.jsx)(ke,{level:2,...e}),h3:e=>(0,_.jsx)(ke,{level:3,...e}),h4:e=>(0,_.jsx)(ke,{level:4,...e}),h5:e=>(0,_.jsx)(ke,{level:5,...e}),h6:e=>(0,_.jsx)(ke,{level:6,...e}),pre:e=>(0,_.jsx)(ie,{...e,children:e.children})};var Wo=A(require("virtual:boltdocs-mdx-components"));var Fo=require("react-router-dom");var x=require("react/jsx-runtime");function wr(){let{currentLocale:e,config:t}=Le();return(0,V.useEffect)(()=>{if(!t.i18n)return;let o=t.i18n.localeConfigs?.[e];document.documentElement.lang=o?.htmlLang||e||"en",document.documentElement.dir=o?.direction||"ltr"},[e,t.i18n]),null}function Pr(){let e=(0,Fo.useLocation)(),{config:t}=Le(),o=Q(i=>i.setLocale),r=Q(i=>i.setVersion),n=Q(i=>i.currentLocale),a=Q(i=>i.currentVersion);return(0,V.useEffect)(()=>{let i=e.pathname.split("/").filter(Boolean),l=0,s=t.versions?.defaultVersion,c=t.i18n?.defaultLocale;if(i[l]==="docs"&&l++,t.versions&&i.length>l){let d=t.versions.versions.find(p=>p.path===i[l]);d&&(s=d.path,l++)}t.i18n&&i.length>l&&t.i18n.locales[i[l]]?c=i[l]:t.i18n&&i.length===0&&(c=n||t.i18n.defaultLocale),c!==n&&o(c),s!==a&&r(s)},[e.pathname,t,o,r,n,a]),null}function $o({initialRoutes:e,initialConfig:t,docsDirName:o,modules:r,hot:n,homePage:a,externalPages:i,externalLayout:l,components:s={}}){let[c,d]=(0,V.useState)(e),[p,f]=(0,V.useState)(t),b=i||{},w=l||ft.default,L=(0,V.useMemo)(()=>c.filter(h=>!(a&&(h.path==="/"||h.path===""))&&!b[h.path===""?"/":h.path]).map(h=>{let F=Object.keys(r).find(Z=>Z===`/${o}/${h.filePath}`||Z.endsWith(`/${o}/${h.filePath}`)||Z.endsWith(`/${o}\\${h.filePath.replace(/\\/g,"/")}`)),ce=F?r[F]:null;return{...h,Component:V.default.lazy(async()=>ce?await ce():{default:ot})}}),[c,r,o,a,b]);(0,V.useEffect)(()=>{n&&(n.on("boltdocs:routes-update",h=>{d(h)}),n.on("boltdocs:config-update",h=>{f(h)}))},[n]);let g=(0,V.useMemo)(()=>({...Oo,...Wo.default,...s}),[s]),W=g.Loading;return(0,x.jsx)(Lt,{children:(0,x.jsx)(Gt,{components:g,children:(0,x.jsx)(Ze.Provider,{value:p,children:(0,x.jsx)(St,{children:(0,x.jsxs)(bt,{routes:c,modules:r,children:[(0,x.jsx)(zt,{}),(0,x.jsx)(Pr,{}),(0,x.jsx)(wr,{}),(0,x.jsxs)(X.Routes,{children:[(0,x.jsx)(X.Route,{element:(0,x.jsx)(Wt,{}),children:L.map(h=>(0,x.jsx)(X.Route,{path:h.path===""?"/":h.path,element:(0,x.jsx)(V.default.Suspense,{fallback:(0,x.jsx)(W,{}),children:(0,x.jsx)(Ut,{Component:h.Component})})},h.path))},"docs-layout"),a&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(X.Route,{path:"/",element:(0,x.jsx)(w,{children:(0,x.jsx)(a,{})})}),p.i18n&&Object.keys(p.i18n.locales).map(h=>(0,x.jsx)(X.Route,{path:`/${h}`,element:(0,x.jsx)(w,{children:(0,x.jsx)(a,{})})},`home-${h}`))]}),Object.entries(b).map(([h,F])=>{let ce=h==="/"?"":h;return(0,x.jsxs)(V.default.Fragment,{children:[(0,x.jsx)(X.Route,{path:h,element:(0,x.jsx)(w,{children:(0,x.jsx)(F,{})})}),p.i18n&&Object.keys(p.i18n.locales).map(Z=>(0,x.jsx)(X.Route,{path:`/${Z}${ce}`,element:(0,x.jsx)(w,{children:(0,x.jsx)(F,{})})},`${h}-${Z}`))]},h)}),(0,x.jsx)(X.Route,{path:"*",element:(0,x.jsx)(ft.default,{children:(0,x.jsx)(ot,{})})})]})]})})})})})}var je=require("react/jsx-runtime");async function Nr(e){let{path:t,routes:o,config:r,modules:n,homePage:a,externalPages:i,docsDirName:l}=e,s={};for(let[d,p]of Object.entries(n))s[d]=()=>Promise.resolve(p);return _o.default.renderToString((0,je.jsx)(Go.default.StrictMode,{children:(0,je.jsx)(Uo.StaticRouter,{location:t,children:(0,je.jsx)($o,{initialRoutes:o,initialConfig:r,docsDirName:l,modules:s,homePage:a,externalPages:i})})}))}0&&(module.exports={render});
@@ -1 +0,0 @@
1
- #!/usr/bin/env node