import { u as e } from "./chunk-GEFDOKGD-bXEkwPrJ.js";
import { n as t, r as n } from "./src-hxErHTV1.js";
import { s as r, y as i } from "./chunk-7R4GIKGN-DiZ1HYFd.js";
import { a, i as o, s } from "./chunk-KYZI473N-4Y4_4kXL.js";
import { a as c, i as l, n as u, r as d } from "./chunk-O4XLMI2P-BcKxBhcn.js";
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-GLR3WWYH.mjs
var f = {
	common: r,
	getConfig: i,
	insertCluster: o,
	insertEdge: u,
	insertEdgeLabel: d,
	insertMarkers: l,
	insertNode: a,
	interpolateToCurve: e,
	labelHelper: s,
	log: n,
	positionEdgeLabel: c
}, p = {}, m = /* @__PURE__ */ t((e) => {
	for (let t of e) p[t.name] = t;
}, "registerLayoutLoaders");
(/* @__PURE__ */ t(() => {
	m([{
		name: "dagre",
		loader: /* @__PURE__ */ t(async () => await import("./dagre-KLK3FWXG-B0rbfsw9.js"), "loader")
	}, ...[{
		name: "cose-bilkent",
		loader: /* @__PURE__ */ t(async () => await import("./cose-bilkent-S5V4N54A-DSIl5_e8.js"), "loader")
	}]]);
}, "registerDefaultLayoutLoaders"))();
var h = /* @__PURE__ */ t(async (e, t) => {
	if (!(e.layoutAlgorithm in p)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
	let n = p[e.layoutAlgorithm];
	return (await n.loader()).render(e, t, f, { algorithm: n.algorithm });
}, "render"), g = /* @__PURE__ */ t((e = "", { fallback: t = "dagre" } = {}) => {
	if (e in p) return e;
	if (t in p) return n.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
	throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
}, "getRegisteredLayoutAlgorithm");
//#endregion
export { m as n, h as r, g as t };

//# sourceMappingURL=chunk-GLR3WWYH-GIQ55uMn.js.map