"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const chunkXAJISQIX = require("./dist-chunks-mermaid.core-chunk-XAJISQIX.cjs");
const chunkEXTU4WIE = require("./dist-chunks-mermaid.core-chunk-EXTU4WIE.cjs");
const chunkABZYJK2D = require("./dist-chunks-mermaid.core-chunk-ABZYJK2D.cjs");
const chunkAGHRB4JF = require("./dist-chunks-mermaid.core-chunk-AGHRB4JF.cjs");
const mermaidParser_core = require("../@mermaid-js/parser/dist-mermaid-parser.core.cjs");
var parser = {
  parse: /* @__PURE__ */ chunkAGHRB4JF.__name(async (input) => {
    const ast = await mermaidParser_core.parse("info", input);
    chunkAGHRB4JF.log.debug(ast);
  }, "parse")
};
var DEFAULT_INFO_DB = {
  version: chunkXAJISQIX.package_default.version + ""
};
var getVersion = /* @__PURE__ */ chunkAGHRB4JF.__name(() => DEFAULT_INFO_DB.version, "getVersion");
var db = {
  getVersion
};
var draw = /* @__PURE__ */ chunkAGHRB4JF.__name((text, id, version) => {
  chunkAGHRB4JF.log.debug("rendering info diagram\n" + text);
  const svg = chunkEXTU4WIE.selectSvgElement(id);
  chunkABZYJK2D.configureSvgSize(svg, 100, 400, true);
  const group = svg.append("g");
  group.append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${version}`);
}, "draw");
var renderer = { draw };
var diagram = {
  parser,
  db,
  renderer
};
exports.diagram = diagram;
//# sourceMappingURL=dist-chunks-mermaid.core-infoDiagram-WHAUD3N6.cjs.map
