const e=require("./src-BMjps4Ui.cjs"),t=require("./chunk-ABZYJK2D-CbIYYZa_.cjs");var n=require("./dist-DC-lM4uX.cjs").t(),r=e.h((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),i=e.h((e,t)=>{r(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),a=e.h((e,n)=>{let r=n.text.replace(t.k,` `),i=e.append(`text`);i.attr(`x`,n.x),i.attr(`y`,n.y),i.attr(`class`,`legend`),i.style(`text-anchor`,n.anchor),n.class&&i.attr(`class`,n.class);let a=i.append(`tspan`);return a.attr(`x`,n.x+n.textMargin*2),a.text(r),i},`drawText`),o=e.h((e,t,r,i)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,r);let o=(0,n.sanitizeUrl)(i);a.attr(`xlink:href`,o)},`drawImage`),s=e.h((e,t,r,i)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,r);let o=(0,n.sanitizeUrl)(i);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),c=e.h(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),l=e.h(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});