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