@chaibuilder/pages 0.16.10 → 0.16.12

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 (764) hide show
  1. package/dist/{2AITGKQY-C0A7leVc.cjs → 2AITGKQY-AK2WgbeT.cjs} +1 -1
  2. package/dist/{2AITGKQY-LtoYzpXb.js → 2AITGKQY-D1mM4eEh.js} +2 -2
  3. package/dist/{NCMVHL6D-BqKNTZhH.js → NCMVHL6D-BeRsWdGV.js} +2 -2
  4. package/dist/{NCMVHL6D-BbCiXTDR.cjs → NCMVHL6D-DItDf9IY.cjs} +1 -1
  5. package/dist/{ZDWCUMSJ-DEjMuvHw.cjs → ZDWCUMSJ-COSBY-at.cjs} +1 -1
  6. package/dist/{ZDWCUMSJ-CudD-G3A.js → ZDWCUMSJ-D6caRaY7.js} +1 -1
  7. package/dist/{add-new-language-page-CTZglguY.cjs → add-new-language-page-CQcFi0Tp.cjs} +1 -1
  8. package/dist/{add-new-language-page-C3R8vwOA.js → add-new-language-page-nnaUe-qk.js} +2 -2
  9. package/dist/{add-new-page-Dn-jphFf.js → add-new-page-Ba1fq6LH.js} +1 -1
  10. package/dist/{add-new-page-ByCsABU-.cjs → add-new-page-DxObnvo_.cjs} +1 -1
  11. package/dist/{ai-panel-content-VYS5Bn3a.cjs → ai-panel-content-B2AgBWqo.cjs} +1 -1
  12. package/dist/{ai-panel-content-CF7-wrq0.js → ai-panel-content-M1UnzG_f.js} +2 -2
  13. package/dist/{ai-panel-default-lang-C_zJzkZ4.js → ai-panel-default-lang-CHOFEwmV.js} +2 -2
  14. package/dist/{ai-panel-default-lang-D5vpT3cL.cjs → ai-panel-default-lang-sy6vkQJh.cjs} +3 -3
  15. package/dist/{ai-panel-other-lang-5Hdkr4eJ.js → ai-panel-other-lang-B4euTuod.js} +2 -2
  16. package/dist/ai-panel-other-lang-BwjSDD3L.cjs +1 -0
  17. package/dist/ai-prompt-input-B_NRADBT.js +988 -0
  18. package/dist/ai-prompt-input-DcyVXcLG.cjs +1 -0
  19. package/dist/{ai-translation-prompt-E3TEDobP.js → ai-translation-prompt-CVuPbgXw.js} +1 -1
  20. package/dist/{ai-translation-prompt-BYubvAxO.cjs → ai-translation-prompt-Ip7w2_Ey.cjs} +1 -1
  21. package/dist/{delete-page-CecAr8Ev.cjs → delete-page-CbY8q5M3.cjs} +1 -1
  22. package/dist/{delete-page-BtWRzpTh.js → delete-page-SX9X35nA.js} +1 -1
  23. package/dist/{digital-asset-manager-Y8YMABE1.cjs → digital-asset-manager-CIMo79Di.cjs} +1 -1
  24. package/dist/{digital-asset-manager-CyBlpHrq.js → digital-asset-manager-SAFNO_mx.js} +1 -1
  25. package/dist/{duplicate-page-3Dv56tPR.js → duplicate-page-5SwLvmkX.js} +2 -2
  26. package/dist/{duplicate-page-nGQAYVQc.cjs → duplicate-page-CXK2HcxD.cjs} +1 -1
  27. package/dist/{dynamic-page-selector-B9XaZMxt.cjs → dynamic-page-selector-Crd3y4Hk.cjs} +1 -1
  28. package/dist/{dynamic-page-selector-BapENUmp.js → dynamic-page-selector-DfcuTqRN.js} +1 -1
  29. package/dist/{image-editor-EmBN_Nn_.cjs → image-editor-CnDnY97s.cjs} +1 -1
  30. package/dist/{index-C1bimRWu.cjs → index-Bz7smSC0.cjs} +2 -2
  31. package/dist/{index-C_34q9jG.js → index-EnM7J19_.js} +16 -16
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/{json-diff-viewer-D2tCblUU.js → json-diff-viewer-CDwpbuag.js} +1 -1
  35. package/dist/{json-diff-viewer-B9kQEwcr.cjs → json-diff-viewer-D34kDA_c.cjs} +2 -2
  36. package/dist/{lang-panel-CsA6jzez.js → lang-panel-CUIeO5bb.js} +2 -2
  37. package/dist/{lang-panel-ClCAoE4L.cjs → lang-panel-CaFrYllL.cjs} +1 -1
  38. package/dist/{mark-as-template-BsOhlLYx.js → mark-as-template-D0dLQaIB.js} +1 -1
  39. package/dist/{mark-as-template-DUeGBAgn.cjs → mark-as-template-v182tmN6.cjs} +1 -1
  40. package/dist/{no-language-page-content-KLiCVKWw.cjs → no-language-page-content-Bk4fEx_p.cjs} +1 -1
  41. package/dist/{no-language-page-content-DveHrqZF.js → no-language-page-content-ByRFD_qA.js} +1 -1
  42. package/dist/{page-creator-Du1tv5PL.js → page-creator-Bh0IUGR3.js} +2 -2
  43. package/dist/{page-creator-I5z6OA-y.cjs → page-creator-BnvaGZVI.cjs} +1 -1
  44. package/dist/{page-lock-request-DSCZ2b9Y.cjs → page-lock-request-C2b1kqyA.cjs} +1 -1
  45. package/dist/{page-lock-request-C_FjXr4-.js → page-lock-request-CaNqxfD6.js} +1 -1
  46. package/dist/{page-locked-by-dialog-DAJlxcUt.js → page-locked-by-dialog--WLDdkw9.js} +1 -1
  47. package/dist/{page-locked-by-dialog-Daefw0-2.cjs → page-locked-by-dialog-90ElC8aG.cjs} +1 -1
  48. package/dist/{page-manager-new-BNk_0XVK.js → page-manager-new-Bo4-zwfW.js} +2 -2
  49. package/dist/{page-manager-new-DmA0Ka0c.cjs → page-manager-new-SNRQn7Az.cjs} +1 -1
  50. package/dist/{page-manager-search-and-filter-heV_U9x0.js → page-manager-search-and-filter-BETHSa3y.js} +1 -1
  51. package/dist/{page-manager-search-and-filter-DkR8sFPh.cjs → page-manager-search-and-filter-hyUIHOD_.cjs} +1 -1
  52. package/dist/{page-revisions-content-BIhjzS21.cjs → page-revisions-content-BCMjvZRZ.cjs} +1 -1
  53. package/dist/{page-revisions-content-BVg59skx.js → page-revisions-content-VWthKL7O.js} +2 -2
  54. package/dist/pages.css +1 -1
  55. package/dist/{publish-pages-content-BhJ_uRxQ.js → publish-pages-content-6N7aEcM1.js} +2 -2
  56. package/dist/{publish-pages-content-CKydxoZ_.cjs → publish-pages-content-CaBwfekc.cjs} +1 -1
  57. package/dist/{save-to-lib-C3mx8iXu.cjs → save-to-lib-CtGpDkC6.cjs} +1 -1
  58. package/dist/{save-to-lib-Byfa7tCG.js → save-to-lib-YYBxY7MV.js} +1 -1
  59. package/dist/selected-block-display-BEbuJn0l.cjs +16 -0
  60. package/dist/selected-block-display-DdW-DWF1.js +394 -0
  61. package/dist/{seo-panel-DxaEiunO.cjs → seo-panel-B9P7fXjo.cjs} +1 -1
  62. package/dist/{seo-panel-CrpYigIp.js → seo-panel-CqJDhbj-.js} +1 -1
  63. package/dist/server.cjs +4 -52
  64. package/dist/server.js +309 -10089
  65. package/dist/{shared-json-ld-CcUhox6j.cjs → shared-json-ld-CyxmC9y5.cjs} +1 -1
  66. package/dist/{shared-json-ld-DczSLaqw.js → shared-json-ld-DxEPILj_.js} +1 -1
  67. package/dist/{slug-input-CsniBgYf.cjs → slug-input-RNiSrU3p.cjs} +1 -1
  68. package/dist/{slug-input-CjagPxIn.js → slug-input-j5z5ZQn9.js} +1 -1
  69. package/dist/{theme-panel-footer-BYI0_a19.cjs → theme-panel-footer-CCsiDIVl.cjs} +1 -1
  70. package/dist/{theme-panel-footer-C-uSbeOf.js → theme-panel-footer-DD2yalfG.js} +1 -1
  71. package/dist/{unmark-as-template-CGKkAZPZ.js → unmark-as-template-B2hKhAHn.js} +1 -1
  72. package/dist/{unmark-as-template-GuUssCYI.cjs → unmark-as-template-DXjLbqOM.cjs} +1 -1
  73. package/dist/{unpublish-page-D67IrGmd.cjs → unpublish-page-BdJScWMX.cjs} +1 -1
  74. package/dist/{unpublish-page-ow8e1CXO.js → unpublish-page-BvB1PGSz.js} +1 -1
  75. package/dist/use-page-expand-manager-2KjeYfVS.cjs +1 -0
  76. package/dist/{web-preview-Dm8A9E8S.cjs → web-preview-BI4jd0O7.cjs} +1 -1
  77. package/dist/{web-preview-NCfHy3pB.js → web-preview-CwVpkcwU.js} +1 -1
  78. package/package.json +1 -1
  79. package/dist/_arrayEach-7nw56Qes.cjs +0 -1
  80. package/dist/_arrayEach-CBNlJl8q.js +0 -44
  81. package/dist/abap-DV7Q1lGP.cjs +0 -1
  82. package/dist/abap-Y8Dl9g_6.js +0 -6
  83. package/dist/actionscript-3-DXOxkRa2.cjs +0 -1
  84. package/dist/actionscript-3-DZzbMeqX.js +0 -6
  85. package/dist/ada-D46EKCNf.cjs +0 -1
  86. package/dist/ada-vP6ak0IW.js +0 -6
  87. package/dist/ai-panel-other-lang-BFnghH5Z.cjs +0 -1
  88. package/dist/ai-prompt-input-BXp7SxcJ.cjs +0 -45
  89. package/dist/ai-prompt-input-CrBweB8X.js +0 -4027
  90. package/dist/andromeeda-BIpZ7gaU.js +0 -4
  91. package/dist/andromeeda-DVDxRwp5.cjs +0 -1
  92. package/dist/angular-html-DPB4Rf0C.js +0 -32
  93. package/dist/angular-html-KMf2QdtP.cjs +0 -1
  94. package/dist/angular-ts-BxIbo3R1.cjs +0 -1
  95. package/dist/angular-ts-CTOR2ofC.js +0 -21
  96. package/dist/apache-BUjz-sD2.js +0 -6
  97. package/dist/apache-DL1xuH1f.cjs +0 -1
  98. package/dist/apex-CtcXmQ6V.js +0 -6
  99. package/dist/apex-UUd3Occv.cjs +0 -1
  100. package/dist/apl-CjNiDgad.js +0 -16
  101. package/dist/apl-Dj2G2M9w.cjs +0 -1
  102. package/dist/applescript-BPx7YFFu.js +0 -6
  103. package/dist/applescript-COilsSrZ.cjs +0 -1
  104. package/dist/ara-B6Lpq1YJ.cjs +0 -1
  105. package/dist/ara-Z2fSOxSw.js +0 -6
  106. package/dist/arc-CuYV2Z4i.js +0 -83
  107. package/dist/arc-Dzs-yn9V.cjs +0 -1
  108. package/dist/architecture-U656AL7Q-BFW69Rn1.js +0 -5
  109. package/dist/architecture-U656AL7Q-C1RBosC-.cjs +0 -1
  110. package/dist/architectureDiagram-VXUJARFQ-C7E-J7qp.js +0 -4669
  111. package/dist/architectureDiagram-VXUJARFQ-i1olysFf.cjs +0 -36
  112. package/dist/asciidoc-B-pCoB3G.js +0 -6
  113. package/dist/asciidoc-DcKqW72n.cjs +0 -1
  114. package/dist/asm-BTWLY5ym.js +0 -6
  115. package/dist/asm-DYMFy-sD.cjs +0 -1
  116. package/dist/astro-CFFExE8Q.js +0 -18
  117. package/dist/astro-DAOP_Xq6.cjs +0 -1
  118. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  119. package/dist/aurora-x-C5IpmIOG.cjs +0 -1
  120. package/dist/awk-Fb0P9dkn.js +0 -6
  121. package/dist/awk-IEszImW6.cjs +0 -1
  122. package/dist/ayu-dark-Cv7nTiif.cjs +0 -1
  123. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  124. package/dist/ballerina-Dr6dU4hP.cjs +0 -1
  125. package/dist/ballerina-oZK-YekG.js +0 -6
  126. package/dist/bat-0FvbqU9S.js +0 -6
  127. package/dist/bat-DGkUhhn2.cjs +0 -1
  128. package/dist/beancount-Bv1Sweoy.cjs +0 -1
  129. package/dist/beancount-DqJEb89h.js +0 -6
  130. package/dist/berry-DZkhZ7K3.cjs +0 -1
  131. package/dist/berry-PwsHPR_K.js +0 -6
  132. package/dist/bibtex-BgA36Z3k.cjs +0 -1
  133. package/dist/bibtex-EULQRLY5.js +0 -6
  134. package/dist/bicep-BorU73w0.js +0 -6
  135. package/dist/bicep-DL0zb-7W.cjs +0 -1
  136. package/dist/blade-BYkiyM-T.cjs +0 -1
  137. package/dist/blade-CRa6j5zS.js +0 -20
  138. package/dist/blockDiagram-VD42YOAC-8bGFphRU.js +0 -2368
  139. package/dist/blockDiagram-VD42YOAC-DG8nN7FI.cjs +0 -122
  140. package/dist/bsl-9bVgFeM9.cjs +0 -1
  141. package/dist/bsl-NkNNwerW.js +0 -8
  142. package/dist/c-CtlmKnPF.cjs +0 -1
  143. package/dist/c-eeMepfLm.js +0 -6
  144. package/dist/c4Diagram-YG6GDRKO-C5vTWKII.js +0 -1581
  145. package/dist/c4Diagram-YG6GDRKO-ojLwrHAZ.cjs +0 -10
  146. package/dist/cadence-02UX7mW8.js +0 -6
  147. package/dist/cadence-DcbmM5v3.cjs +0 -1
  148. package/dist/cairo-DM6WF2e3.js +0 -8
  149. package/dist/cairo-li7sQsxU.cjs +0 -1
  150. package/dist/catppuccin-frappe-Bn4lgmUk.cjs +0 -1
  151. package/dist/catppuccin-frappe-D3cH2rXe.js +0 -4
  152. package/dist/catppuccin-latte-BPtsb8jD.cjs +0 -1
  153. package/dist/catppuccin-latte-C0LRGUW4.js +0 -4
  154. package/dist/catppuccin-macchiato-BLfpQWhT.cjs +0 -1
  155. package/dist/catppuccin-macchiato-c5wQ11TT.js +0 -4
  156. package/dist/catppuccin-mocha-COMta283.cjs +0 -1
  157. package/dist/catppuccin-mocha-WMD6Qvya.js +0 -4
  158. package/dist/channel-Cdlcq82Q.js +0 -5
  159. package/dist/channel-D8SQrHOQ.cjs +0 -1
  160. package/dist/chunk-4BX2VUAB-D0Nkkvke.cjs +0 -1
  161. package/dist/chunk-4BX2VUAB-kRXCJxGQ.js +0 -9
  162. package/dist/chunk-55IACEB6-Ya_-e5Gj.cjs +0 -1
  163. package/dist/chunk-55IACEB6-xzVewFKl.js +0 -8
  164. package/dist/chunk-B4BG7PRW-C8Sj4Rta.cjs +0 -165
  165. package/dist/chunk-B4BG7PRW-DG5qX3ch.js +0 -1376
  166. package/dist/chunk-DI55MBZ5-C9He0Rku.cjs +0 -220
  167. package/dist/chunk-DI55MBZ5-CI_Ti_F2.js +0 -1382
  168. package/dist/chunk-FMBD7UC4-9Wx_99-Q.js +0 -19
  169. package/dist/chunk-FMBD7UC4-Be12B01Q.cjs +0 -15
  170. package/dist/chunk-QN33PNHL-B65aZfT8.cjs +0 -1
  171. package/dist/chunk-QN33PNHL-qSV2Zj2E.js +0 -20
  172. package/dist/chunk-QZHKN3VN-Dcw61eWf.js +0 -15
  173. package/dist/chunk-QZHKN3VN-V8GIXVhC.cjs +0 -1
  174. package/dist/chunk-TZMSLE5B-BUsuXR8P.cjs +0 -1
  175. package/dist/chunk-TZMSLE5B-De8BBIp6.js +0 -64
  176. package/dist/clarity-PKm5CwqM.js +0 -6
  177. package/dist/clarity-gPuvqtpF.cjs +0 -1
  178. package/dist/classDiagram-2ON5EDUG-DD8PWOat.cjs +0 -1
  179. package/dist/classDiagram-2ON5EDUG-DYXMSnp5.js +0 -16
  180. package/dist/classDiagram-v2-WZHVMYZB-DD8PWOat.cjs +0 -1
  181. package/dist/classDiagram-v2-WZHVMYZB-DYXMSnp5.js +0 -16
  182. package/dist/clojure-CXJfHrL3.js +0 -6
  183. package/dist/clojure-OUsr1SUl.cjs +0 -1
  184. package/dist/cmake-BJz8BOTU.js +0 -6
  185. package/dist/cmake-jM6P58qY.cjs +0 -1
  186. package/dist/cobol-CcrsCSUZ.cjs +0 -1
  187. package/dist/cobol-HihOMwht.js +0 -10
  188. package/dist/codeowners-Bt9yU6NX.js +0 -6
  189. package/dist/codeowners-QhPK6lIJ.cjs +0 -1
  190. package/dist/codeql-D9-TdUN8.cjs +0 -1
  191. package/dist/codeql-DHkodjjI.js +0 -6
  192. package/dist/coffee-DGBR_nr_.js +0 -8
  193. package/dist/coffee-DycxIFwY.cjs +0 -1
  194. package/dist/common-lisp-C77gR-8i.cjs +0 -1
  195. package/dist/common-lisp-EVqT9Zhp.js +0 -6
  196. package/dist/coq-B0L9upzn.js +0 -6
  197. package/dist/coq-vlPdR5hP.cjs +0 -1
  198. package/dist/cose-bilkent-S5V4N54A-BzynRFve.cjs +0 -1
  199. package/dist/cose-bilkent-S5V4N54A-C0LrMYq9.js +0 -2609
  200. package/dist/cpp-Cj177cuW.js +0 -18
  201. package/dist/cpp-DvI2Eoso.cjs +0 -1
  202. package/dist/crystal-B_WXhL2O.cjs +0 -1
  203. package/dist/crystal-CRJyc4G-.js +0 -18
  204. package/dist/csharp-C902_8Dy.cjs +0 -1
  205. package/dist/csharp-COJ2mCKr.js +0 -6
  206. package/dist/css-CECN5uSL.js +0 -6
  207. package/dist/css-Do0mp2lm.cjs +0 -1
  208. package/dist/csv-CmYOceLb.js +0 -6
  209. package/dist/csv-DiEdJzSJ.cjs +0 -1
  210. package/dist/cue-D1vJRJEx.cjs +0 -1
  211. package/dist/cue-ZzumE7IT.js +0 -6
  212. package/dist/cypher-atSM3NsM.cjs +0 -1
  213. package/dist/cypher-jpdmjtA6.js +0 -6
  214. package/dist/cytoscape.esm-DdQZKk9f.js +0 -18735
  215. package/dist/cytoscape.esm-DkGgpG6d.cjs +0 -331
  216. package/dist/d-2qe3NhmZ.cjs +0 -1
  217. package/dist/d-CBagWSwH.js +0 -6
  218. package/dist/dagre-6UL2VRFP-CJe6baLS.cjs +0 -4
  219. package/dist/dagre-6UL2VRFP-DK7rwVEg.js +0 -445
  220. package/dist/dark-plus-CRFsux2L.js +0 -4
  221. package/dist/dark-plus-DwC1RSst.cjs +0 -1
  222. package/dist/dart-6ObCrKr9.js +0 -6
  223. package/dist/dart-Ds0_0fwe.cjs +0 -1
  224. package/dist/dax-CcDT-8dH.js +0 -6
  225. package/dist/dax-DbkQa40E.cjs +0 -1
  226. package/dist/defaultLocale-D7EN2tov.js +0 -171
  227. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  228. package/dist/desktop-B93p9R9O.js +0 -6
  229. package/dist/desktop-tn3MFXCZ.cjs +0 -1
  230. package/dist/diagram-PSM6KHXK-C_A00ng9.js +0 -534
  231. package/dist/diagram-PSM6KHXK-X4v5dsQ4.cjs +0 -24
  232. package/dist/diagram-QEK2KX5R-rhfU6qwd.cjs +0 -43
  233. package/dist/diagram-QEK2KX5R-tTChUtDg.js +0 -221
  234. package/dist/diagram-S2PKOQOG-CJixlBq7.js +0 -143
  235. package/dist/diagram-S2PKOQOG-XyZUZk_b.cjs +0 -24
  236. package/dist/diff-BxzP2J8R.js +0 -6
  237. package/dist/diff-CA31fCOg.cjs +0 -1
  238. package/dist/docker-CsHqm9tx.js +0 -6
  239. package/dist/docker-zJpMwmYa.cjs +0 -1
  240. package/dist/dotenv-BMjVjUL1.js +0 -6
  241. package/dist/dotenv-DpcNCNek.cjs +0 -1
  242. package/dist/dracula-BNgwAJ-d.cjs +0 -1
  243. package/dist/dracula-BtZx2Kac.js +0 -4
  244. package/dist/dracula-soft-BHZ7sHFu.cjs +0 -1
  245. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  246. package/dist/dream-maker-BkijXDkm.cjs +0 -1
  247. package/dist/dream-maker-PAx17jaB.js +0 -6
  248. package/dist/edge-BYQkOzbF.js +0 -12
  249. package/dist/edge-DaIYN5Mx.cjs +0 -1
  250. package/dist/elixir-BH_wmMK4.cjs +0 -1
  251. package/dist/elixir-Dh036GMp.js +0 -8
  252. package/dist/elm-BtNbw_Cd.js +0 -8
  253. package/dist/elm-Dc4sEBjc.cjs +0 -1
  254. package/dist/emacs-lisp-C1UCIjUO.cjs +0 -1
  255. package/dist/emacs-lisp-Cfxdx5D-.js +0 -6
  256. package/dist/erDiagram-Q2GNP2WA-B1QcX93p.js +0 -842
  257. package/dist/erDiagram-Q2GNP2WA-Up8_IT91.cjs +0 -60
  258. package/dist/erb-BqFQADjR.cjs +0 -1
  259. package/dist/erb-CS4zioBv.js +0 -10
  260. package/dist/erlang-CB2cfp6Z.cjs +0 -1
  261. package/dist/erlang-DNcDT8Hi.js +0 -8
  262. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  263. package/dist/everforest-dark-_sBMomR1.cjs +0 -1
  264. package/dist/everforest-light-BbXl82Em.js +0 -4
  265. package/dist/everforest-light-H0xoYxl0.cjs +0 -1
  266. package/dist/fennel-Bz9-EMMc.cjs +0 -1
  267. package/dist/fennel-N4WcXuKx.js +0 -6
  268. package/dist/fish-BTDEUgqH.js +0 -6
  269. package/dist/fish-DwmQKRZi.cjs +0 -1
  270. package/dist/flowDiagram-NV44I4VS-BJffdKk6.cjs +0 -162
  271. package/dist/flowDiagram-NV44I4VS-Dq0-N_i3.js +0 -1627
  272. package/dist/fluent-BMXUxfv1.js +0 -6
  273. package/dist/fluent-CJtpNuaO.cjs +0 -1
  274. package/dist/fortran-fixed-form-DUsA-VGo.js +0 -8
  275. package/dist/fortran-fixed-form-rAbNFykM.cjs +0 -1
  276. package/dist/fortran-free-form-DPIT_jbP.js +0 -6
  277. package/dist/fortran-free-form-DRAcQkel.cjs +0 -1
  278. package/dist/fsharp-CYOiIVNx.js +0 -8
  279. package/dist/fsharp-DVcRF7k-.cjs +0 -1
  280. package/dist/ganttDiagram-LVOFAZNH-CndRZUwp.cjs +0 -267
  281. package/dist/ganttDiagram-LVOFAZNH-DCuouHg6.js +0 -2506
  282. package/dist/gdresource-BwtMIoBm.js +0 -10
  283. package/dist/gdresource-CcLusmd_.cjs +0 -1
  284. package/dist/gdscript-BifyeYhI.js +0 -6
  285. package/dist/gdscript-DSegQKMB.cjs +0 -1
  286. package/dist/gdshader-Bk8fF6yr.js +0 -6
  287. package/dist/gdshader-DsmqQl4t.cjs +0 -1
  288. package/dist/genie-Dy2rU8CF.cjs +0 -1
  289. package/dist/genie-DzUvd7U9.js +0 -6
  290. package/dist/gherkin-BmiEVBJ1.cjs +0 -1
  291. package/dist/gherkin-DHRaV0YP.js +0 -6
  292. package/dist/git-commit-Bd32YZ0K.js +0 -8
  293. package/dist/git-commit-DlVDzq9L.cjs +0 -1
  294. package/dist/git-rebase-Bn4RLd7u.cjs +0 -1
  295. package/dist/git-rebase-ZWUFO_T4.js +0 -8
  296. package/dist/gitGraph-F6HP7TQM-1lOuaCHS.cjs +0 -1
  297. package/dist/gitGraph-F6HP7TQM-Bwgh2Tgj.js +0 -5
  298. package/dist/gitGraphDiagram-NY62KEGX-BFpRv9B4.js +0 -712
  299. package/dist/gitGraphDiagram-NY62KEGX-Cc8RVspd.cjs +0 -65
  300. package/dist/github-dark-BKL9xNgN.cjs +0 -1
  301. package/dist/github-dark-DenFmJkN.js +0 -4
  302. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  303. package/dist/github-dark-default-Dsv5MuSi.cjs +0 -1
  304. package/dist/github-dark-dimmed-CtB9hz8U.cjs +0 -1
  305. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  306. package/dist/github-dark-high-contrast-BqZVM-jF.cjs +0 -1
  307. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  308. package/dist/github-light-BFTOhCbz.cjs +0 -1
  309. package/dist/github-light-JYsPkUQd.js +0 -4
  310. package/dist/github-light-default-BZoWH9dH.cjs +0 -1
  311. package/dist/github-light-default-D99KPAby.js +0 -4
  312. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  313. package/dist/github-light-high-contrast-Ks3kPGJU.cjs +0 -1
  314. package/dist/gleam-Bv284lvN.js +0 -6
  315. package/dist/gleam-DHVuTCr7.cjs +0 -1
  316. package/dist/glimmer-js-CzmC7OX8.cjs +0 -1
  317. package/dist/glimmer-js-DkxNrfPT.js +0 -14
  318. package/dist/glimmer-ts-D6YZEmK_.js +0 -14
  319. package/dist/glimmer-ts-DLN2_wRt.cjs +0 -1
  320. package/dist/glsl-CQekZ3Zq.cjs +0 -1
  321. package/dist/glsl-CkUcVZNK.js +0 -8
  322. package/dist/gnuplot-CDPKvI9X.cjs +0 -1
  323. package/dist/gnuplot-yPG9-sE_.js +0 -6
  324. package/dist/go-ChxJuLYK.js +0 -6
  325. package/dist/go-epHseFUa.cjs +0 -1
  326. package/dist/graph-BJDrjORS.js +0 -244
  327. package/dist/graph-BLd2spTm.cjs +0 -1
  328. package/dist/graphql-BnP1YhXQ.cjs +0 -1
  329. package/dist/graphql-CBu2ehBn.js +0 -14
  330. package/dist/groovy-CJQTphOW.js +0 -6
  331. package/dist/groovy-D7VuDBXz.cjs +0 -1
  332. package/dist/gruvbox-dark-hard-C5HOtKIh.js +0 -4
  333. package/dist/gruvbox-dark-hard-CUGefKS6.cjs +0 -1
  334. package/dist/gruvbox-dark-medium-BoKPlKfz.cjs +0 -1
  335. package/dist/gruvbox-dark-medium-FVgwJHuz.js +0 -4
  336. package/dist/gruvbox-dark-soft-B46F314v.js +0 -4
  337. package/dist/gruvbox-dark-soft-DSrhOWeL.cjs +0 -1
  338. package/dist/gruvbox-light-hard-CJD38wDZ.js +0 -4
  339. package/dist/gruvbox-light-hard-De4IuseP.cjs +0 -1
  340. package/dist/gruvbox-light-medium-BlIhMYTA.js +0 -4
  341. package/dist/gruvbox-light-medium-CzMY3IEJ.cjs +0 -1
  342. package/dist/gruvbox-light-soft-DoPHyLVZ.js +0 -4
  343. package/dist/gruvbox-light-soft-U4iAIpWZ.cjs +0 -1
  344. package/dist/hack-BaDv2o40.cjs +0 -1
  345. package/dist/hack-ItRNKiEb.js +0 -10
  346. package/dist/haml-Bk21rGjP.cjs +0 -1
  347. package/dist/haml-NZLVzu_R.js +0 -10
  348. package/dist/handlebars-CJJi3lrU.cjs +0 -1
  349. package/dist/handlebars-mxStpSE7.js +0 -14
  350. package/dist/haskell-BShesV2P.cjs +0 -1
  351. package/dist/haskell-WeIwNIP6.js +0 -6
  352. package/dist/haxe-Bo5XuRS0.cjs +0 -1
  353. package/dist/haxe-TztHsm5T.js +0 -6
  354. package/dist/hcl-CrZnvm-1.cjs +0 -1
  355. package/dist/hcl-D438OF-I.js +0 -6
  356. package/dist/hjson-CEESwTUP.cjs +0 -1
  357. package/dist/hjson-DYBUbqOl.js +0 -6
  358. package/dist/hlsl-Bk8TCZNL.js +0 -6
  359. package/dist/hlsl-CyvYRIb9.cjs +0 -1
  360. package/dist/houston-BDYrDoDW.js +0 -4
  361. package/dist/houston-T57H3gQZ.cjs +0 -1
  362. package/dist/html-B50bmoVb.js +0 -10
  363. package/dist/html-C62Zf2h4.cjs +0 -1
  364. package/dist/html-derivative-C6bxFbFW.js +0 -8
  365. package/dist/html-derivative-NDb86jON.cjs +0 -1
  366. package/dist/http-BPlLI56k.cjs +0 -1
  367. package/dist/http-DLvAkeD-.js +0 -14
  368. package/dist/hurl-BQGBr8gH.cjs +0 -1
  369. package/dist/hurl-CgkFN90t.js +0 -12
  370. package/dist/hxml-GbqSQCLa.js +0 -8
  371. package/dist/hxml-vnw7fzrV.cjs +0 -1
  372. package/dist/hy-Brt5EZ7-.js +0 -6
  373. package/dist/hy-a1E2Ed6P.cjs +0 -1
  374. package/dist/imba-CR1Q6r17.cjs +0 -1
  375. package/dist/imba-CimUv-Uh.js +0 -6
  376. package/dist/info-NVLQJR56-C3piIB8L.cjs +0 -1
  377. package/dist/info-NVLQJR56-DxpWS9Ek.js +0 -5
  378. package/dist/infoDiagram-ER5ION4S-DqXS6eRb.cjs +0 -2
  379. package/dist/infoDiagram-ER5ION4S-iBX13SKY.js +0 -24
  380. package/dist/ini-BZIuRIvJ.js +0 -6
  381. package/dist/ini-Dpu3Xy2p.cjs +0 -1
  382. package/dist/init-CHZsXQcr.cjs +0 -1
  383. package/dist/init-DjUOC4st.js +0 -16
  384. package/dist/java--6gf61wy.cjs +0 -1
  385. package/dist/java-DY6VlHhP.js +0 -6
  386. package/dist/javascript-C25yR2R2.js +0 -6
  387. package/dist/javascript-DgmXW4Ha.cjs +0 -1
  388. package/dist/jinja-6NmewwV8.cjs +0 -1
  389. package/dist/jinja-CFW5uAwY.js +0 -11
  390. package/dist/jison-CD9Qsaj0.cjs +0 -1
  391. package/dist/jison-DdreslRX.js +0 -8
  392. package/dist/journeyDiagram-XKPGCS4Q-CIELmZlO.js +0 -836
  393. package/dist/journeyDiagram-XKPGCS4Q-CJX0XVNj.cjs +0 -139
  394. package/dist/json-DxJze_jm.js +0 -6
  395. package/dist/json-YkPizm35.cjs +0 -1
  396. package/dist/json5-BT4Fjg39.js +0 -6
  397. package/dist/json5-CCgFZiQn.cjs +0 -1
  398. package/dist/jsonc-CHjZD8gR.js +0 -6
  399. package/dist/jsonc-CKPHIcXW.cjs +0 -1
  400. package/dist/jsonl-BGuvDmy9.js +0 -6
  401. package/dist/jsonl-Dq56Hab-.cjs +0 -1
  402. package/dist/jsonnet-Bx2cfsXg.js +0 -6
  403. package/dist/jsonnet-Csh7E68F.cjs +0 -1
  404. package/dist/jssm-BcADi6EI.js +0 -6
  405. package/dist/jssm-D0M9iZPY.cjs +0 -1
  406. package/dist/jsx-BtKADgXT.js +0 -6
  407. package/dist/jsx-DLX6UGgg.cjs +0 -1
  408. package/dist/julia--2-efCjg.js +0 -16
  409. package/dist/julia-DimQn8rn.cjs +0 -1
  410. package/dist/kanagawa-dragon-BJZF7xDr.cjs +0 -1
  411. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  412. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  413. package/dist/kanagawa-lotus-BhgzmRV4.cjs +0 -1
  414. package/dist/kanagawa-wave-BgJip59C.cjs +0 -1
  415. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  416. package/dist/kanban-definition-3W4ZIXB7-DnhdFt_Y.cjs +0 -89
  417. package/dist/kanban-definition-3W4ZIXB7-WK7l1gdb.js +0 -721
  418. package/dist/kdl-BNOv9TC3.js +0 -6
  419. package/dist/kdl-CDG1p2Qi.cjs +0 -1
  420. package/dist/kotlin-BHZjvNqT.cjs +0 -1
  421. package/dist/kotlin-ByBMgTeR.js +0 -6
  422. package/dist/kusto-BgZ0fOqg.cjs +0 -1
  423. package/dist/kusto-VWFLl2T0.js +0 -6
  424. package/dist/laserwave--izBLY1I.cjs +0 -1
  425. package/dist/laserwave-6a00oqik.js +0 -4
  426. package/dist/latex-CO8r39zT.js +0 -8
  427. package/dist/latex-Xma1qZep.cjs +0 -1
  428. package/dist/layout-AXx0t5i6.cjs +0 -1
  429. package/dist/layout-B6VyrpKo.js +0 -1223
  430. package/dist/lean-BCqiTZhG.cjs +0 -1
  431. package/dist/lean-k2QBx9cb.js +0 -6
  432. package/dist/less-B1GLI2Di.js +0 -6
  433. package/dist/less-Dtg8mm6P.cjs +0 -1
  434. package/dist/light-plus-B5D0le0o.cjs +0 -1
  435. package/dist/light-plus-CZuVqSLX.js +0 -4
  436. package/dist/linear-CdbmJ0kA.cjs +0 -1
  437. package/dist/linear-CebAae2s.js +0 -259
  438. package/dist/liquid-CHzkx3jT.js +0 -14
  439. package/dist/liquid-DjlCV7Vm.cjs +0 -1
  440. package/dist/llvm-DcRvQ_r8.cjs +0 -1
  441. package/dist/llvm-co1rIKs3.js +0 -6
  442. package/dist/log-Al8wyEFV.js +0 -6
  443. package/dist/log-CjTZ0gSB.cjs +0 -1
  444. package/dist/logo-BAktp_5i.cjs +0 -1
  445. package/dist/logo-DBa4JDzV.js +0 -6
  446. package/dist/lua-BfOnSJPp.cjs +0 -1
  447. package/dist/lua-kX5WP_P5.js +0 -8
  448. package/dist/luau-DTep-u3e.cjs +0 -1
  449. package/dist/luau-DtBSxLyz.js +0 -6
  450. package/dist/make-CsMclxtr.js +0 -6
  451. package/dist/make-NcdIe21U.cjs +0 -1
  452. package/dist/markdown-Byu9Sdmq.cjs +0 -1
  453. package/dist/markdown-CrScaQ96.js +0 -6
  454. package/dist/marko-Cvx4TamJ.cjs +0 -1
  455. package/dist/marko-ls0Jg2j8.js +0 -14
  456. package/dist/material-theme-D6KBX41T.js +0 -4
  457. package/dist/material-theme-Dj0-OyRN.cjs +0 -1
  458. package/dist/material-theme-darker-CkRroheE.js +0 -4
  459. package/dist/material-theme-darker-Dvfs29ir.cjs +0 -1
  460. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  461. package/dist/material-theme-lighter-EU3ZGl_r.cjs +0 -1
  462. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  463. package/dist/material-theme-ocean-px_3Pwqa.cjs +0 -1
  464. package/dist/material-theme-palenight-38jxvsGX.cjs +0 -1
  465. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  466. package/dist/matlab-BOAaUVP0.js +0 -6
  467. package/dist/matlab-CHTOL9Kx.cjs +0 -1
  468. package/dist/mdc-DEPKJPdx.cjs +0 -1
  469. package/dist/mdc-uaivvctV.js +0 -12
  470. package/dist/mdx-BOhZZUJ8.js +0 -6
  471. package/dist/mdx-CjwI68TB.cjs +0 -1
  472. package/dist/mermaid-B0ixDHKN.js +0 -6
  473. package/dist/mermaid-XEfjk_VN.cjs +0 -1
  474. package/dist/mermaid-parser.core-DKJdj2_U.cjs +0 -128
  475. package/dist/mermaid-parser.core-GitSl6co.js +0 -13256
  476. package/dist/mermaid.core-3NhAXOzj.js +0 -14260
  477. package/dist/mermaid.core-Cop_RRH4.cjs +0 -196
  478. package/dist/min-dark-C7ak0t6c.js +0 -4
  479. package/dist/min-dark-tt5o_I5e.cjs +0 -1
  480. package/dist/min-light-CKFxVcPp.js +0 -4
  481. package/dist/min-light-tmTHl_CQ.cjs +0 -1
  482. package/dist/mindmap-definition-VGOIOE7T-BOk1rAbB.js +0 -787
  483. package/dist/mindmap-definition-VGOIOE7T-cJsasSc0.cjs +0 -68
  484. package/dist/mipsasm-BSlRcFIy.cjs +0 -1
  485. package/dist/mipsasm-CTx18fBl.js +0 -6
  486. package/dist/mojo-BD611d7o.js +0 -6
  487. package/dist/mojo-BQ8pQfYA.cjs +0 -1
  488. package/dist/monokai-C1KBYcO0.js +0 -4
  489. package/dist/monokai-DMIxv6MM.cjs +0 -1
  490. package/dist/move-Bm1vlCWg.cjs +0 -1
  491. package/dist/move-F-dICmj2.js +0 -6
  492. package/dist/narrat-CBeKHgTl.cjs +0 -1
  493. package/dist/narrat-DmhDCBs-.js +0 -6
  494. package/dist/nextflow-0_vzQJwQ.cjs +0 -1
  495. package/dist/nextflow-BAAEJxI_.js +0 -6
  496. package/dist/nginx-5vhPAEw3.js +0 -8
  497. package/dist/nginx-ByVOUyIE.cjs +0 -1
  498. package/dist/night-owl-BN78kThQ.cjs +0 -1
  499. package/dist/night-owl-Bm2rzalh.js +0 -4
  500. package/dist/nim-Bqmp5Of3.cjs +0 -1
  501. package/dist/nim-QAjRdh9w.js +0 -20
  502. package/dist/nix-B_7Vy2bT.js +0 -6
  503. package/dist/nix-BoOZl1xr.cjs +0 -1
  504. package/dist/nord-CC5OiUXg.js +0 -4
  505. package/dist/nord-Ca5AGUWc.cjs +0 -1
  506. package/dist/nushell-D8j3dhT-.js +0 -6
  507. package/dist/nushell-nGrB_wpI.cjs +0 -1
  508. package/dist/objective-c-Itk8tzmv.js +0 -6
  509. package/dist/objective-c-RjkWwFge.cjs +0 -1
  510. package/dist/objective-cpp-DGt5UKRO.js +0 -6
  511. package/dist/objective-cpp-HnfhWwRe.cjs +0 -1
  512. package/dist/ocaml-Cx8ewW_A.cjs +0 -1
  513. package/dist/ocaml-eSVK32Eg.js +0 -6
  514. package/dist/one-dark-pro-C09VQHwB.cjs +0 -1
  515. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  516. package/dist/one-light-020-h_lv.cjs +0 -1
  517. package/dist/one-light-D9sNaUtq.js +0 -4
  518. package/dist/ordinal-CagbB1m8.cjs +0 -1
  519. package/dist/ordinal-DfAQgscy.js +0 -61
  520. package/dist/packet-BFZMPI3H-B0uDu6gg.cjs +0 -1
  521. package/dist/packet-BFZMPI3H-tS-CKRal.js +0 -5
  522. package/dist/pascal-DBu9vQ2o.cjs +0 -1
  523. package/dist/pascal-xy8pJNns.js +0 -6
  524. package/dist/perl-CxWZPeDZ.cjs +0 -1
  525. package/dist/perl-DkVrgJBg.js +0 -16
  526. package/dist/php-BLXVJphD.cjs +0 -1
  527. package/dist/php-j2zCzTEz.js +0 -18
  528. package/dist/pie-7BOR55EZ-CcDzfu0_.js +0 -5
  529. package/dist/pie-7BOR55EZ-CqYqIXXG.cjs +0 -1
  530. package/dist/pieDiagram-ADFJNKIX-CFfE-HG7.js +0 -162
  531. package/dist/pieDiagram-ADFJNKIX-DWVdC3zW.cjs +0 -30
  532. package/dist/pkl-C-zSNmaA.js +0 -6
  533. package/dist/pkl-Dvyry4Rm.cjs +0 -1
  534. package/dist/plastic-CSTz3KZp.js +0 -4
  535. package/dist/plastic-r5piqq-S.cjs +0 -1
  536. package/dist/plsql-IJkoPJ9P.cjs +0 -1
  537. package/dist/plsql-pVbGZfOv.js +0 -6
  538. package/dist/po-BNfHvqmm.js +0 -6
  539. package/dist/po-Rhu6MvnX.cjs +0 -1
  540. package/dist/poimandres-BLP3NNjc.cjs +0 -1
  541. package/dist/poimandres-C-VADXHD.js +0 -4
  542. package/dist/polar-BtWqSUq2.cjs +0 -1
  543. package/dist/polar-CAZahv3u.js +0 -6
  544. package/dist/postcss-05aHdL-n.js +0 -6
  545. package/dist/postcss-Dh97DcaJ.cjs +0 -1
  546. package/dist/powerquery-BGL6VIw7.cjs +0 -1
  547. package/dist/powerquery-DI9HkTvs.js +0 -6
  548. package/dist/powershell-BiEPMjy-.cjs +0 -1
  549. package/dist/powershell-Clc4ydu-.js +0 -6
  550. package/dist/prisma-Dp473sn0.cjs +0 -1
  551. package/dist/prisma-FZjmVtSl.js +0 -6
  552. package/dist/prolog-C5-yg4TO.js +0 -6
  553. package/dist/prolog-N1U-3UeF.cjs +0 -1
  554. package/dist/proto-MmCPeFAD.js +0 -6
  555. package/dist/proto-kd7Vn2fe.cjs +0 -1
  556. package/dist/pug-DiGNE7sm.cjs +0 -1
  557. package/dist/pug-XOw9Q1Ho.js +0 -12
  558. package/dist/puppet-CUJHmnxV.js +0 -6
  559. package/dist/puppet-cDQP_ZC_.cjs +0 -1
  560. package/dist/purescript-DMxb59gF.cjs +0 -1
  561. package/dist/purescript-rUfGld-4.js +0 -6
  562. package/dist/python-BFNSHbwJ.js +0 -6
  563. package/dist/python-s9jfVbew.cjs +0 -1
  564. package/dist/qml-beorq0E4.cjs +0 -1
  565. package/dist/qml-rTNXsquU.js +0 -8
  566. package/dist/qmldir-BInDYbpo.js +0 -6
  567. package/dist/qmldir-DNF9H2ir.cjs +0 -1
  568. package/dist/qss-AeJTysr_.js +0 -6
  569. package/dist/qss-DwA_oiAM.cjs +0 -1
  570. package/dist/quadrantDiagram-AYHSOK5B-6xSOcCxL.js +0 -1024
  571. package/dist/quadrantDiagram-AYHSOK5B-J0R9fpox.cjs +0 -7
  572. package/dist/r-Bm0uF0U2.js +0 -6
  573. package/dist/r-ChIwckeM.cjs +0 -1
  574. package/dist/racket-B83wSAja.js +0 -6
  575. package/dist/racket-D4laxZit.cjs +0 -1
  576. package/dist/radar-NHE76QYJ-C4G7hzu6.js +0 -5
  577. package/dist/radar-NHE76QYJ-EznHmPEg.cjs +0 -1
  578. package/dist/raku-DHySPsLw.cjs +0 -1
  579. package/dist/raku-nEQ4ZJJ7.js +0 -6
  580. package/dist/razor-DgCbant-.cjs +0 -1
  581. package/dist/razor-Dh1wKTmh.js +0 -10
  582. package/dist/red-7y8PH7HH.js +0 -4
  583. package/dist/red-BQGOv1D5.cjs +0 -1
  584. package/dist/reg-CevkCKuZ.cjs +0 -1
  585. package/dist/reg-m_s_Kiip.js +0 -6
  586. package/dist/regexp-BazyLpPg.js +0 -6
  587. package/dist/regexp-DabTWNLE.cjs +0 -1
  588. package/dist/rel-BS5APza7.cjs +0 -1
  589. package/dist/rel-BcRfyd6Q.js +0 -6
  590. package/dist/requirementDiagram-UZGBJVZJ-DXq0f3Op.cjs +0 -64
  591. package/dist/requirementDiagram-UZGBJVZJ-p2d3AnQ8.js +0 -852
  592. package/dist/riscv-BnGFr6V7.cjs +0 -1
  593. package/dist/riscv-Ce8MAQLP.js +0 -6
  594. package/dist/rose-pine-Cr4kwgAY.js +0 -4
  595. package/dist/rose-pine-Dynd1SQq.cjs +0 -1
  596. package/dist/rose-pine-dawn-ClRRUdXX.js +0 -4
  597. package/dist/rose-pine-dawn-DwrpEjkh.cjs +0 -1
  598. package/dist/rose-pine-moon-8HmiewSG.cjs +0 -1
  599. package/dist/rose-pine-moon-ucNn3Gm8.js +0 -4
  600. package/dist/rosmsg-C7VSFzUC.cjs +0 -1
  601. package/dist/rosmsg-Cz0w1km8.js +0 -6
  602. package/dist/rst-CcbeA9zE.js +0 -22
  603. package/dist/rst-D08gsKw8.cjs +0 -1
  604. package/dist/ruby-B5H7kBtd.cjs +0 -1
  605. package/dist/ruby-DMPw6uKF.js +0 -30
  606. package/dist/rust-CLzF9zIN.js +0 -6
  607. package/dist/rust-CNeTMPbB.cjs +0 -1
  608. package/dist/sankeyDiagram-TZEHDZUN-CLBuuob-.cjs +0 -10
  609. package/dist/sankeyDiagram-TZEHDZUN-CbASga1e.js +0 -810
  610. package/dist/sas-D5Fn8Q38.cjs +0 -1
  611. package/dist/sas-fpEvgATw.js +0 -8
  612. package/dist/sass-DxHp5rTx.js +0 -6
  613. package/dist/sass-vyo-bUwh.cjs +0 -1
  614. package/dist/scala-D4grkFkl.js +0 -6
  615. package/dist/scala-ZSekD-8-.cjs +0 -1
  616. package/dist/scheme-BCRWuEm4.js +0 -6
  617. package/dist/scheme-vM0LdD-_.cjs +0 -1
  618. package/dist/scss-B1FaCqwR.js +0 -8
  619. package/dist/scss-CKlduTMv.cjs +0 -1
  620. package/dist/sdbl-B7T8abf4.js +0 -6
  621. package/dist/sdbl-DeWT5r4i.cjs +0 -1
  622. package/dist/selected-block-display-CZ3zwgqL.js +0 -43632
  623. package/dist/selected-block-display-GwQBADhp.cjs +0 -541
  624. package/dist/sequenceDiagram-WL72ISMW-3T2mzAhA.js +0 -2522
  625. package/dist/sequenceDiagram-WL72ISMW-DmS_WEPR.cjs +0 -145
  626. package/dist/shaderlab-Cr62-Wb4.js +0 -8
  627. package/dist/shaderlab-DGJjQHxC.cjs +0 -1
  628. package/dist/shellscript-DYWjN7qW.cjs +0 -1
  629. package/dist/shellscript-InADTalH.js +0 -6
  630. package/dist/shellsession-DMUSXX8m.cjs +0 -1
  631. package/dist/shellsession-DiDJNQdy.js +0 -8
  632. package/dist/slack-dark-akqwQ7ED.cjs +0 -1
  633. package/dist/slack-dark-i7wN4OET.js +0 -4
  634. package/dist/slack-ochin-BoQQWmTv.cjs +0 -1
  635. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  636. package/dist/smalltalk-BNs6hxu4.cjs +0 -1
  637. package/dist/smalltalk-BlI1_OkM.js +0 -6
  638. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  639. package/dist/snazzy-light-D_IwRieF.cjs +0 -1
  640. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  641. package/dist/solarized-dark-gmm-WbDC.cjs +0 -1
  642. package/dist/solarized-light-BheCkDPT.js +0 -4
  643. package/dist/solarized-light-DzcxRSZP.cjs +0 -1
  644. package/dist/solidity-CYggdHYd.cjs +0 -1
  645. package/dist/solidity-CneOhxmR.js +0 -6
  646. package/dist/soy-C1-6njHa.js +0 -8
  647. package/dist/soy-CDFPDtGX.cjs +0 -1
  648. package/dist/sparql-6Cg9ppCl.cjs +0 -1
  649. package/dist/sparql-B0KWFEri.js +0 -8
  650. package/dist/splunk-CRXR8A9s.js +0 -6
  651. package/dist/splunk-CWPivao_.cjs +0 -1
  652. package/dist/sql-Cn_v3PB0.js +0 -6
  653. package/dist/sql-DhUUVgH1.cjs +0 -1
  654. package/dist/ssh-config-B93wBIBa.cjs +0 -1
  655. package/dist/ssh-config-DP-hNVbF.js +0 -6
  656. package/dist/stata-B8c5fTjX.js +0 -8
  657. package/dist/stata-DCWFCQQG.cjs +0 -1
  658. package/dist/stateDiagram-FKZM4ZOC-BmMX9umD.cjs +0 -1
  659. package/dist/stateDiagram-FKZM4ZOC-D9lkyJcL.js +0 -264
  660. package/dist/stateDiagram-v2-4FDKWEC3-BwQkMtRv.cjs +0 -1
  661. package/dist/stateDiagram-v2-4FDKWEC3-D0yq-_gB.js +0 -16
  662. package/dist/stylus-B64Bt0D4.cjs +0 -1
  663. package/dist/stylus-CyKEU1Ej.js +0 -6
  664. package/dist/svelte-5UasyOg7.js +0 -14
  665. package/dist/svelte-DFg_x5i4.cjs +0 -1
  666. package/dist/swift-9UzSvamq.js +0 -6
  667. package/dist/swift-BMbGdc3j.cjs +0 -1
  668. package/dist/synthwave-84-BBRLOmNT.cjs +0 -1
  669. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  670. package/dist/system-verilog-BCm7smPJ.js +0 -6
  671. package/dist/system-verilog-BFclLo9e.cjs +0 -1
  672. package/dist/systemd-C-4qm6XH.js +0 -6
  673. package/dist/systemd-Dtw7P4tb.cjs +0 -1
  674. package/dist/talonscript-CFF3LF_O.js +0 -6
  675. package/dist/talonscript-D8SvZJVc.cjs +0 -1
  676. package/dist/tasl--DC4oX-L.cjs +0 -1
  677. package/dist/tasl-Cg_WBUAe.js +0 -6
  678. package/dist/tcl-0Q0H86Yn.cjs +0 -1
  679. package/dist/tcl-DN7buRTF.js +0 -6
  680. package/dist/templ-BDNMUns0.cjs +0 -1
  681. package/dist/templ-peLZIM2D.js +0 -12
  682. package/dist/terraform-C0RDrmWi.cjs +0 -1
  683. package/dist/terraform-DGvcn9zM.js +0 -6
  684. package/dist/tex-BUUuwxQS.js +0 -8
  685. package/dist/tex-By7qnogv.cjs +0 -1
  686. package/dist/timeline-definition-IT6M3QCI-Bi9IiYMF.cjs +0 -61
  687. package/dist/timeline-definition-IT6M3QCI-LtkAohDp.js +0 -801
  688. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  689. package/dist/tokyo-night-GOhjzM5y.cjs +0 -1
  690. package/dist/toml-DY62mUL_.js +0 -6
  691. package/dist/toml-Q64DoSvG.cjs +0 -1
  692. package/dist/treemap-KMMF4GRG-DAuFMsAI.cjs +0 -1
  693. package/dist/treemap-KMMF4GRG-vy1iI8-N.js +0 -5
  694. package/dist/ts-tags-DILCom6A.cjs +0 -1
  695. package/dist/ts-tags-ioVe2PKw.js +0 -41
  696. package/dist/tsv-BtvSkaG0.js +0 -6
  697. package/dist/tsv-DqNGnuVj.cjs +0 -1
  698. package/dist/tsx-B8rCNbgL.js +0 -6
  699. package/dist/tsx-DIpfUf9u.cjs +0 -1
  700. package/dist/turtle-DipIidr5.cjs +0 -1
  701. package/dist/turtle-_H59FV7D.js +0 -6
  702. package/dist/twig-B42NGISI.cjs +0 -1
  703. package/dist/twig-CcRLVyUg.js +0 -18
  704. package/dist/typescript-RycA9KXf.js +0 -6
  705. package/dist/typescript-b48wo4zk.cjs +0 -1
  706. package/dist/typespec-CLqB-2XS.cjs +0 -1
  707. package/dist/typespec-Djmco60m.js +0 -6
  708. package/dist/typst-Cqq4j4V-.cjs +0 -1
  709. package/dist/typst-D_1QKWns.js +0 -6
  710. package/dist/use-page-expand-manager-B5Y2KS1c.cjs +0 -1
  711. package/dist/v-81C2s01-.cjs +0 -1
  712. package/dist/v-BPCNiyYe.js +0 -6
  713. package/dist/vala-CsAYdCD2.cjs +0 -1
  714. package/dist/vala-uxaPR7d1.js +0 -6
  715. package/dist/vb-AiTMb16X.cjs +0 -1
  716. package/dist/vb-D8_c5-KN.js +0 -6
  717. package/dist/verilog-AMohXZcN.cjs +0 -1
  718. package/dist/verilog-B-bybjPF.js +0 -6
  719. package/dist/vesper-B59Iw4gV.cjs +0 -1
  720. package/dist/vesper-BckBta1U.js +0 -4
  721. package/dist/vhdl-CUlNa8ac.js +0 -6
  722. package/dist/vhdl-DIdR1NA5.cjs +0 -1
  723. package/dist/viml-D01eKeA4.cjs +0 -1
  724. package/dist/viml-DsfA-sWm.js +0 -6
  725. package/dist/vitesse-black-BoGvW84i.js +0 -4
  726. package/dist/vitesse-black-MF-1S1MG.cjs +0 -1
  727. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  728. package/dist/vitesse-dark-SIffJYSe.cjs +0 -1
  729. package/dist/vitesse-light-CcmG315c.js +0 -4
  730. package/dist/vitesse-light-U63SkYGT.cjs +0 -1
  731. package/dist/vue-DUYfTwgV.cjs +0 -1
  732. package/dist/vue-DrinnB8Y.js +0 -31
  733. package/dist/vue-html-B8T_zUQ-.cjs +0 -1
  734. package/dist/vue-html-CQOyCFnQ.js +0 -10
  735. package/dist/vue-vine-CAyeVfAj.js +0 -20
  736. package/dist/vue-vine-ClEtVpt5.cjs +0 -1
  737. package/dist/vyper-CPQuu50u.js +0 -6
  738. package/dist/vyper-DTzyzn3a.cjs +0 -1
  739. package/dist/wasm-BBXxrAl7.js +0 -6
  740. package/dist/wasm-DQxwEHae.js +0 -7
  741. package/dist/wasm-Dp-QrJpp.cjs +0 -1
  742. package/dist/wasm-Dw4u1m6u.cjs +0 -1
  743. package/dist/wenyan-CRNx8UP3.cjs +0 -1
  744. package/dist/wenyan-pbVjoM9_.js +0 -6
  745. package/dist/wgsl-DF5qc9dd.cjs +0 -1
  746. package/dist/wgsl-DY4iK1q1.js +0 -6
  747. package/dist/wikitext-D7uzEIfK.cjs +0 -1
  748. package/dist/wikitext-Z-MoUasO.js +0 -6
  749. package/dist/wit-BjWgLsJj.cjs +0 -1
  750. package/dist/wit-CQMQOlTg.js +0 -6
  751. package/dist/wolfram-BR4t3Ffc.cjs +0 -1
  752. package/dist/wolfram-Dz4KXISs.js +0 -6
  753. package/dist/xml-BpsKWkuV.cjs +0 -1
  754. package/dist/xml-C2J0sS9M.js +0 -8
  755. package/dist/xsl-BmSZphgC.js +0 -8
  756. package/dist/xsl-D-3VYix6.cjs +0 -1
  757. package/dist/xychartDiagram-PRI3JC2R-d5V8_6ka.cjs +0 -7
  758. package/dist/xychartDiagram-PRI3JC2R-ggiHJXU7.js +0 -1340
  759. package/dist/yaml-DaO7k5B1.js +0 -6
  760. package/dist/yaml-XVBmpKh-.cjs +0 -1
  761. package/dist/zenscript-CxBjpf9c.js +0 -6
  762. package/dist/zenscript-fNvwKexi.cjs +0 -1
  763. package/dist/zig-BAyIAcWK.cjs +0 -1
  764. package/dist/zig-Vm0PO9wB.js +0 -6
@@ -1,36 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const tt=require("./mermaid.core-Cop_RRH4.cjs"),Ve=require("./chunk-4BX2VUAB-D0Nkkvke.cjs"),ze=require("./mermaid-parser.core-DKJdj2_U.cjs"),xe=require("./cytoscape.esm-DkGgpG6d.cjs"),Be=require("./selected-block-display-GwQBADhp.cjs");var he={exports:{}},le={exports:{}},fe={exports:{}},$e=fe.exports,Ce;function ke(){return Ce||(Ce=1,function(I,D){(function(P,N){I.exports=N()})($e,function(){return function(A){var P={};function N(u){if(P[u])return P[u].exports;var h=P[u]={i:u,l:!1,exports:{}};return A[u].call(h.exports,h,h.exports,N),h.l=!0,h.exports}return N.m=A,N.c=P,N.i=function(u){return u},N.d=function(u,h,a){N.o(u,h)||Object.defineProperty(u,h,{configurable:!1,enumerable:!0,get:a})},N.n=function(u){var h=u&&u.__esModule?function(){return u.default}:function(){return u};return N.d(h,"a",h),h},N.o=function(u,h){return Object.prototype.hasOwnProperty.call(u,h)},N.p="",N(N.s=28)}([function(A,P,N){function u(){}u.QUALITY=1,u.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,u.DEFAULT_INCREMENTAL=!1,u.DEFAULT_ANIMATION_ON_LAYOUT=!0,u.DEFAULT_ANIMATION_DURING_LAYOUT=!1,u.DEFAULT_ANIMATION_PERIOD=50,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,u.DEFAULT_GRAPH_MARGIN=15,u.NODE_DIMENSIONS_INCLUDE_LABELS=!1,u.SIMPLE_NODE_SIZE=40,u.SIMPLE_NODE_HALF_SIZE=u.SIMPLE_NODE_SIZE/2,u.EMPTY_COMPOUND_NODE_SIZE=40,u.MIN_EDGE_LENGTH=1,u.WORLD_BOUNDARY=1e6,u.INITIAL_WORLD_BOUNDARY=u.WORLD_BOUNDARY/1e3,u.WORLD_CENTER_X=1200,u.WORLD_CENTER_Y=900,A.exports=u},function(A,P,N){var u=N(2),h=N(8),a=N(9);function r(f,i,g){u.call(this,g),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=g,this.bendpoints=[],this.source=f,this.target=i}r.prototype=Object.create(u.prototype);for(var e in u)r[e]=u[e];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,i){for(var g=this.getOtherEnd(f),t=i.getGraphManager().getRoot();;){if(g.getOwner()==i)return g;if(g.getOwner()==t)break;g=g.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=h.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},A.exports=r},function(A,P,N){function u(h){this.vGraphObject=h}A.exports=u},function(A,P,N){var u=N(2),h=N(10),a=N(13),r=N(0),e=N(16),f=N(5);function i(t,o,s,c){s==null&&c==null&&(c=o),u.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=h.MIN_VALUE,this.inclusionTreeDepth=h.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,s!=null&&o!=null?this.rect=new a(o.x,o.y,s.width,s.height):this.rect=new a}i.prototype=Object.create(u.prototype);for(var g in u)i[g]=u[g];i.prototype.getEdges=function(){return this.edges},i.prototype.getChild=function(){return this.child},i.prototype.getOwner=function(){return this.owner},i.prototype.getWidth=function(){return this.rect.width},i.prototype.setWidth=function(t){this.rect.width=t},i.prototype.getHeight=function(){return this.rect.height},i.prototype.setHeight=function(t){this.rect.height=t},i.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},i.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},i.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},i.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},i.prototype.getRect=function(){return this.rect},i.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},i.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},i.prototype.setRect=function(t,o){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=o.width,this.rect.height=o.height},i.prototype.setCenter=function(t,o){this.rect.x=t-this.rect.width/2,this.rect.y=o-this.rect.height/2},i.prototype.setLocation=function(t,o){this.rect.x=t,this.rect.y=o},i.prototype.moveBy=function(t,o){this.rect.x+=t,this.rect.y+=o},i.prototype.getEdgeListToNode=function(t){var o=[],s=this;return s.edges.forEach(function(c){if(c.target==t){if(c.source!=s)throw"Incorrect edge source!";o.push(c)}}),o},i.prototype.getEdgesBetween=function(t){var o=[],s=this;return s.edges.forEach(function(c){if(!(c.source==s||c.target==s))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&o.push(c)}),o},i.prototype.getNeighborsList=function(){var t=new Set,o=this;return o.edges.forEach(function(s){if(s.source==o)t.add(s.target);else{if(s.target!=o)throw"Incorrect incidency!";t.add(s.source)}}),t},i.prototype.withChildren=function(){var t=new Set,o,s;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;l<c.length;l++)o=c[l],s=o.withChildren(),s.forEach(function(T){t.add(T)});return t},i.prototype.getNoOfChildren=function(){var t=0,o;if(this.child==null)t=1;else for(var s=this.child.getNodes(),c=0;c<s.length;c++)o=s[c],t+=o.getNoOfChildren();return t==0&&(t=1),t},i.prototype.getEstimatedSize=function(){if(this.estimatedSize==h.MIN_VALUE)throw"assert failed";return this.estimatedSize},i.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},i.prototype.scatter=function(){var t,o,s=-r.INITIAL_WORLD_BOUNDARY,c=r.INITIAL_WORLD_BOUNDARY;t=r.WORLD_CENTER_X+e.nextDouble()*(c-s)+s;var l=-r.INITIAL_WORLD_BOUNDARY,T=r.INITIAL_WORLD_BOUNDARY;o=r.WORLD_CENTER_Y+e.nextDouble()*(T-l)+l,this.rect.x=t,this.rect.y=o},i.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),r.NODE_DIMENSIONS_INCLUDE_LABELS){var o=t.getRight()-t.getLeft(),s=t.getBottom()-t.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(o+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>o?(this.rect.x-=(this.labelWidth-o)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(o+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(s+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>s?(this.rect.y-=(this.labelHeight-s)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(s+this.labelHeight))}}},i.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},i.prototype.transform=function(t){var o=this.rect.x;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var s=this.rect.y;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var c=new f(o,s),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},i.prototype.getLeft=function(){return this.rect.x},i.prototype.getRight=function(){return this.rect.x+this.rect.width},i.prototype.getTop=function(){return this.rect.y},i.prototype.getBottom=function(){return this.rect.y+this.rect.height},i.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},A.exports=i},function(A,P,N){var u=N(0);function h(){}for(var a in u)h[a]=u[a];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,A.exports=h},function(A,P,N){function u(h,a){h==null&&a==null?(this.x=0,this.y=0):(this.x=h,this.y=a)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(h){this.x=h},u.prototype.setY=function(h){this.y=h},u.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},A.exports=u},function(A,P,N){var u=N(2),h=N(10),a=N(0),r=N(7),e=N(3),f=N(1),i=N(13),g=N(12),t=N(11);function o(c,l,T){u.call(this,T),this.estimatedSize=h.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}o.prototype=Object.create(u.prototype);for(var s in u)o[s]=u[s];o.prototype.getNodes=function(){return this.nodes},o.prototype.getEdges=function(){return this.edges},o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getParent=function(){return this.parent},o.prototype.getLeft=function(){return this.left},o.prototype.getRight=function(){return this.right},o.prototype.getTop=function(){return this.top},o.prototype.getBottom=function(){return this.bottom},o.prototype.isConnected=function(){return this.isConnected},o.prototype.add=function(c,l,T){if(l==null&&T==null){var d=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(d)>-1)throw"Node already in graph!";return d.owner=this,this.getNodes().push(d),d}else{var v=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(v.source=l,v.target=T,v.isInterGraph=!1,this.getEdges().push(v),l.edges.push(v),T!=l&&T.edges.push(v),v)}},o.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),d,v=T.length,L=0;L<v;L++)d=T[L],d.isInterGraph?this.graphManager.remove(d):d.source.owner.remove(d);var S=this.nodes.indexOf(l);if(S==-1)throw"Node not in owner node list!";this.nodes.splice(S,1)}else if(c instanceof f){var d=c;if(d==null)throw"Edge is null!";if(!(d.source!=null&&d.target!=null))throw"Source and/or target is null!";if(!(d.source.owner!=null&&d.target.owner!=null&&d.source.owner==this&&d.target.owner==this))throw"Source and/or target owner is invalid!";var C=d.source.edges.indexOf(d),G=d.target.edges.indexOf(d);if(!(C>-1&&G>-1))throw"Source and/or target doesn't know this edge!";d.source.edges.splice(C,1),d.target!=d.source&&d.target.edges.splice(G,1);var S=d.source.owner.getEdges().indexOf(d);if(S==-1)throw"Not in owner's edge list!";d.source.owner.getEdges().splice(S,1)}},o.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,l=h.MAX_VALUE,T,d,v,L=this.getNodes(),S=L.length,C=0;C<S;C++){var G=L[C];T=G.getTop(),d=G.getLeft(),c>T&&(c=T),l>d&&(l=d)}return c==h.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?v=L[0].getParent().paddingLeft:v=this.margin,this.left=l-v,this.top=c-v,new g(this.left,this.top))},o.prototype.updateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,d=h.MAX_VALUE,v=-h.MAX_VALUE,L,S,C,G,K,X=this.nodes,Q=X.length,O=0;O<Q;O++){var it=X[O];c&&it.child!=null&&it.updateBounds(),L=it.getLeft(),S=it.getRight(),C=it.getTop(),G=it.getBottom(),l>L&&(l=L),T<S&&(T=S),d>C&&(d=C),v<G&&(v=G)}var n=new i(l,d,T-l,v-d);l==h.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),X[0].getParent().paddingLeft!=null?K=X[0].getParent().paddingLeft:K=this.margin,this.left=n.x-K,this.right=n.x+n.width+K,this.top=n.y-K,this.bottom=n.y+n.height+K},o.calculateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,d=h.MAX_VALUE,v=-h.MAX_VALUE,L,S,C,G,K=c.length,X=0;X<K;X++){var Q=c[X];L=Q.getLeft(),S=Q.getRight(),C=Q.getTop(),G=Q.getBottom(),l>L&&(l=L),T<S&&(T=S),d>C&&(d=C),v<G&&(v=G)}var O=new i(l,d,T-l,v-d);return O},o.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},o.prototype.getEstimatedSize=function(){if(this.estimatedSize==h.MIN_VALUE)throw"assert failed";return this.estimatedSize},o.prototype.calcEstimatedSize=function(){for(var c=0,l=this.nodes,T=l.length,d=0;d<T;d++){var v=l[d];c+=v.calcEstimatedSize()}return c==0?this.estimatedSize=a.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=c/Math.sqrt(this.nodes.length),this.estimatedSize},o.prototype.updateConnected=function(){var c=this;if(this.nodes.length==0){this.isConnected=!0;return}var l=new t,T=new Set,d=this.nodes[0],v,L,S=d.withChildren();for(S.forEach(function(O){l.push(O),T.add(O)});l.length!==0;){d=l.shift(),v=d.getEdges();for(var C=v.length,G=0;G<C;G++){var K=v[G];if(L=K.getOtherEndInGraph(d,this),L!=null&&!T.has(L)){var X=L.withChildren();X.forEach(function(O){l.push(O),T.add(O)})}}}if(this.isConnected=!1,T.size>=this.nodes.length){var Q=0;T.forEach(function(O){O.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},A.exports=o},function(A,P,N){var u,h=N(1);function a(r){u=N(6),this.layout=r,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},a.prototype.add=function(r,e,f,i,g){if(f==null&&i==null&&g==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{g=f,i=e,f=r;var t=i.getOwner(),o=g.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(o!=null&&o.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==o)return f.isInterGraph=!1,t.add(f,i,g);if(f.isInterGraph=!0,f.source=i,f.target=g,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},a.prototype.remove=function(r){if(r instanceof u){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var i,g=f.length,t=0;t<g;t++)i=f[t],e.remove(i);var o=[];o=o.concat(e.getNodes());var s;g=o.length;for(var t=0;t<g;t++)s=o[t],e.remove(s);e==this.rootGraph&&this.setRootGraph(null);var c=this.graphs.indexOf(e);this.graphs.splice(c,1),e.parent=null}else if(r instanceof h){if(i=r,i==null)throw"Edge is null!";if(!i.isInterGraph)throw"Not an inter-graph edge!";if(!(i.source!=null&&i.target!=null))throw"Source and/or target is null!";if(!(i.source.edges.indexOf(i)!=-1&&i.target.edges.indexOf(i)!=-1))throw"Source and/or target doesn't know this edge!";var c=i.source.edges.indexOf(i);if(i.source.edges.splice(c,1),c=i.target.edges.indexOf(i),i.target.edges.splice(c,1),!(i.source.owner!=null&&i.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(i.source.owner.getGraphManager().edges.indexOf(i)==-1)throw"Not in owner graph manager's edge list!";var c=i.source.owner.getGraphManager().edges.indexOf(i);i.source.owner.getGraphManager().edges.splice(c,1)}},a.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},a.prototype.getGraphs=function(){return this.graphs},a.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],e=this.getGraphs(),f=e.length,i=0;i<f;i++)r=r.concat(e[i].getNodes());this.allNodes=r}return this.allNodes},a.prototype.resetAllNodes=function(){this.allNodes=null},a.prototype.resetAllEdges=function(){this.allEdges=null},a.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},a.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],e=this.getGraphs();e.length;for(var f=0;f<e.length;f++)r=r.concat(e[f].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},a.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},a.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},a.prototype.getRoot=function(){return this.rootGraph},a.prototype.setRootGraph=function(r){if(r.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=r,r.parent==null&&(r.parent=this.layout.newNode("Root node"))},a.prototype.getLayout=function(){return this.layout},a.prototype.isOneAncestorOfOther=function(r,e){if(!(r!=null&&e!=null))throw"assert failed";if(r==e)return!0;var f=r.getOwner(),i;do{if(i=f.getParent(),i==null)break;if(i==e)return!0;if(f=i.getOwner(),f==null)break}while(!0);f=e.getOwner();do{if(i=f.getParent(),i==null)break;if(i==r)return!0;if(f=i.getOwner(),f==null)break}while(!0);return!1},a.prototype.calcLowestCommonAncestors=function(){for(var r,e,f,i,g,t=this.getAllEdges(),o=t.length,s=0;s<o;s++){if(r=t[s],e=r.source,f=r.target,r.lca=null,r.sourceInLca=e,r.targetInLca=f,e==f){r.lca=e.getOwner();continue}for(i=e.getOwner();r.lca==null;){for(r.targetInLca=f,g=f.getOwner();r.lca==null;){if(g==i){r.lca=g;break}if(g==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=g.getParent(),g=r.targetInLca.getOwner()}if(i==this.rootGraph)break;r.lca==null&&(r.sourceInLca=i.getParent(),i=r.sourceInLca.getOwner())}if(r.lca==null)throw"assert failed"}},a.prototype.calcLowestCommonAncestor=function(r,e){if(r==e)return r.getOwner();var f=r.getOwner();do{if(f==null)break;var i=e.getOwner();do{if(i==null)break;if(i==f)return i;i=i.getParent().getOwner()}while(!0);f=f.getParent().getOwner()}while(!0);return f},a.prototype.calcInclusionTreeDepths=function(r,e){r==null&&e==null&&(r=this.rootGraph,e=1);for(var f,i=r.getNodes(),g=i.length,t=0;t<g;t++)f=i[t],f.inclusionTreeDepth=e,f.child!=null&&this.calcInclusionTreeDepths(f.child,e+1)},a.prototype.includesInvalidEdge=function(){for(var r,e=[],f=this.edges.length,i=0;i<f;i++)r=this.edges[i],this.isOneAncestorOfOther(r.source,r.target)&&e.push(r);for(var i=0;i<e.length;i++)this.remove(e[i]);return!1},A.exports=a},function(A,P,N){var u=N(12);function h(){}h.calcSeparationAmount=function(a,r,e,f){if(!a.intersects(r))throw"assert failed";var i=new Array(2);this.decideDirectionsForOverlappingNodes(a,r,i),e[0]=Math.min(a.getRight(),r.getRight())-Math.max(a.x,r.x),e[1]=Math.min(a.getBottom(),r.getBottom())-Math.max(a.y,r.y),a.getX()<=r.getX()&&a.getRight()>=r.getRight()?e[0]+=Math.min(r.getX()-a.getX(),a.getRight()-r.getRight()):r.getX()<=a.getX()&&r.getRight()>=a.getRight()&&(e[0]+=Math.min(a.getX()-r.getX(),r.getRight()-a.getRight())),a.getY()<=r.getY()&&a.getBottom()>=r.getBottom()?e[1]+=Math.min(r.getY()-a.getY(),a.getBottom()-r.getBottom()):r.getY()<=a.getY()&&r.getBottom()>=a.getBottom()&&(e[1]+=Math.min(a.getY()-r.getY(),r.getBottom()-a.getBottom()));var g=Math.abs((r.getCenterY()-a.getCenterY())/(r.getCenterX()-a.getCenterX()));r.getCenterY()===a.getCenterY()&&r.getCenterX()===a.getCenterX()&&(g=1);var t=g*e[0],o=e[1]/g;e[0]<o?o=e[0]:t=e[1],e[0]=-1*i[0]*(o/2+f),e[1]=-1*i[1]*(t/2+f)},h.decideDirectionsForOverlappingNodes=function(a,r,e){a.getCenterX()<r.getCenterX()?e[0]=-1:e[0]=1,a.getCenterY()<r.getCenterY()?e[1]=-1:e[1]=1},h.getIntersection2=function(a,r,e){var f=a.getCenterX(),i=a.getCenterY(),g=r.getCenterX(),t=r.getCenterY();if(a.intersects(r))return e[0]=f,e[1]=i,e[2]=g,e[3]=t,!0;var o=a.getX(),s=a.getY(),c=a.getRight(),l=a.getX(),T=a.getBottom(),d=a.getRight(),v=a.getWidthHalf(),L=a.getHeightHalf(),S=r.getX(),C=r.getY(),G=r.getRight(),K=r.getX(),X=r.getBottom(),Q=r.getRight(),O=r.getWidthHalf(),it=r.getHeightHalf(),n=!1,E=!1;if(f===g){if(i>t)return e[0]=f,e[1]=s,e[2]=g,e[3]=X,!1;if(i<t)return e[0]=f,e[1]=T,e[2]=g,e[3]=C,!1}else if(i===t){if(f>g)return e[0]=o,e[1]=i,e[2]=G,e[3]=t,!1;if(f<g)return e[0]=c,e[1]=i,e[2]=S,e[3]=t,!1}else{var p=a.height/a.width,m=r.height/r.width,y=(t-i)/(g-f),R=void 0,M=void 0,F=void 0,W=void 0,x=void 0,Z=void 0;if(-p===y?f>g?(e[0]=l,e[1]=T,n=!0):(e[0]=c,e[1]=s,n=!0):p===y&&(f>g?(e[0]=o,e[1]=s,n=!0):(e[0]=d,e[1]=T,n=!0)),-m===y?g>f?(e[2]=K,e[3]=X,E=!0):(e[2]=G,e[3]=C,E=!0):m===y&&(g>f?(e[2]=S,e[3]=C,E=!0):(e[2]=Q,e[3]=X,E=!0)),n&&E)return!1;if(f>g?i>t?(R=this.getCardinalDirection(p,y,4),M=this.getCardinalDirection(m,y,2)):(R=this.getCardinalDirection(-p,y,3),M=this.getCardinalDirection(-m,y,1)):i>t?(R=this.getCardinalDirection(-p,y,1),M=this.getCardinalDirection(-m,y,3)):(R=this.getCardinalDirection(p,y,2),M=this.getCardinalDirection(m,y,4)),!n)switch(R){case 1:W=s,F=f+-L/y,e[0]=F,e[1]=W;break;case 2:F=d,W=i+v*y,e[0]=F,e[1]=W;break;case 3:W=T,F=f+L/y,e[0]=F,e[1]=W;break;case 4:F=l,W=i+-v*y,e[0]=F,e[1]=W;break}if(!E)switch(M){case 1:Z=C,x=g+-it/y,e[2]=x,e[3]=Z;break;case 2:x=Q,Z=t+O*y,e[2]=x,e[3]=Z;break;case 3:Z=X,x=g+it/y,e[2]=x,e[3]=Z;break;case 4:x=K,Z=t+-O*y,e[2]=x,e[3]=Z;break}}return!1},h.getCardinalDirection=function(a,r,e){return a>r?e:1+e%4},h.getIntersection=function(a,r,e,f){if(f==null)return this.getIntersection2(a,r,e);var i=a.x,g=a.y,t=r.x,o=r.y,s=e.x,c=e.y,l=f.x,T=f.y,d=void 0,v=void 0,L=void 0,S=void 0,C=void 0,G=void 0,K=void 0,X=void 0,Q=void 0;return L=o-g,C=i-t,K=t*g-i*o,S=T-c,G=s-l,X=l*c-s*T,Q=L*G-S*C,Q===0?null:(d=(C*X-G*K)/Q,v=(S*K-L*X)/Q,new u(d,v))},h.angleOfVector=function(a,r,e,f){var i=void 0;return a!==e?(i=Math.atan((f-r)/(e-a)),e<a?i+=Math.PI:f<r&&(i+=this.TWO_PI)):f<r?i=this.ONE_AND_HALF_PI:i=this.HALF_PI,i},h.doIntersect=function(a,r,e,f){var i=a.x,g=a.y,t=r.x,o=r.y,s=e.x,c=e.y,l=f.x,T=f.y,d=(t-i)*(T-c)-(l-s)*(o-g);if(d===0)return!1;var v=((T-c)*(l-i)+(s-l)*(T-g))/d,L=((g-o)*(l-i)+(t-i)*(T-g))/d;return 0<v&&v<1&&0<L&&L<1},h.findCircleLineIntersections=function(a,r,e,f,i,g,t){var o=(e-a)*(e-a)+(f-r)*(f-r),s=2*((a-i)*(e-a)+(r-g)*(f-r)),c=(a-i)*(a-i)+(r-g)*(r-g)-t*t,l=s*s-4*o*c;if(l>=0){var T=(-s+Math.sqrt(s*s-4*o*c))/(2*o),d=(-s-Math.sqrt(s*s-4*o*c))/(2*o),v=null;return T>=0&&T<=1?[T]:d>=0&&d<=1?[d]:v}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,A.exports=h},function(A,P,N){function u(){}u.sign=function(h){return h>0?1:h<0?-1:0},u.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},u.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},A.exports=u},function(A,P,N){function u(){}u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,A.exports=u},function(A,P,N){var u=function(){function i(g,t){for(var o=0;o<t.length;o++){var s=t[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(g,s.key,s)}}return function(g,t,o){return t&&i(g.prototype,t),o&&i(g,o),g}}();function h(i,g){if(!(i instanceof g))throw new TypeError("Cannot call a class as a function")}var a=function(g){return{value:g,next:null,prev:null}},r=function(g,t,o,s){return g!==null?g.next=t:s.head=t,o!==null?o.prev=t:s.tail=t,t.prev=g,t.next=o,s.length++,t},e=function(g,t){var o=g.prev,s=g.next;return o!==null?o.next=s:t.head=s,s!==null?s.prev=o:t.tail=o,g.prev=g.next=null,t.length--,g},f=function(){function i(g){var t=this;h(this,i),this.length=0,this.head=null,this.tail=null,g!=null&&g.forEach(function(o){return t.push(o)})}return u(i,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,o){return r(o.prev,a(t),o,this)}},{key:"insertAfter",value:function(t,o){return r(o,a(t),o.next,this)}},{key:"insertNodeBefore",value:function(t,o){return r(o.prev,t,o,this)}},{key:"insertNodeAfter",value:function(t,o){return r(o,t,o.next,this)}},{key:"push",value:function(t){return r(this.tail,a(t),null,this)}},{key:"unshift",value:function(t){return r(null,a(t),this.head,this)}},{key:"remove",value:function(t){return e(t,this)}},{key:"pop",value:function(){return e(this.tail,this).value}},{key:"popNode",value:function(){return e(this.tail,this)}},{key:"shift",value:function(){return e(this.head,this).value}},{key:"shiftNode",value:function(){return e(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var o=1,s=this.head;o<t;)s=s.next,o++;return s.value}}},{key:"set_object_at",value:function(t,o){if(t<=this.length()){for(var s=1,c=this.head;s<t;)c=c.next,s++;c.value=o}}}]),i}();A.exports=f},function(A,P,N){function u(h,a,r){this.x=null,this.y=null,h==null&&a==null&&r==null?(this.x=0,this.y=0):typeof h=="number"&&typeof a=="number"&&r==null?(this.x=h,this.y=a):h.constructor.name=="Point"&&a==null&&r==null&&(r=h,this.x=r.x,this.y=r.y)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.getLocation=function(){return new u(this.x,this.y)},u.prototype.setLocation=function(h,a,r){h.constructor.name=="Point"&&a==null&&r==null?(r=h,this.setLocation(r.x,r.y)):typeof h=="number"&&typeof a=="number"&&r==null&&(parseInt(h)==h&&parseInt(a)==a?this.move(h,a):(this.x=Math.floor(h+.5),this.y=Math.floor(a+.5)))},u.prototype.move=function(h,a){this.x=h,this.y=a},u.prototype.translate=function(h,a){this.x+=h,this.y+=a},u.prototype.equals=function(h){if(h.constructor.name=="Point"){var a=h;return this.x==a.x&&this.y==a.y}return this==h},u.prototype.toString=function(){return new u().constructor.name+"[x="+this.x+",y="+this.y+"]"},A.exports=u},function(A,P,N){function u(h,a,r,e){this.x=0,this.y=0,this.width=0,this.height=0,h!=null&&a!=null&&r!=null&&e!=null&&(this.x=h,this.y=a,this.width=r,this.height=e)}u.prototype.getX=function(){return this.x},u.prototype.setX=function(h){this.x=h},u.prototype.getY=function(){return this.y},u.prototype.setY=function(h){this.y=h},u.prototype.getWidth=function(){return this.width},u.prototype.setWidth=function(h){this.width=h},u.prototype.getHeight=function(){return this.height},u.prototype.setHeight=function(h){this.height=h},u.prototype.getRight=function(){return this.x+this.width},u.prototype.getBottom=function(){return this.y+this.height},u.prototype.intersects=function(h){return!(this.getRight()<h.x||this.getBottom()<h.y||h.getRight()<this.x||h.getBottom()<this.y)},u.prototype.getCenterX=function(){return this.x+this.width/2},u.prototype.getMinX=function(){return this.getX()},u.prototype.getMaxX=function(){return this.getX()+this.width},u.prototype.getCenterY=function(){return this.y+this.height/2},u.prototype.getMinY=function(){return this.getY()},u.prototype.getMaxY=function(){return this.getY()+this.height},u.prototype.getWidthHalf=function(){return this.width/2},u.prototype.getHeightHalf=function(){return this.height/2},A.exports=u},function(A,P,N){var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function h(){}h.lastID=0,h.createID=function(a){return h.isPrimitive(a)?a:(a.uniqueID!=null||(a.uniqueID=h.getString(),h.lastID++),a.uniqueID)},h.getString=function(a){return a==null&&(a=h.lastID),"Object#"+a},h.isPrimitive=function(a){var r=typeof a>"u"?"undefined":u(a);return a==null||r!="object"&&r!="function"},A.exports=h},function(A,P,N){function u(s){if(Array.isArray(s)){for(var c=0,l=Array(s.length);c<s.length;c++)l[c]=s[c];return l}else return Array.from(s)}var h=N(0),a=N(7),r=N(3),e=N(1),f=N(6),i=N(5),g=N(17),t=N(29);function o(s){t.call(this),this.layoutQuality=h.QUALITY,this.createBendsAsNeeded=h.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=h.DEFAULT_INCREMENTAL,this.animationOnLayout=h.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=h.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=h.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=h.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new a(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,s!=null&&(this.isRemoteUse=s)}o.RANDOM_SEED=1,o.prototype=Object.create(t.prototype),o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},o.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},o.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},o.prototype.newGraphManager=function(){var s=new a(this);return this.graphManager=s,s},o.prototype.newGraph=function(s){return new f(null,this.graphManager,s)},o.prototype.newNode=function(s){return new r(this.graphManager,s)},o.prototype.newEdge=function(s){return new e(null,null,s)},o.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},o.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var s;return this.checkLayoutSuccess()?s=!1:s=this.layout(),h.ANIMATE==="during"?!1:(s&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,s)},o.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},o.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var s=this.graphManager.getAllEdges(),c=0;c<s.length;c++)s[c];for(var l=this.graphManager.getRoot().getNodes(),c=0;c<l.length;c++)l[c];this.update(this.graphManager.getRoot())}},o.prototype.update=function(s){if(s==null)this.update2();else if(s instanceof r){var c=s;if(c.getChild()!=null)for(var l=c.getChild().getNodes(),T=0;T<l.length;T++)update(l[T]);if(c.vGraphObject!=null){var d=c.vGraphObject;d.update(c)}}else if(s instanceof e){var v=s;if(v.vGraphObject!=null){var L=v.vGraphObject;L.update(v)}}else if(s instanceof f){var S=s;if(S.vGraphObject!=null){var C=S.vGraphObject;C.update(S)}}},o.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=h.QUALITY,this.animationDuringLayout=h.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=h.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=h.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=h.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=h.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=h.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},o.prototype.transform=function(s){if(s==null)this.transform(new i(0,0));else{var c=new g,l=this.graphManager.getRoot().updateLeftTop();if(l!=null){c.setWorldOrgX(s.x),c.setWorldOrgY(s.y),c.setDeviceOrgX(l.x),c.setDeviceOrgY(l.y);for(var T=this.getAllNodes(),d,v=0;v<T.length;v++)d=T[v],d.transform(c)}}},o.prototype.positionNodesRandomly=function(s){if(s==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var c,l,T=s.getNodes(),d=0;d<T.length;d++)c=T[d],l=c.getChild(),l==null||l.getNodes().length==0?c.scatter():(this.positionNodesRandomly(l),c.updateBounds())},o.prototype.getFlatForest=function(){for(var s=[],c=!0,l=this.graphManager.getRoot().getNodes(),T=!0,d=0;d<l.length;d++)l[d].getChild()!=null&&(T=!1);if(!T)return s;var v=new Set,L=[],S=new Map,C=[];for(C=C.concat(l);C.length>0&&c;){for(L.push(C[0]);L.length>0&&c;){var G=L[0];L.splice(0,1),v.add(G);for(var K=G.getEdges(),d=0;d<K.length;d++){var X=K[d].getOtherEnd(G);if(S.get(G)!=X)if(!v.has(X))L.push(X),S.set(X,G);else{c=!1;break}}}if(!c)s=[];else{var Q=[].concat(u(v));s.push(Q);for(var d=0;d<Q.length;d++){var O=Q[d],it=C.indexOf(O);it>-1&&C.splice(it,1)}v=new Set,S=new Map}}return s},o.prototype.createDummyNodesForBendpoints=function(s){for(var c=[],l=s.source,T=this.graphManager.calcLowestCommonAncestor(s.source,s.target),d=0;d<s.bendpoints.length;d++){var v=this.newNode(null);v.setRect(new Point(0,0),new Dimension(1,1)),T.add(v);var L=this.newEdge(null);this.graphManager.add(L,l,v),c.add(v),l=v}var L=this.newEdge(null);return this.graphManager.add(L,l,s.target),this.edgeToDummyNodes.set(s,c),s.isInterGraph()?this.graphManager.remove(s):T.remove(s),c},o.prototype.createBendpointsFromDummyNodes=function(){var s=[];s=s.concat(this.graphManager.getAllEdges()),s=[].concat(u(this.edgeToDummyNodes.keys())).concat(s);for(var c=0;c<s.length;c++){var l=s[c];if(l.bendpoints.length>0){for(var T=this.edgeToDummyNodes.get(l),d=0;d<T.length;d++){var v=T[d],L=new i(v.getCenterX(),v.getCenterY()),S=l.bendpoints.get(d);S.x=L.x,S.y=L.y,v.getOwner().remove(v)}this.graphManager.add(l,l.source,l.target)}}},o.transform=function(s,c,l,T){if(l!=null&&T!=null){var d=c;if(s<=50){var v=c/l;d-=(c-v)/50*(50-s)}else{var L=c*T;d+=(L-c)/50*(s-50)}return d}else{var S,C;return s<=50?(S=9*c/500,C=c/10):(S=9*c/50,C=-8*c),S*s+C}},o.findCenterOfTree=function(s){var c=[];c=c.concat(s);var l=[],T=new Map,d=!1,v=null;(c.length==1||c.length==2)&&(d=!0,v=c[0]);for(var L=0;L<c.length;L++){var S=c[L],C=S.getNeighborsList().size;T.set(S,S.getNeighborsList().size),C==1&&l.push(S)}var G=[];for(G=G.concat(l);!d;){var K=[];K=K.concat(G),G=[];for(var L=0;L<c.length;L++){var S=c[L],X=c.indexOf(S);X>=0&&c.splice(X,1);var Q=S.getNeighborsList();Q.forEach(function(n){if(l.indexOf(n)<0){var E=T.get(n),p=E-1;p==1&&G.push(n),T.set(n,p)}})}l=l.concat(G),(c.length==1||c.length==2)&&(d=!0,v=c[0])}return v},o.prototype.setGraphManager=function(s){this.graphManager=s},A.exports=o},function(A,P,N){function u(){}u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},A.exports=u},function(A,P,N){var u=N(5);function h(a,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(a){this.lworldExtX=a},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(a){this.lworldExtY=a},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},h.prototype.transformX=function(a){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/e),r},h.prototype.transformY=function(a){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/e),r},h.prototype.inverseTransformX=function(a){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/e),r},h.prototype.inverseTransformY=function(a){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/e),r},h.prototype.inverseTransformPoint=function(a){var r=new u(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return r},A.exports=h},function(A,P,N){function u(t){if(Array.isArray(t)){for(var o=0,s=Array(t.length);o<t.length;o++)s[o]=t[o];return s}else return Array.from(t)}var h=N(15),a=N(4),r=N(0),e=N(8),f=N(9);function i(){h.call(this),this.useSmartIdealEdgeLengthCalculation=a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=a.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=a.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=a.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=a.MAX_ITERATIONS}i.prototype=Object.create(h.prototype);for(var g in h)i[g]=h[g];i.prototype.initParameters=function(){h.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},i.prototype.calcIdealEdgeLengths=function(){for(var t,o,s,c,l,T,d,v=this.getGraphManager().getAllEdges(),L=0;L<v.length;L++)t=v[L],o=t.idealLength,t.isInterGraph&&(c=t.getSource(),l=t.getTarget(),T=t.getSourceInLca().getEstimatedSize(),d=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=T+d-2*r.SIMPLE_NODE_SIZE),s=t.getLca().getInclusionTreeDepth(),t.idealLength+=o*a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(c.getInclusionTreeDepth()+l.getInclusionTreeDepth()-2*s))},i.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>a.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},i.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),o,s=0;s<t.length;s++)o=t[s],this.calcSpringForce(o,o.idealLength)},i.prototype.calcRepulsionForces=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,c,l,T,d=this.getAllNodes(),v;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),v=new Set,s=0;s<d.length;s++)l=d[s],this.calculateRepulsionForceOfANode(l,v,t,o),v.add(l);else for(s=0;s<d.length;s++)for(l=d[s],c=s+1;c<d.length;c++)T=d[c],l.getOwner()==T.getOwner()&&this.calcRepulsionForce(l,T)},i.prototype.calcGravitationalForces=function(){for(var t,o=this.getAllNodesToApplyGravitation(),s=0;s<o.length;s++)t=o[s],this.calcGravitationalForce(t)},i.prototype.moveNodes=function(){for(var t=this.getAllNodes(),o,s=0;s<t.length;s++)o=t[s],o.move()},i.prototype.calcSpringForce=function(t,o){var s=t.getSource(),c=t.getTarget(),l,T,d,v;if(this.uniformLeafNodeSizes&&s.getChild()==null&&c.getChild()==null)t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;l=t.getLength(),l!=0&&(T=t.edgeElasticity*(l-o),d=T*(t.lengthX/l),v=T*(t.lengthY/l),s.springForceX+=d,s.springForceY+=v,c.springForceX-=d,c.springForceY-=v)},i.prototype.calcRepulsionForce=function(t,o){var s=t.getRect(),c=o.getRect(),l=new Array(2),T=new Array(4),d,v,L,S,C,G,K;if(s.intersects(c)){e.calcSeparationAmount(s,c,l,a.DEFAULT_EDGE_LENGTH/2),G=2*l[0],K=2*l[1];var X=t.noOfChildren*o.noOfChildren/(t.noOfChildren+o.noOfChildren);t.repulsionForceX-=X*G,t.repulsionForceY-=X*K,o.repulsionForceX+=X*G,o.repulsionForceY+=X*K}else this.uniformLeafNodeSizes&&t.getChild()==null&&o.getChild()==null?(d=c.getCenterX()-s.getCenterX(),v=c.getCenterY()-s.getCenterY()):(e.getIntersection(s,c,T),d=T[2]-T[0],v=T[3]-T[1]),Math.abs(d)<a.MIN_REPULSION_DIST&&(d=f.sign(d)*a.MIN_REPULSION_DIST),Math.abs(v)<a.MIN_REPULSION_DIST&&(v=f.sign(v)*a.MIN_REPULSION_DIST),L=d*d+v*v,S=Math.sqrt(L),C=(t.nodeRepulsion/2+o.nodeRepulsion/2)*t.noOfChildren*o.noOfChildren/L,G=C*d/S,K=C*v/S,t.repulsionForceX-=G,t.repulsionForceY-=K,o.repulsionForceX+=G,o.repulsionForceY+=K},i.prototype.calcGravitationalForce=function(t){var o,s,c,l,T,d,v,L;o=t.getOwner(),s=(o.getRight()+o.getLeft())/2,c=(o.getTop()+o.getBottom())/2,l=t.getCenterX()-s,T=t.getCenterY()-c,d=Math.abs(l)+t.getWidth()/2,v=Math.abs(T)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(L=o.getEstimatedSize()*this.gravityRangeFactor,(d>L||v>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=o.getEstimatedSize()*this.compoundGravityRangeFactor,(d>L||v>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},i.prototype.isConverged=function(){var t,o=!1;return this.totalIterations>this.maxIterations/3&&(o=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||o},i.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},i.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,o=this.graphManager.getAllNodes(),s=0;s<o.length;s++)t=o[s],t.noOfChildren=t.getNoOfChildren()},i.prototype.calcGrid=function(t){var o=0,s=0;o=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),s=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var c=new Array(o),l=0;l<o;l++)c[l]=new Array(s);for(var l=0;l<o;l++)for(var T=0;T<s;T++)c[l][T]=new Array;return c},i.prototype.addNodeToGrid=function(t,o,s){var c=0,l=0,T=0,d=0;c=parseInt(Math.floor((t.getRect().x-o)/this.repulsionRange)),l=parseInt(Math.floor((t.getRect().width+t.getRect().x-o)/this.repulsionRange)),T=parseInt(Math.floor((t.getRect().y-s)/this.repulsionRange)),d=parseInt(Math.floor((t.getRect().height+t.getRect().y-s)/this.repulsionRange));for(var v=c;v<=l;v++)for(var L=T;L<=d;L++)this.grid[v][L].push(t),t.setGridCoordinates(c,l,T,d)},i.prototype.updateGrid=function(){var t,o,s=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<s.length;t++)o=s[t],this.addNodeToGrid(o,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},i.prototype.calculateRepulsionForceOfANode=function(t,o,s,c){if(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&s||c){var l=new Set;t.surrounding=new Array;for(var T,d=this.grid,v=t.startX-1;v<t.finishX+2;v++)for(var L=t.startY-1;L<t.finishY+2;L++)if(!(v<0||L<0||v>=d.length||L>=d[0].length)){for(var S=0;S<d[v][L].length;S++)if(T=d[v][L][S],!(t.getOwner()!=T.getOwner()||t==T)&&!o.has(T)&&!l.has(T)){var C=Math.abs(t.getCenterX()-T.getCenterX())-(t.getWidth()/2+T.getWidth()/2),G=Math.abs(t.getCenterY()-T.getCenterY())-(t.getHeight()/2+T.getHeight()/2);C<=this.repulsionRange&&G<=this.repulsionRange&&l.add(T)}}t.surrounding=[].concat(u(l))}for(v=0;v<t.surrounding.length;v++)this.calcRepulsionForce(t,t.surrounding[v])},i.prototype.calcRepulsionRange=function(){return 0},A.exports=i},function(A,P,N){var u=N(1),h=N(4);function a(e,f,i){u.call(this,e,f,i),this.idealLength=h.DEFAULT_EDGE_LENGTH,this.edgeElasticity=h.DEFAULT_SPRING_STRENGTH}a.prototype=Object.create(u.prototype);for(var r in u)a[r]=u[r];A.exports=a},function(A,P,N){var u=N(3),h=N(4);function a(e,f,i,g){u.call(this,e,f,i,g),this.nodeRepulsion=h.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}a.prototype=Object.create(u.prototype);for(var r in u)a[r]=u[r];a.prototype.setGridCoordinates=function(e,f,i,g){this.startX=e,this.finishX=f,this.startY=i,this.finishY=g},A.exports=a},function(A,P,N){function u(h,a){this.width=0,this.height=0,h!==null&&a!==null&&(this.height=a,this.width=h)}u.prototype.getWidth=function(){return this.width},u.prototype.setWidth=function(h){this.width=h},u.prototype.getHeight=function(){return this.height},u.prototype.setHeight=function(h){this.height=h},A.exports=u},function(A,P,N){var u=N(14);function h(){this.map={},this.keys=[]}h.prototype.put=function(a,r){var e=u.createID(a);this.contains(e)||(this.map[e]=r,this.keys.push(a))},h.prototype.contains=function(a){return u.createID(a),this.map[a]!=null},h.prototype.get=function(a){var r=u.createID(a);return this.map[r]},h.prototype.keySet=function(){return this.keys},A.exports=h},function(A,P,N){var u=N(14);function h(){this.set={}}h.prototype.add=function(a){var r=u.createID(a);this.contains(r)||(this.set[r]=a)},h.prototype.remove=function(a){delete this.set[u.createID(a)]},h.prototype.clear=function(){this.set={}},h.prototype.contains=function(a){return this.set[u.createID(a)]==a},h.prototype.isEmpty=function(){return this.size()===0},h.prototype.size=function(){return Object.keys(this.set).length},h.prototype.addAllTo=function(a){for(var r=Object.keys(this.set),e=r.length,f=0;f<e;f++)a.push(this.set[r[f]])},h.prototype.size=function(){return Object.keys(this.set).length},h.prototype.addAll=function(a){for(var r=a.length,e=0;e<r;e++){var f=a[e];this.add(f)}},A.exports=h},function(A,P,N){function u(){}u.multMat=function(h,a){for(var r=[],e=0;e<h.length;e++){r[e]=[];for(var f=0;f<a[0].length;f++){r[e][f]=0;for(var i=0;i<h[0].length;i++)r[e][f]+=h[e][i]*a[i][f]}}return r},u.transpose=function(h){for(var a=[],r=0;r<h[0].length;r++){a[r]=[];for(var e=0;e<h.length;e++)a[r][e]=h[e][r]}return a},u.multCons=function(h,a){for(var r=[],e=0;e<h.length;e++)r[e]=h[e]*a;return r},u.minusOp=function(h,a){for(var r=[],e=0;e<h.length;e++)r[e]=h[e]-a[e];return r},u.dotProduct=function(h,a){for(var r=0,e=0;e<h.length;e++)r+=h[e]*a[e];return r},u.mag=function(h){return Math.sqrt(this.dotProduct(h,h))},u.normalize=function(h){for(var a=[],r=this.mag(h),e=0;e<h.length;e++)a[e]=h[e]/r;return a},u.multGamma=function(h){for(var a=[],r=0,e=0;e<h.length;e++)r+=h[e];r*=-1/h.length;for(var f=0;f<h.length;f++)a[f]=r+h[f];return a},u.multL=function(h,a,r){for(var e=[],f=[],i=[],g=0;g<a[0].length;g++){for(var t=0,o=0;o<a.length;o++)t+=-.5*a[o][g]*h[o];f[g]=t}for(var s=0;s<r.length;s++){for(var c=0,l=0;l<r.length;l++)c+=r[s][l]*f[l];i[s]=c}for(var T=0;T<a.length;T++){for(var d=0,v=0;v<a[0].length;v++)d+=a[T][v]*i[v];e[T]=d}return e},A.exports=u},function(A,P,N){var u=function(){function e(f,i){for(var g=0;g<i.length;g++){var t=i[g];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(f,t.key,t)}}return function(f,i,g){return i&&e(f.prototype,i),g&&e(f,g),f}}();function h(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function")}var a=N(11),r=function(){function e(f,i){h(this,e),(i!==null||i!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var g=void 0;f instanceof a?g=f.size():g=f.length,this._quicksort(f,0,g-1)}return u(e,[{key:"_quicksort",value:function(i,g,t){if(g<t){var o=this._partition(i,g,t);this._quicksort(i,g,o),this._quicksort(i,o+1,t)}}},{key:"_partition",value:function(i,g,t){for(var o=this._get(i,g),s=g,c=t;;){for(;this.compareFunction(o,this._get(i,c));)c--;for(;this.compareFunction(this._get(i,s),o);)s++;if(s<c)this._swap(i,s,c),s++,c--;else return c}}},{key:"_get",value:function(i,g){return i instanceof a?i.get_object_at(g):i[g]}},{key:"_set",value:function(i,g,t){i instanceof a?i.set_object_at(g,t):i[g]=t}},{key:"_swap",value:function(i,g,t){var o=this._get(i,g);this._set(i,g,this._get(i,t)),this._set(i,t,o)}},{key:"_defaultCompareFunction",value:function(i,g){return g>i}}]),e}();A.exports=r},function(A,P,N){function u(){}u.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var a=Math.min(this.m,this.n);this.s=function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct}(Math.min(this.m+1,this.n)),this.U=function(Tt){var Ct=function Bt(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St<bt[0];St++)zt.push(Bt(bt.slice(1)));return zt};return Ct(Tt)}([this.m,a]),this.V=function(Tt){var Ct=function Bt(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St<bt[0];St++)zt.push(Bt(bt.slice(1)));return zt};return Ct(Tt)}([this.n,this.n]);for(var r=function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct}(this.n),e=function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct}(this.m),f=!0,i=Math.min(this.m-1,this.n),g=Math.max(0,Math.min(this.n-2,this.m)),t=0;t<Math.max(i,g);t++){if(t<i){this.s[t]=0;for(var o=t;o<this.m;o++)this.s[t]=u.hypot(this.s[t],h[o][t]);if(this.s[t]!==0){h[t][t]<0&&(this.s[t]=-this.s[t]);for(var s=t;s<this.m;s++)h[s][t]/=this.s[t];h[t][t]+=1}this.s[t]=-this.s[t]}for(var c=t+1;c<this.n;c++){if(function(Tt,Ct){return Tt&&Ct}(t<i,this.s[t]!==0)){for(var l=0,T=t;T<this.m;T++)l+=h[T][t]*h[T][c];l=-l/h[t][t];for(var d=t;d<this.m;d++)h[d][c]+=l*h[d][t]}r[c]=h[t][c]}if(function(Tt,Ct){return Ct}(f,t<i))for(var v=t;v<this.m;v++)this.U[v][t]=h[v][t];if(t<g){r[t]=0;for(var L=t+1;L<this.n;L++)r[t]=u.hypot(r[t],r[L]);if(r[t]!==0){r[t+1]<0&&(r[t]=-r[t]);for(var S=t+1;S<this.n;S++)r[S]/=r[t];r[t+1]+=1}if(r[t]=-r[t],function(Tt,Ct){return Tt&&Ct}(t+1<this.m,r[t]!==0)){for(var C=t+1;C<this.m;C++)e[C]=0;for(var G=t+1;G<this.n;G++)for(var K=t+1;K<this.m;K++)e[K]+=r[G]*h[K][G];for(var X=t+1;X<this.n;X++)for(var Q=-r[X]/r[t+1],O=t+1;O<this.m;O++)h[O][X]+=Q*e[O]}for(var it=t+1;it<this.n;it++)this.V[it][t]=r[it]}}var n=Math.min(this.n,this.m+1);i<this.n&&(this.s[i]=h[i][i]),this.m<n&&(this.s[n-1]=0),g+1<n&&(r[g]=h[g][n-1]),r[n-1]=0;{for(var E=i;E<a;E++){for(var p=0;p<this.m;p++)this.U[p][E]=0;this.U[E][E]=1}for(var m=i-1;m>=0;m--)if(this.s[m]!==0){for(var y=m+1;y<a;y++){for(var R=0,M=m;M<this.m;M++)R+=this.U[M][m]*this.U[M][y];R=-R/this.U[m][m];for(var F=m;F<this.m;F++)this.U[F][y]+=R*this.U[F][m]}for(var W=m;W<this.m;W++)this.U[W][m]=-this.U[W][m];this.U[m][m]=1+this.U[m][m];for(var x=0;x<m-1;x++)this.U[x][m]=0}else{for(var Z=0;Z<this.m;Z++)this.U[Z][m]=0;this.U[m][m]=1}}for(var V=this.n-1;V>=0;V--){if(function(Tt,Ct){return Tt&&Ct}(V<g,r[V]!==0))for(var Y=V+1;Y<a;Y++){for(var rt=0,z=V+1;z<this.n;z++)rt+=this.V[z][V]*this.V[z][Y];rt=-rt/this.V[V+1][V];for(var w=V+1;w<this.n;w++)this.V[w][Y]+=rt*this.V[w][V]}for(var H=0;H<this.n;H++)this.V[H][V]=0;this.V[V][V]=1}for(var B=n-1,j=Math.pow(2,-52),lt=Math.pow(2,-966);n>0;){var q=void 0,It=void 0;for(q=n-2;q>=-1&&q!==-1;q--)if(Math.abs(r[q])<=lt+j*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){r[q]=0;break}if(q===n-2)It=4;else{var Nt=void 0;for(Nt=n-1;Nt>=q&&Nt!==q;Nt--){var vt=(Nt!==n?Math.abs(r[Nt]):0)+(Nt!==q+1?Math.abs(r[Nt-1]):0);if(Math.abs(this.s[Nt])<=lt+j*vt){this.s[Nt]=0;break}}Nt===q?It=3:Nt===n-1?It=1:(It=2,q=Nt)}switch(q++,It){case 1:{var at=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=q;ut--){var Et=u.hypot(this.s[ut],at),At=this.s[ut]/Et,Ot=at/Et;this.s[ut]=Et,ut!==q&&(at=-Ot*r[ut-1],r[ut-1]=At*r[ut-1]);for(var mt=0;mt<this.n;mt++)Et=At*this.V[mt][ut]+Ot*this.V[mt][n-1],this.V[mt][n-1]=-Ot*this.V[mt][ut]+At*this.V[mt][n-1],this.V[mt][ut]=Et}}break;case 2:{var Dt=r[q-1];r[q-1]=0;for(var Rt=q;Rt<n;Rt++){var Ht=u.hypot(this.s[Rt],Dt),Ut=this.s[Rt]/Ht,Pt=Dt/Ht;this.s[Rt]=Ht,Dt=-Pt*r[Rt],r[Rt]=Ut*r[Rt];for(var Ft=0;Ft<this.m;Ft++)Ht=Ut*this.U[Ft][Rt]+Pt*this.U[Ft][q-1],this.U[Ft][q-1]=-Pt*this.U[Ft][Rt]+Ut*this.U[Ft][q-1],this.U[Ft][Rt]=Ht}}break;case 3:{var Yt=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[n-1]),Math.abs(this.s[n-2])),Math.abs(r[n-2])),Math.abs(this.s[q])),Math.abs(r[q])),Vt=this.s[n-1]/Yt,b=this.s[n-2]/Yt,U=r[n-2]/Yt,$=this.s[q]/Yt,J=r[q]/Yt,k=((b+Vt)*(b-Vt)+U*U)/2,nt=Vt*U*(Vt*U),gt=0;(function(Tt,Ct){return Tt||Ct})(k!==0,nt!==0)&&(gt=Math.sqrt(k*k+nt),k<0&&(gt=-gt),gt=nt/(k+gt));for(var ot=($+Vt)*($-Vt)+gt,et=$*J,_=q;_<n-1;_++){var dt=u.hypot(ot,et),Mt=ot/dt,pt=et/dt;_!==q&&(r[_-1]=dt),ot=Mt*this.s[_]+pt*r[_],r[_]=Mt*r[_]-pt*this.s[_],et=pt*this.s[_+1],this.s[_+1]=Mt*this.s[_+1];for(var xt=0;xt<this.n;xt++)dt=Mt*this.V[xt][_]+pt*this.V[xt][_+1],this.V[xt][_+1]=-pt*this.V[xt][_]+Mt*this.V[xt][_+1],this.V[xt][_]=dt;if(dt=u.hypot(ot,et),Mt=ot/dt,pt=et/dt,this.s[_]=dt,ot=Mt*r[_]+pt*this.s[_+1],this.s[_+1]=-pt*r[_]+Mt*this.s[_+1],et=pt*r[_+1],r[_+1]=Mt*r[_+1],_<this.m-1)for(var ft=0;ft<this.m;ft++)dt=Mt*this.U[ft][_]+pt*this.U[ft][_+1],this.U[ft][_+1]=-pt*this.U[ft][_]+Mt*this.U[ft][_+1],this.U[ft][_]=dt}r[n-2]=ot}break;case 4:{if(this.s[q]<=0){this.s[q]=this.s[q]<0?-this.s[q]:0;for(var st=0;st<=B;st++)this.V[st][q]=-this.V[st][q]}for(;q<B&&!(this.s[q]>=this.s[q+1]);){var Lt=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Lt,q<this.n-1)for(var ct=0;ct<this.n;ct++)Lt=this.V[ct][q+1],this.V[ct][q+1]=this.V[ct][q],this.V[ct][q]=Lt;if(q<this.m-1)for(var ht=0;ht<this.m;ht++)Lt=this.U[ht][q+1],this.U[ht][q+1]=this.U[ht][q],this.U[ht][q]=Lt;q++}n--}break}}var Xt={U:this.U,V:this.V,S:this.s};return Xt},u.hypot=function(h,a){var r=void 0;return Math.abs(h)>Math.abs(a)?(r=a/h,r=Math.abs(h)*Math.sqrt(1+r*r)):a!=0?(r=h/a,r=Math.abs(a)*Math.sqrt(1+r*r)):r=0,r},A.exports=u},function(A,P,N){var u=function(){function r(e,f){for(var i=0;i<f.length;i++){var g=f[i];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(e,g.key,g)}}return function(e,f,i){return f&&r(e.prototype,f),i&&r(e,i),e}}();function h(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function r(e,f){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,r),this.sequence1=e,this.sequence2=f,this.match_score=i,this.mismatch_penalty=g,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var o=0;o<this.iMax;o++){this.grid[o]=new Array(this.jMax);for(var s=0;s<this.jMax;s++)this.grid[o][s]=0}this.tracebackGrid=new Array(this.iMax);for(var c=0;c<this.iMax;c++){this.tracebackGrid[c]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[c][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return u(r,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var f=1;f<this.jMax;f++)this.grid[0][f]=this.grid[0][f-1]+this.gap_penalty,this.tracebackGrid[0][f]=[!1,!1,!0];for(var i=1;i<this.iMax;i++)this.grid[i][0]=this.grid[i-1][0]+this.gap_penalty,this.tracebackGrid[i][0]=[!1,!0,!1];for(var g=1;g<this.iMax;g++)for(var t=1;t<this.jMax;t++){var o=void 0;this.sequence1[g-1]===this.sequence2[t-1]?o=this.grid[g-1][t-1]+this.match_score:o=this.grid[g-1][t-1]+this.mismatch_penalty;var s=this.grid[g-1][t]+this.gap_penalty,c=this.grid[g][t-1]+this.gap_penalty,l=[o,s,c],T=this.arrayAllMaxIndexes(l);this.grid[g][t]=l[T[0]],this.tracebackGrid[g][t]=[T.includes(0),T.includes(1),T.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var f=[];for(f.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});f[0];){var i=f[0],g=this.tracebackGrid[i.pos[0]][i.pos[1]];g[0]&&f.push({pos:[i.pos[0]-1,i.pos[1]-1],seq1:this.sequence1[i.pos[0]-1]+i.seq1,seq2:this.sequence2[i.pos[1]-1]+i.seq2}),g[1]&&f.push({pos:[i.pos[0]-1,i.pos[1]],seq1:this.sequence1[i.pos[0]-1]+i.seq1,seq2:"-"+i.seq2}),g[2]&&f.push({pos:[i.pos[0],i.pos[1]-1],seq1:"-"+i.seq1,seq2:this.sequence2[i.pos[1]-1]+i.seq2}),i.pos[0]===0&&i.pos[1]===0&&this.alignments.push({sequence1:i.seq1,sequence2:i.seq2}),f.shift()}return this.alignments}},{key:"getAllIndexes",value:function(f,i){for(var g=[],t=-1;(t=f.indexOf(i,t+1))!==-1;)g.push(t);return g}},{key:"arrayAllMaxIndexes",value:function(f){return this.getAllIndexes(f,Math.max.apply(null,f))}}]),r}();A.exports=a},function(A,P,N){var u=function(){};u.FDLayout=N(18),u.FDLayoutConstants=N(4),u.FDLayoutEdge=N(19),u.FDLayoutNode=N(20),u.DimensionD=N(21),u.HashMap=N(22),u.HashSet=N(23),u.IGeometry=N(8),u.IMath=N(9),u.Integer=N(10),u.Point=N(12),u.PointD=N(5),u.RandomSeed=N(16),u.RectangleD=N(13),u.Transform=N(17),u.UniqueIDGeneretor=N(14),u.Quicksort=N(25),u.LinkedList=N(11),u.LGraphObject=N(2),u.LGraph=N(6),u.LEdge=N(1),u.LGraphManager=N(7),u.LNode=N(3),u.Layout=N(15),u.LayoutConstants=N(0),u.NeedlemanWunsch=N(27),u.Matrix=N(24),u.SVD=N(26),A.exports=u},function(A,P,N){function u(){this.listeners=[]}var h=u.prototype;h.addListener=function(a,r){this.listeners.push({event:a,callback:r})},h.removeListener=function(a,r){for(var e=this.listeners.length;e>=0;e--){var f=this.listeners[e];f.event===a&&f.callback===r&&this.listeners.splice(e,1)}},h.emit=function(a,r){for(var e=0;e<this.listeners.length;e++){var f=this.listeners[e];a===f.event&&f.callback(r)}},A.exports=u}])})}(fe)),fe.exports}var Ze=le.exports,Ae;function qe(){return Ae||(Ae=1,function(I,D){(function(P,N){I.exports=N(ke())})(Ze,function(A){return(()=>{var P={45:(a,r,e)=>{var f={};f.layoutBase=e(551),f.CoSEConstants=e(806),f.CoSEEdge=e(767),f.CoSEGraph=e(880),f.CoSEGraphManager=e(578),f.CoSELayout=e(765),f.CoSENode=e(991),f.ConstraintHandler=e(902),a.exports=f},806:(a,r,e)=>{var f=e(551).FDLayoutConstants;function i(){}for(var g in f)i[g]=f[g];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,a.exports=i},767:(a,r,e)=>{var f=e(551).FDLayoutEdge;function i(t,o,s){f.call(this,t,o,s)}i.prototype=Object.create(f.prototype);for(var g in f)i[g]=f[g];a.exports=i},880:(a,r,e)=>{var f=e(551).LGraph;function i(t,o,s){f.call(this,t,o,s)}i.prototype=Object.create(f.prototype);for(var g in f)i[g]=f[g];a.exports=i},578:(a,r,e)=>{var f=e(551).LGraphManager;function i(t){f.call(this,t)}i.prototype=Object.create(f.prototype);for(var g in f)i[g]=f[g];a.exports=i},765:(a,r,e)=>{var f=e(551).FDLayout,i=e(578),g=e(880),t=e(991),o=e(767),s=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,d=e(551).Point,v=e(551).PointD,L=e(551).DimensionD,S=e(551).Layout,C=e(551).Integer,G=e(551).IGeometry,K=e(551).LGraph,X=e(551).Transform,Q=e(551).LinkedList;function O(){f.call(this),this.toBeTiled={},this.constraints={}}O.prototype=Object.create(f.prototype);for(var it in f)O[it]=f[it];O.prototype.newGraphManager=function(){var n=new i(this);return this.graphManager=n,n},O.prototype.newGraph=function(n){return new g(null,this.graphManager,n)},O.prototype.newNode=function(n){return new t(this.graphManager,n)},O.prototype.newEdge=function(n){return new o(null,null,n)},O.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(s.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=s.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},O.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},O.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},O.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(s.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(R){return E.has(R)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(m){return E.has(m)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),s.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},O.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),s.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),s.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,m=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,m),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},O.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),E={},p=0;p<n.length;p++){var m=n[p].rect,y=n[p].id;E[y]={id:y,x:m.getCenterX(),y:m.getCenterY(),w:m.width,h:m.height}}return E},O.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var n=!1;if(l.ANIMATE==="during")this.emit("layoutstarted");else{for(;!n;)n=this.tick();this.graphManager.updateBounds()}},O.prototype.moveNodes=function(){for(var n=this.getAllNodes(),E,p=0;p<n.length;p++)E=n[p],E.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var p=0;p<n.length;p++)E=n[p],E.move()},O.prototype.initConstraintVariables=function(){var n=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var E=this.graphManager.getAllNodes(),p=0;p<E.length;p++){var m=E[p];this.idToNodeMap.set(m.id,m)}var y=function w(H){for(var B=H.getChild().getNodes(),j,lt=0,q=0;q<B.length;q++)j=B[q],j.getChild()==null?n.fixedNodeSet.has(j.id)&&(lt+=100):lt+=w(j);return lt};if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(B){n.fixedNodeSet.add(B.nodeId)});for(var E=this.graphManager.getAllNodes(),m,p=0;p<E.length;p++)if(m=E[p],m.getChild()!=null){var R=y(m);R>0&&(m.fixedNodeWeight=R)}}if(this.constraints.relativePlacementConstraint){var M=new Map,F=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(w){n.fixedNodesOnHorizontal.add(w),n.fixedNodesOnVertical.add(w)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p<W.length;p++)this.dummyToNodeForVerticalAlignment.set("dummy"+p,[]),W[p].forEach(function(H){M.set(H,"dummy"+p),n.dummyToNodeForVerticalAlignment.get("dummy"+p).push(H),n.fixedNodeSet.has(H)&&n.fixedNodesOnHorizontal.add("dummy"+p)});if(this.constraints.alignmentConstraint.horizontal)for(var x=this.constraints.alignmentConstraint.horizontal,p=0;p<x.length;p++)this.dummyToNodeForHorizontalAlignment.set("dummy"+p,[]),x[p].forEach(function(H){F.set(H,"dummy"+p),n.dummyToNodeForHorizontalAlignment.get("dummy"+p).push(H),n.fixedNodeSet.has(H)&&n.fixedNodesOnVertical.add("dummy"+p)})}if(s.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(w){var H,B,j;for(j=w.length-1;j>=2*w.length/3;j--)H=Math.floor(Math.random()*(j+1)),B=w[j],w[j]=w[H],w[H]=B;return w},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(w){if(w.left){var H=M.has(w.left)?M.get(w.left):w.left,B=M.has(w.right)?M.get(w.right):w.right;n.nodesInRelativeHorizontal.includes(H)||(n.nodesInRelativeHorizontal.push(H),n.nodeToRelativeConstraintMapHorizontal.set(H,[]),n.dummyToNodeForVerticalAlignment.has(H)?n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(H).getCenterX())),n.nodesInRelativeHorizontal.includes(B)||(n.nodesInRelativeHorizontal.push(B),n.nodeToRelativeConstraintMapHorizontal.set(B,[]),n.dummyToNodeForVerticalAlignment.has(B)?n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(B).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(H).push({right:B,gap:w.gap}),n.nodeToRelativeConstraintMapHorizontal.get(B).push({left:H,gap:w.gap})}else{var j=F.has(w.top)?F.get(w.top):w.top,lt=F.has(w.bottom)?F.get(w.bottom):w.bottom;n.nodesInRelativeVertical.includes(j)||(n.nodesInRelativeVertical.push(j),n.nodeToRelativeConstraintMapVertical.set(j,[]),n.dummyToNodeForHorizontalAlignment.has(j)?n.nodeToTempPositionMapVertical.set(j,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(j)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(j,n.idToNodeMap.get(j).getCenterY())),n.nodesInRelativeVertical.includes(lt)||(n.nodesInRelativeVertical.push(lt),n.nodeToRelativeConstraintMapVertical.set(lt,[]),n.dummyToNodeForHorizontalAlignment.has(lt)?n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(lt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(lt).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(j).push({bottom:lt,gap:w.gap}),n.nodeToRelativeConstraintMapVertical.get(lt).push({top:j,gap:w.gap})}});else{var Z=new Map,V=new Map;this.constraints.relativePlacementConstraint.forEach(function(w){if(w.left){var H=M.has(w.left)?M.get(w.left):w.left,B=M.has(w.right)?M.get(w.right):w.right;Z.has(H)?Z.get(H).push(B):Z.set(H,[B]),Z.has(B)?Z.get(B).push(H):Z.set(B,[H])}else{var j=F.has(w.top)?F.get(w.top):w.top,lt=F.has(w.bottom)?F.get(w.bottom):w.bottom;V.has(j)?V.get(j).push(lt):V.set(j,[lt]),V.has(lt)?V.get(lt).push(j):V.set(lt,[j])}});var Y=function(H,B){var j=[],lt=[],q=new Q,It=new Set,Nt=0;return H.forEach(function(vt,at){if(!It.has(at)){j[Nt]=[],lt[Nt]=!1;var ut=at;for(q.push(ut),It.add(ut),j[Nt].push(ut);q.length!=0;){ut=q.shift(),B.has(ut)&&(lt[Nt]=!0);var Et=H.get(ut);Et.forEach(function(At){It.has(At)||(q.push(At),It.add(At),j[Nt].push(At))})}Nt++}}),{components:j,isFixed:lt}},rt=Y(Z,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=rt.components,this.fixedComponentsOnHorizontal=rt.isFixed;var z=Y(V,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},O.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var w=n.idToNodeMap.get(z.nodeId);w.displacementX=0,w.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var E=this.constraints.alignmentConstraint.vertical,p=0;p<E.length;p++){for(var m=0,y=0;y<E[p].length;y++){if(this.fixedNodeSet.has(E[p][y])){m=0;break}m+=this.idToNodeMap.get(E[p][y]).displacementX}for(var R=m/E[p].length,y=0;y<E[p].length;y++)this.idToNodeMap.get(E[p][y]).displacementX=R}if(this.constraints.alignmentConstraint.horizontal)for(var M=this.constraints.alignmentConstraint.horizontal,p=0;p<M.length;p++){for(var F=0,y=0;y<M[p].length;y++){if(this.fixedNodeSet.has(M[p][y])){F=0;break}F+=this.idToNodeMap.get(M[p][y]).displacementY}for(var W=F/M[p].length,y=0;y<M[p].length;y++)this.idToNodeMap.get(M[p][y]).displacementY=W}}if(this.constraints.relativePlacementConstraint)if(s.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(z){if(!n.fixedNodesOnHorizontal.has(z)){var w=0;n.dummyToNodeForVerticalAlignment.has(z)?w=n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(z)[0]).displacementX:w=n.idToNodeMap.get(z).displacementX,n.nodeToRelativeConstraintMapHorizontal.get(z).forEach(function(H){if(H.right){var B=n.nodeToTempPositionMapHorizontal.get(H.right)-n.nodeToTempPositionMapHorizontal.get(z)-w;B<H.gap&&(w-=H.gap-B)}else{var B=n.nodeToTempPositionMapHorizontal.get(z)-n.nodeToTempPositionMapHorizontal.get(H.left)+w;B<H.gap&&(w+=H.gap-B)}}),n.nodeToTempPositionMapHorizontal.set(z,n.nodeToTempPositionMapHorizontal.get(z)+w),n.dummyToNodeForVerticalAlignment.has(z)?n.dummyToNodeForVerticalAlignment.get(z).forEach(function(H){n.idToNodeMap.get(H).displacementX=w}):n.idToNodeMap.get(z).displacementX=w}}),this.nodesInRelativeVertical.forEach(function(z){if(!n.fixedNodesOnHorizontal.has(z)){var w=0;n.dummyToNodeForHorizontalAlignment.has(z)?w=n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(z)[0]).displacementY:w=n.idToNodeMap.get(z).displacementY,n.nodeToRelativeConstraintMapVertical.get(z).forEach(function(H){if(H.bottom){var B=n.nodeToTempPositionMapVertical.get(H.bottom)-n.nodeToTempPositionMapVertical.get(z)-w;B<H.gap&&(w-=H.gap-B)}else{var B=n.nodeToTempPositionMapVertical.get(z)-n.nodeToTempPositionMapVertical.get(H.top)+w;B<H.gap&&(w+=H.gap-B)}}),n.nodeToTempPositionMapVertical.set(z,n.nodeToTempPositionMapVertical.get(z)+w),n.dummyToNodeForHorizontalAlignment.has(z)?n.dummyToNodeForHorizontalAlignment.get(z).forEach(function(H){n.idToNodeMap.get(H).displacementY=w}):n.idToNodeMap.get(z).displacementY=w}});else{for(var p=0;p<this.componentsOnHorizontal.length;p++){var x=this.componentsOnHorizontal[p];if(this.fixedComponentsOnHorizontal[p])for(var y=0;y<x.length;y++)this.dummyToNodeForVerticalAlignment.has(x[y])?this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H){n.idToNodeMap.get(H).displacementX=0}):this.idToNodeMap.get(x[y]).displacementX=0;else{for(var Z=0,V=0,y=0;y<x.length;y++)if(this.dummyToNodeForVerticalAlignment.has(x[y])){var Y=this.dummyToNodeForVerticalAlignment.get(x[y]);Z+=Y.length*this.idToNodeMap.get(Y[0]).displacementX,V+=Y.length}else Z+=this.idToNodeMap.get(x[y]).displacementX,V++;for(var rt=Z/V,y=0;y<x.length;y++)this.dummyToNodeForVerticalAlignment.has(x[y])?this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H){n.idToNodeMap.get(H).displacementX=rt}):this.idToNodeMap.get(x[y]).displacementX=rt}}for(var p=0;p<this.componentsOnVertical.length;p++){var x=this.componentsOnVertical[p];if(this.fixedComponentsOnVertical[p])for(var y=0;y<x.length;y++)this.dummyToNodeForHorizontalAlignment.has(x[y])?this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function(B){n.idToNodeMap.get(B).displacementY=0}):this.idToNodeMap.get(x[y]).displacementY=0;else{for(var Z=0,V=0,y=0;y<x.length;y++)if(this.dummyToNodeForHorizontalAlignment.has(x[y])){var Y=this.dummyToNodeForHorizontalAlignment.get(x[y]);Z+=Y.length*this.idToNodeMap.get(Y[0]).displacementY,V+=Y.length}else Z+=this.idToNodeMap.get(x[y]).displacementY,V++;for(var rt=Z/V,y=0;y<x.length;y++)this.dummyToNodeForHorizontalAlignment.has(x[y])?this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function(q){n.idToNodeMap.get(q).displacementY=rt}):this.idToNodeMap.get(x[y]).displacementY=rt}}}},O.prototype.calculateNodesToApplyGravitationTo=function(){var n=[],E,p=this.graphManager.getGraphs(),m=p.length,y;for(y=0;y<m;y++)E=p[y],E.updateConnected(),E.isConnected||(n=n.concat(E.getNodes()));return n},O.prototype.createBendpoints=function(){var n=[];n=n.concat(this.graphManager.getAllEdges());var E=new Set,p;for(p=0;p<n.length;p++){var m=n[p];if(!E.has(m)){var y=m.getSource(),R=m.getTarget();if(y==R)m.getBendpoints().push(new v),m.getBendpoints().push(new v),this.createDummyNodesForBendpoints(m),E.add(m);else{var M=[];if(M=M.concat(y.getEdgeListToNode(R)),M=M.concat(R.getEdgeListToNode(y)),!E.has(M[0])){if(M.length>1){var F;for(F=0;F<M.length;F++){var W=M[F];W.getBendpoints().push(new v),this.createDummyNodesForBendpoints(W)}}M.forEach(function(x){E.add(x)})}}}if(E.size==n.length)break}},O.prototype.positionNodesRadially=function(n){for(var E=new d(0,0),p=Math.ceil(Math.sqrt(n.length)),m=0,y=0,R=0,M=new v(0,0),F=0;F<n.length;F++){F%p==0&&(R=0,y=m,F!=0&&(y+=s.DEFAULT_COMPONENT_SEPERATION),m=0);var W=n[F],x=S.findCenterOfTree(W);E.x=R,E.y=y,M=O.radialLayout(W,x,E),M.y>m&&(m=Math.floor(M.y)),R=Math.floor(M.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new v(T.WORLD_CENTER_X-M.x/2,T.WORLD_CENTER_Y-M.y/2))},O.radialLayout=function(n,E,p){var m=Math.max(this.maxDiagonalInTree(n),s.DEFAULT_RADIAL_SEPARATION);O.branchRadialLayout(E,null,0,359,0,m);var y=K.calculateBounds(n),R=new X;R.setDeviceOrgX(y.getMinX()),R.setDeviceOrgY(y.getMinY()),R.setWorldOrgX(p.x),R.setWorldOrgY(p.y);for(var M=0;M<n.length;M++){var F=n[M];F.transform(R)}var W=new v(y.getMaxX(),y.getMaxY());return R.inverseTransformPoint(W)},O.branchRadialLayout=function(n,E,p,m,y,R){var M=(m-p+1)/2;M<0&&(M+=180);var F=(M+p)%360,W=F*G.TWO_PI/360,x=y*Math.cos(W),Z=y*Math.sin(W);n.setCenter(x,Z);var V=[];V=V.concat(n.getEdges());var Y=V.length;E!=null&&Y--;for(var rt=0,z=V.length,w,H=n.getEdgesBetween(E);H.length>1;){var B=H[0];H.splice(0,1);var j=V.indexOf(B);j>=0&&V.splice(j,1),z--,Y--}E!=null?w=(V.indexOf(H[0])+1)%z:w=0;for(var lt=Math.abs(m-p)/Y,q=w;rt!=Y;q=++q%z){var It=V[q].getOtherEnd(n);if(It!=E){var Nt=(p+rt*lt)%360,vt=(Nt+lt)%360;O.branchRadialLayout(It,n,Nt,vt,y+R,R),rt++}}},O.maxDiagonalInTree=function(n){for(var E=C.MIN_VALUE,p=0;p<n.length;p++){var m=n[p],y=m.getDiagonal();y>E&&(E=y)}return E},O.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},O.prototype.groupZeroDegreeMembers=function(){var n=this,E={};this.memberGroups={},this.idToDummyNode={};for(var p=[],m=this.graphManager.getAllNodes(),y=0;y<m.length;y++){var R=m[y],M=R.getParent();this.getNodeDegreeWithChildren(R)===0&&(M.id==null||!this.getToBeTiled(M))&&p.push(R)}for(var y=0;y<p.length;y++){var R=p[y],F=R.getParent().id;typeof E[F]>"u"&&(E[F]=[]),E[F]=E[F].concat(R)}Object.keys(E).forEach(function(W){if(E[W].length>1){var x="DummyCompound_"+W;n.memberGroups[x]=E[W];var Z=E[W][0].getParent(),V=new t(n.graphManager);V.id=x,V.paddingLeft=Z.paddingLeft||0,V.paddingRight=Z.paddingRight||0,V.paddingBottom=Z.paddingBottom||0,V.paddingTop=Z.paddingTop||0,n.idToDummyNode[x]=V;var Y=n.getGraphManager().add(n.newGraph(),V),rt=Z.getChild();rt.add(V);for(var z=0;z<E[W].length;z++){var w=E[W][z];rt.remove(w),Y.add(w)}}})},O.prototype.clearCompounds=function(){var n={},E={};this.performDFSOnCompounds();for(var p=0;p<this.compoundOrder.length;p++)E[this.compoundOrder[p].id]=this.compoundOrder[p],n[this.compoundOrder[p].id]=[].concat(this.compoundOrder[p].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[p].getChild()),this.compoundOrder[p].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(n,E)},O.prototype.clearZeroDegreeMembers=function(){var n=this,E=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(p){var m=n.idToDummyNode[p];if(E[p]=n.tileNodes(n.memberGroups[p],m.paddingLeft+m.paddingRight),m.rect.width=E[p].width,m.rect.height=E[p].height,m.setCenter(E[p].centerX,E[p].centerY),m.labelMarginLeft=0,m.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var y=m.rect.width,R=m.rect.height;m.labelWidth&&(m.labelPosHorizontal=="left"?(m.rect.x-=m.labelWidth,m.setWidth(y+m.labelWidth),m.labelMarginLeft=m.labelWidth):m.labelPosHorizontal=="center"&&m.labelWidth>y?(m.rect.x-=(m.labelWidth-y)/2,m.setWidth(m.labelWidth),m.labelMarginLeft=(m.labelWidth-y)/2):m.labelPosHorizontal=="right"&&m.setWidth(y+m.labelWidth)),m.labelHeight&&(m.labelPosVertical=="top"?(m.rect.y-=m.labelHeight,m.setHeight(R+m.labelHeight),m.labelMarginTop=m.labelHeight):m.labelPosVertical=="center"&&m.labelHeight>R?(m.rect.y-=(m.labelHeight-R)/2,m.setHeight(m.labelHeight),m.labelMarginTop=(m.labelHeight-R)/2):m.labelPosVertical=="bottom"&&m.setHeight(R+m.labelHeight))}})},O.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var E=this.compoundOrder[n],p=E.id,m=E.paddingLeft,y=E.paddingTop,R=E.labelMarginLeft,M=E.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],E.rect.x,E.rect.y,m,y,R,M)}},O.prototype.repopulateZeroDegreeMembers=function(){var n=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(p){var m=n.idToDummyNode[p],y=m.paddingLeft,R=m.paddingTop,M=m.labelMarginLeft,F=m.labelMarginTop;n.adjustLocations(E[p],m.rect.x,m.rect.y,y,R,M,F)})},O.prototype.getToBeTiled=function(n){var E=n.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var p=n.getChild();if(p==null)return this.toBeTiled[E]=!1,!1;for(var m=p.getNodes(),y=0;y<m.length;y++){var R=m[y];if(this.getNodeDegree(R)>0)return this.toBeTiled[E]=!1,!1;if(R.getChild()==null){this.toBeTiled[R.id]=!1;continue}if(!this.getToBeTiled(R))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},O.prototype.getNodeDegree=function(n){n.id;for(var E=n.getEdges(),p=0,m=0;m<E.length;m++){var y=E[m];y.getSource().id!==y.getTarget().id&&(p=p+1)}return p},O.prototype.getNodeDegreeWithChildren=function(n){var E=this.getNodeDegree(n);if(n.getChild()==null)return E;for(var p=n.getChild().getNodes(),m=0;m<p.length;m++){var y=p[m];E+=this.getNodeDegreeWithChildren(y)}return E},O.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},O.prototype.fillCompexOrderByDFS=function(n){for(var E=0;E<n.length;E++){var p=n[E];p.getChild()!=null&&this.fillCompexOrderByDFS(p.getChild().getNodes()),this.getToBeTiled(p)&&this.compoundOrder.push(p)}},O.prototype.adjustLocations=function(n,E,p,m,y,R,M){E+=m+R,p+=y+M;for(var F=E,W=0;W<n.rows.length;W++){var x=n.rows[W];E=F;for(var Z=0,V=0;V<x.length;V++){var Y=x[V];Y.rect.x=E,Y.rect.y=p,E+=Y.rect.width+n.horizontalPadding,Y.rect.height>Z&&(Z=Y.rect.height)}p+=Z+n.verticalPadding}},O.prototype.tileCompoundMembers=function(n,E){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(m){var y=E[m];if(p.tiledMemberPack[m]=p.tileNodes(n[m],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[m].width,y.rect.height=p.tiledMemberPack[m].height,y.setCenter(p.tiledMemberPack[m].centerX,p.tiledMemberPack[m].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var R=y.rect.width,M=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(R+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>R?(y.rect.x-=(y.labelWidth-R)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-R)/2):y.labelPosHorizontal=="right"&&y.setWidth(R+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(M+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>M?(y.rect.y-=(y.labelHeight-M)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-M)/2):y.labelPosVertical=="bottom"&&y.setHeight(M+y.labelHeight))}})},O.prototype.tileNodes=function(n,E){var p=this.tileNodesByFavoringDim(n,E,!0),m=this.tileNodesByFavoringDim(n,E,!1),y=this.getOrgRatio(p),R=this.getOrgRatio(m),M;return R<y?M=m:M=p,M},O.prototype.getOrgRatio=function(n){var E=n.width,p=n.height,m=E/p;return m<1&&(m=1/m),m},O.prototype.calcIdealRowWidth=function(n,E){var p=s.TILING_PADDING_VERTICAL,m=s.TILING_PADDING_HORIZONTAL,y=n.length,R=0,M=0,F=0;n.forEach(function(z){R+=z.getWidth(),M+=z.getHeight(),z.getWidth()>F&&(F=z.getWidth())});var W=R/y,x=M/y,Z=Math.pow(p-m,2)+4*(W+m)*(x+p)*y,V=(m-p+Math.sqrt(Z))/(2*(W+m)),Y;E?(Y=Math.ceil(V),Y==V&&Y++):Y=Math.floor(V);var rt=Y*(W+m)-m;return F>rt&&(rt=F),rt+=m*2,rt},O.prototype.tileNodesByFavoringDim=function(n,E,p){var m=s.TILING_PADDING_VERTICAL,y=s.TILING_PADDING_HORIZONTAL,R=s.TILING_COMPARE_BY,M={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:m,horizontalPadding:y,centerX:0,centerY:0};R&&(M.idealRowWidth=this.calcIdealRowWidth(n,p));var F=function(w){return w.rect.width*w.rect.height},W=function(w,H){return F(H)-F(w)};n.sort(function(z,w){var H=W;return M.idealRowWidth?(H=R,H(z.id,w.id)):H(z,w)});for(var x=0,Z=0,V=0;V<n.length;V++){var Y=n[V];x+=Y.getCenterX(),Z+=Y.getCenterY()}M.centerX=x/n.length,M.centerY=Z/n.length;for(var V=0;V<n.length;V++){var Y=n[V];if(M.rows.length==0)this.insertNodeToRow(M,Y,0,E);else if(this.canAddHorizontal(M,Y.rect.width,Y.rect.height)){var rt=M.rows.length-1;M.idealRowWidth||(rt=this.getShortestRowIndex(M)),this.insertNodeToRow(M,Y,rt,E)}else this.insertNodeToRow(M,Y,M.rows.length,E);this.shiftToLastRow(M)}return M},O.prototype.insertNodeToRow=function(n,E,p,m){var y=m;if(p==n.rows.length){var R=[];n.rows.push(R),n.rowWidth.push(y),n.rowHeight.push(0)}var M=n.rowWidth[p]+E.rect.width;n.rows[p].length>0&&(M+=n.horizontalPadding),n.rowWidth[p]=M,n.width<M&&(n.width=M);var F=E.rect.height;p>0&&(F+=n.verticalPadding);var W=0;F>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=F,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(E)},O.prototype.getShortestRowIndex=function(n){for(var E=-1,p=Number.MAX_VALUE,m=0;m<n.rows.length;m++)n.rowWidth[m]<p&&(E=m,p=n.rowWidth[m]);return E},O.prototype.getLongestRowIndex=function(n){for(var E=-1,p=Number.MIN_VALUE,m=0;m<n.rows.length;m++)n.rowWidth[m]>p&&(E=m,p=n.rowWidth[m]);return E},O.prototype.canAddHorizontal=function(n,E,p){if(n.idealRowWidth){var m=n.rows.length-1,y=n.rowWidth[m];return y+E+n.horizontalPadding<=n.idealRowWidth}var R=this.getShortestRowIndex(n);if(R<0)return!0;var M=n.rowWidth[R];if(M+n.horizontalPadding+E<=n.width)return!0;var F=0;n.rowHeight[R]<p&&R>0&&(F=p+n.verticalPadding-n.rowHeight[R]);var W;n.width-M>=E+n.horizontalPadding?W=(n.height+F)/(M+E+n.horizontalPadding):W=(n.height+F)/n.width,F=p+n.verticalPadding;var x;return n.width<E?x=(n.height+F)/E:x=(n.height+F)/n.width,x<1&&(x=1/x),W<1&&(W=1/W),W<x},O.prototype.shiftToLastRow=function(n){var E=this.getLongestRowIndex(n),p=n.rowWidth.length-1,m=n.rows[E],y=m[m.length-1],R=y.width+n.horizontalPadding;if(n.width-n.rowWidth[p]>R&&E!=p){m.splice(-1,1),n.rows[p].push(y),n.rowWidth[E]=n.rowWidth[E]-R,n.rowWidth[p]=n.rowWidth[p]+R,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var M=Number.MIN_VALUE,F=0;F<m.length;F++)m[F].height>M&&(M=m[F].height);E>0&&(M+=n.verticalPadding);var W=n.rowHeight[E]+n.rowHeight[p];n.rowHeight[E]=M,n.rowHeight[p]<y.height+n.verticalPadding&&(n.rowHeight[p]=y.height+n.verticalPadding);var x=n.rowHeight[E]+n.rowHeight[p];n.height+=x-W,this.shiftToLastRow(n)}},O.prototype.tilingPreLayout=function(){s.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},O.prototype.tilingPostLayout=function(){s.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},O.prototype.reduceTrees=function(){for(var n=[],E=!0,p;E;){var m=this.graphManager.getAllNodes(),y=[];E=!1;for(var R=0;R<m.length;R++)if(p=m[R],p.getEdges().length==1&&!p.getEdges()[0].isInterGraph&&p.getChild()==null){if(s.PURE_INCREMENTAL){var M=p.getEdges()[0].getOtherEnd(p),F=new L(p.getCenterX()-M.getCenterX(),p.getCenterY()-M.getCenterY());y.push([p,p.getEdges()[0],p.getOwner(),F])}else y.push([p,p.getEdges()[0],p.getOwner()]);E=!0}if(E==!0){for(var W=[],x=0;x<y.length;x++)y[x][0].getEdges().length==1&&(W.push(y[x]),y[x][0].getOwner().remove(y[x][0]));n.push(W),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=n},O.prototype.growTree=function(n){for(var E=n.length,p=n[E-1],m,y=0;y<p.length;y++)m=p[y],this.findPlaceforPrunedNode(m),m[2].add(m[0]),m[2].add(m[1],m[1].source,m[1].target);n.splice(n.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},O.prototype.findPlaceforPrunedNode=function(n){var E,p,m=n[0];if(m==n[1].source?p=n[1].target:p=n[1].source,s.PURE_INCREMENTAL)m.setCenter(p.getCenterX()+n[3].getWidth(),p.getCenterY()+n[3].getHeight());else{var y=p.startX,R=p.finishX,M=p.startY,F=p.finishY,W=0,x=0,Z=0,V=0,Y=[W,Z,x,V];if(M>0)for(var rt=y;rt<=R;rt++)Y[0]+=this.grid[rt][M-1].length+this.grid[rt][M].length-1;if(R<this.grid.length-1)for(var rt=M;rt<=F;rt++)Y[1]+=this.grid[R+1][rt].length+this.grid[R][rt].length-1;if(F<this.grid[0].length-1)for(var rt=y;rt<=R;rt++)Y[2]+=this.grid[rt][F+1].length+this.grid[rt][F].length-1;if(y>0)for(var rt=M;rt<=F;rt++)Y[3]+=this.grid[y-1][rt].length+this.grid[y][rt].length-1;for(var z=C.MAX_VALUE,w,H,B=0;B<Y.length;B++)Y[B]<z?(z=Y[B],w=1,H=B):Y[B]==z&&w++;if(w==3&&z==0)Y[0]==0&&Y[1]==0&&Y[2]==0?E=1:Y[0]==0&&Y[1]==0&&Y[3]==0?E=0:Y[0]==0&&Y[2]==0&&Y[3]==0?E=3:Y[1]==0&&Y[2]==0&&Y[3]==0&&(E=2);else if(w==2&&z==0){var j=Math.floor(Math.random()*2);Y[0]==0&&Y[1]==0?j==0?E=0:E=1:Y[0]==0&&Y[2]==0?j==0?E=0:E=2:Y[0]==0&&Y[3]==0?j==0?E=0:E=3:Y[1]==0&&Y[2]==0?j==0?E=1:E=2:Y[1]==0&&Y[3]==0?j==0?E=1:E=3:j==0?E=2:E=3}else if(w==4&&z==0){var j=Math.floor(Math.random()*4);E=j}else E=H;E==0?m.setCenter(p.getCenterX(),p.getCenterY()-p.getHeight()/2-l.DEFAULT_EDGE_LENGTH-m.getHeight()/2):E==1?m.setCenter(p.getCenterX()+p.getWidth()/2+l.DEFAULT_EDGE_LENGTH+m.getWidth()/2,p.getCenterY()):E==2?m.setCenter(p.getCenterX(),p.getCenterY()+p.getHeight()/2+l.DEFAULT_EDGE_LENGTH+m.getHeight()/2):m.setCenter(p.getCenterX()-p.getWidth()/2-l.DEFAULT_EDGE_LENGTH-m.getWidth()/2,p.getCenterY())}},a.exports=O},991:(a,r,e)=>{var f=e(551).FDLayoutNode,i=e(551).IMath;function g(o,s,c,l){f.call(this,o,s,c,l)}g.prototype=Object.create(f.prototype);for(var t in f)g[t]=f[t];g.prototype.calculateDisplacement=function(){var o=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementX=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementY=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},g.prototype.propogateDisplacementToChildren=function(o,s){for(var c=this.getChild().getNodes(),l,T=0;T<c.length;T++)l=c[T],l.getChild()==null?(l.displacementX+=o,l.displacementY+=s):l.propogateDisplacementToChildren(o,s)},g.prototype.move=function(){var o=this.graphManager.getLayout();(this.child==null||this.child.getNodes().length==0)&&(this.moveBy(this.displacementX,this.displacementY),o.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY)),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},g.prototype.setPred1=function(o){this.pred1=o},g.prototype.getPred1=function(){return pred1},g.prototype.getPred2=function(){return pred2},g.prototype.setNext=function(o){this.next=o},g.prototype.getNext=function(){return next},g.prototype.setProcessed=function(o){this.processed=o},g.prototype.isProcessed=function(){return processed},a.exports=g},902:(a,r,e)=>{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l<c.length;l++)T[l]=c[l];return T}else return Array.from(c)}var i=e(806),g=e(551).LinkedList,t=e(551).Matrix,o=e(551).SVD;function s(){}s.handleConstraints=function(c){var l={};l.fixedNodeConstraint=c.constraints.fixedNodeConstraint,l.alignmentConstraint=c.constraints.alignmentConstraint,l.relativePlacementConstraint=c.constraints.relativePlacementConstraint;for(var T=new Map,d=new Map,v=[],L=[],S=c.getAllNodes(),C=0,G=0;G<S.length;G++){var K=S[G];K.getChild()==null&&(d.set(K.id,C++),v.push(K.getCenterX()),L.push(K.getCenterY()),T.set(K.id,K))}l.relativePlacementConstraint&&l.relativePlacementConstraint.forEach(function(b){!b.gap&&b.gap!=0&&(b.left?b.gap=i.DEFAULT_EDGE_LENGTH+T.get(b.left).getWidth()/2+T.get(b.right).getWidth()/2:b.gap=i.DEFAULT_EDGE_LENGTH+T.get(b.top).getHeight()/2+T.get(b.bottom).getHeight()/2)});var X=function(U,$){return{x:U.x-$.x,y:U.y-$.y}},Q=function(U){var $=0,J=0;return U.forEach(function(k){$+=v[d.get(k)],J+=L[d.get(k)]}),{x:$/U.size,y:J/U.size}},O=function(U,$,J,k,nt){function gt(ft,st){var Lt=new Set(ft),ct=!0,ht=!1,Xt=void 0;try{for(var Tt=st[Symbol.iterator](),Ct;!(ct=(Ct=Tt.next()).done);ct=!0){var Bt=Ct.value;Lt.add(Bt)}}catch(bt){ht=!0,Xt=bt}finally{try{!ct&&Tt.return&&Tt.return()}finally{if(ht)throw Xt}}return Lt}var ot=new Map;U.forEach(function(ft,st){ot.set(st,0)}),U.forEach(function(ft,st){ft.forEach(function(Lt){ot.set(Lt.id,ot.get(Lt.id)+1)})});var et=new Map,_=new Map,dt=new g;ot.forEach(function(ft,st){ft==0?(dt.push(st),J||($=="horizontal"?et.set(st,d.has(st)?v[d.get(st)]:k.get(st)):et.set(st,d.has(st)?L[d.get(st)]:k.get(st)))):et.set(st,Number.NEGATIVE_INFINITY),J&&_.set(st,new Set([st]))}),J&&nt.forEach(function(ft){var st=[];if(ft.forEach(function(ht){J.has(ht)&&st.push(ht)}),st.length>0){var Lt=0;st.forEach(function(ht){$=="horizontal"?(et.set(ht,d.has(ht)?v[d.get(ht)]:k.get(ht)),Lt+=et.get(ht)):(et.set(ht,d.has(ht)?L[d.get(ht)]:k.get(ht)),Lt+=et.get(ht))}),Lt=Lt/st.length,ft.forEach(function(ht){J.has(ht)||et.set(ht,Lt)})}else{var ct=0;ft.forEach(function(ht){$=="horizontal"?ct+=d.has(ht)?v[d.get(ht)]:k.get(ht):ct+=d.has(ht)?L[d.get(ht)]:k.get(ht)}),ct=ct/ft.length,ft.forEach(function(ht){et.set(ht,ct)})}});for(var Mt=function(){var st=dt.shift(),Lt=U.get(st);Lt.forEach(function(ct){if(et.get(ct.id)<et.get(st)+ct.gap)if(J&&J.has(ct.id)){var ht=void 0;if($=="horizontal"?ht=d.has(ct.id)?v[d.get(ct.id)]:k.get(ct.id):ht=d.has(ct.id)?L[d.get(ct.id)]:k.get(ct.id),et.set(ct.id,ht),ht<et.get(st)+ct.gap){var Xt=et.get(st)+ct.gap-ht;_.get(st).forEach(function(Tt){et.set(Tt,et.get(Tt)-Xt)})}}else et.set(ct.id,et.get(st)+ct.gap);ot.set(ct.id,ot.get(ct.id)-1),ot.get(ct.id)==0&&dt.push(ct.id),J&&_.set(ct.id,gt(_.get(st),_.get(ct.id)))})};dt.length!=0;)Mt();if(J){var pt=new Set;U.forEach(function(ft,st){ft.length==0&&pt.add(st)});var xt=[];_.forEach(function(ft,st){if(pt.has(st)){var Lt=!1,ct=!0,ht=!1,Xt=void 0;try{for(var Tt=ft[Symbol.iterator](),Ct;!(ct=(Ct=Tt.next()).done);ct=!0){var Bt=Ct.value;J.has(Bt)&&(Lt=!0)}}catch(St){ht=!0,Xt=St}finally{try{!ct&&Tt.return&&Tt.return()}finally{if(ht)throw Xt}}if(!Lt){var bt=!1,zt=void 0;xt.forEach(function(St,kt){St.has([].concat(f(ft))[0])&&(bt=!0,zt=kt)}),bt?ft.forEach(function(St){xt[zt].add(St)}):xt.push(new Set(ft))}}}),xt.forEach(function(ft,st){var Lt=Number.POSITIVE_INFINITY,ct=Number.POSITIVE_INFINITY,ht=Number.NEGATIVE_INFINITY,Xt=Number.NEGATIVE_INFINITY,Tt=!0,Ct=!1,Bt=void 0;try{for(var bt=ft[Symbol.iterator](),zt;!(Tt=(zt=bt.next()).done);Tt=!0){var St=zt.value,kt=void 0;$=="horizontal"?kt=d.has(St)?v[d.get(St)]:k.get(St):kt=d.has(St)?L[d.get(St)]:k.get(St);var Kt=et.get(St);kt<Lt&&(Lt=kt),kt>ht&&(ht=kt),Kt<ct&&(ct=Kt),Kt>Xt&&(Xt=Kt)}}catch(ee){Ct=!0,Bt=ee}finally{try{!Tt&&bt.return&&bt.return()}finally{if(Ct)throw Bt}}var ce=(Lt+ht)/2-(ct+Xt)/2,Qt=!0,_t=!1,jt=void 0;try{for(var Jt=ft[Symbol.iterator](),oe;!(Qt=(oe=Jt.next()).done);Qt=!0){var te=oe.value;et.set(te,et.get(te)+ce)}}catch(ee){_t=!0,jt=ee}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(_t)throw jt}}})}return et},it=function(U){var $=0,J=0,k=0,nt=0;if(U.forEach(function(_){_.left?v[d.get(_.left)]-v[d.get(_.right)]>=0?$++:J++:L[d.get(_.top)]-L[d.get(_.bottom)]>=0?k++:nt++}),$>J&&k>nt)for(var gt=0;gt<d.size;gt++)v[gt]=-1*v[gt],L[gt]=-1*L[gt];else if($>J)for(var ot=0;ot<d.size;ot++)v[ot]=-1*v[ot];else if(k>nt)for(var et=0;et<d.size;et++)L[et]=-1*L[et]},n=function(U){var $=[],J=new g,k=new Set,nt=0;return U.forEach(function(gt,ot){if(!k.has(ot)){$[nt]=[];var et=ot;for(J.push(et),k.add(et),$[nt].push(et);J.length!=0;){et=J.shift();var _=U.get(et);_.forEach(function(dt){k.has(dt.id)||(J.push(dt.id),k.add(dt.id),$[nt].push(dt.id))})}nt++}}),$},E=function(U){var $=new Map;return U.forEach(function(J,k){$.set(k,[])}),U.forEach(function(J,k){J.forEach(function(nt){$.get(k).push(nt),$.get(nt.id).push({id:k,gap:nt.gap,direction:nt.direction})})}),$},p=function(U){var $=new Map;return U.forEach(function(J,k){$.set(k,[])}),U.forEach(function(J,k){J.forEach(function(nt){$.get(nt.id).push({id:k,gap:nt.gap,direction:nt.direction})})}),$},m=[],y=[],R=!1,M=!1,F=new Set,W=new Map,x=new Map,Z=[];if(l.fixedNodeConstraint&&l.fixedNodeConstraint.forEach(function(b){F.add(b.nodeId)}),l.relativePlacementConstraint&&(l.relativePlacementConstraint.forEach(function(b){b.left?(W.has(b.left)?W.get(b.left).push({id:b.right,gap:b.gap,direction:"horizontal"}):W.set(b.left,[{id:b.right,gap:b.gap,direction:"horizontal"}]),W.has(b.right)||W.set(b.right,[])):(W.has(b.top)?W.get(b.top).push({id:b.bottom,gap:b.gap,direction:"vertical"}):W.set(b.top,[{id:b.bottom,gap:b.gap,direction:"vertical"}]),W.has(b.bottom)||W.set(b.bottom,[]))}),x=E(W),Z=n(x)),i.TRANSFORM_ON_CONSTRAINT_HANDLING){if(l.fixedNodeConstraint&&l.fixedNodeConstraint.length>1)l.fixedNodeConstraint.forEach(function(b,U){m[U]=[b.position.x,b.position.y],y[U]=[v[d.get(b.nodeId)],L[d.get(b.nodeId)]]}),R=!0;else if(l.alignmentConstraint)(function(){var b=0;if(l.alignmentConstraint.vertical){for(var U=l.alignmentConstraint.vertical,$=function(et){var _=new Set;U[et].forEach(function(pt){_.add(pt)});var dt=new Set([].concat(f(_)).filter(function(pt){return F.has(pt)})),Mt=void 0;dt.size>0?Mt=v[d.get(dt.values().next().value)]:Mt=Q(_).x,U[et].forEach(function(pt){m[b]=[Mt,L[d.get(pt)]],y[b]=[v[d.get(pt)],L[d.get(pt)]],b++})},J=0;J<U.length;J++)$(J);R=!0}if(l.alignmentConstraint.horizontal){for(var k=l.alignmentConstraint.horizontal,nt=function(et){var _=new Set;k[et].forEach(function(pt){_.add(pt)});var dt=new Set([].concat(f(_)).filter(function(pt){return F.has(pt)})),Mt=void 0;dt.size>0?Mt=v[d.get(dt.values().next().value)]:Mt=Q(_).y,k[et].forEach(function(pt){m[b]=[v[d.get(pt)],Mt],y[b]=[v[d.get(pt)],L[d.get(pt)]],b++})},gt=0;gt<k.length;gt++)nt(gt);R=!0}l.relativePlacementConstraint&&(M=!0)})();else if(l.relativePlacementConstraint){for(var V=0,Y=0,rt=0;rt<Z.length;rt++)Z[rt].length>V&&(V=Z[rt].length,Y=rt);if(V<x.size/2)it(l.relativePlacementConstraint),R=!1,M=!1;else{var z=new Map,w=new Map,H=[];Z[Y].forEach(function(b){W.get(b).forEach(function(U){U.direction=="horizontal"?(z.has(b)?z.get(b).push(U):z.set(b,[U]),z.has(U.id)||z.set(U.id,[]),H.push({left:b,right:U.id})):(w.has(b)?w.get(b).push(U):w.set(b,[U]),w.has(U.id)||w.set(U.id,[]),H.push({top:b,bottom:U.id}))})}),it(H),M=!1;var B=O(z,"horizontal"),j=O(w,"vertical");Z[Y].forEach(function(b,U){y[U]=[v[d.get(b)],L[d.get(b)]],m[U]=[],B.has(b)?m[U][0]=B.get(b):m[U][0]=v[d.get(b)],j.has(b)?m[U][1]=j.get(b):m[U][1]=L[d.get(b)]}),R=!0}}if(R){for(var lt=void 0,q=t.transpose(m),It=t.transpose(y),Nt=0;Nt<q.length;Nt++)q[Nt]=t.multGamma(q[Nt]),It[Nt]=t.multGamma(It[Nt]);var vt=t.multMat(q,t.transpose(It)),at=o.svd(vt);lt=t.multMat(at.V,t.transpose(at.U));for(var ut=0;ut<d.size;ut++){var Et=[v[ut],L[ut]],At=[lt[0][0],lt[1][0]],Ot=[lt[0][1],lt[1][1]];v[ut]=t.dotProduct(Et,At),L[ut]=t.dotProduct(Et,Ot)}M&&it(l.relativePlacementConstraint)}}if(i.ENFORCE_CONSTRAINTS){if(l.fixedNodeConstraint&&l.fixedNodeConstraint.length>0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(b,U){var $={x:v[d.get(b.nodeId)],y:L[d.get(b.nodeId)]},J=b.position,k=X(J,$);mt.x+=k.x,mt.y+=k.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,v.forEach(function(b,U){v[U]+=mt.x}),L.forEach(function(b,U){L[U]+=mt.y}),l.fixedNodeConstraint.forEach(function(b){v[d.get(b.nodeId)]=b.position.x,L[d.get(b.nodeId)]=b.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Dt=l.alignmentConstraint.vertical,Rt=function(U){var $=new Set;Dt[U].forEach(function(nt){$.add(nt)});var J=new Set([].concat(f($)).filter(function(nt){return F.has(nt)})),k=void 0;J.size>0?k=v[d.get(J.values().next().value)]:k=Q($).x,$.forEach(function(nt){F.has(nt)||(v[d.get(nt)]=k)})},Ht=0;Ht<Dt.length;Ht++)Rt(Ht);if(l.alignmentConstraint.horizontal)for(var Ut=l.alignmentConstraint.horizontal,Pt=function(U){var $=new Set;Ut[U].forEach(function(nt){$.add(nt)});var J=new Set([].concat(f($)).filter(function(nt){return F.has(nt)})),k=void 0;J.size>0?k=L[d.get(J.values().next().value)]:k=Q($).y,$.forEach(function(nt){F.has(nt)||(L[d.get(nt)]=k)})},Ft=0;Ft<Ut.length;Ft++)Pt(Ft)}l.relativePlacementConstraint&&function(){var b=new Map,U=new Map,$=new Map,J=new Map,k=new Map,nt=new Map,gt=new Set,ot=new Set;if(F.forEach(function(Gt){gt.add(Gt),ot.add(Gt)}),l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var et=l.alignmentConstraint.vertical,_=function(yt){$.set("dummy"+yt,[]),et[yt].forEach(function(wt){b.set(wt,"dummy"+yt),$.get("dummy"+yt).push(wt),F.has(wt)&&gt.add("dummy"+yt)}),k.set("dummy"+yt,v[d.get(et[yt][0])])},dt=0;dt<et.length;dt++)_(dt);if(l.alignmentConstraint.horizontal)for(var Mt=l.alignmentConstraint.horizontal,pt=function(yt){J.set("dummy"+yt,[]),Mt[yt].forEach(function(wt){U.set(wt,"dummy"+yt),J.get("dummy"+yt).push(wt),F.has(wt)&&ot.add("dummy"+yt)}),nt.set("dummy"+yt,L[d.get(Mt[yt][0])])},xt=0;xt<Mt.length;xt++)pt(xt)}var ft=new Map,st=new Map,Lt=function(yt){W.get(yt).forEach(function(wt){var Zt=void 0,$t=void 0;wt.direction=="horizontal"?(Zt=b.get(yt)?b.get(yt):yt,b.get(wt.id)?$t={id:b.get(wt.id),gap:wt.gap,direction:wt.direction}:$t=wt,ft.has(Zt)?ft.get(Zt).push($t):ft.set(Zt,[$t]),ft.has($t.id)||ft.set($t.id,[])):(Zt=U.get(yt)?U.get(yt):yt,U.get(wt.id)?$t={id:U.get(wt.id),gap:wt.gap,direction:wt.direction}:$t=wt,st.has(Zt)?st.get(Zt).push($t):st.set(Zt,[$t]),st.has($t.id)||st.set($t.id,[]))})},ct=!0,ht=!1,Xt=void 0;try{for(var Tt=W.keys()[Symbol.iterator](),Ct;!(ct=(Ct=Tt.next()).done);ct=!0){var Bt=Ct.value;Lt(Bt)}}catch(Gt){ht=!0,Xt=Gt}finally{try{!ct&&Tt.return&&Tt.return()}finally{if(ht)throw Xt}}var bt=E(ft),zt=E(st),St=n(bt),kt=n(zt),Kt=p(ft),ce=p(st),Qt=[],_t=[];St.forEach(function(Gt,yt){Qt[yt]=[],Gt.forEach(function(wt){Kt.get(wt).length==0&&Qt[yt].push(wt)})}),kt.forEach(function(Gt,yt){_t[yt]=[],Gt.forEach(function(wt){ce.get(wt).length==0&&_t[yt].push(wt)})});var jt=O(ft,"horizontal",gt,k,Qt),Jt=O(st,"vertical",ot,nt,_t),oe=function(yt){$.get(yt)?$.get(yt).forEach(function(wt){v[d.get(wt)]=jt.get(yt)}):v[d.get(yt)]=jt.get(yt)},te=!0,ee=!1,me=void 0;try{for(var ge=jt.keys()[Symbol.iterator](),Ee;!(te=(Ee=ge.next()).done);te=!0){var ue=Ee.value;oe(ue)}}catch(Gt){ee=!0,me=Gt}finally{try{!te&&ge.return&&ge.return()}finally{if(ee)throw me}}var We=function(yt){J.get(yt)?J.get(yt).forEach(function(wt){L[d.get(wt)]=Jt.get(yt)}):L[d.get(yt)]=Jt.get(yt)},de=!0,Te=!1,Ne=void 0;try{for(var ve=Jt.keys()[Symbol.iterator](),Le;!(de=(Le=ve.next()).done);de=!0){var ue=Le.value;We(ue)}}catch(Gt){Te=!0,Ne=Gt}finally{try{!de&&ve.return&&ve.return()}finally{if(Te)throw Ne}}}()}for(var Yt=0;Yt<S.length;Yt++){var Vt=S[Yt];Vt.getChild()==null&&Vt.setCenter(v[d.get(Vt.id)],L[d.get(Vt.id)])}},a.exports=s},551:a=>{a.exports=A}},N={};function u(a){var r=N[a];if(r!==void 0)return r.exports;var e=N[a]={exports:{}};return P[a](e,e.exports,u),e.exports}var h=u(45);return h})()})}(le)),le.exports}var Qe=he.exports,Me;function Je(){return Me||(Me=1,function(I,D){(function(P,N){I.exports=N(qe())})(Qe,function(A){return(()=>{var P={658:a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),i=1;i<e;i++)f[i-1]=arguments[i];return f.forEach(function(g){Object.keys(g).forEach(function(t){return r[t]=g[t]})}),r}},548:(a,r,e)=>{var f=function(){function t(o,s){var c=[],l=!0,T=!1,d=void 0;try{for(var v=o[Symbol.iterator](),L;!(l=(L=v.next()).done)&&(c.push(L.value),!(s&&c.length===s));l=!0);}catch(S){T=!0,d=S}finally{try{!l&&v.return&&v.return()}finally{if(T)throw d}}return c}return function(o,s){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return t(o,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=e(140).layoutBase.LinkedList,g={};g.getTopMostNodes=function(t){for(var o={},s=0;s<t.length;s++)o[t[s].id()]=!0;var c=t.filter(function(l,T){typeof l=="number"&&(l=T);for(var d=l.parent()[0];d!=null;){if(o[d.id()])return!1;d=d.parent()[0]}return!0});return c},g.connectComponents=function(t,o,s,c){var l=new i,T=new Set,d=[],v=void 0,L=void 0,S=void 0,C=!1,G=1,K=[],X=[],Q=function(){var it=t.collection();X.push(it);var n=s[0],E=t.collection();E.merge(n).merge(n.descendants().intersection(o)),d.push(n),E.forEach(function(y){l.push(y),T.add(y),it.merge(y)});for(var p=function(){n=l.shift();var R=t.collection();n.neighborhood().nodes().forEach(function(x){o.intersection(n.edgesWith(x)).length>0&&R.merge(x)});for(var M=0;M<R.length;M++){var F=R[M];if(v=s.intersection(F.union(F.ancestors())),v!=null&&!T.has(v[0])){var W=v.union(v.descendants());W.forEach(function(x){l.push(x),T.add(x),it.merge(x),s.has(x)&&d.push(x)})}}};l.length!=0;)p();if(it.forEach(function(y){o.intersection(y.connectedEdges()).forEach(function(R){it.has(R.source())&&it.has(R.target())&&it.merge(R)})}),d.length==s.length&&(C=!0),!C||C&&G>1){L=d[0],S=L.connectedEdges().length,d.forEach(function(y){y.connectedEdges().length<S&&(S=y.connectedEdges().length,L=y)}),K.push(L.id());var m=t.collection();m.merge(d[0]),d.forEach(function(y){m.merge(y)}),d=[],s=s.difference(m),G++}};do Q();while(!C);return c&&K.length>0&&c.set("dummy"+(c.size+1),K),X},g.relocateComponent=function(t,o,s){if(!s.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,d=Number.NEGATIVE_INFINITY;if(s.quality=="draft"){var v=!0,L=!1,S=void 0;try{for(var C=o.nodeIndexes[Symbol.iterator](),G;!(v=(G=C.next()).done);v=!0){var K=G.value,X=f(K,2),Q=X[0],O=X[1],it=s.cy.getElementById(Q);if(it){var n=it.boundingBox(),E=o.xCoords[O]-n.w/2,p=o.xCoords[O]+n.w/2,m=o.yCoords[O]-n.h/2,y=o.yCoords[O]+n.h/2;E<c&&(c=E),p>l&&(l=p),m<T&&(T=m),y>d&&(d=y)}}}catch(x){L=!0,S=x}finally{try{!v&&C.return&&C.return()}finally{if(L)throw S}}var R=t.x-(l+c)/2,M=t.y-(d+T)/2;o.xCoords=o.xCoords.map(function(x){return x+R}),o.yCoords=o.yCoords.map(function(x){return x+M})}else{Object.keys(o).forEach(function(x){var Z=o[x],V=Z.getRect().x,Y=Z.getRect().x+Z.getRect().width,rt=Z.getRect().y,z=Z.getRect().y+Z.getRect().height;V<c&&(c=V),Y>l&&(l=Y),rt<T&&(T=rt),z>d&&(d=z)});var F=t.x-(l+c)/2,W=t.y-(d+T)/2;Object.keys(o).forEach(function(x){var Z=o[x];Z.setCenter(Z.getCenterX()+F,Z.getCenterY()+W)})}}},g.calcBoundingBox=function(t,o,s,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,L=void 0,S=void 0,C=void 0,G=void 0,K=t.descendants().not(":parent"),X=K.length,Q=0;Q<X;Q++){var O=K[Q];L=o[c.get(O.id())]-O.width()/2,S=o[c.get(O.id())]+O.width()/2,C=s[c.get(O.id())]-O.height()/2,G=s[c.get(O.id())]+O.height()/2,l>L&&(l=L),T<S&&(T=S),d>C&&(d=C),v<G&&(v=G)}var it={};return it.topLeftX=l,it.topLeftY=d,it.width=T-l,it.height=v-d,it},g.calcParentsWithoutChildren=function(t,o){var s=t.collection();return o.nodes(":parent").forEach(function(c){var l=!1;c.children().forEach(function(T){T.css("display")!="none"&&(l=!0)}),l||s.merge(c)}),s},a.exports=g},816:(a,r,e)=>{var f=e(548),i=e(140).CoSELayout,g=e(140).CoSENode,t=e(140).layoutBase.PointD,o=e(140).layoutBase.DimensionD,s=e(140).layoutBase.LayoutConstants,c=e(140).layoutBase.FDLayoutConstants,l=e(140).CoSEConstants,T=function(v,L){var S=v.cy,C=v.eles,G=C.nodes(),K=C.edges(),X=void 0,Q=void 0,O=void 0,it={};v.randomize&&(X=L.nodeIndexes,Q=L.xCoords,O=L.yCoords);var n=function(x){return typeof x=="function"},E=function(x,Z){return n(x)?x(Z):x},p=f.calcParentsWithoutChildren(S,C),m=function W(x,Z,V,Y){for(var rt=Z.length,z=0;z<rt;z++){var w=Z[z],H=null;w.intersection(p).length==0&&(H=w.children());var B=void 0,j=w.layoutDimensions({nodeDimensionsIncludeLabels:Y.nodeDimensionsIncludeLabels});if(w.outerWidth()!=null&&w.outerHeight()!=null)if(Y.randomize)if(!w.isParent())B=x.add(new g(V.graphManager,new t(Q[X.get(w.id())]-j.w/2,O[X.get(w.id())]-j.h/2),new o(parseFloat(j.w),parseFloat(j.h))));else{var lt=f.calcBoundingBox(w,Q,O,X);w.intersection(p).length==0?B=x.add(new g(V.graphManager,new t(lt.topLeftX,lt.topLeftY),new o(lt.width,lt.height))):B=x.add(new g(V.graphManager,new t(lt.topLeftX,lt.topLeftY),new o(parseFloat(j.w),parseFloat(j.h))))}else B=x.add(new g(V.graphManager,new t(w.position("x")-j.w/2,w.position("y")-j.h/2),new o(parseFloat(j.w),parseFloat(j.h))));else B=x.add(new g(this.graphManager));if(B.id=w.data("id"),B.nodeRepulsion=E(Y.nodeRepulsion,w),B.paddingLeft=parseInt(w.css("padding")),B.paddingTop=parseInt(w.css("padding")),B.paddingRight=parseInt(w.css("padding")),B.paddingBottom=parseInt(w.css("padding")),Y.nodeDimensionsIncludeLabels&&(B.labelWidth=w.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,B.labelHeight=w.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,B.labelPosVertical=w.css("text-valign"),B.labelPosHorizontal=w.css("text-halign")),it[w.data("id")]=B,isNaN(B.rect.x)&&(B.rect.x=0),isNaN(B.rect.y)&&(B.rect.y=0),H!=null&&H.length>0){var q=void 0;q=V.getGraphManager().add(V.newGraph(),B),W(q,H,V,Y)}}},y=function(x,Z,V){for(var Y=0,rt=0,z=0;z<V.length;z++){var w=V[z],H=it[w.data("source")],B=it[w.data("target")];if(H&&B&&H!==B&&H.getEdgesBetween(B).length==0){var j=Z.add(x.newEdge(),H,B);j.id=w.id(),j.idealLength=E(v.idealEdgeLength,w),j.edgeElasticity=E(v.edgeElasticity,w),Y+=j.idealLength,rt++}}v.idealEdgeLength!=null&&(rt>0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=Y/rt:n(v.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=v.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},R=function(x,Z){Z.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=Z.fixedNodeConstraint),Z.alignmentConstraint&&(x.constraints.alignmentConstraint=Z.alignmentConstraint),Z.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=Z.relativePlacementConstraint)};v.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.nestingFactor),v.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=v.gravity),v.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=v.numIter),v.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=v.gravityRange),v.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.gravityCompound),v.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.gravityRangeCompound),v.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.initialEnergyOnIncremental),v.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=v.tilingCompareBy),v.quality=="proof"?s.QUALITY=2:s.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=v.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!v.randomize,l.ANIMATE=c.ANIMATE=s.ANIMATE=v.animate,l.TILE=v.tile,l.TILING_PADDING_VERTICAL=typeof v.tilingPaddingVertical=="function"?v.tilingPaddingVertical.call():v.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof v.tilingPaddingHorizontal=="function"?v.tilingPaddingHorizontal.call():v.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!v.randomize,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=v.uniformNodeDimensions,v.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),v.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),v.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),v.step=="all"&&(v.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),v.fixedNodeConstraint||v.alignmentConstraint||v.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var M=new i,F=M.newGraphManager();return m(F.addRoot(),f.getTopMostNodes(G),M,v),y(M,F,K),R(M,v),M.runLayout(),it};a.exports={coseLayout:T}},212:(a,r,e)=>{var f=function(){function v(L,S){for(var C=0;C<S.length;C++){var G=S[C];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(L,G.key,G)}}return function(L,S,C){return S&&v(L.prototype,S),C&&v(L,C),L}}();function i(v,L){if(!(v instanceof L))throw new TypeError("Cannot call a class as a function")}var g=e(658),t=e(548),o=e(657),s=o.spectralLayout,c=e(816),l=c.coseLayout,T=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:function(L){return 4500},idealEdgeLength:function(L){return 50},edgeElasticity:function(L){return .45},nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),d=function(){function v(L){i(this,v),this.options=g({},T,L)}return f(v,[{key:"run",value:function(){var S=this,C=this.options,G=C.cy,K=C.eles,X=[],Q=[],O=void 0,it=[];C.fixedNodeConstraint&&(!Array.isArray(C.fixedNodeConstraint)||C.fixedNodeConstraint.length==0)&&(C.fixedNodeConstraint=void 0),C.alignmentConstraint&&(C.alignmentConstraint.vertical&&(!Array.isArray(C.alignmentConstraint.vertical)||C.alignmentConstraint.vertical.length==0)&&(C.alignmentConstraint.vertical=void 0),C.alignmentConstraint.horizontal&&(!Array.isArray(C.alignmentConstraint.horizontal)||C.alignmentConstraint.horizontal.length==0)&&(C.alignmentConstraint.horizontal=void 0)),C.relativePlacementConstraint&&(!Array.isArray(C.relativePlacementConstraint)||C.relativePlacementConstraint.length==0)&&(C.relativePlacementConstraint=void 0);var n=C.fixedNodeConstraint||C.alignmentConstraint||C.relativePlacementConstraint;n&&(C.tile=!1,C.packComponents=!1);var E=void 0,p=!1;if(G.layoutUtilities&&C.packComponents&&(E=G.layoutUtilities("get"),E||(E=G.layoutUtilities()),p=!0),K.nodes().length>0)if(p){var R=t.getTopMostNodes(C.eles.nodes());if(O=t.connectComponents(G,C.eles,R),O.forEach(function(vt){var at=vt.boundingBox();it.push({x:at.x1+at.w/2,y:at.y1+at.h/2})}),C.randomize&&O.forEach(function(vt){C.eles=vt,X.push(s(C))}),C.quality=="default"||C.quality=="proof"){var M=G.collection();if(C.tile){var F=new Map,W=[],x=[],Z=0,V={nodeIndexes:F,xCoords:W,yCoords:x},Y=[];if(O.forEach(function(vt,at){vt.edges().length==0&&(vt.nodes().forEach(function(ut,Et){M.merge(vt.nodes()[Et]),ut.isParent()||(V.nodeIndexes.set(vt.nodes()[Et].id(),Z++),V.xCoords.push(vt.nodes()[0].position().x),V.yCoords.push(vt.nodes()[0].position().y))}),Y.push(at))}),M.length>1){var rt=M.boundingBox();it.push({x:rt.x1+rt.w/2,y:rt.y1+rt.h/2}),O.push(M),X.push(V);for(var z=Y.length-1;z>=0;z--)O.splice(Y[z],1),X.splice(Y[z],1),it.splice(Y[z],1)}}O.forEach(function(vt,at){C.eles=vt,Q.push(l(C,X[at])),t.relocateComponent(it[at],Q[at],C)})}else O.forEach(function(vt,at){t.relocateComponent(it[at],X[at],C)});var w=new Set;if(O.length>1){var H=[],B=K.filter(function(vt){return vt.css("display")=="none"});O.forEach(function(vt,at){var ut=void 0;if(C.quality=="draft"&&(ut=X[at].nodeIndexes),vt.nodes().not(B).length>0){var Et={};Et.edges=[],Et.nodes=[];var At=void 0;vt.nodes().not(B).forEach(function(Ot){if(C.quality=="draft")if(!Ot.isParent())At=ut.get(Ot.id()),Et.nodes.push({x:X[at].xCoords[At]-Ot.boundingbox().w/2,y:X[at].yCoords[At]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var mt=t.calcBoundingBox(Ot,X[at].xCoords,X[at].yCoords,ut);Et.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else Q[at][Ot.id()]&&Et.nodes.push({x:Q[at][Ot.id()].getLeft(),y:Q[at][Ot.id()].getTop(),width:Q[at][Ot.id()].getWidth(),height:Q[at][Ot.id()].getHeight()})}),vt.edges().forEach(function(Ot){var mt=Ot.source(),Dt=Ot.target();if(mt.css("display")!="none"&&Dt.css("display")!="none")if(C.quality=="draft"){var Rt=ut.get(mt.id()),Ht=ut.get(Dt.id()),Ut=[],Pt=[];if(mt.isParent()){var Ft=t.calcBoundingBox(mt,X[at].xCoords,X[at].yCoords,ut);Ut.push(Ft.topLeftX+Ft.width/2),Ut.push(Ft.topLeftY+Ft.height/2)}else Ut.push(X[at].xCoords[Rt]),Ut.push(X[at].yCoords[Rt]);if(Dt.isParent()){var Yt=t.calcBoundingBox(Dt,X[at].xCoords,X[at].yCoords,ut);Pt.push(Yt.topLeftX+Yt.width/2),Pt.push(Yt.topLeftY+Yt.height/2)}else Pt.push(X[at].xCoords[Ht]),Pt.push(X[at].yCoords[Ht]);Et.edges.push({startX:Ut[0],startY:Ut[1],endX:Pt[0],endY:Pt[1]})}else Q[at][mt.id()]&&Q[at][Dt.id()]&&Et.edges.push({startX:Q[at][mt.id()].getCenterX(),startY:Q[at][mt.id()].getCenterY(),endX:Q[at][Dt.id()].getCenterX(),endY:Q[at][Dt.id()].getCenterY()})}),Et.nodes.length>0&&(H.push(Et),w.add(at))}});var j=E.packComponents(H,C.randomize).shifts;if(C.quality=="draft")X.forEach(function(vt,at){var ut=vt.xCoords.map(function(At){return At+j[at].dx}),Et=vt.yCoords.map(function(At){return At+j[at].dy});vt.xCoords=ut,vt.yCoords=Et});else{var lt=0;w.forEach(function(vt){Object.keys(Q[vt]).forEach(function(at){var ut=Q[vt][at];ut.setCenter(ut.getCenterX()+j[lt].dx,ut.getCenterY()+j[lt].dy)}),lt++})}}}else{var m=C.eles.boundingBox();if(it.push({x:m.x1+m.w/2,y:m.y1+m.h/2}),C.randomize){var y=s(C);X.push(y)}C.quality=="default"||C.quality=="proof"?(Q.push(l(C,X[0])),t.relocateComponent(it[0],Q[0],C)):t.relocateComponent(it[0],X[0],C)}var q=function(at,ut){if(C.quality=="default"||C.quality=="proof"){typeof at=="number"&&(at=ut);var Et=void 0,At=void 0,Ot=at.data("id");return Q.forEach(function(Dt){Ot in Dt&&(Et={x:Dt[Ot].getRect().getCenterX(),y:Dt[Ot].getRect().getCenterY()},At=Dt[Ot])}),C.nodeDimensionsIncludeLabels&&(At.labelWidth&&(At.labelPosHorizontal=="left"?Et.x+=At.labelWidth/2:At.labelPosHorizontal=="right"&&(Et.x-=At.labelWidth/2)),At.labelHeight&&(At.labelPosVertical=="top"?Et.y+=At.labelHeight/2:At.labelPosVertical=="bottom"&&(Et.y-=At.labelHeight/2))),Et==null&&(Et={x:at.position("x"),y:at.position("y")}),{x:Et.x,y:Et.y}}else{var mt=void 0;return X.forEach(function(Dt){var Rt=Dt.nodeIndexes.get(at.id());Rt!=null&&(mt={x:Dt.xCoords[Rt],y:Dt.yCoords[Rt]})}),mt==null&&(mt={x:at.position("x"),y:at.position("y")}),{x:mt.x,y:mt.y}}};if(C.quality=="default"||C.quality=="proof"||C.randomize){var It=t.calcParentsWithoutChildren(G,K),Nt=K.filter(function(vt){return vt.css("display")=="none"});C.eles=K.not(Nt),K.nodes().not(":parent").not(Nt).layoutPositions(S,C,q),It.length>0&&It.forEach(function(vt){vt.position(q(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),v}();a.exports=d},657:(a,r,e)=>{var f=e(548),i=e(140).layoutBase.Matrix,g=e(140).layoutBase.SVD,t=function(s){var c=s.cy,l=s.eles,T=l.nodes(),d=l.nodes(":parent"),v=new Map,L=new Map,S=new Map,C=[],G=[],K=[],X=[],Q=[],O=[],it=[],n=[],E=void 0,p=1e8,m=1e-9,y=s.piTol,R=s.samplingType,M=s.nodeSeparation,F=void 0,W=function(){for(var U=0,$=0,J=!1;$<F;){U=Math.floor(Math.random()*E),J=!1;for(var k=0;k<$;k++)if(X[k]==U){J=!0;break}if(!J)X[$]=U,$++;else continue}},x=function(U,$,J){for(var k=[],nt=0,gt=0,ot=0,et=void 0,_=[],dt=0,Mt=1,pt=0;pt<E;pt++)_[pt]=p;for(k[gt]=U,_[U]=0;gt>=nt;){ot=k[nt++];for(var xt=C[ot],ft=0;ft<xt.length;ft++)et=L.get(xt[ft]),_[et]==p&&(_[et]=_[ot]+1,k[++gt]=et);O[ot][$]=_[ot]*M}if(J){for(var st=0;st<E;st++)O[st][$]<Q[st]&&(Q[st]=O[st][$]);for(var Lt=0;Lt<E;Lt++)Q[Lt]>dt&&(dt=Q[Lt],Mt=Lt)}return Mt},Z=function(U){var $=void 0;if(U){$=Math.floor(Math.random()*E);for(var k=0;k<E;k++)Q[k]=p;for(var nt=0;nt<F;nt++)X[nt]=$,$=x($,nt,U)}else{W();for(var J=0;J<F;J++)x(X[J],J,U)}for(var gt=0;gt<E;gt++)for(var ot=0;ot<F;ot++)O[gt][ot]*=O[gt][ot];for(var et=0;et<F;et++)it[et]=[];for(var _=0;_<F;_++)for(var dt=0;dt<F;dt++)it[_][dt]=O[X[dt]][_]},V=function(){for(var U=g.svd(it),$=U.S,J=U.U,k=U.V,nt=$[0]*$[0]*$[0],gt=[],ot=0;ot<F;ot++){gt[ot]=[];for(var et=0;et<F;et++)gt[ot][et]=0,ot==et&&(gt[ot][et]=$[ot]/($[ot]*$[ot]+nt/($[ot]*$[ot])))}n=i.multMat(i.multMat(k,gt),i.transpose(J))},Y=function(){for(var U=void 0,$=void 0,J=[],k=[],nt=[],gt=[],ot=0;ot<E;ot++)J[ot]=Math.random(),k[ot]=Math.random();J=i.normalize(J),k=i.normalize(k);for(var et=m,_=m,dt=void 0;;){for(var Mt=0;Mt<E;Mt++)nt[Mt]=J[Mt];if(J=i.multGamma(i.multL(i.multGamma(nt),O,n)),U=i.dotProduct(nt,J),J=i.normalize(J),et=i.dotProduct(nt,J),dt=Math.abs(et/_),dt<=1+y&&dt>=1)break;_=et}for(var pt=0;pt<E;pt++)nt[pt]=J[pt];for(_=m;;){for(var xt=0;xt<E;xt++)gt[xt]=k[xt];if(gt=i.minusOp(gt,i.multCons(nt,i.dotProduct(nt,gt))),k=i.multGamma(i.multL(i.multGamma(gt),O,n)),$=i.dotProduct(gt,k),k=i.normalize(k),et=i.dotProduct(gt,k),dt=Math.abs(et/_),dt<=1+y&&dt>=1)break;_=et}for(var ft=0;ft<E;ft++)gt[ft]=k[ft];G=i.multCons(nt,Math.sqrt(Math.abs(U))),K=i.multCons(gt,Math.sqrt(Math.abs($)))};f.connectComponents(c,l,f.getTopMostNodes(T),v),d.forEach(function(b){f.connectComponents(c,l,f.getTopMostNodes(b.descendants().intersection(l)),v)});for(var rt=0,z=0;z<T.length;z++)T[z].isParent()||L.set(T[z].id(),rt++);var w=!0,H=!1,B=void 0;try{for(var j=v.keys()[Symbol.iterator](),lt;!(w=(lt=j.next()).done);w=!0){var q=lt.value;L.set(q,rt++)}}catch(b){H=!0,B=b}finally{try{!w&&j.return&&j.return()}finally{if(H)throw B}}for(var It=0;It<L.size;It++)C[It]=[];d.forEach(function(b){for(var U=b.children().intersection(l);U.nodes(":childless").length==0;)U=U.nodes()[0].children().intersection(l);var $=0,J=U.nodes(":childless")[0].connectedEdges().length;U.nodes(":childless").forEach(function(k,nt){k.connectedEdges().length<J&&(J=k.connectedEdges().length,$=nt)}),S.set(b.id(),U.nodes(":childless")[$].id())}),T.forEach(function(b){var U=void 0;b.isParent()?U=L.get(S.get(b.id())):U=L.get(b.id()),b.neighborhood().nodes().forEach(function($){l.intersection(b.edgesWith($)).length>0&&($.isParent()?C[U].push(S.get($.id())):C[U].push($.id()))})});var Nt=function(U){var $=L.get(U),J=void 0;v.get(U).forEach(function(k){c.getElementById(k).isParent()?J=S.get(k):J=k,C[$].push(J),C[L.get(J)].push(U)})},vt=!0,at=!1,ut=void 0;try{for(var Et=v.keys()[Symbol.iterator](),At;!(vt=(At=Et.next()).done);vt=!0){var Ot=At.value;Nt(Ot)}}catch(b){at=!0,ut=b}finally{try{!vt&&Et.return&&Et.return()}finally{if(at)throw ut}}E=L.size;var mt=void 0;if(E>2){F=E<s.sampleSize?E:s.sampleSize;for(var Dt=0;Dt<E;Dt++)O[Dt]=[];for(var Rt=0;Rt<F;Rt++)n[Rt]=[];return s.quality=="draft"||s.step=="all"?(Z(R),V(),Y(),mt={nodeIndexes:L,xCoords:G,yCoords:K}):(L.forEach(function(b,U){G.push(c.getElementById(U).position("x")),K.push(c.getElementById(U).position("y"))}),mt={nodeIndexes:L,xCoords:G,yCoords:K}),mt}else{var Ht=L.keys(),Ut=c.getElementById(Ht.next().value),Pt=Ut.position(),Ft=Ut.outerWidth();if(G.push(Pt.x),K.push(Pt.y),E==2){var Yt=c.getElementById(Ht.next().value),Vt=Yt.outerWidth();G.push(Pt.x+Ft/2+Vt/2+s.idealEdgeLength),K.push(Pt.y)}return mt={nodeIndexes:L,xCoords:G,yCoords:K},mt}};a.exports={spectralLayout:t}},579:(a,r,e)=>{var f=e(212),i=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&i(cytoscape),a.exports=i},140:a=>{a.exports=A}},N={};function u(a){var r=N[a];if(r!==void 0)return r.exports;var e=N[a]={exports:{}};return P[a](e,e.exports,u),e.exports}var h=u(579);return h})()})}(he)),he.exports}var Ke=Je();const _e=Be.getDefaultExportFromCjs(Ke);var we={L:"left",R:"right",T:"top",B:"bottom"},Oe={L:tt.__name(I=>`${I},${I/2} 0,${I} 0,0`,"L"),R:tt.__name(I=>`0,${I/2} ${I},0 ${I},${I}`,"R"),T:tt.__name(I=>`0,0 ${I},0 ${I/2},${I}`,"T"),B:tt.__name(I=>`${I/2},0 ${I},${I} 0,${I}`,"B")},se={L:tt.__name((I,D)=>I-D+2,"L"),R:tt.__name((I,D)=>I-2,"R"),T:tt.__name((I,D)=>I-D+2,"T"),B:tt.__name((I,D)=>I-2,"B")},je=tt.__name(function(I){return Wt(I)?I==="L"?"R":"L":I==="T"?"B":"T"},"getOppositeArchitectureDirection"),De=tt.__name(function(I){const D=I;return D==="L"||D==="R"||D==="T"||D==="B"},"isArchitectureDirection"),Wt=tt.__name(function(I){const D=I;return D==="L"||D==="R"},"isArchitectureDirectionX"),qt=tt.__name(function(I){const D=I;return D==="T"||D==="B"},"isArchitectureDirectionY"),ye=tt.__name(function(I,D){const A=Wt(I)&&qt(D),P=qt(I)&&Wt(D);return A||P},"isArchitectureDirectionXY"),tr=tt.__name(function(I){const D=I[0],A=I[1],P=Wt(D)&&qt(A),N=qt(D)&&Wt(A);return P||N},"isArchitecturePairXY"),er=tt.__name(function(I){return I!=="LL"&&I!=="RR"&&I!=="TT"&&I!=="BB"},"isValidArchitectureDirectionPair"),pe=tt.__name(function(I,D){const A=`${I}${D}`;return er(A)?A:void 0},"getArchitectureDirectionPair"),rr=tt.__name(function([I,D],A){const P=A[0],N=A[1];return Wt(P)?qt(N)?[I+(P==="L"?-1:1),D+(N==="T"?1:-1)]:[I+(P==="L"?-1:1),D]:Wt(N)?[I+(N==="L"?1:-1),D+(P==="T"?1:-1)]:[I,D+(P==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),ir=tt.__name(function(I){return I==="LT"||I==="TL"?[1,1]:I==="BL"||I==="LB"?[1,-1]:I==="BR"||I==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),ar=tt.__name(function(I,D){return ye(I,D)?"bend":Wt(I)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),nr=tt.__name(function(I){return I.type==="service"},"isArchitectureService"),or=tt.__name(function(I){return I.type==="junction"},"isArchitectureJunction"),Ie=tt.__name(I=>I.data(),"edgeData"),ie=tt.__name(I=>I.data(),"nodeData"),sr=tt.defaultConfig_default.architecture,ae,Re=(ae=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=tt.setAccTitle,this.getAccTitle=tt.getAccTitle,this.setDiagramTitle=tt.setDiagramTitle,this.getDiagramTitle=tt.getDiagramTitle,this.getAccDescription=tt.getAccDescription,this.setAccDescription=tt.setAccDescription,this.clear()}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},tt.clear()}addService({id:D,icon:A,in:P,title:N,iconText:u}){if(this.registeredIds[D]!==void 0)throw new Error(`The service id [${D}] is already in use by another ${this.registeredIds[D]}`);if(P!==void 0){if(D===P)throw new Error(`The service [${D}] cannot be placed within itself`);if(this.registeredIds[P]===void 0)throw new Error(`The service [${D}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[P]==="node")throw new Error(`The service [${D}]'s parent is not a group`)}this.registeredIds[D]="node",this.nodes[D]={id:D,type:"service",icon:A,iconText:u,title:N,edges:[],in:P}}getServices(){return Object.values(this.nodes).filter(nr)}addJunction({id:D,in:A}){this.registeredIds[D]="node",this.nodes[D]={id:D,type:"junction",edges:[],in:A}}getJunctions(){return Object.values(this.nodes).filter(or)}getNodes(){return Object.values(this.nodes)}getNode(D){return this.nodes[D]??null}addGroup({id:D,icon:A,in:P,title:N}){var u,h,a;if(((u=this.registeredIds)==null?void 0:u[D])!==void 0)throw new Error(`The group id [${D}] is already in use by another ${this.registeredIds[D]}`);if(P!==void 0){if(D===P)throw new Error(`The group [${D}] cannot be placed within itself`);if(((h=this.registeredIds)==null?void 0:h[P])===void 0)throw new Error(`The group [${D}]'s parent does not exist. Please make sure the parent is created before this group`);if(((a=this.registeredIds)==null?void 0:a[P])==="node")throw new Error(`The group [${D}]'s parent is not a group`)}this.registeredIds[D]="group",this.groups[D]={id:D,icon:A,title:N,in:P}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:D,rhsId:A,lhsDir:P,rhsDir:N,lhsInto:u,rhsInto:h,lhsGroup:a,rhsGroup:r,title:e}){if(!De(P))throw new Error(`Invalid direction given for left hand side of edge ${D}--${A}. Expected (L,R,T,B) got ${String(P)}`);if(!De(N))throw new Error(`Invalid direction given for right hand side of edge ${D}--${A}. Expected (L,R,T,B) got ${String(N)}`);if(this.nodes[D]===void 0&&this.groups[D]===void 0)throw new Error(`The left-hand id [${D}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[A]===void 0&&this.groups[A]===void 0)throw new Error(`The right-hand id [${A}] does not yet exist. Please create the service/group before declaring an edge to it.`);const f=this.nodes[D].in,i=this.nodes[A].in;if(a&&f&&i&&f==i)throw new Error(`The left-hand id [${D}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(r&&f&&i&&f==i)throw new Error(`The right-hand id [${A}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const g={lhsId:D,lhsDir:P,lhsInto:u,lhsGroup:a,rhsId:A,rhsDir:N,rhsInto:h,rhsGroup:r,title:e};this.edges.push(g),this.nodes[D]&&this.nodes[A]&&(this.nodes[D].edges.push(this.edges[this.edges.length-1]),this.nodes[A].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const D={},A=Object.entries(this.nodes).reduce((r,[e,f])=>(r[e]=f.edges.reduce((i,g)=>{var s,c;const t=(s=this.getNode(g.lhsId))==null?void 0:s.in,o=(c=this.getNode(g.rhsId))==null?void 0:c.in;if(t&&o&&t!==o){const l=ar(g.lhsDir,g.rhsDir);l!=="bend"&&(D[t]??(D[t]={}),D[t][o]=l,D[o]??(D[o]={}),D[o][t]=l)}if(g.lhsId===e){const l=pe(g.lhsDir,g.rhsDir);l&&(i[l]=g.rhsId)}else{const l=pe(g.rhsDir,g.lhsDir);l&&(i[l]=g.lhsId)}return i},{}),r),{}),P=Object.keys(A)[0],N={[P]:1},u=Object.keys(A).reduce((r,e)=>e===P?r:{...r,[e]:1},{}),h=tt.__name(r=>{const e={[r]:[0,0]},f=[r];for(;f.length>0;){const i=f.shift();if(i){N[i]=1,delete u[i];const g=A[i],[t,o]=e[i];Object.entries(g).forEach(([s,c])=>{N[c]||(e[c]=rr([t,o],s),f.push(c))})}}return e},"BFS"),a=[h(P)];for(;Object.keys(u).length>0;)a.push(h(Object.keys(u)[0]));this.dataStructures={adjList:A,spatialMaps:a,groupAlignments:D}}return this.dataStructures}setElementForId(D,A){this.elements[D]=A}getElementById(D){return this.elements[D]}getConfig(){return tt.cleanAndMerge({...sr,...tt.getConfig().architecture})}getConfigField(D){return this.getConfig()[D]}},tt.__name(ae,"ArchitectureDB"),ae),hr=tt.__name((I,D)=>{Ve.populateCommonDb(I,D),I.groups.map(A=>D.addGroup(A)),I.services.map(A=>D.addService({...A,type:"service"})),I.junctions.map(A=>D.addJunction({...A,type:"junction"})),I.edges.map(A=>D.addEdge(A))},"populateDb"),Se={parser:{yy:void 0},parse:tt.__name(async I=>{var P;const D=await ze.parse("architecture",I);tt.log.debug(D);const A=(P=Se.parser)==null?void 0:P.yy;if(!(A instanceof Re))throw new 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.");hr(D,A)},"parse")},lr=tt.__name(I=>`
2
- .edge {
3
- stroke-width: ${I.archEdgeWidth};
4
- stroke: ${I.archEdgeColor};
5
- fill: none;
6
- }
7
-
8
- .arrow {
9
- fill: ${I.archEdgeArrowColor};
10
- }
11
-
12
- .node-bkg {
13
- fill: none;
14
- stroke: ${I.archGroupBorderColor};
15
- stroke-width: ${I.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"),fr=lr,re=tt.__name(I=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${I}</g>`,"wrapIcon"),ne={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:re('<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:re('<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:re('<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:re('<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:re('<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:tt.unknownIcon,blank:{body:re("")}}},cr=tt.__name(async function(I,D,A){const P=A.getConfigField("padding"),N=A.getConfigField("iconSize"),u=N/2,h=N/6,a=h/2;await Promise.all(D.edges().map(async r=>{var K,X;const{source:e,sourceDir:f,sourceArrow:i,sourceGroup:g,target:t,targetDir:o,targetArrow:s,targetGroup:c,label:l}=Ie(r);let{x:T,y:d}=r[0].sourceEndpoint();const{x:v,y:L}=r[0].midpoint();let{x:S,y:C}=r[0].targetEndpoint();const G=P+4;if(g&&(Wt(f)?T+=f==="L"?-G:G:d+=f==="T"?-G:G+18),c&&(Wt(o)?S+=o==="L"?-G:G:C+=o==="T"?-G:G+18),!g&&((K=A.getNode(e))==null?void 0:K.type)==="junction"&&(Wt(f)?T+=f==="L"?u:-u:d+=f==="T"?u:-u),!c&&((X=A.getNode(t))==null?void 0:X.type)==="junction"&&(Wt(o)?S+=o==="L"?u:-u:C+=o==="T"?u:-u),r[0]._private.rscratch){const Q=I.insert("g");if(Q.insert("path").attr("d",`M ${T},${d} L ${v},${L} L${S},${C} `).attr("class","edge").attr("id",tt.getEdgeId(e,t,{prefix:"L"})),i){const O=Wt(f)?se[f](T,h):T-a,it=qt(f)?se[f](d,h):d-a;Q.insert("polygon").attr("points",Oe[f](h)).attr("transform",`translate(${O},${it})`).attr("class","arrow")}if(s){const O=Wt(o)?se[o](S,h):S-a,it=qt(o)?se[o](C,h):C-a;Q.insert("polygon").attr("points",Oe[o](h)).attr("transform",`translate(${O},${it})`).attr("class","arrow")}if(l){const O=ye(f,o)?"XY":Wt(f)?"X":"Y";let it=0;O==="X"?it=Math.abs(T-S):O==="Y"?it=Math.abs(d-C)/1.5:it=Math.abs(T-S)/2;const n=Q.append("g");if(await tt.createText(n,l,{useHtmlLabels:!1,width:it,classes:"architecture-service-label"},tt.getConfig2()),n.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),O==="X")n.attr("transform","translate("+v+", "+L+")");else if(O==="Y")n.attr("transform","translate("+v+", "+L+") rotate(-90)");else if(O==="XY"){const E=pe(f,o);if(E&&tr(E)){const p=n.node().getBoundingClientRect(),[m,y]=ir(E);n.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*m*y*45})`);const R=n.node().getBoundingClientRect();n.attr("transform",`
33
- translate(${v}, ${L-p.height/2})
34
- translate(${m*R.width/2}, ${y*R.height/2})
35
- rotate(${-1*m*y*45}, 0, ${p.height/2})
36
- `)}}}}}))},"drawEdges"),gr=tt.__name(async function(I,D,A){const N=A.getConfigField("padding")*.75,u=A.getConfigField("fontSize"),a=A.getConfigField("iconSize")/2;await Promise.all(D.nodes().map(async r=>{const e=ie(r);if(e.type==="group"){const{h:f,w:i,x1:g,y1:t}=r.boundingBox(),o=I.append("rect");o.attr("id",`group-${e.id}`).attr("x",g+a).attr("y",t+a).attr("width",i).attr("height",f).attr("class","node-bkg");const s=I.append("g");let c=g,l=t;if(e.icon){const T=s.append("g");T.html(`<g>${await tt.getIconSVG(e.icon,{height:N,width:N,fallbackPrefix:ne.prefix})}</g>`),T.attr("transform","translate("+(c+a+1)+", "+(l+a+1)+")"),c+=N,l+=u/2-1-2}if(e.label){const T=s.append("g");await tt.createText(T,e.label,{useHtmlLabels:!1,width:i,classes:"architecture-service-label"},tt.getConfig2()),T.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),T.attr("transform","translate("+(c+a+4)+", "+(l+a+2)+")")}A.setElementForId(e.id,o)}}))},"drawGroups"),ur=tt.__name(async function(I,D,A){const P=tt.getConfig2();for(const N of A){const u=D.append("g"),h=I.getConfigField("iconSize");if(N.title){const f=u.append("g");await tt.createText(f,N.title,{useHtmlLabels:!1,width:h*1.5,classes:"architecture-service-label"},P),f.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),f.attr("transform","translate("+h/2+", "+h+")")}const a=u.append("g");if(N.icon)a.html(`<g>${await tt.getIconSVG(N.icon,{height:h,width:h,fallbackPrefix:ne.prefix})}</g>`);else if(N.iconText){a.html(`<g>${await tt.getIconSVG("blank",{height:h,width:h,fallbackPrefix:ne.prefix})}</g>`);const g=a.append("g").append("foreignObject").attr("width",h).attr("height",h).append("div").attr("class","node-icon-text").attr("style",`height: ${h}px;`).append("div").html(tt.sanitizeText(N.iconText,P)),t=parseInt(window.getComputedStyle(g.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;g.attr("style",`-webkit-line-clamp: ${Math.floor((h-2)/t)};`)}else a.append("path").attr("class","node-bkg").attr("id","node-"+N.id).attr("d",`M0 ${h} v${-h} q0,-5 5,-5 h${h} q5,0 5,5 v${h} H0 Z`);u.attr("id",`service-${N.id}`).attr("class","architecture-service");const{width:r,height:e}=u.node().getBBox();N.width=r,N.height=e,I.setElementForId(N.id,u)}return 0},"drawServices"),dr=tt.__name(function(I,D,A){A.forEach(P=>{const N=D.append("g"),u=I.getConfigField("iconSize");N.append("g").append("rect").attr("id","node-"+P.id).attr("fill-opacity","0").attr("width",u).attr("height",u),N.attr("class","architecture-junction");const{width:a,height:r}=N._groups[0][0].getBBox();N.width=a,N.height=r,I.setElementForId(P.id,N)})},"drawJunctions");tt.registerIconPacks([{name:ne.prefix,icons:ne}]);xe.cytoscape.use(_e);function Fe(I,D,A){I.forEach(P=>{D.add({group:"nodes",data:{type:"service",id:P.id,icon:P.icon,label:P.title,parent:P.in,width:A.getConfigField("iconSize"),height:A.getConfigField("iconSize")},classes:"node-service"})})}tt.__name(Fe,"addServices");function be(I,D,A){I.forEach(P=>{D.add({group:"nodes",data:{type:"junction",id:P.id,parent:P.in,width:A.getConfigField("iconSize"),height:A.getConfigField("iconSize")},classes:"node-junction"})})}tt.__name(be,"addJunctions");function Pe(I,D){D.nodes().map(A=>{const P=ie(A);if(P.type==="group")return;P.x=A.position().x,P.y=A.position().y,I.getElementById(P.id).attr("transform","translate("+(P.x||0)+","+(P.y||0)+")")})}tt.__name(Pe,"positionNodes");function Ge(I,D){I.forEach(A=>{D.add({group:"nodes",data:{type:"group",id:A.id,icon:A.icon,label:A.title,parent:A.in},classes:"node-group"})})}tt.__name(Ge,"addGroups");function Ue(I,D){I.forEach(A=>{const{lhsId:P,rhsId:N,lhsInto:u,lhsGroup:h,rhsInto:a,lhsDir:r,rhsDir:e,rhsGroup:f,title:i}=A,g=ye(A.lhsDir,A.rhsDir)?"segments":"straight",t={id:`${P}-${N}`,label:i,source:P,sourceDir:r,sourceArrow:u,sourceGroup:h,sourceEndpoint:r==="L"?"0 50%":r==="R"?"100% 50%":r==="T"?"50% 0":"50% 100%",target:N,targetDir:e,targetArrow:a,targetGroup:f,targetEndpoint:e==="L"?"0 50%":e==="R"?"100% 50%":e==="T"?"50% 0":"50% 100%"};D.add({group:"edges",data:t,classes:g})})}tt.__name(Ue,"addEdges");function Ye(I,D,A){const P=tt.__name((a,r)=>Object.entries(a).reduce((e,[f,i])=>{var o;let g=0;const t=Object.entries(i);if(t.length===1)return e[f]=t[0][1],e;for(let s=0;s<t.length-1;s++)for(let c=s+1;c<t.length;c++){const[l,T]=t[s],[d,v]=t[c];if(((o=A[l])==null?void 0:o[d])===r)e[f]??(e[f]=[]),e[f]=[...e[f],...T,...v];else if(l==="default"||d==="default")e[f]??(e[f]=[]),e[f]=[...e[f],...T,...v];else{const S=`${f}-${g++}`;e[S]=T;const C=`${f}-${g++}`;e[C]=v}}return e},{}),"flattenAlignments"),N=D.map(a=>{const r={},e={};return Object.entries(a).forEach(([f,[i,g]])=>{var o,s,c;const t=((o=I.getNode(f))==null?void 0:o.in)??"default";r[g]??(r[g]={}),(s=r[g])[t]??(s[t]=[]),r[g][t].push(f),e[i]??(e[i]={}),(c=e[i])[t]??(c[t]=[]),e[i][t].push(f)}),{horiz:Object.values(P(r,"horizontal")).filter(f=>f.length>1),vert:Object.values(P(e,"vertical")).filter(f=>f.length>1)}}),[u,h]=N.reduce(([a,r],{horiz:e,vert:f})=>[[...a,...e],[...r,...f]],[[],[]]);return{horizontal:u,vertical:h}}tt.__name(Ye,"getAlignments");function Xe(I,D){const A=[],P=tt.__name(u=>`${u[0]},${u[1]}`,"posToStr"),N=tt.__name(u=>u.split(",").map(h=>parseInt(h)),"strToPos");return I.forEach(u=>{const h=Object.fromEntries(Object.entries(u).map(([f,i])=>[P(i),f])),a=[P([0,0])],r={},e={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;a.length>0;){const f=a.shift();if(f){r[f]=1;const i=h[f];if(i){const g=N(f);Object.entries(e).forEach(([t,o])=>{const s=P([g[0]+o[0],g[1]+o[1]]),c=h[s];c&&!r[s]&&(a.push(s),A.push({[we[t]]:c,[we[je(t)]]:i,gap:1.5*D.getConfigField("iconSize")}))})}}}}),A}tt.__name(Xe,"getRelativeConstraints");function He(I,D,A,P,N,{spatialMaps:u,groupAlignments:h}){return new Promise(a=>{const r=tt.select("body").append("div").attr("id","cy").attr("style","display:none"),e=xe.cytoscape({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.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":`${N.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:`${N.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});r.remove(),Ge(A,e),Fe(I,e,N),be(D,e,N),Ue(P,e);const f=Ye(N,u,h),i=Xe(u,N),g=e.layout({name:"fcose",quality:"proof",styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(t){const[o,s]=t.connectedNodes(),{parent:c}=ie(o),{parent:l}=ie(s);return c===l?1.5*N.getConfigField("iconSize"):.5*N.getConfigField("iconSize")},edgeElasticity(t){const[o,s]=t.connectedNodes(),{parent:c}=ie(o),{parent:l}=ie(s);return c===l?.45:.001},alignmentConstraint:f,relativePlacementConstraint:i});g.one("layoutstop",()=>{var o;function t(s,c,l,T){let d,v;const{x:L,y:S}=s,{x:C,y:G}=c;v=(T-S+(L-l)*(S-G)/(L-C))/Math.sqrt(1+Math.pow((S-G)/(L-C),2)),d=Math.sqrt(Math.pow(T-S,2)+Math.pow(l-L,2)-Math.pow(v,2));const K=Math.sqrt(Math.pow(C-L,2)+Math.pow(G-S,2));d=d/K;let X=(C-L)*(T-S)-(G-S)*(l-L);switch(!0){case X>=0:X=1;break;case X<0:X=-1;break}let Q=(C-L)*(l-L)+(G-S)*(T-S);switch(!0){case Q>=0:Q=1;break;case Q<0:Q=-1;break}return v=Math.abs(v)*X,d=d*Q,{distances:v,weights:d}}tt.__name(t,"getSegmentWeights"),e.startBatch();for(const s of Object.values(e.edges()))if((o=s.data)!=null&&o.call(s)){const{x:c,y:l}=s.source().position(),{x:T,y:d}=s.target().position();if(c!==T&&l!==d){const v=s.sourceEndpoint(),L=s.targetEndpoint(),{sourceDir:S}=Ie(s),[C,G]=qt(S)?[v.x,L.y]:[L.x,v.y],{weights:K,distances:X}=t(v,L,C,G);s.style("segment-distances",X),s.style("segment-weights",K)}}e.endBatch(),g.run()}),g.run(),e.ready(t=>{tt.log.info("Ready",t),a(e)})})}tt.__name(He,"layoutArchitecture");var vr=tt.__name(async(I,D,A,P)=>{const N=P.db,u=N.getServices(),h=N.getJunctions(),a=N.getGroups(),r=N.getEdges(),e=N.getDataStructures(),f=tt.selectSvgElement(D),i=f.append("g");i.attr("class","architecture-edges");const g=f.append("g");g.attr("class","architecture-services");const t=f.append("g");t.attr("class","architecture-groups"),await ur(N,g,u),dr(N,g,h);const o=await He(u,h,a,r,N,e);await cr(i,o,N),await gr(t,o,N),Pe(N,o),tt.setupGraphViewbox(void 0,f,N.getConfigField("padding"),N.getConfigField("useMaxWidth"))},"draw"),pr={draw:vr},yr={parser:Se,get db(){return new Re},renderer:pr,styles:fr};exports.diagram=yr;