"use strict";exports.id=4998,exports.ids=[4998],exports.modules={44998:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{shikiPlugin:()=>k});var e=c(24545),f=c(78908),g=c(4343),h=c(35481),i=a([f]);f=(i.then?(await i)():i)[0];let j=a=>{if(4===a.length){let b=a[1],c=a[2],d=a[3];return a[0]+b+b+c+c+d+d}return 9===a.length?a.slice(0,7):a},k=({theme:a})=>{let b,c=new Set,d=new Set;return async({root:i})=>{let k=[];return(0,g.YR)(i,"code",({lang:a})=>{a&&!c.has(a)&&(c.add(a),k.push(a))}),b||(b=await (0,f.createHighlighter)({themes:[a],langs:[]})),await Promise.all(k.map(async a=>{try{await b.loadLanguage(a)}catch(b){d.add(a),(0,h.w)(String(b))}})),{code:({value:c,lang:f})=>{if(!f||d.has(f))return null;let g=b.codeToTokens(c,{lang:f,theme:a}),{bg:h,fg:i}=g;return i&&(i=j(i)),h&&(h=j(h)),g.tokens.map(a=>new e.fzL({shading:{type:"clear",color:"auto",fill:h},children:a.map(({content:a,bgColor:b,color:c,fontStyle:d})=>(c&&(c=j(c)),b&&(b=j(b)),new e.NTc({text:a,color:null!=c?c:i,shading:b?{type:"clear",color:"auto",fill:b}:void 0,bold:2===d,italics:1===d,underline:4===d?{type:"single",color:i}:void 0,strike:8===d})))}))}}}};d()}catch(a){d(a)}})}};