import { _ as b, ba as ie, aB as Z, aD as J, aU as ce, ab as de, l as Q, bD as B, a5 as U, aa as he, a9 as pe, ao as ue, ap as fe, a8 as me, a7 as ge, aE as ye, bE as xe, av as Se } from "./index-Bh-wTBlD.js";
import { d as ve } from "./chunk-EDXVE4YY-JJVh1SXw-B-sKHFur.js";
import { m as Ce } from "./chunk-4BX2VUAB-CkAjNgA_-Bs9A5Kfv.js";
import { M as be } from "./mermaid-parser.core-DtLRLmJt-Bs8fzU82.js";
import { n as E } from "./defaultLocale-D7EN2tov-CK6dgF7Y.js";
import { h as X } from "./ordinal-DfAQgscy-BEJTu10r.js";
function $e(t) {
  var a = 0, r = t.children, n = r && r.length;
  if (!n) a = 1;
  else for (; --n >= 0; ) a += r[n].value;
  t.value = a;
}
function we() {
  return this.eachAfter($e);
}
function Le(t, a) {
  let r = -1;
  for (const n of this)
    t.call(a, n, ++r, this);
  return this;
}
function Te(t, a) {
  for (var r = this, n = [r], l, o, d = -1; r = n.pop(); )
    if (t.call(a, r, ++d, this), l = r.children)
      for (o = l.length - 1; o >= 0; --o)
        n.push(l[o]);
  return this;
}
function Me(t, a) {
  for (var r = this, n = [r], l = [], o, d, h, f = -1; r = n.pop(); )
    if (l.push(r), o = r.children)
      for (d = 0, h = o.length; d < h; ++d)
        n.push(o[d]);
  for (; r = l.pop(); )
    t.call(a, r, ++f, this);
  return this;
}
function ke(t, a) {
  let r = -1;
  for (const n of this)
    if (t.call(a, n, ++r, this))
      return n;
}
function Ae(t) {
  return this.eachAfter(function(a) {
    for (var r = +t(a.data) || 0, n = a.children, l = n && n.length; --l >= 0; ) r += n[l].value;
    a.value = r;
  });
}
function ze(t) {
  return this.eachBefore(function(a) {
    a.children && a.children.sort(t);
  });
}
function Fe(t) {
  for (var a = this, r = De(a, t), n = [a]; a !== r; )
    a = a.parent, n.push(a);
  for (var l = n.length; t !== r; )
    n.splice(l, 0, t), t = t.parent;
  return n;
}
function De(t, a) {
  if (t === a) return t;
  var r = t.ancestors(), n = a.ancestors(), l = null;
  for (t = r.pop(), a = n.pop(); t === a; )
    l = t, t = r.pop(), a = n.pop();
  return l;
}
function Be() {
  for (var t = this, a = [t]; t = t.parent; )
    a.push(t);
  return a;
}
function Pe() {
  return Array.from(this);
}
function Ne() {
  var t = [];
  return this.eachBefore(function(a) {
    a.children || t.push(a);
  }), t;
}
function We() {
  var t = this, a = [];
  return t.each(function(r) {
    r !== t && a.push({ source: r.parent, target: r });
  }), a;
}
function* Ie() {
  var t = this, a, r = [t], n, l, o;
  do
    for (a = r.reverse(), r = []; t = a.pop(); )
      if (yield t, n = t.children)
        for (l = 0, o = n.length; l < o; ++l)
          r.push(n[l]);
  while (r.length);
}
function ee(t, a) {
  t instanceof Map ? (t = [void 0, t], a === void 0 && (a = _e)) : a === void 0 && (a = Ee);
  for (var r = new K(t), n, l = [r], o, d, h, f; n = l.pop(); )
    if ((d = a(n.data)) && (f = (d = Array.from(d)).length))
      for (n.children = d, h = f - 1; h >= 0; --h)
        l.push(o = d[h] = new K(d[h])), o.parent = n, o.depth = n.depth + 1;
  return r.eachBefore(Ve);
}
function Re() {
  return ee(this).eachBefore(He);
}
function Ee(t) {
  return t.children;
}
function _e(t) {
  return Array.isArray(t) ? t[1] : null;
}
function He(t) {
  t.data.value !== void 0 && (t.value = t.data.value), t.data = t.data.data;
}
function Ve(t) {
  var a = 0;
  do
    t.height = a;
  while ((t = t.parent) && t.height < ++a);
}
function K(t) {
  this.data = t, this.depth = this.height = 0, this.parent = null;
}
K.prototype = ee.prototype = {
  constructor: K,
  count: we,
  each: Le,
  eachAfter: Me,
  eachBefore: Te,
  find: ke,
  sum: Ae,
  sort: ze,
  path: Fe,
  ancestors: Be,
  descendants: Pe,
  leaves: Ne,
  links: We,
  copy: Re,
  [Symbol.iterator]: Ie
};
function Ge(t) {
  if (typeof t != "function") throw new Error();
  return t;
}
function _() {
  return 0;
}
function H(t) {
  return function() {
    return t;
  };
}
function je(t) {
  t.x0 = Math.round(t.x0), t.y0 = Math.round(t.y0), t.x1 = Math.round(t.x1), t.y1 = Math.round(t.y1);
}
function qe(t, a, r, n, l) {
  for (var o = t.children, d, h = -1, f = o.length, i = t.value && (n - a) / t.value; ++h < f; )
    d = o[h], d.y0 = r, d.y1 = l, d.x0 = a, d.x1 = a += d.value * i;
}
function Oe(t, a, r, n, l) {
  for (var o = t.children, d, h = -1, f = o.length, i = t.value && (l - r) / t.value; ++h < f; )
    d = o[h], d.x0 = a, d.x1 = n, d.y0 = r, d.y1 = r += d.value * i;
}
var Ue = (1 + Math.sqrt(5)) / 2;
function Ke(t, a, r, n, l, o) {
  for (var d = [], h = a.children, f, i, p = 0, C = 0, s = h.length, v, x, S = a.value, u, g, F, M, D, N, L; p < s; ) {
    v = l - r, x = o - n;
    do
      u = h[C++].value;
    while (!u && C < s);
    for (g = F = u, N = Math.max(x / v, v / x) / (S * t), L = u * u * N, D = Math.max(F / L, L / g); C < s; ++C) {
      if (u += i = h[C].value, i < g && (g = i), i > F && (F = i), L = u * u * N, M = Math.max(F / L, L / g), M > D) {
        u -= i;
        break;
      }
      D = M;
    }
    d.push(f = { value: u, dice: v < x, children: h.slice(p, C) }), f.dice ? qe(f, r, n, l, S ? n += x * u / S : o) : Oe(f, r, n, S ? r += v * u / S : l, o), S -= u, p = C;
  }
  return d;
}
const Xe = function t(a) {
  function r(n, l, o, d, h) {
    Ke(a, n, l, o, d, h);
  }
  return r.ratio = function(n) {
    return t((n = +n) > 1 ? n : 1);
  }, r;
}(Ue);
function Ye() {
  var t = Xe, a = !1, r = 1, n = 1, l = [0], o = _, d = _, h = _, f = _, i = _;
  function p(s) {
    return s.x0 = s.y0 = 0, s.x1 = r, s.y1 = n, s.eachBefore(C), l = [0], a && s.eachBefore(je), s;
  }
  function C(s) {
    var v = l[s.depth], x = s.x0 + v, S = s.y0 + v, u = s.x1 - v, g = s.y1 - v;
    u < x && (x = u = (x + u) / 2), g < S && (S = g = (S + g) / 2), s.x0 = x, s.y0 = S, s.x1 = u, s.y1 = g, s.children && (v = l[s.depth + 1] = o(s) / 2, x += i(s) - v, S += d(s) - v, u -= h(s) - v, g -= f(s) - v, u < x && (x = u = (x + u) / 2), g < S && (S = g = (S + g) / 2), t(s, x, S, u, g));
  }
  return p.round = function(s) {
    return arguments.length ? (a = !!s, p) : a;
  }, p.size = function(s) {
    return arguments.length ? (r = +s[0], n = +s[1], p) : [r, n];
  }, p.tile = function(s) {
    return arguments.length ? (t = Ge(s), p) : t;
  }, p.padding = function(s) {
    return arguments.length ? p.paddingInner(s).paddingOuter(s) : p.paddingInner();
  }, p.paddingInner = function(s) {
    return arguments.length ? (o = typeof s == "function" ? s : H(+s), p) : o;
  }, p.paddingOuter = function(s) {
    return arguments.length ? p.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s) : p.paddingTop();
  }, p.paddingTop = function(s) {
    return arguments.length ? (d = typeof s == "function" ? s : H(+s), p) : d;
  }, p.paddingRight = function(s) {
    return arguments.length ? (h = typeof s == "function" ? s : H(+s), p) : h;
  }, p.paddingBottom = function(s) {
    return arguments.length ? (f = typeof s == "function" ? s : H(+s), p) : f;
  }, p.paddingLeft = function(s) {
    return arguments.length ? (i = typeof s == "function" ? s : H(+s), p) : i;
  }, p;
}
var Y, ae = (Y = class {
  constructor() {
    this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = he, this.getAccTitle = pe, this.setDiagramTitle = ue, this.getDiagramTitle = fe, this.getAccDescription = me, this.setAccDescription = ge;
  }
  getNodes() {
    return this.nodes;
  }
  getConfig() {
    const t = ye, a = Z();
    return J({
      ...t.treemap,
      ...a.treemap ?? {}
    });
  }
  addNode(t, a) {
    this.nodes.push(t), this.levels.set(t, a), a === 0 && (this.outerNodes.push(t), this.root ?? (this.root = t));
  }
  getRoot() {
    return { name: "", children: this.outerNodes };
  }
  addClass(t, a) {
    const r = this.classes.get(t) ?? { id: t, styles: [], textStyles: [] }, n = a.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
    n && n.forEach((l) => {
      xe(l) && (r != null && r.textStyles ? r.textStyles.push(l) : r.textStyles = [l]), r != null && r.styles ? r.styles.push(l) : r.styles = [l];
    }), this.classes.set(t, r);
  }
  getClasses() {
    return this.classes;
  }
  getStylesForClass(t) {
    var a;
    return ((a = this.classes.get(t)) == null ? void 0 : a.styles) ?? [];
  }
  clear() {
    Se(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
  }
}, b(Y, "TreeMapDB"), Y);
function re(t) {
  if (!t.length)
    return [];
  const a = [], r = [];
  return t.forEach((n) => {
    const l = {
      name: n.name,
      children: n.type === "Leaf" ? void 0 : []
    };
    for (l.classSelector = n == null ? void 0 : n.classSelector, n != null && n.cssCompiledStyles && (l.cssCompiledStyles = n.cssCompiledStyles), n.type === "Leaf" && n.value !== void 0 && (l.value = n.value); r.length > 0 && r[r.length - 1].level >= n.level; )
      r.pop();
    if (r.length === 0)
      a.push(l);
    else {
      const o = r[r.length - 1].node;
      o.children ? o.children.push(l) : o.children = [l];
    }
    n.type !== "Leaf" && r.push({ node: l, level: n.level });
  }), a;
}
b(re, "buildHierarchy");
var Je = /* @__PURE__ */ b((t, a) => {
  Ce(t, a);
  const r = [];
  for (const o of t.TreemapRows ?? [])
    o.$type === "ClassDefStatement" && a.addClass(o.className ?? "", o.styleText ?? "");
  for (const o of t.TreemapRows ?? []) {
    const d = o.item;
    if (!d)
      continue;
    const h = o.indent ? parseInt(o.indent) : 0, f = Qe(d), i = d.classSelector ? a.getStylesForClass(d.classSelector) : [], p = i.length > 0 ? i : void 0, C = {
      level: h,
      name: f,
      type: d.$type,
      value: d.value,
      classSelector: d.classSelector,
      cssCompiledStyles: p
    };
    r.push(C);
  }
  const n = re(r), l = /* @__PURE__ */ b((o, d) => {
    for (const h of o)
      a.addNode(h, d), h.children && h.children.length > 0 && l(h.children, d + 1);
  }, "addNodesRecursively");
  l(n, 0);
}, "populate"), Qe = /* @__PURE__ */ b((t) => t.name ? String(t.name) : "", "getItemName"), ne = {
  // @ts-expect-error - TreeMapDB is not assignable to DiagramDB
  parser: { yy: void 0 },
  parse: /* @__PURE__ */ b(async (t) => {
    var a;
    try {
      const r = await be("treemap", t);
      Q.debug("Treemap AST:", r);
      const n = (a = ne.parser) == null ? void 0 : a.yy;
      if (!(n instanceof ae))
        throw new Error(
          "parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
        );
      Je(r, n);
    } catch (r) {
      throw Q.error("Error parsing treemap:", r), r;
    }
  }, "parse")
}, Ze = 10, P = 10, V = 25, et = /* @__PURE__ */ b((t, a, r, n) => {
  const l = n.db, o = l.getConfig(), d = o.padding ?? Ze, h = l.getDiagramTitle(), f = l.getRoot(), { themeVariables: i } = Z();
  if (!f)
    return;
  const p = h ? 30 : 0, C = ce(a), s = o.nodeWidth ? o.nodeWidth * P : 960, v = o.nodeHeight ? o.nodeHeight * P : 500, x = s, S = v + p;
  C.attr("viewBox", `0 0 ${x} ${S}`), de(C, S, x, o.useMaxWidth);
  let u;
  try {
    const e = o.valueFormat || ",";
    if (e === "$0,0")
      u = /* @__PURE__ */ b((c) => "$" + E(",")(c), "valueFormat");
    else if (e.startsWith("$") && e.includes(",")) {
      const c = /\.\d+/.exec(e), y = c ? c[0] : "";
      u = /* @__PURE__ */ b(($) => "$" + E("," + y)($), "valueFormat");
    } else if (e.startsWith("$")) {
      const c = e.substring(1);
      u = /* @__PURE__ */ b((y) => "$" + E(c || "")(y), "valueFormat");
    } else
      u = E(e);
  } catch (e) {
    Q.error("Error creating format function:", e), u = E(",");
  }
  const g = X().range([
    "transparent",
    i.cScale0,
    i.cScale1,
    i.cScale2,
    i.cScale3,
    i.cScale4,
    i.cScale5,
    i.cScale6,
    i.cScale7,
    i.cScale8,
    i.cScale9,
    i.cScale10,
    i.cScale11
  ]), F = X().range([
    "transparent",
    i.cScalePeer0,
    i.cScalePeer1,
    i.cScalePeer2,
    i.cScalePeer3,
    i.cScalePeer4,
    i.cScalePeer5,
    i.cScalePeer6,
    i.cScalePeer7,
    i.cScalePeer8,
    i.cScalePeer9,
    i.cScalePeer10,
    i.cScalePeer11
  ]), M = X().range([
    i.cScaleLabel0,
    i.cScaleLabel1,
    i.cScaleLabel2,
    i.cScaleLabel3,
    i.cScaleLabel4,
    i.cScaleLabel5,
    i.cScaleLabel6,
    i.cScaleLabel7,
    i.cScaleLabel8,
    i.cScaleLabel9,
    i.cScaleLabel10,
    i.cScaleLabel11
  ]);
  h && C.append("text").attr("x", x / 2).attr("y", p / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(h);
  const D = C.append("g").attr("transform", `translate(0, ${p})`).attr("class", "treemapContainer"), N = ee(f).sum((e) => e.value ?? 0).sort((e, c) => (c.value ?? 0) - (e.value ?? 0)), L = Ye().size([s, v]).paddingTop(
    (e) => e.children && e.children.length > 0 ? V + P : 0
  ).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? P : 0).paddingRight((e) => e.children && e.children.length > 0 ? P : 0).paddingBottom((e) => e.children && e.children.length > 0 ? P : 0).round(!0)(N), le = L.descendants().filter((e) => e.children && e.children.length > 0), W = D.selectAll(".treemapSection").data(le).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
  W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", V).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), W.append("clipPath").attr("id", (e, c) => `clip-section-${a}-${c}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", V), W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, c) => `treemapSection section${c}`).attr("fill", (e) => g(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => F(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
    if (e.depth === 0)
      return "display: none;";
    const c = B({ cssCompiledStyles: e.data.cssCompiledStyles });
    return c.nodeStyles + ";" + c.borderStyles.join(";");
  }), W.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", V / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => {
    if (e.depth === 0)
      return "display: none;";
    const c = "dominant-baseline: middle; font-size: 12px; fill:" + M(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", y = B({ cssCompiledStyles: e.data.cssCompiledStyles });
    return c + y.labelStyles.replace("color:", "fill:");
  }).each(function(e) {
    if (e.depth === 0)
      return;
    const c = U(this), y = e.data.name;
    c.text(y);
    const $ = e.x1 - e.x0, k = 6;
    let A;
    o.showValues !== !1 && e.value ? A = $ - 10 - 30 - 10 - k : A = $ - k - 6;
    const T = Math.max(15, A), w = c.node();
    if (w.getComputedTextLength() > T) {
      let m = y;
      for (; m.length > 0; ) {
        if (m = y.substring(0, m.length - 1), m.length === 0) {
          c.text("..."), w.getComputedTextLength() > T && c.text("");
          break;
        }
        if (c.text(m + "..."), w.getComputedTextLength() <= T)
          break;
      }
    }
  }), o.showValues !== !1 && W.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", V / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? u(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
    if (e.depth === 0)
      return "display: none;";
    const c = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + M(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", y = B({ cssCompiledStyles: e.data.cssCompiledStyles });
    return c + y.labelStyles.replace("color:", "fill:");
  });
  const se = L.leaves(), G = D.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class", (e, c) => `treemapNode treemapLeafGroup leaf${c}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
  G.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? g(e.parent.data.name) : g(e.data.name)).attr("style", (e) => B({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? g(e.parent.data.name) : g(e.data.name)).attr("stroke-width", 3), G.append("clipPath").attr("id", (e, c) => `clip-${a}-${c}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), G.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
    const c = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + M(e.data.name) + ";", y = B({ cssCompiledStyles: e.data.cssCompiledStyles });
    return c + y.labelStyles.replace("color:", "fill:");
  }).attr("clip-path", (e, c) => `url(#clip-${a}-${c})`).text((e) => e.data.name).each(function(e) {
    const c = U(this), y = e.x1 - e.x0, $ = e.y1 - e.y0, k = c.node(), A = 4, T = y - 2 * A, w = $ - 2 * A;
    if (T < 10 || w < 10) {
      c.style("display", "none");
      return;
    }
    let m = parseInt(c.style("font-size"), 10);
    const z = 8, I = 28, j = 0.6, R = 6, q = 2;
    for (; k.getComputedTextLength() > T && m > z; )
      m--, c.style("font-size", `${m}px`);
    let O = Math.max(
      R,
      Math.min(I, Math.round(m * j))
    ), te = m + q + O;
    for (; te > w && m > z && (m--, O = Math.max(
      R,
      Math.min(I, Math.round(m * j))
    ), !(O < R && m === z)); )
      c.style("font-size", `${m}px`), te = m + q + O;
    c.style("font-size", `${m}px`), (k.getComputedTextLength() > T || m < z || w < m) && c.style("display", "none");
  }), o.showValues !== !1 && G.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
    return (e.y1 - e.y0) / 2;
  }).attr("style", (e) => {
    const c = "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + M(e.data.name) + ";", y = B({ cssCompiledStyles: e.data.cssCompiledStyles });
    return c + y.labelStyles.replace("color:", "fill:");
  }).attr("clip-path", (e, c) => `url(#clip-${a}-${c})`).text((e) => e.value ? u(e.value) : "").each(function(e) {
    const c = U(this), y = this.parentNode;
    if (!y) {
      c.style("display", "none");
      return;
    }
    const $ = U(y).select(".treemapLabel");
    if ($.empty() || $.style("display") === "none") {
      c.style("display", "none");
      return;
    }
    const k = parseFloat($.style("font-size")), A = 28, T = 0.6, w = 6, m = 2, z = Math.max(
      w,
      Math.min(A, Math.round(k * T))
    );
    c.style("font-size", `${z}px`);
    const I = (e.y1 - e.y0) / 2 + k / 2 + m;
    c.attr("y", I);
    const j = e.x1 - e.x0, R = e.y1 - e.y0 - 4, q = j - 8;
    c.node().getComputedTextLength() > q || I + z > R || z < w ? c.style("display", "none") : c.style("display", null);
  });
  const oe = o.diagramPadding ?? 8;
  ve(C, oe, "flowchart", (o == null ? void 0 : o.useMaxWidth) || !1);
}, "draw"), tt = /* @__PURE__ */ b(function(t, a) {
  return a.db.getClasses();
}, "getClasses"), at = { draw: et, getClasses: tt }, rt = {
  sectionStrokeColor: "black",
  sectionStrokeWidth: "1",
  sectionFillColor: "#efefef",
  leafStrokeColor: "black",
  leafStrokeWidth: "1",
  leafFillColor: "#efefef",
  labelFontSize: "12px",
  valueFontSize: "10px",
  titleFontSize: "14px"
}, nt = /* @__PURE__ */ b(({
  treemap: t
} = {}) => {
  const a = ie(), r = Z(), n = J(a, r.themeVariables), l = J(rt, t), o = l.titleColor ?? n.titleColor, d = l.labelColor ?? n.textColor, h = l.valueColor ?? n.textColor;
  return `
  .treemapNode.section {
    stroke: ${l.sectionStrokeColor};
    stroke-width: ${l.sectionStrokeWidth};
    fill: ${l.sectionFillColor};
  }
  .treemapNode.leaf {
    stroke: ${l.leafStrokeColor};
    stroke-width: ${l.leafStrokeWidth};
    fill: ${l.leafFillColor};
  }
  .treemapLabel {
    fill: ${d};
    font-size: ${l.labelFontSize};
  }
  .treemapValue {
    fill: ${h};
    font-size: ${l.valueFontSize};
  }
  .treemapTitle {
    fill: ${o};
    font-size: ${l.titleFontSize};
  }
  `;
}, "getStyles"), lt = nt, pt = {
  parser: ne,
  get db() {
    return new ae();
  },
  renderer: at,
  styles: lt
};
export {
  pt as diagram
};
