import{ar as e,n as t,r as n,rr as r,sr as i,t as a}from"./index-D6r_eLun.js";var o=i(e(),1),s=r(),c=({code:e,language:r,raw:i,className:c,startLine:l,lineNumbers:u,...d})=>{let{shikiTheme:f}=(0,o.useContext)(n),p=t(),[m,h]=(0,o.useState)(i);return(0,o.useEffect)(()=>{if(!p){h(i);return}let t=p.highlight({code:e,language:r,themes:f},e=>{h(e)});t&&h(t)},[e,r,f,p,i]),(0,s.jsx)(a,{className:c,language:r,lineNumbers:u,result:m,startLine:l,...d})};export{c as HighlightedCodeBlockBody};