@bkm016/basalt 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/README.md +275 -2
  2. package/chunk-09vr609h.js +2 -0
  3. package/chunk-0hbjv3y6.js +11 -0
  4. package/chunk-0qqb6v41.js +3753 -0
  5. package/chunk-0szjy61m.js +2 -0
  6. package/chunk-0yytz0r1.js +59 -0
  7. package/chunk-1aspj1hn.js +3 -0
  8. package/chunk-1b7gbe8g.js +10 -0
  9. package/chunk-1v7st27a.js +25 -0
  10. package/chunk-1yzt0qm0.js +2 -0
  11. package/chunk-2bb01ddq.js +16 -0
  12. package/chunk-2wkaw73s.js +9 -0
  13. package/chunk-2zqny2sy.js +2 -0
  14. package/chunk-32at88hc.js +3 -0
  15. package/chunk-3m7qwfm3.js +7 -0
  16. package/chunk-44ek81ad.js +3 -0
  17. package/chunk-45cz26ap.js +39 -0
  18. package/chunk-501zkf9b.js +3 -0
  19. package/chunk-58vz2qsq.js +2 -0
  20. package/chunk-6e49xsf5.js +3 -0
  21. package/chunk-6qertm2t.js +3 -0
  22. package/chunk-8dxzqwq3.js +2 -0
  23. package/chunk-9mmz6wt3.js +2 -0
  24. package/chunk-a3tqx584.js +10 -0
  25. package/chunk-a6r4z44b.js +2 -0
  26. package/chunk-a8nyk4k9.js +2 -0
  27. package/chunk-agntrqs9.js +2 -0
  28. package/chunk-bhqyxyap.js +3 -0
  29. package/chunk-bpw6q7g0.js +3 -0
  30. package/chunk-c25s4w6a.js +5 -0
  31. package/chunk-cv5wsd9m.js +8 -0
  32. package/chunk-d48bfd2e.js +3 -0
  33. package/chunk-dakrpbe6.js +3 -0
  34. package/chunk-dhm42y04.js +7 -0
  35. package/chunk-exnn1867.js +2 -0
  36. package/chunk-f7egr55n.js +31 -0
  37. package/chunk-g2t6t8fk.js +3 -0
  38. package/chunk-h6sw8fbt.js +5 -0
  39. package/chunk-hat3s3pr.js +3 -0
  40. package/chunk-hcn9cf6v.js +2 -0
  41. package/chunk-jhd54p1b.js +3 -0
  42. package/chunk-k7w7ac9q.js +18 -0
  43. package/chunk-kf8hq21a.js +25 -0
  44. package/chunk-kfq8wyd3.js +3 -0
  45. package/chunk-n6e43rvk.js +3 -0
  46. package/chunk-nt2gntad.js +2 -0
  47. package/chunk-pmc3y1z8.js +2 -0
  48. package/chunk-pvncysbb.js +3 -0
  49. package/chunk-q8zx3kt6.js +2 -0
  50. package/chunk-qczbfccb.js +12 -0
  51. package/chunk-qnr1f5pj.js +3 -0
  52. package/chunk-qx0m82rw.js +2 -0
  53. package/chunk-r9aatvwm.js +3 -0
  54. package/chunk-rm3kcxq9.js +20 -0
  55. package/chunk-rv06x0kn.js +7 -0
  56. package/chunk-ry0z4ev6.js +2 -0
  57. package/chunk-s37s3k24.js +12 -0
  58. package/chunk-sh74qzvt.js +5 -0
  59. package/chunk-szat3vp4.js +3 -0
  60. package/chunk-t057xfrt.js +5 -0
  61. package/chunk-tvm4zmgj.js +3 -0
  62. package/chunk-v9fea96h.js +3 -0
  63. package/chunk-vgvq3q12.js +3 -0
  64. package/chunk-vkkj4awb.js +2 -0
  65. package/chunk-vv7fp27r.js +3 -0
  66. package/chunk-wjd9fr23.js +2 -0
  67. package/chunk-wx7kdf0b.js +2 -0
  68. package/chunk-x3dnb9sz.js +3 -0
  69. package/chunk-xsbxykr4.js +2 -0
  70. package/chunk-xysny0ve.js +3 -0
  71. package/chunk-y69ewdn2.js +3 -0
  72. package/chunk-yskm0hsy.js +2 -0
  73. package/chunk-zef13k3h.js +471 -0
  74. package/cli.js +89 -0
  75. package/compiled.js +23 -0
  76. package/icon-dp9pmcvp.png +0 -0
  77. package/package.json +21 -4
  78. package/ui-test-worker.js +226 -0
  79. package/web/KaTeX_AMS-Regular-n7eqehx2.woff2 +0 -0
  80. package/web/KaTeX_Caligraphic-Bold-20r3b6fv.woff2 +0 -0
  81. package/web/KaTeX_Caligraphic-Regular-kkjm8f18.woff2 +0 -0
  82. package/web/KaTeX_Fraktur-Bold-pz5vg4t0.woff2 +0 -0
  83. package/web/KaTeX_Fraktur-Regular-a1e9wkwk.woff2 +0 -0
  84. package/web/KaTeX_Main-Bold-mcp098h8.woff2 +0 -0
  85. package/web/KaTeX_Main-BoldItalic-fy74z249.woff2 +0 -0
  86. package/web/KaTeX_Main-Italic-hw2gxy7f.woff2 +0 -0
  87. package/web/KaTeX_Main-Regular-xvp1b75c.woff2 +0 -0
  88. package/web/KaTeX_Math-BoldItalic-mf5nf33d.woff2 +0 -0
  89. package/web/KaTeX_Math-Italic-ap60jrna.woff2 +0 -0
  90. package/web/KaTeX_SansSerif-Bold-we3bymb6.woff2 +0 -0
  91. package/web/KaTeX_SansSerif-Italic-ent92bjx.woff2 +0 -0
  92. package/web/KaTeX_SansSerif-Regular-0573pbz9.woff2 +0 -0
  93. package/web/KaTeX_Script-Regular-z2rtj6vq.woff2 +0 -0
  94. package/web/KaTeX_Size1-Regular-dfr3w1hv.woff2 +0 -0
  95. package/web/KaTeX_Size2-Regular-kted78zb.woff2 +0 -0
  96. package/web/KaTeX_Size3-Regular-e6k1k5jk.woff2 +0 -0
  97. package/web/KaTeX_Size4-Regular-abedc1pd.woff2 +0 -0
  98. package/web/KaTeX_Typewriter-Regular-scw9zx1z.woff2 +0 -0
  99. package/web/apple-touch-icon-7dkm33qp.png +0 -0
  100. package/web/apple-touch-icon.png +0 -0
  101. package/web/chunk-05w4fyzc.js +1 -0
  102. package/web/chunk-0mrkjnte.js +1 -0
  103. package/web/chunk-0pbjgdgp.js +2 -0
  104. package/web/chunk-0s80zw00.js +1 -0
  105. package/web/chunk-0vt9fg48.js +2 -0
  106. package/web/chunk-20q90epj.js +2 -0
  107. package/web/chunk-22a4ety5.js +1 -0
  108. package/web/chunk-24mfx6w1.js +2 -0
  109. package/web/chunk-2j4m0bh1.js +2 -0
  110. package/web/chunk-2m12wyrb.js +16 -0
  111. package/web/chunk-2msj52w6.js +1 -0
  112. package/web/chunk-2ps6mepk.js +120 -0
  113. package/web/chunk-2pver6r4.js +1 -0
  114. package/web/chunk-2scce33n.js +1 -0
  115. package/web/chunk-37ajk6zg.js +2 -0
  116. package/web/chunk-3ee04tmm.js +200 -0
  117. package/web/chunk-3jhyzmnf.js +292 -0
  118. package/web/chunk-45fzdcgz.js +30 -0
  119. package/web/chunk-4gavbw65.js +1 -0
  120. package/web/chunk-4ks96e4r.js +1 -0
  121. package/web/chunk-4rm1vy7w.js +1 -0
  122. package/web/chunk-4v8en1yw.js +40 -0
  123. package/web/chunk-4wd9r73y.js +1 -0
  124. package/web/chunk-4wkm9fda.js +1 -0
  125. package/web/chunk-54thej0t.js +2 -0
  126. package/web/chunk-59kqahb3.js +1 -0
  127. package/web/chunk-5vw9rs4r.js +4 -0
  128. package/web/chunk-6beqrmtq.js +1 -0
  129. package/web/chunk-6m69hczt.js +2 -0
  130. package/web/chunk-70qwwwak.js +2 -0
  131. package/web/chunk-74j07k8k.js +2 -0
  132. package/web/chunk-8g239029.js +1 -0
  133. package/web/chunk-8p4tc9f4.js +70 -0
  134. package/web/chunk-90kp4pnz.js +2 -0
  135. package/web/chunk-9an7cjd9.js +291 -0
  136. package/web/chunk-9dxjafp2.js +78 -0
  137. package/web/chunk-9p12mgs6.js +2 -0
  138. package/web/chunk-9v1f6yc8.js +1 -0
  139. package/web/chunk-9yakxvjb.js +2 -0
  140. package/web/chunk-a1z5qx1r.js +36 -0
  141. package/web/chunk-a3verqw9.js +214 -0
  142. package/web/chunk-a5x2zveg.js +7 -0
  143. package/web/chunk-ad6x47yy.js +1 -0
  144. package/web/chunk-amzgyy1k.js +1 -0
  145. package/web/chunk-b1pe46zz.js +2 -0
  146. package/web/chunk-b4wbk7vc.js +217 -0
  147. package/web/chunk-bc78qf1m.js +7 -0
  148. package/web/chunk-bgnnrpna.js +89 -0
  149. package/web/chunk-bj90t5gh.js +99 -0
  150. package/web/chunk-bjkc94mv.js +1 -0
  151. package/web/chunk-ca682sm6.js +370 -0
  152. package/web/chunk-cff5hcm8.js +8 -0
  153. package/web/chunk-cg3jterp.js +2 -0
  154. package/web/chunk-d18r4m14.js +141 -0
  155. package/web/chunk-dmqtdeb4.js +1 -0
  156. package/web/chunk-dt462hk9.js +332 -0
  157. package/web/chunk-dy2gm1fs.js +1 -0
  158. package/web/chunk-dzwxgqgm.js +39 -0
  159. package/web/chunk-e32y85kx.js +1 -0
  160. package/web/chunk-e53wfgb8.js +1 -0
  161. package/web/chunk-e6jxqbv7.js +3 -0
  162. package/web/chunk-esp1mmgr.js +1 -0
  163. package/web/chunk-ew3cgdtd.js +1 -0
  164. package/web/chunk-f26smjjf.js +2 -0
  165. package/web/chunk-f91wzwtk.js +1 -0
  166. package/web/chunk-fk0dh93x.js +89 -0
  167. package/web/chunk-fm2ybfj5.js +98 -0
  168. package/web/chunk-fscafg24.js +34 -0
  169. package/web/chunk-fz06t6km.js +55 -0
  170. package/web/chunk-g1ev11wx.js +1 -0
  171. package/web/chunk-g4azyef7.js +106 -0
  172. package/web/chunk-gjq1pxw3.js +1 -0
  173. package/web/chunk-gqw3f02j.js +140 -0
  174. package/web/chunk-h5ejbf6e.js +1 -0
  175. package/web/chunk-hev4hq89.js +2 -0
  176. package/web/chunk-hfaffkrh.js +1 -0
  177. package/web/chunk-hp167dbv.js +1 -0
  178. package/web/chunk-j2vt8c8v.js +1 -0
  179. package/web/chunk-jjh5jvva.js +1 -0
  180. package/web/chunk-jrcyc9s9.js +38 -0
  181. package/web/chunk-jwzd9tzk.js +24 -0
  182. package/web/chunk-k5btcvbg.js +1 -0
  183. package/web/chunk-ka3q31t1.js +1 -0
  184. package/web/chunk-kdyjnwdx.js +2 -0
  185. package/web/chunk-kpvgecwy.js +1 -0
  186. package/web/chunk-kq40ss39.js +1 -0
  187. package/web/chunk-m2d1sp30.js +1 -0
  188. package/web/chunk-n1dmrz44.js +2 -0
  189. package/web/chunk-n90cqdvg.js +2 -0
  190. package/web/chunk-nj0cv1cq.js +257 -0
  191. package/web/chunk-nzey7cpv.js +1 -0
  192. package/web/chunk-p3b9crsa.js +2 -0
  193. package/web/chunk-pf2ab8p8.js +1 -0
  194. package/web/chunk-pxe3vna4.js +1 -0
  195. package/web/chunk-q0p5xqe1.js +84 -0
  196. package/web/chunk-q5ke7a33.js +24 -0
  197. package/web/chunk-q7dsnvpf.js +1 -0
  198. package/web/chunk-qd8bxxdj.js +1 -0
  199. package/web/chunk-qefasa1j.js +2 -0
  200. package/web/chunk-qh7265qw.js +4 -0
  201. package/web/chunk-qnaqf0cr.js +1 -0
  202. package/web/chunk-r1dnh0s8.js +1 -0
  203. package/web/chunk-r5eakmw6.js +1 -0
  204. package/web/chunk-rg426vkf.js +1 -0
  205. package/web/chunk-rpmpttbk.js +12 -0
  206. package/web/chunk-rtf2zzzv.js +1 -0
  207. package/web/chunk-ry9256r7.js +1 -0
  208. package/web/chunk-rykfak98.js +2 -0
  209. package/web/chunk-scpwc9ev.js +1 -0
  210. package/web/chunk-srrfphes.js +1 -0
  211. package/web/chunk-ss1bcb0n.js +2 -0
  212. package/web/chunk-ssy07dd2.js +1 -0
  213. package/web/chunk-t6agpn2z.js +1 -0
  214. package/web/chunk-taynqrgq.js +142 -0
  215. package/web/chunk-tgpbhzn9.js +1 -0
  216. package/web/chunk-tmvakq7n.js +19 -0
  217. package/web/chunk-tqmwd9qp.js +139 -0
  218. package/web/chunk-ts7zrf5b.js +2 -0
  219. package/web/chunk-ttg6tbwx.js +2 -0
  220. package/web/chunk-v28fx2nd.js +1 -0
  221. package/web/chunk-v5cnt7c8.js +1 -0
  222. package/web/chunk-vt40e1kp.js +1136 -0
  223. package/web/chunk-w53rba6g.js +1 -0
  224. package/web/chunk-w86n42dy.js +1 -0
  225. package/web/chunk-w880psmw.js +1 -0
  226. package/web/chunk-wptv8atc.js +2 -0
  227. package/web/chunk-wtawdeej.css +1 -0
  228. package/web/chunk-xbty0rv7.js +41 -0
  229. package/web/chunk-xet1jjy9.js +1 -0
  230. package/web/chunk-xjxv8dg8.js +169 -0
  231. package/web/chunk-xrxne80b.js +62 -0
  232. package/web/chunk-xzp7jf7e.js +2 -0
  233. package/web/chunk-y0m8hrwz.js +303 -0
  234. package/web/chunk-y49fhfda.js +7 -0
  235. package/web/chunk-yd46jhqv.js +1 -0
  236. package/web/chunk-ydtrc1ay.js +2 -0
  237. package/web/chunk-z09emmrb.js +1 -0
  238. package/web/chunk-z7dcbxws.js +1 -0
  239. package/web/chunk-zbj1trar.js +2 -0
  240. package/web/chunk-zde7mj43.js +1 -0
  241. package/web/icon-192.png +0 -0
  242. package/web/icon-512.png +0 -0
  243. package/web/icon-maskable-512.png +0 -0
  244. package/web/icon-yx2p2pye.svg +13 -0
  245. package/web/icon.svg +13 -0
  246. package/web/index.html +23 -0
  247. package/web/install.ps1 +91 -0
  248. package/web/install.sh +177 -0
  249. package/web/inter-latin-wght-normal-an0py913.woff2 +0 -0
  250. package/web/jetbrains-mono-latin-wght-normal-hj2e42wt.woff2 +0 -0
  251. package/web/manifest-txf6vfbq.webmanifest +35 -0
  252. package/web/manifest.webmanifest +35 -0
  253. package/web/source-serif-4-latin-wght-italic-ta5tqqvz.woff2 +0 -0
  254. package/web/source-serif-4-latin-wght-normal-1yyvbhsz.woff2 +0 -0
  255. package/web/sw.js +90 -0
  256. package/worker.js +2 -0
@@ -0,0 +1,2 @@
1
+ import{e}from"./chunk-y0m8hrwz.js";var hn=class{constructor(t){this.init=t,this.records=this.init()}static{e(this,"ImperativeState")}reset(){this.records=this.init()}};
2
+ export{hn};
@@ -0,0 +1 @@
1
+ var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#4d9375","activityBar.background":"#121212","activityBar.border":"#191919","activityBar.foreground":"#dbd7caee","activityBar.inactiveForeground":"#dedcd550","activityBarBadge.background":"#bfbaaa","activityBarBadge.foreground":"#121212","badge.background":"#dedcd590","badge.foreground":"#121212","breadcrumb.activeSelectionForeground":"#eeeeee18","breadcrumb.background":"#181818","breadcrumb.focusForeground":"#dbd7caee","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#121212","button.background":"#4d9375","button.foreground":"#121212","button.hoverBackground":"#4d9375","checkbox.background":"#181818","checkbox.border":"#2f363d","debugToolBar.background":"#121212","descriptionForeground":"#dedcd590","diffEditor.insertedTextBackground":"#4d937550","diffEditor.removedTextBackground":"#ab595950","dropdown.background":"#121212","dropdown.border":"#191919","dropdown.foreground":"#dbd7caee","dropdown.listBackground":"#181818","editor.background":"#121212","editor.findMatchBackground":"#e6cc7722","editor.findMatchHighlightBackground":"#e6cc7744","editor.focusedStackFrameHighlightBackground":"#b808","editor.foldBackground":"#eeeeee10","editor.foreground":"#dbd7caee","editor.inactiveSelectionBackground":"#eeeeee10","editor.lineHighlightBackground":"#181818","editor.selectionBackground":"#eeeeee18","editor.selectionHighlightBackground":"#eeeeee10","editor.stackFrameHighlightBackground":"#a707","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#5eaab5","editorBracketHighlight.foreground2":"#4d9375","editorBracketHighlight.foreground3":"#d4976c","editorBracketHighlight.foreground4":"#d9739f","editorBracketHighlight.foreground5":"#e6cc77","editorBracketHighlight.foreground6":"#6394bf","editorBracketMatch.background":"#4d937520","editorError.foreground":"#cb7676","editorGroup.border":"#191919","editorGroupHeader.tabsBackground":"#121212","editorGroupHeader.tabsBorder":"#191919","editorGutter.addedBackground":"#4d9375","editorGutter.commentRangeForeground":"#dedcd550","editorGutter.deletedBackground":"#cb7676","editorGutter.foldingControlForeground":"#dedcd590","editorGutter.modifiedBackground":"#6394bf","editorHint.foreground":"#4d9375","editorIndentGuide.activeBackground":"#ffffff30","editorIndentGuide.background":"#ffffff15","editorInfo.foreground":"#6394bf","editorInlayHint.background":"#181818","editorInlayHint.foreground":"#666666","editorLineNumber.activeForeground":"#bfbaaa","editorLineNumber.foreground":"#dedcd550","editorOverviewRuler.border":"#111","editorStickyScroll.background":"#181818","editorStickyScrollHover.background":"#181818","editorWarning.foreground":"#d4976c","editorWhitespace.foreground":"#ffffff15","editorWidget.background":"#121212","errorForeground":"#cb7676","focusBorder":"#00000000","foreground":"#dbd7caee","gitDecoration.addedResourceForeground":"#4d9375","gitDecoration.conflictingResourceForeground":"#d4976c","gitDecoration.deletedResourceForeground":"#cb7676","gitDecoration.ignoredResourceForeground":"#dedcd550","gitDecoration.modifiedResourceForeground":"#6394bf","gitDecoration.submoduleResourceForeground":"#dedcd590","gitDecoration.untrackedResourceForeground":"#5eaab5","input.background":"#181818","input.border":"#191919","input.foreground":"#dbd7caee","input.placeholderForeground":"#dedcd590","inputOption.activeBackground":"#dedcd550","list.activeSelectionBackground":"#181818","list.activeSelectionForeground":"#dbd7caee","list.focusBackground":"#181818","list.highlightForeground":"#4d9375","list.hoverBackground":"#181818","list.hoverForeground":"#dbd7caee","list.inactiveFocusBackground":"#121212","list.inactiveSelectionBackground":"#181818","list.inactiveSelectionForeground":"#dbd7caee","menu.separatorBackground":"#191919","notificationCenterHeader.background":"#121212","notificationCenterHeader.foreground":"#959da5","notifications.background":"#121212","notifications.border":"#191919","notifications.foreground":"#dbd7caee","notificationsErrorIcon.foreground":"#cb7676","notificationsInfoIcon.foreground":"#6394bf","notificationsWarningIcon.foreground":"#d4976c","panel.background":"#121212","panel.border":"#191919","panelInput.border":"#2f363d","panelTitle.activeBorder":"#4d9375","panelTitle.activeForeground":"#dbd7caee","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#121212","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#121212","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#191919","pickerGroup.foreground":"#dbd7caee","problemsErrorIcon.foreground":"#cb7676","problemsInfoIcon.foreground":"#6394bf","problemsWarningIcon.foreground":"#d4976c","progressBar.background":"#4d9375","quickInput.background":"#121212","quickInput.foreground":"#dbd7caee","quickInputList.focusBackground":"#181818","scrollbar.shadow":"#0000","scrollbarSlider.activeBackground":"#dedcd550","scrollbarSlider.background":"#dedcd510","scrollbarSlider.hoverBackground":"#dedcd550","settings.headerForeground":"#dbd7caee","settings.modifiedItemIndicator":"#4d9375","sideBar.background":"#121212","sideBar.border":"#191919","sideBar.foreground":"#bfbaaa","sideBarSectionHeader.background":"#121212","sideBarSectionHeader.border":"#191919","sideBarSectionHeader.foreground":"#dbd7caee","sideBarTitle.foreground":"#dbd7caee","statusBar.background":"#121212","statusBar.border":"#191919","statusBar.debuggingBackground":"#181818","statusBar.debuggingForeground":"#bfbaaa","statusBar.foreground":"#bfbaaa","statusBar.noFolderBackground":"#121212","statusBarItem.prominentBackground":"#181818","tab.activeBackground":"#121212","tab.activeBorder":"#191919","tab.activeBorderTop":"#dedcd590","tab.activeForeground":"#dbd7caee","tab.border":"#191919","tab.hoverBackground":"#181818","tab.inactiveBackground":"#121212","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#191919","tab.unfocusedActiveBorderTop":"#191919","tab.unfocusedHoverBackground":"#121212","terminal.ansiBlack":"#393a34","terminal.ansiBlue":"#6394bf","terminal.ansiBrightBlack":"#777777","terminal.ansiBrightBlue":"#6394bf","terminal.ansiBrightCyan":"#5eaab5","terminal.ansiBrightGreen":"#4d9375","terminal.ansiBrightMagenta":"#d9739f","terminal.ansiBrightRed":"#cb7676","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e6cc77","terminal.ansiCyan":"#5eaab5","terminal.ansiGreen":"#4d9375","terminal.ansiMagenta":"#d9739f","terminal.ansiRed":"#cb7676","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#e6cc77","terminal.foreground":"#dbd7caee","terminal.selectionBackground":"#eeeeee18","textBlockQuote.background":"#121212","textBlockQuote.border":"#191919","textCodeBlock.background":"#121212","textLink.activeForeground":"#4d9375","textLink.foreground":"#4d9375","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#121212","titleBar.activeForeground":"#bfbaaa","titleBar.border":"#181818","titleBar.inactiveBackground":"#121212","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"Vitesse Dark","name":"vitesse-dark","semanticHighlighting":true,"semanticTokenColors":{"class":"#6872ab","interface":"#5d99a9","namespace":"#db889a","property":"#b8a965","type":"#5d99a9"},"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#758575dd"}},{"scope":["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],"settings":{"foreground":"#666666"}},{"scope":["constant","entity.name.constant","variable.language","meta.definition.variable"],"settings":{"foreground":"#c99076"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#80a665"}},{"scope":"variable.parameter.function","settings":{"foreground":"#dbd7caee"}},{"scope":["entity.name.tag","tag.html"],"settings":{"foreground":"#4d9375"}},{"scope":"entity.name.function","settings":{"foreground":"#80a665"}},{"scope":["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],"settings":{"foreground":"#4d9375"}},{"scope":["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],"settings":{"foreground":"#cb7676"}},{"scope":["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#dbd7caee"}},{"scope":["string","string punctuation.section.embedded source","attribute.value"],"settings":{"foreground":"#c98a7d"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#c98a7d77"}},{"scope":["punctuation.support.type.property-name"],"settings":{"foreground":"#b8a96577"}},{"scope":"support","settings":{"foreground":"#b8a965"}},{"scope":["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],"settings":{"foreground":"#b8a965"}},{"scope":["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],"settings":{"foreground":"#bd976a"}},{"scope":["variable","identifier"],"settings":{"foreground":"#bd976a"}},{"scope":["support.type.primitive","entity.name.type"],"settings":{"foreground":"#5DA994"}},{"scope":"namespace","settings":{"foreground":"#db889a"}},{"scope":["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],"settings":{"foreground":"#cb7676"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#c98a7d"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#c4704f"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#c98a7d"}},{"scope":"string.regexp constant.character.escape","settings":{"foreground":"#e6cc77"}},{"scope":["support.constant"],"settings":{"foreground":"#c99076"}},{"scope":["keyword.operator.quantifier.regexp","constant.numeric","number"],"settings":{"foreground":"#4C9A91"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#cb7676"}},{"scope":["constant.language.boolean","constant.language"],"settings":{"foreground":"#4d9375"}},{"scope":"meta.module-reference","settings":{"foreground":"#4d9375"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#d4976c"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#4d9375"}},{"scope":"markup.quote","settings":{"foreground":"#5d99a9"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#dbd7caee"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#dbd7caee"}},{"scope":"markup.raw","settings":{"foreground":"#4d9375"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#c98a7d"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"fontStyle":"underline","foreground":"#dedcd590"}},{"scope":["type.identifier","constant.other.character-class.regexp"],"settings":{"foreground":"#6872ab"}},{"scope":["entity.other.attribute-name.html.vue"],"settings":{"foreground":"#80a665"}},{"scope":["invalid.illegal.unrecognized-tag.html"],"settings":{"fontStyle":"normal"}}],"type":"dark"}'));export{e as default};
@@ -0,0 +1,2 @@
1
+ import{e,r,B,q}from"./chunk-y0m8hrwz.js";import{X}from"./chunk-taynqrgq.js";var i={parse:e(async(t)=>{let a=await X("info",t);r.debug(a)},"parse")},s={version:"12.2.0"},p=e(()=>s.version,"getVersion"),g={getVersion:p},m=e((t,a,n)=>{r.debug(`rendering info diagram
2
+ `+t);let o=q(a);B(o,100,400,!0),o.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),v={draw:m},y={parser:i,db:g,renderer:v};export{y as diagram};
@@ -0,0 +1,36 @@
1
+ import{W}from"./chunk-b1pe46zz.js";import{e,r,D,b,O,mt,C,S,E,T,A,I,L,s,p,q,Bi,In,nt,U,Fe,Ie}from"./chunk-y0m8hrwz.js";import{X}from"./chunk-taynqrgq.js";import{lt,sr}from"./chunk-dt462hk9.js";import{Ce,Se}from"./chunk-vt40e1kp.js";var ut=Se(function(rt,st){(function(n,l){if(typeof rt==="object"&&typeof st==="object")st.exports=l(sr());else if(typeof define==="function"&&define.amd)define(["cose-base"],l);else if(typeof rt==="object")rt.cytoscapeFcose=l(sr());else n.cytoscapeFcose=l(n.coseBase)})(rt,function(t){return(()=>{var n={658:(k)=>{k.exports=Object.assign!=null?Object.assign.bind(Object):function(z){for(var v=arguments.length,N=Array(v>1?v-1:0),c=1;c<v;c++)N[c-1]=arguments[c];return N.forEach(function(y){Object.keys(y).forEach(function(d){return z[d]=y[d]})}),z}},548:(k,z,v)=>{var N=function(){function d(f,u){var g=[],i=!0,B=!1,F=void 0;try{for(var o=f[Symbol.iterator](),h;!(i=(h=o.next()).done);i=!0)if(g.push(h.value),u&&g.length===u)break}catch(R){B=!0,F=R}finally{try{if(!i&&o.return)o.return()}finally{if(B)throw F}}return g}return function(f,u){if(Array.isArray(f))return f;else if(Symbol.iterator in Object(f))return d(f,u);else throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=v(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(d){var f={};for(var u=0;u<d.length;u++)f[d[u].id()]=!0;var g=d.filter(function(i,B){if(typeof i==="number")i=B;var F=i.parent()[0];while(F!=null){if(f[F.id()])return!1;F=F.parent()[0]}return!0});return g},y.connectComponents=function(d,f,u,g){var i=new c,B=new Set,F=[],o=void 0,h=void 0,R=void 0,a=!1,P=1,H=[],M=[],V=function(){var x=d.collection();M.push(x);var Y=u[0],Z=d.collection();Z.merge(Y).merge(Y.descendants().intersection(f)),F.push(Y),Z.forEach(function(re){i.push(re),B.add(re),x.merge(re)});var Q=function(){Y=i.shift();var ue=d.collection();Y.neighborhood().nodes().forEach(function(j){if(f.intersection(Y.edgesWith(j)).length>0)ue.merge(j)});for(var Ae=0;Ae<ue.length;Ae++){var Pe=ue[Ae];if(o=u.intersection(Pe.union(Pe.ancestors())),o!=null&&!B.has(o[0])){var de=o.union(o.descendants());de.forEach(function(j){if(i.push(j),B.add(j),x.merge(j),u.has(j))F.push(j)})}}};while(i.length!=0)Q();if(x.forEach(function(re){f.intersection(re.connectedEdges()).forEach(function(ue){if(x.has(ue.source())&&x.has(ue.target()))x.merge(ue)})}),F.length==u.length)a=!0;if(!a||a&&P>1){h=F[0],R=h.connectedEdges().length,F.forEach(function(re){if(re.connectedEdges().length<R)R=re.connectedEdges().length,h=re}),H.push(h.id());var se=d.collection();se.merge(F[0]),F.forEach(function(re){se.merge(re)}),F=[],u=u.difference(se),P++}};do V();while(!a);if(g){if(H.length>0)g.set("dummy"+(g.size+1),H)}return M},y.relocateComponent=function(d,f,u){if(!u.fixedNodeConstraint){var{POSITIVE_INFINITY:g,NEGATIVE_INFINITY:i,POSITIVE_INFINITY:B,NEGATIVE_INFINITY:F}=Number;if(u.quality=="draft"){var o=!0,h=!1,R=void 0;try{for(var a=f.nodeIndexes[Symbol.iterator](),P;!(o=(P=a.next()).done);o=!0){var H=P.value,M=N(H,2),V=M[0],_=M[1],x=u.cy.getElementById(V);if(x){var Y=x.boundingBox(),Z=f.xCoords[_]-Y.w/2,Q=f.xCoords[_]+Y.w/2,se=f.yCoords[_]-Y.h/2,re=f.yCoords[_]+Y.h/2;if(Z<g)g=Z;if(Q>i)i=Q;if(se<B)B=se;if(re>F)F=re}}}catch(j){h=!0,R=j}finally{try{if(!o&&a.return)a.return()}finally{if(h)throw R}}var ue=d.x-(i+g)/2,Ae=d.y-(F+B)/2;f.xCoords=f.xCoords.map(function(j){return j+ue}),f.yCoords=f.yCoords.map(function(j){return j+Ae})}else{Object.keys(f).forEach(function(j){var oe=f[j],Ne=oe.getRect().x,ke=oe.getRect().x+oe.getRect().width,De=oe.getRect().y,xe=oe.getRect().y+oe.getRect().height;if(Ne<g)g=Ne;if(ke>i)i=ke;if(De<B)B=De;if(xe>F)F=xe});var Pe=d.x-(i+g)/2,de=d.y-(F+B)/2;Object.keys(f).forEach(function(j){var oe=f[j];oe.setCenter(oe.getCenterX()+Pe,oe.getCenterY()+de)})}}},y.calcBoundingBox=function(d,f,u,g){var{MAX_SAFE_INTEGER:i,MIN_SAFE_INTEGER:B,MAX_SAFE_INTEGER:F,MIN_SAFE_INTEGER:o}=Number,h=void 0,R=void 0,a=void 0,P=void 0,H=d.descendants().not(":parent"),M=H.length;for(var V=0;V<M;V++){var _=H[V];if(h=f[g.get(_.id())]-_.width()/2,R=f[g.get(_.id())]+_.width()/2,a=u[g.get(_.id())]-_.height()/2,P=u[g.get(_.id())]+_.height()/2,i>h)i=h;if(B<R)B=R;if(F>a)F=a;if(o<P)o=P}var x={};return x.topLeftX=i,x.topLeftY=F,x.width=B-i,x.height=o-F,x},y.calcParentsWithoutChildren=function(d,f){var u=d.collection();return f.nodes(":parent").forEach(function(g){var i=!1;if(g.children().forEach(function(B){if(B.css("display")!="none")i=!0}),!i)u.merge(g)}),u},k.exports=y},816:(k,z,v)=>{var N=v(548),c=v(140).CoSELayout,y=v(140).CoSENode,d=v(140).layoutBase.PointD,f=v(140).layoutBase.DimensionD,u=v(140).layoutBase.LayoutConstants,g=v(140).layoutBase.FDLayoutConstants,i=v(140).CoSEConstants,B=function(o,h){var{cy:R,eles:a}=o,P=a.nodes(),H=a.edges(),M=void 0,V=void 0,_=void 0,x={};if(o.randomize)M=h.nodeIndexes,V=h.xCoords,_=h.yCoords;var Y=function(j){return typeof j==="function"},Z=function(j,oe){if(Y(j))return j(oe);else return j},Q=N.calcParentsWithoutChildren(R,a),se=function de(j,oe,Ne,ke){var De=oe.length;for(var xe=0;xe<De;xe++){var J=oe[xe],Te=null;if(J.intersection(Q).length==0)Te=J.children();var ie=void 0,ve=J.layoutDimensions({nodeDimensionsIncludeLabels:ke.nodeDimensionsIncludeLabels});if(J.outerWidth()!=null&&J.outerHeight()!=null)if(ke.randomize)if(!J.isParent())ie=j.add(new y(Ne.graphManager,new d(V[M.get(J.id())]-ve.w/2,_[M.get(J.id())]-ve.h/2),new f(parseFloat(ve.w),parseFloat(ve.h))));else{var Me=N.calcBoundingBox(J,V,_,M);if(J.intersection(Q).length==0)ie=j.add(new y(Ne.graphManager,new d(Me.topLeftX,Me.topLeftY),new f(Me.width,Me.height)));else ie=j.add(new y(Ne.graphManager,new d(Me.topLeftX,Me.topLeftY),new f(parseFloat(ve.w),parseFloat(ve.h))))}else ie=j.add(new y(Ne.graphManager,new d(J.position("x")-ve.w/2,J.position("y")-ve.h/2),new f(parseFloat(ve.w),parseFloat(ve.h))));else ie=j.add(new y(this.graphManager));if(ie.id=J.data("id"),ie.nodeRepulsion=Z(ke.nodeRepulsion,J),ie.paddingLeft=parseInt(J.css("padding")),ie.paddingTop=parseInt(J.css("padding")),ie.paddingRight=parseInt(J.css("padding")),ie.paddingBottom=parseInt(J.css("padding")),ke.nodeDimensionsIncludeLabels)ie.labelWidth=J.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,ie.labelHeight=J.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,ie.labelPosVertical=J.css("text-valign"),ie.labelPosHorizontal=J.css("text-halign");if(x[J.data("id")]=ie,isNaN(ie.rect.x))ie.rect.x=0;if(isNaN(ie.rect.y))ie.rect.y=0;if(Te!=null&&Te.length>0){var ze=void 0;ze=Ne.getGraphManager().add(Ne.newGraph(),ie),de(ze,Te,Ne,ke)}}},re=function(j,oe,Ne){var ke=0,De=0;for(var xe=0;xe<Ne.length;xe++){var J=Ne[xe],Te=x[J.data("source")],ie=x[J.data("target")];if(Te&&ie&&Te!==ie&&Te.getEdgesBetween(ie).length==0){var ve=oe.add(j.newEdge(),Te,ie);ve.id=J.id(),ve.idealLength=Z(o.idealEdgeLength,J),ve.edgeElasticity=Z(o.edgeElasticity,J),ke+=ve.idealLength,De++}}if(o.idealEdgeLength!=null){if(De>0)i.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=ke/De;else if(!Y(o.idealEdgeLength))i.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=o.idealEdgeLength;else i.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=50;i.MIN_REPULSION_DIST=g.MIN_REPULSION_DIST=g.DEFAULT_EDGE_LENGTH/10,i.DEFAULT_RADIAL_SEPARATION=g.DEFAULT_EDGE_LENGTH}},ue=function(j,oe){if(oe.fixedNodeConstraint)j.constraints.fixedNodeConstraint=oe.fixedNodeConstraint;if(oe.alignmentConstraint)j.constraints.alignmentConstraint=oe.alignmentConstraint;if(oe.relativePlacementConstraint)j.constraints.relativePlacementConstraint=oe.relativePlacementConstraint};if(o.nestingFactor!=null)i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=g.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=o.nestingFactor;if(o.gravity!=null)i.DEFAULT_GRAVITY_STRENGTH=g.DEFAULT_GRAVITY_STRENGTH=o.gravity;if(o.numIter!=null)i.MAX_ITERATIONS=g.MAX_ITERATIONS=o.numIter;if(o.gravityRange!=null)i.DEFAULT_GRAVITY_RANGE_FACTOR=g.DEFAULT_GRAVITY_RANGE_FACTOR=o.gravityRange;if(o.gravityCompound!=null)i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=g.DEFAULT_COMPOUND_GRAVITY_STRENGTH=o.gravityCompound;if(o.gravityRangeCompound!=null)i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=g.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=o.gravityRangeCompound;if(o.initialEnergyOnIncremental!=null)i.DEFAULT_COOLING_FACTOR_INCREMENTAL=g.DEFAULT_COOLING_FACTOR_INCREMENTAL=o.initialEnergyOnIncremental;if(o.tilingCompareBy!=null)i.TILING_COMPARE_BY=o.tilingCompareBy;if(o.quality=="proof")u.QUALITY=2;else u.QUALITY=0;if(i.NODE_DIMENSIONS_INCLUDE_LABELS=g.NODE_DIMENSIONS_INCLUDE_LABELS=u.NODE_DIMENSIONS_INCLUDE_LABELS=o.nodeDimensionsIncludeLabels,i.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=!o.randomize,i.ANIMATE=g.ANIMATE=u.ANIMATE=o.animate,i.TILE=o.tile,i.TILING_PADDING_VERTICAL=typeof o.tilingPaddingVertical==="function"?o.tilingPaddingVertical.call():o.tilingPaddingVertical,i.TILING_PADDING_HORIZONTAL=typeof o.tilingPaddingHorizontal==="function"?o.tilingPaddingHorizontal.call():o.tilingPaddingHorizontal,i.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=!0,i.PURE_INCREMENTAL=!o.randomize,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=o.uniformNodeDimensions,o.step=="transformed")i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!1,i.APPLY_LAYOUT=!1;if(o.step=="enforced")i.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!1;if(o.step=="cose")i.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,i.ENFORCE_CONSTRAINTS=!1,i.APPLY_LAYOUT=!0;if(o.step=="all"){if(o.randomize)i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0;else i.TRANSFORM_ON_CONSTRAINT_HANDLING=!1;i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0}if(o.fixedNodeConstraint||o.alignmentConstraint||o.relativePlacementConstraint)i.TREE_REDUCTION_ON_INCREMENTAL=!1;else i.TREE_REDUCTION_ON_INCREMENTAL=!0;var Ae=new c,Pe=Ae.newGraphManager();return se(Pe.addRoot(),N.getTopMostNodes(P),Ae,o),re(Ae,Pe,H),ue(Ae,o),Ae.runLayout(),x};k.exports={coseLayout:B}},212:(k,z,v)=>{var N=function(){function o(h,R){for(var a=0;a<R.length;a++){var P=R[a];if(P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P)P.writable=!0;Object.defineProperty(h,P.key,P)}}return function(h,R,a){if(R)o(h.prototype,R);if(a)o(h,a);return h}}();function c(o,h){if(!(o instanceof h))throw TypeError("Cannot call a class as a function")}var y=v(658),d=v(548),f=v(657),u=f.spectralLayout,g=v(816),i=g.coseLayout,B=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1000,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:0.0000001,nodeRepulsion:function(h){return 4500},idealEdgeLength:function(h){return 50},edgeElasticity:function(h){return 0.45},nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),F=function(){function o(h){c(this,o),this.options=y({},B,h)}return N(o,[{key:"run",value:function(){var R=this,a=this.options,{cy:P,eles:H}=a,M=[],V=void 0,_=void 0,x=[],Y=void 0,Z=[];if(a.fixedNodeConstraint&&(!Array.isArray(a.fixedNodeConstraint)||a.fixedNodeConstraint.length==0))a.fixedNodeConstraint=void 0;if(a.alignmentConstraint){if(a.alignmentConstraint.vertical&&(!Array.isArray(a.alignmentConstraint.vertical)||a.alignmentConstraint.vertical.length==0))a.alignmentConstraint.vertical=void 0;if(a.alignmentConstraint.horizontal&&(!Array.isArray(a.alignmentConstraint.horizontal)||a.alignmentConstraint.horizontal.length==0))a.alignmentConstraint.horizontal=void 0}if(a.relativePlacementConstraint&&(!Array.isArray(a.relativePlacementConstraint)||a.relativePlacementConstraint.length==0))a.relativePlacementConstraint=void 0;var Q=a.fixedNodeConstraint||a.alignmentConstraint||a.relativePlacementConstraint;if(Q)a.tile=!1,a.packComponents=!1;var se=void 0,re=!1;if(P.layoutUtilities&&a.packComponents){if(se=P.layoutUtilities("get"),!se)se=P.layoutUtilities();re=!0}if(H.nodes().length>0)if(!re){var ue=a.eles.boundingBox();if(Z.push({x:ue.x1+ue.w/2,y:ue.y1+ue.h/2}),a.randomize){var Ae=u(a);M.push(Ae)}if(a.quality=="default"||a.quality=="proof")x.push(i(a,M[0])),d.relocateComponent(Z[0],x[0],a);else d.relocateComponent(Z[0],M[0],a)}else{var Pe=d.getTopMostNodes(a.eles.nodes());if(Y=d.connectComponents(P,a.eles,Pe),Y.forEach(function(K){var G=K.boundingBox();Z.push({x:G.x1+G.w/2,y:G.y1+G.h/2})}),a.randomize)Y.forEach(function(K){a.eles=K,M.push(u(a))});if(a.quality=="default"||a.quality=="proof"){var de=P.collection();if(a.tile){var j=new Map,oe=[],Ne=[],ke=0,De={nodeIndexes:j,xCoords:oe,yCoords:Ne},xe=[];if(Y.forEach(function(K,G){if(K.edges().length==0)K.nodes().forEach(function(pe,le){if(de.merge(K.nodes()[le]),!pe.isParent())De.nodeIndexes.set(K.nodes()[le].id(),ke++),De.xCoords.push(K.nodes()[0].position().x),De.yCoords.push(K.nodes()[0].position().y)}),xe.push(G)}),de.length>1){var J=de.boundingBox();Z.push({x:J.x1+J.w/2,y:J.y1+J.h/2}),Y.push(de),M.push(De);for(var Te=xe.length-1;Te>=0;Te--)Y.splice(xe[Te],1),M.splice(xe[Te],1),Z.splice(xe[Te],1)}}Y.forEach(function(K,G){a.eles=K,x.push(i(a,M[G])),d.relocateComponent(Z[G],x[G],a)})}else Y.forEach(function(K,G){d.relocateComponent(Z[G],M[G],a)});var ie=new Set;if(Y.length>1){var ve=[],Me=H.filter(function(K){return K.css("display")=="none"});Y.forEach(function(K,G){var pe=void 0;if(a.quality=="draft")pe=M[G].nodeIndexes;if(K.nodes().not(Me).length>0){var le={};le.edges=[],le.nodes=[];var me=void 0;if(K.nodes().not(Me).forEach(function(fe){if(a.quality=="draft")if(!fe.isParent())me=pe.get(fe.id()),le.nodes.push({x:M[G].xCoords[me]-fe.boundingbox().w/2,y:M[G].yCoords[me]-fe.boundingbox().h/2,width:fe.boundingbox().w,height:fe.boundingbox().h});else{var he=d.calcBoundingBox(fe,M[G].xCoords,M[G].yCoords,pe);le.nodes.push({x:he.topLeftX,y:he.topLeftY,width:he.width,height:he.height})}else if(x[G][fe.id()])le.nodes.push({x:x[G][fe.id()].getLeft(),y:x[G][fe.id()].getTop(),width:x[G][fe.id()].getWidth(),height:x[G][fe.id()].getHeight()})}),K.edges().forEach(function(fe){var he=fe.source(),Ee=fe.target();if(he.css("display")!="none"&&Ee.css("display")!="none"){if(a.quality=="draft"){var Be=pe.get(he.id()),et=pe.get(Ee.id()),Oe=[],Ye=[];if(he.isParent()){var We=d.calcBoundingBox(he,M[G].xCoords,M[G].yCoords,pe);Oe.push(We.topLeftX+We.width/2),Oe.push(We.topLeftY+We.height/2)}else Oe.push(M[G].xCoords[Be]),Oe.push(M[G].yCoords[Be]);if(Ee.isParent()){var Je=d.calcBoundingBox(Ee,M[G].xCoords,M[G].yCoords,pe);Ye.push(Je.topLeftX+Je.width/2),Ye.push(Je.topLeftY+Je.height/2)}else Ye.push(M[G].xCoords[et]),Ye.push(M[G].yCoords[et]);le.edges.push({startX:Oe[0],startY:Oe[1],endX:Ye[0],endY:Ye[1]})}else if(x[G][he.id()]&&x[G][Ee.id()])le.edges.push({startX:x[G][he.id()].getCenterX(),startY:x[G][he.id()].getCenterY(),endX:x[G][Ee.id()].getCenterX(),endY:x[G][Ee.id()].getCenterY()})}}),le.nodes.length>0)ve.push(le),ie.add(G)}});var ze=se.packComponents(ve,a.randomize).shifts;if(a.quality=="draft")M.forEach(function(K,G){var pe=K.xCoords.map(function(me){return me+ze[G].dx}),le=K.yCoords.map(function(me){return me+ze[G].dy});K.xCoords=pe,K.yCoords=le});else{var Ke=0;ie.forEach(function(K){Object.keys(x[K]).forEach(function(G){var pe=x[K][G];pe.setCenter(pe.getCenterX()+ze[Ke].dx,pe.getCenterY()+ze[Ke].dy)}),Ke++})}}}var je=function(G,pe){if(a.quality=="default"||a.quality=="proof"){if(typeof G==="number")G=pe;var le=void 0,me=void 0,fe=G.data("id");if(x.forEach(function(Ee){if(fe in Ee)le={x:Ee[fe].getRect().getCenterX(),y:Ee[fe].getRect().getCenterY()},me=Ee[fe]}),a.nodeDimensionsIncludeLabels){if(me.labelWidth){if(me.labelPosHorizontal=="left")le.x+=me.labelWidth/2;else if(me.labelPosHorizontal=="right")le.x-=me.labelWidth/2}if(me.labelHeight){if(me.labelPosVertical=="top")le.y+=me.labelHeight/2;else if(me.labelPosVertical=="bottom")le.y-=me.labelHeight/2}}if(le==null)le={x:G.position("x"),y:G.position("y")};return{x:le.x,y:le.y}}else{var he=void 0;if(M.forEach(function(Ee){var Be=Ee.nodeIndexes.get(G.id());if(Be!=null)he={x:Ee.xCoords[Be],y:Ee.yCoords[Be]}}),he==null)he={x:G.position("x"),y:G.position("y")};return{x:he.x,y:he.y}}};if(a.quality=="default"||a.quality=="proof"||a.randomize){var at=d.calcParentsWithoutChildren(P,H),qe=H.filter(function(K){return K.css("display")=="none"});if(a.eles=H.not(qe),H.nodes().not(":parent").not(qe).layoutPositions(R,a,je),at.length>0)at.forEach(function(K){K.position(je(K))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),o}();k.exports=F},657:(k,z,v)=>{var N=v(548),c=v(140).layoutBase.Matrix,y=v(140).layoutBase.SVD,d=function(u){var{cy:g,eles:i}=u,B=i.nodes(),F=i.nodes(":parent"),o=new Map,h=new Map,R=new Map,a=[],P=[],H=[],M=[],V=[],_=[],x=[],Y=[],Z=void 0,Q=void 0,se=1e8,re=0.000000001,{piTol:ue,samplingType:Ae,nodeSeparation:Pe}=u,de=void 0,j=function(){var ee=0,te=0,ne=!1;while(te<de){ee=Math.floor(Math.random()*Q),ne=!1;for(var ae=0;ae<te;ae++)if(M[ae]==ee){ne=!0;break}if(!ne)M[te]=ee,te++;else continue}},oe=function(ee,te,ne){var ae=[],we=0,ge=0,ce=0,Le=void 0,be=[],$e=0,_e=1;for(var Ue=0;Ue<Q;Ue++)be[Ue]=se;ae[ge]=ee,be[ee]=0;while(ge>=we){ce=ae[we++];var Xe=a[ce];for(var He=0;He<Xe.length;He++)if(Le=h.get(Xe[He]),be[Le]==se)be[Le]=be[ce]+1,ae[++ge]=Le;_[ce][te]=be[ce]*Pe}if(ne){for(var Ge=0;Ge<Q;Ge++)if(_[Ge][te]<V[Ge])V[Ge]=_[Ge][te];for(var tt=0;tt<Q;tt++)if(V[tt]>$e)$e=V[tt],_e=tt}return _e},Ne=function(ee){var te=void 0;if(!ee){j();for(var ne=0;ne<de;ne++)oe(M[ne],ne,ee,!1)}else{te=Math.floor(Math.random()*Q),Z=te;for(var ae=0;ae<Q;ae++)V[ae]=se;for(var we=0;we<de;we++)M[we]=te,te=oe(te,we,ee)}for(var ge=0;ge<Q;ge++)for(var ce=0;ce<de;ce++)_[ge][ce]*=_[ge][ce];for(var Le=0;Le<de;Le++)x[Le]=[];for(var be=0;be<de;be++)for(var $e=0;$e<de;$e++)x[be][$e]=_[M[$e]][be]},ke=function(){var ee=y.svd(x),{S:te,U:ne,V:ae}=ee,we=te[0]*te[0]*te[0],ge=[];for(var ce=0;ce<de;ce++){ge[ce]=[];for(var Le=0;Le<de;Le++)if(ge[ce][Le]=0,ce==Le)ge[ce][Le]=te[ce]/(te[ce]*te[ce]+we/(te[ce]*te[ce]))}Y=c.multMat(c.multMat(ae,ge),c.transpose(ne))},De=function(){var ee=void 0,te=void 0,ne=[],ae=[],we=[],ge=[];for(var ce=0;ce<Q;ce++)ne[ce]=Math.random(),ae[ce]=Math.random();ne=c.normalize(ne),ae=c.normalize(ae);var Le=0,be=re,$e=re,_e=void 0;while(!0){Le++;for(var Ue=0;Ue<Q;Ue++)we[Ue]=ne[Ue];if(ne=c.multGamma(c.multL(c.multGamma(we),_,Y)),ee=c.dotProduct(we,ne),ne=c.normalize(ne),be=c.dotProduct(we,ne),_e=Math.abs(be/$e),_e<=1+ue&&_e>=1)break;$e=be}for(var Xe=0;Xe<Q;Xe++)we[Xe]=ne[Xe];Le=0,$e=re;while(!0){Le++;for(var He=0;He<Q;He++)ge[He]=ae[He];if(ge=c.minusOp(ge,c.multCons(we,c.dotProduct(we,ge))),ae=c.multGamma(c.multL(c.multGamma(ge),_,Y)),te=c.dotProduct(ge,ae),ae=c.normalize(ae),be=c.dotProduct(ge,ae),_e=Math.abs(be/$e),_e<=1+ue&&_e>=1)break;$e=be}for(var Ge=0;Ge<Q;Ge++)ge[Ge]=ae[Ge];P=c.multCons(we,Math.sqrt(Math.abs(ee))),H=c.multCons(ge,Math.sqrt(Math.abs(te)))};N.connectComponents(g,i,N.getTopMostNodes(B),o),F.forEach(function(ye){N.connectComponents(g,i,N.getTopMostNodes(ye.descendants().intersection(i)),o)});var xe=0;for(var J=0;J<B.length;J++)if(!B[J].isParent())h.set(B[J].id(),xe++);var Te=!0,ie=!1,ve=void 0;try{for(var Me=o.keys()[Symbol.iterator](),ze;!(Te=(ze=Me.next()).done);Te=!0){var Ke=ze.value;h.set(Ke,xe++)}}catch(ye){ie=!0,ve=ye}finally{try{if(!Te&&Me.return)Me.return()}finally{if(ie)throw ve}}for(var je=0;je<h.size;je++)a[je]=[];F.forEach(function(ye){var ee=ye.children().intersection(i);while(ee.nodes(":childless").length==0)ee=ee.nodes()[0].children().intersection(i);var te=0,ne=ee.nodes(":childless")[0].connectedEdges().length;ee.nodes(":childless").forEach(function(ae,we){if(ae.connectedEdges().length<ne)ne=ae.connectedEdges().length,te=we}),R.set(ye.id(),ee.nodes(":childless")[te].id())}),B.forEach(function(ye){var ee=void 0;if(ye.isParent())ee=h.get(R.get(ye.id()));else ee=h.get(ye.id());ye.neighborhood().nodes().forEach(function(te){if(i.intersection(ye.edgesWith(te)).length>0)if(te.isParent())a[ee].push(R.get(te.id()));else a[ee].push(te.id())})});var at=function(ee){var te=h.get(ee),ne=void 0;o.get(ee).forEach(function(ae){if(g.getElementById(ae).isParent())ne=R.get(ae);else ne=ae;a[te].push(ne),a[h.get(ne)].push(ee)})},qe=!0,K=!1,G=void 0;try{for(var pe=o.keys()[Symbol.iterator](),le;!(qe=(le=pe.next()).done);qe=!0){var me=le.value;at(me)}}catch(ye){K=!0,G=ye}finally{try{if(!qe&&pe.return)pe.return()}finally{if(K)throw G}}Q=h.size;var fe=void 0;if(Q>2){de=Q<u.sampleSize?Q:u.sampleSize;for(var he=0;he<Q;he++)_[he]=[];for(var Ee=0;Ee<de;Ee++)Y[Ee]=[];if(u.quality=="draft"||u.step=="all")Ne(Ae),ke(),De(),fe={nodeIndexes:h,xCoords:P,yCoords:H};else h.forEach(function(ye,ee){P.push(g.getElementById(ee).position("x")),H.push(g.getElementById(ee).position("y"))}),fe={nodeIndexes:h,xCoords:P,yCoords:H};return fe}else{var Be=h.keys(),et=g.getElementById(Be.next().value),Oe=et.position(),Ye=et.outerWidth();if(P.push(Oe.x),H.push(Oe.y),Q==2){var We=g.getElementById(Be.next().value),Je=We.outerWidth();P.push(Oe.x+Ye/2+Je/2+u.idealEdgeLength),H.push(Oe.y)}return fe={nodeIndexes:h,xCoords:P,yCoords:H},fe}};k.exports={spectralLayout:d}},579:(k,z,v)=>{var N=v(212),c=function(d){if(!d)return;d("layout","fcose",N)};if(typeof cytoscape<"u")c(cytoscape);k.exports=c},140:(k)=>{k.exports=t}},l={};function w(k){var z=l[k];if(z!==void 0)return z.exports;var v=l[k]={exports:{}};return n[k](v,v.exports,w),v.exports}var m=w(579);return m})()})});var xt=Ce(ut(),1);var gt={L:"left",R:"right",T:"top",B:"bottom"},ht={L:e((t)=>`${t},${t/2} 0,${t} 0,0`,"L"),R:e((t)=>`0,${t/2} ${t},0 ${t},${t}`,"R"),T:e((t)=>`0,0 ${t},0 ${t/2},${t}`,"T"),B:e((t)=>`${t/2},0 ${t},${t} 0,${t}`,"B")},ot={L:e((t,n)=>t-n+2,"L"),R:e((t,n)=>t-2,"R"),T:e((t,n)=>t-n+2,"T"),B:e((t,n)=>t-2,"B")},kt=e(function(t){if(Re(t))return t==="L"?"R":"L";else return t==="T"?"B":"T"},"getOppositeArchitectureDirection"),vt=e(function(t){let n=t;return n==="L"||n==="R"||n==="T"||n==="B"},"isArchitectureDirection"),Re=e(function(t){let n=t;return n==="L"||n==="R"},"isArchitectureDirectionX"),Ve=e(function(t){let n=t;return n==="T"||n==="B"},"isArchitectureDirectionY"),ft=e(function(t,n){let l=Re(t)&&Ve(n),w=Ve(t)&&Re(n);return l||w},"isArchitectureDirectionXY"),Dt=e(function(t){let n=t[0],l=t[1],w=Re(n)&&Ve(l),m=Ve(n)&&Re(l);return w||m},"isArchitecturePairXY"),Rt=e(function(t){return t!=="LL"&&t!=="RR"&&t!=="TT"&&t!=="BB"},"isValidArchitectureDirectionPair"),ct=e(function(t,n){let l=`${t}${n}`;return Rt(l)?l:void 0},"getArchitectureDirectionPair"),Mt=e(function([t,n],l){let w=l[0],m=l[1];if(Re(w))if(Ve(m))return[t+(w==="L"?-1:1),n+(m==="T"?1:-1)];else return[t+(w==="L"?-1:1),n];else if(Re(m))return[t+(m==="L"?1:-1),n+(w==="T"?1:-1)];else return[t,n+(w==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Ft=e(function(t){if(t==="LT"||t==="TL")return[1,1];else if(t==="BL"||t==="LB")return[1,-1];else if(t==="BR"||t==="RB")return[-1,-1];else return[-1,1]},"getArchitectureDirectionXYFactors"),$t=e(function(t,n){if(ft(t,n))return"bend";else if(Re(t))return"horizontal";return"vertical"},"getArchitectureDirectionAlignment"),Pt=e(function(t){return t.type==="service"},"isArchitectureService"),Ot=e(function(t){return t.type==="junction"},"isArchitectureJunction"),pt=e((t,n)=>{let[l,w]=[t,n].sort();return`${JSON.stringify(l)}-${JSON.stringify(w)}`},"architectureGroupAlignmentKey"),yt=e((t)=>t.data(),"edgeData"),Qe=e((t)=>t.data(),"nodeData"),Gt=D.architecture,Et=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=S,this.getAccTitle=E,this.setDiagramTitle=I,this.getDiagramTitle=L,this.getAccDescription=A,this.setAccDescription=T,this.clear()}static{e(this,"ArchitectureDB")}setDiagramId(t){this.diagramId=t}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",C()}addService({id:t,icon:n,in:l,title:w,iconText:m}){if(this.registeredIds.has(t))throw Error(`The service id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(l!==void 0){if(t===l)throw Error(`The service [${t}] cannot be placed within itself`);if(!this.registeredIds.has(l))throw Error(`The service [${t}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(l)==="node")throw Error(`The service [${t}]'s parent is not a group`)}this.registeredIds.set(t,"node"),this.nodes.set(t,{id:t,type:"service",icon:n,iconText:m,title:w,edges:[],in:l})}getServices(){return[...this.nodes.values()].filter(Pt)}addJunction({id:t,in:n}){if(this.registeredIds.has(t))throw Error(`The junction id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(n!==void 0){if(t===n)throw Error(`The junction [${t}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The junction [${t}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(n)==="node")throw Error(`The junction [${t}]'s parent is not a group`)}this.registeredIds.set(t,"node"),this.nodes.set(t,{id:t,type:"junction",edges:[],in:n})}getJunctions(){return[...this.nodes.values()].filter(Ot)}getNodes(){return[...this.nodes.values()]}getNode(t){return this.nodes.get(t)??null}addGroup({id:t,icon:n,in:l,title:w}){if(this.registeredIds.has(t))throw Error(`The group id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(l!==void 0){if(t===l)throw Error(`The group [${t}] cannot be placed within itself`);if(!this.registeredIds.has(l))throw Error(`The group [${t}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(l)==="node")throw Error(`The group [${t}]'s parent is not a group`)}this.registeredIds.set(t,"group"),this.groups.set(t,{id:t,icon:n,title:w,in:l})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:t,rhsId:n,lhsDir:l,rhsDir:w,lhsInto:m,rhsInto:k,lhsGroup:z,rhsGroup:v,title:N}){if(!vt(l))throw Error(`Invalid direction given for left hand side of edge ${t}--${n}. Expected (L,R,T,B) got ${String(l)}`);if(!vt(w))throw Error(`Invalid direction given for right hand side of edge ${t}--${n}. Expected (L,R,T,B) got ${String(w)}`);if(!this.nodes.has(t)&&!this.groups.has(t))throw Error(`The left-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(n)&&!this.groups.has(n))throw Error(`The right-hand id [${n}] does not yet exist. Please create the service/group before declaring an edge to it.`);let c=this.nodes.get(t).in,y=this.nodes.get(n).in;if(z&&c&&y&&c==y)throw Error(`The left-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(v&&c&&y&&c==y)throw Error(`The right-hand id [${n}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let d={lhsId:t,lhsDir:l,lhsInto:m,lhsGroup:z,rhsId:n,rhsDir:w,rhsInto:k,rhsGroup:v,title:N};this.edges.push(d);let f=this.nodes.get(t),u=this.nodes.get(n);if(f&&u)f.edges.push(this.edges[this.edges.length-1]),u.edges.push(this.edges[this.edges.length-1])}getEdges(){return this.edges}addLayoutHint(t){if(t.members.length<2)throw Error(`An align directive requires at least two members; got ${t.members.length}`);let n=new Set;t.members.forEach((l)=>{if(this.registeredIds.get(l)!=="node")throw Error(`align ${t.direction} references [${l}], which is not a service or junction`);if(n.has(l))throw Error(`align ${t.direction} lists [${l}] more than once`);n.add(l)}),this.layoutHints.push(t)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let t=new Map,n=new Map;for(let[z,v]of this.nodes.entries()){let N=new Map;for(let c of v.edges){let y=this.getNode(c.lhsId)?.in,d=this.getNode(c.rhsId)?.in;if(y&&d&&y!==d){let f=$t(c.lhsDir,c.rhsDir);if(f!=="bend")t.set(pt(y,d),f)}if(c.lhsId===z){let f=ct(c.lhsDir,c.rhsDir);if(f)N.set(f,c.rhsId)}else{let f=ct(c.rhsDir,c.lhsDir);if(f)N.set(f,c.lhsId)}}n.set(z,N)}let l=new Set,w=new Set(n.keys()),m=e((z)=>{let v=new Map([[z,[0,0]]]),N=[z];while(N.length>0){let c=N.shift();if(c){l.add(c),w.delete(c);let y=n.get(c);if(!y)throw Error(`BFS error: adjacency list for id ${c} not found. Please report this as a bug.`);let d=v.get(c);if(!d)throw Error(`BFS error: position for id ${c} not found in spatial map. Please report this as a bug.`);let[f,u]=d;y.forEach((g,i)=>{if(!l.has(g))v.set(g,Mt([f,u],i)),N.push(g)})}}return v},"BFS"),k=[];while(w.size>0){let z=w.values().next().value;k.push(m(z))}this.dataStructures={adjList:n,spatialMaps:k,groupAlignments:t}}return this.dataStructures}setElementForId(t,n){this.elements.set(t,n)}getElementById(t){return this.elements.get(t)}getConfig(){return U({...Gt,...b().architecture})}getConfigField(t){return this.getConfig()[t]}},zt=e((t,n)=>{W(t,n),t.groups.map((l)=>n.addGroup(l)),t.services.map((l)=>n.addService({...l,type:"service"})),t.junctions.map((l)=>n.addJunction({...l,type:"junction"})),t.edges.map((l)=>n.addEdge(l)),t.alignments?.map((l)=>n.addLayoutHint({direction:l.direction,members:[...l.members]}))},"populateDb"),wt={parser:{yy:void 0},parse:e(async(t)=>{let n=await X("architecture",t);r.debug(n);let l=wt.parser?.yy;if(!(l instanceof Et))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");zt(n,l)},"parse")},Bt=e((t)=>`
2
+ .edge {
3
+ stroke-width: ${t.archEdgeWidth};
4
+ stroke: ${t.archEdgeColor};
5
+ fill: none;
6
+ }
7
+
8
+ .arrow {
9
+ fill: ${t.archEdgeArrowColor};
10
+ }
11
+
12
+ .node-bkg {
13
+ fill: none;
14
+ stroke: ${t.archGroupBorderColor};
15
+ stroke-width: ${t.archGroupBorderWidth};
16
+ stroke-dasharray: 8;
17
+ }
18
+ .node-icon-text {
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+
23
+ .node-icon-text > div {
24
+ color: #fff;
25
+ margin: 1px;
26
+ height: fit-content;
27
+ text-align: center;
28
+ overflow: hidden;
29
+ display: -webkit-box;
30
+ -webkit-box-orient: vertical;
31
+ }
32
+ `,"getStyles"),_t=Bt;function dt(t,n){if(t===0)return n();let l=Math.random,w=t>>>0;Math.random=function(){w=w+1831565813>>>0;let m=w;return m=Math.imul(m^m>>>15,m|1),m^=m+Math.imul(m^m>>>7,m|61),((m^m>>>14)>>>0)/4294967296};try{return n()}finally{Math.random=l}}e(dt,"withSeededRandom");var Ze=e((t)=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${t}</g>`,"wrapIcon"),it={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:Ze('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:Ze('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:Ze('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:Ze('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:Ze('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:Bi,blank:{body:Ze("")}}},Yt=e(async function(t,n,l,w){let m=l.getConfigField("padding"),k=l.getConfigField("iconSize"),z=k/2,v=k/6,N=v/2;await Promise.all(n.edges().map(async(c)=>{let{source:y,sourceDir:d,sourceArrow:f,sourceGroup:u,target:g,targetDir:i,targetArrow:B,targetGroup:F,label:o}=yt(c),{x:h,y:R}=c[0].sourceEndpoint(),{x:a,y:P}=c[0].midpoint(),{x:H,y:M}=c[0].targetEndpoint(),V=m+4;if(u)if(Re(d))h+=d==="L"?-V:V;else R+=d==="T"?-V:V+18;if(F)if(Re(i))H+=i==="L"?-V:V;else M+=i==="T"?-V:V+18;if(!u&&l.getNode(y)?.type==="junction")if(Re(d))h+=d==="L"?z:-z;else R+=d==="T"?z:-z;if(!F&&l.getNode(g)?.type==="junction")if(Re(i))H+=i==="L"?z:-z;else M+=i==="T"?z:-z;if(c[0]._private.rscratch){let _=t.insert("g");if(_.insert("path").attr("d",`M ${h},${R} L ${a},${P} L${H},${M} `).attr("class","edge").attr("id",`${w}-${Fe(y,g,{prefix:"L"})}`),f){let x=Re(d)?ot[d](h,v):h-N,Y=Ve(d)?ot[d](R,v):R-N;_.insert("polygon").attr("points",ht[d](v)).attr("transform",`translate(${x},${Y})`).attr("class","arrow")}if(B){let x=Re(i)?ot[i](H,v):H-N,Y=Ve(i)?ot[i](M,v):M-N;_.insert("polygon").attr("points",ht[i](v)).attr("transform",`translate(${x},${Y})`).attr("class","arrow")}if(o){let x=!ft(d,i)?Re(d)?"X":"Y":"XY",Y=0;if(x==="X")Y=Math.abs(h-H);else if(x==="Y")Y=Math.abs(R-M)/1.5;else Y=Math.abs(h-H)/2;let Z=_.append("g");if(await Ie(Z,o,{useHtmlLabels:!1,width:Y,classes:"architecture-service-label"},s()),Z.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),x==="X")Z.attr("transform","translate("+a+", "+P+")");else if(x==="Y")Z.attr("transform","translate("+a+", "+P+") rotate(-90)");else if(x==="XY"){let Q=ct(d,i);if(Q&&Dt(Q)){let se=Z.node().getBoundingClientRect(),[re,ue]=Ft(Q);Z.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*re*ue*45})`);let Ae=Z.node().getBoundingClientRect();Z.attr("transform",`
33
+ translate(${a}, ${P-se.height/2})
34
+ translate(${re*Ae.width/2}, ${ue*Ae.height/2})
35
+ rotate(${-1*re*ue*45}, 0, ${se.height/2})
36
+ `)}}}}}))},"drawEdges"),Ut=e(async function(t,n,l,w){let k=l.getConfigField("padding")*0.75,z=l.getConfigField("fontSize"),N=l.getConfigField("iconSize")/2;await Promise.all(n.nodes().map(async(c)=>{let y=Qe(c);if(y.type==="group"){let{h:d,w:f,x1:u,y1:g}=c.boundingBox(),i=t.append("rect");i.attr("id",`${w}-group-${y.id}`).attr("x",u+N).attr("y",g+N).attr("width",f).attr("height",d).attr("class","node-bkg");let B=t.append("g"),F=u,o=g;if(y.icon){let h=B.append("g");h.html(`<g>${await nt(y.icon,{height:k,width:k,fallbackPrefix:it.prefix})}</g>`),h.attr("transform","translate("+(F+N+1)+", "+(o+N+1)+")"),F+=k,o+=z/2-1-2}if(y.label){let h=B.append("g");await Ie(h,y.label,{useHtmlLabels:!1,width:f,classes:"architecture-service-label"},s()),h.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),h.attr("transform","translate("+(F+N+4)+", "+(o+N+2)+")")}l.setElementForId(y.id,i)}}))},"drawGroups"),Ht=e(async function(t,n,l,w){let m=s();for(let k of l){let z=n.append("g"),v=t.getConfigField("iconSize");if(k.title){let d=z.append("g");await Ie(d,k.title,{useHtmlLabels:!1,width:v*1.5,classes:"architecture-service-label"},m),d.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),d.attr("transform","translate("+v/2+", "+v+")")}let N=z.append("g");if(k.icon)N.html(`<g>${await nt(k.icon,{height:v,width:v,fallbackPrefix:it.prefix})}</g>`);else if(k.iconText){N.html(`<g>${await nt("blank",{height:v,width:v,fallbackPrefix:it.prefix})}</g>`);let u=N.append("g").append("foreignObject").attr("width",v).attr("height",v).append("div").attr("class","node-icon-text").attr("style",`height: ${v}px;`).append("div").html(O(k.iconText,m)),g=parseInt(window.getComputedStyle(u.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;u.attr("style",`-webkit-line-clamp: ${Math.floor((v-2)/g)};`)}else N.append("path").attr("class","node-bkg").attr("id",`${w}-node-${k.id}`).attr("d",`M0,${v} V5 Q0,0 5,0 H${v-5} Q${v},0 ${v},5 V${v} Z`);z.attr("id",`${w}-service-${k.id}`).attr("class","architecture-service");let{width:c,height:y}=z.node().getBBox();k.width=c,k.height=y,t.setElementForId(k.id,z)}return 0},"drawServices"),Vt=e(function(t,n,l,w){l.forEach((m)=>{let k=n.append("g"),z=t.getConfigField("iconSize");k.append("g").append("rect").attr("id",`${w}-node-${m.id}`).attr("fill-opacity","0").attr("width",z).attr("height",z),k.attr("class","architecture-junction");let{width:N,height:c}=k._groups[0][0].getBBox();k.width=N,k.height=c,t.setElementForId(m.id,k)})},"drawJunctions");In([{name:it.prefix,icons:it}]);lt.use(xt.default);function Tt(t,n,l){t.forEach((w)=>{n.add({group:"nodes",data:{type:"service",id:w.id,icon:w.icon,label:w.title,parent:w.in,width:l.getConfigField("iconSize"),height:l.getConfigField("iconSize")},classes:"node-service"})})}e(Tt,"addServices");function At(t,n,l){t.forEach((w)=>{n.add({group:"nodes",data:{type:"junction",id:w.id,parent:w.in,width:l.getConfigField("iconSize"),height:l.getConfigField("iconSize")},classes:"node-junction"})})}e(At,"addJunctions");function Lt(t,n){n.nodes().map((l)=>{let w=Qe(l);if(w.type==="group")return;w.x=l.position().x,w.y=l.position().y,t.getElementById(w.id).attr("transform","translate("+(w.x||0)+","+(w.y||0)+")")})}e(Lt,"positionNodes");function Ct(t,n){t.forEach((l)=>{n.add({group:"nodes",data:{type:"group",id:l.id,icon:l.icon,label:l.title,parent:l.in},classes:"node-group"})})}e(Ct,"addGroups");function It(t,n){t.forEach((l)=>{let{lhsId:w,rhsId:m,lhsInto:k,lhsGroup:z,rhsInto:v,lhsDir:N,rhsDir:c,rhsGroup:y,title:d}=l,f=ft(l.lhsDir,l.rhsDir)?"segments":"straight",u={id:`${w}-${m}`,label:d,source:w,sourceDir:N,sourceArrow:k,sourceGroup:z,sourceEndpoint:N==="L"?"0 50%":N==="R"?"100% 50%":N==="T"?"50% 0":"50% 100%",target:m,targetDir:c,targetArrow:v,targetGroup:y,targetEndpoint:c==="L"?"0 50%":c==="R"?"100% 50%":c==="T"?"50% 0":"50% 100%"};n.add({group:"edges",data:u,classes:f})})}e(It,"addEdges");function bt(t,n,l,w=[]){let m=e((f,u)=>{let g=new Map;for(let[i,B]of f.entries()){let F=`${i}`,o=0,h=[...B.entries()];if(h.length===1){g.set(F,h[0][1]);continue}for(let R=0;R<h.length-1;R++)for(let a=R+1;a<h.length;a++){let[P,H]=h[R],[M,V]=h[a];if(l.get(pt(P,M))===u)g.set(F,[...g.get(F)??[],...H,...V]);else if(P==="default"||M==="default")g.set(F,[...g.get(F)??[],...H,...V]);else{let x=`${F}-${o++}`;g.set(x,H);let Y=`${F}-${o++}`;g.set(Y,V)}}}return g},"flattenAlignments"),k=n.map((f)=>{let u=new Map,g=new Map;return f.forEach(([i,B],F)=>{let o=t.getNode(F)?.in??"default",h=u.get(B)??new Map;if(!u.has(B))u.set(B,h);let R=g.get(i)??new Map;if(!g.has(i))g.set(i,R);for(let a of[h,R]){let P=a.get(o)??[];if(!a.has(o))a.set(o,P);P.push(F)}}),{horiz:[...m(u,"horizontal").values()].filter((i)=>i.length>1),vert:[...m(g,"vertical").values()].filter((i)=>i.length>1)}}),[z,v]=k.reduce(([f,u],{horiz:g,vert:i})=>[[...f,...g],[...u,...i]],[[],[]]),N=new Set;w.forEach((f)=>f.members.forEach((u)=>N.add(u)));let c=e((f)=>f.filter((u)=>!u.some((g)=>N.has(g))),"dropOverlapping"),y=c(z),d=c(v);return w.forEach((f)=>{if(f.members.length<2)return;if(f.direction==="row")y.push([...f.members]);else d.push([...f.members])}),{horizontal:y,vertical:d}}e(bt,"getAlignments");function Nt(t,n,l=[]){let w=[],m=n.getConfigField("iconSize"),k=n.getConfigField("idealEdgeLengthMultiplier"),z=k*m,v=new Set;l.forEach((y)=>{for(let d=0;d<y.members.length-1;d++){let f=y.members[d],u=y.members[d+1];if(v.add(`${f}|${u}`),v.add(`${u}|${f}`),y.direction==="row")w.push({left:f,right:u,gap:z});else w.push({top:f,bottom:u,gap:z})}});let N=e((y)=>`${y[0]},${y[1]}`,"posToStr"),c=e((y)=>y.split(",").map((d)=>parseInt(d)),"strToPos");return t.forEach((y)=>{let d=new Map([...y.entries()].map(([i,B])=>[N(B),i])),f=[N([0,0])],u={},g={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};while(f.length>0){let i=f.shift();if(i){u[i]=1;let B=d.get(i);if(B){let F=c(i);Object.entries(g).forEach(([o,h])=>{let R=N([F[0]+h[0],F[1]+h[1]]),a=d.get(R);if(a&&!u[R]){if(f.push(R),v.has(`${B}|${a}`))return;w.push({[gt[o]]:a,[gt[kt(o)]]:B,gap:k*m})}})}}}}),w}e(Nt,"getRelativeConstraints");function St(t,n,l,w,m,{spatialMaps:k,groupAlignments:z}){return new Promise((v)=>{let N=p("body").append("div").attr("id","cy").attr("style","display:none"),c=lt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[0.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${m.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${m.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});N.remove(),Ct(l,c),Tt(t,c,m),At(n,c,m),It(w,c);let y=m.getLayoutHints(),d=bt(m,k,z,y),f=Nt(k,m,y),u=m.getConfigField("iconSize"),g=m.getConfigField("idealEdgeLengthMultiplier")*u,i=0.5*u,B=m.getConfigField("edgeElasticity"),F=m.getConfigField("seed"),o=c.layout({name:"fcose",quality:"proof",randomize:m.getConfigField("randomize"),nodeSeparation:m.getConfigField("nodeSeparation"),numIter:m.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(h){let[R,a]=h.connectedNodes(),{parent:P}=Qe(R),{parent:H}=Qe(a);return P===H?g:i},edgeElasticity(h){let[R,a]=h.connectedNodes(),{parent:P}=Qe(R),{parent:H}=Qe(a);return P===H?B:0.001},alignmentConstraint:d,relativePlacementConstraint:f});o.one("layoutstop",()=>{function h(R,a,P,H){let M,V,{x:_,y:x}=R,{x:Y,y:Z}=a;V=(H-x+(_-P)*(x-Z)/(_-Y))/Math.sqrt(1+Math.pow((x-Z)/(_-Y),2)),M=Math.sqrt(Math.pow(H-x,2)+Math.pow(P-_,2)-Math.pow(V,2));let Q=Math.sqrt(Math.pow(Y-_,2)+Math.pow(Z-x,2));M=M/Q;let se=(Y-_)*(H-x)-(Z-x)*(P-_);switch(!0){case se>=0:se=1;break;case se<0:se=-1;break}let re=(Y-_)*(P-_)+(Z-x)*(H-x);switch(!0){case re>=0:re=1;break;case re<0:re=-1;break}return V=Math.abs(V)*se,M=M*re,{distances:V,weights:M}}e(h,"getSegmentWeights"),c.startBatch();for(let R of Object.values(c.edges()))if(R.data?.()){let{x:a,y:P}=R.source().position(),{x:H,y:M}=R.target().position();if(a!==H&&P!==M){let V=R.sourceEndpoint(),_=R.targetEndpoint(),{sourceDir:x}=yt(R),[Y,Z]=Ve(x)?[V.x,_.y]:[_.x,V.y],{weights:Q,distances:se}=h(V,_,Y,Z);R.style("segment-distances",se),R.style("segment-weights",Q)}}c.endBatch(),dt(F,()=>o.run())});try{dt(F,()=>o.run())}catch(h){if(h instanceof RangeError&&h.message.includes("Invalid array length"))throw Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw h}c.ready((h)=>{r.info("Ready",h),v(c)})})}e(St,"layoutArchitecture");var Xt=e(async(t,n,l,w)=>{let m=w.db;m.setDiagramId(n);let k=m.getServices(),z=m.getJunctions(),v=m.getGroups(),N=m.getEdges(),c=m.getDataStructures(),y=q(n),d=y.append("g");d.attr("class","architecture-edges");let f=y.append("g");f.attr("class","architecture-services");let u=y.append("g");u.attr("class","architecture-groups"),await Ht(m,f,k,n),Vt(m,f,z,n);let g=await St(k,z,v,N,m,c);await Yt(d,g,m,n),await Ut(u,g,m,n),Lt(m,g),mt(void 0,y,m.getConfigField("padding"),m.getConfigField("useMaxWidth"))},"draw"),jt={draw:Xt},ar={parser:wt,get db(){return new Et},renderer:jt,styles:_t};export{ar as diagram};
@@ -0,0 +1,214 @@
1
+ import{e,r,se,Le,y,C,S,E,T,A,I,L,s,an,Tn,p,et,tt,N,Fe,le,ae,ie,Ye,Dr,he,ge}from"./chunk-y0m8hrwz.js";import{Mt}from"./chunk-p3b9crsa.js";import{je}from"./chunk-2m12wyrb.js";import{Pt}from"./chunk-37ajk6zg.js";import{fe}from"./chunk-ss1bcb0n.js";import{oe}from"./chunk-hev4hq89.js";var A1="flowchart-",m1=class{constructor(){this.vertexCounter=0,this.config=s(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=S,this.setAccDescription=T,this.setDiagramTitle=I,this.getAccTitle=E,this.getAccDescription=A,this.getDiagramTitle=L,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{e(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let n of this.vertices.values())if(n.id===t)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,n,u,o,c,g,d={},D){if(!t||t.trim().length===0)return;let f;if(D!==void 0){let _;if(!D.includes(`
2
+ `))_=`{
3
+ `+D+`
4
+ }`;else _=D+`
5
+ `;f=tt(_,{schema:et})}let U=this.subGraphLookup.get(t);if(U&&f){U.metadata={...U.metadata,...f};return}let B=this.edges.find((_)=>_.id===t);if(B){let _=f;if(_?.animate!==void 0)B.animate=_.animate;if(_?.animation!==void 0)B.animation=_.animation;if(_?.curve!==void 0)B.interpolate=_.curve;return}let W,x=this.vertices.get(t);if(x===void 0){if(n===void 0&&u===void 0&&o!==void 0&&o!==null)r.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`);x={id:t,labelType:"text",domId:A1+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,x)}if(this.vertexCounter++,n!==void 0){if(this.config=s(),W=this.sanitizeText(n.text.trim()),x.labelType=n.type,W.startsWith('"')&&W.endsWith('"'))W=W.substring(1,W.length-1);x.text=W}else if(x.text===void 0)x.text=t;if(u!==void 0)x.type=u;if(o!==void 0&&o!==null)o.forEach((_)=>{x.styles.push(_)});if(c!==void 0&&c!==null)c.forEach((_)=>{x.classes.push(_)});if(g!==void 0)x.dir=g;if(x.props===void 0)x.props=d;else if(d!==void 0)Object.assign(x.props,d);if(f!==void 0){if(f.shape){if(f.shape!==f.shape.toLowerCase()||f.shape.includes("_"))throw Error(`No such shape: ${f.shape}. Shape names should be lowercase.`);else if(!Dr(f.shape))throw Error(`No such shape: ${f.shape}.`);x.type=f?.shape}if(f?.label)x.text=f?.label,x.labelType=this.sanitizeNodeLabelType(f?.labelType);if(f?.icon){if(x.icon=f?.icon,!f.label?.trim()&&x.text===t)x.text=""}if(f?.form)x.form=f?.form;if(f?.pos)x.pos=f?.pos;if(f?.img){if(x.img=f?.img,!f.label?.trim()&&x.text===t)x.text=""}if(f?.constraint)x.constraint=f.constraint;if(f.w)x.assetWidth=Number(f.w);if(f.h)x.assetHeight=Number(f.h)}}addSingleLink(t,n,u,o){let d={start:t,end:n,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};r.info("abc78 Got edge...",d);let D=u.text;if(D!==void 0){if(d.text=this.sanitizeText(D.text.trim()),d.text.startsWith('"')&&d.text.endsWith('"'))d.text=d.text.substring(1,d.text.length-1);d.labelType=this.sanitizeNodeLabelType(D.type)}if(u!==void 0)d.type=u.type,d.stroke=u.stroke,d.length=u.length>10?10:u.length;if(o&&!this.edges.some((f)=>f.id===o))d.id=o,d.isUserDefinedId=!0;else{let f=this.edges.filter((U)=>U.start===d.start&&U.end===d.end);if(f.length===0)d.id=Fe(d.start,d.end,{counter:0,prefix:"L"});else d.id=Fe(d.start,d.end,{counter:f.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))r.info("Pushing edge..."),this.edges.push(d);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
6
+
7
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
8
+ You cannot set this config via configuration inside the diagram as it is a secure config.
9
+ You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t==="object"&&"id"in t&&typeof t.id==="string"}addLink(t,n,u){let o=this.isLinkData(u)?u.id.replace("@",""):void 0;r.info("addLink",t,n,o);for(let c of t)for(let g of n){let d=c===t[t.length-1],D=g===n[0];if(d&&D)this.addSingleLink(c,g,u,o);else this.addSingleLink(c,g,u,void 0)}}updateLinkInterpolate(t,n){t.forEach((u)=>{if(u==="default")this.edges.defaultInterpolate=n;else this.edges[u].interpolate=n})}updateLink(t,n){t.forEach((u)=>{if(typeof u==="number"&&u>=this.edges.length)throw Error(`The index ${u} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(u==="default")this.edges.defaultStyle=n;else if(this.edges[u].style=n,(this.edges[u]?.style?.length??0)>0&&!this.edges[u]?.style?.some((o)=>o?.startsWith("fill")))this.edges[u]?.style?.push("fill:none")})}addClass(t,n){let u=n.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach((o)=>{let c=this.classes.get(o);if(c===void 0)c={id:o,styles:[],textStyles:[]},this.classes.set(o,c);if(u!==void 0&&u!==null)u.forEach((g)=>{if(/color/.exec(g)){let d=g.replace("fill","bgFill");c.textStyles.push(d)}c.styles.push(g)})})}setDirection(t){if(this.direction=t.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(t,n){for(let u of t.split(",")){let o=this.vertices.get(u);if(o)o.classes.push(n);let c=this.edges.find((d)=>d.id===u);if(c)c.classes.push(n);let g=this.subGraphLookup.get(u);if(g)g.classes.push(n)}}setTooltip(t,n){if(n===void 0)return;n=this.sanitizeText(n);for(let u of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(u):u,n)}setClickFun(t,n,u){if(s().securityLevel!=="loose")return;if(n===void 0)return;let o=[];if(typeof u==="string"){o=u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let g=0;g<o.length;g++){let d=o[g].trim();if(d.startsWith('"')&&d.endsWith('"'))d=d.substr(1,d.length-2);o[g]=d}}if(o.length===0)o.push(t);let c=this.vertices.get(t);if(c)c.haveCallback=!0,this.funs.push(()=>{let g=this.lookUpDomId(t),d=document.querySelector(`[id="${g}"]`);if(d!==null)d.addEventListener("click",()=>{N.runFunc(n,...o)},!1)})}setLink(t,n,u){t.split(",").forEach((o)=>{let c=this.vertices.get(o);if(c!==void 0)c.link=N.formatUrl(n,this.config),c.linkTarget=u}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,n,u){t.split(",").forEach((o)=>{this.setClickFun(o,n,u)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach((n)=>{n(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let n=Mt();p(t).select("svg").selectAll("g.node").on("mouseover",(c)=>{let g=p(c.currentTarget),d=g.attr("title");if(d===null)return;let D=c.currentTarget?.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(g.attr("title")).style("left",window.scrollX+D.left+(D.right-D.left)/2+"px").style("top",window.scrollY+D.bottom+"px"),n.html(Le.sanitize(d)),g.classed("hover",!0)}).on("mouseout",(c)=>{n.transition().duration(500).style("opacity",0),p(c.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=s(),C()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,n,u){let o=t.text.trim(),c=u.text;if(t===u&&/\s/.exec(u.text))o=void 0;let d=e((x)=>{let _={boolean:{},number:{},string:{}},G=[],j;return{nodeList:x.filter(function(h){let k=typeof h;if(h.stmt&&h.stmt==="dir")return j=h.value,!1;if(h.trim()==="")return!1;if(k in _)return _[k].hasOwnProperty(h)?!1:_[k][h]=!0;else return G.includes(h)?!1:G.push(h)}),dir:j}},"uniq")(n.flat()),{nodeList:D,dir:f}=d,U=s().flowchart??{};if(f=f??(U.inheritDir?this.getDirection()??s().direction??void 0:void 0),this.version==="gen-1")for(let x=0;x<D.length;x++)D[x]=this.lookUpDomId(D[x]);o=o??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;let B={id:o,nodes:D,title:c.trim(),classes:[],dir:f,labelType:this.sanitizeNodeLabelType(u?.type)};r.info("Adding",B.id,B.nodes,B.dir),B.nodes=this.makeUniq(B,this.subGraphs).nodes.filter((x)=>x!==o);let W=this.subGraphs.find((x)=>x.id===o);if(W)W.nodes.push(...B.nodes);else this.subGraphs.push(B);return this.subGraphLookup.set(o,W??B),o}getPosForId(t){for(let[n,u]of this.subGraphs.entries())if(u.id===t)return n;return-1}indexNodes2(t,n){let u=this.subGraphs[n].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=n,this.subGraphs[n].id===t)return{result:!0,count:0};let o=0,c=1;while(o<u.length){let g=this.getPosForId(u[o]);if(g>=0){let d=this.indexNodes2(t,g);if(d.result)return{result:!0,count:c+d.count};else c=c+d.count}o=o+1}return{result:!1,count:c}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(t){let n=t.trim(),u="arrow_open";switch(n[0]){case"<":u="arrow_point",n=n.slice(1);break;case"x":u="arrow_cross",n=n.slice(1);break;case"o":u="arrow_circle",n=n.slice(1);break}let o="normal";if(n.includes("="))o="thick";if(n.includes("."))o="dotted";return{type:u,stroke:o}}countChar(t,n){let u=n.length,o=0;for(let c=0;c<u;++c)if(n[c]===t)++o;return o}destructEndLink(t){let n=t.trim(),u=n.slice(0,-1),o="arrow_open";switch(n.slice(-1)){case"x":if(o="arrow_cross",n.startsWith("x"))o="double_"+o,u=u.slice(1);break;case">":if(o="arrow_point",n.startsWith("<"))o="double_"+o,u=u.slice(1);break;case"o":if(o="arrow_circle",n.startsWith("o"))o="double_"+o,u=u.slice(1);break}let c="normal",g=u.length-1;if(u.startsWith("="))c="thick";if(u.startsWith("~"))c="invisible";let d=this.countChar(".",u);if(d)c="dotted",g=d;return{type:o,stroke:c,length:g}}destructLink(t,n){let u=this.destructEndLink(t),o;if(n){if(o=this.destructStartLink(n),o.stroke!==u.stroke)return{type:"INVALID",stroke:"INVALID"};if(o.type==="arrow_open")o.type=u.type;else{if(o.type!==u.type)return{type:"INVALID",stroke:"INVALID"};o.type="double_"+o.type}if(o.type==="double_arrow")o.type="double_arrow_point";return o.length=u.length,o}return u}exists(t,n){for(let u of t)if(u.nodes.includes(n))return!0;return!1}makeUniq(t,n){let u=[];return t.nodes.forEach((o,c)=>{if(!this.exists(n,o))u.push(t.nodes[c])}),{nodes:u}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon){if(t.form==="circle")return"iconCircle";if(t.form==="square")return"iconSquare";if(t.form==="rounded")return"iconRounded";return"icon"}switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,n){return t.find((u)=>u.id===n)}destructEdgeType(t){let n="none",u="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":u=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":n=t.replace("double_",""),u=n;break}return{arrowTypeStart:n,arrowTypeEnd:u}}addNodeFromVertex(t,n,u,o,c,g){let d=u.get(t.id),D=o.get(t.id)??!1,f=this.findNode(n,t.id);if(f)f.cssStyles=t.styles,f.cssCompiledStyles=this.getCompiledStyles(t.classes),f.cssClasses=t.classes.join(" ");else{let U={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:d,padding:c.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:g,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};if(D)n.push({...U,isGroup:!0,shape:"rect"});else n.push({...U,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:c.flowchart?.minNodeWidth})}}getCompiledStyles(t){let n=[];for(let u of t){let o=this.classes.get(u);if(o?.styles)n=[...n,...o.styles??[]].map((c)=>c.trim());if(o?.textStyles)n=[...n,...o.textStyles??[]].map((c)=>c.trim())}return n}getData(){let t=s(),n=[],u=[],o=this.getSubGraphs(),c=new Map,g=new Map,d=new Map;for(let h of o)for(let k of h.nodes)if(this.subGraphLookup.has(k))d.set(k,h.id);let D=new Map,f=new Map;for(let h of o){let k=d.get(h.id);if(k!==void 0)f.set(k,[...f.get(k)??[],h.id])}let U=0,B=e((h)=>{D.set(h,U++);for(let k of f.get(h)??[])B(k)},"walk");for(let h of o)if(!d.has(h.id))B(h.id);let W=e((h)=>this.subGraphLookup.get(h)?.metadata?.view==="collapsed","isCollapsed"),x=e((h)=>{let k,de=new Set,be=h;while(be!==void 0&&!de.has(be)){if(de.add(be),W(be))k=be;be=d.get(be)}return k},"outermostCollapsed"),_=new Set,G=new Map;for(let h of o){let k=x(h.id);if(k===void 0)continue;if(h.id!==k)_.add(h.id),G.set(h.id,k);for(let de of h.nodes){if(de===k)continue;_.add(de),G.set(de,k)}}for(let h=o.length-1;h>=0;h--){let k=o[h];if(_.has(k.id))continue;if(k.nodes.length>0)g.set(k.id,!0);for(let de of k.nodes)c.set(de,k.id)}for(let h=o.length-1;h>=0;h--){let k=o[h];if(_.has(k.id))continue;if(k.metadata?.view==="collapsed")n.push({id:k.id,label:k.title,labelStyle:"",labelType:k.labelType,parentId:c.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssClasses:k.classes.join(" "),shape:"collapsedGroup",dir:k.dir,isGroup:!1,look:t.look,colorIndex:D.get(k.id)});else n.push({id:k.id,label:k.title,labelStyle:"",labelType:k.labelType,parentId:c.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssClasses:k.classes.join(" "),shape:"rect",dir:k.dir,isGroup:!0,look:t.look,colorIndex:D.get(k.id),metadata:k.metadata})}this.getVertices().forEach((h)=>{if(_.has(h.id))return;this.addNodeFromVertex(h,n,c,g,t,t.look||"classic")});let Ne=this.getEdges();return Ne.forEach((h,k)=>{let{arrowTypeStart:de,arrowTypeEnd:be}=this.destructEdgeType(h.type),K=[...Ne.defaultStyle??[]],Y=G.get(h.start)??h.start,H=G.get(h.end)??h.end;if(Y===H&&(G.has(h.start)||G.has(h.end)))return;if(h.style)K.push(...h.style);let q={id:Fe(Y,H,{counter:k,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:Y,end:H,type:h.type??"normal",label:h.text,labelType:h.labelType,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":de,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":be,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:K,style:K,pattern:h.stroke,look:t.look,animate:h.animate,animation:h.animation,curve:h.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};u.push(q)}),{nodes:n,edges:u,other:{},config:t}}defaultConfig(){return Tn.flowchart}},C1=e(function(t,n){return n.db.getClasses()},"getClasses"),D1=e(async function(t,n,u,o){r.info("REF0:"),r.info("Drawing state diagram (v2)",n);let{securityLevel:c,flowchart:g,layout:d}=s();o.db.setDiagramId(n),r.debug("Before getData: ");let D=o.db.getData();r.debug("Data: ",D);let f=fe(n,c),U=o.db.getDirection();D.type=o.type,D.layoutAlgorithm=ge(d),D.direction=U,D.nodeSpacing=g?.nodeSpacing||50,D.rankSpacing=g?.rankSpacing||50,D.markers=["point","circle","cross"],D.diagramId=n,r.debug("REF1:",D),await he(D,f);let B=D.config.flowchart?.diagramPadding??8;N.insertTitle(f,"flowchartTitleText",g?.titleTopMargin||0,o.db.getDiagramTitle()),oe(f,B,"flowchart",g?.useMaxWidth||!1)},"draw"),T1={getClasses:C1,draw:D1},Ft=function(){var t=e(function(Oe,b,m,F){for(m=m||{},F=Oe.length;F--;m[Oe[F]]=b);return m},"o"),n=[1,4],u=[1,3],o=[1,5],c=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],g=[2,2],d=[1,13],D=[1,14],f=[1,15],U=[1,16],B=[1,23],W=[1,25],x=[1,26],_=[1,27],G=[1,50],j=[1,49],Ne=[1,29],h=[1,30],k=[1,31],de=[1,32],be=[1,33],K=[1,45],Y=[1,47],H=[1,43],q=[1,48],Q=[1,44],J=[1,51],Z=[1,46],ee=[1,52],te=[1,53],ct=[1,34],ht=[1,35],dt=[1,36],pt=[1,37],ft=[1,38],Ge=[1,58],P=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Te=[1,62],Ee=[1,61],Se=[1,63],Ke=[8,9,11,75,77,78],_t=[1,79],He=[1,92],qe=[1,97],Xe=[1,96],Qe=[1,93],Je=[1,89],Ze=[1,95],$e=[1,91],st=[1,98],it=[1,94],rt=[1,99],at=[1,90],Me=[8,9,10,11,40,75,77,78],ne=[8,9,10,11,40,46,75,77,78],ke=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],Bt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],nt=[44,60,89,102,105,106,109,111,114,115,116],vt=[1,122],Lt=[1,123],bt=[1,125],kt=[1,124],Vt=[44,60,62,74,89,102,105,106,109,111,114,115,116],wt=[1,134],It=[1,148],Rt=[1,149],Nt=[1,150],Gt=[1,151],Ot=[1,136],Ut=[1,138],Wt=[1,142],zt=[1,143],jt=[1,144],Kt=[1,145],Yt=[1,146],Ht=[1,147],qt=[1,152],Xt=[1,153],Qt=[1,132],Jt=[1,133],Zt=[1,140],$t=[1,135],e1=[1,139],t1=[1,137],Ct=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],s1=[1,155],i1=[1,157],z=[8,9,11],Ae=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],v=[1,177],ue=[1,173],ce=[1,174],V=[1,178],w=[1,175],R=[1,176],ut=[77,116,119],O=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],r1=[10,106],Pe=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ye=[1,248],xe=[1,246],_e=[1,250],Be=[1,244],ve=[1,245],Ve=[1,247],we=[1,249],Ie=[1,251],ot=[1,269],a1=[8,9,11,106],De=[8,9,10,11,60,84,105,106,109,110,111,112],Dt={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:e(function(b,m,F,l,M,i,Ue){var a=i.length-1;switch(M){case 2:this.$=[];break;case 3:if(!Array.isArray(i[a])||i[a].length>0)i[a-1].push(i[a]);this.$=i[a-1];break;case 4:case 183:this.$=i[a];break;case 11:l.setDirection("TB"),this.$="TB";break;case 12:l.setDirection(i[a-1]),this.$=i[a-1];break;case 27:this.$=i[a-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=l.addSubGraph(i[a-6],i[a-1],i[a-4]);break;case 34:this.$=l.addSubGraph(i[a-3],i[a-1],i[a-3]);break;case 35:this.$=l.addSubGraph(void 0,i[a-1],void 0);break;case 37:this.$=i[a].trim(),l.setAccTitle(this.$);break;case 38:case 39:this.$=i[a].trim(),l.setAccDescription(this.$);break;case 43:this.$=i[a-1]+i[a];break;case 44:this.$=i[a];break;case 45:l.addVertex(i[a-1][i[a-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),l.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 46:l.addLink(i[a-2].stmt,i[a],i[a-1]),this.$={stmt:i[a],nodes:i[a].concat(i[a-2].nodes)};break;case 47:l.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 48:this.$={stmt:i[a-1],nodes:i[a-1]};break;case 49:l.addVertex(i[a-1][i[a-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),this.$={stmt:i[a-1],nodes:i[a-1],shapeData:i[a]};break;case 50:this.$={stmt:i[a],nodes:i[a]};break;case 51:this.$=[i[a]];break;case 52:l.addVertex(i[a-5][i[a-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a-4]),this.$=i[a-5].concat(i[a]);break;case 53:this.$=i[a-4].concat(i[a]);break;case 54:this.$=i[a];break;case 55:this.$=i[a-2],l.setClass(i[a-2],i[a]);break;case 56:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"square");break;case 57:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"doublecircle");break;case 58:this.$=i[a-5],l.addVertex(i[a-5],i[a-2],"circle");break;case 59:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"ellipse");break;case 60:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"stadium");break;case 61:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"subroutine");break;case 62:this.$=i[a-7],l.addVertex(i[a-7],i[a-1],"rect",void 0,void 0,void 0,Object.fromEntries([[i[a-5],i[a-3]]]));break;case 63:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"cylinder");break;case 64:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"round");break;case 65:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"diamond");break;case 66:this.$=i[a-5],l.addVertex(i[a-5],i[a-2],"hexagon");break;case 67:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"odd");break;case 68:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"trapezoid");break;case 69:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"inv_trapezoid");break;case 70:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"lean_right");break;case 71:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"lean_left");break;case 72:this.$=i[a],l.addVertex(i[a]);break;case 73:i[a-1].text=i[a],this.$=i[a-1];break;case 74:case 75:i[a-2].text=i[a-1],this.$=i[a-2];break;case 76:this.$=i[a];break;case 77:var X=l.destructLink(i[a],i[a-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:i[a-1]};break;case 78:var X=l.destructLink(i[a],i[a-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:i[a-1],id:i[a-3]};break;case 79:this.$={text:i[a],type:"text"};break;case 80:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 81:this.$={text:i[a],type:"string"};break;case 82:this.$={text:i[a],type:"markdown"};break;case 83:var X=l.destructLink(i[a]);this.$={type:X.type,stroke:X.stroke,length:X.length};break;case 84:var X=l.destructLink(i[a]);this.$={type:X.type,stroke:X.stroke,length:X.length,id:i[a-1]};break;case 85:this.$=i[a-1];break;case 86:this.$={text:i[a],type:"text"};break;case 87:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 88:this.$={text:i[a],type:"string"};break;case 89:case 104:this.$={text:i[a],type:"markdown"};break;case 101:this.$={text:i[a],type:"text"};break;case 102:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 103:this.$={text:i[a],type:"text"};break;case 105:this.$=i[a-4],l.addClass(i[a-2],i[a]);break;case 106:this.$=i[a-4],l.setClass(i[a-2],i[a]);break;case 107:case 115:this.$=i[a-1],l.setClickEvent(i[a-1],i[a]);break;case 108:case 116:this.$=i[a-3],l.setClickEvent(i[a-3],i[a-2]),l.setTooltip(i[a-3],i[a]);break;case 109:this.$=i[a-2],l.setClickEvent(i[a-2],i[a-1],i[a]);break;case 110:this.$=i[a-4],l.setClickEvent(i[a-4],i[a-3],i[a-2]),l.setTooltip(i[a-4],i[a]);break;case 111:this.$=i[a-2],l.setLink(i[a-2],i[a]);break;case 112:this.$=i[a-4],l.setLink(i[a-4],i[a-2]),l.setTooltip(i[a-4],i[a]);break;case 113:this.$=i[a-4],l.setLink(i[a-4],i[a-2],i[a]);break;case 114:this.$=i[a-6],l.setLink(i[a-6],i[a-4],i[a]),l.setTooltip(i[a-6],i[a-2]);break;case 117:this.$=i[a-1],l.setLink(i[a-1],i[a]);break;case 118:this.$=i[a-3],l.setLink(i[a-3],i[a-2]),l.setTooltip(i[a-3],i[a]);break;case 119:this.$=i[a-3],l.setLink(i[a-3],i[a-2],i[a]);break;case 120:this.$=i[a-5],l.setLink(i[a-5],i[a-4],i[a]),l.setTooltip(i[a-5],i[a-2]);break;case 121:this.$=i[a-4],l.addVertex(i[a-2],void 0,void 0,i[a]);break;case 122:this.$=i[a-4],l.updateLink([i[a-2]],i[a]);break;case 123:this.$=i[a-4],l.updateLink(i[a-2],i[a]);break;case 124:this.$=i[a-8],l.updateLinkInterpolate([i[a-6]],i[a-2]),l.updateLink([i[a-6]],i[a]);break;case 125:this.$=i[a-8],l.updateLinkInterpolate(i[a-6],i[a-2]),l.updateLink(i[a-6],i[a]);break;case 126:this.$=i[a-6],l.updateLinkInterpolate([i[a-4]],i[a]);break;case 127:this.$=i[a-6],l.updateLinkInterpolate(i[a-4],i[a]);break;case 128:case 130:this.$=[i[a]];break;case 129:case 131:i[a-2].push(i[a]),this.$=i[a-2];break;case 133:this.$=i[a-1]+i[a];break;case 181:this.$=i[a];break;case 182:this.$=i[a-1]+""+i[a];break;case 184:this.$=i[a-1]+""+i[a];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:n,10:u,12:o},{1:[3]},t(c,g,{5:6}),{4:7,9:n,10:u,12:o},{4:8,9:n,10:u,12:o},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,55],9:[1,56],10:Ge,15:54,18:57},t(P,[2,3]),t(P,[2,4]),t(P,[2,5]),t(P,[2,6]),t(P,[2,7]),t(P,[2,8]),{8:Te,9:Ee,11:Se,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:Te,9:Ee,11:Se,21:68},{8:Te,9:Ee,11:Se,21:69},{8:Te,9:Ee,11:Se,21:70},{8:Te,9:Ee,11:Se,21:71},{8:Te,9:Ee,11:Se,21:72},{8:Te,9:Ee,10:[1,73],11:Se,21:74},t(P,[2,36]),{35:[1,75]},{37:[1,76]},t(P,[2,39]),t(Ke,[2,50],{18:77,39:78,10:Ge,40:_t}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:He,44:qe,60:Xe,80:[1,87],89:Qe,95:[1,84],97:[1,85],101:86,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},t(P,[2,185]),t(P,[2,186]),t(P,[2,187]),t(P,[2,188]),t(P,[2,189]),t(Me,[2,51]),t(Me,[2,54],{46:[1,100]}),t(ne,[2,72],{113:113,29:[1,101],44:G,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:j,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),t(ke,[2,181]),t(ke,[2,142]),t(ke,[2,143]),t(ke,[2,144]),t(ke,[2,145]),t(ke,[2,146]),t(ke,[2,147]),t(ke,[2,148]),t(ke,[2,149]),t(ke,[2,150]),t(ke,[2,151]),t(ke,[2,152]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,114]},t(Bt,[2,26],{18:115,10:Ge}),t(P,[2,27]),{42:116,43:39,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(P,[2,40]),t(P,[2,41]),t(P,[2,42]),t(nt,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:vt,81:Lt,116:bt,119:kt},{75:[1,126],77:[1,127]},t(Vt,[2,83]),t(P,[2,28]),t(P,[2,29]),t(P,[2,30]),t(P,[2,31]),t(P,[2,32]),{10:wt,12:It,14:Rt,27:Nt,28:128,32:Gt,44:Ot,60:Ut,75:Wt,80:[1,130],81:[1,131],83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:129,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},t(Ct,g,{5:154}),t(P,[2,37]),t(P,[2,38]),t(Ke,[2,48],{44:s1}),t(Ke,[2,49],{18:156,10:Ge,40:i1}),t(Me,[2,44]),{44:G,47:158,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{102:[1,159],103:160,105:[1,161]},{44:G,47:162,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{44:G,47:163,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(z,[2,115],{120:168,10:[1,167],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,117],{10:[1,169]}),t(Ae,[2,183]),t(Ae,[2,170]),t(Ae,[2,171]),t(Ae,[2,172]),t(Ae,[2,173]),t(Ae,[2,174]),t(Ae,[2,175]),t(Ae,[2,176]),t(Ae,[2,177]),t(Ae,[2,178]),t(Ae,[2,179]),t(Ae,[2,180]),{44:G,47:170,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{30:171,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:179,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:181,50:[1,180],67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:182,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:183,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:184,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{109:[1,185]},{30:186,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:187,65:[1,188],67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:189,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:190,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:191,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},t(ke,[2,182]),t(c,[2,20]),t(Bt,[2,25]),t(Ke,[2,46],{39:192,18:193,10:Ge,40:_t}),t(nt,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{77:[1,197],79:198,116:bt,119:kt},t(ut,[2,79]),t(ut,[2,81]),t(ut,[2,82]),t(ut,[2,168]),t(ut,[2,169]),{76:199,79:121,80:vt,81:Lt,116:bt,119:kt},t(Vt,[2,84]),{8:Te,9:Ee,10:wt,11:Se,12:It,14:Rt,21:201,27:Nt,29:[1,200],32:Gt,44:Ot,60:Ut,75:Wt,83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:202,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},t(O,[2,101]),t(O,[2,103]),t(O,[2,104]),t(O,[2,157]),t(O,[2,158]),t(O,[2,159]),t(O,[2,160]),t(O,[2,161]),t(O,[2,162]),t(O,[2,163]),t(O,[2,164]),t(O,[2,165]),t(O,[2,166]),t(O,[2,167]),t(O,[2,90]),t(O,[2,91]),t(O,[2,92]),t(O,[2,93]),t(O,[2,94]),t(O,[2,95]),t(O,[2,96]),t(O,[2,97]),t(O,[2,98]),t(O,[2,99]),t(O,[2,100]),{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,203],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:Ge,18:204},{44:[1,205]},t(Me,[2,43]),{10:[1,206],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,207]},{10:[1,208],106:[1,209]},t(r1,[2,128]),{10:[1,210],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,211],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{80:[1,212]},t(z,[2,109],{10:[1,213]}),t(z,[2,111],{10:[1,214]}),{80:[1,215]},t(Ae,[2,184]),{80:[1,216],98:[1,217]},t(Me,[2,55],{113:113,44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),{31:[1,218],67:v,82:219,116:V,117:w,118:R},t(Pe,[2,86]),t(Pe,[2,88]),t(Pe,[2,89]),t(Pe,[2,153]),t(Pe,[2,154]),t(Pe,[2,155]),t(Pe,[2,156]),{49:[1,220],67:v,82:219,116:V,117:w,118:R},{30:221,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{51:[1,222],67:v,82:219,116:V,117:w,118:R},{53:[1,223],67:v,82:219,116:V,117:w,118:R},{55:[1,224],67:v,82:219,116:V,117:w,118:R},{57:[1,225],67:v,82:219,116:V,117:w,118:R},{60:[1,226]},{64:[1,227],67:v,82:219,116:V,117:w,118:R},{66:[1,228],67:v,82:219,116:V,117:w,118:R},{30:229,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{31:[1,230],67:v,82:219,116:V,117:w,118:R},{67:v,69:[1,231],71:[1,232],82:219,116:V,117:w,118:R},{67:v,69:[1,234],71:[1,233],82:219,116:V,117:w,118:R},t(Ke,[2,45],{18:156,10:Ge,40:i1}),t(Ke,[2,47],{44:s1}),t(nt,[2,75]),t(nt,[2,74]),{62:[1,235],67:v,82:219,116:V,117:w,118:R},t(nt,[2,77]),t(ut,[2,80]),{77:[1,236],79:198,116:bt,119:kt},{30:237,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},t(Ct,g,{5:238}),t(O,[2,102]),t(P,[2,35]),{43:239,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{10:Ge,18:240},{10:ye,60:xe,84:_e,92:241,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:ye,60:xe,84:_e,92:252,104:[1,253],105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:ye,60:xe,84:_e,92:254,104:[1,255],105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{105:[1,256]},{10:ye,60:xe,84:_e,92:257,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{44:G,47:258,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(z,[2,116]),t(z,[2,118],{10:[1,262]}),t(z,[2,119]),t(ne,[2,56]),t(Pe,[2,87]),t(ne,[2,57]),{51:[1,263],67:v,82:219,116:V,117:w,118:R},t(ne,[2,64]),t(ne,[2,59]),t(ne,[2,60]),t(ne,[2,61]),{109:[1,264]},t(ne,[2,63]),t(ne,[2,65]),{66:[1,265],67:v,82:219,116:V,117:w,118:R},t(ne,[2,67]),t(ne,[2,68]),t(ne,[2,70]),t(ne,[2,69]),t(ne,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(nt,[2,78]),{31:[1,266],67:v,82:219,116:V,117:w,118:R},{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,267],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},t(Me,[2,53]),{43:268,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,121],{106:ot}),t(a1,[2,130],{108:270,10:ye,60:xe,84:_e,105:Be,109:ve,110:Ve,111:we,112:Ie}),t(De,[2,132]),t(De,[2,134]),t(De,[2,135]),t(De,[2,136]),t(De,[2,137]),t(De,[2,138]),t(De,[2,139]),t(De,[2,140]),t(De,[2,141]),t(z,[2,122],{106:ot}),{10:[1,271]},t(z,[2,123],{106:ot}),{10:[1,272]},t(r1,[2,129]),t(z,[2,105],{106:ot}),t(z,[2,106],{113:113,44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),t(z,[2,110]),t(z,[2,112],{10:[1,273]}),t(z,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:Te,9:Ee,11:Se,21:278},t(P,[2,34]),t(Me,[2,52]),{10:ye,60:xe,84:_e,105:Be,107:279,108:243,109:ve,110:Ve,111:we,112:Ie},t(De,[2,133]),{14:He,44:qe,60:Xe,89:Qe,101:280,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},{14:He,44:qe,60:Xe,89:Qe,101:281,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},{98:[1,282]},t(z,[2,120]),t(ne,[2,58]),{30:283,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},t(ne,[2,66]),t(Ct,g,{5:284}),t(a1,[2,131],{108:270,10:ye,60:xe,84:_e,105:Be,109:ve,110:Ve,111:we,112:Ie}),t(z,[2,126],{120:168,10:[1,285],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,127],{120:168,10:[1,286],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,114]),{31:[1,287],67:v,82:219,116:V,117:w,118:R},{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,288],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:ye,60:xe,84:_e,92:289,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:ye,60:xe,84:_e,92:290,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},t(ne,[2,62]),t(P,[2,33]),t(z,[2,124],{106:ot}),t(z,[2,125],{106:ot})],defaultActions:{},parseError:e(function(b,m){if(m.recoverable)this.trace(b);else{var F=Error(b);throw F.hash=m,F}},"parseError"),parse:e(function(b){var m=this,F=[0],l=[],M=[null],i=[],Ue=this.table,a="",X=0,n1=0,u1=0,f1=2,o1=1,b1=i.slice.call(arguments,1),re=Object.create(this.lexer),We={yy:{}};for(var Tt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Tt))We.yy[Tt]=this.yy[Tt];if(re.setInput(b,We.yy),We.yy.lexer=re,We.yy.parser=this,typeof re.yylloc>"u")re.yylloc={};var Et=re.yylloc;i.push(Et);var k1=re.options&&re.options.ranges;if(typeof We.yy.parseError==="function")this.parseError=We.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function g1(Ce){F.length=F.length-2*Ce,M.length=M.length-Ce,i.length=i.length-Ce}e(g1,"popStack");function l1(){var Ce=l.pop()||re.lex()||o1;if(typeof Ce!=="number"){if(Ce instanceof Array)l=Ce,Ce=l.pop();Ce=m.symbols_[Ce]||Ce}return Ce}e(l1,"lex");var pe,St,ze,me,F1,yt,lt={},At,Re,c1,mt;while(!0){if(ze=F[F.length-1],this.defaultActions[ze])me=this.defaultActions[ze];else{if(pe===null||typeof pe>"u")pe=l1();me=Ue[ze]&&Ue[ze][pe]}if(typeof me>"u"||!me.length||!me[0]){var xt="";mt=[];for(At in Ue[ze])if(this.terminals_[At]&&At>f1)mt.push("'"+this.terminals_[At]+"'");if(re.showPosition)xt="Parse error on line "+(X+1)+`:
10
+ `+re.showPosition()+`
11
+ Expecting `+mt.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'";else xt="Parse error on line "+(X+1)+": Unexpected "+(pe==o1?"end of input":"'"+(this.terminals_[pe]||pe)+"'");this.parseError(xt,{text:re.match,token:this.terminals_[pe]||pe,line:re.yylineno,loc:Et,expected:mt})}if(me[0]instanceof Array&&me.length>1)throw Error("Parse Error: multiple actions possible at state: "+ze+", token: "+pe);switch(me[0]){case 1:if(F.push(pe),M.push(re.yytext),i.push(re.yylloc),F.push(me[1]),pe=null,!St){if(n1=re.yyleng,a=re.yytext,X=re.yylineno,Et=re.yylloc,u1>0)u1--}else pe=St,St=null;break;case 2:if(Re=this.productions_[me[1]][1],lt.$=M[M.length-Re],lt._$={first_line:i[i.length-(Re||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Re||1)].first_column,last_column:i[i.length-1].last_column},k1)lt._$.range=[i[i.length-(Re||1)].range[0],i[i.length-1].range[1]];if(yt=this.performAction.apply(lt,[a,n1,X,We.yy,me[1],M,i].concat(b1)),typeof yt<"u")return yt;if(Re)F=F.slice(0,-1*Re*2),M=M.slice(0,-1*Re),i=i.slice(0,-1*Re);F.push(this.productions_[me[1]][0]),M.push(lt.$),i.push(lt._$),c1=Ue[F[F.length-2]][F[F.length-1]],F.push(c1);break;case 3:return!0}}return!0},"parse")},p1=function(){var Oe={EOF:1,parseError:e(function(m,F){if(this.yy.parser)this.yy.parser.parseError(m,F);else throw Error(m)},"parseError"),setInput:e(function(b,m){if(this.yy=m||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:e(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var m=b.match(/(?:\r\n?|\n).*/g);if(m)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),b},"input"),unput:e(function(b){var m=b.length,F=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var l=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1)this.yylineno-=F.length-1;var M=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:F?(F.length===l.length?this.yylloc.first_column:0)+l[l.length-F.length].length-F[0].length:this.yylloc.first_column-m},this.options.ranges)this.yylloc.range=[M[0],M[0]+this.yyleng-m];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(b){this.unput(this.match.slice(b))},"less"),pastInput:e(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var b=this.match;if(b.length<20)b+=this._input.substr(0,20-b.length);return(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var b=this.pastInput(),m=Array(b.length+1).join("-");return b+this.upcomingInput()+`
13
+ `+m+"^"},"showPosition"),test_match:e(function(b,m){var F,l,M;if(this.options.backtrack_lexer){if(M={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)M.yylloc.range=this.yylloc.range.slice(0)}if(l=b[0].match(/(?:\r\n?|\n).*/g),l)this.yylineno+=l.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],F=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(F)return F;else if(this._backtrack){for(var i in M)this[i]=M[i];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var b,m,F,l;if(!this._more)this.yytext="",this.match="";var M=this._currentRules();for(var i=0;i<M.length;i++)if(F=this._input.match(this.rules[M[i]]),F&&(!m||F[0].length>m[0].length)){if(m=F,l=i,this.options.backtrack_lexer)if(b=this.test_match(F,M[i]),b!==!1)return b;else if(this._backtrack){m=!1;continue}else return!1;else if(!this.options.flex)break}if(m){if(b=this.test_match(m,M[l]),b!==!1)return b;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
14
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var m=this.next();if(m)return m;else return this.lex()},"lex"),begin:e(function(m){this.conditionStack.push(m)},"begin"),popState:e(function(){var m=this.conditionStack.length-1;if(m>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(m){if(m=this.conditionStack.length-1-Math.abs(m||0),m>=0)return this.conditionStack[m];else return"INITIAL"},"topState"),pushState:e(function(m){this.begin(m)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:e(function(m,F,l,M){var i=M;switch(l){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),F.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Ue=/\n\s*/g;return F.yytext=F.yytext.replace(Ue,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:if(m.lex.firstGraph())this.begin("dir");return 12;case 36:if(m.lex.firstGraph())this.begin("dir");return 12;case 37:if(m.lex.firstGraph())this.begin("dir");return 12;case 38:if(m.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Oe}();Dt.lexer=p1;function gt(){this.yy={}}return e(gt,"Parser"),gt.prototype=Dt,Dt.Parser=gt,new gt}();Ft.parser=Ft;var h1=Ft,d1=Object.assign({},h1);d1.parse=(t)=>{let n=t.replace(/}\s*\n/g,`}
15
+ `);return h1.parse(n)};var E1=d1,S1=e((t)=>{let{theme:n,bkgColorArray:u,borderColorArray:o}=t;if(!ae(n,o))return"";let c=ie(t.look),g=le(u),d="";for(let D=0;D<Ye(t.THEME_COLOR_LIMIT,o);D++){let f=o[D%o.length],U=g?`fill: ${u[D%u.length]};`:"",B=`[data-look="${c}"][data-color-id="color-${D}"]`,W=e((_)=>`${B}.node ${_}, ${B}.rough-node ${_}`,"collapsedRule"),x=e((_)=>`${B}.swimlane.cluster .swimlane-title${_}, ${B}.swimlane.cluster .swimlane-body${_}`,"laneRule");d+=`
16
+
17
+ ${B}.cluster:not(.swimlane) rect {
18
+ stroke: ${f};
19
+ ${U}
20
+ }
21
+
22
+ ${B}.cluster:not(.swimlane) path {
23
+ stroke: ${f};
24
+ ${U}
25
+ }
26
+
27
+ /* Lane, classic and neo. */
28
+ ${B}.swimlane.cluster rect.swimlane-title,
29
+ ${B}.swimlane.cluster rect.swimlane-body {
30
+ stroke: ${f};
31
+ ${U}
32
+ }
33
+
34
+ /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
35
+ ${x(" path:nth-of-type(2)")} {
36
+ stroke: ${f};
37
+ }
38
+ ${g?`
39
+ /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
40
+ ${x(" path:first-of-type")} {
41
+ stroke: ${u[D%u.length]};
42
+ }
43
+ `:""}
44
+ ${W(".collapsed-group")},
45
+ ${W(".collapsed-group path")} {
46
+ stroke: ${f};
47
+ ${U}
48
+ }
49
+
50
+ /* The ellipsis dots and the separator take clusterBorder further down, so without
51
+ these the container is palette-coloured while its own markers are not. */
52
+ ${W(".collapsed-indicator")} {
53
+ fill: ${f};
54
+ }
55
+
56
+ ${W(".collapsed-separator")} {
57
+ stroke: ${f};
58
+ }
59
+ `}return d},"genColor"),y1=e((t,n)=>{let u=Pt,o=u(t,"r"),c=u(t,"g"),g=u(t,"b");return se(o,c,g,n)},"fade"),x1=e((t)=>`${S1(t)}
60
+ .label {
61
+ font-family: ${t.fontFamily};
62
+ color: ${t.nodeTextColor||t.textColor};
63
+ }
64
+ .cluster-label text {
65
+ fill: ${t.titleColor};
66
+ }
67
+ .cluster-label span {
68
+ color: ${t.titleColor};
69
+ }
70
+ .cluster-label span p {
71
+ background-color: transparent;
72
+ }
73
+
74
+ .label text,span {
75
+ fill: ${t.nodeTextColor||t.textColor};
76
+ color: ${t.nodeTextColor||t.textColor};
77
+ }
78
+
79
+ .node rect,
80
+ .node circle,
81
+ .node ellipse,
82
+ .node polygon,
83
+ .node path {
84
+ fill: ${t.mainBkg};
85
+ stroke: ${t.nodeBorder};
86
+ stroke-width: ${t.strokeWidth??1}px;
87
+ }
88
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
89
+ text-anchor: middle;
90
+ }
91
+
92
+ .node .katex path {
93
+ fill: #000;
94
+ stroke: #000;
95
+ stroke-width: 1px;
96
+ }
97
+
98
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
99
+ text-align: center;
100
+ }
101
+ .node.clickable {
102
+ cursor: pointer;
103
+ }
104
+
105
+
106
+ .root .anchor path {
107
+ fill: ${t.lineColor} !important;
108
+ stroke-width: 0;
109
+ stroke: ${t.lineColor};
110
+ }
111
+
112
+ .arrowheadPath {
113
+ fill: ${t.arrowheadColor};
114
+ }
115
+
116
+ .edgePaths .path {
117
+ stroke: ${t.lineColor};
118
+ stroke-width: ${t.strokeWidth??2}px;
119
+ }
120
+
121
+ .flowchart-link {
122
+ stroke: ${t.lineColor};
123
+ fill: none;
124
+ }
125
+
126
+ .edgeLabel {
127
+ background-color: ${t.edgeLabelBackground};
128
+ p {
129
+ background-color: ${t.edgeLabelBackground};
130
+ }
131
+ rect {
132
+ opacity: 0.5;
133
+ background-color: ${t.edgeLabelBackground};
134
+ fill: ${t.edgeLabelBackground};
135
+ }
136
+ text-align: center;
137
+ }
138
+
139
+ /* For html labels only */
140
+ .labelBkg {
141
+ background-color: ${y1(t.edgeLabelBackground,0.5)};
142
+ // background-color:
143
+ }
144
+
145
+ .cluster rect {
146
+ fill: ${t.clusterBkg};
147
+ stroke: ${t.clusterBorder};
148
+ stroke-width: 1px;
149
+ }
150
+
151
+ .cluster text {
152
+ fill: ${t.titleColor};
153
+ }
154
+
155
+ .cluster span {
156
+ color: ${t.titleColor};
157
+ }
158
+ /* .cluster div {
159
+ color: ${t.titleColor};
160
+ } */
161
+
162
+ /* Collapsed subgraph node (@{ view: collapsed }) */
163
+ .node .collapsed-indicator {
164
+ fill: ${t.clusterBorder};
165
+ stroke: none;
166
+ opacity: 0.6;
167
+ }
168
+
169
+ .node .collapsed-separator {
170
+ stroke: ${t.clusterBorder};
171
+ stroke-width: 0.75px;
172
+ }
173
+
174
+ div.mermaidTooltip {
175
+ position: absolute;
176
+ text-align: center;
177
+ max-width: 200px;
178
+ padding: 2px;
179
+ font-family: ${t.fontFamily};
180
+ font-size: 12px;
181
+ background: ${t.tertiaryColor};
182
+ border: 1px solid ${t.border2};
183
+ border-radius: 2px;
184
+ pointer-events: none;
185
+ z-index: 100;
186
+ }
187
+
188
+ .flowchartTitleText {
189
+ text-anchor: middle;
190
+ font-size: 18px;
191
+ fill: ${t.textColor};
192
+ }
193
+
194
+ rect.text {
195
+ fill: none;
196
+ stroke-width: 0;
197
+ }
198
+
199
+ .icon-shape, .image-shape {
200
+ background-color: ${t.edgeLabelBackground};
201
+ p {
202
+ background-color: ${t.edgeLabelBackground};
203
+ padding: 2px;
204
+ }
205
+ .label rect {
206
+ opacity: 0.5;
207
+ background-color: ${t.edgeLabelBackground};
208
+ fill: ${t.edgeLabelBackground};
209
+ }
210
+ text-align: center;
211
+ }
212
+ ${je()}
213
+ `,"getStyles"),Ei=x1,Ai=e(({styles:t=Ei}={})=>({parser:E1,get db(){return new m1},renderer:T1,styles:t,init:e((n)=>{if(!n.flowchart)n.flowchart={};n.flowchart.arrowMarkerAbsolute=n.arrowMarkerAbsolute,an({flowchart:{arrowMarkerAbsolute:n.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),ko=Ai();
214
+ export{Ei,Ai,ko};