import { w as e } from "./src-BEYP07TO.js";
import { r as t } from "./chunk-GEFDOKGD-bXEkwPrJ.js";
import { n, r } from "./src-hxErHTV1.js";
import { B as i, C as a, V as o, W as s, _ as c, a as l, c as u, d, v as f, y as p } from "./chunk-7R4GIKGN-DiZ1HYFd.js";
import { t as m } from "./ordinal-BKo-UFaW.js";
import { t as h } from "./defaultLocale-Cql_qCPq.js";
import { t as g } from "./chunk-HHEYEP7N-BdiTBCvb.js";
import { t as _ } from "./chunk-4BX2VUAB-CL-dnlxR.js";
import { t as v } from "./mermaid-parser.core-Bd7Ghv5c.js";
import { t as y } from "./chunk-KX2RTZJC-DopwIbE1.js";
import { i as b, n as x } from "./chunk-PQ6SQG4A-DPz_e-Es.js";
//#region node_modules/d3-hierarchy/src/hierarchy/count.js
function S(e) {
	var t = 0, n = e.children, r = n && n.length;
	if (!r) t = 1;
	else for (; --r >= 0;) t += n[r].value;
	e.value = t;
}
function C() {
	return this.eachAfter(S);
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/each.js
function w(e, t) {
	let n = -1;
	for (let r of this) e.call(t, r, ++n, this);
	return this;
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/eachBefore.js
function T(e, t) {
	for (var n = this, r = [n], i, a, o = -1; n = r.pop();) if (e.call(t, n, ++o, this), i = n.children) for (a = i.length - 1; a >= 0; --a) r.push(i[a]);
	return this;
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/eachAfter.js
function E(e, t) {
	for (var n = this, r = [n], i = [], a, o, s, c = -1; n = r.pop();) if (i.push(n), a = n.children) for (o = 0, s = a.length; o < s; ++o) r.push(a[o]);
	for (; n = i.pop();) e.call(t, n, ++c, this);
	return this;
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/find.js
function D(e, t) {
	let n = -1;
	for (let r of this) if (e.call(t, r, ++n, this)) return r;
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/sum.js
function O(e) {
	return this.eachAfter(function(t) {
		for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
		t.value = n;
	});
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/sort.js
function k(e) {
	return this.eachBefore(function(t) {
		t.children && t.children.sort(e);
	});
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/path.js
function A(e) {
	for (var t = this, n = j(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
	for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
	return r;
}
function j(e, t) {
	if (e === t) return e;
	var n = e.ancestors(), r = t.ancestors(), i = null;
	for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
	return i;
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/ancestors.js
function M() {
	for (var e = this, t = [e]; e = e.parent;) t.push(e);
	return t;
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/descendants.js
function N() {
	return Array.from(this);
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/leaves.js
function P() {
	var e = [];
	return this.eachBefore(function(t) {
		t.children || e.push(t);
	}), e;
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/links.js
function F() {
	var e = this, t = [];
	return e.each(function(n) {
		n !== e && t.push({
			source: n.parent,
			target: n
		});
	}), t;
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/iterator.js
function* I() {
	var e = this, t, n = [e], r, i, a;
	do
		for (t = n.reverse(), n = []; e = t.pop();) if (yield e, r = e.children) for (i = 0, a = r.length; i < a; ++i) n.push(r[i]);
	while (n.length);
}
//#endregion
//#region node_modules/d3-hierarchy/src/hierarchy/index.js
function L(e, t) {
	e instanceof Map ? (e = [void 0, e], t === void 0 && (t = B)) : t === void 0 && (t = z);
	for (var n = new U(e), r, i = [n], a, o, s, c; r = i.pop();) if ((o = t(r.data)) && (c = (o = Array.from(o)).length)) for (r.children = o, s = c - 1; s >= 0; --s) i.push(a = o[s] = new U(o[s])), a.parent = r, a.depth = r.depth + 1;
	return n.eachBefore(H);
}
function R() {
	return L(this).eachBefore(V);
}
function z(e) {
	return e.children;
}
function B(e) {
	return Array.isArray(e) ? e[1] : null;
}
function V(e) {
	e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
}
function H(e) {
	var t = 0;
	do
		e.height = t;
	while ((e = e.parent) && e.height < ++t);
}
function U(e) {
	this.data = e, this.depth = this.height = 0, this.parent = null;
}
U.prototype = L.prototype = {
	constructor: U,
	count: C,
	each: w,
	eachAfter: E,
	eachBefore: T,
	find: D,
	sum: O,
	sort: k,
	path: A,
	ancestors: M,
	descendants: N,
	leaves: P,
	links: F,
	copy: R,
	[Symbol.iterator]: I
};
//#endregion
//#region node_modules/d3-hierarchy/src/accessors.js
function W(e) {
	if (typeof e != "function") throw Error();
	return e;
}
//#endregion
//#region node_modules/d3-hierarchy/src/constant.js
function G() {
	return 0;
}
function K(e) {
	return function() {
		return e;
	};
}
//#endregion
//#region node_modules/d3-hierarchy/src/treemap/round.js
function q(e) {
	e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
}
//#endregion
//#region node_modules/d3-hierarchy/src/treemap/dice.js
function J(e, t, n, r, i) {
	for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
}
//#endregion
//#region node_modules/d3-hierarchy/src/treemap/slice.js
function ee(e, t, n, r, i) {
	for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
}
//#endregion
//#region node_modules/d3-hierarchy/src/treemap/squarify.js
var te = (1 + Math.sqrt(5)) / 2;
function ne(e, t, n, r, i, a) {
	for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
		p = i - n, m = a - r;
		do
			g = s[d++].value;
		while (!g && d < f);
		for (_ = v = g, x = Math.max(m / p, p / m) / (h * e), S = g * g * x, b = Math.max(v / S, S / _); d < f; ++d) {
			if (g += l = s[d].value, l < _ && (_ = l), l > v && (v = l), S = g * g * x, y = Math.max(v / S, S / _), y > b) {
				g -= l;
				break;
			}
			b = y;
		}
		o.push(c = {
			value: g,
			dice: p < m,
			children: s.slice(u, d)
		}), c.dice ? J(c, n, r, i, h ? r += m * g / h : a) : ee(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
	}
	return o;
}
var re = (function e(t) {
	function n(e, n, r, i, a) {
		ne(t, e, n, r, i, a);
	}
	return n.ratio = function(t) {
		return e((t = +t) > 1 ? t : 1);
	}, n;
})(te);
//#endregion
//#region node_modules/d3-hierarchy/src/treemap/index.js
function ie() {
	var e = re, t = !1, n = 1, r = 1, i = [0], a = G, o = G, s = G, c = G, l = G;
	function u(e) {
		return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(q), e;
	}
	function d(t) {
		var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
		d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), t.x0 = r, t.y0 = u, t.x1 = d, t.y1 = f, t.children && (n = i[t.depth + 1] = a(t) / 2, r += l(t) - n, u += o(t) - n, d -= s(t) - n, f -= c(t) - n, d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), e(t, r, u, d, f));
	}
	return u.round = function(e) {
		return arguments.length ? (t = !!e, u) : t;
	}, u.size = function(e) {
		return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
	}, u.tile = function(t) {
		return arguments.length ? (e = W(t), u) : e;
	}, u.padding = function(e) {
		return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
	}, u.paddingInner = function(e) {
		return arguments.length ? (a = typeof e == "function" ? e : K(+e), u) : a;
	}, u.paddingOuter = function(e) {
		return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
	}, u.paddingTop = function(e) {
		return arguments.length ? (o = typeof e == "function" ? e : K(+e), u) : o;
	}, u.paddingRight = function(e) {
		return arguments.length ? (s = typeof e == "function" ? e : K(+e), u) : s;
	}, u.paddingBottom = function(e) {
		return arguments.length ? (c = typeof e == "function" ? e : K(+e), u) : c;
	}, u.paddingLeft = function(e) {
		return arguments.length ? (l = typeof e == "function" ? e : K(+e), u) : l;
	}, u;
}
//#endregion
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-E7M64L7V.mjs
var Y = class {
	constructor() {
		this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = o, this.getAccTitle = f, this.setDiagramTitle = s, this.getDiagramTitle = a, this.getAccDescription = c, this.setAccDescription = i;
	}
	static {
		n(this, "TreeMapDB");
	}
	getNodes() {
		return this.nodes;
	}
	getConfig() {
		let e = d, n = p();
		return t({
			...e.treemap,
			...n.treemap ?? {}
		});
	}
	addNode(e, t) {
		this.nodes.push(e), this.levels.set(e, t), t === 0 && (this.outerNodes.push(e), this.root ??= e);
	}
	getRoot() {
		return {
			name: "",
			children: this.outerNodes
		};
	}
	addClass(e, t) {
		let n = this.classes.get(e) ?? {
			id: e,
			styles: [],
			textStyles: []
		}, r = t.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
		r && r.forEach((e) => {
			x(e) && (n?.textStyles ? n.textStyles.push(e) : n.textStyles = [e]), n?.styles ? n.styles.push(e) : n.styles = [e];
		}), this.classes.set(e, n);
	}
	getClasses() {
		return this.classes;
	}
	getStylesForClass(e) {
		return this.classes.get(e)?.styles ?? [];
	}
	clear() {
		l(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
	}
};
function X(e) {
	if (!e.length) return [];
	let t = [], n = [];
	return e.forEach((e) => {
		let r = {
			name: e.name,
			children: e.type === "Leaf" ? void 0 : []
		};
		for (r.classSelector = e?.classSelector, e?.cssCompiledStyles && (r.cssCompiledStyles = e.cssCompiledStyles), e.type === "Leaf" && e.value !== void 0 && (r.value = e.value); n.length > 0 && n[n.length - 1].level >= e.level;) n.pop();
		if (n.length === 0) t.push(r);
		else {
			let e = n[n.length - 1].node;
			e.children ? e.children.push(r) : e.children = [r];
		}
		e.type !== "Leaf" && n.push({
			node: r,
			level: e.level
		});
	}), t;
}
n(X, "buildHierarchy");
var ae = /* @__PURE__ */ n((e, t) => {
	_(e, t);
	let r = [];
	for (let n of e.TreemapRows ?? []) n.$type === "ClassDefStatement" && t.addClass(n.className ?? "", n.styleText ?? "");
	for (let n of e.TreemapRows ?? []) {
		let e = n.item;
		if (!e) continue;
		let i = n.indent ? parseInt(n.indent) : 0, a = oe(e), o = e.classSelector ? t.getStylesForClass(e.classSelector) : [], s = o.length > 0 ? o : void 0, c = {
			level: i,
			name: a,
			type: e.$type,
			value: e.value,
			classSelector: e.classSelector,
			cssCompiledStyles: s
		};
		r.push(c);
	}
	let i = X(r), a = /* @__PURE__ */ n((e, n) => {
		for (let r of e) t.addNode(r, n), r.children && r.children.length > 0 && a(r.children, n + 1);
	}, "addNodesRecursively");
	a(i, 0);
}, "populate"), oe = /* @__PURE__ */ n((e) => e.name ? String(e.name) : "", "getItemName"), Z = {
	parser: { yy: void 0 },
	parse: /* @__PURE__ */ n(async (e) => {
		try {
			let t = await v("treemap", e);
			r.debug("Treemap AST:", t);
			let n = Z.parser?.yy;
			if (!(n instanceof Y)) throw 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.");
			ae(t, n);
		} catch (e) {
			throw r.error("Error parsing treemap:", e), e;
		}
	}, "parse")
}, se = 10, Q = 10, $ = 25, ce = {
	draw: /* @__PURE__ */ n((t, i, a, o) => {
		let s = o.db, c = s.getConfig(), l = c.padding ?? se, d = s.getDiagramTitle(), f = s.getRoot(), { themeVariables: _ } = p();
		if (!f) return;
		let v = d ? 30 : 0, x = g(i), S = c.nodeWidth ? c.nodeWidth * Q : 960, C = c.nodeHeight ? c.nodeHeight * Q : 500, w = S, T = C + v;
		x.attr("viewBox", `0 0 ${w} ${T}`), u(x, T, w, c.useMaxWidth);
		let E;
		try {
			let e = c.valueFormat || ",";
			if (e === "$0,0") E = /* @__PURE__ */ n((e) => "$" + h(",")(e), "valueFormat");
			else if (e.startsWith("$") && e.includes(",")) {
				let t = /\.\d+/.exec(e), r = t ? t[0] : "";
				E = /* @__PURE__ */ n((e) => "$" + h("," + r)(e), "valueFormat");
			} else if (e.startsWith("$")) {
				let t = e.substring(1);
				E = /* @__PURE__ */ n((e) => "$" + h(t || "")(e), "valueFormat");
			} else E = h(e);
		} catch (e) {
			r.error("Error creating format function:", e), E = h(",");
		}
		let D = m().range([
			"transparent",
			_.cScale0,
			_.cScale1,
			_.cScale2,
			_.cScale3,
			_.cScale4,
			_.cScale5,
			_.cScale6,
			_.cScale7,
			_.cScale8,
			_.cScale9,
			_.cScale10,
			_.cScale11
		]), O = m().range([
			"transparent",
			_.cScalePeer0,
			_.cScalePeer1,
			_.cScalePeer2,
			_.cScalePeer3,
			_.cScalePeer4,
			_.cScalePeer5,
			_.cScalePeer6,
			_.cScalePeer7,
			_.cScalePeer8,
			_.cScalePeer9,
			_.cScalePeer10,
			_.cScalePeer11
		]), k = m().range([
			_.cScaleLabel0,
			_.cScaleLabel1,
			_.cScaleLabel2,
			_.cScaleLabel3,
			_.cScaleLabel4,
			_.cScaleLabel5,
			_.cScaleLabel6,
			_.cScaleLabel7,
			_.cScaleLabel8,
			_.cScaleLabel9,
			_.cScaleLabel10,
			_.cScaleLabel11
		]);
		d && x.append("text").attr("x", w / 2).attr("y", v / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
		let A = x.append("g").attr("transform", `translate(0, ${v})`).attr("class", "treemapContainer"), j = L(f).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), M = ie().size([S, C]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(l).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(j), N = M.descendants().filter((e) => e.children && e.children.length > 0), P = A.selectAll(".treemapSection").data(N).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
		P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => D(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => O(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
			if (e.depth === 0) return "display: none;";
			let t = b({ cssCompiledStyles: e.data.cssCompiledStyles });
			return t.nodeStyles + ";" + t.borderStyles.join(";");
		}), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(t) {
			if (t.depth === 0) return;
			let n = e(this), r = t.data.name;
			n.text(r);
			let i = t.x1 - t.x0, a;
			a = c.showValues !== !1 && t.value ? i - 10 - 30 - 10 - 6 : i - 6 - 6;
			let o = Math.max(15, a), s = n.node();
			if (s.getComputedTextLength() > o) {
				let e = r;
				for (; e.length > 0;) {
					if (e = r.substring(0, e.length - 1), e.length === 0) {
						n.text("..."), s.getComputedTextLength() > o && n.text("");
						break;
					}
					if (n.text(e + "..."), s.getComputedTextLength() <= o) break;
				}
			}
		}), c.showValues !== !1 && P.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? E(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
		let F = M.leaves(), I = A.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
		I.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("style", (e) => b({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("stroke-width", 3), I.append("clipPath").attr("id", (e, t) => `clip-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), I.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.data.name).each(function(t) {
			let n = e(this), r = t.x1 - t.x0, i = t.y1 - t.y0, a = n.node(), o = r - 8, s = i - 8;
			if (o < 10 || s < 10) {
				n.style("display", "none");
				return;
			}
			let c = parseInt(n.style("font-size"), 10), l = .6;
			for (; a.getComputedTextLength() > o && c > 8;) c--, n.style("font-size", `${c}px`);
			let u = Math.max(6, Math.min(28, Math.round(c * l))), d = c + 2 + u;
			for (; d > s && c > 8 && (c--, u = Math.max(6, Math.min(28, Math.round(c * l))), !(u < 6 && c === 8));) n.style("font-size", `${c}px`), d = c + 2 + u;
			n.style("font-size", `${c}px`), (a.getComputedTextLength() > o || c < 8 || s < c) && n.style("display", "none");
		}), c.showValues !== !1 && I.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) => "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(e.data.name) + ";" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.value ? E(e.value) : "").each(function(t) {
			let n = e(this), r = this.parentNode;
			if (!r) {
				n.style("display", "none");
				return;
			}
			let i = e(r).select(".treemapLabel");
			if (i.empty() || i.style("display") === "none") {
				n.style("display", "none");
				return;
			}
			let a = parseFloat(i.style("font-size")), o = Math.max(6, Math.min(28, Math.round(a * .6)));
			n.style("font-size", `${o}px`);
			let s = (t.y1 - t.y0) / 2 + a / 2 + 2;
			n.attr("y", s);
			let c = t.x1 - t.x0, l = t.y1 - t.y0 - 4, u = c - 8;
			n.node().getComputedTextLength() > u || s + o > l || o < 6 ? n.style("display", "none") : n.style("display", null);
		}), y(x, c.diagramPadding ?? 8, "flowchart", c?.useMaxWidth || !1);
	}, "draw"),
	getClasses: /* @__PURE__ */ n(function(e, t) {
		return t.db.getClasses();
	}, "getClasses")
}, le = {
	sectionStrokeColor: "black",
	sectionStrokeWidth: "1",
	sectionFillColor: "#efefef",
	leafStrokeColor: "black",
	leafStrokeWidth: "1",
	leafFillColor: "#efefef",
	labelColor: "black",
	labelFontSize: "12px",
	valueFontSize: "10px",
	valueColor: "black",
	titleColor: "black",
	titleFontSize: "14px"
}, ue = {
	parser: Z,
	get db() {
		return new Y();
	},
	renderer: ce,
	styles: /* @__PURE__ */ n(({ treemap: e } = {}) => {
		let n = t(le, e);
		return `
  .treemapNode.section {
    stroke: ${n.sectionStrokeColor};
    stroke-width: ${n.sectionStrokeWidth};
    fill: ${n.sectionFillColor};
  }
  .treemapNode.leaf {
    stroke: ${n.leafStrokeColor};
    stroke-width: ${n.leafStrokeWidth};
    fill: ${n.leafFillColor};
  }
  .treemapLabel {
    fill: ${n.labelColor};
    font-size: ${n.labelFontSize};
  }
  .treemapValue {
    fill: ${n.valueColor};
    font-size: ${n.valueFontSize};
  }
  .treemapTitle {
    fill: ${n.titleColor};
    font-size: ${n.titleFontSize};
  }
  `;
	}, "getStyles")
};
//#endregion
export { ue as diagram };

//# sourceMappingURL=diagram-E7M64L7V-DWS26Zbm.js.map