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