import{r as t,t as r}from"./src-C2qr8KzS.js";import{j as a}from"./chunk-CSCIHK7Q-t5-Pxt3o.js";import{t as e}from"./dist-DPgEOitG.js";var s=e(),o=t((t,r)=>{const a=t.append("rect");if(a.attr("x",r.x),a.attr("y",r.y),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("width",r.width),a.attr("height",r.height),r.name&&a.attr("name",r.name),r.rx&&a.attr("rx",r.rx),r.ry&&a.attr("ry",r.ry),void 0!==r.attrs)for(const e in r.attrs)a.attr(e,r.attrs[e]);return r.class&&a.attr("class",r.class),a},"drawRect"),i=t((t,r)=>{o(t,{x:r.startx,y:r.starty,width:r.stopx-r.startx,height:r.stopy-r.starty,fill:r.fill,stroke:r.stroke,class:"rect"}).lower()},"drawBackgroundRect"),n=t((t,r)=>{const e=r.text.replace(a," "),s=t.append("text");s.attr("x",r.x),s.attr("y",r.y),s.attr("class","legend"),s.style("text-anchor",r.anchor),r.class&&s.attr("class",r.class);const o=s.append("tspan");return o.attr("x",r.x+2*r.textMargin),o.text(e),s},"drawText"),l=t((t,r,a,e)=>{const o=t.append("image");o.attr("x",r),o.attr("y",a);const i=(0,s.sanitizeUrl)(e);o.attr("xlink:href",i)},"drawImage"),x=t((t,r,a,e)=>{const o=t.append("use");o.attr("x",r),o.attr("y",a);const i=(0,s.sanitizeUrl)(e);o.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),d=t(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),c=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),p=t(()=>{let t=r(".mermaidTooltip");return t.empty()&&(t=r("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip");export{o as a,c,l as i,i as n,n as o,x as r,d as s,p as t};