import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{n as t,r as n}from"./chunk-AGHRB4JF-COxpu2PX.js";import{A as r,b as i,d as a}from"./chunk-ICPOFSXX-CFvmAboO.js";import{p as o,u as s}from"./chunk-5PVQY5BW-DfdH3lpT.js";async function c(e,n){let r=e.getElementsByTagName(`img`);if(!r||r.length===0)return;let s=n.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...r].map(e=>new Promise(n=>{function r(){if(e.style.display=`flex`,e.style.flexDirection=`column`,s){let[t=a.fontSize]=o(i().fontSize?i().fontSize:window.getComputedStyle(document.body).fontSize),n=t*5+`px`;e.style.minWidth=n,e.style.maxWidth=n}else e.style.width=`100%`;n(e)}t(r,`setupImage`),setTimeout(()=>{e.complete&&r()}),e.addEventListener(`error`,r),e.addEventListener(`load`,r)})))}var l,u=e((()=>{s(),r(),n(),l=t(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`),t(c,`configureLabelImages`)}));export{l as n,u as r,c as t};
//# sourceMappingURL=chunk-ZZ45TVLE-3eqPbOqm.js.map