import{_ as t,e,l as i}from"./mermaid.core-gr-KkGK9.js";var o=t((t,o,r,s)=>{t.attr("class",r);const{width:d,height:n,x:x,y:c}=a(t,o);e(t,n,d,s);const g=h(x,c,d,n,o);t.attr("viewBox",g),i.debug(`viewBox configured: ${g} with padding: ${o}`)},"setupViewPortForSVG"),a=t((t,e)=>{const i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+2*e,height:i.height+2*e,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),h=t((t,e,i,o,a)=>`${t-a} ${e-a} ${i} ${o}`,"createViewBox");export{o as s};
