UNPKG

@hpcc-js/observablehq-compiler

Version:
17 lines (16 loc) 653 B
import "./chunk-rwCFCtyI.js"; import e from "https://cdn.jsdelivr.net/npm/mermaid/+esm"; //#region ../../node_modules/@observablehq/notebook-kit/dist/src/runtime/stdlib/mermaid.js var t = 0, n = getComputedStyle(document.body).getPropertyValue("color-scheme") === "dark" ? "dark" : "neutral"; e.initialize({ startOnLoad: !1, securityLevel: "loose", theme: n }); var mermaid = async (n, ...r) => { let i = String.raw.call(String, n, ...r), a = document.createElement("div"); return a.innerHTML = (await e.render(`mermaid-${++t}`, i)).svg, a.removeChild(a.firstChild); }; //#endregion export { mermaid }; //# sourceMappingURL=mermaid-C9bD2ClL.js.map