import { __name } from "./dist-chunks-mermaid.core-chunk-AGHRB4JF.js";
import "../d3-transition/src-selection-index.js";
import "../d3-zoom/src-transform.js";
import select from "../d3-selection/src-select.js";
var getDiagramElement = /* @__PURE__ */ __name((id, securityLevel) => {
  let sandboxElement;
  if (securityLevel === "sandbox") {
    sandboxElement = select("#i" + id);
  }
  const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
  const svg = root.select(`[id="${id}"]`);
  return svg;
}, "getDiagramElement");
export {
  getDiagramElement
};
//# sourceMappingURL=dist-chunks-mermaid.core-chunk-55IACEB6.js.map
