module.exports=[621270,a=>a.a(async(b,c)=>{try{let b=await a.y("shiki");a.n(b),c()}catch(a){c(a)}},!0),613161,a=>a.a(async(b,c)=>{try{let b=await a.y("shiki/engine/javascript");a.n(b),c()}catch(a){c(a)}},!0),911576,a=>a.a(async(b,c)=>{try{var d=a.i(952960),e=a.i(840833),f=a.i(558038),g=a.i(621270),h=a.i(613161),i=b([g,h]);[g,h]=i.then?(await i)():i;var j=(0,d.a)("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-4","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),k=(0,e.memo)(({children:a,result:b,language:c,className:g,...h})=>{let i=(0,e.useMemo)(()=>({backgroundColor:b.bg,color:b.fg}),[b.bg,b.fg]);return(0,f.jsx)("pre",{className:(0,d.a)(g,"p-4 text-sm dark:bg-(--shiki-dark-bg)!"),"data-language":c,"data-streamdown":"code-block-body",style:i,...h,children:(0,f.jsx)("code",{className:"[counter-increment:line_0] [counter-reset:line]",children:b.tokens.map((a,b)=>(0,f.jsx)("span",{className:j,children:a.map((a,b)=>(0,f.jsx)("span",{className:"dark:bg-(--shiki-dark-bg)! dark:text-(--shiki-dark)!",style:{color:a.color,backgroundColor:a.bgColor,...a.htmlStyle},...a.htmlAttrs,children:a.content},b))},b))})})},(a,b)=>a.result===b.result&&a.language===b.language&&a.className===b.className),l=({className:a,language:b,style:c,...e})=>(0,f.jsx)("div",{className:(0,d.a)("my-4 w-full overflow-hidden rounded-xl border border-border",a),"data-language":b,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...c},...e}),m=({language:a,children:b})=>(0,f.jsxs)("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-language":a,"data-streamdown":"code-block-header",children:[(0,f.jsx)("span",{className:"ml-1 font-mono lowercase",children:a}),(0,f.jsx)("div",{className:"flex items-center gap-2",children:b})]}),n=(0,h.createJavaScriptRegexEngine)({forgiving:!0}),o=new Map,p=new Map,q=new Map,r=a=>Object.hasOwn(g.bundledLanguages,a),s=(a,b,c,d)=>{let e,f,h=r(b)?b:"text",i=(e=a.slice(0,100),f=a.length>100?a.slice(-100):"",`${h}:${c[0]}:${c[1]}:${a.length}:${e}:${f}`);return p.has(i)?p.get(i):(d&&(q.has(i)||q.set(i,new Set),q.get(i).add(d)),((a,b)=>{let c=r(a)?a:"text",d=`${c}-${b[0]}-${b[1]}`;if(o.has(d))return o.get(d);let e=(0,g.createHighlighter)({themes:b,langs:[c],engine:n});return o.set(d,e),e})(h,c).then(b=>{let d=b.codeToTokens(a,{lang:h,themes:{light:c[0],dark:c[1]}});p.set(i,d);let e=q.get(i);if(e){for(let a of e)a(d);q.delete(i)}}).catch(a=>{console.error("Failed to highlight code:",a),q.delete(i)}),null)},t=({code:a,language:b,className:c,children:g,...h})=>{let{shikiTheme:i}=(0,e.useContext)(d.g),j=(0,e.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:a.split(`
`).map(a=>[{content:a,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[a]),[n,o]=(0,e.useState)(j);return(0,e.useEffect)(()=>{let c=s(a,b,i);c?o(c):s(a,b,i,a=>{o(a)})},[a,b,i]),(0,f.jsx)(d.b.Provider,{value:{code:a},children:(0,f.jsxs)(l,{language:b,children:[(0,f.jsx)(m,{language:b,children:g}),(0,f.jsx)(k,{className:c,language:b,result:n,...h})]})})};a.s(["CodeBlock",()=>t]),c()}catch(a){c(a)}},!1)];

//# sourceMappingURL=%5Broot-of-the-server%5D__1f42b372._.js.map