import { u as n } from "./vendor/recharts.js";
import { n as i } from "./chunk-AGHRB4JF.js";
import { A as d } from "./chunk-ICPOFSXX.js";
import { t as p } from "./dist2.js";
var o = p(), x = /* @__PURE__ */ i((s, t) => {
  const e = s.append("rect");
  if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0) for (const r in t.attrs) e.attr(r, t.attrs[r]);
  return t.class && e.attr("class", t.class), e;
}, "drawRect"), g = /* @__PURE__ */ i((s, t) => {
  x(s, {
    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"), h = /* @__PURE__ */ i((s, t) => {
  const e = t.text.replace(d, " "), r = s.append("text");
  r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class && r.attr("class", t.class);
  const a = r.append("tspan");
  return a.attr("x", t.x + t.textMargin * 2), a.text(e), r;
}, "drawText"), w = /* @__PURE__ */ i((s, t, e, r) => {
  const a = s.append("image");
  a.attr("x", t), a.attr("y", e);
  const l = (0, o.sanitizeUrl)(r);
  a.attr("xlink:href", l);
}, "drawImage"), k = /* @__PURE__ */ i((s, t, e, r) => {
  const a = s.append("use");
  a.attr("x", t), a.attr("y", e);
  const l = (0, o.sanitizeUrl)(r);
  a.attr("xlink:href", `#${l}`);
}, "drawEmbeddedImage"), v = /* @__PURE__ */ i(() => ({
  x: 0,
  y: 0,
  width: 100,
  height: 100,
  fill: "#EDF2AE",
  stroke: "#666",
  anchor: "start",
  rx: 0,
  ry: 0
}), "getNoteRect"), E = /* @__PURE__ */ i(() => ({
  x: 0,
  y: 0,
  width: 100,
  height: 100,
  "text-anchor": "start",
  style: "#666",
  textMargin: 0,
  rx: 0,
  ry: 0,
  tspan: !0
}), "getTextObj"), T = /* @__PURE__ */ i(() => {
  let s = n(".mermaidTooltip");
  return s.empty() && (s = n("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")), s;
}, "createTooltip");
export {
  x as a,
  E as c,
  w as i,
  g as n,
  h as o,
  k as r,
  v as s,
  T as t
};

//# sourceMappingURL=chunk-YZCP3GAM.js.map