boltdocs 2.5.1 → 2.5.3
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/CHANGELOG.md +12 -0
- package/dist/chunk-CNGM3N5C.mjs +75 -0
- package/dist/{chunk-ITFGVXPE.mjs → chunk-J2PTDWZM.mjs} +1 -1
- package/dist/client/index.d.mts +0 -50
- package/dist/client/index.d.ts +0 -50
- package/dist/client/index.js +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/client/ssr.js +1 -1
- package/dist/client/ssr.mjs +1 -1
- package/dist/node/cli-entry.js +13 -13
- package/dist/node/cli-entry.mjs +1 -1
- package/dist/node/index.d.mts +0 -14
- package/dist/node/index.d.ts +0 -14
- package/dist/node/index.js +16 -16
- package/dist/node/index.mjs +1 -1
- package/dist/package-NW2UUNQH.mjs +1 -0
- package/dist/{search-dialog-YBM4GYDR.mjs → search-dialog-O6VLVSOA.mjs} +1 -1
- package/package.json +1 -2
- package/src/client/components/mdx/code-block.tsx +0 -19
- package/src/client/components/mdx/component-preview.tsx +0 -7
- package/src/client/components/mdx/hooks/use-code-block.ts +1 -21
- package/src/client/types.ts +0 -36
- package/src/node/config.ts +0 -16
- package/src/node/plugin/index.ts +0 -2
- package/src/node/schema/config.ts +0 -13
- package/dist/chunk-JGR2ELBA.mjs +0 -75
- package/dist/package-SGBODKXD.mjs +0 -1
package/dist/client/ssr.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Zo=Object.create;var He=Object.defineProperty;var Qo=Object.getOwnPropertyDescriptor;var er=Object.getOwnPropertyNames;var tr=Object.getPrototypeOf,or=Object.prototype.hasOwnProperty;var ht=(e,t)=>{for(var o in t)He(e,o,{get:t[o],enumerable:!0})},vt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of er(t))!or.call(e,n)&&n!==o&&He(e,n,{get:()=>t[n],enumerable:!(r=Qo(t,n))||r.enumerable});return e};var M=(e,t,o)=>(o=e!=null?Zo(tr(e)):{},vt(t||!e||!e.__esModule?He(o,"default",{value:e,enumerable:!0}):o,e)),rr=e=>vt(He({},"__esModule",{value:!0}),e);var Er={};ht(Er,{render:()=>Br});module.exports=rr(Er);var Xo=M(require("react")),Ko=M(require("react-dom/server")),Yo=require("react-router-dom/server");var V=M(require("react")),Ar=M(require("react-dom/client")),K=require("react-router-dom");var At=require("lucide-react");var tt=M(require("react")),kt=require("react-aria-components"),Lt=require("react-router-dom");var ze=require("react"),Qe=(0,ze.createContext)(null);function ae(){let e=(0,ze.use)(Qe);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}var Pt=require("react-router-dom");var ie=require("react"),Rt=require("react/jsx-runtime"),yt=(0,ie.createContext)({preload:()=>{},routes:[]});function Ie(){return(0,ie.use)(yt)}function Ct({routes:e,modules:t,children:o}){let r=(0,ie.useRef)(null),n=(0,ie.useCallback)(a=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{let i=a.split("#")[0].split("?")[0],l=e.find(s=>s.path===i||i==="/"&&s.path==="");if(l?.filePath){let s=Object.keys(t).find(c=>c.endsWith("/"+l.filePath));s&&t[s]().catch(c=>{console.error(`[boltdocs] Failed to preload route ${a}:`,c)})}},100)},[e,t]);return(0,Rt.jsx)(yt.Provider,{value:{preload:n,routes:e},children:o})}var wt=require("zustand"),Oe=require("zustand/middleware"),te=(0,wt.create)()((0,Oe.persist)(e=>({currentLocale:void 0,currentVersion:void 0,hasHydrated:!1,setLocale:t=>e({currentLocale:t}),setVersion:t=>e({currentVersion:t}),setHasHydrated:t=>e({hasHydrated:t})}),{name:"boltdocs-storage",storage:(0,Oe.createJSONStorage)(()=>localStorage),partialize:e=>({currentLocale:e.currentLocale,currentVersion:e.currentVersion}),onRehydrateStorage:()=>e=>{e?.setHasHydrated(!0)}}));function Me(){let{routes:e}=Ie(),t=ae(),o=(0,Pt.useLocation)(),r=te(f=>f.currentLocale),n=te(f=>f.currentVersion),a=te(f=>f.hasHydrated),i=e.find(f=>f.path===o.pathname),l=t.i18n?i?.locale||(a?r:void 0)||t.i18n.defaultLocale:void 0,s=t.versions?i?.version||(a?n:void 0)||t.versions.defaultVersion:void 0,c=e.filter(f=>{let H=t.i18n?(f.locale||t.i18n.defaultLocale)===l:!0,b=t.versions?(f.version||t.versions.defaultVersion)===s:!0;if(!(H&&b))return!1;let _=t.i18n;if(_){let ee=!!i?.locale,U=!!f.locale;if(e.some(de=>de!==f&&de.filePath===f.filePath&&de.version===f.version&&(de.locale||_.defaultLocale)===(f.locale||_.defaultLocale))&&ee!==U)return!1}return!0}),p=t.i18n?.localeConfigs?.[l]?.label||t.i18n?.locales[l]||l,x=t.versions?.versions.find(f=>f.path===s)?.label||s,R=t.i18n?Object.entries(t.i18n.locales).map(([f,H])=>{let b=t.i18n?.localeConfigs?.[f];return{key:f,label:b?.label||H,isCurrent:f===l}}):[],w=t.versions?t.versions.versions.map(f=>({key:f.path,label:f.label,isCurrent:f.path===s})):[];return{routes:c,allRoutes:e,currentRoute:i,currentLocale:l,currentLocaleLabel:p,availableLocales:R,currentVersion:s,currentVersionLabel:x,availableVersions:w,config:t}}function et(e){let t=ae(),{currentLocale:o,currentVersion:r}=Me();if(!t||typeof e!="string"||e.startsWith("http")||e.startsWith("//"))return e;let n=t.i18n,a=t.versions;if(!n&&!a)return e;let i=e.startsWith("/docs"),l=e.split("/").filter(Boolean),s=0;l[s]==="docs"&&s++,a&&l.length>s&&a.versions.find(x=>x.path===l[s])&&s++,n&&l.length>s&&n.locales[l[s]]&&s++;let c=l.slice(s),d=[];i&&(d.push("docs"),a&&r&&d.push(r)),n&&o&&o!==n.defaultLocale&&d.push(o),d.push(...c);let p=`/${d.join("/")}`;return p.length>1&&p.endsWith("/")?p.slice(0,-1):p||"/"}var Nt=require("clsx"),Tt=require("tailwind-merge");function m(...e){return(0,Tt.twMerge)((0,Nt.clsx)(e))}var ot=require("react/jsx-runtime"),pe=tt.default.forwardRef((e,t)=>{let{href:o,prefetch:r="hover",onMouseEnter:n,onFocus:a,...i}=e,l=et(o??""),{preload:s}=Ie();return(0,ot.jsx)(kt.Link,{...i,ref:t,href:l,onMouseEnter:p=>{n?.(p),r==="hover"&&typeof l=="string"&&l.startsWith("/")&&s(l)},onFocus:p=>{a?.(p),r==="hover"&&typeof l=="string"&&l.startsWith("/")&&s(l)}})});pe.displayName="Link";var nr=tt.default.forwardRef((e,t)=>{let{href:o,end:r=!1,className:n,children:a,...i}=e,l=(0,Lt.useLocation)(),s=et(o??""),c=r?l.pathname===s:l.pathname.startsWith(s),d=typeof n=="function"?n({isActive:c}):m(n,c&&"active"),p=typeof a=="function"?a({isActive:c}):a;return(0,ot.jsx)(pe,{...i,ref:t,href:o,className:d,children:p})});nr.displayName="NavLink";var oe=require("react/jsx-runtime");function rt(){return(0,oe.jsx)("div",{className:"flex items-center justify-center min-h-[60vh] text-center",children:(0,oe.jsxs)("div",{className:"space-y-4",children:[(0,oe.jsx)("span",{className:"text-8xl font-black tracking-tighter text-primary-500/20",children:"404"}),(0,oe.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Page Not Found"}),(0,oe.jsx)("p",{className:"text-sm text-text-muted max-w-sm mx-auto",children:"The page you're looking for doesn't exist or has been moved."}),(0,oe.jsxs)(pe,{href:"/",className:"inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white outline-none transition-all hover:brightness-110 hover:shadow-lg focus-visible:ring-2 focus-visible:ring-primary-500/30",children:[(0,oe.jsx)(At.ArrowLeft,{size:16})," Go to Home"]})]})})}var j=require("react"),Et=require("react/jsx-runtime"),Mt=(0,j.createContext)(void 0);function St({children:e}){let[t,o]=(0,j.useState)("system"),[r,n]=(0,j.useState)("dark"),[a,i]=(0,j.useState)(!1);(0,j.useEffect)(()=>{i(!0);let s=localStorage.getItem("boltdocs-theme"),c=s==="light"||s==="dark"||s==="system"?s:"system";o(c);let d=window.matchMedia("(prefers-color-scheme: dark)");((x,R)=>{n(x==="system"?R?"dark":"light":x)})(c,d.matches);let g=x=>{n(R=>(localStorage.getItem("boltdocs-theme")||"system")==="system"?x.matches?"dark":"light":R)};return d.addEventListener("change",g),()=>d.removeEventListener("change",g)},[]),(0,j.useEffect)(()=>{if(!a)return;let s=window.matchMedia("(prefers-color-scheme: dark)").matches,c=t==="system"?s?"dark":"light":t;n(c);let d=document.documentElement;c==="light"?(d.classList.add("theme-light"),d.dataset.theme="light"):(d.classList.remove("theme-light"),d.dataset.theme="dark")},[t,a]);let l=s=>{o(s),localStorage.setItem("boltdocs-theme",s)};return(0,Et.jsx)(Mt.Provider,{value:{theme:t,resolvedTheme:r,setTheme:l},children:e})}function Bt(){let e=(0,j.use)(Mt);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}var gt=M(require("virtual:boltdocs-layout"));var Vt=require("react"),Ht=require("react-aria-components"),De=require("react-router-dom"),It=require("react/jsx-runtime");function zt({children:e}){let t=(0,De.useNavigate)();return(0,It.jsx)(Ht.RouterProvider,{navigate:(o,r)=>{(0,Vt.startTransition)(()=>{t(o,r)})},useHref:De.useHref,children:e})}var Ot=require("react"),Dt=require("react-router-dom");function Ft(){let{pathname:e,hash:t}=(0,Dt.useLocation)();return(0,Ot.useLayoutEffect)(()=>{let o=document.querySelector(".boltdocs-content")||window,r=()=>o===window?window.scrollY:o.scrollTop,n=(a,i="auto")=>{o===window?window.scrollTo({top:a,behavior:i}):o.scrollTo({top:a,behavior:i})};if(t){let a=t.replace("#",""),i=document.getElementById(a);if(i){let s=o===window?0:o.getBoundingClientRect().top,p=i.getBoundingClientRect().top-s-80+r();n(p,"smooth");return}}n(0)},[e,t]),null}var Wt=require("react-router-dom"),$t=M(require("virtual:boltdocs-layout")),nt=require("react/jsx-runtime");function Gt(){return(0,nt.jsx)($t.default,{children:(0,nt.jsx)(Wt.Outlet,{})})}var Fe=require("react"),qt=require("react/jsx-runtime"),_t=(0,Fe.createContext)({});function Ut(){return(0,Fe.use)(_t)}function jt({components:e,children:t}){return(0,qt.jsx)(_t.Provider,{value:e,children:t})}var Xt=require("react/jsx-runtime");function Jt({Component:e}){let t=Ut();return(0,Xt.jsx)(e,{components:t})}var _o=require("lucide-react");var ft={};ht(ft,{Admonition:()=>ne,Badge:()=>po,Button:()=>Yt,Card:()=>bo,Cards:()=>go,Caution:()=>No,CodeBlock:()=>le,ComponentPreview:()=>Oo,ComponentProps:()=>zo,CopyMarkdown:()=>$o,Danger:()=>Ro,Field:()=>So,FileTree:()=>Lo,Image:()=>Vo,Important:()=>Po,InfoBox:()=>wo,Link:()=>Bo,List:()=>To,Note:()=>vo,Tab:()=>ao,Table:()=>Mo,Tabs:()=>io,Tip:()=>yo,Video:()=>lo,Warning:()=>Co});var $e=M(require("react-aria-components"));var Kt=require("class-variance-authority"),q=require("react/jsx-runtime"),We=(0,Kt.cva)("flex flex-row items-center justify-center w-auto font-semibold tracking-tight no-underline whitespace-nowrap select-none outline-none transition-all duration-200 cursor-pointer pressed:scale-[0.97] hover:-translate-y-px leading-none",{variants:{variant:{primary:"bg-primary-500 text-white shadow-md hover:brightness-110 hover:shadow-lg",secondary:"bg-bg-surface text-text-main border border-border-subtle hover:bg-bg-muted hover:border-border-strong",outline:"bg-transparent text-text-main border border-border-strong hover:bg-bg-surface hover:border-primary-500",ghost:"bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-main",danger:"bg-[var(--color-danger-500)]/10 text-[var(--color-danger-500)] border border-[var(--color-danger-500)]/20 hover:bg-[var(--color-danger-500)]/15",success:"bg-[var(--color-success-500)]/10 text-[var(--color-success-500)] border border-[var(--color-success-500)]/20 hover:bg-[var(--color-success-500)]/15",warning:"bg-[var(--color-warning-500)]/10 text-[var(--color-warning-500)] border border-[var(--color-warning-500)]/20 hover:bg-[var(--color-warning-500)]/15",info:"bg-[var(--color-info-500)]/10 text-[var(--color-info-500)] border border-[var(--color-info-500)]/20 hover:bg-[var(--color-info-500)]/15",subtle:"bg-primary-500/10 text-primary-500 hover:bg-primary-500/20",link:"bg-transparent text-primary-500 !p-0 !min-h-0 hover:underline"},size:{sm:"min-h-8 px-3.5 text-[0.8125rem] gap-1.5",md:"min-h-10 px-5 text-[0.9375rem] gap-2",lg:"min-h-12 px-7 text-[1.05rem] gap-2.5"},rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},iconSize:{sm:"w-8 h-8 p-0",md:"w-10 h-10 p-0",lg:"w-12 h-12 p-0"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:null}},defaultVariants:{variant:"primary",size:"md",rounded:"md"}}),me=({href:e,icon:t,iconPosition:o="left",isIconOnly:r,children:n,className:a,variant:i,size:l,rounded:s,iconSize:c,disabled:d,...p})=>{let g=r||!n&&!!t,x=g?(0,q.jsx)("span",{className:"inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]",children:t}):(0,q.jsxs)(q.Fragment,{children:[t&&o==="left"&&(0,q.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t}),(0,q.jsx)("span",{className:"flex items-center",children:n}),t&&o==="right"&&(0,q.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t})]});return e?(0,q.jsx)($e.Link,{href:e,className:m(We({variant:i,size:l,rounded:s,iconSize:g?c:void 0,disabled:d}),a),...p,children:x}):(0,q.jsx)($e.Button,{className:m(We({variant:i,size:l,rounded:s,iconSize:g?c:void 0,disabled:d}),a),...p,children:x})};var Zt=require("react/jsx-runtime"),Yt=({className:e,variant:t,size:o,rounded:r,iconSize:n,disabled:a,...i})=>(0,Zt.jsx)(me,{className:m("group",We({variant:t,size:o,rounded:r,iconSize:n,disabled:a,className:e})),...i});var Je=M(require("react-aria-components")),ve=require("lucide-react");var st=require("codesandbox/lib/api/define.js");function Qt(e){let t=e.files||{},o=e.dependencies||{},r=e.devDependencies||{},n=e.title||"codesandbox-project",a=e.description||"Generic Sandbox",i={};for(let[l,s]of Object.entries(t)){let c=typeof s.content=="object"?JSON.stringify(s.content,null,2):s.content;i[l]={content:c,isBinary:s.isBinary??!1}}if(!i["package.json"]){let s=e.template==="vite"||!!r.vite||!!r["@vitejs/plugin-react"]?{dev:"vite",build:"vite build",preview:"vite preview"}:{start:"node index.js"};i["package.json"]={content:JSON.stringify({private:!0,name:n,description:a,type:"module",version:"1.0.0",scripts:e.scripts||s,dependencies:o,devDependencies:r},null,2),isBinary:!1}}return i}function sr(e){let t=Qt(e),o=(0,st.getParameters)({files:t}),r=new URLSearchParams({parameters:o,installDependencies:"true"});return e.entry&&r.set("file",`/${e.entry}`),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?${r.toString()}`,options:e}}function eo(e){if(typeof window>"u")return sr(e);let t=Qt(e),o=(0,st.getParameters)({files:t}),r=e.entry||"src/App.tsx",n=document.createElement("form");n.method="POST",n.target="_blank",n.action="https://codesandbox.io/api/v1/sandboxes/define",n.style.display="none";let a=(l,s)=>{let c=document.createElement("input");c.type="hidden",c.name=l,c.value=s,n.appendChild(c)},i=new URLSearchParams({file:`/${r}`,eslint:"0",codemirror:"1",installDependencies:"true"});return a("query",i.toString()),a("parameters",o),document.body.appendChild(n),n.submit(),document.body.removeChild(n),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?parameters=${o}`,options:e}}var to=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{let t=document.createElement("textarea");return t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),!0}};var J=require("react");function oo(e){let{title:t,sandbox:o}=e,[r,n]=(0,J.useState)(!1),[a,i]=(0,J.useState)(!1),[l,s]=(0,J.useState)(!1),c=(0,J.useRef)(null),d=ae(),p=(0,J.useCallback)(async()=>{let x=c.current?.textContent??"";to(x),n(!0),setTimeout(()=>n(!1),2e3)},[]),g=(0,J.useCallback)(()=>{let x=c.current?.textContent??"",R=d?.integrations?.sandbox?.config||{},w=typeof o=="object"?o:R,f=w.entry||"src/App.tsx";eo({title:t??"Code Snippet",...w,files:{...w.files,[f]:{content:x}}})},[t,d,o]);return(0,J.useEffect)(()=>{let x=c.current?.textContent?.length??0;s(x>120)},[e.children,e.highlightedHtml]),{copied:r,isExpanded:a,setIsExpanded:i,isExpandable:l,preRef:c,handleCopy:p,handleSandbox:g,shouldTruncate:l&&!a}}var v=require("react/jsx-runtime");function Y(e){let{size:t=20,...o}=e;return{...o,width:t,height:t}}var ro=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...Y(e),children:[(0,v.jsx)("title",{children:"CodeSandbox"}),(0,v.jsx)("path",{d:"M0 24h24V0H0v2.455h21.546v19.09H2.454V0H0Z"})]});var Ge=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...Y(e),children:[(0,v.jsx)("title",{children:"TypeScript"}),(0,v.jsx)("path",{fill:"#2563EB",d:"M3.234 9.093V7.318h8.363v1.775H8.479V17.5H6.352V9.093H3.234zm15.263 1.153c-.04-.4-.21-.712-.512-.934-.301-.222-.71-.333-1.228-.333-.351 0-.648.05-.89.149-.242.096-.427.23-.557.403a.969.969 0 0 0-.189.586.838.838 0 0 0 .115.477c.086.136.204.254.353.353.149.097.321.181.517.254.195.07.404.13.626.179l.915.219c.444.1.852.232 1.223.397.371.166.693.37.965.612.271.242.482.527.631.855.152.328.23.704.234 1.129-.004.623-.163 1.163-.478 1.62-.311.454-.762.807-1.352 1.06-.587.248-1.294.372-2.123.372-.822 0-1.538-.126-2.147-.378-.607-.252-1.081-.624-1.422-1.118-.338-.497-.516-1.112-.532-1.845h2.083c.023.342.12.627.293.855.176.226.41.397.701.513a2.8 2.8 0 0 0 1 .168c.364 0 .68-.053.949-.159a1.45 1.45 0 0 0 .631-.442c.15-.189.224-.406.224-.651a.846.846 0 0 0-.204-.577c-.132-.156-.328-.288-.586-.398a5.964 5.964 0 0 0-.94-.298l-1.109-.278c-.858-.21-1.536-.536-2.033-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.491-1.615.335-.461.794-.82 1.377-1.08.584-.258 1.247-.387 1.99-.387.755 0 1.414.13 1.978.388.567.258 1.007.618 1.322 1.079.315.46.477.994.488 1.6h-2.064z"})]}),_e=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...Y(e),children:[(0,v.jsx)("title",{children:"JavaScript"}),(0,v.jsx)("path",{fill:"#F59E0B",d:"M8.383 7.318h2.127v7.1c0 .656-.147 1.226-.442 1.71a2.924 2.924 0 01-1.218 1.118c-.52.262-1.125.393-1.815.393-.613 0-1.17-.107-1.67-.323a2.67 2.67 0 01-1.183-.994c-.292-.448-.436-1.01-.433-1.686h2.143c.006.269.061.5.164.691.106.19.25.335.432.438.186.1.405.15.657.15.265 0 .488-.057.67-.17.186-.116.327-.285.423-.507.096-.222.145-.496.145-.82v-7.1zm9.43 2.928c-.04-.4-.21-.712-.511-.934-.302-.222-.711-.333-1.228-.333-.352 0-.648.05-.89.149-.242.096-.428.23-.557.403a.969.969 0 00-.19.586.838.838 0 00.115.477c.087.136.204.254.353.353.15.097.322.181.517.254.196.07.405.13.627.179l.915.219c.444.1.851.232 1.223.397.37.166.692.37.964.612s.482.527.631.855a2.7 2.7 0 01.234 1.129c-.003.623-.162 1.163-.477 1.62-.312.454-.763.807-1.353 1.06-.586.248-1.294.372-2.122.372-.822 0-1.538-.126-2.148-.378-.607-.252-1.08-.624-1.422-1.118-.338-.497-.515-1.112-.532-1.845h2.083c.023.342.121.627.293.855.176.226.41.397.702.513.295.112.628.168.999.168.364 0 .68-.053.95-.159.271-.106.482-.253.63-.442.15-.189.224-.406.224-.651a.846.846 0 00-.203-.577c-.133-.156-.329-.288-.587-.398a5.964 5.964 0 00-.94-.298l-1.108-.278c-.859-.21-1.537-.536-2.034-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.492-1.615.334-.461.793-.82 1.377-1.08.583-.258 1.246-.387 1.989-.387.755 0 1.415.13 1.978.388.567.258 1.008.618 1.323 1.079.314.46.477.994.487 1.6h-2.063z"})]}),Ue=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...Y(e),children:[(0,v.jsx)("title",{children:"JSON"}),(0,v.jsx)("path",{fill:"#F59E0B",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),je=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...Y(e),children:[(0,v.jsx)("title",{children:"CSS"}),(0,v.jsx)("path",{fill:"#0EA5E9",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),qe=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...Y(e),children:[(0,v.jsx)("title",{children:"HTML"}),(0,v.jsx)("path",{fill:"#EA580C",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]});var ue=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...Y(e),children:[(0,v.jsx)("title",{children:"React"}),(0,v.jsx)("path",{fill:"#0E8ADC",d:"M12 13.677a1.677 1.677 0 100-3.354 1.677 1.677 0 000 3.354z"}),(0,v.jsx)("path",{stroke:"#0E8ADC",d:"M12 15.436c4.97 0 9-1.538 9-3.436s-4.03-3.436-9-3.436S3 10.102 3 12s4.03 3.436 9 3.436z"}),(0,v.jsx)("path",{stroke:"#0E8ADC",d:"M9.024 13.718c2.485 4.305 5.832 7.025 7.476 6.076 1.644-.949.961-5.208-1.524-9.512C12.491 5.977 9.144 3.257 7.5 4.206c-1.644.949-.961 5.208 1.524 9.512z"}),(0,v.jsx)("path",{stroke:"#0E8ADC",d:"M9.024 10.282c-2.485 4.304-3.168 8.563-1.524 9.512 1.644.95 4.99-1.771 7.476-6.076 2.485-4.304 3.168-8.563 1.524-9.512-1.644-.95-4.99 1.771-7.476 6.076z"})]}),fe=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...Y(e),children:[(0,v.jsx)("title",{children:"Markdown"}),(0,v.jsx)("path",{fill:"#60A5FA",d:"M3 15.714V8h2.323l2.322 2.836L9.968 8h2.322v7.714H9.968V11.29l-2.323 2.836-2.322-2.836v4.424H3zm14.516 0l-3.484-3.743h2.323V8h2.322v3.97H21l-3.484 3.744z"})]}),ge=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...Y(e),children:[(0,v.jsx)("title",{children:"Shell"}),(0,v.jsx)("path",{stroke:"#14B8A6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.336 17l6-6-6-6M12.336 19h8"})]}),be=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...Y(e),children:[(0,v.jsx)("title",{children:"YAML"}),(0,v.jsx)("path",{fill:"#A78BFA",d:"M6.533 5.864h2.755l2.654 5.011h.113l2.654-5.011h2.756l-4.245 7.522V17.5h-2.443v-4.114L6.533 5.864z"})]});var he=M(require("react-aria-components"));var W=require("react/jsx-runtime"),no=({className:e,children:t,...o})=>(0,W.jsx)(he.Tooltip,{...o,offset:8,className:r=>m("group z-50 overflow-visible rounded-md bg-bg-surface/90 px-2.5 py-1.5 text-xs font-medium text-text-main shadow-lg backdrop-blur-md ring-1 ring-border-subtle outline-hidden select-none","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95 data-entering:duration-100","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95 data-exiting:duration-75","data-[placement=top]:slide-in-from-bottom-1","data-[placement=bottom]:slide-in-from-top-1","data-[placement=left]:slide-in-from-right-1","data-[placement=right]:slide-in-from-left-1",typeof e=="function"?e(r):e),children:r=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(he.OverlayArrow,{children:(0,W.jsxs)("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90",children:[(0,W.jsx)("title",{children:"Arrow"}),(0,W.jsx)("path",{d:"M0 0 L4 4 L8 0"})]})}),typeof t=="function"?t(r):t]})}),xe=({content:e,children:t,delay:o=500,closeDelay:r=0,...n})=>(0,W.jsxs)(he.TooltipTrigger,{delay:o,closeDelay:r,children:[t,(0,W.jsx)(no,{...n,children:e})]});xe.Root=xe;xe.Content=no;var A=require("react/jsx-runtime"),ar={ts:Ge,tsx:ue,js:_e,jsx:ue,json:Ue,css:je,html:qe,md:fe,mdx:fe,bash:ge,sh:ge,yaml:be,yml:be};function le(e){let{children:t,sandbox:o,hideSandbox:r=!0,hideCopy:n=!1,highlightedHtml:a,"data-highlighted-html":i,title:l,"data-lang":s,plain:c=!1,...d}=e,p=a||i,R=!!ae()?.integrations?.sandbox?.enable&&!r,w=e.lang||s||"",{copied:f,isExpanded:H,setIsExpanded:b,isExpandable:_,preRef:ee,handleCopy:U,handleSandbox:bt,shouldTruncate:de}=oo(e),xt=ar[w];return(0,A.jsxs)("div",{className:m("group relative overflow-hidden bg-(--color-code-bg)","contain-layout contain-paint",{"my-6 rounded-lg border border-border-subtle":!c,"[&>pre]:max-h-62.5 [&>pre]:overflow-hidden":de},e.className),children:[l&&(0,A.jsxs)("div",{className:"flex items-center gap-2 border-b border-border-subtle bg-bg-surface/50 px-4 py-2 text-[13px] font-medium text-text-muted",children:[xt?(0,A.jsx)(xt,{size:14}):(0,A.jsx)(ve.File,{size:14,className:"opacity-60"}),(0,A.jsx)("span",{children:l})]}),(0,A.jsxs)("div",{className:"absolute top-3 right-4 z-50 flex items-center gap-2 transition-all duration-300 opacity-0 group-hover:opacity-100",children:[R&&(0,A.jsx)(xe,{content:"Open in CodeSandbox",children:(0,A.jsx)(Je.Button,{onPress:bt,className:"grid place-items-center w-8 h-8 bg-transparent text-text-muted outline-none cursor-pointer transition-all duration-200 hover:scale-115 hover:text-sky-400 active:scale-95 [&>svg]:w-5 [&>svg]:h-5 [&>svg]:stroke-2","aria-label":"Open in CodeSandbox",children:(0,A.jsx)(ro,{size:20})})}),!n&&(0,A.jsx)(xe,{content:f?"Copied!":"Copy code",children:(0,A.jsx)(Je.Button,{onPress:U,className:m("grid place-items-center size-8 bg-transparent outline-none cursor-pointer transition-all duration-200 hover:scale-110 active:scale-95 [&>svg]:size-4 [&>svg]:stroke-2",f?"text-emerald-400":"text-text-muted hover:text-text-main"),"aria-label":"Copy code",children:f?(0,A.jsx)(ve.Check,{size:20}):(0,A.jsx)(ve.Copy,{size:20})})})]}),p?(0,A.jsx)("div",{ref:ee,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:p}}):(0,A.jsx)("pre",{ref:ee,className:"m-0! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7]",...d,children:t}),_&&(0,A.jsx)("div",{className:m(de?"absolute bottom-0 inset-x-0 h-24 bg-linear-to-t from-(--color-code-bg) to-transparent flex items-end justify-center pb-4 z-10":"relative flex justify-center py-4"),children:(0,A.jsx)(Je.Button,{onPress:()=>b(!H),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:H?"Show less":"Expand code"})})]})}var ye=require("react"),ce=M(require("react-aria-components"));var re=require("react");function so({initialIndex:e=0,tabs:t}){let o=t[e]?.props.disabled?t.findIndex(c=>!c.props.disabled):e,[r,n]=(0,re.useState)(o===-1?0:o),a=(0,re.useRef)([]),[i,l]=(0,re.useState)({opacity:0,transform:"translateX(0)",width:0});(0,re.useEffect)(()=>{let c=a.current[r];c&&l({opacity:1,width:c.offsetWidth,transform:`translateX(${c.offsetLeft}px)`})},[r,t]);let s=(0,re.useCallback)(c=>{let d=0;if(c.key==="ArrowRight"?d=1:c.key==="ArrowLeft"&&(d=-1),d!==0){let p=(r+d+t.length)%t.length;for(;t[p].props.disabled&&p!==r;)p=(p+d+t.length)%t.length;p!==r&&!t[p].props.disabled&&(n(p),a.current[p]?.focus())}},[r,t]);return{active:r,setActive:n,tabRefs:a,indicatorStyle:i,handleKeyDown:s}}var at=require("class-variance-authority"),z=require("react/jsx-runtime"),ir=(0,at.cva)("relative flex items-center border-b border-border-subtle gap-1 overflow-x-auto no-scrollbar",{variants:{size:{default:"px-0",compact:"px-2"}},defaultVariants:{size:"default"}}),lr=(0,at.cva)("flex items-center gap-2 px-4 py-2.5 text-sm font-medium outline-none transition-all duration-200 cursor-pointer bg-transparent border-none select-none whitespace-nowrap",{variants:{isActive:{true:"text-primary-500",false:"text-text-muted hover:text-text-main"},isDisabled:{true:"opacity-40 pointer-events-none",false:""}},defaultVariants:{isActive:!1,isDisabled:!1}});function ao({children:e}){let t=typeof e=="string"?(0,z.jsx)(le,{className:"language-bash",children:(0,z.jsx)("code",{children:e.trim()})}):e;return(0,z.jsx)("div",{className:"py-4",children:t})}function io({defaultIndex:e=0,children:t}){let o=(0,ye.useMemo)(()=>ye.Children.toArray(t).filter(l=>(0,ye.isValidElement)(l)&&l.props?.label),[t]),{active:r,setActive:n,tabRefs:a,indicatorStyle:i}=so({initialIndex:e,tabs:o});return(0,z.jsx)("div",{className:"my-8 w-full group/tabs",children:(0,z.jsxs)(ce.Tabs,{selectedKey:r.toString(),onSelectionChange:l=>n(Number(l)),className:"w-full",children:[(0,z.jsxs)(ce.TabList,{"aria-label":"Content Tabs",className:m(ir()),children:[o.map((l,s)=>{let{label:c,icon:d,disabled:p}=l.props,g=s.toString();return(0,z.jsxs)(ce.Tab,{id:g,isDisabled:p,ref:x=>{a.current[s]=x},className:({isSelected:x,isDisabled:R})=>m(lr({isActive:x,isDisabled:R})),children:[!!d&&(0,z.jsx)("span",{className:"shrink-0 [&>svg]:w-4 [&>svg]:h-4",children:d}),(0,z.jsx)("span",{children:c})]},g)}),(0,z.jsx)("div",{className:"absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300 ease-in-out pointer-events-none",style:i,"aria-hidden":"true"})]}),o.map((l,s)=>(0,z.jsx)(ce.TabPanel,{id:s.toString(),children:o[s]},s))]})})}var Ce=require("react"),Se=require("react/jsx-runtime");function lo({src:e,poster:t,alt:o,children:r,controls:n,preload:a="metadata",...i}){let l=(0,Ce.useRef)(null),[s,c]=(0,Ce.useState)(!1);return(0,Ce.useEffect)(()=>{let d=l.current;if(!d)return;let p=new IntersectionObserver(([g])=>{g.isIntersecting&&(c(!0),p.disconnect())},{rootMargin:"200px"});return p.observe(d),()=>p.disconnect()},[]),(0,Se.jsx)("div",{ref:l,className:"my-6 overflow-hidden rounded-lg border border-border-subtle",children:s?(0,Se.jsxs)("video",{className:"block w-full h-auto",src:e,poster:t,controls:!0,preload:a,playsInline:!0,...i,children:[r,"Your browser does not support the video tag."]}):(0,Se.jsx)("div",{className:"aspect-video bg-bg-surface animate-pulse",role:"img","aria-label":o||"Video"})})}var co=require("class-variance-authority"),mo=require("react/jsx-runtime"),cr=(0,co.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold tracking-tight",{variants:{variant:{default:"bg-bg-surface text-text-muted border-border-subtle",primary:"bg-primary-500/15 text-primary-400 border-primary-500/20",success:"bg-emerald-500/15 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/15 text-amber-400 border-amber-500/20",danger:"bg-red-500/15 text-red-400 border-red-500/20",info:"bg-sky-500/15 text-sky-400 border-sky-500/20"}},defaultVariants:{variant:"default"}});function po({variant:e="default",children:t,className:o="",...r}){return(0,mo.jsx)("span",{className:m(cr({variant:e}),o),...r,children:t})}var Be=require("react"),uo=M(require("react-aria-components"));var fo=require("class-variance-authority"),I=require("react/jsx-runtime"),dr=(0,fo.cva)("grid gap-4 my-6",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"}},defaultVariants:{cols:3}});function go({cols:e=3,children:t,className:o="",...r}){return(0,I.jsx)("div",{className:m(dr({cols:e}),o),...r,children:t})}function bo({title:e,icon:t,href:o,children:r,className:n="",...a}){let i=(0,Be.useRef)(null),l=(0,Be.useRef)(null),s=(0,Be.useCallback)(p=>{let g=i.current||l.current;if(!g)return;let{left:x,top:R}=g.getBoundingClientRect();g.style.setProperty("--x",`${p.clientX-x}px`),g.style.setProperty("--y",`${p.clientY-R}px`)},[]),c=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"pointer-events-none absolute -inset-px rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:"radial-gradient(400px circle at var(--x) var(--y), color-mix(in oklch, var(--color-primary-500), transparent 90%), transparent 80%)"}}),t&&(0,I.jsx)("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-primary-500/10 text-primary-400 text-lg transition-transform duration-300 group-hover:scale-105 group-hover:-rotate-3",children:t}),(0,I.jsxs)("div",{className:"space-y-1.5",children:[e&&(0,I.jsx)("h3",{className:"text-sm font-bold text-text-main",children:e}),r&&(0,I.jsx)("div",{className:"text-sm text-text-muted leading-relaxed",children:r})]})]}),d=m("group relative block rounded-xl border border-border-subtle bg-bg-surface p-5 outline-none overflow-hidden","transition-all duration-200 hover:border-primary-500/40 hover:shadow-lg hover:shadow-primary-500/5","focus-visible:ring-2 focus-visible:ring-primary-500/30",n);return o?(0,I.jsx)(uo.Link,{ref:l,href:o,className:m(d,"no-underline cursor-pointer"),onMouseMove:s,...a,children:c}):(0,I.jsx)("div",{ref:i,role:"presentation",className:d,onMouseMove:s,...a,children:c})}var E=require("lucide-react");var ho=require("class-variance-authority"),T=require("react/jsx-runtime"),pr={note:(0,T.jsx)(E.Bookmark,{size:18}),tip:(0,T.jsx)(E.Lightbulb,{size:18}),info:(0,T.jsx)(E.Info,{size:18}),warning:(0,T.jsx)(E.AlertTriangle,{size:18}),danger:(0,T.jsx)(E.ShieldAlert,{size:18}),important:(0,T.jsx)(E.Flame,{size:18}),caution:(0,T.jsx)(E.Zap,{size:18})},mr={note:"Note",tip:"Tip",info:"Info",warning:"Warning",danger:"Danger",important:"Important",caution:"Caution"},xo=(0,ho.cva)("py-4 px-4 rounded-lg",{variants:{type:{note:"border-primary-400 bg-primary-500/5 text-primary-400",tip:"border-emerald-500 bg-emerald-500/5 text-emerald-500",info:"border-sky-500 bg-sky-500/5 text-sky-500",warning:"border-amber-500 bg-amber-500/5 text-amber-500",danger:"border-red-500 bg-red-500/5 text-red-500",important:"border-orange-500 bg-orange-500/5 text-orange-500",caution:"border-yellow-500 bg-yellow-500/5 text-yellow-500"}},defaultVariants:{type:"note"}});function ne({type:e="note",title:t,children:o,className:r="",...n}){return(0,T.jsxs)("div",{className:m(xo({type:e}),r),role:e==="warning"||e==="danger"?"alert":"note",...n,children:[(0,T.jsxs)("div",{className:"flex items-center flex-row gap-2 mb-2",children:[(0,T.jsx)("span",{className:m("shrink-0",xo({type:e})),children:pr[e]}),(0,T.jsx)("span",{className:"text-sm font-bold tracking-tight text-text-main",children:t||mr[e]})]}),(0,T.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0",children:o})]})}var vo=e=>(0,T.jsx)(ne,{type:"note",...e}),yo=e=>(0,T.jsx)(ne,{type:"tip",...e}),Co=e=>(0,T.jsx)(ne,{type:"warning",...e}),Ro=e=>(0,T.jsx)(ne,{type:"danger",...e}),wo=e=>(0,T.jsx)(ne,{type:"info",...e}),Po=e=>(0,T.jsx)(ne,{type:"important",...e}),No=e=>(0,T.jsx)(ne,{type:"caution",...e});var Xe=require("react"),Re=require("lucide-react");var Ke=require("class-variance-authority"),X=require("react/jsx-runtime"),ur=(0,Ke.cva)("my-6 transition-all duration-200",{variants:{variant:{default:"list-disc pl-5 text-text-muted marker:text-primary-500/50",number:"list-decimal pl-5 text-text-muted marker:text-primary-500/50 marker:font-bold",checked:"list-none p-0",arrow:"list-none p-0",bubble:"list-none p-0"},cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"},isGrid:{true:"grid gap-x-8 gap-y-3",false:"space-y-2"},dense:{true:"space-y-1",false:"space-y-2"}},compoundVariants:[{variant:"default",dense:!0,className:"space-y-0.5"}],defaultVariants:{variant:"default",cols:1,isGrid:!1,dense:!1}}),fr=(0,Ke.cva)("group flex items-start gap-3 text-sm leading-relaxed transition-all duration-200",{variants:{variant:{default:"",number:"",checked:"hover:translate-x-0.5",arrow:"hover:translate-x-0.5",bubble:"hover:translate-x-0.5"},dense:{true:"py-0",false:"py-0.5"}},defaultVariants:{variant:"default",dense:!1}}),gr=(0,Ke.cva)("mt-1 shrink-0 flex items-center justify-center transition-transform group-hover:scale-110",{variants:{variant:{bubble:"h-5 w-5 rounded-full bg-primary-500/10 text-primary-500 text-[10px] font-bold",default:""}},defaultVariants:{variant:"default"}});function br({icon:e,children:t,variant:o,dense:r}){return(0,X.jsxs)("li",{className:m(fr({variant:o,dense:r})),children:[e&&(0,X.jsx)("span",{className:m(gr({variant:o==="bubble"?"bubble":"default"})),children:e}),(0,X.jsx)("div",{className:"flex-1 text-text-muted group-hover:text-text-main transition-colors",children:t})]})}var xr={checked:e=>(0,X.jsx)(Re.Check,{size:14,className:m("text-emerald-500 shrink-0",e)}),arrow:e=>(0,X.jsx)(Re.ChevronRight,{size:14,className:m("text-primary-400 shrink-0",e)}),bubble:e=>(0,X.jsx)(Re.Circle,{size:6,fill:"currentColor",className:m("text-primary-500 shrink-0",e)}),default:()=>null,number:()=>null};function To({variant:e="default",cols:t=1,dense:o=!1,children:r,className:n,...a}){let i=t!==void 0&&Number(t)>1,l=xr[e],s=ur({variant:e,cols:t,dense:o,isGrid:i,className:n}),c=e==="number"?"ol":"ul";return e==="default"||e==="number"?(0,X.jsx)(c,{className:s,...a,children:r}):(0,X.jsx)("ul",{className:s,...a,children:Xe.Children.map(r,d=>{if(!(0,Xe.isValidElement)(d))return d;let p=d,g=p.type==="li"?p.props.children:p.props.children||d;return(0,X.jsx)(br,{icon:l(),variant:e,dense:o,children:g})})})}var Z=require("react"),Q=M(require("react-aria-components")),$=require("lucide-react");var N=require("react/jsx-runtime"),we=16,Ee=2,hr={ts:Ge,tsx:ue,js:_e,jsx:ue,json:Ue,css:je,html:qe,md:fe,mdx:fe,bash:ge,sh:ge,yaml:be,yml:be},it={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 ct(e){return typeof e=="string"?e:typeof e=="number"?e.toString():Array.isArray(e)?e.map(ct).join(""):(0,Z.isValidElement)(e)&&e.props&&typeof e.props=="object"&&"children"in e.props?ct(e.props.children):""}function vr(e,t){let o=e.toLowerCase(),r="shrink-0 transition-colors duration-200";if(t)return(0,N.jsx)($.Folder,{size:we,strokeWidth:Ee,className:m(r,"text-primary-400"),fill:"currentColor",fillOpacity:.15});let n=o.split(".").pop()||"",a=hr[n];if(a)return(0,N.jsx)(a,{size:we});let i=m(r,"text-text-dim group-hover:text-text-main");return it.CODE.test(o)?(0,N.jsx)($.FileCode,{size:we,strokeWidth:Ee,className:i}):it.TEXT.test(o)?(0,N.jsx)($.FileText,{size:we,strokeWidth:Ee,className:i}):it.IMAGE.test(o)?(0,N.jsx)($.FileImage,{size:we,strokeWidth:Ee,className:i}):(0,N.jsx)($.File,{size:we,strokeWidth:Ee,className:i})}function lt(e,t){if(!(0,Z.isValidElement)(e))return!1;let o=e.type;if(typeof o=="string")return o===t;if(typeof o=="function")return o.name===t||o.name?.toLowerCase()===t;let r=e.props;return r?.originalType===t||r?.mdxType===t}function yr(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function Ye(e,t="root"){if(!(0,Z.isValidElement)(e))return[];let o=[];if(lt(e,"ul"))return Z.Children.forEach(e.props.children,(r,n)=>{o.push(...Ye(r,`${t}-${n}`))}),o;if(lt(e,"li")){let r=Z.Children.toArray(e.props.children),n=r.findIndex(R=>lt(R,"ul")),a=n!==-1,i=a?r.slice(0,n):r,l=a?r.slice(n):[],s=ct(i),{name:c,comment:d}=yr(s),p=c.endsWith("/"),g=p?c.slice(0,-1):c,x=a||p;return o.push({id:`${t}-${g}`,name:g,comment:d,isFolder:x,children:a?Ye(l[0],`${t}-${g}`):void 0}),o}return e.props&&typeof e.props=="object"&&"children"in e.props&&Z.Children.forEach(e.props.children,(r,n)=>{o.push(...Ye(r,`${t}-${n}`))}),o}function ko({item:e}){return(0,N.jsxs)(Q.TreeItem,{id:e.id,textValue:e.name,className:"outline-none group focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md",children:[(0,N.jsx)(Q.TreeItemContent,{children:({isExpanded:t,hasChildItems:o})=>(0,N.jsxs)("div",{className:"flex items-center gap-2 py-1 px-1.5 rounded-md transition-colors hover:bg-primary-500/5 cursor-pointer",children:[(0,N.jsx)("div",{style:{width:"calc((var(--tree-item-level) - 1) * 1rem)"},className:"shrink-0"}),o?(0,N.jsx)(Q.Button,{slot:"chevron",className:"outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors",children:(0,N.jsx)($.ChevronRight,{size:14,strokeWidth:3,className:m("transition-transform duration-200",t&&"rotate-90")})}):(0,N.jsx)("div",{className:"w-[18px]"}),vr(e.name,e.isFolder),(0,N.jsx)("span",{className:m("text-sm transition-colors truncate select-none",e.isFolder?"font-semibold text-text-main":"text-text-muted group-hover:text-text-main"),children:e.name}),e.comment&&(0,N.jsxs)("span",{className:"ml-2 text-xs italic text-text-dim opacity-70 group-hover:opacity-100 transition-opacity whitespace-nowrap overflow-hidden text-ellipsis font-sans",children:["//"," ",e.comment]})]})}),e.children&&(0,N.jsx)(Q.Collection,{items:e.children,children:t=>(0,N.jsx)(ko,{item:t})})]})}function Lo({children:e}){let t=(0,Z.useMemo)(()=>Ye(e),[e]);return(0,N.jsx)("div",{className:"my-8",children:(0,N.jsx)(Q.Tree,{items:t,"aria-label":"File Tree",className:m("rounded-xl border border-border-subtle bg-bg-surface/50 p-4 font-mono text-sm shadow-sm backdrop-blur-sm outline-none","max-h-[500px] overflow-y-auto scrollbar-thin scrollbar-thumb-border-subtle","focus-visible:ring-2 focus-visible:ring-primary-500/20"),children:o=>(0,N.jsx)(ko,{item:o})})})}var Ve=M(require("react-aria-components"));var Pe=require("react");function Ao({data:e,sortable:t=!1,paginated:o=!1,pageSize:r=10}){let[n,a]=(0,Pe.useState)(null),[i,l]=(0,Pe.useState)(1),s=(0,Pe.useMemo)(()=>{if(!e)return[];let g=[...e];return t&&n!==null&&g.sort((x,R)=>{let w=x[n.key],f=R[n.key],H=typeof w=="string"?w:"",b=typeof f=="string"?f:"";return H<b?n.direction==="asc"?-1:1:H>b?n.direction==="asc"?1:-1:0}),g},[e,n,t]),c=Math.ceil(s.length/r),d=(0,Pe.useMemo)(()=>{if(!o)return s;let g=(i-1)*r;return s.slice(g,g+r)},[s,o,i,r]);return{sortConfig:n,currentPage:i,setCurrentPage:l,totalPages:c,paginatedData:d,requestSort:g=>{if(!t)return;let x="asc";n&&n.key===g&&n.direction==="asc"&&(x="desc"),a({key:g,direction:x})}}}var O=require("lucide-react");var y=require("react/jsx-runtime");function Mo({headers:e,data:t,children:o,className:r="",sortable:n=!1,paginated:a=!1,pageSize:i=10}){let{sortConfig:l,currentPage:s,setCurrentPage:c,totalPages:d,paginatedData:p,requestSort:g}=Ao({data:t,sortable:n,paginated:a,pageSize:i}),x=w=>n?l?.key!==w?(0,y.jsx)(O.ChevronDown,{size:14,className:"ml-1 opacity-30"}):l.direction==="asc"?(0,y.jsx)(O.ChevronUp,{size:14,className:"ml-1 text-primary-400"}):(0,y.jsx)(O.ChevronDown,{size:14,className:"ml-1 text-primary-400"}):null,R=o||(0,y.jsxs)(y.Fragment,{children:[e&&(0,y.jsx)("thead",{children:(0,y.jsx)("tr",{children:e.map((w,f)=>(0,y.jsx)("th",{onClick:()=>g(f),className:m("text-left px-3 py-2.5 border-b-2 border-border-subtle text-text-main font-semibold text-sm",n&&"cursor-pointer select-none hover:text-primary-400 transition-colors"),children:(0,y.jsxs)("div",{className:"flex items-center",children:[w,x(f)]})},f))})}),p&&(0,y.jsx)("tbody",{children:p.map((w,f)=>(0,y.jsx)("tr",{className:"transition-colors hover:bg-bg-surface",children:w.map((H,b)=>(0,y.jsx)("td",{className:"px-3 py-2 border-b border-border-subtle text-sm text-text-muted",children:H},b))},f))})]});return(0,y.jsxs)("div",{className:m("my-6 rounded-lg border border-border-subtle overflow-hidden",r),children:[(0,y.jsx)("div",{className:"overflow-x-auto",children:(0,y.jsx)("table",{className:"w-full border-collapse text-sm",children:R})}),a&&d>1&&(0,y.jsxs)("div",{className:"flex items-center justify-between border-t border-border-subtle px-4 py-3",children:[(0,y.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",s," of ",d]}),(0,y.jsxs)("div",{className:"flex items-center gap-1",children:[(0,y.jsx)(Ve.Button,{onPress:()=>c(1),isDisabled:s===1,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(O.ChevronsLeft,{size:16})}),(0,y.jsx)(Ve.Button,{onPress:()=>c(w=>Math.max(w-1,1)),isDisabled:s===1,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(O.ChevronLeft,{size:16})}),(0,y.jsx)(Ve.Button,{onPress:()=>c(w=>Math.min(w+1,d)),isDisabled:s===d,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(O.ChevronRight,{size:16})}),(0,y.jsx)(Ve.Button,{onPress:()=>c(d),isDisabled:s===d,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(O.ChevronsRight,{size:16})})]})]})]})}var D=require("react/jsx-runtime");function So({name:e,type:t,defaultValue:o,required:r=!1,children:n,id:a,className:i=""}){return(0,D.jsxs)("article",{className:m("group relative my-6 rounded-xl border border-border-subtle bg-bg-surface p-5 transition-all duration-300","hover:border-primary-500/30 hover:shadow-lg hover:shadow-primary-500/5",i),id:a,children:[(0,D.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,D.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[(0,D.jsx)("code",{className:"inline-flex items-center rounded-md bg-primary-500/10 px-2.5 py-1 font-mono text-sm font-bold text-primary-400 border border-primary-500/20 shadow-sm transition-colors group-hover:bg-primary-500/15",children:e}),t&&(0,D.jsx)("span",{className:"rounded-md bg-bg-muted/80 border border-border-subtle px-2 py-0.5 text-[11px] font-semibold text-text-muted uppercase tracking-wider shadow-sm",children:t}),r&&(0,D.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full bg-red-500/10 px-2.5 py-0.5 text-[10px] font-bold uppercase tracking-wider text-red-400 border border-red-500/20 shadow-sm",children:[(0,D.jsx)("span",{className:"h-1 w-1 rounded-full bg-red-400 animate-pulse"}),"Required"]})]}),o&&(0,D.jsxs)("div",{className:"flex items-center gap-2 text-[11px] text-text-muted bg-bg-muted/30 px-2.5 py-1 rounded-md border border-border-subtle/50",children:[(0,D.jsx)("span",{className:"font-semibold opacity-60 uppercase tracking-tighter",children:"Default"}),(0,D.jsx)("code",{className:"font-mono text-text-main font-medium",children:o})]})]}),(0,D.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30",children:n})]})}var Eo=require("react/jsx-runtime");function Bo({to:e,children:t,className:o="",...r}){let n=e&&(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")),a=m("text-blue-600 hover:text-blue-800 hover:underline cursor-pointer",o);return(0,Eo.jsx)(pe,{href:e,className:a,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,...r,children:t})}var Ho=require("react/jsx-runtime");function Vo({src:e,alt:t,theme:o,...r}){let{theme:n}=Bt();return o&&o!==n?null:(0,Ho.jsx)("img",{src:e,alt:t||"",...r})}var P=require("react/jsx-runtime");function zo({title:e,props:t,className:o=""}){return(0,P.jsxs)("div",{className:m("my-6",o),children:[e&&(0,P.jsx)("h3",{className:"text-base font-bold text-text-main mb-3",children:e}),(0,P.jsx)("div",{className:"overflow-x-auto rounded-lg border border-border-subtle",children:(0,P.jsxs)("table",{className:"w-full border-collapse text-sm",children:[(0,P.jsx)("thead",{children:(0,P.jsxs)("tr",{children:[(0,P.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Property"}),(0,P.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Type"}),(0,P.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Default"}),(0,P.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Description"})]})}),(0,P.jsx)("tbody",{children:t.map((r,n)=>(0,P.jsxs)("tr",{className:"transition-colors hover:bg-bg-surface",children:[(0,P.jsxs)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:[(0,P.jsx)("code",{className:"rounded bg-bg-surface px-1.5 py-0.5 font-mono text-xs font-bold text-primary-400",children:r.name}),r.required&&(0,P.jsx)("span",{className:"ml-1 text-red-400 font-bold",children:"*"})]}),(0,P.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:(0,P.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted",children:r.type})}),(0,P.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:r.defaultValue?(0,P.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400",children:r.defaultValue}):(0,P.jsx)("span",{className:"text-text-dim",children:"\u2014"})}),(0,P.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle text-text-muted",children:r.description})]},`${r.name}-${n}`))})]})})]})}var dt=require("react");function Io(e){let{code:t,children:o,preview:r}=e,n=(0,dt.useMemo)(()=>(t??(typeof o=="string"?o:"")).trim(),[t,o]),a=(0,dt.useMemo)(()=>r??(typeof o!="string"?o:null),[r,o]);return{initialCode:n,previewElement:a}}var Ne=require("react/jsx-runtime");function Oo(e){let{highlightedHtml:t,hideCode:o=!1,hideSandbox:r=!1,hideCopy:n=!1,sandboxOptions:a={}}=e,{initialCode:i,previewElement:l}=Io(e);return(0,Ne.jsxs)("div",{className:"my-6 overflow-hidden rounded-xl border border-border-subtle",children:[(0,Ne.jsx)("div",{className:"flex items-center justify-center p-8 bg-bg-surface",children:l}),!o&&(0,Ne.jsx)("div",{className:"border-t border-border-subtle",children:(0,Ne.jsx)(le,{hideSandbox:r,hideCopy:n,title:a.title,lang:"tsx",highlightedHtml:t,plain:!0,children:i})})]})}var Wo=require("react"),se=require("lucide-react");var Do=require("react/jsx-runtime"),pt=({children:e,className:t,vertical:o=!1})=>(0,Do.jsx)("div",{className:m("inline-flex",o?"flex-col":"flex-row",!o&&["[&>*:not(:first-child)]:-ml-px","[&>*:first-child]:rounded-r-none","[&>*:last-child]:rounded-l-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-l-full","[&>*:last-child]:rounded-r-full"],t?.includes("rounded-xl")&&["[&>*:first-child]:rounded-l-xl","[&>*:last-child]:rounded-r-xl"],t?.includes("rounded-lg")&&["[&>*:first-child]:rounded-l-lg","[&>*:last-child]:rounded-r-lg"]],o&&["[&>*:not(:first-child)]:-mt-px","[&>*:first-child]:rounded-b-none","[&>*:last-child]:rounded-t-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-t-full","[&>*:last-child]:rounded-b-full"]],t),children:e});var Le=require("lucide-react"),ut=M(require("react")),L=M(require("react-aria-components"));var ke=M(require("react-aria-components"));var Te=require("react/jsx-runtime"),mt=({children:e,className:t,showArrow:o,...r})=>(0,Te.jsxs)(ke.Popover,{offset:8,...r,className:ke.composeRenderProps(t,n=>m("z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none transition-none",n)),children:[o&&(0,Te.jsx)(ke.OverlayArrow,{className:"group",children:(0,Te.jsx)("svg",{viewBox:"0 0 12 12",className:"block h-3 w-3 fill-bg-surface/80 stroke-border-subtle group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90","aria-hidden":"true",children:(0,Te.jsx)("path",{d:"M0 0 L6 6 L12 0"})})}),e]});var k=require("react/jsx-runtime");function Cr(e){let[t,o]=ut.default.Children.toArray(e.children).slice(0,2);return(0,k.jsxs)(L.MenuTrigger,{...e,children:[t,(0,k.jsx)(mt,{placement:e.placement,className:"min-w-35",children:o})]})}function Rr(e){let[t,o]=ut.default.Children.toArray(e.children).slice(0,2);return(0,k.jsxs)(L.SubmenuTrigger,{...e,children:[t,(0,k.jsx)(mt,{offset:-4,crossOffset:-4,children:o})]})}function F(e){return(0,k.jsx)(L.Menu,{...e,className:L.composeRenderProps(e.className,t=>m("p-1.5 outline-none max-h-[inherit] overflow-auto max-w-75",t))})}function wr(e){let t=e.textValue||(typeof e.children=="string"?e.children:void 0);return(0,k.jsx)(L.MenuItem,{...e,textValue:t,className:L.composeRenderProps(e.className,(o,{isFocused:r,isPressed:n,isDisabled:a})=>m("group relative flex flex-row items-center gap-2 px-2 py-1 rounded-lg outline-none cursor-default hover:cursor-pointer transition-none","text-text-main text-[12px]",{"bg-bg-surface-elevated text-primary-600 ring-1 ring-border-strong/5":r,"bg-bg-surface-elevanted":n,"opacity-40 grayscale pointer-events-none":a},o)),children:L.composeRenderProps(e.children,(o,{selectionMode:r,isSelected:n,hasSubmenu:a})=>(0,k.jsxs)(k.Fragment,{children:[r!=="none"&&(0,k.jsxs)("span",{className:"flex items-center size-4 shrink-0 justify-center",children:[n&&r==="multiple"&&(0,k.jsx)(Le.Check,{className:"size-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200"}),n&&r==="single"&&(0,k.jsx)(Le.Dot,{className:"size-5 text-primary-500 animate-in zoom-in-50 duration-200"})]}),(0,k.jsx)("div",{className:"flex flex-row w-full transition-colors items-center gap-2 py-1 px-1",children:o}),a&&(0,k.jsx)(Le.ChevronRight,{className:"size-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors"})]}))})}function Pr({title:e,...t}){return(0,k.jsxs)(L.MenuSection,{...t,className:m("flex flex-col gap-0.5",t.className),children:[e&&(0,k.jsx)(L.Header,{className:"px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none",children:e}),(0,k.jsx)(L.Collection,{items:t.items,children:t.children})]})}function Nr(e){return(0,k.jsx)(L.Separator,{...e,className:"mx-2 my-1.5 border-t border-border-subtle/50"})}F.Root=F;F.Item=wr;F.Trigger=Cr;F.SubTrigger=Rr;F.Section=Pr;F.Separator=Nr;var Fo=require("react/jsx-runtime");function B({className:e,variant:t="rect",...o}){return(0,Fo.jsx)("div",{className:m("animate-pulse bg-bg-muted",t==="circle"?"rounded-full":"rounded-md",e),...o})}var Tr=require("react-aria-components"),kr=require("react-aria-components");var S=require("react/jsx-runtime"),Lr=e=>{let[t,o]=(0,Wo.useState)(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)},handleOpenRaw:()=>{let a=new Blob([e],{type:"text/plain;charset=utf-8"}),i=URL.createObjectURL(a);window.open(i,"_blank")}}};function $o({content:e,mdxRaw:t,config:o}){let r=t||e||"",{copied:n,handleCopy:a,handleOpenRaw:i}=Lr(r),l=o!==!1,s=typeof o=="object"&&o.text||"Copy Markdown";return!l||!r?null:(0,S.jsx)("div",{className:"relative inline-flex z-100 flex-shrink-0 w-max translate-y-0 active:translate-y-px transition-transform duration-200",children:(0,S.jsxs)(pt,{className:"rounded-xl border border-border-subtle bg-bg-surface/40 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:shadow-lg hover:shadow-primary-500/5 group overflow-hidden",children:[(0,S.jsx)(me,{variant:"ghost",onPress:a,icon:n?(0,S.jsx)(se.Check,{size:16}):(0,S.jsx)(se.Copy,{size:16}),iconPosition:"left",className:m("px-5 py-2 bg-transparent text-[0.8125rem] font-semibold h-9 border-none shrink-0","text-text-main transition-all duration-300 hover:bg-primary-500/5",n&&"text-emerald-500 hover:bg-emerald-500/5"),children:n?"Copied!":s}),(0,S.jsxs)(F.Trigger,{placement:"bottom end",children:[(0,S.jsx)(me,{variant:"ghost",isIconOnly:!0,icon:(0,S.jsx)(se.ChevronDown,{size:14}),className:m("px-3.5 h-9 border-l border-border-subtle/50 text-text-muted rounded-none bg-transparent shrink-0","transition-all duration-300 hover:bg-primary-500/5 hover:text-primary-500")}),(0,S.jsxs)(F.Root,{className:"w-52",children:[(0,S.jsxs)(F.Item,{onAction:a,children:[(0,S.jsx)(se.Copy,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),(0,S.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"Copy Markdown"})]}),(0,S.jsxs)(F.Item,{onAction:i,children:[(0,S.jsx)(se.ExternalLink,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),(0,S.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"View as Markdown"})]})]})]})]})})}var C=require("react/jsx-runtime");function Go(){return(0,C.jsx)("div",{className:m("w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in"),children:(0,C.jsxs)("div",{className:"mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10",children:[(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(B,{className:"h-3 w-16"}),(0,C.jsx)(B,{className:"h-3 w-24"})]}),(0,C.jsx)(B,{className:"h-10 w-[60%] sm:h-12"}),(0,C.jsxs)("div",{className:"space-y-3",children:[(0,C.jsx)(B,{className:"h-4 w-full"}),(0,C.jsx)(B,{className:"h-4 w-[95%]"}),(0,C.jsx)(B,{className:"h-4 w-[40%]"})]}),(0,C.jsxs)("div",{className:"space-y-6 pt-4",children:[(0,C.jsx)(B,{className:"h-7 w-32"}),(0,C.jsxs)("div",{className:"space-y-3",children:[(0,C.jsx)(B,{className:"h-4 w-full"}),(0,C.jsx)(B,{className:"h-4 w-[98%]"}),(0,C.jsx)(B,{className:"h-4 w-[92%]"}),(0,C.jsx)(B,{className:"h-4 w-[60%]"})]})]}),(0,C.jsx)(B,{className:"h-32 w-full rounded-lg bg-bg-muted/50"}),(0,C.jsxs)("div",{className:"space-y-6 pt-4",children:[(0,C.jsx)(B,{className:"h-7 w-48"}),(0,C.jsxs)("div",{className:"space-y-3",children:[(0,C.jsx)(B,{className:"h-4 w-full"}),(0,C.jsx)(B,{className:"h-4 w-[85%]"})]})]})]})})}var G=require("react/jsx-runtime"),Ae=({level:e,id:t,children:o,...r})=>{let n=`h${e}`;return(0,G.jsxs)(n,{id:t,...r,className:"boltdocs-heading",children:[o,t&&(0,G.jsx)("a",{href:`#${t}`,className:"header-anchor","aria-label":"Anchor",children:(0,G.jsx)(_o.Link,{size:16})})]})},Uo={...ft,Loading:Go,h1:e=>(0,G.jsx)(Ae,{level:1,...e}),h2:e=>(0,G.jsx)(Ae,{level:2,...e}),h3:e=>(0,G.jsx)(Ae,{level:3,...e}),h4:e=>(0,G.jsx)(Ae,{level:4,...e}),h5:e=>(0,G.jsx)(Ae,{level:5,...e}),h6:e=>(0,G.jsx)(Ae,{level:6,...e}),pre:e=>(0,G.jsx)(le,{...e,children:e.children})};var jo=M(require("virtual:boltdocs-mdx-components"));var qo=require("react-router-dom");var h=require("react/jsx-runtime");function Mr(){let{currentLocale:e,config:t}=Me();return(0,V.useEffect)(()=>{if(!t.i18n)return;let o=t.i18n.localeConfigs?.[e];document.documentElement.lang=o?.htmlLang||e||"en",document.documentElement.dir=o?.direction||"ltr"},[e,t.i18n]),null}function Sr(){let e=(0,qo.useLocation)(),{config:t}=Me(),o=te(i=>i.setLocale),r=te(i=>i.setVersion),n=te(i=>i.currentLocale),a=te(i=>i.currentVersion);return(0,V.useEffect)(()=>{let i=e.pathname.split("/").filter(Boolean),l=0,s=t.versions?.defaultVersion,c=t.i18n?.defaultLocale;if(i[l]==="docs"&&l++,t.versions&&i.length>l){let d=t.versions.versions.find(p=>p.path===i[l]);d&&(s=d.path,l++)}t.i18n&&i.length>l&&t.i18n.locales[i[l]]?c=i[l]:t.i18n&&i.length===0&&(c=n||t.i18n.defaultLocale),c!==n&&o(c),s!==a&&r(s)},[e.pathname,t,o,r,n,a]),null}function Jo({initialRoutes:e,initialConfig:t,docsDirName:o,modules:r,hot:n,homePage:a,externalPages:i,externalLayout:l,components:s={}}){let[c,d]=(0,V.useState)(e),[p,g]=(0,V.useState)(t),x=i||{},R=l||gt.default,w=(0,V.useMemo)(()=>c.filter(b=>!(a&&(b.path==="/"||b.path===""))&&!x[b.path===""?"/":b.path]).map(b=>{let _=Object.keys(r).find(U=>U===`/${o}/${b.filePath}`||U.endsWith(`/${o}/${b.filePath}`)||U.endsWith(`/${o}\\${b.filePath.replace(/\\/g,"/")}`)),ee=_?r[_]:null;return{...b,Component:V.default.lazy(async()=>ee?await ee():{default:rt})}}),[c,r,o,a,x]);(0,V.useEffect)(()=>{n&&(n.on("boltdocs:routes-update",b=>{d(b)}),n.on("boltdocs:config-update",b=>{g(b)}))},[n]);let f=(0,V.useMemo)(()=>({...Uo,...jo.default,...s}),[s]),H=f.Loading;return(0,h.jsx)(St,{children:(0,h.jsx)(jt,{components:f,children:(0,h.jsx)(Qe.Provider,{value:p,children:(0,h.jsx)(zt,{children:(0,h.jsxs)(Ct,{routes:c,modules:r,children:[(0,h.jsx)(Ft,{}),(0,h.jsx)(Sr,{}),(0,h.jsx)(Mr,{}),(0,h.jsxs)(K.Routes,{children:[(0,h.jsx)(K.Route,{element:(0,h.jsx)(Gt,{}),children:w.map(b=>(0,h.jsx)(K.Route,{path:b.path===""?"/":b.path,element:(0,h.jsx)(V.default.Suspense,{fallback:(0,h.jsx)(H,{}),children:(0,h.jsx)(Jt,{Component:b.Component})})},b.path))},"docs-layout"),a&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(K.Route,{path:"/",element:(0,h.jsx)(R,{children:(0,h.jsx)(a,{})})}),p.i18n&&Object.keys(p.i18n.locales).map(b=>(0,h.jsx)(K.Route,{path:`/${b}`,element:(0,h.jsx)(R,{children:(0,h.jsx)(a,{})})},`home-${b}`))]}),Object.entries(x).map(([b,_])=>{let ee=b==="/"?"":b;return(0,h.jsxs)(V.default.Fragment,{children:[(0,h.jsx)(K.Route,{path:b,element:(0,h.jsx)(R,{children:(0,h.jsx)(_,{})})}),p.i18n&&Object.keys(p.i18n.locales).map(U=>(0,h.jsx)(K.Route,{path:`/${U}${ee}`,element:(0,h.jsx)(R,{children:(0,h.jsx)(_,{})})},`${b}-${U}`))]},b)}),(0,h.jsx)(K.Route,{path:"*",element:(0,h.jsx)(gt.default,{children:(0,h.jsx)(rt,{})})})]})]})})})})})}var Ze=require("react/jsx-runtime");async function Br(e){let{path:t,routes:o,config:r,modules:n,homePage:a,externalPages:i,docsDirName:l}=e,s={};for(let[d,p]of Object.entries(n))s[d]=()=>Promise.resolve(p);return Ko.default.renderToString((0,Ze.jsx)(Xo.default.StrictMode,{children:(0,Ze.jsx)(Yo.StaticRouter,{location:t,children:(0,Ze.jsx)(Jo,{initialRoutes:o,initialConfig:r,docsDirName:l,modules:s,homePage:a,externalPages:i})})}))}0&&(module.exports={render});
|
|
1
|
+
"use strict";var qo=Object.create;var He=Object.defineProperty;var Jo=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var Ko=Object.getPrototypeOf,Yo=Object.prototype.hasOwnProperty;var gt=(e,t)=>{for(var o in t)He(e,o,{get:t[o],enumerable:!0})},ht=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Xo(t))!Yo.call(e,n)&&n!==o&&He(e,n,{get:()=>t[n],enumerable:!(r=Jo(t,n))||r.enumerable});return e};var A=(e,t,o)=>(o=e!=null?qo(Ko(e)):{},ht(t||!e||!e.__esModule?He(o,"default",{value:e,enumerable:!0}):o,e)),jo=e=>ht(He({},"__esModule",{value:!0}),e);var Tr={};gt(Tr,{render:()=>Nr});module.exports=jo(Tr);var Go=A(require("react")),_o=A(require("react-dom/server")),Uo=require("react-router-dom/server");var V=A(require("react")),Rr=A(require("react-dom/client")),X=require("react-router-dom");var Tt=require("lucide-react");var et=A(require("react")),Pt=require("react-aria-components"),Nt=require("react-router-dom");var Ie=require("react"),Ze=(0,Ie.createContext)(null);function se(){let e=(0,Ie.use)(Ze);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}var Ct=require("react-router-dom");var ae=require("react"),vt=require("react/jsx-runtime"),xt=(0,ae.createContext)({preload:()=>{},routes:[]});function ze(){return(0,ae.use)(xt)}function bt({routes:e,modules:t,children:o}){let r=(0,ae.useRef)(null),n=(0,ae.useCallback)(a=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{let i=a.split("#")[0].split("?")[0],l=e.find(s=>s.path===i||i==="/"&&s.path==="");if(l?.filePath){let s=Object.keys(t).find(c=>c.endsWith("/"+l.filePath));s&&t[s]().catch(c=>{console.error(`[boltdocs] Failed to preload route ${a}:`,c)})}},100)},[e,t]);return(0,vt.jsx)(xt.Provider,{value:{preload:n,routes:e},children:o})}var yt=require("zustand"),De=require("zustand/middleware"),Q=(0,yt.create)()((0,De.persist)(e=>({currentLocale:void 0,currentVersion:void 0,hasHydrated:!1,setLocale:t=>e({currentLocale:t}),setVersion:t=>e({currentVersion:t}),setHasHydrated:t=>e({hasHydrated:t})}),{name:"boltdocs-storage",storage:(0,De.createJSONStorage)(()=>localStorage),partialize:e=>({currentLocale:e.currentLocale,currentVersion:e.currentVersion}),onRehydrateStorage:()=>e=>{e?.setHasHydrated(!0)}}));function Le(){let{routes:e}=ze(),t=se(),o=(0,Ct.useLocation)(),r=Q(g=>g.currentLocale),n=Q(g=>g.currentVersion),a=Q(g=>g.hasHydrated),i=e.find(g=>g.path===o.pathname),l=t.i18n?i?.locale||(a?r:void 0)||t.i18n.defaultLocale:void 0,s=t.versions?i?.version||(a?n:void 0)||t.versions.defaultVersion:void 0,c=e.filter(g=>{let W=t.i18n?(g.locale||t.i18n.defaultLocale)===l:!0,h=t.versions?(g.version||t.versions.defaultVersion)===s:!0;if(!(W&&h))return!1;let F=t.i18n;if(F){let ce=!!i?.locale,Z=!!g.locale;if(e.some(Ve=>Ve!==g&&Ve.filePath===g.filePath&&Ve.version===g.version&&(Ve.locale||F.defaultLocale)===(g.locale||F.defaultLocale))&&ce!==Z)return!1}return!0}),p=t.i18n?.localeConfigs?.[l]?.label||t.i18n?.locales[l]||l,b=t.versions?.versions.find(g=>g.path===s)?.label||s,w=t.i18n?Object.entries(t.i18n.locales).map(([g,W])=>{let h=t.i18n?.localeConfigs?.[g];return{key:g,label:h?.label||W,isCurrent:g===l}}):[],L=t.versions?t.versions.versions.map(g=>({key:g.path,label:g.label,isCurrent:g.path===s})):[];return{routes:c,allRoutes:e,currentRoute:i,currentLocale:l,currentLocaleLabel:p,availableLocales:w,currentVersion:s,currentVersionLabel:b,availableVersions:L,config:t}}function Qe(e){let t=se(),{currentLocale:o,currentVersion:r}=Le();if(!t||typeof e!="string"||e.startsWith("http")||e.startsWith("//"))return e;let n=t.i18n,a=t.versions;if(!n&&!a)return e;let i=e.startsWith("/docs"),l=e.split("/").filter(Boolean),s=0;l[s]==="docs"&&s++,a&&l.length>s&&a.versions.find(b=>b.path===l[s])&&s++,n&&l.length>s&&n.locales[l[s]]&&s++;let c=l.slice(s),d=[];i&&(d.push("docs"),a&&r&&d.push(r)),n&&o&&o!==n.defaultLocale&&d.push(o),d.push(...c);let p=`/${d.join("/")}`;return p.length>1&&p.endsWith("/")?p.slice(0,-1):p||"/"}var Rt=require("clsx"),wt=require("tailwind-merge");function m(...e){return(0,wt.twMerge)((0,Rt.clsx)(e))}var tt=require("react/jsx-runtime"),de=et.default.forwardRef((e,t)=>{let{href:o,prefetch:r="hover",onMouseEnter:n,onFocus:a,...i}=e,l=Qe(o??""),{preload:s}=ze();return(0,tt.jsx)(Pt.Link,{...i,ref:t,href:l,onMouseEnter:p=>{n?.(p),r==="hover"&&typeof l=="string"&&l.startsWith("/")&&s(l)},onFocus:p=>{a?.(p),r==="hover"&&typeof l=="string"&&l.startsWith("/")&&s(l)}})});de.displayName="Link";var Zo=et.default.forwardRef((e,t)=>{let{href:o,end:r=!1,className:n,children:a,...i}=e,l=(0,Nt.useLocation)(),s=Qe(o??""),c=r?l.pathname===s:l.pathname.startsWith(s),d=typeof n=="function"?n({isActive:c}):m(n,c&&"active"),p=typeof a=="function"?a({isActive:c}):a;return(0,tt.jsx)(de,{...i,ref:t,href:o,className:d,children:p})});Zo.displayName="NavLink";var ee=require("react/jsx-runtime");function ot(){return(0,ee.jsx)("div",{className:"flex items-center justify-center min-h-[60vh] text-center",children:(0,ee.jsxs)("div",{className:"space-y-4",children:[(0,ee.jsx)("span",{className:"text-8xl font-black tracking-tighter text-primary-500/20",children:"404"}),(0,ee.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Page Not Found"}),(0,ee.jsx)("p",{className:"text-sm text-text-muted max-w-sm mx-auto",children:"The page you're looking for doesn't exist or has been moved."}),(0,ee.jsxs)(de,{href:"/",className:"inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white outline-none transition-all hover:brightness-110 hover:shadow-lg focus-visible:ring-2 focus-visible:ring-primary-500/30",children:[(0,ee.jsx)(Tt.ArrowLeft,{size:16})," Go to Home"]})]})})}var U=require("react"),Mt=require("react/jsx-runtime"),kt=(0,U.createContext)(void 0);function Lt({children:e}){let[t,o]=(0,U.useState)("system"),[r,n]=(0,U.useState)("dark"),[a,i]=(0,U.useState)(!1);(0,U.useEffect)(()=>{i(!0);let s=localStorage.getItem("boltdocs-theme"),c=s==="light"||s==="dark"||s==="system"?s:"system";o(c);let d=window.matchMedia("(prefers-color-scheme: dark)");((b,w)=>{n(b==="system"?w?"dark":"light":b)})(c,d.matches);let f=b=>{n(w=>(localStorage.getItem("boltdocs-theme")||"system")==="system"?b.matches?"dark":"light":w)};return d.addEventListener("change",f),()=>d.removeEventListener("change",f)},[]),(0,U.useEffect)(()=>{if(!a)return;let s=window.matchMedia("(prefers-color-scheme: dark)").matches,c=t==="system"?s?"dark":"light":t;n(c);let d=document.documentElement;c==="light"?(d.classList.add("theme-light"),d.dataset.theme="light"):(d.classList.remove("theme-light"),d.dataset.theme="dark")},[t,a]);let l=s=>{o(s),localStorage.setItem("boltdocs-theme",s)};return(0,Mt.jsx)(kt.Provider,{value:{theme:t,resolvedTheme:r,setTheme:l},children:e})}function At(){let e=(0,U.use)(kt);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}var ft=A(require("virtual:boltdocs-layout"));var Bt=require("react"),Et=require("react-aria-components"),Oe=require("react-router-dom"),Vt=require("react/jsx-runtime");function St({children:e}){let t=(0,Oe.useNavigate)();return(0,Vt.jsx)(Et.RouterProvider,{navigate:(o,r)=>{(0,Bt.startTransition)(()=>{t(o,r)})},useHref:Oe.useHref,children:e})}var Ht=require("react"),It=require("react-router-dom");function zt(){let{pathname:e,hash:t}=(0,It.useLocation)();return(0,Ht.useLayoutEffect)(()=>{let o=document.querySelector(".boltdocs-content")||window,r=()=>o===window?window.scrollY:o.scrollTop,n=(a,i="auto")=>{o===window?window.scrollTo({top:a,behavior:i}):o.scrollTo({top:a,behavior:i})};if(t){let a=t.replace("#",""),i=document.getElementById(a);if(i){let s=o===window?0:o.getBoundingClientRect().top,p=i.getBoundingClientRect().top-s-80+r();n(p,"smooth");return}}n(0)},[e,t]),null}var Dt=require("react-router-dom"),Ot=A(require("virtual:boltdocs-layout")),rt=require("react/jsx-runtime");function Wt(){return(0,rt.jsx)(Ot.default,{children:(0,rt.jsx)(Dt.Outlet,{})})}var We=require("react"),_t=require("react/jsx-runtime"),Ft=(0,We.createContext)({});function $t(){return(0,We.use)(Ft)}function Gt({components:e,children:t}){return(0,_t.jsx)(Ft.Provider,{value:e,children:t})}var qt=require("react/jsx-runtime");function Ut({Component:e}){let t=$t();return(0,qt.jsx)(e,{components:t})}var Do=require("lucide-react");var ut={};gt(ut,{Admonition:()=>re,Badge:()=>no,Button:()=>Xt,Card:()=>co,Cards:()=>lo,Caution:()=>vo,CodeBlock:()=>ie,ComponentPreview:()=>Eo,ComponentProps:()=>Mo,CopyMarkdown:()=>Io,Danger:()=>ho,Field:()=>No,FileTree:()=>Ro,Image:()=>Lo,Important:()=>bo,InfoBox:()=>xo,Link:()=>To,List:()=>yo,Note:()=>uo,Tab:()=>eo,Table:()=>Po,Tabs:()=>to,Tip:()=>fo,Video:()=>oo,Warning:()=>go});var $e=A(require("react-aria-components"));var Jt=require("class-variance-authority"),q=require("react/jsx-runtime"),Fe=(0,Jt.cva)("flex flex-row items-center justify-center w-auto font-semibold tracking-tight no-underline whitespace-nowrap select-none outline-none transition-all duration-200 cursor-pointer pressed:scale-[0.97] hover:-translate-y-px leading-none",{variants:{variant:{primary:"bg-primary-500 text-white shadow-md hover:brightness-110 hover:shadow-lg",secondary:"bg-bg-surface text-text-main border border-border-subtle hover:bg-bg-muted hover:border-border-strong",outline:"bg-transparent text-text-main border border-border-strong hover:bg-bg-surface hover:border-primary-500",ghost:"bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-main",danger:"bg-[var(--color-danger-500)]/10 text-[var(--color-danger-500)] border border-[var(--color-danger-500)]/20 hover:bg-[var(--color-danger-500)]/15",success:"bg-[var(--color-success-500)]/10 text-[var(--color-success-500)] border border-[var(--color-success-500)]/20 hover:bg-[var(--color-success-500)]/15",warning:"bg-[var(--color-warning-500)]/10 text-[var(--color-warning-500)] border border-[var(--color-warning-500)]/20 hover:bg-[var(--color-warning-500)]/15",info:"bg-[var(--color-info-500)]/10 text-[var(--color-info-500)] border border-[var(--color-info-500)]/20 hover:bg-[var(--color-info-500)]/15",subtle:"bg-primary-500/10 text-primary-500 hover:bg-primary-500/20",link:"bg-transparent text-primary-500 !p-0 !min-h-0 hover:underline"},size:{sm:"min-h-8 px-3.5 text-[0.8125rem] gap-1.5",md:"min-h-10 px-5 text-[0.9375rem] gap-2",lg:"min-h-12 px-7 text-[1.05rem] gap-2.5"},rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},iconSize:{sm:"w-8 h-8 p-0",md:"w-10 h-10 p-0",lg:"w-12 h-12 p-0"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:null}},defaultVariants:{variant:"primary",size:"md",rounded:"md"}}),pe=({href:e,icon:t,iconPosition:o="left",isIconOnly:r,children:n,className:a,variant:i,size:l,rounded:s,iconSize:c,disabled:d,...p})=>{let f=r||!n&&!!t,b=f?(0,q.jsx)("span",{className:"inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]",children:t}):(0,q.jsxs)(q.Fragment,{children:[t&&o==="left"&&(0,q.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t}),(0,q.jsx)("span",{className:"flex items-center",children:n}),t&&o==="right"&&(0,q.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t})]});return e?(0,q.jsx)($e.Link,{href:e,className:m(Fe({variant:i,size:l,rounded:s,iconSize:f?c:void 0,disabled:d}),a),...p,children:b}):(0,q.jsx)($e.Button,{className:m(Fe({variant:i,size:l,rounded:s,iconSize:f?c:void 0,disabled:d}),a),...p,children:b})};var Kt=require("react/jsx-runtime"),Xt=({className:e,variant:t,size:o,rounded:r,iconSize:n,disabled:a,...i})=>(0,Kt.jsx)(pe,{className:m("group",Fe({variant:t,size:o,rounded:r,iconSize:n,disabled:a,className:e})),...i});var nt=A(require("react-aria-components")),xe=require("lucide-react");var Yt=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{let t=document.createElement("textarea");return t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),!0}};var K=require("react");function jt(e){let{title:t}=e,[o,r]=(0,K.useState)(!1),[n,a]=(0,K.useState)(!1),[i,l]=(0,K.useState)(!1),s=(0,K.useRef)(null),c=se(),d=(0,K.useCallback)(async()=>{let p=s.current?.textContent??"";Yt(p),r(!0),setTimeout(()=>r(!1),2e3)},[]);return(0,K.useEffect)(()=>{let p=s.current?.textContent?.length??0;l(p>120)},[e.children,e.highlightedHtml]),{copied:o,isExpanded:n,setIsExpanded:a,isExpandable:i,preRef:s,handleCopy:d,shouldTruncate:i&&!n}}var v=require("react/jsx-runtime");function te(e){let{size:t=20,...o}=e;return{...o,width:t,height:t}}var Ge=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"TypeScript"}),(0,v.jsx)("path",{fill:"#2563EB",d:"M3.234 9.093V7.318h8.363v1.775H8.479V17.5H6.352V9.093H3.234zm15.263 1.153c-.04-.4-.21-.712-.512-.934-.301-.222-.71-.333-1.228-.333-.351 0-.648.05-.89.149-.242.096-.427.23-.557.403a.969.969 0 0 0-.189.586.838.838 0 0 0 .115.477c.086.136.204.254.353.353.149.097.321.181.517.254.195.07.404.13.626.179l.915.219c.444.1.852.232 1.223.397.371.166.693.37.965.612.271.242.482.527.631.855.152.328.23.704.234 1.129-.004.623-.163 1.163-.478 1.62-.311.454-.762.807-1.352 1.06-.587.248-1.294.372-2.123.372-.822 0-1.538-.126-2.147-.378-.607-.252-1.081-.624-1.422-1.118-.338-.497-.516-1.112-.532-1.845h2.083c.023.342.12.627.293.855.176.226.41.397.701.513a2.8 2.8 0 0 0 1 .168c.364 0 .68-.053.949-.159a1.45 1.45 0 0 0 .631-.442c.15-.189.224-.406.224-.651a.846.846 0 0 0-.204-.577c-.132-.156-.328-.288-.586-.398a5.964 5.964 0 0 0-.94-.298l-1.109-.278c-.858-.21-1.536-.536-2.033-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.491-1.615.335-.461.794-.82 1.377-1.08.584-.258 1.247-.387 1.99-.387.755 0 1.414.13 1.978.388.567.258 1.007.618 1.322 1.079.315.46.477.994.488 1.6h-2.064z"})]}),_e=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"JavaScript"}),(0,v.jsx)("path",{fill:"#F59E0B",d:"M8.383 7.318h2.127v7.1c0 .656-.147 1.226-.442 1.71a2.924 2.924 0 01-1.218 1.118c-.52.262-1.125.393-1.815.393-.613 0-1.17-.107-1.67-.323a2.67 2.67 0 01-1.183-.994c-.292-.448-.436-1.01-.433-1.686h2.143c.006.269.061.5.164.691.106.19.25.335.432.438.186.1.405.15.657.15.265 0 .488-.057.67-.17.186-.116.327-.285.423-.507.096-.222.145-.496.145-.82v-7.1zm9.43 2.928c-.04-.4-.21-.712-.511-.934-.302-.222-.711-.333-1.228-.333-.352 0-.648.05-.89.149-.242.096-.428.23-.557.403a.969.969 0 00-.19.586.838.838 0 00.115.477c.087.136.204.254.353.353.15.097.322.181.517.254.196.07.405.13.627.179l.915.219c.444.1.851.232 1.223.397.37.166.692.37.964.612s.482.527.631.855a2.7 2.7 0 01.234 1.129c-.003.623-.162 1.163-.477 1.62-.312.454-.763.807-1.353 1.06-.586.248-1.294.372-2.122.372-.822 0-1.538-.126-2.148-.378-.607-.252-1.08-.624-1.422-1.118-.338-.497-.515-1.112-.532-1.845h2.083c.023.342.121.627.293.855.176.226.41.397.702.513.295.112.628.168.999.168.364 0 .68-.053.95-.159.271-.106.482-.253.63-.442.15-.189.224-.406.224-.651a.846.846 0 00-.203-.577c-.133-.156-.329-.288-.587-.398a5.964 5.964 0 00-.94-.298l-1.108-.278c-.859-.21-1.537-.536-2.034-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.492-1.615.334-.461.793-.82 1.377-1.08.583-.258 1.246-.387 1.989-.387.755 0 1.415.13 1.978.388.567.258 1.008.618 1.323 1.079.314.46.477.994.487 1.6h-2.063z"})]}),Ue=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"JSON"}),(0,v.jsx)("path",{fill:"#F59E0B",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),qe=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"CSS"}),(0,v.jsx)("path",{fill:"#0EA5E9",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),Je=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"HTML"}),(0,v.jsx)("path",{fill:"#EA580C",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]});var me=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"React"}),(0,v.jsx)("path",{fill:"#0E8ADC",d:"M12 13.677a1.677 1.677 0 100-3.354 1.677 1.677 0 000 3.354z"}),(0,v.jsx)("path",{stroke:"#0E8ADC",d:"M12 15.436c4.97 0 9-1.538 9-3.436s-4.03-3.436-9-3.436S3 10.102 3 12s4.03 3.436 9 3.436z"}),(0,v.jsx)("path",{stroke:"#0E8ADC",d:"M9.024 13.718c2.485 4.305 5.832 7.025 7.476 6.076 1.644-.949.961-5.208-1.524-9.512C12.491 5.977 9.144 3.257 7.5 4.206c-1.644.949-.961 5.208 1.524 9.512z"}),(0,v.jsx)("path",{stroke:"#0E8ADC",d:"M9.024 10.282c-2.485 4.304-3.168 8.563-1.524 9.512 1.644.95 4.99-1.771 7.476-6.076 2.485-4.304 3.168-8.563 1.524-9.512-1.644-.95-4.99 1.771-7.476 6.076z"})]}),ue=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"Markdown"}),(0,v.jsx)("path",{fill:"#60A5FA",d:"M3 15.714V8h2.323l2.322 2.836L9.968 8h2.322v7.714H9.968V11.29l-2.323 2.836-2.322-2.836v4.424H3zm14.516 0l-3.484-3.743h2.323V8h2.322v3.97H21l-3.484 3.744z"})]}),fe=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...te(e),children:[(0,v.jsx)("title",{children:"Shell"}),(0,v.jsx)("path",{stroke:"#14B8A6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.336 17l6-6-6-6M12.336 19h8"})]}),ge=e=>(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...te(e),children:[(0,v.jsx)("title",{children:"YAML"}),(0,v.jsx)("path",{fill:"#A78BFA",d:"M6.533 5.864h2.755l2.654 5.011h.113l2.654-5.011h2.756l-4.245 7.522V17.5h-2.443v-4.114L6.533 5.864z"})]});var he=A(require("react-aria-components"));var $=require("react/jsx-runtime"),Zt=({className:e,children:t,...o})=>(0,$.jsx)(he.Tooltip,{...o,offset:8,className:r=>m("group z-50 overflow-visible rounded-md bg-bg-surface/90 px-2.5 py-1.5 text-xs font-medium text-text-main shadow-lg backdrop-blur-md ring-1 ring-border-subtle outline-hidden select-none","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95 data-entering:duration-100","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95 data-exiting:duration-75","data-[placement=top]:slide-in-from-bottom-1","data-[placement=bottom]:slide-in-from-top-1","data-[placement=left]:slide-in-from-right-1","data-[placement=right]:slide-in-from-left-1",typeof e=="function"?e(r):e),children:r=>(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(he.OverlayArrow,{children:(0,$.jsxs)("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90",children:[(0,$.jsx)("title",{children:"Arrow"}),(0,$.jsx)("path",{d:"M0 0 L4 4 L8 0"})]})}),typeof t=="function"?t(r):t]})}),Ae=({content:e,children:t,delay:o=500,closeDelay:r=0,...n})=>(0,$.jsxs)(he.TooltipTrigger,{delay:o,closeDelay:r,children:[t,(0,$.jsx)(Zt,{...n,children:e})]});Ae.Root=Ae;Ae.Content=Zt;var B=require("react/jsx-runtime"),Qo={ts:Ge,tsx:me,js:_e,jsx:me,json:Ue,css:qe,html:Je,md:ue,mdx:ue,bash:fe,sh:fe,yaml:ge,yml:ge};function ie(e){let{children:t,hideCopy:o=!1,highlightedHtml:r,"data-highlighted-html":n,title:a,"data-lang":i,plain:l=!1,...s}=e,c=r||n,d=se(),p=e.lang||i||"",{copied:f,isExpanded:b,setIsExpanded:w,isExpandable:L,preRef:g,handleCopy:W,shouldTruncate:h}=jt(e),F=Qo[p];return(0,B.jsxs)("div",{className:m("group relative overflow-hidden bg-(--color-code-bg)","contain-layout contain-paint",{"my-6 rounded-lg border border-border-subtle":!l,"[&>pre]:max-h-62.5 [&>pre]:overflow-hidden":h},e.className),children:[a&&(0,B.jsxs)("div",{className:"flex items-center gap-2 border-b border-border-subtle bg-bg-surface/50 px-4 py-2 text-[13px] font-medium text-text-muted",children:[F?(0,B.jsx)(F,{size:14}):(0,B.jsx)(xe.File,{size:14,className:"opacity-60"}),(0,B.jsx)("span",{children:a})]}),(0,B.jsx)("div",{className:"absolute top-3 right-4 z-50 flex items-center gap-2 transition-all duration-300 opacity-0 group-hover:opacity-100",children:!o&&(0,B.jsx)(Ae,{content:f?"Copied!":"Copy code",children:(0,B.jsx)(nt.Button,{onPress:W,className:m("grid place-items-center size-8 bg-transparent outline-none cursor-pointer transition-all duration-200 hover:scale-110 active:scale-95 [&>svg]:size-4 [&>svg]:stroke-2",f?"text-emerald-400":"text-text-muted hover:text-text-main"),"aria-label":"Copy code",children:f?(0,B.jsx)(xe.Check,{size:20}):(0,B.jsx)(xe.Copy,{size:20})})})}),c?(0,B.jsx)("div",{ref:g,className:"shiki-wrapper [&>pre]:m-0! [&>pre]:rounded-none! [&>pre]:border-none! [&>pre]:bg-inherit! [&>pre>code]:grid! [&>pre>code]:p-5! [&>.shiki.shiki-themes]:bg-transparent!",dangerouslySetInnerHTML:{__html:c}}):(0,B.jsx)("pre",{ref:g,className:"m-0! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7]",...s,children:t}),L&&(0,B.jsx)("div",{className:m(h?"absolute bottom-0 inset-x-0 h-24 bg-linear-to-t from-(--color-code-bg) to-transparent flex items-end justify-center pb-4 z-10":"relative flex justify-center py-4"),children:(0,B.jsx)(nt.Button,{onPress:()=>w(!b),className:"rounded-full bg-bg-surface border border-border-subtle px-5 py-2 text-[0.8125rem] font-medium text-text-main outline-none cursor-pointer transition-all hover:bg-border-subtle hover:-translate-y-px backdrop-blur-md",children:b?"Show less":"Expand code"})})]})}var be=require("react"),le=A(require("react-aria-components"));var oe=require("react");function Qt({initialIndex:e=0,tabs:t}){let o=t[e]?.props.disabled?t.findIndex(c=>!c.props.disabled):e,[r,n]=(0,oe.useState)(o===-1?0:o),a=(0,oe.useRef)([]),[i,l]=(0,oe.useState)({opacity:0,transform:"translateX(0)",width:0});(0,oe.useEffect)(()=>{let c=a.current[r];c&&l({opacity:1,width:c.offsetWidth,transform:`translateX(${c.offsetLeft}px)`})},[r,t]);let s=(0,oe.useCallback)(c=>{let d=0;if(c.key==="ArrowRight"?d=1:c.key==="ArrowLeft"&&(d=-1),d!==0){let p=(r+d+t.length)%t.length;for(;t[p].props.disabled&&p!==r;)p=(p+d+t.length)%t.length;p!==r&&!t[p].props.disabled&&(n(p),a.current[p]?.focus())}},[r,t]);return{active:r,setActive:n,tabRefs:a,indicatorStyle:i,handleKeyDown:s}}var st=require("class-variance-authority"),H=require("react/jsx-runtime"),er=(0,st.cva)("relative flex items-center border-b border-border-subtle gap-1 overflow-x-auto no-scrollbar",{variants:{size:{default:"px-0",compact:"px-2"}},defaultVariants:{size:"default"}}),tr=(0,st.cva)("flex items-center gap-2 px-4 py-2.5 text-sm font-medium outline-none transition-all duration-200 cursor-pointer bg-transparent border-none select-none whitespace-nowrap",{variants:{isActive:{true:"text-primary-500",false:"text-text-muted hover:text-text-main"},isDisabled:{true:"opacity-40 pointer-events-none",false:""}},defaultVariants:{isActive:!1,isDisabled:!1}});function eo({children:e}){let t=typeof e=="string"?(0,H.jsx)(ie,{className:"language-bash",children:(0,H.jsx)("code",{children:e.trim()})}):e;return(0,H.jsx)("div",{className:"py-4",children:t})}function to({defaultIndex:e=0,children:t}){let o=(0,be.useMemo)(()=>be.Children.toArray(t).filter(l=>(0,be.isValidElement)(l)&&l.props?.label),[t]),{active:r,setActive:n,tabRefs:a,indicatorStyle:i}=Qt({initialIndex:e,tabs:o});return(0,H.jsx)("div",{className:"my-8 w-full group/tabs",children:(0,H.jsxs)(le.Tabs,{selectedKey:r.toString(),onSelectionChange:l=>n(Number(l)),className:"w-full",children:[(0,H.jsxs)(le.TabList,{"aria-label":"Content Tabs",className:m(er()),children:[o.map((l,s)=>{let{label:c,icon:d,disabled:p}=l.props,f=s.toString();return(0,H.jsxs)(le.Tab,{id:f,isDisabled:p,ref:b=>{a.current[s]=b},className:({isSelected:b,isDisabled:w})=>m(tr({isActive:b,isDisabled:w})),children:[!!d&&(0,H.jsx)("span",{className:"shrink-0 [&>svg]:w-4 [&>svg]:h-4",children:d}),(0,H.jsx)("span",{children:c})]},f)}),(0,H.jsx)("div",{className:"absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300 ease-in-out pointer-events-none",style:i,"aria-hidden":"true"})]}),o.map((l,s)=>(0,H.jsx)(le.TabPanel,{id:s.toString(),children:o[s]},s))]})})}var ve=require("react"),Me=require("react/jsx-runtime");function oo({src:e,poster:t,alt:o,children:r,controls:n,preload:a="metadata",...i}){let l=(0,ve.useRef)(null),[s,c]=(0,ve.useState)(!1);return(0,ve.useEffect)(()=>{let d=l.current;if(!d)return;let p=new IntersectionObserver(([f])=>{f.isIntersecting&&(c(!0),p.disconnect())},{rootMargin:"200px"});return p.observe(d),()=>p.disconnect()},[]),(0,Me.jsx)("div",{ref:l,className:"my-6 overflow-hidden rounded-lg border border-border-subtle",children:s?(0,Me.jsxs)("video",{className:"block w-full h-auto",src:e,poster:t,controls:!0,preload:a,playsInline:!0,...i,children:[r,"Your browser does not support the video tag."]}):(0,Me.jsx)("div",{className:"aspect-video bg-bg-surface animate-pulse",role:"img","aria-label":o||"Video"})})}var ro=require("class-variance-authority"),so=require("react/jsx-runtime"),or=(0,ro.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold tracking-tight",{variants:{variant:{default:"bg-bg-surface text-text-muted border-border-subtle",primary:"bg-primary-500/15 text-primary-400 border-primary-500/20",success:"bg-emerald-500/15 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/15 text-amber-400 border-amber-500/20",danger:"bg-red-500/15 text-red-400 border-red-500/20",info:"bg-sky-500/15 text-sky-400 border-sky-500/20"}},defaultVariants:{variant:"default"}});function no({variant:e="default",children:t,className:o="",...r}){return(0,so.jsx)("span",{className:m(or({variant:e}),o),...r,children:t})}var Be=require("react"),ao=A(require("react-aria-components"));var io=require("class-variance-authority"),I=require("react/jsx-runtime"),rr=(0,io.cva)("grid gap-4 my-6",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"}},defaultVariants:{cols:3}});function lo({cols:e=3,children:t,className:o="",...r}){return(0,I.jsx)("div",{className:m(rr({cols:e}),o),...r,children:t})}function co({title:e,icon:t,href:o,children:r,className:n="",...a}){let i=(0,Be.useRef)(null),l=(0,Be.useRef)(null),s=(0,Be.useCallback)(p=>{let f=i.current||l.current;if(!f)return;let{left:b,top:w}=f.getBoundingClientRect();f.style.setProperty("--x",`${p.clientX-b}px`),f.style.setProperty("--y",`${p.clientY-w}px`)},[]),c=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"pointer-events-none absolute -inset-px rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:"radial-gradient(400px circle at var(--x) var(--y), color-mix(in oklch, var(--color-primary-500), transparent 90%), transparent 80%)"}}),t&&(0,I.jsx)("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-primary-500/10 text-primary-400 text-lg transition-transform duration-300 group-hover:scale-105 group-hover:-rotate-3",children:t}),(0,I.jsxs)("div",{className:"space-y-1.5",children:[e&&(0,I.jsx)("h3",{className:"text-sm font-bold text-text-main",children:e}),r&&(0,I.jsx)("div",{className:"text-sm text-text-muted leading-relaxed",children:r})]})]}),d=m("group relative block rounded-xl border border-border-subtle bg-bg-surface p-5 outline-none overflow-hidden","transition-all duration-200 hover:border-primary-500/40 hover:shadow-lg hover:shadow-primary-500/5","focus-visible:ring-2 focus-visible:ring-primary-500/30",n);return o?(0,I.jsx)(ao.Link,{ref:l,href:o,className:m(d,"no-underline cursor-pointer"),onMouseMove:s,...a,children:c}):(0,I.jsx)("div",{ref:i,role:"presentation",className:d,onMouseMove:s,...a,children:c})}var S=require("lucide-react");var mo=require("class-variance-authority"),N=require("react/jsx-runtime"),nr={note:(0,N.jsx)(S.Bookmark,{size:18}),tip:(0,N.jsx)(S.Lightbulb,{size:18}),info:(0,N.jsx)(S.Info,{size:18}),warning:(0,N.jsx)(S.AlertTriangle,{size:18}),danger:(0,N.jsx)(S.ShieldAlert,{size:18}),important:(0,N.jsx)(S.Flame,{size:18}),caution:(0,N.jsx)(S.Zap,{size:18})},sr={note:"Note",tip:"Tip",info:"Info",warning:"Warning",danger:"Danger",important:"Important",caution:"Caution"},po=(0,mo.cva)("py-4 px-4 rounded-lg",{variants:{type:{note:"border-primary-400 bg-primary-500/5 text-primary-400",tip:"border-emerald-500 bg-emerald-500/5 text-emerald-500",info:"border-sky-500 bg-sky-500/5 text-sky-500",warning:"border-amber-500 bg-amber-500/5 text-amber-500",danger:"border-red-500 bg-red-500/5 text-red-500",important:"border-orange-500 bg-orange-500/5 text-orange-500",caution:"border-yellow-500 bg-yellow-500/5 text-yellow-500"}},defaultVariants:{type:"note"}});function re({type:e="note",title:t,children:o,className:r="",...n}){return(0,N.jsxs)("div",{className:m(po({type:e}),r),role:e==="warning"||e==="danger"?"alert":"note",...n,children:[(0,N.jsxs)("div",{className:"flex items-center flex-row gap-2 mb-2",children:[(0,N.jsx)("span",{className:m("shrink-0",po({type:e})),children:nr[e]}),(0,N.jsx)("span",{className:"text-sm font-bold tracking-tight text-text-main",children:t||sr[e]})]}),(0,N.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0",children:o})]})}var uo=e=>(0,N.jsx)(re,{type:"note",...e}),fo=e=>(0,N.jsx)(re,{type:"tip",...e}),go=e=>(0,N.jsx)(re,{type:"warning",...e}),ho=e=>(0,N.jsx)(re,{type:"danger",...e}),xo=e=>(0,N.jsx)(re,{type:"info",...e}),bo=e=>(0,N.jsx)(re,{type:"important",...e}),vo=e=>(0,N.jsx)(re,{type:"caution",...e});var Xe=require("react"),ye=require("lucide-react");var Ke=require("class-variance-authority"),J=require("react/jsx-runtime"),ar=(0,Ke.cva)("my-6 transition-all duration-200",{variants:{variant:{default:"list-disc pl-5 text-text-muted marker:text-primary-500/50",number:"list-decimal pl-5 text-text-muted marker:text-primary-500/50 marker:font-bold",checked:"list-none p-0",arrow:"list-none p-0",bubble:"list-none p-0"},cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"},isGrid:{true:"grid gap-x-8 gap-y-3",false:"space-y-2"},dense:{true:"space-y-1",false:"space-y-2"}},compoundVariants:[{variant:"default",dense:!0,className:"space-y-0.5"}],defaultVariants:{variant:"default",cols:1,isGrid:!1,dense:!1}}),ir=(0,Ke.cva)("group flex items-start gap-3 text-sm leading-relaxed transition-all duration-200",{variants:{variant:{default:"",number:"",checked:"hover:translate-x-0.5",arrow:"hover:translate-x-0.5",bubble:"hover:translate-x-0.5"},dense:{true:"py-0",false:"py-0.5"}},defaultVariants:{variant:"default",dense:!1}}),lr=(0,Ke.cva)("mt-1 shrink-0 flex items-center justify-center transition-transform group-hover:scale-110",{variants:{variant:{bubble:"h-5 w-5 rounded-full bg-primary-500/10 text-primary-500 text-[10px] font-bold",default:""}},defaultVariants:{variant:"default"}});function cr({icon:e,children:t,variant:o,dense:r}){return(0,J.jsxs)("li",{className:m(ir({variant:o,dense:r})),children:[e&&(0,J.jsx)("span",{className:m(lr({variant:o==="bubble"?"bubble":"default"})),children:e}),(0,J.jsx)("div",{className:"flex-1 text-text-muted group-hover:text-text-main transition-colors",children:t})]})}var dr={checked:e=>(0,J.jsx)(ye.Check,{size:14,className:m("text-emerald-500 shrink-0",e)}),arrow:e=>(0,J.jsx)(ye.ChevronRight,{size:14,className:m("text-primary-400 shrink-0",e)}),bubble:e=>(0,J.jsx)(ye.Circle,{size:6,fill:"currentColor",className:m("text-primary-500 shrink-0",e)}),default:()=>null,number:()=>null};function yo({variant:e="default",cols:t=1,dense:o=!1,children:r,className:n,...a}){let i=t!==void 0&&Number(t)>1,l=dr[e],s=ar({variant:e,cols:t,dense:o,isGrid:i,className:n}),c=e==="number"?"ol":"ul";return e==="default"||e==="number"?(0,J.jsx)(c,{className:s,...a,children:r}):(0,J.jsx)("ul",{className:s,...a,children:Xe.Children.map(r,d=>{if(!(0,Xe.isValidElement)(d))return d;let p=d,f=p.type==="li"?p.props.children:p.props.children||d;return(0,J.jsx)(cr,{icon:l(),variant:e,dense:o,children:f})})})}var Y=require("react"),j=A(require("react-aria-components")),G=require("lucide-react");var P=require("react/jsx-runtime"),Ce=16,Ee=2,pr={ts:Ge,tsx:me,js:_e,jsx:me,json:Ue,css:qe,html:Je,md:ue,mdx:ue,bash:fe,sh:fe,yaml:ge,yml:ge},at={CODE:/\.(ts|tsx|js|jsx|json|mjs|cjs|astro|vue|svelte)$/i,TEXT:/\.(md|mdx|txt)$/i,IMAGE:/\.(png|jpg|jpeg|svg|gif)$/i};function lt(e){return typeof e=="string"?e:typeof e=="number"?e.toString():Array.isArray(e)?e.map(lt).join(""):(0,Y.isValidElement)(e)&&e.props&&typeof e.props=="object"&&"children"in e.props?lt(e.props.children):""}function mr(e,t){let o=e.toLowerCase(),r="shrink-0 transition-colors duration-200";if(t)return(0,P.jsx)(G.Folder,{size:Ce,strokeWidth:Ee,className:m(r,"text-primary-400"),fill:"currentColor",fillOpacity:.15});let n=o.split(".").pop()||"",a=pr[n];if(a)return(0,P.jsx)(a,{size:Ce});let i=m(r,"text-text-dim group-hover:text-text-main");return at.CODE.test(o)?(0,P.jsx)(G.FileCode,{size:Ce,strokeWidth:Ee,className:i}):at.TEXT.test(o)?(0,P.jsx)(G.FileText,{size:Ce,strokeWidth:Ee,className:i}):at.IMAGE.test(o)?(0,P.jsx)(G.FileImage,{size:Ce,strokeWidth:Ee,className:i}):(0,P.jsx)(G.File,{size:Ce,strokeWidth:Ee,className:i})}function it(e,t){if(!(0,Y.isValidElement)(e))return!1;let o=e.type;if(typeof o=="string")return o===t;if(typeof o=="function")return o.name===t||o.name?.toLowerCase()===t;let r=e.props;return r?.originalType===t||r?.mdxType===t}function ur(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function Ye(e,t="root"){if(!(0,Y.isValidElement)(e))return[];let o=[];if(it(e,"ul"))return Y.Children.forEach(e.props.children,(r,n)=>{o.push(...Ye(r,`${t}-${n}`))}),o;if(it(e,"li")){let r=Y.Children.toArray(e.props.children),n=r.findIndex(w=>it(w,"ul")),a=n!==-1,i=a?r.slice(0,n):r,l=a?r.slice(n):[],s=lt(i),{name:c,comment:d}=ur(s),p=c.endsWith("/"),f=p?c.slice(0,-1):c,b=a||p;return o.push({id:`${t}-${f}`,name:f,comment:d,isFolder:b,children:a?Ye(l[0],`${t}-${f}`):void 0}),o}return e.props&&typeof e.props=="object"&&"children"in e.props&&Y.Children.forEach(e.props.children,(r,n)=>{o.push(...Ye(r,`${t}-${n}`))}),o}function Co({item:e}){return(0,P.jsxs)(j.TreeItem,{id:e.id,textValue:e.name,className:"outline-none group focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md",children:[(0,P.jsx)(j.TreeItemContent,{children:({isExpanded:t,hasChildItems:o})=>(0,P.jsxs)("div",{className:"flex items-center gap-2 py-1 px-1.5 rounded-md transition-colors hover:bg-primary-500/5 cursor-pointer",children:[(0,P.jsx)("div",{style:{width:"calc((var(--tree-item-level) - 1) * 1rem)"},className:"shrink-0"}),o?(0,P.jsx)(j.Button,{slot:"chevron",className:"outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors",children:(0,P.jsx)(G.ChevronRight,{size:14,strokeWidth:3,className:m("transition-transform duration-200",t&&"rotate-90")})}):(0,P.jsx)("div",{className:"w-[18px]"}),mr(e.name,e.isFolder),(0,P.jsx)("span",{className:m("text-sm transition-colors truncate select-none",e.isFolder?"font-semibold text-text-main":"text-text-muted group-hover:text-text-main"),children:e.name}),e.comment&&(0,P.jsxs)("span",{className:"ml-2 text-xs italic text-text-dim opacity-70 group-hover:opacity-100 transition-opacity whitespace-nowrap overflow-hidden text-ellipsis font-sans",children:["//"," ",e.comment]})]})}),e.children&&(0,P.jsx)(j.Collection,{items:e.children,children:t=>(0,P.jsx)(Co,{item:t})})]})}function Ro({children:e}){let t=(0,Y.useMemo)(()=>Ye(e),[e]);return(0,P.jsx)("div",{className:"my-8",children:(0,P.jsx)(j.Tree,{items:t,"aria-label":"File Tree",className:m("rounded-xl border border-border-subtle bg-bg-surface/50 p-4 font-mono text-sm shadow-sm backdrop-blur-sm outline-none","max-h-[500px] overflow-y-auto scrollbar-thin scrollbar-thumb-border-subtle","focus-visible:ring-2 focus-visible:ring-primary-500/20"),children:o=>(0,P.jsx)(Co,{item:o})})})}var Se=A(require("react-aria-components"));var Re=require("react");function wo({data:e,sortable:t=!1,paginated:o=!1,pageSize:r=10}){let[n,a]=(0,Re.useState)(null),[i,l]=(0,Re.useState)(1),s=(0,Re.useMemo)(()=>{if(!e)return[];let f=[...e];return t&&n!==null&&f.sort((b,w)=>{let L=b[n.key],g=w[n.key],W=typeof L=="string"?L:"",h=typeof g=="string"?g:"";return W<h?n.direction==="asc"?-1:1:W>h?n.direction==="asc"?1:-1:0}),f},[e,n,t]),c=Math.ceil(s.length/r),d=(0,Re.useMemo)(()=>{if(!o)return s;let f=(i-1)*r;return s.slice(f,f+r)},[s,o,i,r]);return{sortConfig:n,currentPage:i,setCurrentPage:l,totalPages:c,paginatedData:d,requestSort:f=>{if(!t)return;let b="asc";n&&n.key===f&&n.direction==="asc"&&(b="desc"),a({key:f,direction:b})}}}var z=require("lucide-react");var y=require("react/jsx-runtime");function Po({headers:e,data:t,children:o,className:r="",sortable:n=!1,paginated:a=!1,pageSize:i=10}){let{sortConfig:l,currentPage:s,setCurrentPage:c,totalPages:d,paginatedData:p,requestSort:f}=wo({data:t,sortable:n,paginated:a,pageSize:i}),b=L=>n?l?.key!==L?(0,y.jsx)(z.ChevronDown,{size:14,className:"ml-1 opacity-30"}):l.direction==="asc"?(0,y.jsx)(z.ChevronUp,{size:14,className:"ml-1 text-primary-400"}):(0,y.jsx)(z.ChevronDown,{size:14,className:"ml-1 text-primary-400"}):null,w=o||(0,y.jsxs)(y.Fragment,{children:[e&&(0,y.jsx)("thead",{children:(0,y.jsx)("tr",{children:e.map((L,g)=>(0,y.jsx)("th",{onClick:()=>f(g),className:m("text-left px-3 py-2.5 border-b-2 border-border-subtle text-text-main font-semibold text-sm",n&&"cursor-pointer select-none hover:text-primary-400 transition-colors"),children:(0,y.jsxs)("div",{className:"flex items-center",children:[L,b(g)]})},g))})}),p&&(0,y.jsx)("tbody",{children:p.map((L,g)=>(0,y.jsx)("tr",{className:"transition-colors hover:bg-bg-surface",children:L.map((W,h)=>(0,y.jsx)("td",{className:"px-3 py-2 border-b border-border-subtle text-sm text-text-muted",children:W},h))},g))})]});return(0,y.jsxs)("div",{className:m("my-6 rounded-lg border border-border-subtle overflow-hidden",r),children:[(0,y.jsx)("div",{className:"overflow-x-auto",children:(0,y.jsx)("table",{className:"w-full border-collapse text-sm",children:w})}),a&&d>1&&(0,y.jsxs)("div",{className:"flex items-center justify-between border-t border-border-subtle px-4 py-3",children:[(0,y.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",s," of ",d]}),(0,y.jsxs)("div",{className:"flex items-center gap-1",children:[(0,y.jsx)(Se.Button,{onPress:()=>c(1),isDisabled:s===1,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(z.ChevronsLeft,{size:16})}),(0,y.jsx)(Se.Button,{onPress:()=>c(L=>Math.max(L-1,1)),isDisabled:s===1,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(z.ChevronLeft,{size:16})}),(0,y.jsx)(Se.Button,{onPress:()=>c(L=>Math.min(L+1,d)),isDisabled:s===d,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(z.ChevronRight,{size:16})}),(0,y.jsx)(Se.Button,{onPress:()=>c(d),isDisabled:s===d,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:(0,y.jsx)(z.ChevronsRight,{size:16})})]})]})]})}var D=require("react/jsx-runtime");function No({name:e,type:t,defaultValue:o,required:r=!1,children:n,id:a,className:i=""}){return(0,D.jsxs)("article",{className:m("group relative my-6 rounded-xl border border-border-subtle bg-bg-surface p-5 transition-all duration-300","hover:border-primary-500/30 hover:shadow-lg hover:shadow-primary-500/5",i),id:a,children:[(0,D.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,D.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[(0,D.jsx)("code",{className:"inline-flex items-center rounded-md bg-primary-500/10 px-2.5 py-1 font-mono text-sm font-bold text-primary-400 border border-primary-500/20 shadow-sm transition-colors group-hover:bg-primary-500/15",children:e}),t&&(0,D.jsx)("span",{className:"rounded-md bg-bg-muted/80 border border-border-subtle px-2 py-0.5 text-[11px] font-semibold text-text-muted uppercase tracking-wider shadow-sm",children:t}),r&&(0,D.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full bg-red-500/10 px-2.5 py-0.5 text-[10px] font-bold uppercase tracking-wider text-red-400 border border-red-500/20 shadow-sm",children:[(0,D.jsx)("span",{className:"h-1 w-1 rounded-full bg-red-400 animate-pulse"}),"Required"]})]}),o&&(0,D.jsxs)("div",{className:"flex items-center gap-2 text-[11px] text-text-muted bg-bg-muted/30 px-2.5 py-1 rounded-md border border-border-subtle/50",children:[(0,D.jsx)("span",{className:"font-semibold opacity-60 uppercase tracking-tighter",children:"Default"}),(0,D.jsx)("code",{className:"font-mono text-text-main font-medium",children:o})]})]}),(0,D.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30",children:n})]})}var ko=require("react/jsx-runtime");function To({to:e,children:t,className:o="",...r}){let n=e&&(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")),a=m("text-blue-600 hover:text-blue-800 hover:underline cursor-pointer",o);return(0,ko.jsx)(de,{href:e,className:a,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,...r,children:t})}var Ao=require("react/jsx-runtime");function Lo({src:e,alt:t,theme:o,...r}){let{theme:n}=At();return o&&o!==n?null:(0,Ao.jsx)("img",{src:e,alt:t||"",...r})}var R=require("react/jsx-runtime");function Mo({title:e,props:t,className:o=""}){return(0,R.jsxs)("div",{className:m("my-6",o),children:[e&&(0,R.jsx)("h3",{className:"text-base font-bold text-text-main mb-3",children:e}),(0,R.jsx)("div",{className:"overflow-x-auto rounded-lg border border-border-subtle",children:(0,R.jsxs)("table",{className:"w-full border-collapse text-sm",children:[(0,R.jsx)("thead",{children:(0,R.jsxs)("tr",{children:[(0,R.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Property"}),(0,R.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Type"}),(0,R.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Default"}),(0,R.jsx)("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Description"})]})}),(0,R.jsx)("tbody",{children:t.map((r,n)=>(0,R.jsxs)("tr",{className:"transition-colors hover:bg-bg-surface",children:[(0,R.jsxs)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:[(0,R.jsx)("code",{className:"rounded bg-bg-surface px-1.5 py-0.5 font-mono text-xs font-bold text-primary-400",children:r.name}),r.required&&(0,R.jsx)("span",{className:"ml-1 text-red-400 font-bold",children:"*"})]}),(0,R.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:(0,R.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted",children:r.type})}),(0,R.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:r.defaultValue?(0,R.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400",children:r.defaultValue}):(0,R.jsx)("span",{className:"text-text-dim",children:"\u2014"})}),(0,R.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle text-text-muted",children:r.description})]},`${r.name}-${n}`))})]})})]})}var ct=require("react");function Bo(e){let{code:t,children:o,preview:r}=e,n=(0,ct.useMemo)(()=>(t??(typeof o=="string"?o:"")).trim(),[t,o]),a=(0,ct.useMemo)(()=>r??(typeof o!="string"?o:null),[r,o]);return{initialCode:n,previewElement:a}}var we=require("react/jsx-runtime");function Eo(e){let{highlightedHtml:t,hideCode:o=!1,hideCopy:r=!1}=e,{initialCode:n,previewElement:a}=Bo(e);return(0,we.jsxs)("div",{className:"my-6 overflow-hidden rounded-xl border border-border-subtle",children:[(0,we.jsx)("div",{className:"flex items-center justify-center p-8 bg-bg-surface",children:a}),!o&&(0,we.jsx)("div",{className:"border-t border-border-subtle",children:(0,we.jsx)(ie,{hideCopy:r,lang:"tsx",highlightedHtml:t,plain:!0,children:n})})]})}var Ho=require("react"),ne=require("lucide-react");var So=require("react/jsx-runtime"),dt=({children:e,className:t,vertical:o=!1})=>(0,So.jsx)("div",{className:m("inline-flex",o?"flex-col":"flex-row",!o&&["[&>*:not(:first-child)]:-ml-px","[&>*:first-child]:rounded-r-none","[&>*:last-child]:rounded-l-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-l-full","[&>*:last-child]:rounded-r-full"],t?.includes("rounded-xl")&&["[&>*:first-child]:rounded-l-xl","[&>*:last-child]:rounded-r-xl"],t?.includes("rounded-lg")&&["[&>*:first-child]:rounded-l-lg","[&>*:last-child]:rounded-r-lg"]],o&&["[&>*:not(:first-child)]:-mt-px","[&>*:first-child]:rounded-b-none","[&>*:last-child]:rounded-t-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-t-full","[&>*:last-child]:rounded-b-full"]],t),children:e});var Te=require("lucide-react"),mt=A(require("react")),k=A(require("react-aria-components"));var Ne=A(require("react-aria-components"));var Pe=require("react/jsx-runtime"),pt=({children:e,className:t,showArrow:o,...r})=>(0,Pe.jsxs)(Ne.Popover,{offset:8,...r,className:Ne.composeRenderProps(t,n=>m("z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none transition-none",n)),children:[o&&(0,Pe.jsx)(Ne.OverlayArrow,{className:"group",children:(0,Pe.jsx)("svg",{viewBox:"0 0 12 12",className:"block h-3 w-3 fill-bg-surface/80 stroke-border-subtle group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90","aria-hidden":"true",children:(0,Pe.jsx)("path",{d:"M0 0 L6 6 L12 0"})})}),e]});var T=require("react/jsx-runtime");function fr(e){let[t,o]=mt.default.Children.toArray(e.children).slice(0,2);return(0,T.jsxs)(k.MenuTrigger,{...e,children:[t,(0,T.jsx)(pt,{placement:e.placement,className:"min-w-35",children:o})]})}function gr(e){let[t,o]=mt.default.Children.toArray(e.children).slice(0,2);return(0,T.jsxs)(k.SubmenuTrigger,{...e,children:[t,(0,T.jsx)(pt,{offset:-4,crossOffset:-4,children:o})]})}function O(e){return(0,T.jsx)(k.Menu,{...e,className:k.composeRenderProps(e.className,t=>m("p-1.5 outline-none max-h-[inherit] overflow-auto max-w-75",t))})}function hr(e){let t=e.textValue||(typeof e.children=="string"?e.children:void 0);return(0,T.jsx)(k.MenuItem,{...e,textValue:t,className:k.composeRenderProps(e.className,(o,{isFocused:r,isPressed:n,isDisabled:a})=>m("group relative flex flex-row items-center gap-2 px-2 py-1 rounded-lg outline-none cursor-default hover:cursor-pointer transition-none","text-text-main text-[12px]",{"bg-bg-surface-elevated text-primary-600 ring-1 ring-border-strong/5":r,"bg-bg-surface-elevanted":n,"opacity-40 grayscale pointer-events-none":a},o)),children:k.composeRenderProps(e.children,(o,{selectionMode:r,isSelected:n,hasSubmenu:a})=>(0,T.jsxs)(T.Fragment,{children:[r!=="none"&&(0,T.jsxs)("span",{className:"flex items-center size-4 shrink-0 justify-center",children:[n&&r==="multiple"&&(0,T.jsx)(Te.Check,{className:"size-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200"}),n&&r==="single"&&(0,T.jsx)(Te.Dot,{className:"size-5 text-primary-500 animate-in zoom-in-50 duration-200"})]}),(0,T.jsx)("div",{className:"flex flex-row w-full transition-colors items-center gap-2 py-1 px-1",children:o}),a&&(0,T.jsx)(Te.ChevronRight,{className:"size-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors"})]}))})}function xr({title:e,...t}){return(0,T.jsxs)(k.MenuSection,{...t,className:m("flex flex-col gap-0.5",t.className),children:[e&&(0,T.jsx)(k.Header,{className:"px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none",children:e}),(0,T.jsx)(k.Collection,{items:t.items,children:t.children})]})}function br(e){return(0,T.jsx)(k.Separator,{...e,className:"mx-2 my-1.5 border-t border-border-subtle/50"})}O.Root=O;O.Item=hr;O.Trigger=fr;O.SubTrigger=gr;O.Section=xr;O.Separator=br;var Vo=require("react/jsx-runtime");function E({className:e,variant:t="rect",...o}){return(0,Vo.jsx)("div",{className:m("animate-pulse bg-bg-muted",t==="circle"?"rounded-full":"rounded-md",e),...o})}var vr=require("react-aria-components"),yr=require("react-aria-components");var M=require("react/jsx-runtime"),Cr=e=>{let[t,o]=(0,Ho.useState)(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)},handleOpenRaw:()=>{let a=new Blob([e],{type:"text/plain;charset=utf-8"}),i=URL.createObjectURL(a);window.open(i,"_blank")}}};function Io({content:e,mdxRaw:t,config:o}){let r=t||e||"",{copied:n,handleCopy:a,handleOpenRaw:i}=Cr(r),l=o!==!1,s=typeof o=="object"&&o.text||"Copy Markdown";return!l||!r?null:(0,M.jsx)("div",{className:"relative inline-flex z-100 flex-shrink-0 w-max translate-y-0 active:translate-y-px transition-transform duration-200",children:(0,M.jsxs)(dt,{className:"rounded-xl border border-border-subtle bg-bg-surface/40 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:shadow-lg hover:shadow-primary-500/5 group overflow-hidden",children:[(0,M.jsx)(pe,{variant:"ghost",onPress:a,icon:n?(0,M.jsx)(ne.Check,{size:16}):(0,M.jsx)(ne.Copy,{size:16}),iconPosition:"left",className:m("px-5 py-2 bg-transparent text-[0.8125rem] font-semibold h-9 border-none shrink-0","text-text-main transition-all duration-300 hover:bg-primary-500/5",n&&"text-emerald-500 hover:bg-emerald-500/5"),children:n?"Copied!":s}),(0,M.jsxs)(O.Trigger,{placement:"bottom end",children:[(0,M.jsx)(pe,{variant:"ghost",isIconOnly:!0,icon:(0,M.jsx)(ne.ChevronDown,{size:14}),className:m("px-3.5 h-9 border-l border-border-subtle/50 text-text-muted rounded-none bg-transparent shrink-0","transition-all duration-300 hover:bg-primary-500/5 hover:text-primary-500")}),(0,M.jsxs)(O.Root,{className:"w-52",children:[(0,M.jsxs)(O.Item,{onAction:a,children:[(0,M.jsx)(ne.Copy,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),(0,M.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"Copy Markdown"})]}),(0,M.jsxs)(O.Item,{onAction:i,children:[(0,M.jsx)(ne.ExternalLink,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),(0,M.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"View as Markdown"})]})]})]})]})})}var C=require("react/jsx-runtime");function zo(){return(0,C.jsx)("div",{className:m("w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in"),children:(0,C.jsxs)("div",{className:"mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10",children:[(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(E,{className:"h-3 w-16"}),(0,C.jsx)(E,{className:"h-3 w-24"})]}),(0,C.jsx)(E,{className:"h-10 w-[60%] sm:h-12"}),(0,C.jsxs)("div",{className:"space-y-3",children:[(0,C.jsx)(E,{className:"h-4 w-full"}),(0,C.jsx)(E,{className:"h-4 w-[95%]"}),(0,C.jsx)(E,{className:"h-4 w-[40%]"})]}),(0,C.jsxs)("div",{className:"space-y-6 pt-4",children:[(0,C.jsx)(E,{className:"h-7 w-32"}),(0,C.jsxs)("div",{className:"space-y-3",children:[(0,C.jsx)(E,{className:"h-4 w-full"}),(0,C.jsx)(E,{className:"h-4 w-[98%]"}),(0,C.jsx)(E,{className:"h-4 w-[92%]"}),(0,C.jsx)(E,{className:"h-4 w-[60%]"})]})]}),(0,C.jsx)(E,{className:"h-32 w-full rounded-lg bg-bg-muted/50"}),(0,C.jsxs)("div",{className:"space-y-6 pt-4",children:[(0,C.jsx)(E,{className:"h-7 w-48"}),(0,C.jsxs)("div",{className:"space-y-3",children:[(0,C.jsx)(E,{className:"h-4 w-full"}),(0,C.jsx)(E,{className:"h-4 w-[85%]"})]})]})]})})}var _=require("react/jsx-runtime"),ke=({level:e,id:t,children:o,...r})=>{let n=`h${e}`;return(0,_.jsxs)(n,{id:t,...r,className:"boltdocs-heading",children:[o,t&&(0,_.jsx)("a",{href:`#${t}`,className:"header-anchor","aria-label":"Anchor",children:(0,_.jsx)(Do.Link,{size:16})})]})},Oo={...ut,Loading:zo,h1:e=>(0,_.jsx)(ke,{level:1,...e}),h2:e=>(0,_.jsx)(ke,{level:2,...e}),h3:e=>(0,_.jsx)(ke,{level:3,...e}),h4:e=>(0,_.jsx)(ke,{level:4,...e}),h5:e=>(0,_.jsx)(ke,{level:5,...e}),h6:e=>(0,_.jsx)(ke,{level:6,...e}),pre:e=>(0,_.jsx)(ie,{...e,children:e.children})};var Wo=A(require("virtual:boltdocs-mdx-components"));var Fo=require("react-router-dom");var x=require("react/jsx-runtime");function wr(){let{currentLocale:e,config:t}=Le();return(0,V.useEffect)(()=>{if(!t.i18n)return;let o=t.i18n.localeConfigs?.[e];document.documentElement.lang=o?.htmlLang||e||"en",document.documentElement.dir=o?.direction||"ltr"},[e,t.i18n]),null}function Pr(){let e=(0,Fo.useLocation)(),{config:t}=Le(),o=Q(i=>i.setLocale),r=Q(i=>i.setVersion),n=Q(i=>i.currentLocale),a=Q(i=>i.currentVersion);return(0,V.useEffect)(()=>{let i=e.pathname.split("/").filter(Boolean),l=0,s=t.versions?.defaultVersion,c=t.i18n?.defaultLocale;if(i[l]==="docs"&&l++,t.versions&&i.length>l){let d=t.versions.versions.find(p=>p.path===i[l]);d&&(s=d.path,l++)}t.i18n&&i.length>l&&t.i18n.locales[i[l]]?c=i[l]:t.i18n&&i.length===0&&(c=n||t.i18n.defaultLocale),c!==n&&o(c),s!==a&&r(s)},[e.pathname,t,o,r,n,a]),null}function $o({initialRoutes:e,initialConfig:t,docsDirName:o,modules:r,hot:n,homePage:a,externalPages:i,externalLayout:l,components:s={}}){let[c,d]=(0,V.useState)(e),[p,f]=(0,V.useState)(t),b=i||{},w=l||ft.default,L=(0,V.useMemo)(()=>c.filter(h=>!(a&&(h.path==="/"||h.path===""))&&!b[h.path===""?"/":h.path]).map(h=>{let F=Object.keys(r).find(Z=>Z===`/${o}/${h.filePath}`||Z.endsWith(`/${o}/${h.filePath}`)||Z.endsWith(`/${o}\\${h.filePath.replace(/\\/g,"/")}`)),ce=F?r[F]:null;return{...h,Component:V.default.lazy(async()=>ce?await ce():{default:ot})}}),[c,r,o,a,b]);(0,V.useEffect)(()=>{n&&(n.on("boltdocs:routes-update",h=>{d(h)}),n.on("boltdocs:config-update",h=>{f(h)}))},[n]);let g=(0,V.useMemo)(()=>({...Oo,...Wo.default,...s}),[s]),W=g.Loading;return(0,x.jsx)(Lt,{children:(0,x.jsx)(Gt,{components:g,children:(0,x.jsx)(Ze.Provider,{value:p,children:(0,x.jsx)(St,{children:(0,x.jsxs)(bt,{routes:c,modules:r,children:[(0,x.jsx)(zt,{}),(0,x.jsx)(Pr,{}),(0,x.jsx)(wr,{}),(0,x.jsxs)(X.Routes,{children:[(0,x.jsx)(X.Route,{element:(0,x.jsx)(Wt,{}),children:L.map(h=>(0,x.jsx)(X.Route,{path:h.path===""?"/":h.path,element:(0,x.jsx)(V.default.Suspense,{fallback:(0,x.jsx)(W,{}),children:(0,x.jsx)(Ut,{Component:h.Component})})},h.path))},"docs-layout"),a&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(X.Route,{path:"/",element:(0,x.jsx)(w,{children:(0,x.jsx)(a,{})})}),p.i18n&&Object.keys(p.i18n.locales).map(h=>(0,x.jsx)(X.Route,{path:`/${h}`,element:(0,x.jsx)(w,{children:(0,x.jsx)(a,{})})},`home-${h}`))]}),Object.entries(b).map(([h,F])=>{let ce=h==="/"?"":h;return(0,x.jsxs)(V.default.Fragment,{children:[(0,x.jsx)(X.Route,{path:h,element:(0,x.jsx)(w,{children:(0,x.jsx)(F,{})})}),p.i18n&&Object.keys(p.i18n.locales).map(Z=>(0,x.jsx)(X.Route,{path:`/${Z}${ce}`,element:(0,x.jsx)(w,{children:(0,x.jsx)(F,{})})},`${h}-${Z}`))]},h)}),(0,x.jsx)(X.Route,{path:"*",element:(0,x.jsx)(ft.default,{children:(0,x.jsx)(ot,{})})})]})]})})})})})}var je=require("react/jsx-runtime");async function Nr(e){let{path:t,routes:o,config:r,modules:n,homePage:a,externalPages:i,docsDirName:l}=e,s={};for(let[d,p]of Object.entries(n))s[d]=()=>Promise.resolve(p);return _o.default.renderToString((0,je.jsx)(Go.default.StrictMode,{children:(0,je.jsx)(Uo.StaticRouter,{location:t,children:(0,je.jsx)($o,{initialRoutes:o,initialConfig:r,docsDirName:l,modules:s,homePage:a,externalPages:i})})}))}0&&(module.exports={render});
|