boltdocs 2.5.5 → 2.6.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.
- package/bin/boltdocs.js +2 -2
- package/dist/client/index.cjs +6 -0
- package/dist/client/index.d.cts +1560 -0
- package/dist/client/index.d.ts +1219 -922
- package/dist/client/index.js +6 -1
- package/dist/client/theme/neutral.css +428 -0
- package/dist/node/cli-entry.cjs +8 -0
- package/dist/node/cli-entry.d.cts +2 -0
- package/dist/node/cli-entry.d.mts +2 -1
- package/dist/node/cli-entry.mjs +7 -5
- package/dist/node/index.cjs +6 -0
- package/dist/node/index.d.cts +519 -0
- package/dist/node/index.d.mts +374 -422
- package/dist/node/index.mjs +6 -1
- package/dist/node-BgvNl2Ay.mjs +89 -0
- package/dist/node-vkbb0MK7.cjs +89 -0
- package/dist/package-CR0HF9x3.mjs +6 -0
- package/dist/package-Dgmsc_l5.cjs +6 -0
- package/dist/search-dialog-3lvKsbVG.js +6 -0
- package/dist/search-dialog-DMK5OpgH.cjs +6 -0
- package/dist/use-search-C9bxCqfF.js +6 -0
- package/dist/use-search-DcfZSunO.cjs +6 -0
- package/package.json +26 -25
- package/src/client/app/config-context.tsx +38 -5
- package/src/client/app/doc-page.tsx +34 -0
- package/src/client/app/mdx-component.tsx +2 -3
- package/src/client/app/mdx-components-context.tsx +27 -2
- package/src/client/app/routes-context.tsx +34 -0
- package/src/client/app/scroll-handler.tsx +7 -4
- package/src/client/app/theme-context.tsx +71 -67
- package/src/client/components/default-layout.tsx +34 -33
- package/src/client/components/docs-layout.tsx +1 -2
- package/src/client/components/icons-dev.tsx +36 -5
- package/src/client/components/mdx/admonition.tsx +11 -27
- package/src/client/components/mdx/badge.tsx +1 -1
- package/src/client/components/mdx/button.tsx +3 -3
- package/src/client/components/mdx/card.tsx +1 -1
- package/src/client/components/mdx/code-block.tsx +90 -80
- package/src/client/components/mdx/component-preview.tsx +1 -5
- package/src/client/components/mdx/component-props.tsx +1 -1
- package/src/client/components/mdx/field.tsx +4 -5
- package/src/client/components/mdx/file-tree.tsx +6 -3
- package/src/client/components/mdx/hooks/use-code-block.ts +2 -2
- package/src/client/components/mdx/image.tsx +1 -1
- package/src/client/components/mdx/link.tsx +2 -2
- package/src/client/components/mdx/list.tsx +1 -1
- package/src/client/components/mdx/table.tsx +1 -1
- package/src/client/components/mdx/tabs.tsx +1 -1
- package/src/client/components/primitives/breadcrumbs.tsx +1 -7
- package/src/client/components/primitives/button-group.tsx +1 -1
- package/src/client/components/primitives/button.tsx +1 -1
- package/src/client/components/primitives/code-block.tsx +113 -0
- package/src/client/components/primitives/link.tsx +23 -41
- package/src/client/components/primitives/menu.tsx +5 -6
- package/src/client/components/primitives/navbar.tsx +6 -18
- package/src/client/components/primitives/navigation-menu.tsx +4 -4
- package/src/client/components/primitives/on-this-page.tsx +6 -10
- package/src/client/components/primitives/page-nav.tsx +4 -9
- package/src/client/components/primitives/popover.tsx +1 -1
- package/src/client/components/primitives/search-dialog.tsx +3 -6
- package/src/client/components/primitives/sidebar.tsx +80 -22
- package/src/client/components/primitives/skeleton.tsx +1 -1
- package/src/client/components/primitives/tabs.tsx +4 -11
- package/src/client/components/primitives/tooltip.tsx +3 -3
- package/src/client/components/ui-base/breadcrumbs.tsx +4 -6
- package/src/client/components/ui-base/copy-markdown.tsx +2 -7
- package/src/client/components/ui-base/github-stars.tsx +2 -2
- package/src/client/components/ui-base/head.tsx +58 -51
- package/src/client/components/ui-base/loading.tsx +2 -2
- package/src/client/components/ui-base/navbar.tsx +12 -14
- package/src/client/components/ui-base/not-found.tsx +1 -1
- package/src/client/components/ui-base/on-this-page.tsx +6 -6
- package/src/client/components/ui-base/page-nav.tsx +4 -8
- package/src/client/components/ui-base/search-dialog.tsx +10 -8
- package/src/client/components/ui-base/sidebar.tsx +76 -23
- package/src/client/components/ui-base/tabs.tsx +9 -8
- package/src/client/components/ui-base/theme-toggle.tsx +2 -2
- package/src/client/hooks/use-i18n.ts +3 -3
- package/src/client/hooks/use-localized-to.ts +1 -1
- package/src/client/hooks/use-navbar.ts +8 -6
- package/src/client/hooks/use-routes.ts +19 -11
- package/src/client/hooks/use-search.ts +1 -1
- package/src/client/hooks/use-sidebar.ts +48 -2
- package/src/client/hooks/use-tabs.ts +6 -2
- package/src/client/hooks/use-version.ts +3 -3
- package/src/client/index.ts +22 -22
- package/src/client/ssg/boltdocs-shell.tsx +127 -0
- package/src/client/ssg/create-routes.tsx +179 -0
- package/src/client/ssg/index.ts +3 -0
- package/src/client/ssg/mdx-page.tsx +37 -0
- package/src/client/store/boltdocs-context.tsx +66 -0
- package/src/client/theme/neutral.css +90 -50
- package/src/client/types.ts +5 -33
- package/src/client/utils/react-to-text.ts +34 -0
- package/CHANGELOG.md +0 -98
- package/dist/cache-3FOEPC2P.mjs +0 -1
- package/dist/chunk-5B5NKOW6.mjs +0 -77
- package/dist/chunk-J2PTDWZM.mjs +0 -1
- package/dist/chunk-TP5KMRD3.mjs +0 -1
- package/dist/chunk-Y4RE5KI7.mjs +0 -1
- package/dist/client/index.d.mts +0 -1263
- package/dist/client/index.mjs +0 -1
- package/dist/client/ssr.d.mts +0 -78
- package/dist/client/ssr.d.ts +0 -78
- package/dist/client/ssr.js +0 -1
- package/dist/client/ssr.mjs +0 -1
- package/dist/node/cli-entry.d.ts +0 -1
- package/dist/node/cli-entry.js +0 -82
- package/dist/node/index.d.ts +0 -567
- package/dist/node/index.js +0 -77
- package/dist/package-QFIAETHR.mjs +0 -1
- package/dist/search-dialog-O6VLVSOA.mjs +0 -1
- package/src/client/app/index.tsx +0 -345
- package/src/client/app/mdx-page.tsx +0 -15
- package/src/client/app/preload.tsx +0 -66
- package/src/client/app/router.tsx +0 -30
- package/src/client/integrations/codesandbox.ts +0 -179
- package/src/client/integrations/index.ts +0 -1
- package/src/client/ssr.tsx +0 -65
- package/src/client/store/use-boltdocs-store.ts +0 -44
- package/src/node/cache.ts +0 -408
- package/src/node/cli/build.ts +0 -53
- package/src/node/cli/dev.ts +0 -22
- package/src/node/cli/doctor.ts +0 -243
- package/src/node/cli/index.ts +0 -9
- package/src/node/cli/ui.ts +0 -54
- package/src/node/cli-entry.ts +0 -24
- package/src/node/config.ts +0 -382
- package/src/node/errors.ts +0 -44
- package/src/node/index.ts +0 -84
- package/src/node/mdx/cache.ts +0 -12
- package/src/node/mdx/highlighter.ts +0 -47
- package/src/node/mdx/index.ts +0 -122
- package/src/node/mdx/rehype-shiki.ts +0 -62
- package/src/node/mdx/remark-code-meta.ts +0 -35
- package/src/node/mdx/remark-shiki.ts +0 -61
- package/src/node/plugin/entry.ts +0 -87
- package/src/node/plugin/html.ts +0 -99
- package/src/node/plugin/index.ts +0 -478
- package/src/node/plugin/types.ts +0 -9
- package/src/node/plugins/index.ts +0 -17
- package/src/node/plugins/plugin-errors.ts +0 -62
- package/src/node/plugins/plugin-lifecycle.ts +0 -117
- package/src/node/plugins/plugin-sandbox.ts +0 -59
- package/src/node/plugins/plugin-store.ts +0 -54
- package/src/node/plugins/plugin-types.ts +0 -107
- package/src/node/plugins/plugin-validator.ts +0 -105
- package/src/node/routes/cache.ts +0 -28
- package/src/node/routes/index.ts +0 -293
- package/src/node/routes/parser.ts +0 -262
- package/src/node/routes/sorter.ts +0 -42
- package/src/node/routes/types.ts +0 -61
- package/src/node/schema/config.ts +0 -195
- package/src/node/schema/frontmatter.ts +0 -17
- package/src/node/search/index.ts +0 -55
- package/src/node/security/constants/index.ts +0 -10
- package/src/node/security/csp.ts +0 -31
- package/src/node/security/headers.ts +0 -27
- package/src/node/ssg/index.ts +0 -205
- package/src/node/ssg/meta.ts +0 -33
- package/src/node/ssg/options.ts +0 -15
- package/src/node/ssg/robots.ts +0 -53
- package/src/node/ssg/sitemap.ts +0 -55
- package/src/node/utils.ts +0 -349
- package/tsconfig.json +0 -26
- package/tsup.config.ts +0 -56
package/dist/chunk-J2PTDWZM.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var je=Object.defineProperty;var tr=(e,t)=>{for(var o in t)je(e,o,{get:t[o],enumerable:!0})};import{createContext as Je,use as Ke}from"react";var $e=Je(null);function Y(){let e=Ke($e);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}import{useLocation as tt}from"react-router-dom";import{createContext as Xe,use as _e,useCallback as Ye,useRef as Ze}from"react";import{jsx as qe}from"react/jsx-runtime";var be=Xe({preload:()=>{},routes:[]});function Z(){return _e(be)}function ar({routes:e,modules:t,children:o}){let r=Ze(null),s=Ye(a=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{let u=a.split("#")[0].split("?")[0],i=e.find(l=>l.path===u||u==="/"&&l.path==="");if(i?.filePath){let l=Object.keys(t).find(g=>g.endsWith("/"+i.filePath));l&&t[l]().catch(g=>{console.error(`[boltdocs] Failed to preload route ${a}:`,g)})}},100)},[e,t]);return qe(be.Provider,{value:{preload:s,routes:e},children:o})}import{create as Qe}from"zustand";import{persist as Ue,createJSONStorage as et}from"zustand/middleware";var q=Qe()(Ue(e=>({currentLocale:void 0,currentVersion:void 0,hasHydrated:!1,setLocale:t=>e({currentLocale:t}),setVersion:t=>e({currentVersion:t}),setHasHydrated:t=>e({hasHydrated:t})}),{name:"boltdocs-storage",storage:et(()=>localStorage),partialize:e=>({currentLocale:e.currentLocale,currentVersion:e.currentVersion}),onRehydrateStorage:()=>e=>{e?.setHasHydrated(!0)}}));function Q(){let{routes:e}=Z(),t=Y(),o=tt(),r=q(m=>m.currentLocale),s=q(m=>m.currentVersion),a=q(m=>m.hasHydrated),u=e.find(m=>m.path===o.pathname),i=t.i18n?u?.locale||(a?r:void 0)||t.i18n.defaultLocale:void 0,l=t.versions?u?.version||(a?s:void 0)||t.versions.defaultVersion:void 0,g=e.filter(m=>{let F=t.i18n?(m.locale||t.i18n.defaultLocale)===i:!0,ne=t.versions?(m.version||t.versions.defaultVersion)===l:!0;if(!(F&&ne))return!1;let se=t.i18n;if(se){let Fe=!!u?.locale,Ge=!!m.locale;if(e.some(_=>_!==m&&_.filePath===m.filePath&&_.version===m.version&&(_.locale||se.defaultLocale)===(m.locale||se.defaultLocale))&&Fe!==Ge)return!1}return!0}),c=t.i18n?.localeConfigs?.[i]?.label||t.i18n?.locales[i]||i,v=t.versions?.versions.find(m=>m.path===l)?.label||l,C=t.i18n?Object.entries(t.i18n.locales).map(([m,F])=>{let ne=t.i18n?.localeConfigs?.[m];return{key:m,label:ne?.label||F,isCurrent:m===i}}):[],W=t.versions?t.versions.versions.map(m=>({key:m.path,label:m.label,isCurrent:m.path===l})):[];return{routes:g,allRoutes:e,currentRoute:u,currentLocale:i,currentLocaleLabel:c,availableLocales:C,currentVersion:l,currentVersionLabel:v,availableVersions:W,config:t}}function ae(e){let t=Y(),{currentLocale:o,currentVersion:r}=Q();if(!t||typeof e!="string"||e.startsWith("http")||e.startsWith("//"))return e;let s=t.i18n,a=t.versions;if(!s&&!a)return e;let u=e.startsWith("/docs"),i=e.split("/").filter(Boolean),l=0;i[l]==="docs"&&l++,a&&i.length>l&&a.versions.find(v=>v.path===i[l])&&l++,s&&i.length>l&&s.locales[i[l]]&&l++;let g=i.slice(l),f=[];u&&(f.push("docs"),a&&r&&f.push(r)),s&&o&&o!==s.defaultLocale&&f.push(o),f.push(...g);let c=`/${f.join("/")}`;return c.length>1&&c.endsWith("/")?c.slice(0,-1):c||"/"}import{clsx as ot}from"clsx";import{twMerge as rt}from"tailwind-merge";function n(...e){return rt(ot(e))}import Ce from"react";import{Link as nt}from"react-aria-components";import{useLocation as st}from"react-router-dom";import{jsx as ye}from"react/jsx-runtime";var N=Ce.forwardRef((e,t)=>{let{href:o,prefetch:r="hover",onMouseEnter:s,onFocus:a,...u}=e,i=ae(o??""),{preload:l}=Z();return ye(nt,{...u,ref:t,href:i,onMouseEnter:c=>{s?.(c),r==="hover"&&typeof i=="string"&&i.startsWith("/")&&l(i)},onFocus:c=>{a?.(c),r==="hover"&&typeof i=="string"&&i.startsWith("/")&&l(i)}})});N.displayName="Link";var at=Ce.forwardRef((e,t)=>{let{href:o,end:r=!1,className:s,children:a,...u}=e,i=st(),l=ae(o??""),g=r?i.pathname===l:i.pathname.startsWith(l),f=typeof s=="function"?s({isActive:g}):n(s,g&&"active"),c=typeof a=="function"?a({isActive:g}):a;return ye(N,{...u,ref:t,href:o,className:f,children:c})});at.displayName="NavLink";import*as U from"react-aria-components";import{cva as it}from"class-variance-authority";import{Fragment as ct,jsx as O,jsxs as pt}from"react/jsx-runtime";var Re=it("flex flex-row items-center justify-center w-auto font-semibold tracking-tight no-underline whitespace-nowrap select-none outline-none transition-all duration-200 cursor-pointer pressed:scale-[0.97] hover:-translate-y-px leading-none",{variants:{variant:{primary:"bg-primary-500 text-white shadow-md hover:brightness-110 hover:shadow-lg",secondary:"bg-bg-surface text-text-main border border-border-subtle hover:bg-bg-muted hover:border-border-strong",outline:"bg-transparent text-text-main border border-border-strong hover:bg-bg-surface hover:border-primary-500",ghost:"bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-main",danger:"bg-[var(--color-danger-500)]/10 text-[var(--color-danger-500)] border border-[var(--color-danger-500)]/20 hover:bg-[var(--color-danger-500)]/15",success:"bg-[var(--color-success-500)]/10 text-[var(--color-success-500)] border border-[var(--color-success-500)]/20 hover:bg-[var(--color-success-500)]/15",warning:"bg-[var(--color-warning-500)]/10 text-[var(--color-warning-500)] border border-[var(--color-warning-500)]/20 hover:bg-[var(--color-warning-500)]/15",info:"bg-[var(--color-info-500)]/10 text-[var(--color-info-500)] border border-[var(--color-info-500)]/20 hover:bg-[var(--color-info-500)]/15",subtle:"bg-primary-500/10 text-primary-500 hover:bg-primary-500/20",link:"bg-transparent text-primary-500 !p-0 !min-h-0 hover:underline"},size:{sm:"min-h-8 px-3.5 text-[0.8125rem] gap-1.5",md:"min-h-10 px-5 text-[0.9375rem] gap-2",lg:"min-h-12 px-7 text-[1.05rem] gap-2.5"},rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},iconSize:{sm:"w-8 h-8 p-0",md:"w-10 h-10 p-0",lg:"w-12 h-12 p-0"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:null}},defaultVariants:{variant:"primary",size:"md",rounded:"md"}}),lt=({href:e,icon:t,iconPosition:o="left",isIconOnly:r,children:s,className:a,variant:u,size:i,rounded:l,iconSize:g,disabled:f,...c})=>{let L=r||!s&&!!t,v=L?O("span",{className:"inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]",children:t}):pt(ct,{children:[t&&o==="left"&&O("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t}),O("span",{className:"flex items-center",children:s}),t&&o==="right"&&O("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t})]});return e?O(U.Link,{href:e,className:n(Re({variant:u,size:i,rounded:l,iconSize:L?g:void 0,disabled:f}),a),...c,children:v}):O(U.Button,{className:n(Re({variant:u,size:i,rounded:l,iconSize:L?g:void 0,disabled:f}),a),...c,children:v})};import*as z from"react-aria-components";import{Fragment as mt,jsx as G,jsxs as le}from"react/jsx-runtime";var Pe=({className:e,children:t,...o})=>G(z.Tooltip,{...o,offset:8,className:r=>n("group z-50 overflow-visible rounded-md bg-bg-surface/90 px-2.5 py-1.5 text-xs font-medium text-text-main shadow-lg backdrop-blur-md ring-1 ring-border-subtle outline-hidden select-none","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95 data-entering:duration-100","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95 data-exiting:duration-75","data-[placement=top]:slide-in-from-bottom-1","data-[placement=bottom]:slide-in-from-top-1","data-[placement=left]:slide-in-from-right-1","data-[placement=right]:slide-in-from-left-1",typeof e=="function"?e(r):e),children:r=>le(mt,{children:[G(z.OverlayArrow,{children:le("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90",children:[G("title",{children:"Arrow"}),G("path",{d:"M0 0 L4 4 L8 0"})]})}),typeof t=="function"?t(r):t]})}),ie=({content:e,children:t,delay:o=500,closeDelay:r=0,...s})=>le(z.TooltipTrigger,{delay:o,closeDelay:r,children:[t,G(Pe,{...s,children:e})]});ie.Root=ie;ie.Content=Pe;import{useState as So,useEffect as Io}from"react";import*as T from"react-aria-components";import{ChevronDown as dt}from"lucide-react";import{Fragment as xt,jsx as B,jsxs as ce}from"react/jsx-runtime";var j=({children:e,className:t,...o})=>B("nav",{className:n("relative flex items-center",t),...o,children:e}),ut=({children:e,className:t})=>B("div",{className:n("flex list-none items-center gap-1",t),children:e}),ft=({children:e,label:t,className:o})=>ce(T.MenuTrigger,{children:[ce(T.Button,{className:n("flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium outline-none transition-colors cursor-pointer","text-text-muted hover:bg-bg-surface hover:text-text-main","focus-visible:ring-2 focus-visible:ring-primary-500/30",o),children:[t,B(dt,{size:14,className:"transition-transform"})]}),B(T.Popover,{placement:"bottom start",className:"entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95 fill-mode-forwards",children:B(T.Menu,{className:"w-56 outline-none rounded-xl border border-border-subtle bg-bg-surface p-2 shadow-xl ring-1 ring-border-strong/5",children:e})})]}),gt=({label:e,href:t,description:o,className:r,children:s,...a})=>B(T.MenuItem,{href:t,className:n("block rounded-lg px-3 py-2 text-sm outline-none cursor-pointer transition-colors","hover:bg-bg-muted focus:bg-bg-muted",r),...a,children:s||ce(xt,{children:[B("div",{className:"font-semibold text-text-main",children:e}),o&&B("div",{className:"text-xs text-text-muted line-clamp-1 mt-0.5",children:o})]})});j.Root=j;j.List=ut;j.Item=ft;j.Link=gt;import*as b from"react-aria-components";import{Search as vt,Hash as bt,FileText as Ct,CornerDownLeft as yt}from"lucide-react";import{Fragment as Bt,jsx as x,jsxs as pe}from"react/jsx-runtime";var V=({children:e,isOpen:t,onOpenChange:o,className:r})=>x(b.ModalOverlay,{isOpen:t,onOpenChange:o,isDismissable:!0,className:n("fixed inset-0 z-100 bg-black/40 backdrop-blur-sm px-4 py-4 sm:py-20","entering:animate-in entering:fade-in exiting:animate-out exiting:fade-out"),children:x(b.Modal,{className:n("mx-auto w-full max-w-2xl overflow-hidden rounded-xl border border-border-subtle bg-bg-surface shadow-2xl ring-1 ring-black/5 outline-none","entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95",r),children:x(b.Dialog,{className:"flex flex-col max-h-[70vh] focus:outline-none",children:e})})}),Rt=({children:e,className:t,onSelectionChange:o,...r})=>x("div",{className:t,children:x(b.Autocomplete,{...r,onSelectionChange:o,className:"flex flex-col min-h-0",children:e})}),Pt=({className:e,...t})=>pe(b.SearchField,{className:"flex items-center gap-3 border-b border-border-subtle px-4 py-4",autoFocus:!0,children:[x(vt,{className:"h-5 w-5 text-text-muted"}),x(b.Input,{...t,className:n("w-full bg-transparent text-lg text-text-main placeholder-text-muted outline-none",e),placeholder:"Search documentation..."}),x("div",{className:"flex items-center gap-1.5 rounded-md border border-border-subtle bg-bg-main px-1.5 py-1 text-[10px] font-medium text-text-muted",children:x("kbd",{className:"font-sans",children:"ESC"})})]}),wt=({children:e,className:t,...o})=>x(b.ListBox,{...o,className:n("flex-1 overflow-y-auto p-2 outline-none",t),children:e}),Nt=({children:e,className:t,...o})=>x(b.ListBoxItem,{...o,className:n("group flex items-center gap-3 rounded-lg p-3 text-left outline-none cursor-pointer transition-colors","text-text-muted hover:bg-bg-main hover:text-text-main focus:bg-primary-500 focus:text-white selected:bg-primary-500 selected:text-white",t),children:r=>pe(Bt,{children:[e,(r.isFocused||r.isSelected)&&pe("div",{className:"ml-auto opacity-50 flex items-center gap-1",children:[x("span",{className:"text-[10px]",children:"Select"}),x(yt,{size:10})]})]})}),Tt=({isHeading:e,className:t})=>x("div",{className:n("shrink-0",t),children:e?x(bt,{size:18}):x(Ct,{size:18})}),At=({children:e,className:t})=>x("span",{className:n("block font-medium truncate flex-1 text-sm",t),children:e}),kt=({children:e,className:t})=>x("span",{className:n("ml-2 text-xs opacity-70 truncate hidden sm:inline group-focus:opacity-100",t),children:e});V.Root=V;V.Autocomplete=Rt;V.Input=Pt;V.List=wt;V.Item=Object.assign(Nt,{Icon:Tt,Title:At,Bio:kt});import{createContext as Ne,use as de,useEffect as ue,useImperativeHandle as Mt,useMemo as fe,useRef as Te,useState as Ae}from"react";import Ot from"scroll-into-view-if-needed";import{useEffect as St,useRef as It}from"react";function we(e,t){let o=It(e);St(()=>{o.current!==e&&(t(e),o.current=e)},[e,t])}function me(e){return e.startsWith("#")?e.slice(1):null}var ee=class{items=[];single=!1;observer=null;onChange;callback(t){if(t.length===0)return;for(let r of t){let s=this.items.find(a=>a.id===r.target.id);if(s){s.active=r.isIntersecting;let a=100;s.fallback=!r.isIntersecting&&r.boundingClientRect.top<a}}let o=-1;for(let r=this.items.length-1;r>=0;r--)if(this.items[r].fallback){o=r;break}o===-1&&this.items.length>0&&(o=0),this.items=this.items.map((r,s)=>({...r,active:s===o,t:s===o?Date.now():r.t})),this.onChange?.()}setItems(t){let o=this.observer;if(o)for(let r of this.items){let s=document.getElementById(r.id);s&&o.unobserve(s)}this.items=[];for(let r of t){let s=me(r.url);s&&this.items.push({id:s,active:!1,fallback:!1,t:0,original:r})}this.watchItems(),typeof window<"u"&&(setTimeout(()=>this.watchItems(),100),setTimeout(()=>this.watchItems(),500),setTimeout(()=>this.watchItems(),1e3)),this.onChange?.()}watch(t){this.observer||(this.observer=new IntersectionObserver(this.callback.bind(this),t),this.watchItems())}watchItems(){if(this.observer)for(let t of this.items){let o=document.getElementById(t.id);o&&this.observer.observe(o)}}unwatch(){this.observer?.disconnect(),this.observer=null}};import{jsx as k}from"react/jsx-runtime";var ge=Ne(null),ke=Ne(null);function Le(){let e=de(ge);if(!e)throw new Error("Component must be used under the <AnchorProvider /> component.");return e}function Ur(){let e=Le();return fe(()=>{let t;for(let o of e)o.active&&(!t||o.t>t.t)&&(t=o);return t?.id},[e])}function en(){let e=Le();return fe(()=>{let t=[];for(let o of e)o.active&&t.push(o.id);return t},[e])}function tn({containerRef:e,children:t}){return k(ke.Provider,{value:e,children:t})}function on({toc:e,single:t=!1,children:o}){let r=fe(()=>new ee,[]),[s,a]=Ae(r.items);return r.single=t,ue(()=>{r.setItems(e)},[r,e]),ue(()=>(r.watch({rootMargin:"-100px 0% 0% 0%",threshold:0}),r.onChange=()=>a([...r.items]),()=>{r.unwatch()}),[r]),k(ge.Provider,{value:s,children:o})}var S=({children:e,className:t})=>k("nav",{className:n("sticky top-navbar hidden xl:flex flex-col shrink-0","w-toc","py-8 pl-6 pr-4",t),children:e}),zt=({children:e,className:t,...o})=>k("div",{className:n("mb-4 text-xs font-bold uppercase tracking-wider text-text-main",t),...o,children:e}),Be=({children:e,className:t,ref:o,...r})=>{let s=Te(null);return Mt(o,()=>s.current),k("div",{ref:s,className:n("relative overflow-y-auto boltdocs-otp-content",t),...r,children:e})};Be.displayName="OnThisPageContent";var Vt=({children:e,className:t})=>k("ul",{className:n("relative space-y-1 text-sm border-l border-border-subtle",t),children:e}),Et=({level:e,children:t,className:o})=>k("li",{className:n(e===3&&"pl-3",o),children:t}),Dt=({children:e,href:t,active:o,onClick:r,className:s})=>{let a=de(ge),u=de(ke),i=t?me(t):null,l=Te(null),[g,f]=Ae(o);return we(i&&a?a.find(c=>c.id===i)?.active:null,c=>{c!==null&&c!==g&&(f(!!c),c&&l.current&&u?.current&&Ot(l.current,{behavior:"smooth",block:"center",inline:"center",scrollMode:"if-needed",boundary:u.current}))}),ue(()=>{o!==void 0&&f(o)},[o]),k("a",{ref:l,href:t,onClick:r,"data-active":g,className:n("block py-1 pl-4 text-[13px] outline-none transition-colors hover:text-text-main",g?"text-primary-500 font-medium":"text-text-muted",s),children:e})},Ht=({style:e,className:t})=>k("div",{className:n("absolute -left-px w-0.5 rounded-full bg-primary-500 transition-all duration-300",t),style:e});S.Root=S;S.Header=zt;S.Content=Be;S.List=Vt;S.Item=Et;S.Link=Dt;S.Indicator=Ht;import*as Se from"react-aria-components";import{ChevronLeft as Ft,ChevronRight as Gt}from"lucide-react";import{Fragment as Yt,jsx as M,jsxs as _t}from"react/jsx-runtime";var E=({children:e,className:t})=>M("nav",{className:n("grid grid-cols-1 sm:grid-cols-2 gap-4 mt-12 pt-8 border-t border-border-subtle",t),children:e}),jt=({children:e,to:t,direction:o,className:r})=>{let s=o==="next";return _t(Se.Link,{href:t,className:n("flex group items-center p-4 rounded-xl border border-border-subtle bg-bg-surface outline-none","transition-all hover:bg-bg-main hover:border-primary-500 hover:shadow-lg","focus-visible:ring-2 focus-visible:ring-primary-500/30",s?"text-right justify-end":"text-left justify-start",r),children:[!s&&M(Ft,{className:"mr-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:-translate-x-1"}),M("div",{className:"flex flex-col gap-1 flex-1",children:e}),s&&M(Gt,{className:"ml-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:translate-x-1"})]})},Jt=({children:e,className:t})=>M("span",{className:n("text-xs font-medium uppercase tracking-wider text-text-muted",t),children:e}),Kt=({children:e,className:t})=>M("span",{className:n("text-base font-bold text-text-main truncate",t),children:e}),$t=({children:e})=>M(Yt,{children:e});E.Root=E;E.Link=jt;E.Title=Jt;E.Description=Kt;E.Icon=$t;import{jsx as J}from"react/jsx-runtime";var D=({children:e,className:t="",...o})=>J("div",{className:n("w-full",t),...o,children:e}),Zt=({children:e,className:t=""})=>J("div",{role:"tablist",className:n("relative flex flex-row items-center border-b border-border-subtle",t),children:e}),qt=({children:e,id:t,selected:o,className:r="",...s})=>J("button",{role:"tab","aria-selected":o,className:n("flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors outline-none cursor-pointer bg-transparent border-none",o?"text-primary-500":"text-text-muted hover:text-text-main",r),...s,children:e}),Qt=({children:e,className:t=""})=>J("div",{className:n("p-4 outline-none",t),children:e}),Ut=({className:e="",style:t})=>J("div",{className:n("absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300",e),style:t});D.Root=D;D.List=Zt;D.Item=qt;D.Content=Qt;D.Indicator=Ut;import*as Ie from"react-aria-components";import{ChevronRight as to}from"lucide-react";import{jsx as A,jsxs as te}from"react/jsx-runtime";var oo=({badge:e})=>{let t={new:"bg-primary-500/20 text-primary-500",updated:"bg-gray-500/20 text-gray-500",deprecated:"bg-red-500/20 text-red-500"};if(typeof e=="object"&&e?.expires){let r=new Date(e.expires),s=new Date,a=r.getTime()-s.getTime();if(Math.ceil(a/(1e3*60*60*24))===0)return null}let o=typeof e=="string"?e:e?.text;return A("span",{className:n("ml-auto flex h-4.5 items-center rounded-full text-[9px] font-medium px-1.5 py-0.5 text-center whitespace-nowrap",t[o]||t.new),children:o})},K=({children:e,className:t})=>A("aside",{className:n("boltdocs-sidebar sticky top-navbar hidden lg:flex flex-col shrink-0","w-sidebar h-full","overflow-y-auto border-r border-border-subtle bg-bg-main","py-6 px-4",t),children:A("nav",{className:"flex-1 space-y-6",children:e})}),ro=({children:e,title:t,icon:o,isOpen:r=!0,onToggle:s,className:a})=>te("div",{className:n("space-y-1",a),children:[t&&te(Ie.Button,{onPress:s,className:n("flex w-full items-center justify-between px-2 py-1.5 text-xs font-bold uppercase tracking-wider outline-none cursor-pointer","text-text-muted hover:text-text-main transition-colors","focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md"),children:[te("div",{className:"flex items-center gap-2",children:[o&&A(o,{size:14}),t]}),A(to,{size:14,className:n("transition-transform duration-200",r&&"rotate-90")})]}),r&&A("div",{className:"space-y-0.5",children:e})]}),no=({children:e,className:t})=>A("div",{className:n(t),children:e}),so=({label:e,href:t,active:o,icon:r,badge:s,className:a})=>te(N,{href:t,className:n("group flex items-center gap-2.5 rounded-lg px-2.5 py-2 text-sm outline-none","transition-all duration-200 ease-in-out","focus-visible:ring-2 focus-visible:ring-primary-500/30",o?"bg-primary-500/10 text-primary-500 font-medium":"text-text-muted hover:bg-bg-surface hover:text-text-main hover:translate-x-1",a),children:[r&&A(r,{size:16,className:n(o?"text-primary-500":"text-text-muted group-hover:text-text-main")}),A("span",{className:"truncate",children:e}),s&&A(oo,{badge:s})]});K.Root=K;K.Group=ro;K.GroupItem=no;K.Link=so;import{Breadcrumb as io,Breadcrumbs as lo,Link as co}from"react-aria-components";import{ChevronRight as po}from"lucide-react";import{jsx as oe}from"react/jsx-runtime";var $=({children:e,className:t,...o})=>oe(lo,{className:n("flex items-center gap-1.5 pl-0! mb-0 text-sm text-text-muted",t),...o,children:e}),mo=({children:e,className:t,...o})=>oe(io,{className:n("flex items-center mb-0 gap-1.5",t),...o,children:e}),uo=({children:e,href:t,className:o,...r})=>oe(co,{href:t,className:n("transition-colors outline-none hover:text-text-main focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm","current:font-medium current:text-text-main current:pointer-events-none cursor-pointer",o),...r,children:e}),fo=({className:e})=>oe(po,{size:14,className:n("shrink-0 text-text-dim",e)});$.Root=$;$.Item=mo;$.Link=uo;$.Separator=fo;import{jsx as xo}from"react/jsx-runtime";var ho=({children:e,className:t,vertical:o=!1})=>xo("div",{className:n("inline-flex",o?"flex-col":"flex-row",!o&&["[&>*:not(:first-child)]:-ml-px","[&>*:first-child]:rounded-r-none","[&>*:last-child]:rounded-l-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-l-full","[&>*:last-child]:rounded-r-full"],t?.includes("rounded-xl")&&["[&>*:first-child]:rounded-l-xl","[&>*:last-child]:rounded-r-xl"],t?.includes("rounded-lg")&&["[&>*:first-child]:rounded-l-lg","[&>*:last-child]:rounded-r-lg"]],o&&["[&>*:not(:first-child)]:-mt-px","[&>*:first-child]:rounded-b-none","[&>*:last-child]:rounded-t-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-t-full","[&>*:last-child]:rounded-b-full"]],t),children:e});import{Check as bo,ChevronRight as Co,Dot as yo}from"lucide-react";import Me from"react";import*as h from"react-aria-components";import*as H from"react-aria-components";import{jsx as he,jsxs as vo}from"react/jsx-runtime";var xe=({children:e,className:t,showArrow:o,...r})=>vo(H.Popover,{offset:8,...r,className:H.composeRenderProps(t,s=>n("z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none transition-none",s)),children:[o&&he(H.OverlayArrow,{className:"group",children:he("svg",{viewBox:"0 0 12 12",className:"block h-3 w-3 fill-bg-surface/80 stroke-border-subtle group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90","aria-hidden":"true",children:he("path",{d:"M0 0 L6 6 L12 0"})})}),e]});import{Fragment as Ao,jsx as w,jsxs as X}from"react/jsx-runtime";function Ro(e){let[t,o]=Me.Children.toArray(e.children).slice(0,2);return X(h.MenuTrigger,{...e,children:[t,w(xe,{placement:e.placement,className:"min-w-35",children:o})]})}function Po(e){let[t,o]=Me.Children.toArray(e.children).slice(0,2);return X(h.SubmenuTrigger,{...e,children:[t,w(xe,{offset:-4,crossOffset:-4,children:o})]})}function I(e){return w(h.Menu,{...e,className:h.composeRenderProps(e.className,t=>n("p-1.5 outline-none max-h-[inherit] overflow-auto max-w-75",t))})}function wo(e){let t=e.textValue||(typeof e.children=="string"?e.children:void 0);return w(h.MenuItem,{...e,textValue:t,className:h.composeRenderProps(e.className,(o,{isFocused:r,isPressed:s,isDisabled:a})=>n("group relative flex flex-row items-center gap-2 px-2 py-1 rounded-lg outline-none cursor-default hover:cursor-pointer transition-none","text-text-main text-[12px]",{"bg-bg-surface-elevated text-primary-600 ring-1 ring-border-strong/5":r,"bg-bg-surface-elevanted":s,"opacity-40 grayscale pointer-events-none":a},o)),children:h.composeRenderProps(e.children,(o,{selectionMode:r,isSelected:s,hasSubmenu:a})=>X(Ao,{children:[r!=="none"&&X("span",{className:"flex items-center size-4 shrink-0 justify-center",children:[s&&r==="multiple"&&w(bo,{className:"size-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200"}),s&&r==="single"&&w(yo,{className:"size-5 text-primary-500 animate-in zoom-in-50 duration-200"})]}),w("div",{className:"flex flex-row w-full transition-colors items-center gap-2 py-1 px-1",children:o}),a&&w(Co,{className:"size-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors"})]}))})}function No({title:e,...t}){return X(h.MenuSection,{...t,className:n("flex flex-col gap-0.5",t.className),children:[e&&w(h.Header,{className:"px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none",children:e}),w(h.Collection,{items:t.items,children:t.children})]})}function To(e){return w(h.Separator,{...e,className:"mx-2 my-1.5 border-t border-border-subtle/50"})}I.Root=I;I.Item=wo;I.Trigger=Ro;I.SubTrigger=Po;I.Section=No;I.Separator=To;import{jsx as ko}from"react/jsx-runtime";function Sn({className:e,variant:t="rect",...o}){return ko("div",{className:n("animate-pulse bg-bg-muted",t==="circle"?"rounded-full":"rounded-md",e),...o})}import{Separator as Oe}from"react-aria-components";import{ToggleButton as ze}from"react-aria-components";import{Button as Mo}from"react-aria-components";import{Search as Oo,Sun as zo,Moon as Vo,ExternalLink as Eo}from"lucide-react";import{jsx as p,jsxs as P}from"react/jsx-runtime";function R(e){let{size:t=20,...o}=e;return{...o,width:t,height:t}}var Ve=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...R(e),children:[p("title",{children:"GitHub"}),p("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]}),Ee=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...R(e),children:[p("title",{children:"Discord"}),p("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z"})]}),De=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...R(e),children:[p("title",{children:"X"}),p("path",{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"})]});var He=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...R(e),children:[p("title",{children:"Bluesky"}),p("path",{d:"M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026"})]}),Gn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"TypeScript"}),p("path",{fill:"#2563EB",d:"M3.234 9.093V7.318h8.363v1.775H8.479V17.5H6.352V9.093H3.234zm15.263 1.153c-.04-.4-.21-.712-.512-.934-.301-.222-.71-.333-1.228-.333-.351 0-.648.05-.89.149-.242.096-.427.23-.557.403a.969.969 0 0 0-.189.586.838.838 0 0 0 .115.477c.086.136.204.254.353.353.149.097.321.181.517.254.195.07.404.13.626.179l.915.219c.444.1.852.232 1.223.397.371.166.693.37.965.612.271.242.482.527.631.855.152.328.23.704.234 1.129-.004.623-.163 1.163-.478 1.62-.311.454-.762.807-1.352 1.06-.587.248-1.294.372-2.123.372-.822 0-1.538-.126-2.147-.378-.607-.252-1.081-.624-1.422-1.118-.338-.497-.516-1.112-.532-1.845h2.083c.023.342.12.627.293.855.176.226.41.397.701.513a2.8 2.8 0 0 0 1 .168c.364 0 .68-.053.949-.159a1.45 1.45 0 0 0 .631-.442c.15-.189.224-.406.224-.651a.846.846 0 0 0-.204-.577c-.132-.156-.328-.288-.586-.398a5.964 5.964 0 0 0-.94-.298l-1.109-.278c-.858-.21-1.536-.536-2.033-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.491-1.615.335-.461.794-.82 1.377-1.08.584-.258 1.247-.387 1.99-.387.755 0 1.414.13 1.978.388.567.258 1.007.618 1.322 1.079.315.46.477.994.488 1.6h-2.064z"})]}),jn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"JavaScript"}),p("path",{fill:"#F59E0B",d:"M8.383 7.318h2.127v7.1c0 .656-.147 1.226-.442 1.71a2.924 2.924 0 01-1.218 1.118c-.52.262-1.125.393-1.815.393-.613 0-1.17-.107-1.67-.323a2.67 2.67 0 01-1.183-.994c-.292-.448-.436-1.01-.433-1.686h2.143c.006.269.061.5.164.691.106.19.25.335.432.438.186.1.405.15.657.15.265 0 .488-.057.67-.17.186-.116.327-.285.423-.507.096-.222.145-.496.145-.82v-7.1zm9.43 2.928c-.04-.4-.21-.712-.511-.934-.302-.222-.711-.333-1.228-.333-.352 0-.648.05-.89.149-.242.096-.428.23-.557.403a.969.969 0 00-.19.586.838.838 0 00.115.477c.087.136.204.254.353.353.15.097.322.181.517.254.196.07.405.13.627.179l.915.219c.444.1.851.232 1.223.397.37.166.692.37.964.612s.482.527.631.855a2.7 2.7 0 01.234 1.129c-.003.623-.162 1.163-.477 1.62-.312.454-.763.807-1.353 1.06-.586.248-1.294.372-2.122.372-.822 0-1.538-.126-2.148-.378-.607-.252-1.08-.624-1.422-1.118-.338-.497-.515-1.112-.532-1.845h2.083c.023.342.121.627.293.855.176.226.41.397.702.513.295.112.628.168.999.168.364 0 .68-.053.95-.159.271-.106.482-.253.63-.442.15-.189.224-.406.224-.651a.846.846 0 00-.203-.577c-.133-.156-.329-.288-.587-.398a5.964 5.964 0 00-.94-.298l-1.108-.278c-.859-.21-1.537-.536-2.034-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.492-1.615.334-.461.793-.82 1.377-1.08.583-.258 1.246-.387 1.989-.387.755 0 1.415.13 1.978.388.567.258 1.008.618 1.323 1.079.314.46.477.994.487 1.6h-2.063z"})]}),Jn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"JSON"}),p("path",{fill:"#F59E0B",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),Kn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"CSS"}),p("path",{fill:"#0EA5E9",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),$n=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"HTML"}),p("path",{fill:"#EA580C",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]});var Xn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"React"}),p("path",{fill:"#0E8ADC",d:"M12 13.677a1.677 1.677 0 100-3.354 1.677 1.677 0 000 3.354z"}),p("path",{stroke:"#0E8ADC",d:"M12 15.436c4.97 0 9-1.538 9-3.436s-4.03-3.436-9-3.436S3 10.102 3 12s4.03 3.436 9 3.436z"}),p("path",{stroke:"#0E8ADC",d:"M9.024 13.718c2.485 4.305 5.832 7.025 7.476 6.076 1.644-.949.961-5.208-1.524-9.512C12.491 5.977 9.144 3.257 7.5 4.206c-1.644.949-.961 5.208 1.524 9.512z"}),p("path",{stroke:"#0E8ADC",d:"M9.024 10.282c-2.485 4.304-3.168 8.563-1.524 9.512 1.644.95 4.99-1.771 7.476-6.076 2.485-4.304 3.168-8.563 1.524-9.512-1.644-.95-4.99 1.771-7.476 6.076z"})]}),_n=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"Markdown"}),p("path",{fill:"#60A5FA",d:"M3 15.714V8h2.323l2.322 2.836L9.968 8h2.322v7.714H9.968V11.29l-2.323 2.836-2.322-2.836v4.424H3zm14.516 0l-3.484-3.743h2.323V8h2.322v3.97H21l-3.484 3.744z"})]}),Yn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...R(e),children:[p("title",{children:"Shell"}),p("path",{stroke:"#14B8A6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.336 17l6-6-6-6M12.336 19h8"})]}),Zn=e=>P("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...R(e),children:[p("title",{children:"YAML"}),p("path",{fill:"#A78BFA",d:"M6.533 5.864h2.755l2.654 5.011h.113l2.654-5.011h2.756l-4.245 7.522V17.5h-2.443v-4.114L6.533 5.864z"})]});import{jsx as d,jsxs as re}from"react/jsx-runtime";var y=({children:e,className:t,...o})=>d("header",{className:n("boltdocs-navbar sticky top-0 z-50 w-full border-b border-border-subtle bg-bg-main/80 backdrop-blur-md",t),...o,children:e}),Do=({children:e,className:t})=>d("div",{className:n("mx-auto flex lg:h-navbar max-w-(--breakpoint-3xl) items-center justify-between px-4 md:px-6",t),children:e}),Ho=({children:e,className:t})=>d("div",{className:n("flex flex-1 items-center justify-start gap-4 min-w-0",t),children:e}),Wo=({children:e,className:t})=>d("div",{className:n("flex flex-1 items-center justify-end gap-2 md:gap-4 min-w-0",t),children:e}),Fo=({children:e,className:t})=>d("div",{className:n("hidden lg:flex flex-1 justify-center items-center gap-4 px-4 min-w-0 w-full",t),children:e}),Go=({src:e,alt:t,width:o=24,height:r=24,className:s})=>d(N,{href:"/",className:n("flex items-center gap-2 shrink-0 outline-none",s),children:e?d("img",{src:e,alt:t,width:o,height:r,className:"h-6 w-6 object-contain"}):null}),jo=({children:e,className:t})=>d(N,{href:"/",children:d("span",{className:n("text-lg font-bold tracking-tight hidden sm:inline-block",t),children:e})}),Jo=({children:e,className:t})=>d("nav",{className:n("hidden md:flex items-center gap-6 text-sm font-medium",t),children:e}),Ko=({label:e,href:t,active:o,to:r,className:s})=>re(N,{href:t,target:r==="external"?"_blank":void 0,className:n("transition-colors outline-none font-medium focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm",{"text-primary-500":o,"text-text-muted hover:text-text-main":!o},s),children:[e,r==="external"&&d("span",{className:"ml-1 inline-block",children:d(Eo,{size:12})})]}),$o=({className:e,onPress:t})=>{let[o,r]=So(!1),s=o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);return Io(()=>{r(!0)},[]),re(Mo,{onPress:t,className:n("flex items-center gap-2 rounded-full border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-muted outline-none cursor-pointer","transition-all duration-200 hover:border-border-strong hover:text-text-main hover:bg-bg-muted hover:shadow-sm active:scale-[0.98]","focus-visible:ring-2 focus-visible:ring-primary-500/30","w-full max-w-[720px] justify-between",e),children:[re("div",{className:"flex items-center gap-2",children:[d(Oo,{size:16}),d("span",{className:"hidden sm:inline-block",children:"Search docs..."})]}),re("div",{className:"hidden sm:flex items-center gap-1 pointer-events-none select-none",children:[d("kbd",{className:"flex h-5 items-center justify-center rounded border border-border-subtle bg-bg-main px-1.5 font-mono text-[10px] font-medium",children:s?"\u2318":"Ctrl"}),d("kbd",{className:"flex h-5 w-5 items-center justify-center rounded border border-border-subtle bg-bg-main font-mono text-[10px] font-medium",children:"K"})]})]})},Xo=({className:e,theme:t,onThemeChange:o})=>d(ze,{isSelected:t==="dark",onChange:o,className:n("rounded-md p-2 text-text-muted outline-none cursor-pointer","transition-all duration-300 hover:bg-bg-surface hover:text-text-main hover:rotate-12 active:scale-90","focus-visible:ring-2 focus-visible:ring-primary-500/30",e),"aria-label":"Toggle theme",children:t==="dark"?d(zo,{size:20}):d(Vo,{size:20})}),_o=({name:e})=>{if(e==="github")return d(Ve,{});if(e==="discord")return d(Ee,{});if(e==="x")return d(De,{});if(e==="bluesky")return d(He,{})},Yo=({icon:e,link:t,className:o})=>d(N,{href:t,target:"_blank",rel:"noopener noreferrer",className:n("rounded-md p-2 text-text-muted outline-none transition-colors","hover:bg-bg-surface hover:text-text-main","focus-visible:ring-2 focus-visible:ring-primary-500/30",o),children:d(_o,{name:e})}),Zo=({className:e})=>d(Oe,{orientation:"vertical",className:n("h-6 w-px bg-border-subtle mx-1",e)});y.Root=y;y.Left=Ho;y.Right=Wo;y.Center=Fo;y.Logo=Go;y.Title=jo;y.Links=Jo;y.Link=Ko;y.SearchTrigger=$o;y.Theme=Xo;y.Socials=Yo;y.Split=Zo;y.Content=Do;var os=y;import{useState as ve,useMemo as qo,useEffect as Qo}from"react";import{Index as Uo}from"flexsearch";import We from"virtual:boltdocs-search";function ls(e){let{currentLocale:t,currentVersion:o}=Q(),[r,s]=ve(!1),[a,u]=ve(""),[i,l]=ve(null);Qo(()=>{if(!r||i)return;let f=new Uo({preset:"match",tokenize:"full",resolution:9,cache:!0});for(let c of We)f.add(c.id,`${c.title} ${c.content}`);l(f)},[r,i]);let g=qo(()=>{if(!a)return e.filter(v=>{let C=!t||v.locale===t,W=!o||v.version===o;return C&&W}).slice(0,10).map(v=>({id:v.path,title:v.title,path:v.path,bio:v.description||"",groupTitle:v.groupTitle}));if(!i)return[];let f=i.search(a,{limit:20,suggest:!0}),c=[],L=new Set;for(let v of f){let C=We.find(F=>F.id===v);if(!C)continue;let W=!t||C.locale===t,m=!o||C.version===o;!W||!m||L.has(C.url)||(L.add(C.url),c.push({id:C.url,title:C.title,path:C.url,bio:C.display,groupTitle:C.display.split(" > ")[0],isHeading:C.url.includes("#")}))}return c.slice(0,10)},[a,i,t,o,e]);return{isOpen:r,setIsOpen:s,query:a,setQuery:u,list:g,input:{value:a,onChange:f=>u(f.target.value)}}}export{tr as a,$e as b,Y as c,ar as d,q as e,Q as f,ae as g,n as h,N as i,at as j,Re as k,lt as l,Ve as m,Gn as n,jn as o,Jn as p,Kn as q,$n as r,Xn as s,_n as t,Yn as u,Zn as v,ie as w,y as x,os as y,j as z,V as A,Le as B,Ur as C,en as D,tn as E,on as F,S as G,E as H,D as I,K as J,$ as K,ho as L,xe as M,I as N,Sn as O,ls as P};
|
package/dist/chunk-TP5KMRD3.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-Y4RE5KI7.mjs";import rt from"path";import{fileURLToPath as it}from"url";var h=u(()=>{"use strict"});var at,B=u(()=>{"use strict";h();at=/^[a-zA-Z0-9\-_\/\.\(\)]+$/});import{z as d}from"zod";var z,L=u(()=>{"use strict";h();z=d.object({title:d.string().max(200).optional(),description:d.string().max(500).optional(),sidebarPosition:d.number().optional(),sidebarLabel:d.string().max(100).optional(),category:d.string().max(50).optional(),order:d.number().optional(),badge:d.string().max(50).optional(),icon:d.string().max(50).optional()})});var m,F,$,g,H=u(()=>{"use strict";h();m=class r extends Error{constructor(t){super(t),this.name="SecurityViolationError",Object.setPrototypeOf(this,r.prototype)}},F=class r extends m{constructor(t){super(t),this.name="PathTraversalError",Object.setPrototypeOf(this,r.prototype)}},$=class r extends m{constructor(t){super(t),this.name="EncodingSecurityError",Object.setPrototypeOf(this,r.prototype)}},g=class r extends m{constructor(t){super(t),this.name="ValidationError",Object.setPrototypeOf(this,r.prototype)}}});import R from"fs";import K from"gray-matter";import A from"isomorphic-dompurify";function St(r){return r.replace(/\\/g,"/")}function q(r){return r.replace(/^\d+\./,"")}function vt(r){let t=r.match(/^(\d+)\./);return t?parseInt(t[1],10):void 0}function Ot(r){return/\.mdx?$/.test(r)}function O(r){try{return R.statSync(r).mtimeMs}catch{return 0}}function bt(r){let t=R.readFileSync(r,"utf-8");try{let{data:e,content:n,matter:i}=K(t);if(i&&i.length>10240)throw J("FRONTMATTER_TOO_LARGE","Frontmatter block exceeds size limit",{size:i.length,file:r}),new g(`Security breach: Frontmatter size exceeds limit of ${10240} bytes`);let s=z.safeParse(e);s.success||console.warn(`[VALIDATION][${r}] Invalid frontmatter fields detected.`);let p={...s.success?s.data:{}};return p.title&&(p.title=M(p.title).trim()),p.description&&(p.description=M(p.description).trim()),{data:p,content:n}}catch(e){if(e instanceof g)throw e;return{data:{},content:t}}}function G(r){return r.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Dt(r){return G(r)}function At(r){let e=r.split("/").map(n=>q(U(n))).join("/").replace(/\/$/,"");return e=e.replace(/\.mdx?$/,""),(e==="index"||e.endsWith("/index"))&&(e=e.replace(/index$/,"")),e.startsWith("/")||(e="/"+e),e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1)),e}function Ct(r){return A.sanitize(r,{ALLOWED_TAGS:["b","i","em","strong","a","p","br","code","pre","span","div","h1","h2","h3","h4","h5","h6","ul","ol","li","table","thead","tbody","tr","th","td","blockquote","hr"],ALLOWED_ATTR:["href","title","target","class","id","src","alt","width","height"],FORCE_BODY:!0})}function M(r){return A.sanitize(r,{ALLOWED_TAGS:[],KEEP_CONTENT:!0})}function Tt(r){return r.charAt(0).toUpperCase()+r.slice(1)}function wt(r,t){return r?typeof r=="string"?r:t&&r[t]?r[t]:Object.values(r)[0]||"":""}function U(r){return r.replace(/[^a-zA-Z0-9\-_\/\.]/g,"").split("/").filter(t=>t!==".."&&t!==".").map(t=>t.replace(/\.\.+/g,".")).join("/")}function J(r,t,e={}){let n=new Date().toISOString(),i={...e};for(let s in i)typeof i[s]=="string"&&i[s].includes(":")&&(i[s]=i[s].split(/[\\/]/).pop()||i[s]);console.error(`[SECURITY][${n}] TYPE: ${r} | MESSAGE: ${t} | DETAILS: ${JSON.stringify(i)}`)}var N=u(()=>{"use strict";h();L();H();A.addHook("afterSanitizeAttributes",r=>{if(r.hasAttribute("href")){let t=r.getAttribute("href")?.toLowerCase()||"";(t.startsWith("javascript:")||t.startsWith("data:")||t.startsWith("vbscript:"))&&r.removeAttribute("href")}if(r.hasAttribute("src")){let t=r.getAttribute("src")?.toLowerCase()||"";(t.startsWith("javascript:")||t.startsWith("data:")||t.startsWith("vbscript:"))&&r.removeAttribute("src")}})});import a from"fs";import c from"path";import y from"crypto";import f from"zlib";import{promisify as x}from"util";async function Rt(){await l.flush()}var b,X,D,w,Mt,P,k,Z,Y,Q,C,T,l,j,I,W,tt=u(()=>{h();N();b=x(a.writeFile),X=x(a.readFile),D=x(a.mkdir),w=x(a.rename),Mt=x(a.unlink),P=process.env.BOLTDOCS_CACHE_DIR||".boltdocs",k="assets",Z="shards",Y=parseInt(process.env.BOLTDOCS_CACHE_LRU_LIMIT||"2000",10),Q=process.env.BOLTDOCS_CACHE_COMPRESS!=="0",C=class{constructor(t){this.limit=t}cache=new Map;get(t){let e=this.cache.get(t);return e!==void 0&&(this.cache.delete(t),this.cache.set(t,e)),e}set(t,e){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.limit){let n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(t,e)}get size(){return this.cache.size}clear(){this.cache.clear()}},T=class{queue=Promise.resolve();pendingCount=0;add(t){this.pendingCount++,this.queue=this.queue.then(t).finally(()=>{this.pendingCount--})}async flush(){await this.queue}get pending(){return this.pendingCount}},l=new T,j=class{entries=new Map;cachePath=null;compress;constructor(t={}){if(this.compress=t.compress!==void 0?t.compress:Q,t.name){let e=t.root||process.cwd(),n=this.compress?"json.gz":"json";this.cachePath=c.resolve(e,P,`${t.name}.${n}`)}}load(){if(process.env.BOLTDOCS_NO_CACHE!=="1"&&!(!this.cachePath||!a.existsSync(this.cachePath)))try{let t=a.readFileSync(this.cachePath);this.cachePath.endsWith(".gz")&&(t=f.gunzipSync(t));let e=JSON.parse(t.toString("utf-8"));this.entries=new Map(Object.entries(e))}catch{}}save(){if(process.env.BOLTDOCS_NO_CACHE==="1"||!this.cachePath)return;let t=Object.fromEntries(this.entries),e=JSON.stringify(t),n=this.cachePath,i=this.compress;l.add(async()=>{try{await D(c.dirname(n),{recursive:!0});let s=Buffer.from(e);i&&(s=f.gzipSync(s));let o=`${n}.${y.randomBytes(4).toString("hex")}.tmp`;await b(o,s),await w(o,n)}catch{}})}get(t){let e=this.entries.get(t);return!e||O(t)!==e.mtime?null:e.data}set(t,e){this.entries.set(t,{data:e,mtime:O(t)})}isValid(t){let e=this.entries.get(t);return e?O(t)===e.mtime:!1}invalidate(t){this.entries.delete(t)}invalidateAll(){this.entries.clear()}pruneStale(t){for(let e of this.entries.keys())t.has(e)||this.entries.delete(e)}get size(){return this.entries.size}async flush(){await l.flush()}},I=class{index=new Map;memoryCache=new C(Y);baseDir;shardsDir;indexPath;constructor(t,e=process.cwd()){this.baseDir=c.resolve(e,P,`transform-${t}`),this.shardsDir=c.resolve(this.baseDir,Z),this.indexPath=c.resolve(this.baseDir,"index.json")}load(){if(process.env.BOLTDOCS_NO_CACHE!=="1"&&a.existsSync(this.indexPath))try{let t=a.readFileSync(this.indexPath,"utf-8");this.index=new Map(Object.entries(JSON.parse(t)))}catch{}}save(){if(process.env.BOLTDOCS_NO_CACHE==="1")return;let t=JSON.stringify(Object.fromEntries(this.index)),e=this.indexPath;l.add(async()=>{await D(c.dirname(e),{recursive:!0}),await b(e,t)})}async getMany(t){let e=new Map,n=[];for(let i of t){let s=this.memoryCache.get(i);s?e.set(i,s):this.index.has(i)&&n.push(i)}if(n.length>0){let i=await Promise.all(n.map(async s=>{let o=this.index.get(s),p=c.resolve(this.shardsDir,`${o}.gz`);try{let _=await X(p),E=f.gunzipSync(_).toString("utf-8");return this.memoryCache.set(s,E),{key:s,val:E}}catch{return null}}));for(let s of i)s&&e.set(s.key,s.val)}return e}get(t){let e=this.memoryCache.get(t);if(e)return e;let n=this.index.get(t);if(!n)return null;let i=c.resolve(this.shardsDir,`${n}.gz`);if(!a.existsSync(i))return null;try{let s=a.readFileSync(i),o=f.gunzipSync(s).toString("utf-8");return this.memoryCache.set(t,o),o}catch{return null}}set(t,e){let n=y.createHash("md5").update(e).digest("hex");this.index.set(t,n),this.memoryCache.set(t,e);let i=c.resolve(this.shardsDir,`${n}.gz`);l.add(async()=>{if(a.existsSync(i))return;await D(this.shardsDir,{recursive:!0});let s=f.gzipSync(Buffer.from(e)),o=`${i}.${y.randomBytes(4).toString("hex")}.tmp`;await b(o,s),await w(o,i)})}get size(){return this.index.size}async flush(){await l.flush()}},W=class{assetsDir;constructor(t=process.cwd()){this.assetsDir=c.resolve(t,P,k)}getFileHash(t){return y.createHash("md5").update(a.readFileSync(t)).digest("hex")}get(t,e){if(!a.existsSync(t))return null;let n=this.getFileHash(t),i=this.getCachedPath(t,`${e}-${n}`);return a.existsSync(i)?i:null}set(t,e,n){let i=this.getFileHash(t),s=this.getCachedPath(t,`${e}-${i}`);l.add(async()=>{await D(this.assetsDir,{recursive:!0});let o=`${s}.${y.randomBytes(4).toString("hex")}.tmp`;await b(o,n),await w(o,s)})}getCachedPath(t,e){let n=c.extname(t),i=c.basename(t,n),s=e.replace(/[^a-z0-9]/gi,"-").toLowerCase();return c.join(this.assetsDir,`${i}.${s}${n}`)}clear(){a.existsSync(this.assetsDir)&&a.rmSync(this.assetsDir,{recursive:!0,force:!0})}async flush(){await l.flush()}}});export{h as a,at as b,B as c,F as d,$ as e,g as f,H as g,St as h,q as i,vt as j,Ot as k,bt as l,G as m,Dt as n,At as o,Ct as p,M as q,Tt as r,wt as s,J as t,N as u,j as v,I as w,W as x,Rt as y,tt as z};
|
package/dist/chunk-Y4RE5KI7.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>(b&&(a=b(b=0)),a);var n=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),o=(b,a)=>{for(var c in a)e(b,c,{get:a[c],enumerable:!0})},l=(b,a,c,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&e(b,d,{get:()=>a[d],enumerable:!(f=h(a,d))||f.enumerable});return b};var p=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?e(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c,p as d};
|