webapp.flowDiagram-b222e15a.06ef2452.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of langgraph4j-studio Show documentation
Show all versions of langgraph4j-studio Show documentation
an **embed playground webapp** to run a Langgraph4j workflow in visual way
{"mappings":"A,S,E,C,C,C,C,C,C,C,E,O,c,C,E,E,C,I,E,I,E,W,C,E,a,C,C,E,C,I,E,A,W,iB,C,E,E,Q,C,E,Q,S,C,C,C,E,E,E,O,C,a,I,G,E,E,O,C,W,I,G,E,E,O,C,a,I,G,E,E,O,C,a,I,G,E,E,O,C,kB,I,G,I,E,E,S,E,E,SCSA,SAAS,EAAW,CAAC,CAAE,CAAC,EACtB,MAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,MAAM,AAC/B,CAEA,SAAS,EAAS,CAAC,EACjB,OAAO,EAAS,EAAE,CAAC,EAAI,IAAM,EAAS,EAAE,CAAC,EAAI,IAAM,EAAS,EAAE,IAAI,CACpE,CAEA,IAAI,EAAW,KACf,SAAS,EAAS,CAAG,EACnB,OAAO,EAAM,OAAO,GAAK,OAAO,CAAC,EAAU,OAAS,EACtD,CAEA,SAAS,EAAW,CAAG,CAAE,CAAO,EAC1B,GACF,EAAI,IAAI,CAAC,QAAS,EAEtB,CAEA,SAAS,EAAW,CAAG,CAAE,CAAO,CAAE,CAAY,EACxC,GACF,EAAI,IAAI,CAAC,QAAS,GAAS,IAAI,CAAC,QAAS,EAAe,IAAM,EAAI,IAAI,CAAC,SAE3E,CAEA,SAAS,EAAgB,CAAS,CAAE,CAAC,EACnC,IAAI,EAAQ,EAAE,KAAK,GAEnB,GAAI,EAAA,OAAA,CAAgB,GAAQ,CAC1B,IAAI,EAAa,EAAM,UAAU,CACjC,GAAI,EAAA,OAAA,CAAa,GACf,OAAO,EAAW,EAEtB,CAEA,OAAO,CACT,C,G,E,Q,S,C,C,C,E,E,E,O,C,e,I,G,I,E,E,SCzCA,SAAS,EAAa,CAAI,CAAE,CAAI,EAC9B,IAAI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UAAU,CAAC;WAC3B,EAAE,EAAQ,aAAa,EAAI,EAAQ,SAAS,CAAC;;;UAG9C,EAAE,EAAQ,UAAU,CAAC;;;WAGpB,EAAE,EAAQ,UAAU,CAAC;;;;UAItB,EAAE,EAAQ,aAAa,EAAI,EAAQ,SAAS,CAAC;WAC5C,EAAE,EAAQ,aAAa,EAAI,EAAQ,SAAS,CAAC;;;;;;;;UAQ9C,EAAE,EAAQ,OAAO,CAAC;YAChB,EAAE,EAAQ,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;UA2BvB,EAAE,EAAQ,cAAc,CAAC;;;;YAIvB,EAAE,EAAQ,SAAS,CAAC;;;;;YAKpB,EAAE,EAAQ,SAAS,CAAC;;;;;sBAKV,EAAE,EAAQ,mBAAmB,CAAC;;;wBAG5B,EAAE,EAAQ,mBAAmB,CAAC;YAC1C,EAAE,EAAQ,mBAAmB,CAAC;;;;;;;sBAOpB,EAAE,EAAK,EAAQ,mBAAmB,CAAE,IAAK;;;;;UAKrD,EAAE,EAAQ,UAAU,CAAC;YACnB,EAAE,EAAQ,aAAa,CAAC;;;;;UAK1B,EAAE,EAAQ,UAAU,CAAC;;;;WAIpB,EAAE,EAAQ,UAAU,CAAC;;;WAGrB,EAAE,EAAQ,UAAU,CAAC;;;;;;;;iBAQf,EAAE,EAAQ,UAAU,CAAC;;gBAEtB,EAAE,EAAQ,aAAa,CAAC;sBAClB,EAAE,EAAQ,OAAO,CAAC;;;;;;;;;UAS9B,EAAE,EAAQ,SAAS,CAAC;;AAE9B,CAAC,A","sources":["","node_modules/dagre-d3-es/src/dagre-js/util.js","node_modules/dagre-d3-es/src/dagre-js/label/add-html-label.js","node_modules/mermaid/dist/styles-483fbfea.js"],"sourcesContent":["\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n var $parcel$global = globalThis;\n var parcelRequire = $parcel$global[\"parcelRequire0031\"];\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"fUGrY\", function(module, exports) {\n\n$parcel$export(module.exports, \"isSubgraph\", () => $b95d03b9fe7cad19$export$1da190e1044d78cd);\n$parcel$export(module.exports, \"edgeToId\", () => $b95d03b9fe7cad19$export$9ff73e2e348048d9);\n$parcel$export(module.exports, \"applyStyle\", () => $b95d03b9fe7cad19$export$d63a6b7859608045);\n$parcel$export(module.exports, \"applyClass\", () => $b95d03b9fe7cad19$export$cb63d6b66388aeed);\n$parcel$export(module.exports, \"applyTransition\", () => $b95d03b9fe7cad19$export$c43d9bf90e88579a);\n\nvar $4VY3C = parcelRequire(\"4VY3C\");\nvar $3rtvu = parcelRequire(\"3rtvu\");\n/*\n * Returns true if the specified node in the graph is a subgraph node. A\n * subgraph node is one that contains other nodes.\n */ function $b95d03b9fe7cad19$export$1da190e1044d78cd(g, v) {\n return !!g.children(v).length;\n}\nfunction $b95d03b9fe7cad19$export$9ff73e2e348048d9(e) {\n return $b95d03b9fe7cad19$var$escapeId(e.v) + \":\" + $b95d03b9fe7cad19$var$escapeId(e.w) + \":\" + $b95d03b9fe7cad19$var$escapeId(e.name);\n}\nvar $b95d03b9fe7cad19$var$ID_DELIM = /:/g;\nfunction $b95d03b9fe7cad19$var$escapeId(str) {\n return str ? String(str).replace($b95d03b9fe7cad19$var$ID_DELIM, \"\\\\:\") : \"\";\n}\nfunction $b95d03b9fe7cad19$export$d63a6b7859608045(dom, styleFn) {\n if (styleFn) dom.attr(\"style\", styleFn);\n}\nfunction $b95d03b9fe7cad19$export$cb63d6b66388aeed(dom, classFn, otherClasses) {\n if (classFn) dom.attr(\"class\", classFn).attr(\"class\", otherClasses + \" \" + dom.attr(\"class\"));\n}\nfunction $b95d03b9fe7cad19$export$c43d9bf90e88579a(selection, g) {\n var graph = g.graph();\n if ($3rtvu.default(graph)) {\n var transition = graph.transition;\n if ($4VY3C.default(transition)) return transition(selection);\n }\n return selection;\n}\n\n});\n\nparcelRegister(\"ilMBJ\", function(module, exports) {\n\n$parcel$export(module.exports, \"addHtmlLabel\", () => $d5bfe49ac3236653$export$47f5f76cd1373ca6);\n\nvar $fUGrY = parcelRequire(\"fUGrY\");\nfunction $d5bfe49ac3236653$export$47f5f76cd1373ca6(root, node) {\n var fo = root.append(\"foreignObject\").attr(\"width\", \"100000\");\n var div = fo.append(\"xhtml:div\");\n div.attr(\"xmlns\", \"http://www.w3.org/1999/xhtml\");\n var label = node.label;\n switch(typeof label){\n case \"function\":\n div.insert(label);\n break;\n case \"object\":\n // Currently we assume this is a DOM object.\n div.insert(function() {\n return label;\n });\n break;\n default:\n div.html(label);\n }\n $fUGrY.applyStyle(div, node.labelStyle);\n div.style(\"display\", \"inline-block\");\n // Fix for firefox\n div.style(\"white-space\", \"nowrap\");\n var client = div.node().getBoundingClientRect();\n fo.attr(\"width\", client.width).attr(\"height\", client.height);\n return fo;\n}\n\n});\n\nparcelRegister(\"5MNkI\", function(module, exports) {\n\n$parcel$export(module.exports, \"f\", () => $4367b3fda0e7df52$export$2d1720544b23b823);\n$parcel$export(module.exports, \"a\", () => $4367b3fda0e7df52$export$407448d2b89b1813);\n\nvar $4LkSm = parcelRequire(\"4LkSm\");\n\nvar $2YFJl = parcelRequire(\"2YFJl\");\n\nvar $4jcZX = parcelRequire(\"4jcZX\");\n\nvar $4FlE0 = parcelRequire(\"4FlE0\");\n\nvar $ilMBJ = parcelRequire(\"ilMBJ\");\n\nvar $jDsny = parcelRequire(\"jDsny\");\nvar $b1Vti = parcelRequire(\"b1Vti\");\nconst $4367b3fda0e7df52$var$conf = {};\nconst $4367b3fda0e7df52$var$setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (const key of keys)$4367b3fda0e7df52$var$conf[key] = cnf[key];\n};\nconst $4367b3fda0e7df52$var$addVertices = async function(vert, g, svgId, root, doc, diagObj) {\n const svg = root.select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n for (const id of keys){\n const vertex = vert[id];\n let classStr = \"default\";\n if (vertex.classes.length > 0) classStr = vertex.classes.join(\" \");\n classStr = classStr + \" flowchart-label\";\n const styles = (0, $4jcZX.k)(vertex.styles);\n let vertexText = vertex.text !== void 0 ? vertex.text : vertex.id;\n let vertexNode;\n (0, $4jcZX.l).info(\"vertex\", vertex, vertex.labelType);\n if (vertex.labelType === \"markdown\") (0, $4jcZX.l).info(\"vertex\", vertex, vertex.labelType);\n else if ((0, $4jcZX.m)((0, $4jcZX.c)().flowchart.htmlLabels)) {\n const node = {\n label: vertexText\n };\n vertexNode = (0, $ilMBJ.addHtmlLabel)(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"text\");\n svgLabel.setAttribute(\"style\", styles.labelStyle.replace(\"color:\", \"fill:\"));\n const rows = vertexText.split((0, $4jcZX.e).lineBreakRegex);\n for (const row of rows){\n const tspan = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"tspan\");\n tspan.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\", \"xml:space\", \"preserve\");\n tspan.setAttribute(\"dy\", \"1em\");\n tspan.setAttribute(\"x\", \"1\");\n tspan.textContent = row;\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n let radius = 0;\n let _shape = \"\";\n switch(vertex.type){\n case \"round\":\n radius = 5;\n _shape = \"rect\";\n break;\n case \"square\":\n _shape = \"rect\";\n break;\n case \"diamond\":\n _shape = \"question\";\n break;\n case \"hexagon\":\n _shape = \"hexagon\";\n break;\n case \"odd\":\n _shape = \"rect_left_inv_arrow\";\n break;\n case \"lean_right\":\n _shape = \"lean_right\";\n break;\n case \"lean_left\":\n _shape = \"lean_left\";\n break;\n case \"trapezoid\":\n _shape = \"trapezoid\";\n break;\n case \"inv_trapezoid\":\n _shape = \"inv_trapezoid\";\n break;\n case \"odd_right\":\n _shape = \"rect_left_inv_arrow\";\n break;\n case \"circle\":\n _shape = \"circle\";\n break;\n case \"ellipse\":\n _shape = \"ellipse\";\n break;\n case \"stadium\":\n _shape = \"stadium\";\n break;\n case \"subroutine\":\n _shape = \"subroutine\";\n break;\n case \"cylinder\":\n _shape = \"cylinder\";\n break;\n case \"group\":\n _shape = \"rect\";\n break;\n case \"doublecircle\":\n _shape = \"doublecircle\";\n break;\n default:\n _shape = \"rect\";\n }\n const labelText = await (0, $4jcZX.r)(vertexText, (0, $4jcZX.c)());\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: labelText,\n labelType: vertex.labelType,\n rx: radius,\n ry: radius,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n link: vertex.link,\n linkTarget: vertex.linkTarget,\n tooltip: diagObj.db.getTooltip(vertex.id) || \"\",\n domId: diagObj.db.lookUpDomId(vertex.id),\n haveCallback: vertex.haveCallback,\n width: vertex.type === \"group\" ? 500 : void 0,\n dir: vertex.dir,\n type: vertex.type,\n props: vertex.props,\n padding: (0, $4jcZX.c)().flowchart.padding\n });\n (0, $4jcZX.l).info(\"setNode\", {\n labelStyle: styles.labelStyle,\n labelType: vertex.labelType,\n shape: _shape,\n labelText: labelText,\n rx: radius,\n ry: radius,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n domId: diagObj.db.lookUpDomId(vertex.id),\n width: vertex.type === \"group\" ? 500 : void 0,\n type: vertex.type,\n dir: vertex.dir,\n props: vertex.props,\n padding: (0, $4jcZX.c)().flowchart.padding\n });\n }\n};\nconst $4367b3fda0e7df52$var$addEdges = async function(edges, g, diagObj) {\n (0, $4jcZX.l).info(\"abc78 edges = \", edges);\n let cnt = 0;\n let linkIdCnt = {};\n let defaultStyle;\n let defaultLabelStyle;\n if (edges.defaultStyle !== void 0) {\n const defaultStyles = (0, $4jcZX.k)(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n for (const edge of edges){\n cnt++;\n const linkIdBase = \"L-\" + edge.start + \"-\" + edge.end;\n if (linkIdCnt[linkIdBase] === void 0) {\n linkIdCnt[linkIdBase] = 0;\n (0, $4jcZX.l).info(\"abc78 new entry\", linkIdBase, linkIdCnt[linkIdBase]);\n } else {\n linkIdCnt[linkIdBase]++;\n (0, $4jcZX.l).info(\"abc78 new entry\", linkIdBase, linkIdCnt[linkIdBase]);\n }\n let linkId = linkIdBase + \"-\" + linkIdCnt[linkIdBase];\n (0, $4jcZX.l).info(\"abc78 new link id to be used is\", linkIdBase, linkId, linkIdCnt[linkIdBase]);\n const linkNameStart = \"LS-\" + edge.start;\n const linkNameEnd = \"LE-\" + edge.end;\n const edgeData = {\n style: \"\",\n labelStyle: \"\"\n };\n edgeData.minlen = edge.length || 1;\n if (edge.type === \"arrow_open\") edgeData.arrowhead = \"none\";\n else edgeData.arrowhead = \"normal\";\n edgeData.arrowTypeStart = \"arrow_open\";\n edgeData.arrowTypeEnd = \"arrow_open\";\n switch(edge.type){\n case \"double_arrow_cross\":\n edgeData.arrowTypeStart = \"arrow_cross\";\n case \"arrow_cross\":\n edgeData.arrowTypeEnd = \"arrow_cross\";\n break;\n case \"double_arrow_point\":\n edgeData.arrowTypeStart = \"arrow_point\";\n case \"arrow_point\":\n edgeData.arrowTypeEnd = \"arrow_point\";\n break;\n case \"double_arrow_circle\":\n edgeData.arrowTypeStart = \"arrow_circle\";\n case \"arrow_circle\":\n edgeData.arrowTypeEnd = \"arrow_circle\";\n break;\n }\n let style = \"\";\n let labelStyle = \"\";\n switch(edge.stroke){\n case \"normal\":\n style = \"fill:none;\";\n if (defaultStyle !== void 0) style = defaultStyle;\n if (defaultLabelStyle !== void 0) labelStyle = defaultLabelStyle;\n edgeData.thickness = \"normal\";\n edgeData.pattern = \"solid\";\n break;\n case \"dotted\":\n edgeData.thickness = \"normal\";\n edgeData.pattern = \"dotted\";\n edgeData.style = \"fill:none;stroke-width:2px;stroke-dasharray:3;\";\n break;\n case \"thick\":\n edgeData.thickness = \"thick\";\n edgeData.pattern = \"solid\";\n edgeData.style = \"stroke-width: 3.5px;fill:none;\";\n break;\n case \"invisible\":\n edgeData.thickness = \"invisible\";\n edgeData.pattern = \"solid\";\n edgeData.style = \"stroke-width: 0;fill:none;\";\n break;\n }\n if (edge.style !== void 0) {\n const styles = (0, $4jcZX.k)(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n }\n edgeData.style = edgeData.style += style;\n edgeData.labelStyle = edgeData.labelStyle += labelStyle;\n if (edge.interpolate !== void 0) edgeData.curve = (0, $4jcZX.n)(edge.interpolate, (0, $2YFJl.curveLinear));\n else if (edges.defaultInterpolate !== void 0) edgeData.curve = (0, $4jcZX.n)(edges.defaultInterpolate, (0, $2YFJl.curveLinear));\n else edgeData.curve = (0, $4jcZX.n)($4367b3fda0e7df52$var$conf.curve, (0, $2YFJl.curveLinear));\n if (edge.text === void 0) {\n if (edge.style !== void 0) edgeData.arrowheadStyle = \"fill: #333\";\n } else {\n edgeData.arrowheadStyle = \"fill: #333\";\n edgeData.labelpos = \"c\";\n }\n edgeData.labelType = edge.labelType;\n edgeData.label = await (0, $4jcZX.r)(edge.text.replace((0, $4jcZX.e).lineBreakRegex, \"\\n\"), (0, $4jcZX.c)());\n if (edge.style === void 0) edgeData.style = edgeData.style || \"stroke: #333; stroke-width: 1.5px;fill:none;\";\n edgeData.labelStyle = edgeData.labelStyle.replace(\"color:\", \"fill:\");\n edgeData.id = linkId;\n edgeData.classes = \"flowchart-link \" + linkNameStart + \" \" + linkNameEnd;\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n }\n};\nconst $4367b3fda0e7df52$var$getClasses = function(text, diagObj) {\n return diagObj.db.getClasses();\n};\nconst $4367b3fda0e7df52$var$draw = async function(text, id, _version, diagObj) {\n (0, $4jcZX.l).info(\"Drawing flowchart\");\n let dir = diagObj.db.getDirection();\n if (dir === void 0) dir = \"TD\";\n const { securityLevel: securityLevel, flowchart: conf2 } = (0, $4jcZX.c)();\n const nodeSpacing = conf2.nodeSpacing || 50;\n const rankSpacing = conf2.rankSpacing || 50;\n let sandboxElement;\n if (securityLevel === \"sandbox\") sandboxElement = (0, $2YFJl.select)(\"#i\" + id);\n const root = securityLevel === \"sandbox\" ? (0, $2YFJl.select)(sandboxElement.nodes()[0].contentDocument.body) : (0, $2YFJl.select)(\"body\");\n const doc = securityLevel === \"sandbox\" ? sandboxElement.nodes()[0].contentDocument : document;\n const g = new $4LkSm.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 0,\n marginy: 0\n }).setDefaultEdgeLabel(function() {\n return {};\n });\n let subG;\n const subGraphs = diagObj.db.getSubGraphs();\n (0, $4jcZX.l).info(\"Subgraphs - \", subGraphs);\n for(let i2 = subGraphs.length - 1; i2 >= 0; i2--){\n subG = subGraphs[i2];\n (0, $4jcZX.l).info(\"Subgraph - \", subG);\n diagObj.db.addVertex(subG.id, {\n text: subG.title,\n type: subG.labelType\n }, \"group\", void 0, subG.classes, subG.dir);\n }\n const vert = diagObj.db.getVertices();\n const edges = diagObj.db.getEdges();\n (0, $4jcZX.l).info(\"Edges\", edges);\n let i = 0;\n for(i = subGraphs.length - 1; i >= 0; i--){\n subG = subGraphs[i];\n (0, $2YFJl.selectAll)(\"cluster\").append(\"text\");\n for(let j = 0; j < subG.nodes.length; j++){\n (0, $4jcZX.l).info(\"Setting up subgraphs\", subG.nodes[j], subG.id);\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n await $4367b3fda0e7df52$var$addVertices(vert, g, id, root, doc, diagObj);\n await $4367b3fda0e7df52$var$addEdges(edges, g);\n const svg = root.select(`[id=\"${id}\"]`);\n const element = root.select(\"#\" + id + \" g\");\n await (0, $4FlE0.r)(element, g, [\n \"point\",\n \"circle\",\n \"cross\"\n ], \"flowchart\", id);\n (0, $4jcZX.u).insertTitle(svg, \"flowchartTitleText\", conf2.titleTopMargin, diagObj.db.getDiagramTitle());\n (0, $4jcZX.o)(g, svg, conf2.diagramPadding, conf2.useMaxWidth);\n diagObj.db.indexNodes(\"subGraph\" + i);\n if (!conf2.htmlLabels) {\n const labels = doc.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (const label of labels){\n const dim = label.getBBox();\n const rect = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\");\n rect.setAttribute(\"rx\", 0);\n rect.setAttribute(\"ry\", 0);\n rect.setAttribute(\"width\", dim.width);\n rect.setAttribute(\"height\", dim.height);\n label.insertBefore(rect, label.firstChild);\n }\n }\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n if (vertex.link) {\n const node = (0, $2YFJl.select)(\"#\" + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"a\");\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"class\", vertex.classes.join(\" \"));\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"href\", vertex.link);\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"rel\", \"noopener\");\n if (securityLevel === \"sandbox\") link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"target\", \"_top\");\n else if (vertex.linkTarget) link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"target\", vertex.linkTarget);\n const linkNode = node.insert(function() {\n return link;\n }, \":first-child\");\n const shape = node.select(\".label-container\");\n if (shape) linkNode.append(function() {\n return shape.node();\n });\n const label = node.select(\".label\");\n if (label) linkNode.append(function() {\n return label.node();\n });\n }\n }\n });\n};\nconst $4367b3fda0e7df52$export$2d1720544b23b823 = {\n setConf: $4367b3fda0e7df52$var$setConf,\n addVertices: $4367b3fda0e7df52$var$addVertices,\n addEdges: $4367b3fda0e7df52$var$addEdges,\n getClasses: $4367b3fda0e7df52$var$getClasses,\n draw: $4367b3fda0e7df52$var$draw\n};\nconst $4367b3fda0e7df52$var$fade = (color, opacity)=>{\n const channel = $jDsny.default;\n const r = channel(color, \"r\");\n const g = channel(color, \"g\");\n const b = channel(color, \"b\");\n return $b1Vti.default(r, g, b, opacity);\n};\nconst $4367b3fda0e7df52$var$getStyles = (options)=>`.label {\n font-family: ${options.fontFamily};\n color: ${options.nodeTextColor || options.textColor};\n }\n .cluster-label text {\n fill: ${options.titleColor};\n }\n .cluster-label span,p {\n color: ${options.titleColor};\n }\n\n .label text,span,p {\n fill: ${options.nodeTextColor || options.textColor};\n color: ${options.nodeTextColor || options.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${options.edgeLabelBackground};\n fill: ${options.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${$4367b3fda0e7df52$var$fade(options.edgeLabelBackground, 0.5)};\n // background-color: \n }\n\n .cluster rect {\n fill: ${options.clusterBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n .cluster span,p {\n color: ${options.titleColor};\n }\n /* .cluster div {\n color: ${options.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${options.fontFamily};\n font-size: 12px;\n background: ${options.tertiaryColor};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.textColor};\n }\n`;\nconst $4367b3fda0e7df52$export$407448d2b89b1813 = $4367b3fda0e7df52$var$getStyles;\n\n});\n\n\n//# sourceMappingURL=flowDiagram-b222e15a.06ef2452.js.map\n","import * as _ from 'lodash-es';\n\n// Public utility functions\nexport { isSubgraph, edgeToId, applyStyle, applyClass, applyTransition };\n\n/*\n * Returns true if the specified node in the graph is a subgraph node. A\n * subgraph node is one that contains other nodes.\n */\nfunction isSubgraph(g, v) {\n return !!g.children(v).length;\n}\n\nfunction edgeToId(e) {\n return escapeId(e.v) + ':' + escapeId(e.w) + ':' + escapeId(e.name);\n}\n\nvar ID_DELIM = /:/g;\nfunction escapeId(str) {\n return str ? String(str).replace(ID_DELIM, '\\\\:') : '';\n}\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction applyClass(dom, classFn, otherClasses) {\n if (classFn) {\n dom.attr('class', classFn).attr('class', otherClasses + ' ' + dom.attr('class'));\n }\n}\n\nfunction applyTransition(selection, g) {\n var graph = g.graph();\n\n if (_.isPlainObject(graph)) {\n var transition = graph.transition;\n if (_.isFunction(transition)) {\n return transition(selection);\n }\n }\n\n return selection;\n}\n","import * as util from '../util.js';\n\nexport { addHtmlLabel };\n\nfunction addHtmlLabel(root, node) {\n var fo = root.append('foreignObject').attr('width', '100000');\n\n var div = fo.append('xhtml:div');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n var label = node.label;\n switch (typeof label) {\n case 'function':\n div.insert(label);\n break;\n case 'object':\n // Currently we assume this is a DOM object.\n div.insert(function () {\n return label;\n });\n break;\n default:\n div.html(label);\n }\n\n util.applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block');\n // Fix for firefox\n div.style('white-space', 'nowrap');\n\n var client = div.node().getBoundingClientRect();\n fo.attr('width', client.width).attr('height', client.height);\n\n return fo;\n}\n","import * as graphlib from \"dagre-d3-es/src/graphlib/index.js\";\nimport { curveLinear, select, selectAll } from \"d3\";\nimport { k as getStylesFromArray, l as log, m as evaluate, c as getConfig, e as common, r as renderKatex, n as interpolateToCurve, u as utils, o as setupGraphViewbox } from \"./mermaid-6dc72991.js\";\nimport { r as render } from \"./index-01f381cb.js\";\nimport { addHtmlLabel } from \"dagre-d3-es/src/dagre-js/label/add-html-label.js\";\nimport * as khroma from \"khroma\";\nconst conf = {};\nconst setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (const key of keys) {\n conf[key] = cnf[key];\n }\n};\nconst addVertices = async function(vert, g, svgId, root, doc, diagObj) {\n const svg = root.select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n for (const id of keys) {\n const vertex = vert[id];\n let classStr = \"default\";\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(\" \");\n }\n classStr = classStr + \" flowchart-label\";\n const styles = getStylesFromArray(vertex.styles);\n let vertexText = vertex.text !== void 0 ? vertex.text : vertex.id;\n let vertexNode;\n log.info(\"vertex\", vertex, vertex.labelType);\n if (vertex.labelType === \"markdown\") {\n log.info(\"vertex\", vertex, vertex.labelType);\n } else {\n if (evaluate(getConfig().flowchart.htmlLabels)) {\n const node = {\n label: vertexText\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"text\");\n svgLabel.setAttribute(\"style\", styles.labelStyle.replace(\"color:\", \"fill:\"));\n const rows = vertexText.split(common.lineBreakRegex);\n for (const row of rows) {\n const tspan = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"tspan\");\n tspan.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\", \"xml:space\", \"preserve\");\n tspan.setAttribute(\"dy\", \"1em\");\n tspan.setAttribute(\"x\", \"1\");\n tspan.textContent = row;\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n }\n let radius = 0;\n let _shape = \"\";\n switch (vertex.type) {\n case \"round\":\n radius = 5;\n _shape = \"rect\";\n break;\n case \"square\":\n _shape = \"rect\";\n break;\n case \"diamond\":\n _shape = \"question\";\n break;\n case \"hexagon\":\n _shape = \"hexagon\";\n break;\n case \"odd\":\n _shape = \"rect_left_inv_arrow\";\n break;\n case \"lean_right\":\n _shape = \"lean_right\";\n break;\n case \"lean_left\":\n _shape = \"lean_left\";\n break;\n case \"trapezoid\":\n _shape = \"trapezoid\";\n break;\n case \"inv_trapezoid\":\n _shape = \"inv_trapezoid\";\n break;\n case \"odd_right\":\n _shape = \"rect_left_inv_arrow\";\n break;\n case \"circle\":\n _shape = \"circle\";\n break;\n case \"ellipse\":\n _shape = \"ellipse\";\n break;\n case \"stadium\":\n _shape = \"stadium\";\n break;\n case \"subroutine\":\n _shape = \"subroutine\";\n break;\n case \"cylinder\":\n _shape = \"cylinder\";\n break;\n case \"group\":\n _shape = \"rect\";\n break;\n case \"doublecircle\":\n _shape = \"doublecircle\";\n break;\n default:\n _shape = \"rect\";\n }\n const labelText = await renderKatex(vertexText, getConfig());\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText,\n labelType: vertex.labelType,\n rx: radius,\n ry: radius,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n link: vertex.link,\n linkTarget: vertex.linkTarget,\n tooltip: diagObj.db.getTooltip(vertex.id) || \"\",\n domId: diagObj.db.lookUpDomId(vertex.id),\n haveCallback: vertex.haveCallback,\n width: vertex.type === \"group\" ? 500 : void 0,\n dir: vertex.dir,\n type: vertex.type,\n props: vertex.props,\n padding: getConfig().flowchart.padding\n });\n log.info(\"setNode\", {\n labelStyle: styles.labelStyle,\n labelType: vertex.labelType,\n shape: _shape,\n labelText,\n rx: radius,\n ry: radius,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n domId: diagObj.db.lookUpDomId(vertex.id),\n width: vertex.type === \"group\" ? 500 : void 0,\n type: vertex.type,\n dir: vertex.dir,\n props: vertex.props,\n padding: getConfig().flowchart.padding\n });\n }\n};\nconst addEdges = async function(edges, g, diagObj) {\n log.info(\"abc78 edges = \", edges);\n let cnt = 0;\n let linkIdCnt = {};\n let defaultStyle;\n let defaultLabelStyle;\n if (edges.defaultStyle !== void 0) {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n for (const edge of edges) {\n cnt++;\n const linkIdBase = \"L-\" + edge.start + \"-\" + edge.end;\n if (linkIdCnt[linkIdBase] === void 0) {\n linkIdCnt[linkIdBase] = 0;\n log.info(\"abc78 new entry\", linkIdBase, linkIdCnt[linkIdBase]);\n } else {\n linkIdCnt[linkIdBase]++;\n log.info(\"abc78 new entry\", linkIdBase, linkIdCnt[linkIdBase]);\n }\n let linkId = linkIdBase + \"-\" + linkIdCnt[linkIdBase];\n log.info(\"abc78 new link id to be used is\", linkIdBase, linkId, linkIdCnt[linkIdBase]);\n const linkNameStart = \"LS-\" + edge.start;\n const linkNameEnd = \"LE-\" + edge.end;\n const edgeData = { style: \"\", labelStyle: \"\" };\n edgeData.minlen = edge.length || 1;\n if (edge.type === \"arrow_open\") {\n edgeData.arrowhead = \"none\";\n } else {\n edgeData.arrowhead = \"normal\";\n }\n edgeData.arrowTypeStart = \"arrow_open\";\n edgeData.arrowTypeEnd = \"arrow_open\";\n switch (edge.type) {\n case \"double_arrow_cross\":\n edgeData.arrowTypeStart = \"arrow_cross\";\n case \"arrow_cross\":\n edgeData.arrowTypeEnd = \"arrow_cross\";\n break;\n case \"double_arrow_point\":\n edgeData.arrowTypeStart = \"arrow_point\";\n case \"arrow_point\":\n edgeData.arrowTypeEnd = \"arrow_point\";\n break;\n case \"double_arrow_circle\":\n edgeData.arrowTypeStart = \"arrow_circle\";\n case \"arrow_circle\":\n edgeData.arrowTypeEnd = \"arrow_circle\";\n break;\n }\n let style = \"\";\n let labelStyle = \"\";\n switch (edge.stroke) {\n case \"normal\":\n style = \"fill:none;\";\n if (defaultStyle !== void 0) {\n style = defaultStyle;\n }\n if (defaultLabelStyle !== void 0) {\n labelStyle = defaultLabelStyle;\n }\n edgeData.thickness = \"normal\";\n edgeData.pattern = \"solid\";\n break;\n case \"dotted\":\n edgeData.thickness = \"normal\";\n edgeData.pattern = \"dotted\";\n edgeData.style = \"fill:none;stroke-width:2px;stroke-dasharray:3;\";\n break;\n case \"thick\":\n edgeData.thickness = \"thick\";\n edgeData.pattern = \"solid\";\n edgeData.style = \"stroke-width: 3.5px;fill:none;\";\n break;\n case \"invisible\":\n edgeData.thickness = \"invisible\";\n edgeData.pattern = \"solid\";\n edgeData.style = \"stroke-width: 0;fill:none;\";\n break;\n }\n if (edge.style !== void 0) {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n }\n edgeData.style = edgeData.style += style;\n edgeData.labelStyle = edgeData.labelStyle += labelStyle;\n if (edge.interpolate !== void 0) {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (edges.defaultInterpolate !== void 0) {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n if (edge.text === void 0) {\n if (edge.style !== void 0) {\n edgeData.arrowheadStyle = \"fill: #333\";\n }\n } else {\n edgeData.arrowheadStyle = \"fill: #333\";\n edgeData.labelpos = \"c\";\n }\n edgeData.labelType = edge.labelType;\n edgeData.label = await renderKatex(edge.text.replace(common.lineBreakRegex, \"\\n\"), getConfig());\n if (edge.style === void 0) {\n edgeData.style = edgeData.style || \"stroke: #333; stroke-width: 1.5px;fill:none;\";\n }\n edgeData.labelStyle = edgeData.labelStyle.replace(\"color:\", \"fill:\");\n edgeData.id = linkId;\n edgeData.classes = \"flowchart-link \" + linkNameStart + \" \" + linkNameEnd;\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n }\n};\nconst getClasses = function(text, diagObj) {\n return diagObj.db.getClasses();\n};\nconst draw = async function(text, id, _version, diagObj) {\n log.info(\"Drawing flowchart\");\n let dir = diagObj.db.getDirection();\n if (dir === void 0) {\n dir = \"TD\";\n }\n const { securityLevel, flowchart: conf2 } = getConfig();\n const nodeSpacing = conf2.nodeSpacing || 50;\n const rankSpacing = conf2.rankSpacing || 50;\n let sandboxElement;\n if (securityLevel === \"sandbox\") {\n sandboxElement = select(\"#i\" + id);\n }\n const root = securityLevel === \"sandbox\" ? select(sandboxElement.nodes()[0].contentDocument.body) : select(\"body\");\n const doc = securityLevel === \"sandbox\" ? sandboxElement.nodes()[0].contentDocument : document;\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 0,\n marginy: 0\n }).setDefaultEdgeLabel(function() {\n return {};\n });\n let subG;\n const subGraphs = diagObj.db.getSubGraphs();\n log.info(\"Subgraphs - \", subGraphs);\n for (let i2 = subGraphs.length - 1; i2 >= 0; i2--) {\n subG = subGraphs[i2];\n log.info(\"Subgraph - \", subG);\n diagObj.db.addVertex(\n subG.id,\n { text: subG.title, type: subG.labelType },\n \"group\",\n void 0,\n subG.classes,\n subG.dir\n );\n }\n const vert = diagObj.db.getVertices();\n const edges = diagObj.db.getEdges();\n log.info(\"Edges\", edges);\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n selectAll(\"cluster\").append(\"text\");\n for (let j = 0; j < subG.nodes.length; j++) {\n log.info(\"Setting up subgraphs\", subG.nodes[j], subG.id);\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n await addVertices(vert, g, id, root, doc, diagObj);\n await addEdges(edges, g);\n const svg = root.select(`[id=\"${id}\"]`);\n const element = root.select(\"#\" + id + \" g\");\n await render(element, g, [\"point\", \"circle\", \"cross\"], \"flowchart\", id);\n utils.insertTitle(svg, \"flowchartTitleText\", conf2.titleTopMargin, diagObj.db.getDiagramTitle());\n setupGraphViewbox(g, svg, conf2.diagramPadding, conf2.useMaxWidth);\n diagObj.db.indexNodes(\"subGraph\" + i);\n if (!conf2.htmlLabels) {\n const labels = doc.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (const label of labels) {\n const dim = label.getBBox();\n const rect = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\");\n rect.setAttribute(\"rx\", 0);\n rect.setAttribute(\"ry\", 0);\n rect.setAttribute(\"width\", dim.width);\n rect.setAttribute(\"height\", dim.height);\n label.insertBefore(rect, label.firstChild);\n }\n }\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n if (vertex.link) {\n const node = select(\"#\" + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"a\");\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"class\", vertex.classes.join(\" \"));\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"href\", vertex.link);\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"rel\", \"noopener\");\n if (securityLevel === \"sandbox\") {\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"target\", \"_top\");\n } else if (vertex.linkTarget) {\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"target\", vertex.linkTarget);\n }\n const linkNode = node.insert(function() {\n return link;\n }, \":first-child\");\n const shape = node.select(\".label-container\");\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n const label = node.select(\".label\");\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\nconst flowRendererV2 = {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\nconst fade = (color, opacity) => {\n const channel = khroma.channel;\n const r = channel(color, \"r\");\n const g = channel(color, \"g\");\n const b = channel(color, \"b\");\n return khroma.rgba(r, g, b, opacity);\n};\nconst getStyles = (options) => `.label {\n font-family: ${options.fontFamily};\n color: ${options.nodeTextColor || options.textColor};\n }\n .cluster-label text {\n fill: ${options.titleColor};\n }\n .cluster-label span,p {\n color: ${options.titleColor};\n }\n\n .label text,span,p {\n fill: ${options.nodeTextColor || options.textColor};\n color: ${options.nodeTextColor || options.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${options.edgeLabelBackground};\n fill: ${options.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${fade(options.edgeLabelBackground, 0.5)};\n // background-color: \n }\n\n .cluster rect {\n fill: ${options.clusterBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n .cluster span,p {\n color: ${options.titleColor};\n }\n /* .cluster div {\n color: ${options.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${options.fontFamily};\n font-size: 12px;\n background: ${options.tertiaryColor};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.textColor};\n }\n`;\nconst flowStyles = getStyles;\nexport {\n flowStyles as a,\n flowRendererV2 as f\n};\n"],"names":["$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","parcelRequire","$parcel$global","globalThis","parcelRegister","register","module","exports","$b95d03b9fe7cad19$export$1da190e1044d78cd","$b95d03b9fe7cad19$export$9ff73e2e348048d9","$b95d03b9fe7cad19$export$d63a6b7859608045","$b95d03b9fe7cad19$export$cb63d6b66388aeed","$b95d03b9fe7cad19$export$c43d9bf90e88579a","$4VY3C","$3rtvu","g","children","length","$b95d03b9fe7cad19$var$escapeId","w","name","$b95d03b9fe7cad19$var$ID_DELIM","str","String","replace","dom","styleFn","attr","classFn","otherClasses","selection","graph","default","transition","$d5bfe49ac3236653$export$47f5f76cd1373ca6","$fUGrY","root","node","fo","append","div","label","insert","html","applyStyle","labelStyle","style","client","getBoundingClientRect","width","height","$4367b3fda0e7df52$export$2d1720544b23b823","$4367b3fda0e7df52$export$407448d2b89b1813","$4LkSm","$2YFJl","$4jcZX","$4FlE0","$ilMBJ","$jDsny","$b1Vti","$4367b3fda0e7df52$var$conf","$4367b3fda0e7df52$var$addVertices","vert","svgId","doc","diagObj","svg","select","id","keys","vertexNode","vertex","classStr","classes","join","styles","k","vertexText","text","l","info","labelType","m","c","flowchart","htmlLabels","addHtmlLabel","parentNode","removeChild","svgLabel","createElementNS","row","setAttribute","split","lineBreakRegex","tspan","setAttributeNS","textContent","appendChild","radius","_shape","type","labelText","r","setNode","shape","rx","ry","class","link","linkTarget","tooltip","db","getTooltip","domId","lookUpDomId","haveCallback","dir","props","padding","$4367b3fda0e7df52$var$addEdges","edges","defaultStyle","defaultLabelStyle","cnt","linkIdCnt","defaultStyles","edge","linkIdBase","start","end","linkId","linkNameStart","linkNameEnd","edgeData","minlen","arrowhead","arrowTypeStart","arrowTypeEnd","stroke","thickness","pattern","interpolate","curve","curveLinear","defaultInterpolate","arrowheadStyle","labelpos","setEdge","$4367b3fda0e7df52$var$draw","_version","sandboxElement","subG","getDirection","securityLevel","conf2","nodeSpacing","rankSpacing","nodes","contentDocument","body","document","Graph","multigraph","compound","setGraph","rankdir","nodesep","ranksep","marginx","marginy","setDefaultEdgeLabel","subGraphs","getSubGraphs","i2","addVertex","title","getVertices","getEdges","i","selectAll","j","setParent","element","u","insertTitle","titleTopMargin","getDiagramTitle","o","diagramPadding","useMaxWidth","indexNodes","querySelectorAll","dim","getBBox","rect","insertBefore","firstChild","forEach","key","linkNode","setConf","cnf","addVertices","addEdges","getClasses","draw","$4367b3fda0e7df52$var$fade","color","opacity","channel","b","options","fontFamily","nodeTextColor","textColor","titleColor","mainBkg","nodeBorder","arrowheadColor","lineColor","edgeLabelBackground","clusterBkg","clusterBorder","tertiaryColor","border2"],"version":3,"file":"flowDiagram-b222e15a.06ef2452.js.map"}