boltdocs 2.6.2 → 2.7.0

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 (177) hide show
  1. package/bin/boltdocs.js +0 -1
  2. package/dist/cache-CQKlT4fI.mjs +6 -0
  3. package/dist/cache-DorPMFgW.cjs +6 -0
  4. package/dist/cards-BLoSiRuL.d.ts +30 -0
  5. package/dist/cards-CQn9mXZS.d.cts +30 -0
  6. package/dist/chunk-Ds5LZdWN.cjs +6 -0
  7. package/dist/client/index.cjs +1 -1
  8. package/dist/client/index.d.cts +167 -1338
  9. package/dist/client/index.d.ts +166 -1337
  10. package/dist/client/index.js +1 -1
  11. package/dist/{package-CFP44vfn.cjs → client/mdx.cjs} +1 -1
  12. package/dist/client/mdx.d.cts +128 -0
  13. package/dist/client/mdx.d.ts +129 -0
  14. package/dist/client/mdx.js +6 -0
  15. package/dist/client/primitives.cjs +6 -0
  16. package/dist/client/primitives.d.cts +818 -0
  17. package/dist/client/primitives.d.ts +818 -0
  18. package/dist/client/primitives.js +6 -0
  19. package/dist/client/theme/neutral.css +74 -361
  20. package/dist/client/theme/reset.css +189 -0
  21. package/dist/docs-layout-BlDhcQRv.cjs +6 -0
  22. package/dist/docs-layout-BvAOWEJw.js +6 -0
  23. package/dist/doctor-BQiQhCTl.cjs +6 -0
  24. package/dist/doctor-COpf35L2.cjs +20 -0
  25. package/dist/doctor-Dh1XP7Pz.mjs +20 -0
  26. package/dist/generator-DGW6pkCC.cjs +22 -0
  27. package/dist/generator-Dv3wEmhZ.mjs +22 -0
  28. package/dist/icons-dev-CrQLjoQp.js +6 -0
  29. package/dist/icons-dev-rzdz6Lf3.cjs +6 -0
  30. package/dist/image-BkIfa9oo.js +6 -0
  31. package/dist/image-DIGjCPe6.cjs +6 -0
  32. package/dist/mdx-K0WYBAJ3.js +7 -0
  33. package/dist/mdx-hpErbRUe.cjs +7 -0
  34. package/dist/meta-loader-0gJ4PtBC.cjs +6 -0
  35. package/dist/meta-loader-9IpAHWDS.mjs +6 -0
  36. package/dist/node/cli-entry.cjs +1 -2
  37. package/dist/node/cli-entry.mjs +1 -2
  38. package/dist/node/index.cjs +1 -1
  39. package/dist/node/index.d.cts +55 -11
  40. package/dist/node/index.d.mts +55 -12
  41. package/dist/node/index.mjs +1 -1
  42. package/dist/node/routes/worker.cjs +6 -0
  43. package/dist/node/routes/worker.d.cts +2 -0
  44. package/dist/node/routes/worker.d.mts +2 -0
  45. package/dist/node/routes/worker.mjs +6 -0
  46. package/dist/node-C2nWXElP.mjs +112 -0
  47. package/dist/node-CinkUtxV.cjs +112 -0
  48. package/dist/package-BMYLDBBP.cjs +6 -0
  49. package/dist/{package-Bqbn1AYK.mjs → package-HegMOTL_.mjs} +1 -1
  50. package/dist/parser-Bh11BsdA.cjs +6 -0
  51. package/dist/parser-D8eQvE7N.mjs +6 -0
  52. package/dist/parser-DYRzXWmA.cjs +6 -0
  53. package/dist/routes-CHf76Ye4.cjs +6 -0
  54. package/dist/routes-CMUZGI6T.mjs +6 -0
  55. package/dist/routes-Co1mRM58.cjs +6 -0
  56. package/dist/search-dialog-BACuzoVX.cjs +6 -0
  57. package/dist/search-dialog-BKagVT17.js +6 -0
  58. package/dist/search-dialog-C8w12eUx.js +6 -0
  59. package/dist/search-dialog-CGyrozZE.cjs +6 -0
  60. package/dist/search-dialog-D26rUnJ_.cjs +6 -0
  61. package/dist/sidebar-DKvg6KOc.d.cts +491 -0
  62. package/dist/sidebar-Dr1TiRIy.d.ts +491 -0
  63. package/dist/utils-BxNAXhZZ.mjs +7 -0
  64. package/dist/utils-Clzu7jvb.cjs +7 -0
  65. package/dist/worker-pool-Bd8Y9KDv.mjs +6 -0
  66. package/dist/worker-pool-BwU8ckrg.cjs +6 -0
  67. package/package.json +27 -8
  68. package/src/client/app/doc-page.tsx +9 -5
  69. package/src/client/app/docs-layout.tsx +17 -3
  70. package/src/client/app/head.tsx +122 -0
  71. package/src/client/app/helmet-compat.tsx +36 -0
  72. package/src/client/app/mdx-component.tsx +5 -52
  73. package/src/client/app/mdx-components-context.tsx +32 -8
  74. package/src/client/app/routes-context.tsx +2 -2
  75. package/src/client/app/scroll-handler.tsx +1 -1
  76. package/src/client/app/theme-context.tsx +5 -5
  77. package/src/client/app/ui-context.tsx +42 -0
  78. package/src/client/components/docs-layout-default.tsx +85 -0
  79. package/src/client/components/icons-dev.tsx +38 -15
  80. package/src/client/components/mdx/callout.tsx +97 -0
  81. package/src/client/components/mdx/card.tsx +73 -98
  82. package/src/client/components/mdx/cards.tsx +27 -0
  83. package/src/client/components/mdx/code-block.tsx +37 -17
  84. package/src/client/components/mdx/field.tsx +24 -56
  85. package/src/client/components/mdx/image.tsx +36 -15
  86. package/src/client/components/mdx/index.ts +19 -53
  87. package/src/client/components/mdx/table.tsx +46 -148
  88. package/src/client/components/mdx/typographics.tsx +120 -0
  89. package/src/client/components/mdx/{hooks/use-code-block.ts → use-code-block.ts} +5 -7
  90. package/src/client/components/primitives/breadcrumbs.tsx +5 -24
  91. package/src/client/components/primitives/button.tsx +3 -142
  92. package/src/client/components/primitives/code-block.tsx +104 -97
  93. package/src/client/components/{docs-layout.tsx → primitives/docs-layout.tsx} +15 -24
  94. package/src/client/components/primitives/error-boundary.tsx +107 -0
  95. package/src/client/components/primitives/heading.tsx +128 -0
  96. package/src/client/components/primitives/helpers/observer.ts +62 -32
  97. package/src/client/components/primitives/image.tsx +26 -0
  98. package/src/client/components/primitives/link.tsx +50 -52
  99. package/src/client/components/primitives/menu.tsx +25 -49
  100. package/src/client/components/primitives/navbar.tsx +234 -59
  101. package/src/client/components/primitives/on-this-page.tsx +169 -40
  102. package/src/client/components/primitives/page-nav.tsx +11 -39
  103. package/src/client/components/primitives/popover.tsx +12 -30
  104. package/src/client/components/primitives/search-dialog.tsx +77 -71
  105. package/src/client/components/primitives/sidebar.tsx +312 -119
  106. package/src/client/components/primitives/skeleton.tsx +1 -1
  107. package/src/client/components/primitives/tabs.tsx +5 -16
  108. package/src/client/components/primitives/tooltip.tsx +1 -1
  109. package/src/client/components/ui-base/banner.tsx +66 -0
  110. package/src/client/components/ui-base/breadcrumbs.tsx +26 -20
  111. package/src/client/components/ui-base/copy-markdown.tsx +43 -35
  112. package/src/client/components/ui-base/error-boundary.tsx +9 -46
  113. package/src/client/components/ui-base/github-stars.tsx +5 -3
  114. package/src/client/components/ui-base/index.ts +3 -3
  115. package/src/client/components/ui-base/last-updated.tsx +27 -0
  116. package/src/client/components/ui-base/navbar.tsx +183 -89
  117. package/src/client/components/ui-base/not-found.tsx +11 -9
  118. package/src/client/components/ui-base/on-this-page.tsx +8 -104
  119. package/src/client/components/ui-base/page-nav.tsx +23 -9
  120. package/src/client/components/ui-base/search-dialog.tsx +111 -36
  121. package/src/client/components/ui-base/search-highlight.tsx +10 -0
  122. package/src/client/components/ui-base/sidebar.tsx +77 -154
  123. package/src/client/components/ui-base/tabs.tsx +20 -7
  124. package/src/client/components/ui-base/theme-toggle.tsx +88 -10
  125. package/src/client/components/ui-base/version-i18n.tsx +80 -0
  126. package/src/client/hooks/index.ts +2 -1
  127. package/src/client/hooks/use-analytics.ts +272 -0
  128. package/src/client/hooks/use-i18n.ts +116 -50
  129. package/src/client/hooks/use-localized-to.ts +70 -27
  130. package/src/client/hooks/use-navbar.ts +69 -39
  131. package/src/client/hooks/use-page-nav.ts +28 -25
  132. package/src/client/hooks/use-routes.ts +63 -80
  133. package/src/client/hooks/use-search-highlight.ts +185 -0
  134. package/src/client/hooks/use-search.ts +12 -3
  135. package/src/client/hooks/use-sidebar.ts +183 -80
  136. package/src/client/hooks/use-tabs.ts +3 -4
  137. package/src/client/hooks/use-version.ts +44 -29
  138. package/src/client/index.ts +13 -87
  139. package/src/client/mdx.ts +2 -0
  140. package/src/client/primitives.ts +19 -0
  141. package/src/client/ssg/boltdocs-shell.tsx +68 -79
  142. package/src/client/ssg/create-routes.tsx +268 -72
  143. package/src/client/ssg/mdx-page.tsx +2 -1
  144. package/src/client/store/boltdocs-context.tsx +72 -20
  145. package/src/client/theme/neutral.css +74 -361
  146. package/src/client/theme/reset.css +189 -0
  147. package/src/client/types.ts +10 -2
  148. package/src/client/utils/path.ts +9 -0
  149. package/src/client/utils/react-to-text.ts +24 -24
  150. package/src/client/virtual.d.ts +1 -1
  151. package/src/shared/types.ts +82 -22
  152. package/dist/node-Bogvkxao.mjs +0 -101
  153. package/dist/node-CXaog6St.cjs +0 -101
  154. package/dist/search-dialog-CV3eJzMm.cjs +0 -6
  155. package/dist/search-dialog-DNTomKgu.js +0 -6
  156. package/dist/use-search-CS3gH19M.js +0 -6
  157. package/dist/use-search-DBpJZQuw.cjs +0 -6
  158. package/src/client/components/mdx/admonition.tsx +0 -91
  159. package/src/client/components/mdx/badge.tsx +0 -41
  160. package/src/client/components/mdx/button.tsx +0 -35
  161. package/src/client/components/mdx/component-preview.tsx +0 -37
  162. package/src/client/components/mdx/component-props.tsx +0 -83
  163. package/src/client/components/mdx/file-tree.tsx +0 -325
  164. package/src/client/components/mdx/hooks/use-component-preview.ts +0 -16
  165. package/src/client/components/mdx/hooks/useTable.ts +0 -74
  166. package/src/client/components/mdx/hooks/useTabs.ts +0 -68
  167. package/src/client/components/mdx/link.tsx +0 -38
  168. package/src/client/components/mdx/list.tsx +0 -192
  169. package/src/client/components/mdx/tabs.tsx +0 -135
  170. package/src/client/components/mdx/video.tsx +0 -68
  171. package/src/client/components/primitives/index.ts +0 -19
  172. package/src/client/components/primitives/navigation-menu.tsx +0 -114
  173. package/src/client/components/ui-base/head.tsx +0 -83
  174. package/src/client/components/ui-base/loading.tsx +0 -57
  175. package/src/client/components/ui-base/powered-by.tsx +0 -25
  176. package/src/client/hooks/use-onthispage.ts +0 -23
  177. package/src/client/utils/use-on-change.ts +0 -15
@@ -3,4 +3,4 @@
3
3
  * Copyright (c) 2026 Jesus Alcala
4
4
  * Licensed under the MIT License.
5
5
  */
6
- import{A as e,B as t,C as n,D as r,E as i,F as a,H as o,I as s,L as c,M as l,N as u,O as d,P as f,R as p,S as m,T as h,U as g,V as _,_ as ee,a as v,b as te,c as ne,d as y,f as re,g as ie,h as ae,i as oe,j as b,k as se,l as x,m as ce,n as S,o as C,p as le,r as w,s as T,t as ue,u as de,v as E,w as fe,x as pe,y as D,z as O}from"../use-search-CS3gH19M.js";import{Outlet as me,useLoaderData as he,useLocation as k,useNavigate as ge}from"react-router-dom";import _e from"virtual:boltdocs-layout";import{Children as A,Component as ve,Suspense as ye,createContext as be,isValidElement as j,lazy as xe,use as Se,useCallback as M,useEffect as N,useLayoutEffect as Ce,useMemo as P,useRef as F,useState as I}from"react";import{Fragment as L,jsx as R,jsxs as z}from"react/jsx-runtime";import*as B from"react-aria-components";import{Button as V,RouterProvider as we}from"react-aria-components";import*as Te from"react-helmet-async";import*as Ee from"lucide-react";import{AlertTriangle as De,ArrowLeft as Oe,Bookmark as ke,Check as H,ChevronDown as U,ChevronLeft as Ae,ChevronRight as W,ChevronUp as je,ChevronsLeft as Me,ChevronsRight as Ne,Circle as Pe,CircleHelp as Fe,Copy as Ie,ExternalLink as Le,File as Re,FileCode as ze,FileImage as Be,FileText as Ve,Flame as He,Folder as Ue,Home as We,Info as Ge,Languages as Ke,Lightbulb as qe,Link as Je,Monitor as Ye,Moon as Xe,Pencil as Ze,ShieldAlert as Qe,Sun as $e,TextAlignStart as et,Zap as tt}from"lucide-react";import{cva as G}from"class-variance-authority";import nt from"virtual:boltdocs-mdx-components";import rt from"virtual:boltdocs-icons";var it=Object.defineProperty,at=(e,t)=>{let n={};for(var r in e)it(n,r,{get:e[r],enumerable:!0});return t||it(n,Symbol.toStringTag,{value:`Module`}),n};const ot=Symbol.for(`__BDOCS_MDX_COMPONENTS_CONTEXT__`),K=Symbol.for(`__BDOCS_MDX_COMPONENTS_INSTANCE__`),st=globalThis[ot]||(globalThis[ot]=be({}));function ct(){let e=Se(st);return(!e||Object.keys(e).length===0)&&globalThis[K]?globalThis[K]:e}function lt({components:e,children:t}){return typeof globalThis<`u`&&(globalThis[K]=e),R(st.Provider,{value:e,children:t})}function ut({route:e,content:t,mdxComponents:n}){let r=ct(),i=P(()=>({...r,...n}),[r,n]);return t?R(_e,{route:e,children:R(t,{components:i})}):null}function dt({MDXComponent:e,mdxComponents:t}){let n=he(),r=e||n?.MDXComponent,i=t||n?.mdxComponents;return r?R(ut,{route:{path:n.path,filePath:n.filePath,title:n.frontmatter.title,description:n.frontmatter.description,headings:n.headings,locale:n.locale,version:n.version,group:n.group,groupTitle:n.groupTitle},content:r,mdxComponents:i}):null}const ft=Symbol.for(`__BDOCS_THEME_CONTEXT__`),pt=Symbol.for(`__BDOCS_THEME_INSTANCE__`),mt=`boltdocs-theme-change`,ht=globalThis[ft]||(globalThis[ft]=be(void 0));function gt({children:e}){let[t,n]=I(`system`),[r,i]=I(`dark`),a=e=>{let t=window.matchMedia(`(prefers-color-scheme: dark)`),n=e===`dark`||e===`system`&&t.matches,r=window.document.documentElement;r.classList.toggle(`dark`,n),r.dataset.theme=n?`dark`:`light`,i(n?`dark`:`light`)};N(()=>{let e=localStorage.getItem(`boltdocs-theme`);e?(n(e),a(e)):a(`system`);let t=window.matchMedia(`(prefers-color-scheme: dark)`),r=()=>{(localStorage.getItem(`boltdocs-theme`)||`system`)===`system`&&a(`system`)};return t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[]);let o={theme:t,resolvedTheme:r,setTheme:e=>{n(e),localStorage.setItem(`boltdocs-theme`,e),a(e),typeof window<`u`&&window.dispatchEvent(new CustomEvent(mt,{detail:e}))}};return typeof globalThis<`u`&&(globalThis[pt]=o),R(ht.Provider,{value:o,children:e})}function q(){let e=Se(ht),[,t]=I({});if(N(()=>{if(e)return;let n=()=>t({});return window.addEventListener(mt,n),()=>window.removeEventListener(mt,n)},[e]),!e&&typeof globalThis<`u`&&globalThis[pt])return globalThis[pt];if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function _t(){let{pathname:e,hash:t}=k();return Ce(()=>{let e=document.querySelector(`.boltdocs-content`)||window,n=()=>e===window?window.scrollY:e.scrollTop,r=(t,n=`auto`)=>{e===window?window.scrollTo({top:t,behavior:n}):e.scrollTo({top:t,behavior:n})};if(t){let i=t.replace(`#`,``),a=document.getElementById(i);if(a){let t=e===window?0:e.getBoundingClientRect().top;r(a.getBoundingClientRect().top-t-80+n(),`smooth`);return}}r(0)},[e,t]),null}const vt=({className:e,variant:t,size:n,rounded:r,iconSize:i,disabled:a,...o})=>R(c,{className:O(`group`,p({variant:t,size:n,rounded:r,iconSize:i,disabled:a,className:e})),...o}),yt=(e,t)=>{if(e==null||typeof e==`boolean`)return``;if(typeof e==`string`||typeof e==`number`)return String(e);if(Array.isArray(e))return e.map(e=>yt(e,t)).join(``);if(j(e)){let n=t?.get(e.type);return n?n(e.props):yt(e.props.children,t)}return``},bt=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}};function xt(e){let{title:t}=e,[n,r]=I(!1),[i,a]=I(!1),[o,s]=I(!1),c=F(null);_();let l=M(async()=>{bt(c.current?.textContent??``),r(!0),setTimeout(()=>r(!1),2e3)},[]);return N(()=>{s((c.current?.textContent?.length??0)>120)},[e.children,e.highlightedHtml]),{copied:n,isExpanded:i,setIsExpanded:a,isExpandable:o,preRef:c,handleCopy:l,shouldTruncate:o&&!i}}const St=({children:e,className:t,plain:n=!1,...r})=>R(`div`,{className:O(`not-prose boltdocs-code-block`,`group relative overflow-hidden bg-(--color-code-bg)`,`contain-layout contain-paint`,{"my-6 rounded-lg border border-border-subtle":!n},t),...r,children:e}),Ct=({children:e,className:t,...n})=>R(`div`,{className:O(`flex h-9 items-center justify-between px-4 py-1.5`,`border-b border-border-subtle bg-bg-surface/50`,`text-[13px] font-medium text-text-muted`,t),...n,children:e}),wt=({children:e,className:t,...n})=>R(`div`,{className:O(`flex items-center space-x-2`,t),...n,children:e}),Tt=({className:e,children:t,shouldTruncate:n=!1,...r})=>R(`div`,{className:O(`relative`,{"[&>pre]:max-h-62.5 [&>pre]:overflow-hidden":n},e),...r,children:t}),Et={ts:a,tsx:l,js:se,jsx:l,json:e,css:r,html:h,md:b,mdx:b,bash:f,sh:f,yaml:s,yml:s,rs:u,rust:u,toml:i},Dt=({copied:e,handleCopy:t})=>R(fe,{content:e?`Copied!`:`Copy code`,children:R(V,{onPress:t,className:O(`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`,e?`text-emerald-400`:`text-text-muted hover:text-text-main`),"aria-label":`Copy code`,children:R(e?H:Ie,{size:20})})});function J(e){let{children:t,hideCopy:n=!1,highlightedHtml:r,"data-highlighted-html":i,title:a,"data-title":o,"data-lang":s,plain:c=!1,...l}=e,u=r||i,d=a||o,f=e.lang||s||``,{copied:p,isExpanded:m,setIsExpanded:h,isExpandable:g,preRef:_,handleCopy:ee,shouldTruncate:v}=xt(e),te=Et[f];return z(St,{plain:c,className:e.className,children:[(d||!n)&&z(Ct,{children:[R(wt,{children:d&&z(L,{children:[te?R(te,{size:14}):R(Re,{size:14,className:`opacity-60`}),R(`span`,{children:d})]})}),!n&&R(Dt,{copied:p,handleCopy:ee})]}),z(Tt,{shouldTruncate:v,children:[u?R(`div`,{ref:_,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:u}}):R(`pre`,{ref:_,className:`m-0! p-5! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7] overflow-x-auto`,...l,children:yt(t)}),g&&R(`div`,{className:O(v?`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:R(V,{onPress:()=>h(!m),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:m?`Show less`:`Expand code`})})]})]})}function Ot({initialIndex:e=0,tabs:t}){let n=t[e]?.props.disabled?t.findIndex(e=>!e.props.disabled):e,[r,i]=I(n===-1?0:n),a=F([]),[o,s]=I({opacity:0,transform:`translateX(0)`,width:0});return N(()=>{let e=a.current[r];e&&s({opacity:1,width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`})},[r,t]),{active:r,setActive:i,tabRefs:a,indicatorStyle:o,handleKeyDown:M(e=>{let n=0;if(e.key===`ArrowRight`?n=1:e.key===`ArrowLeft`&&(n=-1),n!==0){let e=(r+n+t.length)%t.length;for(;t[e].props.disabled&&e!==r;)e=(e+n+t.length)%t.length;e!==r&&!t[e].props.disabled&&(i(e),a.current[e]?.focus())}},[r,t])}}const kt=G(`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`}}),At=G(`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 jt({children:e}){return R(`div`,{className:`py-4`,children:typeof e==`string`?R(J,{className:`language-bash`,children:R(`code`,{children:e.trim()})}):e})}function Mt({defaultIndex:e=0,children:t}){let n=P(()=>A.toArray(t).filter(e=>j(e)&&e.props?.label),[t]),{active:r,setActive:i,tabRefs:a,indicatorStyle:o}=Ot({initialIndex:e,tabs:n});return R(`div`,{className:`my-8 w-full group/tabs`,children:z(B.Tabs,{selectedKey:r.toString(),onSelectionChange:e=>i(Number(e)),className:`w-full`,children:[z(B.TabList,{"aria-label":`Content Tabs`,className:O(kt()),children:[n.map((e,t)=>{let{label:n,icon:r,disabled:i}=e.props,o=t.toString();return z(B.Tab,{id:o,isDisabled:i,ref:e=>{a.current[t]=e},className:({isSelected:e,isDisabled:t})=>O(At({isActive:e,isDisabled:t})),children:[!!r&&R(`span`,{className:`shrink-0 [&>svg]:w-4 [&>svg]:h-4`,children:r}),R(`span`,{children:n})]},o)}),R(`div`,{className:`absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300 ease-in-out pointer-events-none`,style:o,"aria-hidden":`true`})]}),n.map((e,t)=>R(B.TabPanel,{id:t.toString(),children:n[t]},t))]})})}function Nt({src:e,poster:t,alt:n,children:r,controls:i,preload:a=`metadata`,...o}){let s=F(null),[c,l]=I(!1);return N(()=>{let e=s.current;if(!e)return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&(l(!0),t.disconnect())},{rootMargin:`200px`});return t.observe(e),()=>t.disconnect()},[]),R(`div`,{ref:s,className:`my-6 overflow-hidden rounded-lg border border-border-subtle`,children:c?z(`video`,{className:`block w-full h-auto`,src:e,poster:t,controls:!0,preload:a,playsInline:!0,...o,children:[r,`Your browser does not support the video tag.`]}):R(`div`,{className:`aspect-video bg-bg-surface animate-pulse`,role:`img`,"aria-label":n||`Video`})})}const Pt=G(`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 Ft({variant:e=`default`,children:t,className:n=``,...r}){return R(`span`,{className:O(Pt({variant:e}),n),...r,children:t})}const It=G(`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 Lt({cols:e=3,children:t,className:n=``,...r}){return R(`div`,{className:O(It({cols:e}),n),...r,children:t})}function Rt({title:e,icon:t,href:n,children:r,className:i=``,...a}){let o=F(null),s=F(null),c=M(e=>{let t=o.current||s.current;if(!t)return;let{left:n,top:r}=t.getBoundingClientRect();t.style.setProperty(`--x`,`${e.clientX-n}px`),t.style.setProperty(`--y`,`${e.clientY-r}px`)},[]),l=z(L,{children:[R(`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&&R(`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}),z(`div`,{className:`space-y-1.5`,children:[e&&R(`h3`,{className:`text-sm font-bold text-text-main`,children:e}),r&&R(`div`,{className:`text-sm text-text-muted leading-relaxed`,children:r})]})]}),u=O(`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`,i);return n?R(B.Link,{ref:s,href:n,className:O(u,`no-underline cursor-pointer`),onMouseMove:c,...a,children:l}):R(`div`,{ref:o,role:`presentation`,className:u,onMouseMove:c,...a,children:l})}const zt={note:R(ke,{size:18}),tip:R(qe,{size:18}),info:R(Ge,{size:18}),warning:R(De,{size:18}),danger:R(Qe,{size:18}),important:R(He,{size:18}),caution:R(tt,{size:18})},Bt=G(`py-4 px-4 rounded-lg flex items-center gap-3 border-[1px] flex-row`,{variants:{type:{note:`border-primary-200 dark:border-primary-800 bg-primary-500/5 text-primary-400`,tip:`border-emerald-200 dark:border-emerald-800 bg-emerald-500/5 text-emerald-500`,info:`border-sky-200 dark:border-sky-800 bg-sky-500/5 text-sky-500`,warning:`border-amber-200 dark:border-amber-800 bg-amber-500/5 text-amber-500`,danger:`border-red-200 dark:border-red-800/70 bg-red-500/5 text-red-500`,important:`border-orange-200 dark:border-orange-800/70 bg-orange-500/5 text-orange-500`,caution:`border-yellow-200 dark:border-yellow-800/70 bg-yellow-500/5 text-yellow-500`}},defaultVariants:{type:`note`}});function Y({type:e=`note`,title:t,children:n,className:r=``,...i}){return z(`div`,{className:O(Bt({type:e}),r),role:e===`warning`||e===`danger`?`alert`:`note`,...i,children:[zt[e],R(`div`,{className:`text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0`,children:n})]})}const Vt=e=>R(Y,{type:`note`,...e}),Ht=e=>R(Y,{type:`tip`,...e}),Ut=e=>R(Y,{type:`warning`,...e}),Wt=e=>R(Y,{type:`danger`,...e}),Gt=e=>R(Y,{type:`info`,...e}),Kt=e=>R(Y,{type:`important`,...e}),qt=e=>R(Y,{type:`caution`,...e}),Jt=G(`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}}),Yt=G(`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}}),Xt=G(`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 Zt({icon:e,children:t,variant:n,dense:r}){return z(`li`,{className:O(Yt({variant:n,dense:r})),children:[e&&R(`span`,{className:O(Xt({variant:n===`bubble`?`bubble`:`default`})),children:e}),R(`div`,{className:`flex-1 text-text-muted group-hover:text-text-main transition-colors`,children:t})]})}const Qt={checked:e=>R(H,{size:14,className:O(`text-emerald-500 shrink-0`,e)}),arrow:e=>R(W,{size:14,className:O(`text-primary-400 shrink-0`,e)}),bubble:e=>R(Pe,{size:6,fill:`currentColor`,className:O(`text-primary-500 shrink-0`,e)}),default:()=>null,number:()=>null};function $t({variant:e=`default`,cols:t=1,dense:n=!1,children:r,className:i,...a}){let o=t!==void 0&&Number(t)>1,s=Qt[e],c=Jt({variant:e,cols:t,dense:n,isGrid:o,className:i});return e===`default`||e===`number`?R(e===`number`?`ol`:`ul`,{className:c,...a,children:r}):R(`ul`,{className:c,...a,children:A.map(r,t=>{if(!j(t))return t;let r=t,i=r.type===`li`?r.props.children:r.props.children||t;return R(Zt,{icon:s(),variant:e,dense:n,children:i})})})}const en={ts:a,tsx:l,js:se,jsx:l,json:e,css:r,html:h,md:b,mdx:b,bash:f,sh:f,yaml:s,yml:s},tn={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 nn(e){return typeof e==`string`?e:typeof e==`number`?e.toString():Array.isArray(e)?e.map(nn).join(``):j(e)&&e.props&&typeof e.props==`object`&&`children`in e.props?nn(e.props.children):``}function rn(e,t){let n=e.toLowerCase(),r=`shrink-0 transition-colors duration-200`;if(t)return R(Ue,{size:16,strokeWidth:2,className:O(r,`text-primary-400`),fill:`currentColor`,fillOpacity:.15});let i=en[n.split(`.`).pop()||``];if(i)return R(i,{size:16});let a=O(r,`text-text-dim group-hover:text-text-main`);return tn.CODE.test(n)?R(ze,{size:16,strokeWidth:2,className:a}):tn.TEXT.test(n)?R(Ve,{size:16,strokeWidth:2,className:a}):tn.IMAGE.test(n)?R(Be,{size:16,strokeWidth:2,className:a}):R(Re,{size:16,strokeWidth:2,className:a})}function an(e,t){if(!j(e))return!1;let n=e.type;if(typeof n==`string`)return n===t;if(typeof n==`function`)return n.name===t||n.name?.toLowerCase()===t;let r=e.props;return r?.originalType===t||r?.mdxType===t}function on(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function X(e,t=`root`){if(!j(e))return[];let n=[];if(an(e,`ul`))return A.forEach(e.props.children,(e,r)=>{n.push(...X(e,`${t}-${r}`))}),n;if(an(e,`li`)){let r=A.toArray(e.props.children),i=r.findIndex(e=>an(e,`ul`)),a=i!==-1,o=a?r.slice(0,i):r,s=a?r.slice(i):[],{name:c,comment:l}=on(nn(o)),u=c.endsWith(`/`),d=u?c.slice(0,-1):c,f=a||u;return n.push({id:`${t}-${d}`,name:d,comment:l,isFolder:f,children:a?X(s[0],`${t}-${d}`):void 0}),n}return e.props&&typeof e.props==`object`&&`children`in e.props&&A.forEach(e.props.children,(e,r)=>{n.push(...X(e,`${t}-${r}`))}),n}function sn({item:e}){return z(B.TreeItem,{id:e.id,textValue:e.name,className:`outline-none group focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md`,children:[R(B.TreeItemContent,{children:({isExpanded:t,hasChildItems:n})=>z(`div`,{className:`flex items-center gap-2 py-1 px-1.5 rounded-md transition-colors hover:bg-primary-500/5 cursor-pointer`,children:[R(`div`,{style:{width:`calc((var(--tree-item-level) - 1) * 1rem)`},className:`shrink-0`}),n?R(B.Button,{slot:`chevron`,className:`outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors`,children:R(W,{size:14,strokeWidth:3,className:O(`transition-transform duration-200`,t&&`rotate-90`)})}):R(`div`,{className:`w-[18px]`}),rn(e.name,e.isFolder),R(`span`,{className:O(`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&&z(`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&&R(B.Collection,{items:e.children,children:e=>R(sn,{item:e})})]})}function cn({children:e}){let t=P(()=>X(e),[e]);return R(`div`,{className:`my-8`,children:R(B.Tree,{items:t,"aria-label":`File Tree`,className:O(`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:e=>R(sn,{item:e})})})}function ln({data:e,sortable:t=!1,paginated:n=!1,pageSize:r=10}){let[i,a]=I(null),[o,s]=I(1),c=P(()=>{if(!e)return[];let n=[...e];return t&&i!==null&&n.sort((e,t)=>{let n=e[i.key],r=t[i.key],a=typeof n==`string`?n:``,o=typeof r==`string`?r:``;return a<o?i.direction===`asc`?-1:1:a>o?i.direction===`asc`?1:-1:0}),n},[e,i,t]);return{sortConfig:i,currentPage:o,setCurrentPage:s,totalPages:Math.ceil(c.length/r),paginatedData:P(()=>{if(!n)return c;let e=(o-1)*r;return c.slice(e,e+r)},[c,n,o,r]),requestSort:e=>{if(!t)return;let n=`asc`;i&&i.key===e&&i.direction===`asc`&&(n=`desc`),a({key:e,direction:n})}}}function un({headers:e,data:t,children:n,className:r=``,sortable:i=!1,paginated:a=!1,pageSize:o=10}){let{sortConfig:s,currentPage:c,setCurrentPage:l,totalPages:u,paginatedData:d,requestSort:f}=ln({data:t,sortable:i,paginated:a,pageSize:o}),p=e=>i?s?.key===e?s.direction===`asc`?R(je,{size:14,className:`ml-1 text-primary-400`}):R(U,{size:14,className:`ml-1 text-primary-400`}):R(U,{size:14,className:`ml-1 opacity-30`}):null,m=n||z(L,{children:[e&&R(`thead`,{children:R(`tr`,{children:e.map((e,t)=>R(`th`,{onClick:()=>f(t),className:O(`text-left px-3 py-2.5 border-b-2 border-border-subtle text-text-main font-semibold text-sm`,i&&`cursor-pointer select-none hover:text-primary-400 transition-colors`),children:z(`div`,{className:`flex items-center`,children:[e,p(t)]})},t))})}),d&&R(`tbody`,{children:d.map((e,t)=>R(`tr`,{className:`transition-colors hover:bg-bg-surface`,children:e.map((e,t)=>R(`td`,{className:`px-3 py-2 border-b border-border-subtle text-sm text-text-muted`,children:e},t))},t))})]});return z(`div`,{className:O(`my-6 rounded-lg border border-border-subtle overflow-hidden`,r),children:[R(`div`,{className:`overflow-x-auto`,children:R(`table`,{className:`w-full border-collapse text-sm`,children:m})}),a&&u>1&&z(`div`,{className:`flex items-center justify-between border-t border-border-subtle px-4 py-3`,children:[z(`span`,{className:`text-xs text-text-muted`,children:[`Page `,c,` of `,u]}),z(`div`,{className:`flex items-center gap-1`,children:[R(B.Button,{onPress:()=>l(1),isDisabled:c===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:R(Me,{size:16})}),R(B.Button,{onPress:()=>l(e=>Math.max(e-1,1)),isDisabled:c===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:R(Ae,{size:16})}),R(B.Button,{onPress:()=>l(e=>Math.min(e+1,u)),isDisabled:c===u,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:R(W,{size:16})}),R(B.Button,{onPress:()=>l(u),isDisabled:c===u,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:R(Ne,{size:16})})]})]})]})}function dn({name:e,type:t,defaultValue:n,required:r=!1,children:i,id:a,className:o=``}){return z(`article`,{className:O(`group relative my-6 rounded-xl border border-border-subtle bg-bg-surface p-5 transition-all duration-300`,o),id:a,children:[z(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4`,children:[z(`div`,{className:`flex flex-wrap items-center gap-2.5`,children:[R(`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`,children:e}),t&&R(`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 shadow-sm`,children:t}),r&&z(`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 text-red-400 border border-red-500/20 shadow-sm`,children:[R(`span`,{className:`h-1 w-1 rounded-full bg-red-400 animate-pulse`}),`Required`]})]}),n&&z(`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:[R(`span`,{className:`font-semibold opacity-60 uppercase tracking-tighter`,children:`Default`}),R(`code`,{className:`font-mono text-text-main font-medium`,children:n})]})]}),R(`div`,{className:`text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30`,children:i})]})}function fn({to:e,children:t,className:n=``,...r}){let i=e&&(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`//`));return R(D,{href:e,className:O(`text-blue-600 hover:text-blue-800 hover:underline cursor-pointer`,n),target:i?`_blank`:void 0,rel:i?`noopener noreferrer`:void 0,...r,children:t})}function pn({src:e,alt:t,theme:n,...r}){let{theme:i}=q();return n&&n!==i?null:R(`img`,{src:e,alt:t||``,...r})}function mn({title:e,props:t,className:n=``}){return z(`div`,{className:O(`my-6`,n),children:[e&&R(`h3`,{className:`text-base font-bold text-text-main mb-3`,children:e}),R(`div`,{className:`overflow-x-auto rounded-lg border border-border-subtle`,children:z(`table`,{className:`w-full border-collapse text-sm`,children:[R(`thead`,{children:z(`tr`,{children:[R(`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`}),R(`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`}),R(`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`}),R(`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`})]})}),R(`tbody`,{children:t.map((e,t)=>z(`tr`,{className:`transition-colors hover:bg-bg-surface`,children:[z(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:[R(`code`,{className:`rounded bg-bg-surface px-1.5 py-0.5 font-mono text-xs font-bold text-primary-400`,children:e.name}),e.required&&R(`span`,{className:`ml-1 text-red-400 font-bold`,children:`*`})]}),R(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:R(`code`,{className:`rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted`,children:e.type})}),R(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:e.defaultValue?R(`code`,{className:`rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400`,children:e.defaultValue}):R(`span`,{className:`text-text-dim`,children:`—`})}),R(`td`,{className:`px-4 py-2.5 border-b border-border-subtle text-text-muted`,children:e.description})]},`${e.name}-${t}`))})]})})]})}function hn(e){let{code:t,children:n,preview:r}=e;return{initialCode:P(()=>(t??(typeof n==`string`?n:``)).trim(),[t,n]),previewElement:P(()=>r??(typeof n==`string`?null:n),[r,n])}}function gn(e){let{highlightedHtml:t,hideCode:n=!1,hideCopy:r=!1}=e,{initialCode:i,previewElement:a}=hn(e);return z(`div`,{className:`my-6 overflow-hidden rounded-xl border border-border-subtle`,children:[R(`div`,{className:`flex items-center justify-center p-8 bg-bg-surface`,children:a}),!n&&R(`div`,{className:`border-t border-border-subtle`,children:R(J,{hideCopy:r,lang:`tsx`,highlightedHtml:t,plain:!0,children:i})})]})}const _n=e=>{let[t,n]=I(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)},handleOpenRaw:()=>{let t=new Blob([e],{type:`text/plain;charset=utf-8`}),n=URL.createObjectURL(t);window.open(n,`_blank`)}}};function vn({content:e,mdxRaw:t,config:n}){let r=t||e||``,{copied:i,handleCopy:a,handleOpenRaw:o}=_n(r),s=n!==!1,l=typeof n==`object`&&n.text||`Copy Markdown`;return!s||!r?null:R(`div`,{className:`relative inline-flex z-100 flex-shrink-0 w-max translate-y-0 active:translate-y-px transition-transform duration-200`,children:z(v,{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:[R(c,{variant:`ghost`,onPress:a,icon:R(i?H:Ie,{size:16}),iconPosition:`left`,className:O(`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`,i&&`text-emerald-500 hover:bg-emerald-500/5`),children:i?`Copied!`:l}),z(w.Trigger,{placement:`bottom end`,children:[R(c,{variant:`ghost`,isIconOnly:!0,icon:R(U,{size:14}),className:O(`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`)}),z(w.Root,{className:`w-52`,children:[z(w.Item,{onAction:a,children:[R(Ie,{size:16,className:`size-4 mt-0.5 text-text-muted group-hover:text-primary-500`}),R(`span`,{className:`font-medium text-[0.8125rem]`,children:`Copy Markdown`})]}),z(w.Item,{onAction:o,children:[R(Le,{size:16,className:`size-4 mt-0.5 text-text-muted group-hover:text-primary-500`}),R(`span`,{className:`font-medium text-[0.8125rem]`,children:`View as Markdown`})]})]})]})]})})}var yn=at({Admonition:()=>Y,Badge:()=>Ft,Button:()=>vt,Card:()=>Rt,Cards:()=>Lt,Caution:()=>qt,CodeBlock:()=>J,ComponentPreview:()=>gn,ComponentProps:()=>mn,CopyMarkdown:()=>vn,Danger:()=>Wt,Field:()=>dn,FileTree:()=>cn,Image:()=>pn,Important:()=>Kt,InfoBox:()=>Gt,Link:()=>fn,List:()=>$t,Note:()=>Vt,Tab:()=>jt,Table:()=>un,Tabs:()=>Mt,Tip:()=>Ht,Video:()=>Nt,Warning:()=>Ut});function bn(){return R(`div`,{className:O(`w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in`),children:z(`div`,{className:`mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10`,children:[z(`div`,{className:`flex gap-2`,children:[R(S,{className:`h-3 w-16`}),R(S,{className:`h-3 w-24`})]}),R(S,{className:`h-10 w-[60%] sm:h-12`}),z(`div`,{className:`space-y-3`,children:[R(S,{className:`h-4 w-full`}),R(S,{className:`h-4 w-[95%]`}),R(S,{className:`h-4 w-[40%]`})]}),z(`div`,{className:`space-y-6 pt-4`,children:[R(S,{className:`h-7 w-32`}),z(`div`,{className:`space-y-3`,children:[R(S,{className:`h-4 w-full`}),R(S,{className:`h-4 w-[98%]`}),R(S,{className:`h-4 w-[92%]`}),R(S,{className:`h-4 w-[60%]`})]})]}),R(S,{className:`h-32 w-full rounded-lg bg-bg-muted/50`}),z(`div`,{className:`space-y-6 pt-4`,children:[R(S,{className:`h-7 w-48`}),z(`div`,{className:`space-y-3`,children:[R(S,{className:`h-4 w-full`}),R(S,{className:`h-4 w-[85%]`})]})]})]})})}const Z=({level:e,id:t,children:n,...r})=>z(`h${e}`,{id:t,...r,className:`boltdocs-heading`,children:[n,t&&R(`a`,{href:`#${t}`,className:`header-anchor`,"aria-label":`Anchor`,children:R(Je,{size:16})})]}),xn={...yn,Loading:bn,h1:e=>R(Z,{level:1,...e}),h2:e=>R(Z,{level:2,...e}),h3:e=>R(Z,{level:3,...e}),h4:e=>R(Z,{level:4,...e}),h5:e=>R(Z,{level:5,...e}),h6:e=>R(Z,{level:6,...e}),pre:e=>R(J,{...e,children:e.children})},Sn=Te,Cn=Sn.HelmetProvider||Sn.default?.HelmetProvider||(({children:e})=>R(L,{children:e}));function wn({config:e}){let{currentLocale:t}=g();return N(()=>{if(!e.i18n||typeof document>`u`)return;let n=t||e.i18n.defaultLocale,r=e.i18n.localeConfigs?.[n];document.documentElement.lang=r?.htmlLang||n||`en`,document.documentElement.dir=r?.direction||`ltr`},[t,e.i18n]),null}function Tn({config:e}){let t=k(),{setLocale:n,setVersion:r,currentLocale:i,currentVersion:a}=g();return N(()=>{let o=t.pathname.split(`/`).filter(Boolean),s=0,c=e.versions?.defaultVersion,l=e.i18n?.defaultLocale;if(o[s]===`docs`&&s++,e.versions&&o.length>s){let t=e.versions.versions.find(e=>e.path===o[s]);t&&(c=t.path,s++)}if(e.i18n&&o.length>s){let t=o[s];(Array.isArray(e.i18n.locales)?e.i18n.locales.includes(t):e.i18n.locales[t])&&(l=t)}else e.i18n&&o.length===0&&(l=i||e.i18n.defaultLocale);l!==i&&n(l||``),c!==a&&r(c??``)},[t.pathname,e,n,r,i,a]),null}function En({config:e,routes:r,components:i={}}){let a=P(()=>({...xn,...nt,...i}),[i]),s=ge(),{pathname:c}=k(),l=P(()=>{let e=c||`/`;return e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e},[c]),u=P(()=>r.find(e=>(e=>e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e)(e.path===``?`/`:e.path)===l),[r,l]);return R(Cn,{children:R(n,{routes:r,children:R(gt,{children:R(lt,{components:a,children:R(t.Provider,{value:e,children:z(we,{navigate:s,children:[R(_t,{}),z(o,{initialLocale:u?.locale,initialVersion:u?.version,children:[R(Tn,{config:e}),R(wn,{config:e}),R(me,{})]})]})})})})})})}function Dn(){return R(`div`,{className:`flex items-center justify-center min-h-[60vh] text-center`,children:z(`div`,{className:`space-y-4`,children:[R(`span`,{className:`text-8xl font-black tracking-tighter text-primary-500/20`,children:`404`}),R(`h1`,{className:`text-2xl font-bold text-text-main`,children:`Page Not Found`}),R(`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.`}),z(D,{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:[R(Oe,{size:16}),` Go to Home`]})]})})}function On(e,t){let n=t.replace(/\\/g,`/`),r=Object.keys(e);if(r.length===0)return;let i=r[0].replace(/\\/g,`/`).split(`/`).filter(Boolean)[0]||`docs`,a=`/${i}/${n}`,o=`./${i}/${n}`;return r.find(e=>{let t=e.replace(/\\/g,`/`);return t===a||t===o||t.endsWith(a)})}function kn(e){let{routesData:t,config:n,mdxModules:r,Layout:i,homePage:a,externalPages:o,externalLayout:s,components:c}=e,l=s||i,u=e=>{let t=n.base||`/`;return e.startsWith(t)?e:`${t===`/`?``:t.replace(/\/$/,``)}${e.startsWith(`/`)?e:`/${e}`}`||`/`},d=[...t],f=[...t.map(e=>{let t=On(r,e.filePath),n=t?r[t]?.default:null,i=u(e.path===``?`/`:e.path);return{path:i,element:R(dt,{MDXComponent:n,mdxComponents:c}),loader:async()=>({path:i,frontmatter:{title:e.title,description:e.description||``},headings:e.headings||[],filePath:e.filePath,locale:e.locale,version:e.version,group:e.group,groupTitle:e.groupTitle}),getStaticPaths:()=>[i]}})];if(a){let e=[{path:u(`/`),locale:n.i18n?.defaultLocale}];n.i18n&&Object.keys(n.i18n.locales).forEach(t=>{e.push({path:u(`/${t}`),locale:t})}),e.forEach(({path:e,locale:t})=>{f.find(t=>t.path===e)||(d.push({path:e,locale:t,title:`Home`,filePath:``,headings:[]}),f.push({path:e,element:R(l,{children:R(a,{})}),loader:async()=>({path:e,locale:t}),getStaticPaths:()=>[e]}))})}return o&&Object.entries(o).forEach(([e,t])=>{let r=u(e);f.find(e=>e.path===r)||(d.push({path:r,locale:n.i18n?.defaultLocale,title:e,filePath:``,headings:[]}),f.push({path:r,element:R(l,{children:R(t,{})}),loader:async()=>({path:r,locale:n.i18n?.defaultLocale}),getStaticPaths:()=>[r]}),n.i18n&&Object.keys(n.i18n.locales).forEach(n=>{let r=u(`/${n}${e===`/`?``:e}`);f.find(e=>e.path===r)||(d.push({path:r,locale:n,title:e,filePath:``,headings:[]}),f.push({path:r,element:R(l,{children:R(t,{})}),loader:async()=>({path:r,locale:n}),getStaticPaths:()=>[r]}))}))}),f.push({path:`*`,element:R(l,{children:R(Dn,{})})}),[{element:R(En,{config:n,routes:d,components:c}),children:f}]}function Q(e,t){return e?typeof e==`string`?e:t&&e[t]?e[t]:Object.values(e)[0]||``:``}function An(){let e=_(),{theme:t,resolvedTheme:n}=q(),r=k(),{currentLocale:i}=m(),a=e.theme||{},o=Q(a.title,i)||`Boltdocs`,s=a.navbar||[],c=a.socialLinks||[],l=a.githubRepo,u=s.map(t=>{let n=t.href||t.to||t.link||``;return{label:Q(t.label||t.text,i),href:n,active:(t=>{let n=r.pathname;if(n===t)return!0;if(!t||t===`/`)return n===`/`;let i=t=>{let n=t.split(`/`).filter(Boolean),r=0;return e.i18n?.locales&&n[r]&&e.i18n.locales[n[r]]&&r++,e.versions?.versions&&n[r]&&e.versions.versions.some(e=>e.path===n[r])&&r++,n.slice(r)},a=i(t),o=i(n);return a.length===0?o.length===0:o.length<a.length?!1:a.every((e,t)=>o[t]===e)})(n),to:n.startsWith(`http`)||n.startsWith(`//`)?`external`:void 0}}),d=a.logo;return{links:u,title:o,logo:d?typeof d==`string`?d:n===`dark`?d.dark:d.light:null,logoProps:{alt:(d&&typeof d==`object`?d.alt:void 0)||o,width:d&&typeof d==`object`?d.width:void 0,height:d&&typeof d==`object`?d.height:void 0},github:l?`https://github.com/${l}`:null,social:c,config:e,theme:t}}function jn(e){let t=_(),n=k(),r=e=>e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e,i=r(n.pathname),a=e.find(e=>r(e.path)===i),o=a?.tab?.toLowerCase(),s=o?e.filter(e=>!e.tab||e.tab.toLowerCase()===o):e,c=[],l=new Map;for(let e of s)!e.filePath&&!e.group||(e.group?(l.has(e.group)||l.set(e.group,{slug:e.group,title:e.groupTitle||e.group,routes:[],icon:e.groupIcon}),l.get(e.group).routes.push(e)):c.push(e));return{groups:Array.from(l.values()).map(e=>{let t=new Map,n=new Map;for(let r of e.routes)r.subRouteGroup&&((r.path.endsWith(`/${r.subRouteGroup}`)||r.path.endsWith(`/${r.subRouteGroup}/`))&&!t.has(r.subRouteGroup)?t.set(r.subRouteGroup,r):(n.has(r.subRouteGroup)||n.set(r.subRouteGroup,[]),n.get(r.subRouteGroup).push(r)));let r=[],i=new Set;for(let a of e.routes)if(a.subRouteGroup){if(!i.has(a.subRouteGroup)){i.add(a.subRouteGroup);let e=t.get(a.subRouteGroup),o=n.get(a.subRouteGroup)||[];e?r.push({...e,subRoutes:o}):r.push(...o)}}else r.push(a);return{...e,routes:r}}),ungrouped:c,activeRoute:a,activePath:i,config:t}}function Mn(e=[]){let[t,n]=I(null);return{headings:e,activeId:t,setActiveId:n}}function Nn(e=[],t=[]){let n=k(),r=F([]),[i,a]=I({opacity:0,transform:`translateX(0) scaleX(0)`,width:0}),o=e=>e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e,s=o(n.pathname),c=t.find(e=>o(e.path)===s)?.tab?.toLowerCase(),l=e.findIndex(e=>e.id.toLowerCase()===c),u=l===-1?0:l;return N(()=>{let e=r.current[u];e&&a({opacity:1,width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`})},[u,e.length,n.pathname]),{tabs:e,activeIndex:u,indicatorStyle:i,tabRefs:r,activeTabId:c}}function $(e,t,n){let r=e;return t&&(r===t||r.startsWith(t+`/`))&&(r=r===t?`index.md`:r.slice(t.length+1)),n&&(r===n||r.startsWith(n+`/`))&&(r=r===n?`index.md`:r.slice(n.length+1)),r}function Pn(){let e=ge(),t=m(),{allRoutes:n,currentRoute:r,currentVersion:i,currentLocale:a,config:o}=t,s=o.versions,{setVersion:c}=g(),l=t=>{if(!s||t===i)return;c(t);let l=o.i18n?Object.keys(o.i18n.locales).map(e=>`/${e}`):[];if(!(!r||r.path===`/`||r.path===o.base||r.path===``||l.includes(r.path))&&r){let i=`/docs/${t}`,o=$(r.filePath,r.version,r.locale),c=n.find(e=>$(e.filePath,e.version,e.locale)===o&&(e.version||s.defaultVersion)===t&&(a?e.locale===a:!e.locale));if(c)i=c.path;else{let e=n.find(e=>$(e.filePath,e.version,e.locale)===`index.md`&&(e.version||s.defaultVersion)===t&&(a?e.locale===a:!e.locale));i=e?e.path:`/docs/${t}${a?`/${a}`:``}`}e(i)}},u=t.availableVersions.map(e=>({...e,label:e.label,value:e.key}));return{currentVersion:i,currentVersionLabel:t.currentVersionLabel,availableVersions:u,handleVersionChange:l}}function Fn(){let e=ge(),{allRoutes:t,currentRoute:n,currentLocale:r,config:i}=m(),a=i.i18n,{setLocale:o}=g();return{currentLocale:r,currentLocaleLabel:i.i18n?.localeConfigs?.[r]?.label||i.i18n?.locales[r]||r,availableLocales:i.i18n?Object.entries(i.i18n.locales).map(([e,t])=>({key:e,label:i.i18n?.localeConfigs?.[e]?.label||t,value:e,isCurrent:e===r})):[],handleLocaleChange:i=>{if(!a||i===r)return;o(i);let s=`/`;if(n){let e=$(n.filePath,n.version,n.locale),r=t.find(t=>$(t.filePath,t.version,t.locale)===e&&(t.locale||a.defaultLocale)===i&&t.version===n.version);if(r)s=r.path;else{let e=t.find(e=>$(e.filePath,e.version,e.locale)===`index.md`&&(e.locale||a.defaultLocale)===i&&e.version===n.version);s=e?e.path:i===a.defaultLocale?n.version?`/${n.version}`:`/`:n.version?`/${n.version}/${i}`:`/${i}`}}else{let e=t.find(e=>(e.filePath===`index.mdx`||e.filePath===`index.md`)&&(e.locale||a.defaultLocale)===i&&!e.version);s=e?e.path:i===a.defaultLocale?`/`:`/${i}`}e(s)}}}function In(){let{routes:e,currentRoute:t}=m(),n=k();if(!t)return{prevPage:null,nextPage:null,currentRoute:null};let r=t.tab?.toLowerCase(),i=r?e.filter(e=>e.tab?.toLowerCase()===r):e.filter(e=>!e.tab),a=i.findIndex(e=>e.path===n.pathname);return{prevPage:a>0?i[a-1]:null,nextPage:a!==-1&&a<i.length-1?i[a+1]:null,currentRoute:t}}function Ln(){let{currentRoute:e}=m(),t=[];return e&&(e.groupTitle&&t.push({label:e.groupTitle}),t.push({label:e.title,href:e.path})),{crumbs:t,activeRoute:e}}const Rn=()=>k();function zn({children:e,className:t,style:n}){return R(`div`,{className:O(`h-screen flex flex-col overflow-hidden bg-bg-main text-text-main`,t),style:n,children:e})}function Bn({children:e,className:t,style:n}){return R(`div`,{className:O(`mx-auto flex flex-1 w-full max-w-(--breakpoint-3xl) bg-bg-main overflow-hidden`,t),style:n,children:e})}function Vn({children:e,className:t,style:n}){return R(`main`,{className:O(`boltdocs-content flex-1 min-w-0 overflow-y-auto`,`contain-layout`,t),style:n,children:e})}function Hn({children:e,className:t,style:n}){let{pathname:r}=Rn();return R(`div`,{className:O(`boltdocs-page mx-auto pt-4 pb-20 px-4 sm:px-8`,{"max-w-content-max":r.includes(`/docs/`)},t),style:n,children:e})}function Un({children:e,className:t,style:n}){return R(`div`,{className:O(`flex items-center justify-between mb-10`,t),style:n,children:e})}function Wn({children:e,className:t,style:n}){return R(`div`,{className:O(`mt-20`,t),style:n,children:e})}const Gn=Object.assign(zn,{Body:Bn,Content:Vn,ContentMdx:Hn,ContentHeader:Un,ContentFooter:Wn});function Kn(){let{theme:e,setTheme:t}=q(),[n,r]=I(!1);if(N(()=>{r(!0)},[]),!n)return R(`div`,{className:`h-9 w-9`});let i=e===`system`?Ye:e===`dark`?Xe:$e;return z(w.Trigger,{placement:`bottom right`,children:[R(V,{className:`flex h-9 w-9 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-bg-surface hover:text-text-main outline-none focus-visible:ring-2 focus-visible:ring-primary-500`,"aria-label":`Selection theme`,children:R(i,{size:20,className:`animate-in fade-in zoom-in duration-300`})}),z(w.Root,{selectionMode:`single`,selectedKeys:[e],onSelectionChange:e=>{let n=Array.from(e)[0];t(n)},children:[z(w.Item,{id:`light`,children:[R($e,{size:16}),R(`span`,{children:`Light`})]}),z(w.Item,{id:`dark`,children:[R(Xe,{size:16}),R(`span`,{children:`Dark`})]}),z(w.Item,{id:`system`,children:[R(Ye,{size:16}),R(`span`,{children:`System`})]})]})]})}async function qn(e,t,n=`https://api.github.com`){let r=new Headers;t&&r.append(`authorization`,t);let i=await(await fetch(`${n}/repos/${e}`,{headers:r})).json();return i.stargazers_count===void 0?`0`:Jn(i.stargazers_count)}const Jn=e=>Intl.NumberFormat(`en`,{notation:`compact`,compactDisplay:`short`}).format(e);function Yn({repo:e}){let[t,n]=I(null);return N(()=>{e&&qn(e).then(e=>n(e)).catch(()=>n(`0`))},[e]),z(`a`,{href:`https://github.com/${e}`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-2 rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-xs font-medium text-text-muted transition-all hover:bg-bg-main hover:border-border-strong hover:text-text-main`,children:[R(d,{className:`h-4 w-4`}),t&&R(`span`,{className:`tabular-nums`,children:t})]})}function Xn({tabs:e,routes:t}){let{currentLocale:n}=m(),{indicatorStyle:r,tabRefs:i,activeIndex:a}=Nn(e,t),o=e=>{if(!e)return null;if(e.trim().startsWith(`<svg`))return R(`span`,{className:`h-4 w-4`,dangerouslySetInnerHTML:{__html:e}});let t=Ee[e];return t?R(t,{size:16}):R(`img`,{src:e,alt:``,className:`h-4 w-4 object-contain`})};return R(`div`,{className:`mx-auto max-w-(--breakpoint-3xl) px-4 md:px-6`,children:z(ne.List,{className:`border-none py-0`,children:[e.map((e,r)=>{let s=r===a,c=t.find(t=>t.tab&&t.tab.toLowerCase()===e.id.toLowerCase());return z(D,{href:c?c.path:`#`,ref:e=>{i.current[r]=e},className:`relative flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors outline-none ${s?`text-primary-500`:`text-text-muted hover:text-text-main`}`,children:[o(e.icon),R(`span`,{children:Q(e.text,n)})]},e.id)}),R(ne.Indicator,{style:r})]})})}const Zn=xe(()=>import(`../search-dialog-DNTomKgu.js`).then(e=>({default:e.SearchDialog})));function Qn(){let{links:e,title:t,logo:n,logoProps:r,github:i,social:a,config:o}=An(),{routes:s,allRoutes:c,currentVersion:l,currentLocale:u}=m(),{pathname:d}=k(),f=o.theme||{},p=d.startsWith(`/docs`),h=f?.tabs&&f.tabs.length>0;return z(E.Root,{className:h?`border-b-0`:``,children:[z(E.Content,{children:[z(E.Left,{children:[n&&R(E.Logo,{src:n,alt:r?.alt||t,width:r?.width??24,height:r?.height??24}),R(E.Title,{children:t}),o.versions&&l&&R(er,{})]}),R(E.Center,{children:R(ye,{fallback:R(`div`,{className:`h-9 w-32 animate-pulse rounded-md bg-bg-surface`}),children:R(Zn,{routes:s||[]})})}),z(E.Right,{children:[R(E.Links,{children:e.map(e=>R($n,{link:e},e.href))}),o.i18n&&u&&R(tr,{}),R(E.Split,{}),R(Kn,{}),i&&R(Yn,{repo:f?.githubRepo??``}),a.length>0&&R(E.Split,{}),R(`div`,{className:`flex items-center gap-1`,children:a.map(({icon:e,link:t})=>R(E.Socials,{icon:e,link:t,className:`p-1.5`},t))})]})]}),p&&h&&f?.tabs&&R(`div`,{className:`w-full border-b border-border-subtle bg-bg-main`,children:R(Xn,{tabs:f.tabs,routes:c||s||[]})})]})}function $n({link:e}){let t=pe(e.href||``);return R(E.Link,{...e,href:t})}function er(){let{currentVersionLabel:e,availableVersions:t,handleVersionChange:n}=Pn();return t.length===0?null:z(w.Trigger,{children:[R(c,{variant:`outline`,size:`sm`,rounded:`lg`,iconPosition:`right`,icon:R(U,{className:`w-3.5 h-3.5 text-text-muted/60`}),className:`h-8 border-border-subtle/60 bg-bg-surface/30 backdrop-blur-sm transition-all duration-200 hover:border-primary-500/50 hover:bg-primary-500/5`,children:R(`span`,{className:`font-semibold text-[0.8125rem]`,children:e})}),R(w.Root,{children:R(w.Section,{items:t,children:e=>R(w.Item,{onPress:()=>n(e.value),children:e.label},`${e.value??``}`)})})]})}function tr(){let{currentLocale:e,availableLocales:t,handleLocaleChange:n}=Fn();return t.length===0?null:z(w.Trigger,{children:[R(c,{variant:`outline`,size:`sm`,rounded:`lg`,iconPosition:`right`,icon:R(U,{className:`w-3.5 h-3.5 text-text-muted/60`}),className:`h-8 border-border-subtle/60 bg-bg-surface/30 backdrop-blur-sm transition-all duration-200 hover:border-primary-500/50 hover:bg-primary-500/5 px-2.5`,children:z(`div`,{className:`flex items-center gap-1.5`,children:[R(Ke,{className:`w-3.5 h-3.5 text-primary-500`}),R(`span`,{className:`font-bold text-[0.75rem] uppercase opacity-90`,children:e||`en`})]})}),R(w.Root,{children:R(w.Section,{items:t,children:e=>R(w.Item,{onPress:()=>n(e.value),children:z(`div`,{className:`flex items-center justify-between w-full gap-4`,children:[R(`span`,{children:e.label}),R(`span`,{className:`text-[10px] font-bold opacity-40 uppercase tracking-tighter`,children:e.value})]})},`${e.value??``}`)})})]})}function nr(){return R(`div`,{className:`flex items-center justify-center mt-10 mb-4 px-4 w-full`,children:z(`a`,{href:`https://github.com/jesusalcaladev/boltdocs`,target:`_blank`,rel:`noopener noreferrer`,className:`group relative flex items-center gap-2 px-4 py-2 rounded-full border border-border-subtle bg-bg-surface/50 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:bg-bg-surface hover:shadow-xl hover:shadow-primary-500/5 select-none`,children:[R(tt,{className:`w-3.5 h-3.5 text-text-muted group-hover:text-primary-500 transition-colors duration-300`,fill:`currentColor`}),z(`span`,{className:`text-[11px] font-medium text-text-muted group-hover:text-text-main transition-colors duration-300 tracking-wide`,children:[`Powered by`,` `,R(`strong`,{className:`font-bold text-text-main/80 group-hover:text-text-main`,children:`Boltdocs`})]})]})})}function rr(e){if(!e)return;let t={...Ee,...rt};return t[e]||t[e+`Icon`]||void 0}function ir({route:e,activePath:t,getIcon:n}){let r=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path),i=P(()=>e.subRoutes?.some(e=>e.path===t),[e.subRoutes,t]),[a,o]=I(i||r);return N(()=>{(i||r)&&o(!0)},[i,r]),R(T.SubGroup,{label:e.title,href:e.path,active:r,icon:n(e.icon),badge:e.badge,isOpen:a,onToggle:()=>o(!a),children:e.subRoutes?.map(e=>{let r=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return R(T.Link,{label:e.title,href:e.path,active:r,icon:n(e.icon),badge:e.badge},e.path)})})}function ar({group:e,activePath:t,getIcon:n}){return R(T.Group,{title:e.title,icon:n(e.icon),children:e.routes.map(e=>{if(e.subRoutes&&e.subRoutes.length>0)return R(ir,{route:e,activePath:t,getIcon:n},e.path);let r=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return R(T.Link,{label:e.title,href:e.path,active:r,icon:n(e.icon),badge:e.badge},e.path)})})}function or({routes:e,config:t}){let{groups:n,ungrouped:r,activePath:i}=jn(e),a=t.theme||{};return z(T.Root,{children:[r.length>0&&R(T.Group,{className:`mb-6`,children:r.map(e=>{let t=i===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return R(T.Link,{label:e.title,href:e.path,active:t,icon:rr(e.icon),badge:e.badge},e.path)})}),n.map(e=>R(ar,{group:e,activePath:i,getIcon:rr},e.slug)),a?.poweredBy&&R(`div`,{className:`mt-auto pt-8`,children:R(nr,{})})]})}function sr({headings:e=[],editLink:t,communityHelp:n,filePath:r}){let{headings:i}=Mn(e),a=P(()=>i.map(e=>({title:e.text,url:`#${e.id}`,depth:e.level})),[i]);return i.length===0?null:R(de,{toc:a,children:R(cr,{headings:i,editLink:t,communityHelp:n,filePath:r})})}function cr({headings:e,editLink:t,communityHelp:n,filePath:r}){let i=le(),[a,o]=I({opacity:0}),s=F(null),c=F(null);N(()=>{if(!i||!s.current)return;let e=s.current.querySelector(`a[href="#${i}"]`);e&&o({transform:`translateY(${e.offsetTop}px)`,height:`${e.offsetHeight}px`,opacity:1})},[i]);let l=M((e,t)=>{e.preventDefault();let n=document.getElementById(t);n&&(n.scrollIntoView({behavior:`smooth`}),window.history.pushState(null,``,`#${t}`))},[]);return z(y.Root,{children:[z(y.Header,{className:`flex flex-row gap-x-2`,children:[R(et,{size:16}),`On this page`]}),R(re,{containerRef:c,children:z(y.Content,{className:`max-h-[450px] boltdocs-otp-scroll-area`,ref:c,children:[R(y.Indicator,{style:a}),R(`ul`,{className:`relative space-y-2 border-l border-border-subtle`,ref:s,children:e.map(e=>R(y.Item,{level:e.level,children:R(y.Link,{href:`#${e.id}`,active:i===e.id,onClick:t=>l(t,e.id),className:`pl-4`,children:e.text})},e.id))})]})}),(t||n)&&z(`div`,{className:`mt-8 pt-8 border-t border-border-subtle space-y-4`,children:[R(`p`,{className:`text-xs font-bold uppercase text-text-main`,children:`Need help?`}),z(`ul`,{className:`space-y-3`,children:[t&&r&&R(`li`,{children:z(`a`,{href:t.replace(`:path`,r),target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 text-sm text-text-muted hover:text-text-main transition-colors`,children:[R(Ze,{size:16}),`Edit this page`]})}),n&&R(`li`,{children:z(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 text-sm text-text-muted hover:text-text-main transition-colors`,children:[R(Fe,{size:16}),`Community help`]})})]})]})]})}const lr=Te,ur=lr.Helmet||lr.default?.Helmet||(({children:e})=>R(L,{children:e}));function dr({siteTitle:e,siteDescription:t,routes:n}){let r=k(),i=_(),a=n?.find?.(e=>e.path===r.pathname),o=a?.title,s=a?.description||t||``,c=o?`${o} | ${e}`:e,l=a?.seo||{},u=i?.seo?.metatags||{},d=i?.seo?.thumbnails?.background,f=l[`og:image`]||d;return z(ur,{children:[R(`title`,{children:c}),R(`meta`,{name:`description`,content:s}),R(`meta`,{property:`og:title`,content:c}),R(`meta`,{property:`og:description`,content:s}),R(`meta`,{property:`og:type`,content:`article`}),typeof window<`u`&&R(`meta`,{property:`og:url`,content:window.location.href}),typeof window<`u`&&R(`link`,{rel:`canonical`,href:window.location.origin+r.pathname}),R(`meta`,{name:`twitter:card`,content:`summary`}),R(`meta`,{name:`twitter:title`,content:c}),R(`meta`,{name:`twitter:description`,content:s}),f&&R(`meta`,{name:`twitter:image`,content:f}),f&&R(`meta`,{property:`og:image`,content:f}),R(`meta`,{name:`generator`,content:`Boltdocs`}),Object.entries(u).map(([e,t])=>e.startsWith(`og:`)||e.startsWith(`music:`)||e.startsWith(`video:`)||e.startsWith(`article:`)||e.startsWith(`book:`)||e.startsWith(`profile:`)?R(`meta`,{property:e,content:t},e):R(`meta`,{name:e,content:t},e)),Object.entries(l).map(([e,t])=>e===`noindex`&&t===!0?R(`meta`,{name:`robots`,content:`noindex`},`noindex`):e===`robots`?R(`meta`,{name:`robots`,content:t},`robots`):e===`canonical`?R(`link`,{rel:`canonical`,href:t},`canonical`):e.startsWith(`og:`)||e.startsWith(`music:`)||e.startsWith(`video:`)||e.startsWith(`article:`)||e.startsWith(`book:`)||e.startsWith(`profile:`)?R(`meta`,{property:e,content:t},e):R(`meta`,{name:e,content:t},e))]})}function fr(){let{crumbs:e,activeRoute:t}=Ln(),n=_().theme||{};return e.length===0||!n?.breadcrumbs?null:z(C.Root,{children:[R(C.Item,{children:R(C.Link,{href:`/`,children:R(We,{size:14})})}),e.map((e,n)=>z(C.Item,{children:[R(C.Separator,{}),R(C.Link,{href:e.href,className:O({"font-medium text-text-main":e.href===t?.path}),children:e.label})]},`crumb-${e.href}-${e.label}-${n}`))]})}function pr(){let{prevPage:e,nextPage:t}=In();return!e&&!t?null:z(x.Root,{className:`animate-in fade-in slide-in-from-bottom-4 duration-700`,children:[e?z(x.Link,{to:e.path,direction:`prev`,children:[R(x.Title,{children:`Previous`}),R(x.Description,{children:e.title})]}):R(`div`,{}),t&&z(x.Link,{to:t.path,direction:`next`,children:[R(x.Title,{children:`Next`}),R(x.Description,{children:t.title})]})]})}var mr=class extends ve{state={hasError:!1};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`Uncaught error in Boltdocs Layout:`,e,t)}render(){return this.state.hasError?this.props.fallback||z(`div`,{className:`flex flex-col items-center justify-center min-h-[40vh] text-center gap-4 px-4`,children:[R(`div`,{className:`text-lg font-bold text-red-400`,children:`Something went wrong`}),R(`p`,{className:`text-sm text-text-muted max-w-md`,children:this.state.error?.message||`An unexpected error occurred while rendering this page.`}),R(c,{className:`rounded-lg border border-border-subtle bg-bg-surface px-5 py-2 text-sm font-medium text-text-main transition-colors hover:bg-bg-muted cursor-pointer`,onPress:()=>this.setState({hasError:!1}),children:`Try again`})]}):this.props.children}};export{Y as Admonition,de as AnchorProvider,Ft as Badge,En as BoltdocsShell,fr as Breadcrumbs,vt as Button,v as ButtonGroup,Rt as Card,Lt as Cards,qt as Caution,J as CodeBlock,gn as ComponentPreview,mn as ComponentProps,vn as CopyMarkdown,Wt as Danger,Gn as DocsLayout,mr as ErrorBoundary,dn as Field,cn as FileTree,dr as Head,pn as Image,Kt as Important,Gt as InfoBox,fn as Link,$t as List,bn as Loading,dt as MdxPage,Qn as Navbar,Dn as NotFound,Vt as Note,sr as OnThisPage,pr as PageNav,C as PrimitiveBreadcrumbs,c as PrimitiveButton,D as PrimitiveLink,w as PrimitiveMenu,te as PrimitiveNavLink,E as PrimitiveNavbar,ee as PrimitiveNavigationMenu,y as PrimitiveOnThisPage,x as PrimitivePageNav,oe as PrimitivePopover,T as PrimitiveSidebar,S as PrimitiveSkeleton,ne as PrimitiveTabs,fe as PrimitiveTooltip,re as ScrollProvider,ie as SearchDialogPrimitive,or as Sidebar,jt as Tab,un as Table,Mt as Tabs,Ht as Tip,Nt as Video,Ut as Warning,O as cn,kn as createRoutes,Q as getTranslated,le as useActiveAnchor,ce as useActiveAnchors,Ln as useBreadcrumbs,_ as useConfig,Fn as useI18n,ae as useItems,pe as useLocalizedTo,Rn as useLocation,ct as useMdxComponents,An as useNavbar,Mn as useOnThisPage,In as usePageNav,m as useRoutes,ue as useSearch,jn as useSidebar,Nn as useTabs,q as useTheme,Pn as useVersion};
6
+ import{r as e,t}from"../search-dialog-BKagVT17.js";import{C as n,D as r,E as i,S as a,T as o,_ as s,b as c,s as l,w as u,x as d,y as f}from"../icons-dev-CrQLjoQp.js";import{D as p,E as m,M as h,N as g,T as _,_ as v,h as y,i as b,j as x,k as S,m as C,n as w,r as ee,t as T,w as te}from"../docs-layout-BvAOWEJw.js";import{c as ne,l as E}from"../image-BkIfa9oo.js";import{n as D}from"../search-dialog-C8w12eUx.js";import{a as re,i as ie,n as ae,r as oe,t as se}from"../mdx-K0WYBAJ3.js";import{Navigate as ce,Outlet as O,useLoaderData as le,useLocation as k,useNavigate as ue}from"react-router-dom";import{Suspense as de,createContext as fe,lazy as pe,use as me,useCallback as he,useEffect as A,useLayoutEffect as ge,useMemo as j,useRef as _e,useState as M}from"react";import{Fragment as N,jsx as P,jsxs as F}from"react/jsx-runtime";import*as I from"lucide-react";import{ArrowLeft as ve,Check as L,ChevronDown as R,CircleHelp as ye,Copy as z,ExternalLink as be,Home as xe,Languages as Se,Menu as Ce,Monitor as B,Moon as V,Pencil as we,Sun as H,TextAlignStart as Te,X as Ee}from"lucide-react";import{Button as De}from"react-aria-components";import*as Oe from"react-helmet-async";import ke from"virtual:boltdocs-mdx-components";import Ae from"virtual:boltdocs-layout";const je=Symbol.for(`__BDOCS_MDX_COMPONENTS_CONTEXT__`),U=Symbol.for(`__BDOCS_MDX_COMPONENTS_INSTANCE__`),W=globalThis[je]||(globalThis[je]=fe({}));function G(){let e=me(W);return(!e||Object.keys(e).length===0)&&globalThis[U]?globalThis[U]:e}function Me({components:e,children:t}){let n=j(()=>{let t={},n={};return Object.entries(e).forEach(([e,r])=>{if(e.startsWith(`Frontmatter_`)){let t=e.slice(12);n[t]=r}else t[e]=r}),t.Frontmatter=n,t},[e]);return typeof globalThis<`u`&&(globalThis[U]=n),P(W.Provider,{value:n,children:t})}function Ne(){let{currentRoute:e}=d(),t=[];return e&&(e.groupTitle&&t.push({label:e.groupTitle}),t.push({label:e.title,href:e.path})),{crumbs:t,activeRoute:e}}function Pe(){let{crumbs:e,activeRoute:t}=Ne();return e.length===0?null:F(g.Root,{className:`gap-2 text-xs sm:text-sm font-medium`,children:[P(g.Item,{children:P(g.Link,{href:`/`,className:`text-muted hover:text-body transition-colors flex items-center`,children:P(xe,{size:14})})}),e.map((e,n)=>{let r=e.href===t?.path;return F(g.Item,{className:`gap-2`,children:[P(g.Separator,{className:`text-muted/40`}),P(g.Link,{href:e.href,className:f(`transition-colors`,r?`text-body font-semibold cursor-default pointer-events-none`:`text-muted hover:text-body`),children:e.label})]},`crumb-${e.href}-${e.label}-${n}`)})]})}const Fe=e=>{let[t,n]=M(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)},handleOpenRaw:()=>{let t=new Blob([e],{type:`text/plain;charset=utf-8`}),n=URL.createObjectURL(t);window.open(n,`_blank`)}}};function Ie({content:e,mdxRaw:t}){let n=t||e||``,{copied:r,handleCopy:i,handleOpenRaw:a}=Fe(n);return n?P(`div`,{className:`relative inline-flex z-100 shrink-0 w-max`,children:F(x,{className:`rounded-xl border border-subtle bg-surface transition-all duration-300 hover:border-primary-500/50 group overflow-hidden`,children:[P(h,{onPress:i,className:f(`md:hidden flex items-center justify-center w-8 h-8 bg-transparent outline-none select-none cursor-pointer border-none`,`text-muted transition-all duration-300 hover:bg-primary-500/5 hover:text-body`,r&&`text-emerald-500 hover:bg-emerald-500/5`),"aria-label":r?`Copied!`:`Copy Markdown`,children:P(r?L:z,{size:14})}),F(h,{onPress:i,className:f(`hidden md:flex items-center gap-2 px-5 py-2 bg-transparent text-[0.8125rem] font-semibold h-9 shrink-0 outline-none select-none cursor-pointer border-none`,`text-body transition-all duration-300 hover:bg-primary-500/5`,r&&`text-emerald-500 hover:bg-emerald-500/5`),children:[P(r?L:z,{size:16}),r?`Copied!`:`Copy Markdown`]}),F(S.Trigger,{placement:`bottom end`,children:[P(h,{className:f(`flex items-center justify-center px-2.5 md:px-3.5 h-8 md:h-9 border-none border-l border-subtle/50 text-muted rounded-none bg-transparent shrink-0 outline-none select-none cursor-pointer`,`transition-all duration-300 hover:bg-primary-500/5 hover:text-primary-500`),children:P(R,{size:14})}),F(S.Root,{className:`w-52 bg-main border border-subtle rounded-xl p-1.5 shadow-md outline-none flex flex-col gap-0.5 animate-fade-in z-100`,children:[F(S.Item,{onAction:i,className:`flex items-center px-3 py-2 rounded-lg text-xs font-medium text-body dark:hover:bg-primary-300/50 hover:bg-primary-200/50 transition-colors duration-100 cursor-pointer select-none outline-none group`,children:[P(z,{size:16,className:`size-4 text-muted dark:group-hover:text-primary-500 group-hover:text-primary-400`}),P(`span`,{className:`ml-2`,children:`Copy Markdown`})]}),F(S.Item,{onAction:a,className:`flex items-center gap-2 px-3 py-2 rounded-lg text-xs font-medium text-body dark:hover:bg-primary-300/50 hover:bg-primary-200/50 transition-colors duration-100 cursor-pointer select-none outline-none group`,children:[P(be,{size:16,className:`size-4 text-muted dark:group-hover:text-primary-500 group-hover:text-primary-400`}),P(`span`,{className:`ml-2`,children:`View as Markdown`})]})]})]})]})}):null}function Le({children:e,fallback:t}){return P(p,{fallback:t,children:e})}async function Re(e,t,n=`https://api.github.com`){let r=new Headers;t&&r.append(`authorization`,t);let i=await(await fetch(`${n}/repos/${e}`,{headers:r})).json();return i.stargazers_count===void 0?`0`:ze(i.stargazers_count)}const ze=e=>Intl.NumberFormat(`en`,{notation:`compact`,compactDisplay:`short`}).format(e);function Be({repo:e}){let[t,n]=M(null);return A(()=>{e&&Re(e).then(e=>n(e)).catch(()=>n(`0`))},[e]),F(`a`,{href:`https://github.com/${e}`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-2 rounded-xl border border-subtle bg-surface px-3 py-1.5 text-xs font-semibold text-muted dark:hover:bg-primary-300/50 hover:bg-primary-200/50 transition-colors duration-100 hover:border-primary-500/50 hover:text-body select-none outline-none`,children:[P(l,{className:`h-4 w-4 text-body`}),t!==null&&F(`span`,{className:`tabular-nums font-medium`,children:[t,` stars`]})]})}function K(e,t){return e?typeof e==`string`?e:t&&e[t]?e[t]:Object.values(e)[0]||``:``}function q(){let e=r(),{theme:t,resolvedTheme:n}=E(),i=k(),{currentLocale:a}=d(),o=e.theme||{},s=K(o.title,a)||`Boltdocs`,c=o.navbar||[],l=o.socialLinks||[],u=o.githubRepo,f=j(()=>c.map(t=>{let n=t.href||t.to||t.link||``,r=t=>{let n=i.pathname;if(n===t)return!0;if(!t||t===`/`)return n===`/`;let r=t=>{let n=t.split(`/`).filter(Boolean),r=0;return e.i18n?.locales&&n[r]&&e.i18n.locales[n[r]]&&r++,e.versions?.versions&&n[r]&&e.versions.versions.some(e=>e.path===n[r])&&r++,n.slice(r)},a=r(t),o=r(n);return a.length===0?o.length===0:o.length<a.length?!1:a.every((e,t)=>o[t]===e)},o=(e=>{if(!(!e||e.length===0))return e.map(e=>{let t=e.href||e.to||e.link||``;return{label:K(e.label||e.text,a),href:t,active:r(t),to:t.startsWith(`http`)||t.startsWith(`//`)?`external`:void 0}})})(t.items);return{label:K(t.label||t.text,a),href:n,active:r(n),to:n.startsWith(`http`)||n.startsWith(`//`)?`external`:void 0,items:o}}),[c,i.pathname,a,e]),p=o.logo;return{links:f,title:s,logo:p?typeof p==`string`?p:n===`dark`?p.dark:p.light:null,logoProps:{alt:(p&&typeof p==`object`?p.alt:void 0)||s,width:p&&typeof p==`object`?p.width:void 0,height:p&&typeof p==`object`?p.height:void 0},github:u?`https://github.com/${u}`:null,social:l,config:e,theme:t}}function Ve(){let{theme:e,setTheme:t}=E(),[n,r]=M(!1);if(A(()=>{r(!0)},[]),!n)return P(`div`,{className:`h-9 w-9`});let i=e===`system`?B:e===`dark`?V:H;return F(S.Trigger,{placement:`bottom right`,children:[P(De,{className:`flex h-9 w-9 items-center justify-center rounded-xl text-muted transition-colors hover:bg-surface hover:text-body outline-none border-none bg-transparent cursor-pointer`,"aria-label":`Selection theme`,children:P(i,{size:20,className:`animate-in fade-in zoom-in duration-300`})}),F(S.Root,{selectionMode:`single`,selectedKeys:[e],onSelectionChange:e=>{let n=Array.from(e)[0];t(n)},className:`w-36 bg-main border border-subtle rounded-xl p-1.5 shadow-md outline-none flex flex-col gap-0.5 animate-fade-in z-100`,children:[F(S.Item,{id:`light`,className:`group flex items-center gap-2 px-3 py-2 rounded-lg text-xs font-medium text-body dark:hover:bg-primary-300/50 hover:bg-primary-200/50 transition-colors duration-100 cursor-pointer select-none outline-none group data-selected:text-primary-500 data-selected:bg-primary-500/5`,children:[P(H,{className:`group-hover:text-primary-500 dark:group-hover:text-primary-200`,size:16}),P(`span`,{className:`ml-2`,children:`Light`})]}),F(S.Item,{id:`dark`,className:`flex items-center gap-2 px-3 py-2 rounded-lg text-xs font-medium text-body dark:hover:bg-primary-300/50 hover:bg-primary-200/50 transition-colors duration-100 cursor-pointer select-none outline-none group data-selected:text-primary-500 data-selected:bg-primary-500/5`,children:[P(V,{className:`group-hover:text-primary-500 dark:group-hover:text-primary-200`,size:16}),P(`span`,{className:`ml-2`,children:`Dark`})]}),F(S.Item,{id:`system`,className:`flex items-center gap-2 px-3 py-2 rounded-lg text-xs font-medium text-body dark:hover:bg-primary-300/50 hover:bg-primary-200/50 transition-colors duration-100 cursor-pointer select-none outline-none group data-selected:text-primary-500 data-selected:bg-primary-500/5`,children:[P(B,{className:`group-hover:text-primary-500 dark:group-hover:text-primary-200`,size:16}),P(`span`,{className:`ml-2`,children:`System`})]})]})]})}function He({className:e}){let{theme:t,setTheme:n}=E(),[r,i]=M(!1);if(A(()=>{i(!0)},[]),!r)return P(`div`,{className:f(`h-10 w-full bg-surface rounded-xl animate-pulse`,e)});let a=t===`dark`;return F(`div`,{className:f(`flex p-1 bg-surface border border-subtle rounded-xl relative w-full h-11`,e),children:[P(`div`,{className:f(`absolute inset-y-1 w-[calc(50%-4px)] bg-main border border-subtle rounded-lg transition-all duration-300 ease-out shadow-xs`,a?`translate-x-full`:`translate-x-0`)}),P(`button`,{onClick:()=>n(`light`),className:f(`flex-1 flex items-center justify-center rounded-lg z-10 transition-colors outline-none cursor-pointer border-none bg-transparent`,a?`text-muted hover:text-body`:`text-body font-semibold`),"aria-label":`Light mode`,children:P(H,{size:18})}),P(`button`,{onClick:()=>n(`dark`),className:f(`flex-1 flex items-center justify-center rounded-lg z-10 transition-colors outline-none cursor-pointer border-none bg-transparent`,a?`text-body font-semibold`:`text-muted hover:text-body`),"aria-label":`Dark mode`,children:P(V,{size:18})})]})}function Ue(e=[],t=[]){let n=k(),r=_e([]),[i,o]=M({opacity:0,transform:`translateX(0) scaleX(0)`,width:0}),s=a(n.pathname),c=t.find(e=>a(e.path)===s)?.tab?.toLowerCase(),l=e.findIndex(e=>e.id.toLowerCase()===c),u=l===-1?0:l;return A(()=>{let e=r.current[u];e&&o({opacity:1,width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`})},[u,e.length,n.pathname]),{tabs:e,activeIndex:u,indicatorStyle:i,tabRefs:r,activeTabId:c}}function We({tabs:e,routes:t}){let{currentLocale:n}=d(),{indicatorStyle:r,tabRefs:i,activeIndex:a}=Ue(e,t);A(()=>{let e=i.current[a];e&&e.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`center`})},[a]);let o=e=>{if(!e)return null;if(e.trim().startsWith(`<svg`))return P(`span`,{className:`h-4 w-4`,dangerouslySetInnerHTML:{__html:e}});let t=I[e];return t?P(t,{size:16}):P(`img`,{src:e,alt:``,className:`h-4 w-4 object-contain`})};return P(`div`,{className:`mx-auto max-w-(--breakpoint-3xl) px-4 md:px-6 select-none`,children:F(m.List,{className:`border-none py-0 scrollbar-hide relative flex flex-row items-center`,children:[e.map((e,r)=>{let c=r===a,l=t.find(t=>t.tab&&t.tab.toLowerCase()===e.id.toLowerCase());return F(s,{href:l?l.path:`#`,ref:e=>{i.current[r]=e},className:`relative flex items-center gap-2 px-4 py-3.5 text-sm font-semibold transition-colors duration-300 outline-none whitespace-nowrap ${c?`text-primary-500`:`text-muted hover:text-body`}`,children:[o(e.icon),P(`span`,{children:K(e.text,n)})]},e.id)}),P(m.Indicator,{style:r,className:`h-0.5 bg-primary-500 rounded-full transition-all duration-300`})]})})}function J(e,t,n){let r=e;return t&&(r===t||r.startsWith(t+`/`))&&(r=r===t?`index.md`:r.slice(t.length+1)),n&&(r===n||r.startsWith(n+`/`))&&(r=r===n?`index.md`:r.slice(n.length+1)),r}function Ge(){let e=ue(),t=r(),{allRoutes:n,currentRoute:i,currentVersion:a,currentLocale:o}=d(),s=t.versions,{setVersion:c}=u();return{currentVersion:a,currentVersionLabel:s?.versions?.find?.(e=>e.path===a)?.label||a,availableVersions:j(()=>s?s.versions.map(e=>({key:e.path,label:e.label,value:e.path,isCurrent:e.path===a})):[],[s,a]),handleVersionChange:r=>{if(!s||r===a)return;c(r);let l=`${(t.base||`/docs`).replace(/\/$/,``)}/${r}${o?`/${o}`:``}`;if(i){let e=J(i.filePath,i.version,i.locale),a=n.find(n=>J(n.filePath,n.version,n.locale)===e&&(n.version||s.defaultVersion)===r&&(!t.i18n||(n.locale||t.i18n.defaultLocale)===o));if(a)l=a.path;else{let e=n.find(e=>J(e.filePath,e.version,e.locale)===`index.md`&&(e.version||s.defaultVersion)===r&&(!t.i18n||(e.locale||t.i18n.defaultLocale)===o));e&&(l=e.path)}}else{let e=n.find(e=>(e.version||s.defaultVersion)===r&&(!t.i18n||(e.locale||t.i18n.defaultLocale)===o));e&&(l=e.path)}e(l)}}}function Ke(){let e=ue(),t=r(),{allRoutes:n,currentRoute:i,currentLocale:a,currentVersion:o}=d(),s=t.i18n,{setLocale:c}=u(),l=r=>{if(!s||r===a)return;c(r);let l=t.base||`/`,u=l===`/`?``:l.replace(/\/$/,``),d=!!i?.filePath,f=``;if(i)if(d){let e=J(i.filePath,i.version,i.locale),t=n.find(t=>J(t.filePath,t.version,t.locale)===e&&(t.locale||s.defaultLocale)===r&&t.version===i.version);if(t)f=t.path;else{let e=n.find(e=>J(e.filePath,e.version,e.locale)===`index.md`&&(e.locale||s.defaultLocale)===r&&e.version===i.version);f=e?e.path:`${u}${i.version?`/${i.version}`:``}${r===s.defaultLocale?``:`/${r}`}`||`/`}}else{let e=i.path,t=e.split(`/`).filter(Boolean);if(t.length>0&&(Array.isArray(s.locales)?s.locales.includes(t[0]):s.locales[t[0]])&&(t.shift(),e=`/`+t.join(`/`)),r===s.defaultLocale)f=e===``?`/`:e;else{let t=e.startsWith(`/`)?e:`/${e}`;f=`/${r}${t===`/`?``:t}`}}else{let e=n.find(e=>(e.locale||s.defaultLocale)===r&&(e.version||t.versions?.defaultVersion)===(o||t.versions?.defaultVersion));if(e)f=e.path;else{let e=o&&o!==t.versions?.defaultVersion?`/${o}`:``;f=r===s.defaultLocale?`${u}${e}`:`${u}${e}/${r}`}}(!f||f===``)&&(f=`/`),f=f.replace(/\/+/g,`/`),e(f)},f=s?.locales,p=f?Array.isArray(f)?a:f[a]:void 0;return{currentLocale:a,currentLocaleLabel:s?.localeConfigs?.[a]?.label||p||a,availableLocales:j(()=>s?Array.isArray(s.locales)?s.locales.map(e=>({key:e,label:s?.localeConfigs?.[e]?.label||e,value:e,isCurrent:e===a})):Object.entries(s.locales).map(([e,t])=>({key:e,label:s?.localeConfigs?.[e]?.label||t,value:e,isCurrent:e===a})):[],[s,a]),handleLocaleChange:l}}function qe({className:e}){let{currentVersionLabel:t,availableVersions:n,handleVersionChange:r}=Ge();return n.length===0?null:F(S.Trigger,{children:[F(h,{className:f(`flex h-9 items-center justify-between gap-2 border border-subtle bg-surface px-4 py-1.5 rounded-xl text-xs font-semibold text-body hover:bg-primary-50/20 hover:border-primary-500/50 transition-all duration-300 outline-none select-none cursor-pointer`,e),children:[P(`span`,{className:`font-semibold text-[0.8125rem]`,children:t}),P(R,{className:`w-3.5 h-3.5 text-muted/60`})]}),P(S.Root,{className:`w-40 bg-main border border-subtle rounded-xl p-1.5 shadow-md outline-none flex flex-col gap-0.5 animate-fade-in z-100`,children:P(S.Section,{items:n,children:e=>P(S.Item,{onPress:()=>r(e.value),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-xs font-medium text-body hover:bg-primary-50/50 cursor-pointer select-none outline-none group data-selected:text-primary-500 data-selected:bg-primary-500/5`,children:e.label},`${e.value??``}`)})})]})}function Je({className:e}){let{currentLocale:t,availableLocales:n,handleLocaleChange:r}=Ke();return n.length===0?null:F(S.Trigger,{children:[F(h,{className:f(`flex h-9 items-center justify-between gap-2 border border-subtle bg-surface px-4 py-1.5 rounded-xl text-xs font-semibold text-body hover:bg-primary-50/20 hover:border-primary-500/50 transition-all duration-300 outline-none select-none cursor-pointer`,e),children:[F(`div`,{className:`flex items-center gap-1.5`,children:[P(Se,{className:`w-3.5 h-3.5 text-primary-500`}),P(`span`,{className:`font-bold text-[0.75rem] uppercase opacity-90`,children:t||`en`})]}),P(R,{className:`w-3.5 h-3.5 text-muted/60`})]}),P(S.Root,{className:`w-40 bg-main border border-subtle rounded-xl p-1.5 shadow-md outline-none flex flex-col gap-0.5 animate-fade-in z-100`,children:P(S.Section,{items:n,children:e=>P(S.Item,{onPress:()=>r(e.value),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-xs font-medium text-body dark:hover:bg-primary-300/50 hover:bg-primary-200/50 transition-colors duration-100 cursor-pointer select-none outline-none group data-selected:text-primary-500 data-selected:bg-primary-500/5`,children:P(`span`,{children:e.label})},`${e.value??``}`)})})]})}const Ye=pe(()=>import(`../search-dialog-BKagVT17.js`).then(e=>e.n).then(e=>({default:e.SearchDialog})));function Xe(){let{links:e,title:t,logo:n,logoProps:r,github:i,social:a,config:o}=q(),{routes:s,allRoutes:c,currentRoute:l,currentVersion:u,currentLocale:p}=d(),{pathname:m}=k(),{isSidebarOpen:g,toggleSidebar:v}=_(),[y,b]=M(!1),x=o.theme||{},S=!!l?.filePath,C=x?.tabs&&x.tabs.length>0;return F(D.Root,{className:f(`border-b border-subtle bg-main/80 backdrop-blur-md`,C&&`border-b-0`),children:[F(D.Content,{children:[F(D.Left,{children:[S&&P(h,{onPress:v,className:`mr-2 lg:hidden p-1.5 h-8 w-8 flex items-center justify-center bg-transparent border-none outline-none select-none cursor-pointer rounded-xl hover:bg-primary-50/50 transition-colors`,"aria-label":g?`Close sidebar`:`Open sidebar`,children:P(g?Ee:Ce,{className:`w-5 h-5 text-body`})}),n&&P(D.Logo,{src:n,alt:r?.alt||t,width:r?.width??24,height:r?.height??24,href:`site:/`}),P(D.Title,{href:`site:/`,children:t}),P(`div`,{className:`hidden sm:block`,children:o.versions&&u&&P(qe,{})})]}),P(D.Center,{children:P(de,{fallback:P(`div`,{className:`h-9 w-32 animate-pulse rounded-md bg-surface`}),children:P(Ye,{routes:s||[]})})}),F(D.Right,{children:[P(de,{fallback:null,children:P(`div`,{className:`lg:hidden`,children:P(Ye,{routes:s||[]})})}),P(D.Links,{children:e.map(e=>P(Ze,{link:e},e.href))}),F(`div`,{className:`hidden sm:flex items-center gap-2`,children:[o.i18n&&p&&P(Je,{}),P(D.Split,{className:`bg-subtle`})]}),P(`div`,{className:`hidden md:block`,children:P(Ve,{})}),i&&P(`div`,{className:`hidden md:block`,children:P(Be,{repo:x?.githubRepo??``})}),a.length>0&&P(`div`,{className:`hidden md:block`,children:P(D.Split,{className:`bg-subtle`})}),P(`div`,{className:`hidden md:flex items-center gap-1`,children:a.map(({icon:e,link:t})=>P(D.Socials,{icon:e,link:t,className:`p-1.5 text-muted hover:text-body hover:bg-surface rounded-md transition-all focus-visible:ring-2 focus-visible:ring-primary-500/30`},t))}),P(D.More,{onPress:()=>b(!0),className:`text-muted hover:text-body active:scale-90 transition-all focus-visible:ring-2 focus-visible:ring-primary-500/30`})]})]}),F(D.MobileMenu,{isOpen:y,onClose:()=>b(!1),className:`bg-main/98 backdrop-blur-2xl`,children:[P(`div`,{className:`flex flex-col gap-1`,children:e.map(e=>P(Qe,{link:e,onClose:()=>b(!1)},e.href))}),a.length>0&&F(`div`,{className:`mt-6`,children:[P(`div`,{className:`px-4 mb-4 text-xs font-bold uppercase tracking-widest text-muted/50`,children:`Connect`}),P(`div`,{className:`flex flex-wrap gap-2 px-2`,children:a.map(({icon:e,link:t})=>P(D.Socials,{icon:e,link:t,className:`p-3 bg-surface border border-subtle rounded-xl flex-1 justify-center`},t))})]})]}),S&&C&&x?.tabs&&P(`div`,{className:`w-full border-b border-subtle bg-main`,children:P(We,{tabs:x.tabs,routes:c||s||[]})})]})}function Ze({link:e}){let t=c(e.href||``),{pathname:n}=k(),r=n===t||n.startsWith(t+`/`);return e.items&&e.items.length>0?P(D.Dropdown,{label:P(`span`,{className:f(`transition-colors outline-none font-medium focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm px-2 py-1`,r?`text-primary-500`:`text-muted hover:text-body`),children:e.label}),children:e.items?.map(e=>P(D.DropdownItem,{href:c(e.href||``),label:e.label},e.href))}):P(D.Link,{...e,href:t,active:r,className:f(`transition-colors outline-none font-medium focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm`,r?`text-primary-500`:`text-muted hover:text-body`)})}function Qe({link:e,onClose:t}){let n=c(e.href||``),{pathname:r}=k(),i=r===n;return e.items&&e.items.length>0?F(`div`,{className:`flex flex-col gap-1`,children:[P(`div`,{className:f(`px-3 py-2 text-sm transition-all`,i?`text-body`:`text-muted/80 hover:text-body`),children:e.label}),P(`div`,{className:`flex flex-col gap-1 pl-4`,children:e.items?.map(e=>P(Qe,{link:e,onClose:t},e.href))})]}):P(D.MobileLink,{...e,href:n,active:i,onPress:t,className:f(`transition-all`,i?`text-body`:`text-muted/80 hover:text-body`)})}function Y(){return P(`div`,{className:`flex items-center justify-center min-h-[65vh] text-center px-4`,children:F(`div`,{className:`space-y-6 max-w-md mx-auto p-8 border border-subtle bg-surface rounded-2xl shadow-xs`,children:[P(`span`,{className:`block text-7xl font-extrabold tracking-tight text-primary-500`,children:`404`}),F(`div`,{className:`space-y-2`,children:[P(`h1`,{className:`text-xl font-bold text-body`,children:`Page Not Found`}),P(`p`,{className:`text-sm text-muted leading-relaxed`,children:`The page you're looking for doesn't exist or has been moved.`})]}),F(s,{href:`/`,className:`inline-flex items-center gap-2 rounded-xl border border-subtle bg-main px-6 py-2.5 text-xs font-semibold text-body hover:bg-primary-50/50 hover:border-primary-500/50 transition-all duration-300 outline-none select-none`,children:[P(ve,{size:14}),` Go to Home`]})]})})}function $e({headings:e=[],editLink:t,communityHelp:n,filePath:r}){return e.length===0?null:F(v.Root,{children:[F(v.Header,{className:`flex flex-row gap-x-2`,children:[P(Te,{size:16}),`On this page`]}),P(v.Tree,{headings:e}),(t||n)&&F(`div`,{className:`mt-8 pt-8 border-t border-subtle space-y-4`,children:[P(`p`,{className:`text-xs font-bold text-body`,children:`Need help?`}),F(`ul`,{className:`space-y-3`,children:[t&&r&&P(`li`,{children:F(`a`,{href:t.replace(`:path`,r),target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 text-sm text-muted hover:text-body transition-colors`,children:[P(we,{size:16}),`Edit this page`]})}),n&&P(`li`,{children:F(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 text-sm text-muted hover:text-body transition-colors`,children:[P(ye,{size:16}),`Community help`]})})]})]})]})}function et(){let{routes:e,currentRoute:t}=d(),n=k();return j(()=>{if(!t)return{prevPage:null,nextPage:null,currentRoute:null};let r=t.tab?.toLowerCase(),i=r?e.filter(e=>e.tab?.toLowerCase()===r):e.filter(e=>!e.tab),a=i.findIndex(e=>e.path===n.pathname);return{prevPage:a>0?i[a-1]:null,nextPage:a!==-1&&a<i.length-1?i[a+1]:null,currentRoute:t}},[e,t,n.pathname])}function tt(){let{prevPage:e,nextPage:t}=et();return!e&&!t?null:F(y.Root,{className:`pt-8 border-t border-subtle grid sm:grid-cols-2 gap-4 animate-in fade-in slide-in-from-bottom-4 duration-700 select-none`,children:[e?F(y.Link,{to:e.path,direction:`prev`,className:`group border border-subtle bg-surface p-5 rounded-2xl transition-all duration-300 hover:border-primary-500/50 hover:bg-primary-50/20`,children:[P(y.Title,{className:`text-xs font-bold uppercase tracking-wider text-muted/60 mb-1`,children:`Previous`}),P(y.Description,{className:`text-sm sm:text-base font-bold text-body group-hover:text-primary-500 transition-colors`,children:e.title})]}):P(`div`,{}),t?F(y.Link,{to:t.path,direction:`next`,className:`group border border-subtle bg-surface p-5 rounded-2xl transition-all duration-300 hover:border-primary-500/50 hover:bg-primary-50/20`,children:[P(y.Title,{className:`text-xs font-bold uppercase tracking-wider text-muted/60 mb-1`,children:`Next`}),P(y.Description,{className:`text-sm sm:text-base font-bold text-body group-hover:text-primary-500 transition-colors`,children:t.title})]}):P(`div`,{})]})}function nt({routes:e,config:t}){let{logo:n,title:r,logoProps:i}=q(),{closeSidebar:a}=_(),o=n?P(`img`,{src:n,alt:i?.alt||r,width:24,height:24,className:`rounded-xl`}):null,s=t.versions||t.i18n;return F(N,{children:[P(b.Root,{children:P(b.Content,{children:P(b.Items,{routes:e})})}),F(b.Mobile,{children:[F(b.Header,{children:[F(`div`,{className:`flex items-center gap-3`,children:[o,P(`span`,{className:`font-bold text-lg tracking-tight text-body truncate max-w-[120px]`,children:r})]}),F(`div`,{className:`flex items-center gap-2`,children:[P(He,{className:`w-24 h-9 rounded-xl`}),P(h,{onPress:a,className:`h-9 w-9 flex items-center justify-center bg-transparent border-none outline-none select-none cursor-pointer rounded-xl hover:bg-primary-50/50 text-muted hover:text-body transition-colors`,"aria-label":`Close sidebar`,children:P(I.X,{size:20})})]})]}),F(b.Content,{children:[s&&F(`div`,{className:`flex flex-col gap-4 mb-10`,children:[F(`div`,{className:`flex gap-3`,children:[t.versions&&P(qe,{className:`flex-1 justify-between h-10 bg-surface border-subtle rounded-xl`}),t.i18n&&P(Je,{className:`flex-1 justify-between h-10 bg-surface border-subtle rounded-xl`})]}),P(`div`,{className:`mt-2 border-b border-subtle`})]}),P(b.Items,{routes:e})]})]})]})}const rt=Object.assign(nt,{Root:b.Root,Mobile:b.Mobile,Header:b.Header,Content:b.Content,Group:b.Group,Link:b.Link,SubGroup:b.SubGroup,Item:b.Item,Items:b.Items});function it({date:e}){if(!e)return null;let t=new Date(e);if(isNaN(t.getTime()))return null;let n=t.toLocaleDateString(void 0,{year:`numeric`,month:`long`,day:`numeric`});return F(`div`,{className:`mt-16 pt-6 border-t border-subtle flex items-center justify-between text-xs text-muted select-none`,children:[P(`span`,{}),F(`span`,{className:`italic`,children:[`Last updated on `,n]})]})}function at({route:e,content:t,mdxComponents:n}){let r=G(),i=j(()=>({LastUpdated:it,...r,...n}),[r,n]),a=i.LastUpdated||it;return t?F(N,{children:[P(t,{components:i}),e?.lastUpdated&&P(a,{date:e.lastUpdated})]}):null}function ot({MDXComponent:e,mdxComponents:t}){let n=le(),r=e||n?.MDXComponent,i=t||n?.mdxComponents;return r?P(at,{route:{path:n.path,filePath:n.filePath,title:n.frontmatter.title,description:n.frontmatter.description,headings:n.headings,locale:n.locale,version:n.version,group:n.group,groupTitle:n.groupTitle,lastUpdated:n.lastUpdated,frontmatter:n.frontmatter},content:r,mdxComponents:i}):null}const X=Oe,st=X.Helmet||X.default?.Helmet||(({children:e})=>P(N,{children:e})),ct=X.HelmetProvider||X.default?.HelmetProvider||(({children:e})=>P(N,{children:e}));function lt(){let{pathname:e,hash:t}=k();return ge(()=>{let e=document.querySelector(`.boltdocs-content`)||window,n=()=>e===window?window.scrollY:e.scrollTop,r=(t,n=`auto`)=>{e===window?window.scrollTo({top:t,behavior:n}):e.scrollTo({top:t,behavior:n})};if(t){let i=t.replace(`#`,``),a=document.getElementById(i);if(a){let t=e===window?0:e.getBoundingClientRect().top;r(a.getBoundingClientRect().top-t-80+n(),`auto`);return}}r(0)},[e,t]),null}const ut={...se,NotFound:Y,404:Y};function Z(e){return e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e}function dt({config:e}){let{currentLocale:t}=u();return A(()=>{if(!e.i18n||typeof document>`u`)return;let n=t||e.i18n.defaultLocale,r=e.i18n.localeConfigs?.[n];document.documentElement.lang=r?.htmlLang||n||`en`,document.documentElement.dir=r?.direction||`ltr`},[t,e.i18n]),null}function ft({config:e,routeMap:t}){let n=k(),{setLocale:r,setVersion:i}=u();return A(()=>{let a=Z(n.pathname),o=t.get(a);o&&(e.i18n&&r(o.locale||e.i18n.defaultLocale),e.versions&&i(o.version||e.versions.defaultVersion))},[n.pathname,e,t,r,i]),null}function pt({config:e,routes:t,components:r={}}){let a=j(()=>({...ut,...ke,...r}),[r]),{pathname:s}=k(),c=j(()=>Z(s||`/`),[s]),l=j(()=>{let e=new Map;for(let n of t){let t=Z(n.path===``?`/`:n.path);e.set(t,n)}return e},[t]),u=j(()=>{let t=l.get(c),n,r;return t&&(e.i18n&&(n=t.locale||e.i18n.defaultLocale),e.versions&&(r=t.version||e.versions.defaultVersion)),{initLocale:n,initVersion:r}},[c,e,l]);return P(ct,{children:P(o,{routes:t,children:P(ne,{children:P(te,{children:P(Me,{components:a,children:F(i.Provider,{value:e,children:[P(lt,{}),F(n,{initialLocale:u.initLocale,initialVersion:u.initVersion,children:[P(ft,{config:e,routeMap:l}),P(dt,{config:e}),P(O,{})]})]})})})})})})}function mt({siteTitle:e,siteDescription:t,routes:n}){let i=k(),a=r(),{currentLocale:o}=d(),s=j(()=>n?.find?.(e=>e.path===i.pathname),[n,i.pathname]),c=s?.title,l=K(t,o),u=s?.description||l||``,f=K(e,o),p=c?`${c} | ${f}`:f,m=s?.seo||{},h=a?.seo?.metatags||{},g=a?.seo?.thumbnails?.background,_=m[`og:image`]||g;return F(st,{children:[P(`title`,{children:p}),P(`meta`,{name:`description`,content:u}),P(`meta`,{property:`og:title`,content:p}),P(`meta`,{property:`og:description`,content:u}),P(`meta`,{property:`og:type`,content:`article`}),typeof window<`u`&&P(`meta`,{property:`og:url`,content:window.location.href}),typeof window<`u`&&P(`link`,{rel:`canonical`,href:window.location.origin+i.pathname}),P(`meta`,{name:`twitter:card`,content:`summary`}),P(`meta`,{name:`twitter:title`,content:p}),P(`meta`,{name:`twitter:description`,content:u}),_&&P(`meta`,{name:`twitter:image`,content:_}),_&&P(`meta`,{property:`og:image`,content:_}),P(`meta`,{name:`generator`,content:`Boltdocs`}),Object.entries(h).map(([e,t])=>e.startsWith(`og:`)||e.startsWith(`music:`)||e.startsWith(`video:`)||e.startsWith(`article:`)||e.startsWith(`book:`)||e.startsWith(`profile:`)?P(`meta`,{property:e,content:t},e):P(`meta`,{name:e,content:t},e)),Object.entries(m).map(([e,t])=>e===`noindex`&&t===!0?P(`meta`,{name:`robots`,content:`noindex`},`noindex`):e===`robots`?P(`meta`,{name:`robots`,content:t},`robots`):e===`canonical`?P(`link`,{rel:`canonical`,href:t},`canonical`):e.startsWith(`og:`)||e.startsWith(`music:`)||e.startsWith(`video:`)||e.startsWith(`article:`)||e.startsWith(`book:`)||e.startsWith(`profile:`)?P(`meta`,{property:e,content:t},e):P(`meta`,{name:e,content:t},e))]})}function ht(){let e=r(),{currentRoute:t,allRoutes:n}=d();return F(N,{children:[P(mt,{siteTitle:e.theme?.title,siteDescription:e.theme?.description,routes:n||[]}),P(Ae,{route:t,children:P(O,{})})]})}const gt=()=>P(`div`,{className:`text-muted text-sm py-4`,children:`Loading...`}),_t=({moduleLoader:e,moduleKey:t,route:n,components:r})=>{let i=e?.default??e??null;return A(()=>{if(!import.meta.hot||!t)return;let e=e=>{e.relPath.replace(/\\/g,`/`).replace(/^\//,``)===n.filePath.replace(/\\/g,`/`).replace(/^\//,``)&&import(t+`?t=`+Date.now()).then(e=>{})};return import.meta.hot.on(`boltdocs:mdx-update`,e),()=>import.meta.hot?.off(`boltdocs:mdx-update`,e)},[t,n.filePath]),i?P(ot,{MDXComponent:i,mdxComponents:r}):P(gt,{})},vt=()=>{let e=G();return P(e.NotFound||e[404]||Y,{})};function yt(e){let{routesData:t,config:n,mdxModules:r,externalPages:i,externalLayout:a,components:o}=e,s=a||(({children:e})=>P(N,{children:e})),c=e=>{let t=n.base||`/`;return e.startsWith(t)?e:`${t===`/`?``:t.replace(/\/$/,``)}${e.startsWith(`/`)?e:`/${e}`}`||`/`},l=[],u=n.versions?.defaultVersion,d=(n.base||`/docs`).replace(/\/$/,``);u&&t.forEach(e=>{if(e.version)return;let t=e.path||``,n=t.startsWith(d)?t.substring(d.length).replace(/^\//,``):t.replace(/^\//,``);if(!(n===u||n.startsWith(`${u}/`))){let t=`${d}/${u}/${n}`.replace(/\/+/g,`/`).replace(/\/$/,``)||`/`;l.push({...e,path:t,version:u})}});let f=[...t,...l],p=new Map,m=Object.keys(r);if(m.length>0){let e=m[0].replace(/\\/g,`/`).split(`/`).filter(Boolean)[0]||`docs`,t=`/${e}/`,n=`./${e}/`;for(let e of m){let r=e.replace(/\\/g,`/`),i=``;r.indexOf(t)===-1?r.startsWith(n)&&(i=r.substring(n.length)):i=r.substring(r.indexOf(t)+t.length),i?p.set(i,e):p.set(r,e)}}let h=f.map(e=>{let t=e.filePath.replace(/\\/g,`/`),n=p.get(t),i=n?r[n]:null,a=c(e.path===``?`/`:e.path);return{path:a,element:P(_t,{moduleKey:n,moduleLoader:i,route:e,components:o},n||a),loader:async()=>({path:a,frontmatter:{title:e.title,description:e.description||``,...e.frontmatter||{}},headings:e.headings||[],filePath:e.filePath,locale:e.locale,version:e.version,group:e.group,groupTitle:e.groupTitle,date:e.date,lastUpdated:e.lastUpdated}),getStaticPaths:()=>[a]}}),g=(n.base||`/docs`).replace(/\/$/,``);g||=`/`;let _=n.i18n?.locales?Array.isArray(n.i18n.locales)?n.i18n.locales:Object.keys(n.i18n.locales):[],v=n.versions?.versions?.map(e=>e.path)||[],y=[];y.push({path:g,filter:()=>!0});let b=[];v.length>0&&v.forEach(e=>b.push(`/${e}`)),_.length>0&&_.forEach(e=>b.push(`/${e}`)),v.length>0&&_.length>0&&v.forEach(e=>{_.forEach(t=>{b.push(`/${e}/${t}`)})}),b.forEach(e=>{let t=g===`/`?e:`${g}${e}`;y.push({path:t,filter:e=>e.startsWith(t.replace(/\/$/,``)+`/`)})});let x=new Set(h.map(e=>(e.path||``).replace(/\/$/,``))),S=new Set;i&&Object.keys(i).forEach(e=>{let t=e.startsWith(`/`)?e:`/${e}`;S.add(t.replace(/\/$/,``)),n.i18n&&Object.keys(n.i18n.locales).forEach(e=>{S.add(`/${e}${t===`/`?``:t}`.replace(/\/$/,``))})}),y.forEach(({path:e,filter:t})=>{if(e===`/`)return;let r=e.replace(/\/$/,``);if(!(x.has(r)||S.has(r))){let i=n.theme?.tabs?.[0]?.id,a=i?`${r}/${i}`.replace(/\/+/g,`/`):null,o=a&&x.has(a.replace(/\/$/,``))?h.find(e=>e.path.replace(/\/$/,``)===a.replace(/\/$/,``)):h.find(e=>t(e.path)&&e.path!==r),s=o?o.path:h.length>0?h[0].path:null;s&&h.push({path:e,element:P(ce,{to:s,replace:!0}),loader:async()=>({path:e}),getStaticPaths:()=>[e]})}});let C=[{element:P(ht,{}),children:h}],w=[];return i&&Object.entries(i).forEach(([e,t])=>{let r=e.startsWith(`/`)?e:`/${e}`;C.find(e=>e.path===r)||(w.push({path:r,locale:n.i18n?.defaultLocale,title:e===`/`?`Home`:e.replace(/^\//,``).split(`/`).pop()||`Page`,filePath:``,headings:[]}),C.push({path:r,element:P(s,{children:P(t,{})}),loader:async()=>({path:r,locale:n.i18n?.defaultLocale}),getStaticPaths:()=>[r]}),n.i18n&&Object.keys(n.i18n.locales).forEach(n=>{let r=`/${n}${e===`/`?``:e}`;C.find(e=>e.path===r)||(w.push({path:r,locale:n,title:e,filePath:``,headings:[]}),C.push({path:r,element:P(s,{children:P(t,{})}),loader:async()=>({path:r,locale:n}),getStaticPaths:()=>[r]}))}))}),C.push({path:`*`,element:P(s,{children:P(vt,{})})}),[{element:P(pt,{config:n,routes:[...f,...w],components:o}),children:C}]}function Q(e){return typeof window>`u`?$():typeof window.gtag==`function`?bt(e):window.dataLayer?xt(e):$()}function bt(e){return{trackPageView:(t,n)=>{window.gtag?.(`event`,`page_view`,{page_path:t,page_title:n||document.title,send_to:e?.ga4?.measurementId})},trackEvent:({action:t,category:n,label:r,value:i,params:a})=>{window.gtag?.(`event`,t,{event_category:n,event_label:r,value:i,send_to:e?.ga4?.measurementId,...a})},trackSearch:(t,n)=>{window.gtag?.(`event`,`search`,{search_term:t,results_count:n,send_to:e?.ga4?.measurementId})},trackDownload:(t,n)=>{window.gtag?.(`event`,`file_download`,{file_name:t,file_type:n||t.split(`.`).pop(),send_to:e?.ga4?.measurementId})},trackExternalLink:t=>{window.gtag?.(`event`,`external_link`,{link_url:t,send_to:e?.ga4?.measurementId})},isEnabled:!0}}function xt(e){return{trackPageView:(t,n)=>{window.dataLayer?.push({event:`page_view`,page_path:t,page_title:n||document.title,send_to:e?.gtm?.tagId})},trackEvent:({action:t,category:n,label:r,value:i,params:a})=>{window.dataLayer?.push({event:t,event_category:n,event_label:r,value:i,send_to:e?.gtm?.tagId,...a})},trackSearch:(t,n)=>{window.dataLayer?.push({event:`search`,search_term:t,results_count:n,send_to:e?.gtm?.tagId})},trackDownload:(t,n)=>{window.dataLayer?.push({event:`file_download`,file_name:t,file_type:n||t.split(`.`).pop(),send_to:e?.gtm?.tagId})},trackExternalLink:t=>{window.dataLayer?.push({event:`external_link`,link_url:t,send_to:e?.gtm?.tagId})},isEnabled:!0}}function $(){return{trackPageView:()=>{},trackEvent:()=>{},trackSearch:()=>{},trackDownload:()=>{},trackExternalLink:()=>{},isEnabled:!1}}const St=Symbol.for(`__BDOCS_CONFIG_INSTANCE__`);function Ct(e={}){let{config:t,autoTrackPageViews:n=!0,autoTrackDownloads:r=!0,autoTrackExternalLinks:i=!0,excludePatterns:a=[]}=e,o=typeof globalThis<`u`?globalThis[St]:void 0,s=t??o?.integrations,c=j(()=>Q(s),[s]),l=_e(``),u=ee();return A(()=>{if(!n||!c.isEnabled)return;let e=u.pathname+u.search;e!==l.current&&(l.current=e,c.trackPageView(e,document.title))},[u.pathname,n,c]),A(()=>{if(!r||!c.isEnabled)return;let e=e=>{let t=e.target?.closest(`a`);if(!t)return;let n=t.getAttribute(`href`);if(n&&!a.some(e=>e.test(n))&&(t.hasAttribute(`download`)||/\.(pdf|doc|docx|xls|xlsx|ppt|pptx|zip|rar|7z|tar|gz|mp3|mp4|avi|mov|png|jpg|jpeg|gif|svg|webp)$/i.test(n))){let e=n.split(`/`).pop()||n;c.trackDownload(e,e.split(`.`).pop())}};return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[r,i,c,a]),A(()=>{if(!i||!c.isEnabled)return;let e=e=>{let t=e.target?.closest(`a`);if(!t)return;let n=t.getAttribute(`href`);n&&(a.some(e=>e.test(n))||(n.startsWith(`http://`)||n.startsWith(`https://`)||n.startsWith(`//`))&&!n.includes(window.location.hostname)&&c.trackExternalLink(n))};return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[i,c,a]),c}function wt(){let e=j(()=>Q(),[]);return he((t,n)=>{e.trackPageView(t,n)},[e])}function Tt(){let e=j(()=>Q(),[]);return he(t=>{e.trackEvent(t)},[e])}function Et({children:e}){let{routes:t,currentRoute:n}=d(),i=r();return F(T,{className:`selection:bg-primary-500/10 selection:text-primary-500`,children:[P(Xe,{}),F(T.Body,{className:`bg-main`,children:[P(rt,{routes:t||[],config:i}),P(T.Content,{className:`animate-in fade-in duration-500 scroll-smooth`,children:F(T.ContentMdx,{className:`max-w-5xl px-2 pt-8 pb-24`,children:[F(T.Header,{children:[F(`div`,{className:`mb-4 border-b border-subtle pb-4 flex flex-wrap items-center justify-between gap-3`,children:[P(Pe,{}),P(Ie,{mdxRaw:n?._rawContent,route:n})]}),n?.title&&P(`h1`,{className:`text-4xl font-bold tracking-tight text-default mb-3`,children:n.title}),n?.description&&P(`p`,{className:`text-lg text-muted-foreground mb-6 leading-relaxed`,children:n.description})]}),P(Le,{children:P(`div`,{className:`prose prose-neutral dark:prose-invert max-w-none`,children:e})}),P(T.Footer,{children:P(tt,{})})]})}),P($e,{headings:n?.headings,editLink:i.theme?.editLink,communityHelp:i.theme?.communityHelp,filePath:n?.filePath})]})]})}const Dt=Object.assign(Et,{Body:T.Body,Content:T.Content,ContentMdx:T.ContentMdx,Header:T.Header,Footer:T.Footer});export{pt as BoltdocsShell,Pe as Breadcrumbs,oe as Card,ae as Cards,Ie as CopyMarkdown,Dt as DocsLayout,Le as ErrorBoundary,ot as MdxPage,Xe as Navbar,Y as NotFound,$e as OnThisPage,tt as PageNav,t as SearchDialog,rt as Sidebar,f as cn,ie as copyToClipboard,yt as createRoutes,Re as getStarsRepo,K as getTranslated,re as reactToText,Ct as useAnalytics,Ne as useBreadcrumbs,r as useConfig,Ke as useI18n,c as useLocalizedTo,ee as useLocation,G as useMdxComponents,q as useNavbar,et as usePageNav,d as useRoutes,e as useSearch,w as useSearchHighlight,C as useSidebar,Ue as useTabs,E as useTheme,Tt as useTrackEvent,wt as useTrackPageView,_ as useUI,Ge as useVersion};
@@ -3,4 +3,4 @@
3
3
  * Copyright (c) 2026 Jesus Alcala
4
4
  * Licensed under the MIT License.
5
5
  */
6
- var e=`2.6.2`;Object.defineProperty(exports,`version`,{enumerable:!0,get:function(){return e}});
6
+ var e=require(`../mdx-hpErbRUe.cjs`).t;module.exports=e;
@@ -0,0 +1,128 @@
1
+
2
+ import { n as Card, t as Cards } from "../cards-CQn9mXZS.cjs";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/client/components/mdx/field.d.ts
6
+ interface FieldProps {
7
+ children?: React.ReactNode;
8
+ name: string;
9
+ type?: string;
10
+ description?: string;
11
+ required?: boolean;
12
+ }
13
+ //#endregion
14
+ //#region src/client/components/mdx/image.d.ts
15
+ interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
16
+ theme?: 'light' | 'dark';
17
+ }
18
+ //#endregion
19
+ //#region src/client/components/mdx/callout.d.ts
20
+ type CalloutVariant = 'note' | 'tip' | 'warning' | 'danger' | 'info';
21
+ interface CalloutProps extends React.HTMLAttributes<HTMLDivElement> {
22
+ variant?: CalloutVariant;
23
+ title?: string;
24
+ }
25
+ declare function Callout({
26
+ children,
27
+ className,
28
+ variant,
29
+ title,
30
+ ...props
31
+ }: CalloutProps): _$react_jsx_runtime0.JSX.Element;
32
+ //#endregion
33
+ //#region src/client/components/mdx/code-block.d.ts
34
+ interface CodeBlockProps {
35
+ children?: React.ReactNode;
36
+ className?: string;
37
+ hideCopy?: boolean;
38
+ title?: string;
39
+ lang?: string;
40
+ highlightedHtml?: string;
41
+ 'data-lang'?: string;
42
+ 'data-title'?: string;
43
+ plain?: boolean;
44
+ [key: string]: any;
45
+ }
46
+ declare function CodeBlock(props: CodeBlockProps): _$react_jsx_runtime0.JSX.Element;
47
+ //#endregion
48
+ //#region src/client/components/mdx/index.d.ts
49
+ declare const mdx_components_default: {
50
+ pre: typeof CodeBlock;
51
+ Field: ({
52
+ children,
53
+ name,
54
+ type,
55
+ description,
56
+ required
57
+ }: FieldProps) => _$react_jsx_runtime0.JSX.Element;
58
+ Callout: typeof Callout;
59
+ Card: typeof Card;
60
+ Cards: typeof Cards;
61
+ img: ({
62
+ src,
63
+ alt,
64
+ title,
65
+ theme,
66
+ className,
67
+ ...props
68
+ }: ImageProps) => _$react_jsx_runtime0.JSX.Element | null;
69
+ Image: ({
70
+ src,
71
+ alt,
72
+ title,
73
+ theme,
74
+ className,
75
+ ...props
76
+ }: ImageProps) => _$react_jsx_runtime0.JSX.Element | null;
77
+ table: (props: React.HTMLAttributes<HTMLTableElement>) => _$react_jsx_runtime0.JSX.Element;
78
+ thead: (props: React.HTMLAttributes<HTMLTableSectionElement>) => _$react_jsx_runtime0.JSX.Element;
79
+ tbody: (props: React.HTMLAttributes<HTMLTableSectionElement>) => _$react_jsx_runtime0.JSX.Element;
80
+ tr: (props: React.HTMLAttributes<HTMLTableRowElement>) => _$react_jsx_runtime0.JSX.Element;
81
+ th: (props: React.HTMLAttributes<HTMLTableCellElement>) => _$react_jsx_runtime0.JSX.Element;
82
+ td: (props: React.HTMLAttributes<HTMLTableCellElement>) => _$react_jsx_runtime0.JSX.Element;
83
+ a: ({
84
+ href,
85
+ children,
86
+ className,
87
+ ...props
88
+ }: React.AnchorHTMLAttributes<HTMLAnchorElement>) => _$react_jsx_runtime0.JSX.Element;
89
+ h1: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
90
+ h2: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
91
+ h3: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
92
+ h4: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
93
+ h5: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
94
+ h6: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
95
+ p: ({
96
+ className,
97
+ ...props
98
+ }: React.HTMLAttributes<HTMLParagraphElement>) => _$react_jsx_runtime0.JSX.Element;
99
+ strong: ({
100
+ className,
101
+ ...props
102
+ }: React.HTMLAttributes<HTMLElement>) => _$react_jsx_runtime0.JSX.Element;
103
+ mark: ({
104
+ className,
105
+ ...props
106
+ }: React.HTMLAttributes<HTMLElement>) => _$react_jsx_runtime0.JSX.Element;
107
+ blockquote: ({
108
+ className,
109
+ ...props
110
+ }: React.HTMLAttributes<HTMLQuoteElement>) => _$react_jsx_runtime0.JSX.Element;
111
+ hr: ({
112
+ className,
113
+ ...props
114
+ }: React.HTMLAttributes<HTMLHRElement>) => _$react_jsx_runtime0.JSX.Element;
115
+ ul: ({
116
+ className,
117
+ ...props
118
+ }: React.HTMLAttributes<HTMLUListElement>) => _$react_jsx_runtime0.JSX.Element;
119
+ ol: ({
120
+ className,
121
+ ...props
122
+ }: React.HTMLAttributes<HTMLOListElement>) => _$react_jsx_runtime0.JSX.Element;
123
+ li: ({
124
+ className,
125
+ ...props
126
+ }: React.HTMLAttributes<HTMLLIElement>) => _$react_jsx_runtime0.JSX.Element;
127
+ };
128
+ export = mdx_components_default;
@@ -0,0 +1,129 @@
1
+
2
+ import { n as Card, t as Cards } from "../cards-BLoSiRuL.js";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/client/components/mdx/field.d.ts
6
+ interface FieldProps {
7
+ children?: React.ReactNode;
8
+ name: string;
9
+ type?: string;
10
+ description?: string;
11
+ required?: boolean;
12
+ }
13
+ //#endregion
14
+ //#region src/client/components/mdx/image.d.ts
15
+ interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
16
+ theme?: 'light' | 'dark';
17
+ }
18
+ //#endregion
19
+ //#region src/client/components/mdx/callout.d.ts
20
+ type CalloutVariant = 'note' | 'tip' | 'warning' | 'danger' | 'info';
21
+ interface CalloutProps extends React.HTMLAttributes<HTMLDivElement> {
22
+ variant?: CalloutVariant;
23
+ title?: string;
24
+ }
25
+ declare function Callout({
26
+ children,
27
+ className,
28
+ variant,
29
+ title,
30
+ ...props
31
+ }: CalloutProps): _$react_jsx_runtime0.JSX.Element;
32
+ //#endregion
33
+ //#region src/client/components/mdx/code-block.d.ts
34
+ interface CodeBlockProps {
35
+ children?: React.ReactNode;
36
+ className?: string;
37
+ hideCopy?: boolean;
38
+ title?: string;
39
+ lang?: string;
40
+ highlightedHtml?: string;
41
+ 'data-lang'?: string;
42
+ 'data-title'?: string;
43
+ plain?: boolean;
44
+ [key: string]: any;
45
+ }
46
+ declare function CodeBlock(props: CodeBlockProps): _$react_jsx_runtime0.JSX.Element;
47
+ //#endregion
48
+ //#region src/client/components/mdx/index.d.ts
49
+ declare const mdx_components_default: {
50
+ pre: typeof CodeBlock;
51
+ Field: ({
52
+ children,
53
+ name,
54
+ type,
55
+ description,
56
+ required
57
+ }: FieldProps) => _$react_jsx_runtime0.JSX.Element;
58
+ Callout: typeof Callout;
59
+ Card: typeof Card;
60
+ Cards: typeof Cards;
61
+ img: ({
62
+ src,
63
+ alt,
64
+ title,
65
+ theme,
66
+ className,
67
+ ...props
68
+ }: ImageProps) => _$react_jsx_runtime0.JSX.Element | null;
69
+ Image: ({
70
+ src,
71
+ alt,
72
+ title,
73
+ theme,
74
+ className,
75
+ ...props
76
+ }: ImageProps) => _$react_jsx_runtime0.JSX.Element | null;
77
+ table: (props: React.HTMLAttributes<HTMLTableElement>) => _$react_jsx_runtime0.JSX.Element;
78
+ thead: (props: React.HTMLAttributes<HTMLTableSectionElement>) => _$react_jsx_runtime0.JSX.Element;
79
+ tbody: (props: React.HTMLAttributes<HTMLTableSectionElement>) => _$react_jsx_runtime0.JSX.Element;
80
+ tr: (props: React.HTMLAttributes<HTMLTableRowElement>) => _$react_jsx_runtime0.JSX.Element;
81
+ th: (props: React.HTMLAttributes<HTMLTableCellElement>) => _$react_jsx_runtime0.JSX.Element;
82
+ td: (props: React.HTMLAttributes<HTMLTableCellElement>) => _$react_jsx_runtime0.JSX.Element;
83
+ a: ({
84
+ href,
85
+ children,
86
+ className,
87
+ ...props
88
+ }: React.AnchorHTMLAttributes<HTMLAnchorElement>) => _$react_jsx_runtime0.JSX.Element;
89
+ h1: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
90
+ h2: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
91
+ h3: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
92
+ h4: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
93
+ h5: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
94
+ h6: (props: React.HTMLAttributes<HTMLHeadingElement>) => _$react_jsx_runtime0.JSX.Element;
95
+ p: ({
96
+ className,
97
+ ...props
98
+ }: React.HTMLAttributes<HTMLParagraphElement>) => _$react_jsx_runtime0.JSX.Element;
99
+ strong: ({
100
+ className,
101
+ ...props
102
+ }: React.HTMLAttributes<HTMLElement>) => _$react_jsx_runtime0.JSX.Element;
103
+ mark: ({
104
+ className,
105
+ ...props
106
+ }: React.HTMLAttributes<HTMLElement>) => _$react_jsx_runtime0.JSX.Element;
107
+ blockquote: ({
108
+ className,
109
+ ...props
110
+ }: React.HTMLAttributes<HTMLQuoteElement>) => _$react_jsx_runtime0.JSX.Element;
111
+ hr: ({
112
+ className,
113
+ ...props
114
+ }: React.HTMLAttributes<HTMLHRElement>) => _$react_jsx_runtime0.JSX.Element;
115
+ ul: ({
116
+ className,
117
+ ...props
118
+ }: React.HTMLAttributes<HTMLUListElement>) => _$react_jsx_runtime0.JSX.Element;
119
+ ol: ({
120
+ className,
121
+ ...props
122
+ }: React.HTMLAttributes<HTMLOListElement>) => _$react_jsx_runtime0.JSX.Element;
123
+ li: ({
124
+ className,
125
+ ...props
126
+ }: React.HTMLAttributes<HTMLLIElement>) => _$react_jsx_runtime0.JSX.Element;
127
+ };
128
+ //#endregion
129
+ export { mdx_components_default as default };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Boltdocs - https://boltdocs.vercel.app
3
+ * Copyright (c) 2026 Jesus Alcala
4
+ * Licensed under the MIT License.
5
+ */
6
+ import{t as e}from"../mdx-K0WYBAJ3.js";var t=e;export{t as default};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Boltdocs - https://boltdocs.vercel.app
3
+ * Copyright (c) 2026 Jesus Alcala
4
+ * Licensed under the MIT License.
5
+ */
6
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../icons-dev-rzdz6Lf3.cjs`),t=require(`../docs-layout-BlDhcQRv.cjs`),n=require(`../image-DIGjCPe6.cjs`),r=require(`../search-dialog-D26rUnJ_.cjs`);let i=require(`react/jsx-runtime`);function a({className:t,variant:n=`rect`,...r}){return(0,i.jsx)(`div`,{className:e.y(`animate-pulse bg-soft`,n===`circle`?`rounded-full`:`rounded-md`,t),...r})}exports.AnchorProvider=t.g,exports.Breadcrumbs=t.N,exports.Button=t.M,exports.ButtonGroup=t.j,exports.CodeBlock=n.r,exports.CodeBlockContent=n.i,exports.CodeBlockGroup=n.a,exports.CodeBlockHeader=n.o,exports.DocsLayout=t.t,exports.ErrorBoundary=t.D,exports.ErrorBoundaryFallback=t.O,exports.Heading=n.s,exports.Image=n.t,exports.Link=e._,exports.Menu=t.k,exports.NavLink=e.v,exports.Navbar=r.n,exports.OnThisPage=t._,exports.OnThisPageItems=t.v,exports.OnThisPageTree=t.y,exports.PageNav=t.h,exports.Popover=t.A,exports.ScrollProvider=t.b,exports.SearchDialog=r.t,exports.Sidebar=t.i,exports.SidebarContent=t.a,exports.SidebarGroup=t.o,exports.SidebarHeader=t.s,exports.SidebarItem=t.c,exports.SidebarItems=t.l,exports.SidebarLink=t.u,exports.SidebarMobile=t.d,exports.SidebarRoot=t.f,exports.SidebarSubGroup=t.p,exports.Skeleton=a,exports.Tabs=t.E,exports.Tooltip=n.n,exports.useActiveAnchor=t.x,exports.useActiveAnchors=t.S,exports.useItems=t.C;