import{s as e}from"./rolldown-runtime-Bjp52BOI.js?dpl=dpl_4UDxC3erAcBDHX8QT9FjyxxnLZSQ";import{Lr as t,ur as n}from"./initial-vendor-CbfHqnih.js?dpl=dpl_4UDxC3erAcBDHX8QT9FjyxxnLZSQ";import{N as r,Y as i,un as a,z as o}from"./index-DiVFqI9q.js?dpl=dpl_4UDxC3erAcBDHX8QT9FjyxxnLZSQ";var s=e(t(),1),c=e(n(),1),l=(0,s.memo)(function({language:e,children:t}){let n=i(),l=(0,s.useContext)(r),u=typeof t==`string`?t:``;e??=`text`;let d=o({codeString:u,codeBlockTheme:n,language:l?e:`text`,opts:{structure:`inline`}});return typeof t==`string`&&e&&d?(0,c.jsx)(`pre`,{className:a,suppressHydrationWarning:!0,children:(0,c.jsx)(`code`,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:d}})}):(0,c.jsx)(`pre`,{className:a,suppressHydrationWarning:!0,children:(0,c.jsx)(`code`,{suppressHydrationWarning:!0,children:t})})});export{l as t};