var d=Object.defineProperty;var u=(a,e)=>d(a,"name",{value:e,configurable:!0});import{R as f,L as p,b as L}from"./mermaid-GHXKKRXX-IUK0bIya.js";import{r as i,j as N}from"./HostCapabilitiesProvider-30w3CGIu.js";var E=u(({code:a,language:e,raw:s,className:m,startLine:n,lineNumbers:g,...h})=>{let{shikiTheme:l}=i.useContext(f),t=p(),[c,r]=i.useState(s);return i.useEffect(()=>{if(!t){r(s);return}let o=t.highlight({code:a,language:e,themes:l},x=>{r(x)});o&&r(o)},[a,e,l,t,s]),N.jsx(L,{className:m,language:e,lineNumbers:g,result:c,startLine:n,...h})},"R");export{E as HighlightedCodeBlockBody};
