import{i as t,r as i}from"./src-C2qr8KzS.js";import{c as e}from"./chunk-CSCIHK7Q-t5-Pxt3o.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};