import{o as e}from"./chunk-CFjPhJqf.js";import{i as t,r as n}from"./bundle-mjs-DuVun8J2.js";import"./react-dom-CyRBZdbZ.js";import{c as r,l as i,s as a}from"./index-BZmR4FtW.js";var o=e(t(),1),s=n(),c=({code:e,language:t,raw:n,className:c,startLine:l,...u})=>{let{shikiTheme:d}=(0,o.useContext)(i),f=r(),[p,m]=(0,o.useState)(n);return(0,o.useEffect)(()=>{if(!f){m(n);return}let r=f.highlight({code:e,language:t,themes:d},e=>{m(e)});r&&m(r)},[e,t,d,f,n]),(0,s.jsx)(a,{className:c,language:t,result:p,startLine:l,...u})};export{c as HighlightedCodeBlockBody};