@belonguniverseai/react-sdk 0.1.0

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 (848) hide show
  1. package/README.md +47 -0
  2. package/dist/api/agent-grants.d.ts +61 -0
  3. package/dist/api/api-context.d.ts +9 -0
  4. package/dist/api/client.d.ts +2053 -0
  5. package/dist/api/mutations.d.ts +3 -0
  6. package/dist/api/queries.d.ts +21 -0
  7. package/dist/api/query-keys.d.ts +13 -0
  8. package/dist/api/report-client-error.d.ts +23 -0
  9. package/dist/api/skills.d.ts +23 -0
  10. package/dist/api/workspace-files.d.ts +9 -0
  11. package/dist/app/BelongDock.d.ts +29 -0
  12. package/dist/app/VoiceOverlay.d.ts +18 -0
  13. package/dist/app/providers.d.ts +12 -0
  14. package/dist/app/router.d.ts +2 -0
  15. package/dist/browser/control-channel.d.ts +29 -0
  16. package/dist/browser/dom-bridge.d.ts +6 -0
  17. package/dist/browser/spa-navigate.d.ts +87 -0
  18. package/dist/component/BelongWidget.d.ts +27 -0
  19. package/dist/component/abap-BqLfTM3_.js +9 -0
  20. package/dist/component/abap-Dosx9LfS.js +9 -0
  21. package/dist/component/actionscript-3-CFt6EqSB.js +9 -0
  22. package/dist/component/actionscript-3-CShGOdtT.js +9 -0
  23. package/dist/component/ada-8tCnwMXx.js +9 -0
  24. package/dist/component/ada-DaqFF2jd.js +9 -0
  25. package/dist/component/andromeeda-BxBtQ0rC.js +7 -0
  26. package/dist/component/andromeeda-Dx5fm3r-.js +7 -0
  27. package/dist/component/angular-html-CAoRrq6i.js +35 -0
  28. package/dist/component/angular-html-DG52iVg8.js +35 -0
  29. package/dist/component/angular-ts-BvOrReBc.js +24 -0
  30. package/dist/component/angular-ts-LQyiJZqb.js +24 -0
  31. package/dist/component/apache-HdVsAIQf.js +9 -0
  32. package/dist/component/apache-c3M5d5MN.js +9 -0
  33. package/dist/component/apex-B-y6HhVC.js +9 -0
  34. package/dist/component/apex-DXDfZUnb.js +9 -0
  35. package/dist/component/apl-BnXq3ZtQ.js +19 -0
  36. package/dist/component/apl-D7VFrOyT.js +19 -0
  37. package/dist/component/applescript-BZbrjHcY.js +9 -0
  38. package/dist/component/applescript-Bo1adDet.js +9 -0
  39. package/dist/component/ara-C1QNxHcU.js +9 -0
  40. package/dist/component/ara-ZjRpP-93.js +9 -0
  41. package/dist/component/arc-DGQIe3ON.js +86 -0
  42. package/dist/component/architectureDiagram-3BPJPVTR-C3uLEfb1.js +4697 -0
  43. package/dist/component/asciidoc-2fV_Cv2j.js +9 -0
  44. package/dist/component/asciidoc-D7PshqvO.js +9 -0
  45. package/dist/component/asm-ClEowkZP.js +9 -0
  46. package/dist/component/asm-DmyJawQj.js +9 -0
  47. package/dist/component/astro-9MHfKoOi.js +21 -0
  48. package/dist/component/astro-Bi3QRBCO.js +21 -0
  49. package/dist/component/aurora-x-BGO53J2I.js +7 -0
  50. package/dist/component/aurora-x-C98he-36.js +7 -0
  51. package/dist/component/awk-CIiDOfUC.js +9 -0
  52. package/dist/component/awk-DnzYQYUx.js +9 -0
  53. package/dist/component/ayu-dark-CK1VRikm.js +7 -0
  54. package/dist/component/ayu-dark-J6FX8oSr.js +7 -0
  55. package/dist/component/ayu-light-DIKBJiwH.js +7 -0
  56. package/dist/component/ayu-light-x4Q5N51d.js +7 -0
  57. package/dist/component/ayu-mirage-C5_fPLwf.js +7 -0
  58. package/dist/component/ayu-mirage-DhPHVcGJ.js +7 -0
  59. package/dist/component/ballerina-CeqVHW9D.js +9 -0
  60. package/dist/component/ballerina-epCf0_WV.js +9 -0
  61. package/dist/component/bat-Cuej7k1C.js +9 -0
  62. package/dist/component/bat-Dai7pznF.js +9 -0
  63. package/dist/component/beancount-CpREEZMl.js +9 -0
  64. package/dist/component/beancount-CwiYx9PE.js +9 -0
  65. package/dist/component/berry-BoYGiG42.js +9 -0
  66. package/dist/component/berry-DFo_i8CN.js +9 -0
  67. package/dist/component/bibtex-2bgmGv5w.js +9 -0
  68. package/dist/component/bibtex-BkTrlnvh.js +9 -0
  69. package/dist/component/bicep-C80YQkEm.js +9 -0
  70. package/dist/component/bicep-DYkQKpr8.js +9 -0
  71. package/dist/component/bird2-5AxdId5f.js +9 -0
  72. package/dist/component/bird2-CjcgWn0f.js +9 -0
  73. package/dist/component/blade-BdUlKesy.js +23 -0
  74. package/dist/component/blade-DNMMxdfa.js +23 -0
  75. package/dist/component/blockDiagram-GPEHLZMM-YerYvLm_.js +2421 -0
  76. package/dist/component/bsl-CYB_gPZn.js +11 -0
  77. package/dist/component/bsl-DJ4bR5oi.js +11 -0
  78. package/dist/component/c-C4AMyX3G.js +9 -0
  79. package/dist/component/c-C7DfT4H8.js +9 -0
  80. package/dist/component/c3-DDixCt0K.js +9 -0
  81. package/dist/component/c3-xeavH2G2.js +9 -0
  82. package/dist/component/c4Diagram-AAUBKEIU-p8UR34Zq.js +1586 -0
  83. package/dist/component/cadence-Cy8toSoU.js +9 -0
  84. package/dist/component/cadence-xq71MyIp.js +9 -0
  85. package/dist/component/cairo-B1qo5_uz.js +11 -0
  86. package/dist/component/cairo-CZSJv_Y_.js +11 -0
  87. package/dist/component/catppuccin-frappe-BGDzipYl.js +7 -0
  88. package/dist/component/catppuccin-frappe-DZ2VPnzg.js +7 -0
  89. package/dist/component/catppuccin-latte-9zQ0xneh.js +7 -0
  90. package/dist/component/catppuccin-latte-CK4XjBXq.js +7 -0
  91. package/dist/component/catppuccin-macchiato-CIKuiG5O.js +7 -0
  92. package/dist/component/catppuccin-macchiato-D1xBlgUI.js +7 -0
  93. package/dist/component/catppuccin-mocha-CQk3ku6b.js +7 -0
  94. package/dist/component/catppuccin-mocha-Dr22M_MR.js +7 -0
  95. package/dist/component/channel-ahmILYyG.js +8 -0
  96. package/dist/component/chunk-2J33WTMH-CGaAxoSO.js +22 -0
  97. package/dist/component/chunk-4BX2VUAB-gRTK7Di9.js +11 -0
  98. package/dist/component/chunk-55IACEB6-XfJuuv6Y.js +11 -0
  99. package/dist/component/chunk-727SXJPM-Cy0hXMuO.js +1537 -0
  100. package/dist/component/chunk-AQP2D5EJ-CZHGw4se.js +1396 -0
  101. package/dist/component/chunk-FMBD7UC4-CyqtPCO0.js +22 -0
  102. package/dist/component/chunk-ND2GUHAM-CzTviSBV.js +71 -0
  103. package/dist/component/chunk-QZHKN3VN-CHDEerWv.js +21 -0
  104. package/dist/component/clarity-Dmd3VcKv.js +9 -0
  105. package/dist/component/clarity-FR-MQPIo.js +9 -0
  106. package/dist/component/classDiagram-4FO5ZUOK-BDzl1OcC.js +19 -0
  107. package/dist/component/classDiagram-v2-Q7XG4LA2-BDzl1OcC.js +19 -0
  108. package/dist/component/clojure-CZ5pqCKI.js +9 -0
  109. package/dist/component/clojure-DUXXPerS.js +9 -0
  110. package/dist/component/cmake-DeSLuBit.js +9 -0
  111. package/dist/component/cmake-Dh5RXd_q.js +9 -0
  112. package/dist/component/cobol-B0R9veOS.js +13 -0
  113. package/dist/component/cobol-DayClXiO.js +13 -0
  114. package/dist/component/codeowners-C5Gg1qBb.js +9 -0
  115. package/dist/component/codeowners-RGJbf4XS.js +9 -0
  116. package/dist/component/codeql-1OtYEVEY.js +9 -0
  117. package/dist/component/codeql-CoCy8yp4.js +9 -0
  118. package/dist/component/coffee-kdLRO3eV.js +11 -0
  119. package/dist/component/coffee-tRjJZw7o.js +11 -0
  120. package/dist/component/common-lisp-BeJe0ab6.js +9 -0
  121. package/dist/component/common-lisp-GbfS1OBj.js +9 -0
  122. package/dist/component/coq-B0RJLsKz.js +9 -0
  123. package/dist/component/coq-DMlFNAl3.js +9 -0
  124. package/dist/component/cose-bilkent-S5V4N54A-4R0ErgrZ.js +2611 -0
  125. package/dist/component/cpp-BpiKH-9I.js +21 -0
  126. package/dist/component/cpp-BwGJQL2p.js +21 -0
  127. package/dist/component/crystal-Bb_LifhW.js +21 -0
  128. package/dist/component/crystal-D0cTXans.js +21 -0
  129. package/dist/component/csharp-5kMbpBNi.js +9 -0
  130. package/dist/component/csharp-UFMQzTVu.js +9 -0
  131. package/dist/component/css-B2ckPEoZ.js +9 -0
  132. package/dist/component/css-MDiv-Xmm.js +9 -0
  133. package/dist/component/csv-Ba1T94jM.js +9 -0
  134. package/dist/component/csv-DZ-mzuKa.js +9 -0
  135. package/dist/component/cue-CtGb6f31.js +9 -0
  136. package/dist/component/cue-DbYr629m.js +9 -0
  137. package/dist/component/cypher-7eGqJtNJ.js +9 -0
  138. package/dist/component/cypher-pD9MnYc_.js +9 -0
  139. package/dist/component/cytoscape.esm-C31R6JOv.js +18772 -0
  140. package/dist/component/d-BefBLeap.js +9 -0
  141. package/dist/component/d-Dij3nCx4.js +9 -0
  142. package/dist/component/dagre-BM42HDAG-BcJQXGn3.js +448 -0
  143. package/dist/component/dark-plus-C9nS7rhq.js +7 -0
  144. package/dist/component/dark-plus-L3JON0ir.js +7 -0
  145. package/dist/component/dart-BWNSliXX.js +9 -0
  146. package/dist/component/dart-DCRAsZQK.js +9 -0
  147. package/dist/component/dax-CWdGoxkM.js +9 -0
  148. package/dist/component/dax-pykceZLM.js +9 -0
  149. package/dist/component/defaultLocale-BXpxsZAK.js +174 -0
  150. package/dist/component/desktop-4j8jFU02.js +9 -0
  151. package/dist/component/desktop-B3AeStqn.js +9 -0
  152. package/dist/component/diagram-2AECGRRQ-Cld7-k7F.js +220 -0
  153. package/dist/component/diagram-5GNKFQAL-d7JtHVRK.js +126 -0
  154. package/dist/component/diagram-KO2AKTUF-Avxzz4xw.js +464 -0
  155. package/dist/component/diagram-LMA3HP47-Cy_E5-rU.js +148 -0
  156. package/dist/component/diagram-OG6HWLK6-DUsJK7Js.js +534 -0
  157. package/dist/component/diff-DuoPSmgL.js +9 -0
  158. package/dist/component/diff-IyCSM08A.js +9 -0
  159. package/dist/component/docker-BSrvy0o9.js +9 -0
  160. package/dist/component/docker-Ca4vT6OJ.js +9 -0
  161. package/dist/component/dotenv-CUP-PB19.js +9 -0
  162. package/dist/component/dotenv-aA3GGxJM.js +9 -0
  163. package/dist/component/dracula-2BaSCSav.js +7 -0
  164. package/dist/component/dracula-Lg7_DbOD.js +7 -0
  165. package/dist/component/dracula-soft-AsPqNBvZ.js +7 -0
  166. package/dist/component/dracula-soft-n6R-sBGM.js +7 -0
  167. package/dist/component/dream-maker-B2xERNvR.js +9 -0
  168. package/dist/component/dream-maker-Jadq_Ln7.js +9 -0
  169. package/dist/component/edge-B-amp2rn.js +15 -0
  170. package/dist/component/edge-Bol1lNG-.js +15 -0
  171. package/dist/component/elixir-DSzpv_bE.js +11 -0
  172. package/dist/component/elixir-t5YY_ese.js +11 -0
  173. package/dist/component/elm-DNaka8RZ.js +11 -0
  174. package/dist/component/elm-JLsvCHy1.js +11 -0
  175. package/dist/component/emacs-lisp-C6XZT609.js +9 -0
  176. package/dist/component/emacs-lisp-DWDtb5kD.js +9 -0
  177. package/dist/component/erDiagram-TEJ5UH35-DEdqrWqp.js +905 -0
  178. package/dist/component/erb-BJ95qgrJ.js +13 -0
  179. package/dist/component/erb-rGIYAeIa.js +13 -0
  180. package/dist/component/erlang-By5grfmz.js +11 -0
  181. package/dist/component/erlang-rAClsghX.js +11 -0
  182. package/dist/component/everforest-dark-DBhTz0Lt.js +7 -0
  183. package/dist/component/everforest-dark-_A43rkLf.js +7 -0
  184. package/dist/component/everforest-light-Bep_XOgu.js +7 -0
  185. package/dist/component/everforest-light-DHbrW2te.js +7 -0
  186. package/dist/component/fennel-CeQPNUU9.js +9 -0
  187. package/dist/component/fennel-QllfYze1.js +9 -0
  188. package/dist/component/fish-BXP1eRyz.js +9 -0
  189. package/dist/component/fish-DkfR0DRL.js +9 -0
  190. package/dist/component/flowDiagram-I6XJVG4X-BWzYDsjP.js +1634 -0
  191. package/dist/component/fluent-Ih0R99Ix.js +9 -0
  192. package/dist/component/fluent-RduSrzCZ.js +9 -0
  193. package/dist/component/fortran-fixed-form-C3I8YlEU.js +11 -0
  194. package/dist/component/fortran-fixed-form-D7OlW0lw.js +11 -0
  195. package/dist/component/fortran-free-form-CXj2ku4f.js +9 -0
  196. package/dist/component/fortran-free-form-DifCDW_P.js +9 -0
  197. package/dist/component/fsharp-65O4P3S5.js +11 -0
  198. package/dist/component/fsharp-CXzwUWsC.js +11 -0
  199. package/dist/component/ganttDiagram-6RSMTGT7-DzfeVIgF.js +2709 -0
  200. package/dist/component/gdresource-Bn5VhPaI.js +13 -0
  201. package/dist/component/gdresource-kUFIn9eK.js +13 -0
  202. package/dist/component/gdscript-BNGA6E65.js +9 -0
  203. package/dist/component/gdscript-LjKsfw3O.js +9 -0
  204. package/dist/component/gdshader-C-Gp5-Ot.js +9 -0
  205. package/dist/component/gdshader-C1lRZRQz.js +9 -0
  206. package/dist/component/genie-B8viIUNC.js +9 -0
  207. package/dist/component/genie-eR37RVXX.js +9 -0
  208. package/dist/component/gherkin-BVA-IOor.js +9 -0
  209. package/dist/component/gherkin-CuORnKvF.js +9 -0
  210. package/dist/component/git-commit-BNPqpLhi.js +11 -0
  211. package/dist/component/git-commit-Dh7BfmB9.js +11 -0
  212. package/dist/component/git-rebase-B5TXZutB.js +11 -0
  213. package/dist/component/git-rebase-DhwWS8MC.js +11 -0
  214. package/dist/component/gitGraphDiagram-PVQCEYII-CKzbGWcQ.js +818 -0
  215. package/dist/component/github-dark-5b4g_bOp.js +7 -0
  216. package/dist/component/github-dark-default-6zDGR7DJ.js +7 -0
  217. package/dist/component/github-dark-default-H56pGX_M.js +7 -0
  218. package/dist/component/github-dark-dimmed-B1iXBBmo.js +7 -0
  219. package/dist/component/github-dark-dimmed-DjYa1rhk.js +7 -0
  220. package/dist/component/github-dark-high-contrast-BuNi_Wj5.js +7 -0
  221. package/dist/component/github-dark-high-contrast-DvpYRI-4.js +7 -0
  222. package/dist/component/github-dark-mxHsWyJ4.js +7 -0
  223. package/dist/component/github-light-CTdjTVPf.js +7 -0
  224. package/dist/component/github-light-KqdY1rAV.js +7 -0
  225. package/dist/component/github-light-default-BlRYTBRQ.js +7 -0
  226. package/dist/component/github-light-default-Drw5Jl_p.js +7 -0
  227. package/dist/component/github-light-high-contrast-9d8ktz0h.js +7 -0
  228. package/dist/component/github-light-high-contrast-ColFVC7A.js +7 -0
  229. package/dist/component/gleam-BXQHq2ZT.js +9 -0
  230. package/dist/component/gleam-RfA2dpfH.js +9 -0
  231. package/dist/component/glimmer-js-BHZ1FuRp.js +17 -0
  232. package/dist/component/glimmer-js-Gdq_UYVf.js +17 -0
  233. package/dist/component/glimmer-ts-D6H7q5ls.js +17 -0
  234. package/dist/component/glimmer-ts-DdmgeZua.js +17 -0
  235. package/dist/component/glsl-D1RRylbk.js +11 -0
  236. package/dist/component/glsl-MDSU_3-y.js +11 -0
  237. package/dist/component/gn-D8VPrt1o.js +9 -0
  238. package/dist/component/gn-DJpTAp5e.js +9 -0
  239. package/dist/component/gnuplot-BNzwvBx5.js +9 -0
  240. package/dist/component/gnuplot-Iqvzplz-.js +9 -0
  241. package/dist/component/go-D-G7cxeA.js +9 -0
  242. package/dist/component/go-TNOI7pQc.js +9 -0
  243. package/dist/component/graph-BZLHvygk.js +1548 -0
  244. package/dist/component/graphql-CW6tYk7X.js +17 -0
  245. package/dist/component/graphql-DGugpl40.js +17 -0
  246. package/dist/component/groovy-5_UI-q3N.js +9 -0
  247. package/dist/component/groovy-D7GH48W8.js +9 -0
  248. package/dist/component/gruvbox-dark-hard-Ch2GYDcJ.js +7 -0
  249. package/dist/component/gruvbox-dark-hard-Dpxv_Il6.js +7 -0
  250. package/dist/component/gruvbox-dark-medium-DqoxKYPx.js +7 -0
  251. package/dist/component/gruvbox-dark-medium-eGVEUM8W.js +7 -0
  252. package/dist/component/gruvbox-dark-soft-BA9DdijB.js +7 -0
  253. package/dist/component/gruvbox-dark-soft-DRaJAZcW.js +7 -0
  254. package/dist/component/gruvbox-light-hard-BJXIrqpz.js +7 -0
  255. package/dist/component/gruvbox-light-hard-_qNpoYJy.js +7 -0
  256. package/dist/component/gruvbox-light-medium-39dkJwxv.js +7 -0
  257. package/dist/component/gruvbox-light-medium-IkDFQhcB.js +7 -0
  258. package/dist/component/gruvbox-light-soft-DWPQo7Dn.js +7 -0
  259. package/dist/component/gruvbox-light-soft-Dpz5D6wP.js +7 -0
  260. package/dist/component/hack-BSrzyV-l.js +13 -0
  261. package/dist/component/hack-CJNnfXZh.js +13 -0
  262. package/dist/component/haml-DL-NAYVg.js +13 -0
  263. package/dist/component/haml-DYkTKupK.js +13 -0
  264. package/dist/component/handlebars-B2Z6CWhc.js +17 -0
  265. package/dist/component/handlebars-Cwj0qzUo.js +17 -0
  266. package/dist/component/haskell-Cj3J4fKD.js +9 -0
  267. package/dist/component/haskell-h36TjJLk.js +9 -0
  268. package/dist/component/haxe-CcifGI6O.js +9 -0
  269. package/dist/component/haxe-Coqw0Tt8.js +9 -0
  270. package/dist/component/hcl-BPVqiZDb.js +9 -0
  271. package/dist/component/hcl-DaPl6lOC.js +9 -0
  272. package/dist/component/highlighted-body-OFNGDK62-BkGwwkHo.js +22 -0
  273. package/dist/component/hjson-CfcQXz3-.js +9 -0
  274. package/dist/component/hjson-DsTgWNxt.js +9 -0
  275. package/dist/component/hlsl-CLzjZIQL.js +9 -0
  276. package/dist/component/hlsl-DVyuzW8h.js +9 -0
  277. package/dist/component/horizon-DaNatiIz.js +7 -0
  278. package/dist/component/horizon-bright-CthJh1Qp.js +7 -0
  279. package/dist/component/horizon-bright-DMKA6ab6.js +7 -0
  280. package/dist/component/horizon-q20CuJTh.js +7 -0
  281. package/dist/component/houston-CjpgGYwZ.js +7 -0
  282. package/dist/component/houston-DnIZxOiF.js +7 -0
  283. package/dist/component/html-DSjghx6n.js +13 -0
  284. package/dist/component/html-derivative-CxizaS1Z.js +11 -0
  285. package/dist/component/html-derivative-DDrVhQXu.js +11 -0
  286. package/dist/component/html-tY6fNMOn.js +13 -0
  287. package/dist/component/http-CLvA54iU.js +17 -0
  288. package/dist/component/http-CPkD6MSf.js +17 -0
  289. package/dist/component/hurl-CuuCK9Id.js +15 -0
  290. package/dist/component/hurl-LcD0R7wh.js +15 -0
  291. package/dist/component/hxml-CJz9SfqN.js +11 -0
  292. package/dist/component/hxml-DLsAgg8X.js +11 -0
  293. package/dist/component/hy-CAEey4h7.js +9 -0
  294. package/dist/component/hy-Dm2IGIb-.js +9 -0
  295. package/dist/component/imba-5G9Fs_nr.js +9 -0
  296. package/dist/component/imba-CH2D1ce9.js +9 -0
  297. package/dist/component/index.d.ts +3 -0
  298. package/dist/component/index.js +8 -0
  299. package/dist/component/infoDiagram-5YYISTIA-D9xN-Pqc.js +27 -0
  300. package/dist/component/ini-Dt2l3RWi.js +9 -0
  301. package/dist/component/ini-kgvXisvj.js +9 -0
  302. package/dist/component/init-BOu0eQYQ.js +19 -0
  303. package/dist/component/ishikawaDiagram-YF4QCWOH--YDYWDwv.js +627 -0
  304. package/dist/component/java-BKLcvtEM.js +9 -0
  305. package/dist/component/java-oSN7P0Od.js +9 -0
  306. package/dist/component/javascript-CyaMmpOO.js +9 -0
  307. package/dist/component/javascript-DFm3DOoX.js +9 -0
  308. package/dist/component/jinja-Ch28RrFG.js +14 -0
  309. package/dist/component/jinja-CsTh8Ahj.js +14 -0
  310. package/dist/component/jison-Bu0o8a1Z.js +11 -0
  311. package/dist/component/jison-DLgrOJpy.js +11 -0
  312. package/dist/component/journeyDiagram-JHISSGLW-B9-CHfSv.js +837 -0
  313. package/dist/component/json-D-WsbO45.js +9 -0
  314. package/dist/component/json-rmrBoeO_.js +9 -0
  315. package/dist/component/json5-B1J6XVPd.js +9 -0
  316. package/dist/component/json5-B3-n7IrD.js +9 -0
  317. package/dist/component/jsonc-BgfI3zjg.js +9 -0
  318. package/dist/component/jsonc-HFvGREK8.js +9 -0
  319. package/dist/component/jsonl-DHttz8sH.js +9 -0
  320. package/dist/component/jsonl-l_eIcPip.js +9 -0
  321. package/dist/component/jsonnet-D6SNIhw0.js +9 -0
  322. package/dist/component/jsonnet-DO8Zfk6p.js +9 -0
  323. package/dist/component/jssm-CKRLojKZ.js +9 -0
  324. package/dist/component/jssm-Dy1zjXNg.js +9 -0
  325. package/dist/component/jsx-CpVvoVGp.js +9 -0
  326. package/dist/component/jsx-si2wS7pt.js +9 -0
  327. package/dist/component/julia-BPzvBJ4R.js +19 -0
  328. package/dist/component/julia-CfyFig21.js +19 -0
  329. package/dist/component/just-D5rIv9U4.js +21 -0
  330. package/dist/component/just-fRm_weEQ.js +21 -0
  331. package/dist/component/kanagawa-dragon-BOBo9JLg.js +7 -0
  332. package/dist/component/kanagawa-dragon-BWPCHB_7.js +7 -0
  333. package/dist/component/kanagawa-lotus-8m_3LhhF.js +7 -0
  334. package/dist/component/kanagawa-lotus-B5o1JCNj.js +7 -0
  335. package/dist/component/kanagawa-wave-BSP7z6KH.js +7 -0
  336. package/dist/component/kanagawa-wave-ClYLx7ql.js +7 -0
  337. package/dist/component/kanban-definition-UN3LZRKU-Cmh8twbq.js +727 -0
  338. package/dist/component/kdl-GafIF83C.js +9 -0
  339. package/dist/component/kdl-_X6wsgV0.js +9 -0
  340. package/dist/component/kotlin-B3jfEOcv.js +9 -0
  341. package/dist/component/kotlin-BWMoZeA3.js +9 -0
  342. package/dist/component/kusto-Bkz9eBch.js +9 -0
  343. package/dist/component/kusto-ohiqZ64l.js +9 -0
  344. package/dist/component/laserwave-BmajecBZ.js +7 -0
  345. package/dist/component/laserwave-Bp21zlIO.js +7 -0
  346. package/dist/component/latex-BYzveWoN.js +11 -0
  347. package/dist/component/latex-Bi4Lg68B.js +11 -0
  348. package/dist/component/layout-Bu6nRdWm.js +1731 -0
  349. package/dist/component/lean-BBkk0btj.js +9 -0
  350. package/dist/component/lean-DFmhzmny.js +9 -0
  351. package/dist/component/less-ChX34X5W.js +9 -0
  352. package/dist/component/less-kqPRXL1K.js +9 -0
  353. package/dist/component/light-plus-DFxAowZg.js +7 -0
  354. package/dist/component/light-plus-_t1yKirF.js +7 -0
  355. package/dist/component/linear-BDyEUcVD.js +262 -0
  356. package/dist/component/liquid-Bri_C9oi.js +17 -0
  357. package/dist/component/liquid-f2WMwCDi.js +17 -0
  358. package/dist/component/llvm-COuD10ql.js +9 -0
  359. package/dist/component/llvm-dub2631B.js +9 -0
  360. package/dist/component/log-A8St-vyh.js +9 -0
  361. package/dist/component/log-g58LFxM8.js +9 -0
  362. package/dist/component/logo-DZmThwvl.js +9 -0
  363. package/dist/component/logo-x6YxnKST.js +9 -0
  364. package/dist/component/lua-Bj2G8q-Z.js +11 -0
  365. package/dist/component/lua-CyXCKT0u.js +11 -0
  366. package/dist/component/luau-B8fyn01D.js +9 -0
  367. package/dist/component/luau-C5q2C4N6.js +9 -0
  368. package/dist/component/make-DOTJ8IeI.js +9 -0
  369. package/dist/component/make-DTiRnfNf.js +9 -0
  370. package/dist/component/markdown-D3u32LKS.js +9 -0
  371. package/dist/component/markdown-DHm1k_6p.js +9 -0
  372. package/dist/component/marko-CUgdvzuR.js +17 -0
  373. package/dist/component/marko-SwZmWzIv.js +17 -0
  374. package/dist/component/material-theme-BIfRQKI0.js +7 -0
  375. package/dist/component/material-theme-CxS7GniW.js +7 -0
  376. package/dist/component/material-theme-darker-DKP5DIOi.js +7 -0
  377. package/dist/component/material-theme-darker-DkNB3xjL.js +7 -0
  378. package/dist/component/material-theme-lighter-3I4JYnlq.js +7 -0
  379. package/dist/component/material-theme-lighter-D5xivCfx.js +7 -0
  380. package/dist/component/material-theme-ocean-B31yuEXO.js +7 -0
  381. package/dist/component/material-theme-ocean-rw0kJPZg.js +7 -0
  382. package/dist/component/material-theme-palenight-BfunK0Uo.js +7 -0
  383. package/dist/component/material-theme-palenight-COTbh91p.js +7 -0
  384. package/dist/component/matlab-CkKSQcnX.js +9 -0
  385. package/dist/component/matlab-DCF6d5YL.js +9 -0
  386. package/dist/component/mdc-D92XwdT9.js +15 -0
  387. package/dist/component/mdc-gb_v49HI.js +15 -0
  388. package/dist/component/mdx-C6kH9TSz.js +9 -0
  389. package/dist/component/mdx-Dqb5H0t-.js +9 -0
  390. package/dist/component/mermaid-0bkYzXfL.js +9 -0
  391. package/dist/component/mermaid-GHXKKRXX-C5Y3BZXR.js +107122 -0
  392. package/dist/component/mermaid-N7-yWHiu.js +9 -0
  393. package/dist/component/min-dark-CqEfelDe.js +7 -0
  394. package/dist/component/min-dark-FAglrjWz.js +7 -0
  395. package/dist/component/min-light-BmdYN58_.js +7 -0
  396. package/dist/component/min-light-CcJCxfWw.js +7 -0
  397. package/dist/component/mindmap-definition-RKZ34NQL-CnFpVFpl.js +833 -0
  398. package/dist/component/mipsasm-BYNReuUT.js +9 -0
  399. package/dist/component/mipsasm-CKzkMNWr.js +9 -0
  400. package/dist/component/mojo-0URGVph7.js +9 -0
  401. package/dist/component/mojo-C563AncR.js +9 -0
  402. package/dist/component/monokai-D3_c3OUm.js +7 -0
  403. package/dist/component/monokai-ugSJFofr.js +7 -0
  404. package/dist/component/moonbit-BkJk2kyS.js +9 -0
  405. package/dist/component/moonbit-DlIX78rk.js +9 -0
  406. package/dist/component/move-BQAHOJb2.js +9 -0
  407. package/dist/component/move-eiW4QYDW.js +9 -0
  408. package/dist/component/narrat-2oVindvn.js +9 -0
  409. package/dist/component/narrat-Dc4cTFeW.js +9 -0
  410. package/dist/component/nextflow-B4caLl5A.js +11 -0
  411. package/dist/component/nextflow-Bk0ryO1R.js +11 -0
  412. package/dist/component/nextflow-groovy-BnXf2WiC.js +9 -0
  413. package/dist/component/nextflow-groovy-DIMIAEOy.js +9 -0
  414. package/dist/component/nginx-BaGEfT9r.js +11 -0
  415. package/dist/component/nginx-Dprlne5J.js +11 -0
  416. package/dist/component/night-owl-B6L5FL5v.js +7 -0
  417. package/dist/component/night-owl-CB_IXuNH.js +7 -0
  418. package/dist/component/night-owl-light-BZxeyl5X.js +7 -0
  419. package/dist/component/night-owl-light-CoPr05P4.js +7 -0
  420. package/dist/component/nim-BKvvFCe_.js +23 -0
  421. package/dist/component/nim-CQZqLxeE.js +23 -0
  422. package/dist/component/nix-Cp8a0vy5.js +12 -0
  423. package/dist/component/nix-DEY1zukk.js +12 -0
  424. package/dist/component/nord-D3PAEvHH.js +7 -0
  425. package/dist/component/nord-DPPgRakM.js +7 -0
  426. package/dist/component/nushell-BdsblUId.js +9 -0
  427. package/dist/component/nushell-DUUbmBaO.js +9 -0
  428. package/dist/component/objective-c-CNN3tl1v.js +9 -0
  429. package/dist/component/objective-c-D_6I2dsG.js +9 -0
  430. package/dist/component/objective-cpp-BjicYcS7.js +9 -0
  431. package/dist/component/objective-cpp-z4LTaUcg.js +9 -0
  432. package/dist/component/ocaml-BnD9haV8.js +9 -0
  433. package/dist/component/ocaml-DZseEUty.js +9 -0
  434. package/dist/component/odin-CnsCKboc.js +9 -0
  435. package/dist/component/odin-P2WSXO4H.js +9 -0
  436. package/dist/component/one-dark-pro-C_eaQ16k.js +7 -0
  437. package/dist/component/one-dark-pro-OimEv0Ou.js +7 -0
  438. package/dist/component/one-light-B0ti6b9S.js +7 -0
  439. package/dist/component/one-light-j3UfPQB3.js +7 -0
  440. package/dist/component/openscad-2vaKslxR.js +9 -0
  441. package/dist/component/openscad-jE6oRbDv.js +9 -0
  442. package/dist/component/ordinal-D0x7izaa.js +64 -0
  443. package/dist/component/pascal-8jl8irAj.js +9 -0
  444. package/dist/component/pascal-d7SASCGO.js +9 -0
  445. package/dist/component/perl-DHC1BZ_5.js +19 -0
  446. package/dist/component/perl-DVm7Pq-D.js +19 -0
  447. package/dist/component/php-BF_l-EgM.js +21 -0
  448. package/dist/component/php-BtpW2-DO.js +21 -0
  449. package/dist/component/pieDiagram-4H26LBE5-u-blLkni.js +166 -0
  450. package/dist/component/pkl-CoBnC_8G.js +9 -0
  451. package/dist/component/pkl-DZdA2Trc.js +9 -0
  452. package/dist/component/plastic-3IjBbwNP.js +7 -0
  453. package/dist/component/plastic-CixB-AlW.js +7 -0
  454. package/dist/component/plsql-Cv-ZxhCL.js +9 -0
  455. package/dist/component/plsql-CzeGyK0m.js +9 -0
  456. package/dist/component/po-eb_Amfj2.js +9 -0
  457. package/dist/component/po-moSB12fi.js +9 -0
  458. package/dist/component/poimandres-C03Jy3KZ.js +7 -0
  459. package/dist/component/poimandres-CKZ3f48N.js +7 -0
  460. package/dist/component/polar-BKFAKBSA.js +9 -0
  461. package/dist/component/polar-CsPCUbKt.js +9 -0
  462. package/dist/component/postcss-CytNqPC0.js +9 -0
  463. package/dist/component/postcss-D3_LY2LH.js +9 -0
  464. package/dist/component/powerquery-CpTndMW_.js +9 -0
  465. package/dist/component/powerquery-f-cemdrG.js +9 -0
  466. package/dist/component/powershell-B-JkstDq.js +9 -0
  467. package/dist/component/powershell-BkDB3ZO9.js +9 -0
  468. package/dist/component/prisma-B4mlcaEB.js +9 -0
  469. package/dist/component/prisma-BX88wNNq.js +9 -0
  470. package/dist/component/prolog-ZYcjPjsY.js +9 -0
  471. package/dist/component/prolog-ftPRGVaT.js +9 -0
  472. package/dist/component/proto-B5SG7zCc.js +9 -0
  473. package/dist/component/proto-DpTcjJFH.js +9 -0
  474. package/dist/component/pug-BziTjzcZ.js +15 -0
  475. package/dist/component/pug-XUdLuJ2s.js +15 -0
  476. package/dist/component/puppet-BeyD5DhV.js +9 -0
  477. package/dist/component/puppet-DjFvC8zy.js +9 -0
  478. package/dist/component/purescript-BBRU0YyZ.js +9 -0
  479. package/dist/component/purescript-Bf3WPYAV.js +9 -0
  480. package/dist/component/python-C7yusFoO.js +9 -0
  481. package/dist/component/python-CuNbg5wx.js +9 -0
  482. package/dist/component/qml-Cu9RjXOs.js +11 -0
  483. package/dist/component/qml-Z-uvElxQ.js +11 -0
  484. package/dist/component/qmldir-BHp2usxt.js +9 -0
  485. package/dist/component/qmldir-C6P--W6X.js +9 -0
  486. package/dist/component/qss-CgcBaeYL.js +9 -0
  487. package/dist/component/qss-iWzt-Nzy.js +9 -0
  488. package/dist/component/quadrantDiagram-W4KKPZXB-Bpq-EoMM.js +1033 -0
  489. package/dist/component/r-8lH98zbN.js +9 -0
  490. package/dist/component/r-CyFkAlMF.js +9 -0
  491. package/dist/component/racket-DaWPCRlQ.js +9 -0
  492. package/dist/component/racket-effgGH8q.js +9 -0
  493. package/dist/component/raku-DXM7wT4g.js +9 -0
  494. package/dist/component/raku-GZVvT-nH.js +9 -0
  495. package/dist/component/razor-CYq4jbLW.js +13 -0
  496. package/dist/component/razor-DQFDiXM1.js +13 -0
  497. package/dist/component/red-B9TgEgRC.js +7 -0
  498. package/dist/component/red-BNC90Lxb.js +7 -0
  499. package/dist/component/reg-C62uOG3A.js +9 -0
  500. package/dist/component/reg-CQgRgzkw.js +9 -0
  501. package/dist/component/regexp-D8jeZrvm.js +9 -0
  502. package/dist/component/regexp-UNvxOND4.js +9 -0
  503. package/dist/component/rel-BRyuNjQD.js +9 -0
  504. package/dist/component/rel-Cyzm_Cno.js +9 -0
  505. package/dist/component/requirementDiagram-4Y6WPE33-B8V7mLRY.js +888 -0
  506. package/dist/component/riscv-BHdC-Wfh.js +9 -0
  507. package/dist/component/riscv-BZ9l50bA.js +9 -0
  508. package/dist/component/ron--0kZyCV0.js +9 -0
  509. package/dist/component/ron-CJx-eqt3.js +9 -0
  510. package/dist/component/rose-pine-XHcBRH-D.js +7 -0
  511. package/dist/component/rose-pine-dawn-Bz77Igqs.js +7 -0
  512. package/dist/component/rose-pine-dawn-RL42yTas.js +7 -0
  513. package/dist/component/rose-pine-ksWn8nuO.js +7 -0
  514. package/dist/component/rose-pine-moon-BtSW__9n.js +7 -0
  515. package/dist/component/rose-pine-moon-QJS0aJgR.js +7 -0
  516. package/dist/component/rosmsg-BPUqDEe2.js +9 -0
  517. package/dist/component/rosmsg-CM65NRE0.js +9 -0
  518. package/dist/component/rst-CqXkCW5F.js +25 -0
  519. package/dist/component/rst-DQATMrFw.js +25 -0
  520. package/dist/component/ruby-B09XKrLg.js +33 -0
  521. package/dist/component/ruby-BJtrPIFQ.js +33 -0
  522. package/dist/component/rust-3aEF0O7t.js +9 -0
  523. package/dist/component/rust-XKBJng8W.js +9 -0
  524. package/dist/component/sankeyDiagram-5OEKKPKP-C-TbMbsr.js +862 -0
  525. package/dist/component/sas-COkwgxe_.js +11 -0
  526. package/dist/component/sas-DDLczODn.js +11 -0
  527. package/dist/component/sass-BIT8Mghp.js +9 -0
  528. package/dist/component/sass-CbXM5obh.js +9 -0
  529. package/dist/component/scala-CWyCExvl.js +9 -0
  530. package/dist/component/scala-DmAjX8OM.js +9 -0
  531. package/dist/component/scheme-BLXiZF3M.js +9 -0
  532. package/dist/component/scheme-ERi8vGmO.js +9 -0
  533. package/dist/component/scss-BX4eQ0c3.js +11 -0
  534. package/dist/component/scss-Biq-xkEY.js +11 -0
  535. package/dist/component/sdbl-B4TEJKGi.js +9 -0
  536. package/dist/component/sdbl-tnLxE-ur.js +9 -0
  537. package/dist/component/sequenceDiagram-3UESZ5HK-UHhixLbD.js +2897 -0
  538. package/dist/component/shaderlab-DMYXUCqo.js +11 -0
  539. package/dist/component/shaderlab-DqcfJRqk.js +11 -0
  540. package/dist/component/shellscript-B533aeAq.js +9 -0
  541. package/dist/component/shellscript-B8M9FK6Q.js +9 -0
  542. package/dist/component/shellsession-CvrLJEnp.js +11 -0
  543. package/dist/component/shellsession-Cy0cdv3D.js +11 -0
  544. package/dist/component/slack-dark-9TBiD8mL.js +7 -0
  545. package/dist/component/slack-dark-DN-r2Kgp.js +7 -0
  546. package/dist/component/slack-ochin-9pgdwMdj.js +7 -0
  547. package/dist/component/slack-ochin-DoqPjNJD.js +7 -0
  548. package/dist/component/smalltalk-Bbm0pJzJ.js +9 -0
  549. package/dist/component/smalltalk-BgwWJ0LQ.js +9 -0
  550. package/dist/component/snazzy-light-CRiZMLw1.js +7 -0
  551. package/dist/component/snazzy-light-D2QxPpzI.js +7 -0
  552. package/dist/component/solarized-dark-CpiZBbF-.js +7 -0
  553. package/dist/component/solarized-dark-DrZ258Kz.js +7 -0
  554. package/dist/component/solarized-light-940Q0ET-.js +7 -0
  555. package/dist/component/solarized-light-CZjXGjG0.js +7 -0
  556. package/dist/component/solidity-BiVIJAyo.js +9 -0
  557. package/dist/component/solidity-DsGO0zKs.js +9 -0
  558. package/dist/component/soy-B8d9iNux.js +11 -0
  559. package/dist/component/soy-CrWxFFIL.js +11 -0
  560. package/dist/component/sparql-C9-sbVPb.js +11 -0
  561. package/dist/component/sparql-D4y9QLpW.js +11 -0
  562. package/dist/component/splunk-8ZGt17T1.js +9 -0
  563. package/dist/component/splunk-CoLR9YoS.js +9 -0
  564. package/dist/component/sql-kcHmCqqm.js +9 -0
  565. package/dist/component/sql-vg8sPfqQ.js +9 -0
  566. package/dist/component/ssh-config-CaXR5cZI.js +9 -0
  567. package/dist/component/ssh-config-DIPB8nWv.js +9 -0
  568. package/dist/component/stata-DTwlvRC-.js +11 -0
  569. package/dist/component/stata-wXDnjjLv.js +11 -0
  570. package/dist/component/stateDiagram-AJRCARHV-DBGVr_mf.js +266 -0
  571. package/dist/component/stateDiagram-v2-BHNVJYJU-BasSd11t.js +19 -0
  572. package/dist/component/stylus-BVi_fesw.js +9 -0
  573. package/dist/component/stylus-WAexVQ6f.js +9 -0
  574. package/dist/component/surrealql-BMPoOZ16.js +11 -0
  575. package/dist/component/surrealql-CoR3cmJl.js +11 -0
  576. package/dist/component/svelte-BXoajfvD.js +17 -0
  577. package/dist/component/svelte-CSNEH6tH.js +17 -0
  578. package/dist/component/swift-C1L5BrdG.js +9 -0
  579. package/dist/component/swift-DvqRLmJa.js +9 -0
  580. package/dist/component/synthwave-84-CjU0tbaA.js +7 -0
  581. package/dist/component/synthwave-84-D0HCetP1.js +7 -0
  582. package/dist/component/system-verilog-BlCQhLvC.js +9 -0
  583. package/dist/component/system-verilog-NfYSOS9X.js +9 -0
  584. package/dist/component/systemd-C-VULMOV.js +9 -0
  585. package/dist/component/systemd-DPQeba_a.js +9 -0
  586. package/dist/component/talonscript-0iKTliWA.js +9 -0
  587. package/dist/component/talonscript-Dcq0YJ69.js +9 -0
  588. package/dist/component/tasl-CBnjmw_u.js +9 -0
  589. package/dist/component/tasl-DPTcRLbU.js +9 -0
  590. package/dist/component/tcl-B8YZq0wg.js +9 -0
  591. package/dist/component/tcl-D3IfUIUn.js +9 -0
  592. package/dist/component/templ-BWrZoBOl.js +15 -0
  593. package/dist/component/templ-CNKcDxHw.js +15 -0
  594. package/dist/component/terraform-BBGJbbOd.js +9 -0
  595. package/dist/component/terraform-CpHfbII0.js +9 -0
  596. package/dist/component/tex-Do7cxq2n.js +11 -0
  597. package/dist/component/tex-DotwMf2L.js +11 -0
  598. package/dist/component/timeline-definition-PNZ67QCA-BTzUH3cf.js +1058 -0
  599. package/dist/component/tokyo-night-50KL4qXP.js +7 -0
  600. package/dist/component/tokyo-night-CFdInRHE.js +7 -0
  601. package/dist/component/toml-BgG8u2uy.js +9 -0
  602. package/dist/component/toml-Cdrl1XDU.js +9 -0
  603. package/dist/component/ts-tags-CZ_-X2Or.js +44 -0
  604. package/dist/component/ts-tags-JQGxDVZd.js +44 -0
  605. package/dist/component/tsv-CH-Gpfzn.js +9 -0
  606. package/dist/component/tsv-DXq61Z_y.js +9 -0
  607. package/dist/component/tsx-B6WYiHjH.js +9 -0
  608. package/dist/component/tsx-BI2vzHzF.js +9 -0
  609. package/dist/component/turtle-BLh3UAZ1.js +9 -0
  610. package/dist/component/turtle-DuS0HQ9p.js +9 -0
  611. package/dist/component/twig-BA9yPOhQ.js +21 -0
  612. package/dist/component/twig-F0j_PXgJ.js +21 -0
  613. package/dist/component/typescript-Bt_Em9TU.js +9 -0
  614. package/dist/component/typescript-BxspRrVw.js +9 -0
  615. package/dist/component/typespec-CBQfkfKg.js +9 -0
  616. package/dist/component/typespec-ChsG4DJP.js +9 -0
  617. package/dist/component/typst-CLNdxZpy.js +9 -0
  618. package/dist/component/typst-rCvFF3Ml.js +9 -0
  619. package/dist/component/v-Bc8b7HcA.js +9 -0
  620. package/dist/component/v-DkBTCxRz.js +9 -0
  621. package/dist/component/vala-Bf6duLsN.js +9 -0
  622. package/dist/component/vala-D3NFAJvZ.js +9 -0
  623. package/dist/component/vb-CbCKaE0V.js +9 -0
  624. package/dist/component/vb-DoG_86dU.js +9 -0
  625. package/dist/component/vennDiagram-CIIHVFJN-CVh3weJ2.js +1560 -0
  626. package/dist/component/verilog-BsnhA3AJ.js +9 -0
  627. package/dist/component/verilog-nZodAh2g.js +9 -0
  628. package/dist/component/vesper-C9xEuBGK.js +7 -0
  629. package/dist/component/vesper-DGjNIaCs.js +7 -0
  630. package/dist/component/vhdl-D19XVLHt.js +9 -0
  631. package/dist/component/vhdl-mXcQB2Fg.js +9 -0
  632. package/dist/component/viml-8k_5DKNK.js +9 -0
  633. package/dist/component/viml-COJbZm0U.js +9 -0
  634. package/dist/component/vitesse-black-Bct4R3m4.js +7 -0
  635. package/dist/component/vitesse-black-heVxAgDf.js +7 -0
  636. package/dist/component/vitesse-dark-DdWh6SFL.js +7 -0
  637. package/dist/component/vitesse-dark-DiXBkaTo.js +7 -0
  638. package/dist/component/vitesse-light-CerMU32A.js +7 -0
  639. package/dist/component/vitesse-light-Eee3KZAP.js +7 -0
  640. package/dist/component/vue-DjB6jmJ7.js +34 -0
  641. package/dist/component/vue-YqIdEku3.js +34 -0
  642. package/dist/component/vue-html-BkvRG1qx.js +11 -0
  643. package/dist/component/vue-html-CXFz0iVx.js +11 -0
  644. package/dist/component/vue-vine-CFD4nsF4.js +21 -0
  645. package/dist/component/vue-vine-lE-jUeB6.js +21 -0
  646. package/dist/component/vyper-DTCkLS2f.js +9 -0
  647. package/dist/component/vyper-_vSvOdCD.js +9 -0
  648. package/dist/component/wardley-L42UT6IY-HA1eSIS_.js +23141 -0
  649. package/dist/component/wardleyDiagram-YWT4CUSO-Uu5KXQum.js +681 -0
  650. package/dist/component/wasm-BEUtLzBq.js +10 -0
  651. package/dist/component/wasm-Bw9k5bmy.js +9 -0
  652. package/dist/component/wasm-NiufRxKC.js +9 -0
  653. package/dist/component/wasm-rA9i46L9.js +10 -0
  654. package/dist/component/wenyan-BAnK6VvJ.js +9 -0
  655. package/dist/component/wenyan-EBJbIPqf.js +9 -0
  656. package/dist/component/wgsl-B9MSpOv3.js +9 -0
  657. package/dist/component/wgsl-Dlg8zdV4.js +9 -0
  658. package/dist/component/wikitext-C8AvgBS7.js +9 -0
  659. package/dist/component/wikitext-sNd9wc1e.js +9 -0
  660. package/dist/component/wit-BM4EHoLb.js +9 -0
  661. package/dist/component/wit-BUXWAgVD.js +9 -0
  662. package/dist/component/wolfram-Ba-Qm5eW.js +9 -0
  663. package/dist/component/wolfram-CKRVXwGa.js +9 -0
  664. package/dist/component/xml-CE4MTCb-.js +11 -0
  665. package/dist/component/xml-DXvCmeFI.js +11 -0
  666. package/dist/component/xsl-BrFD-9o5.js +11 -0
  667. package/dist/component/xsl-CHBQO4kd.js +11 -0
  668. package/dist/component/xychartDiagram-2RQKCTM6-IkxwUbCF.js +1375 -0
  669. package/dist/component/yaml-CF4mYNnF.js +9 -0
  670. package/dist/component/yaml-XzfbPk1C.js +9 -0
  671. package/dist/component/zenscript-C0pvNsdh.js +9 -0
  672. package/dist/component/zenscript-xkkNgCqg.js +9 -0
  673. package/dist/component/zig-Bz6GLPWH.js +9 -0
  674. package/dist/component/zig-oixaTxav.js +9 -0
  675. package/dist/components/ai-elements/attachments.d.ts +54 -0
  676. package/dist/components/ai-elements/code-block.d.ts +46 -0
  677. package/dist/components/ai-elements/conversation.d.ts +23 -0
  678. package/dist/components/ai-elements/copy-button.d.ts +6 -0
  679. package/dist/components/ai-elements/file-tree.d.ts +26 -0
  680. package/dist/components/ai-elements/link-safety-modal.d.ts +8 -0
  681. package/dist/components/ai-elements/message.d.ts +38 -0
  682. package/dist/components/ai-elements/plan.d.ts +25 -0
  683. package/dist/components/ai-elements/prompt-input.d.ts +158 -0
  684. package/dist/components/ai-elements/reasoning.d.ts +26 -0
  685. package/dist/components/ai-elements/shell-highlight.d.ts +3 -0
  686. package/dist/components/ai-elements/shimmer.d.ts +9 -0
  687. package/dist/components/ai-elements/suggestion.d.ts +10 -0
  688. package/dist/components/ai-elements/task.d.ts +14 -0
  689. package/dist/components/ai-elements/terminal-task.d.ts +5 -0
  690. package/dist/components/ai-elements/tool.d.ts +31 -0
  691. package/dist/components/embed/AgentGrantCard.d.ts +25 -0
  692. package/dist/components/embed/AtMentionMenu.d.ts +13 -0
  693. package/dist/components/embed/BelongMark.d.ts +4 -0
  694. package/dist/components/embed/BrandMark.d.ts +11 -0
  695. package/dist/components/embed/CapabilityHints.d.ts +1 -0
  696. package/dist/components/embed/ComposerMenu.d.ts +36 -0
  697. package/dist/components/embed/CsvTable.d.ts +10 -0
  698. package/dist/components/embed/EmbedAvatar.d.ts +35 -0
  699. package/dist/components/embed/EmbedComposer.d.ts +31 -0
  700. package/dist/components/embed/EmbedConversation.d.ts +31 -0
  701. package/dist/components/embed/EmbedFiles.d.ts +28 -0
  702. package/dist/components/embed/EmbedHeader.d.ts +11 -0
  703. package/dist/components/embed/EmbedLogin.d.ts +11 -0
  704. package/dist/components/embed/EmbedRail.d.ts +49 -0
  705. package/dist/components/embed/EmbedSessions.d.ts +23 -0
  706. package/dist/components/embed/FilePreview.d.ts +12 -0
  707. package/dist/components/embed/FilePreviewDialog.d.ts +19 -0
  708. package/dist/components/embed/MentionInput.d.ts +23 -0
  709. package/dist/components/embed/MentionPill.d.ts +25 -0
  710. package/dist/components/embed/OnboardingOverlay.d.ts +21 -0
  711. package/dist/components/embed/OnboardingTour.d.ts +24 -0
  712. package/dist/components/embed/OnboardingWelcome.d.ts +23 -0
  713. package/dist/components/embed/PlanCue.d.ts +9 -0
  714. package/dist/components/embed/PlanPanel.d.ts +13 -0
  715. package/dist/components/embed/PlanView.d.ts +16 -0
  716. package/dist/components/embed/PoweredByBelong.d.ts +7 -0
  717. package/dist/components/embed/PreviewContent.d.ts +26 -0
  718. package/dist/components/embed/PreviewPanel.d.ts +17 -0
  719. package/dist/components/embed/ProgressRing.d.ts +13 -0
  720. package/dist/components/embed/SlashCommandMenu.d.ts +13 -0
  721. package/dist/components/embed/UploadedFiles.d.ts +9 -0
  722. package/dist/components/embed/UsageMeter.d.ts +9 -0
  723. package/dist/components/embed/WelcomeIntro.d.ts +10 -0
  724. package/dist/components/embed/WorkspaceTree.d.ts +22 -0
  725. package/dist/components/embed/__plan-test-utils__.d.ts +13 -0
  726. package/dist/components/embed/dev-runtime-bar.d.ts +21 -0
  727. package/dist/components/embed/embed-composer.fixtures.d.ts +3 -0
  728. package/dist/components/embed/embed-rail.fixtures.d.ts +3 -0
  729. package/dist/components/embed/file-preview-kind.d.ts +7 -0
  730. package/dist/components/embed/onboarding-story-dock.d.ts +20 -0
  731. package/dist/components/embed/onboarding.fixtures.d.ts +9 -0
  732. package/dist/components/embed/parse-csv.d.ts +10 -0
  733. package/dist/components/embed/preview-content-kind.d.ts +15 -0
  734. package/dist/components/embed/use-panel-resize.d.ts +4 -0
  735. package/dist/components/embed/use-preview-bytes.d.ts +39 -0
  736. package/dist/components/feedback/feedback-metadata.d.ts +37 -0
  737. package/dist/components/feedback/message-feedback.d.ts +9 -0
  738. package/dist/components/ui/accordion.d.ts +7 -0
  739. package/dist/components/ui/alert.d.ts +9 -0
  740. package/dist/components/ui/avatar.d.ts +11 -0
  741. package/dist/components/ui/badge.d.ts +9 -0
  742. package/dist/components/ui/button-group.d.ts +11 -0
  743. package/dist/components/ui/button.d.ts +10 -0
  744. package/dist/components/ui/card.d.ts +9 -0
  745. package/dist/components/ui/carousel.d.ts +19 -0
  746. package/dist/components/ui/checkbox.d.ts +4 -0
  747. package/dist/components/ui/collapsible.d.ts +5 -0
  748. package/dist/components/ui/command.d.ts +18 -0
  749. package/dist/components/ui/dialog.d.ts +17 -0
  750. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  751. package/dist/components/ui/hover-card.d.ts +6 -0
  752. package/dist/components/ui/input-group.d.ts +16 -0
  753. package/dist/components/ui/input.d.ts +3 -0
  754. package/dist/components/ui/popover.d.ts +10 -0
  755. package/dist/components/ui/progress.d.ts +4 -0
  756. package/dist/components/ui/radio-group.d.ts +5 -0
  757. package/dist/components/ui/scroll-area.d.ts +5 -0
  758. package/dist/components/ui/select.d.ts +15 -0
  759. package/dist/components/ui/separator.d.ts +4 -0
  760. package/dist/components/ui/spinner.d.ts +2 -0
  761. package/dist/components/ui/switch.d.ts +6 -0
  762. package/dist/components/ui/tabs.d.ts +11 -0
  763. package/dist/components/ui/textarea.d.ts +3 -0
  764. package/dist/components/ui/tooltip.d.ts +7 -0
  765. package/dist/dev-main.d.ts +0 -0
  766. package/dist/embed/agent-grant-refresh.d.ts +37 -0
  767. package/dist/embed/at-mentions.d.ts +80 -0
  768. package/dist/embed/auth0-refresh.d.ts +78 -0
  769. package/dist/embed/auto-embed.d.ts +19 -0
  770. package/dist/embed/bootstrap.d.ts +10 -0
  771. package/dist/embed/brand-marks.d.ts +11 -0
  772. package/dist/embed/build-info.d.ts +30 -0
  773. package/dist/embed/build-version.d.ts +28 -0
  774. package/dist/embed/chat-mode.d.ts +46 -0
  775. package/dist/embed/composer-focus.d.ts +14 -0
  776. package/dist/embed/copy.d.ts +84 -0
  777. package/dist/embed/custom-css.d.ts +2 -0
  778. package/dist/embed/debug-overrides.d.ts +11 -0
  779. package/dist/embed/dev-mode.d.ts +56 -0
  780. package/dist/embed/dock-layout.d.ts +30 -0
  781. package/dist/embed/dock-state.d.ts +32 -0
  782. package/dist/embed/download-url.d.ts +9 -0
  783. package/dist/embed/file-type-icon.d.ts +29 -0
  784. package/dist/embed/format-bytes.d.ts +2 -0
  785. package/dist/embed/global.d.ts +79 -0
  786. package/dist/embed/locale.d.ts +18 -0
  787. package/dist/embed/logo.d.ts +1 -0
  788. package/dist/embed/mic-press.d.ts +27 -0
  789. package/dist/embed/onboarding-prefs.d.ts +52 -0
  790. package/dist/embed/onboarding-steps.d.ts +27 -0
  791. package/dist/embed/onboarding-store.d.ts +39 -0
  792. package/dist/embed/plan-auto-open.d.ts +8 -0
  793. package/dist/embed/plan-decision.d.ts +10 -0
  794. package/dist/embed/plan-intent.d.ts +17 -0
  795. package/dist/embed/portal-container.d.ts +23 -0
  796. package/dist/embed/presets.d.ts +29 -0
  797. package/dist/embed/session-record.d.ts +16 -0
  798. package/dist/embed/shadow-mount.d.ts +37 -0
  799. package/dist/embed/slash-commands.d.ts +49 -0
  800. package/dist/embed/theme.d.ts +40 -0
  801. package/dist/embed/universe-origin.d.ts +24 -0
  802. package/dist/embed/use-workspace-file-download.d.ts +16 -0
  803. package/dist/embed/voice/audio-forwarder.worklet.d.ts +22 -0
  804. package/dist/embed/voice/audio-utils.d.ts +38 -0
  805. package/dist/embed/voice/deepgram-stt.d.ts +69 -0
  806. package/dist/embed/voice/mic-capture.d.ts +34 -0
  807. package/dist/embed/voice/sentence-split.d.ts +11 -0
  808. package/dist/embed/voice/voice-http.d.ts +8 -0
  809. package/dist/embed/voice/voice-token.d.ts +40 -0
  810. package/dist/embed/voice-bus.d.ts +75 -0
  811. package/dist/embed/voice-config.d.ts +52 -0
  812. package/dist/embed/voice-fillers.d.ts +2 -0
  813. package/dist/embed/voice-prefs.d.ts +55 -0
  814. package/dist/embed/voice-tts.d.ts +101 -0
  815. package/dist/embed/workspace-paths.d.ts +9 -0
  816. package/dist/infrastructure/telemetry/session-span-processor.d.ts +11 -0
  817. package/dist/infrastructure/telemetry/web-sdk.d.ts +29 -0
  818. package/dist/lib/belong.d.ts +12 -0
  819. package/dist/lib/tab-leadership.d.ts +46 -0
  820. package/dist/lib/use-tab-leadership.d.ts +8 -0
  821. package/dist/lib/utils.d.ts +9 -0
  822. package/dist/public-api.d.ts +3 -0
  823. package/dist/routes/chat-attachment-chip.d.ts +9 -0
  824. package/dist/routes/chat.d.ts +29 -0
  825. package/dist/routes/documents.d.ts +16 -0
  826. package/dist/routes/files.d.ts +14 -0
  827. package/dist/routes/sample-artifact.d.ts +7 -0
  828. package/dist/routes/sessions.d.ts +4 -0
  829. package/dist/routes/static-chat-fixture.d.ts +26 -0
  830. package/dist/stream/ai-sdk-part-renderers.d.ts +66 -0
  831. package/dist/stream/belong-chat-transport.d.ts +679 -0
  832. package/dist/stream/belong-data-parts.d.ts +207 -0
  833. package/dist/stream/chat-upload.d.ts +35 -0
  834. package/dist/stream/plan-panel-store.d.ts +11 -0
  835. package/dist/stream/plan-progress-store.d.ts +4 -0
  836. package/dist/stream/plan-progress.d.ts +25 -0
  837. package/dist/stream/plan-store.d.ts +16 -0
  838. package/dist/stream/preview-panel-store.d.ts +50 -0
  839. package/dist/stream/sandbox-output.d.ts +32 -0
  840. package/dist/stream/select-latest-plan.d.ts +17 -0
  841. package/dist/stream/select-session-usage.d.ts +23 -0
  842. package/dist/stream/session-title.d.ts +15 -0
  843. package/dist/stream/stream-state-store.d.ts +67 -0
  844. package/dist/stream/tool-io.d.ts +7 -0
  845. package/dist/test/render.d.ts +23 -0
  846. package/dist/test-setup.d.ts +1 -0
  847. package/dist/types/public.d.ts +189 -0
  848. package/package.json +38 -0
@@ -0,0 +1,2611 @@
1
+ import { b7 as lt, _ as V, l as k, d as gt } from "./mermaid-GHXKKRXX-C5Y3BZXR.js";
2
+ import { c as tt } from "./cytoscape.esm-C31R6JOv.js";
3
+ globalThis.process = globalThis.process || { env: {} };
4
+ globalThis.global = globalThis.global || globalThis;
5
+ var Z = { exports: {} }, $ = { exports: {} }, Q = { exports: {} }, ut = Q.exports, j;
6
+ function ft() {
7
+ return j || (j = 1, (function(G, b) {
8
+ (function(I, L) {
9
+ G.exports = L();
10
+ })(ut, function() {
11
+ return (
12
+ /******/
13
+ (function(N) {
14
+ var I = {};
15
+ function L(o) {
16
+ if (I[o])
17
+ return I[o].exports;
18
+ var e = I[o] = {
19
+ /******/
20
+ i: o,
21
+ /******/
22
+ l: !1,
23
+ /******/
24
+ exports: {}
25
+ /******/
26
+ };
27
+ return N[o].call(e.exports, e, e.exports, L), e.l = !0, e.exports;
28
+ }
29
+ return L.m = N, L.c = I, L.i = function(o) {
30
+ return o;
31
+ }, L.d = function(o, e, t) {
32
+ L.o(o, e) || Object.defineProperty(o, e, {
33
+ /******/
34
+ configurable: !1,
35
+ /******/
36
+ enumerable: !0,
37
+ /******/
38
+ get: t
39
+ /******/
40
+ });
41
+ }, L.n = function(o) {
42
+ var e = o && o.__esModule ? (
43
+ /******/
44
+ function() {
45
+ return o.default;
46
+ }
47
+ ) : (
48
+ /******/
49
+ function() {
50
+ return o;
51
+ }
52
+ );
53
+ return L.d(e, "a", e), e;
54
+ }, L.o = function(o, e) {
55
+ return Object.prototype.hasOwnProperty.call(o, e);
56
+ }, L.p = "", L(L.s = 26);
57
+ })([
58
+ /* 0 */
59
+ /***/
60
+ (function(N, I, L) {
61
+ function o() {
62
+ }
63
+ o.QUALITY = 1, o.DEFAULT_CREATE_BENDS_AS_NEEDED = !1, o.DEFAULT_INCREMENTAL = !1, o.DEFAULT_ANIMATION_ON_LAYOUT = !0, o.DEFAULT_ANIMATION_DURING_LAYOUT = !1, o.DEFAULT_ANIMATION_PERIOD = 50, o.DEFAULT_UNIFORM_LEAF_NODE_SIZES = !1, o.DEFAULT_GRAPH_MARGIN = 15, o.NODE_DIMENSIONS_INCLUDE_LABELS = !1, o.SIMPLE_NODE_SIZE = 40, o.SIMPLE_NODE_HALF_SIZE = o.SIMPLE_NODE_SIZE / 2, o.EMPTY_COMPOUND_NODE_SIZE = 40, o.MIN_EDGE_LENGTH = 1, o.WORLD_BOUNDARY = 1e6, o.INITIAL_WORLD_BOUNDARY = o.WORLD_BOUNDARY / 1e3, o.WORLD_CENTER_X = 1200, o.WORLD_CENTER_Y = 900, N.exports = o;
64
+ }),
65
+ /* 1 */
66
+ /***/
67
+ (function(N, I, L) {
68
+ var o = L(2), e = L(8), t = L(9);
69
+ function i(g, n, d) {
70
+ o.call(this, d), this.isOverlapingSourceAndTarget = !1, this.vGraphObject = d, this.bendpoints = [], this.source = g, this.target = n;
71
+ }
72
+ i.prototype = Object.create(o.prototype);
73
+ for (var l in o)
74
+ i[l] = o[l];
75
+ i.prototype.getSource = function() {
76
+ return this.source;
77
+ }, i.prototype.getTarget = function() {
78
+ return this.target;
79
+ }, i.prototype.isInterGraph = function() {
80
+ return this.isInterGraph;
81
+ }, i.prototype.getLength = function() {
82
+ return this.length;
83
+ }, i.prototype.isOverlapingSourceAndTarget = function() {
84
+ return this.isOverlapingSourceAndTarget;
85
+ }, i.prototype.getBendpoints = function() {
86
+ return this.bendpoints;
87
+ }, i.prototype.getLca = function() {
88
+ return this.lca;
89
+ }, i.prototype.getSourceInLca = function() {
90
+ return this.sourceInLca;
91
+ }, i.prototype.getTargetInLca = function() {
92
+ return this.targetInLca;
93
+ }, i.prototype.getOtherEnd = function(g) {
94
+ if (this.source === g)
95
+ return this.target;
96
+ if (this.target === g)
97
+ return this.source;
98
+ throw "Node is not incident with this edge";
99
+ }, i.prototype.getOtherEndInGraph = function(g, n) {
100
+ for (var d = this.getOtherEnd(g), r = n.getGraphManager().getRoot(); ; ) {
101
+ if (d.getOwner() == n)
102
+ return d;
103
+ if (d.getOwner() == r)
104
+ break;
105
+ d = d.getOwner().getParent();
106
+ }
107
+ return null;
108
+ }, i.prototype.updateLength = function() {
109
+ var g = new Array(4);
110
+ this.isOverlapingSourceAndTarget = e.getIntersection(this.target.getRect(), this.source.getRect(), g), this.isOverlapingSourceAndTarget || (this.lengthX = g[0] - g[2], this.lengthY = g[1] - g[3], Math.abs(this.lengthX) < 1 && (this.lengthX = t.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = t.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY));
111
+ }, i.prototype.updateLengthSimple = function() {
112
+ this.lengthX = this.target.getCenterX() - this.source.getCenterX(), this.lengthY = this.target.getCenterY() - this.source.getCenterY(), Math.abs(this.lengthX) < 1 && (this.lengthX = t.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = t.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY);
113
+ }, N.exports = i;
114
+ }),
115
+ /* 2 */
116
+ /***/
117
+ (function(N, I, L) {
118
+ function o(e) {
119
+ this.vGraphObject = e;
120
+ }
121
+ N.exports = o;
122
+ }),
123
+ /* 3 */
124
+ /***/
125
+ (function(N, I, L) {
126
+ var o = L(2), e = L(10), t = L(13), i = L(0), l = L(16), g = L(4);
127
+ function n(r, h, a, p) {
128
+ a == null && p == null && (p = h), o.call(this, p), r.graphManager != null && (r = r.graphManager), this.estimatedSize = e.MIN_VALUE, this.inclusionTreeDepth = e.MAX_VALUE, this.vGraphObject = p, this.edges = [], this.graphManager = r, a != null && h != null ? this.rect = new t(h.x, h.y, a.width, a.height) : this.rect = new t();
129
+ }
130
+ n.prototype = Object.create(o.prototype);
131
+ for (var d in o)
132
+ n[d] = o[d];
133
+ n.prototype.getEdges = function() {
134
+ return this.edges;
135
+ }, n.prototype.getChild = function() {
136
+ return this.child;
137
+ }, n.prototype.getOwner = function() {
138
+ return this.owner;
139
+ }, n.prototype.getWidth = function() {
140
+ return this.rect.width;
141
+ }, n.prototype.setWidth = function(r) {
142
+ this.rect.width = r;
143
+ }, n.prototype.getHeight = function() {
144
+ return this.rect.height;
145
+ }, n.prototype.setHeight = function(r) {
146
+ this.rect.height = r;
147
+ }, n.prototype.getCenterX = function() {
148
+ return this.rect.x + this.rect.width / 2;
149
+ }, n.prototype.getCenterY = function() {
150
+ return this.rect.y + this.rect.height / 2;
151
+ }, n.prototype.getCenter = function() {
152
+ return new g(this.rect.x + this.rect.width / 2, this.rect.y + this.rect.height / 2);
153
+ }, n.prototype.getLocation = function() {
154
+ return new g(this.rect.x, this.rect.y);
155
+ }, n.prototype.getRect = function() {
156
+ return this.rect;
157
+ }, n.prototype.getDiagonal = function() {
158
+ return Math.sqrt(this.rect.width * this.rect.width + this.rect.height * this.rect.height);
159
+ }, n.prototype.getHalfTheDiagonal = function() {
160
+ return Math.sqrt(this.rect.height * this.rect.height + this.rect.width * this.rect.width) / 2;
161
+ }, n.prototype.setRect = function(r, h) {
162
+ this.rect.x = r.x, this.rect.y = r.y, this.rect.width = h.width, this.rect.height = h.height;
163
+ }, n.prototype.setCenter = function(r, h) {
164
+ this.rect.x = r - this.rect.width / 2, this.rect.y = h - this.rect.height / 2;
165
+ }, n.prototype.setLocation = function(r, h) {
166
+ this.rect.x = r, this.rect.y = h;
167
+ }, n.prototype.moveBy = function(r, h) {
168
+ this.rect.x += r, this.rect.y += h;
169
+ }, n.prototype.getEdgeListToNode = function(r) {
170
+ var h = [], a = this;
171
+ return a.edges.forEach(function(p) {
172
+ if (p.target == r) {
173
+ if (p.source != a) throw "Incorrect edge source!";
174
+ h.push(p);
175
+ }
176
+ }), h;
177
+ }, n.prototype.getEdgesBetween = function(r) {
178
+ var h = [], a = this;
179
+ return a.edges.forEach(function(p) {
180
+ if (!(p.source == a || p.target == a)) throw "Incorrect edge source and/or target";
181
+ (p.target == r || p.source == r) && h.push(p);
182
+ }), h;
183
+ }, n.prototype.getNeighborsList = function() {
184
+ var r = /* @__PURE__ */ new Set(), h = this;
185
+ return h.edges.forEach(function(a) {
186
+ if (a.source == h)
187
+ r.add(a.target);
188
+ else {
189
+ if (a.target != h)
190
+ throw "Incorrect incidency!";
191
+ r.add(a.source);
192
+ }
193
+ }), r;
194
+ }, n.prototype.withChildren = function() {
195
+ var r = /* @__PURE__ */ new Set(), h, a;
196
+ if (r.add(this), this.child != null)
197
+ for (var p = this.child.getNodes(), v = 0; v < p.length; v++)
198
+ h = p[v], a = h.withChildren(), a.forEach(function(D) {
199
+ r.add(D);
200
+ });
201
+ return r;
202
+ }, n.prototype.getNoOfChildren = function() {
203
+ var r = 0, h;
204
+ if (this.child == null)
205
+ r = 1;
206
+ else
207
+ for (var a = this.child.getNodes(), p = 0; p < a.length; p++)
208
+ h = a[p], r += h.getNoOfChildren();
209
+ return r == 0 && (r = 1), r;
210
+ }, n.prototype.getEstimatedSize = function() {
211
+ if (this.estimatedSize == e.MIN_VALUE)
212
+ throw "assert failed";
213
+ return this.estimatedSize;
214
+ }, n.prototype.calcEstimatedSize = function() {
215
+ 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);
216
+ }, n.prototype.scatter = function() {
217
+ var r, h, a = -i.INITIAL_WORLD_BOUNDARY, p = i.INITIAL_WORLD_BOUNDARY;
218
+ r = i.WORLD_CENTER_X + l.nextDouble() * (p - a) + a;
219
+ var v = -i.INITIAL_WORLD_BOUNDARY, D = i.INITIAL_WORLD_BOUNDARY;
220
+ h = i.WORLD_CENTER_Y + l.nextDouble() * (D - v) + v, this.rect.x = r, this.rect.y = h;
221
+ }, n.prototype.updateBounds = function() {
222
+ if (this.getChild() == null)
223
+ throw "assert failed";
224
+ if (this.getChild().getNodes().length != 0) {
225
+ var r = this.getChild();
226
+ if (r.updateBounds(!0), this.rect.x = r.getLeft(), this.rect.y = r.getTop(), this.setWidth(r.getRight() - r.getLeft()), this.setHeight(r.getBottom() - r.getTop()), i.NODE_DIMENSIONS_INCLUDE_LABELS) {
227
+ var h = r.getRight() - r.getLeft(), a = r.getBottom() - r.getTop();
228
+ this.labelWidth > h && (this.rect.x -= (this.labelWidth - h) / 2, this.setWidth(this.labelWidth)), this.labelHeight > a && (this.labelPos == "center" ? this.rect.y -= (this.labelHeight - a) / 2 : this.labelPos == "top" && (this.rect.y -= this.labelHeight - a), this.setHeight(this.labelHeight));
229
+ }
230
+ }
231
+ }, n.prototype.getInclusionTreeDepth = function() {
232
+ if (this.inclusionTreeDepth == e.MAX_VALUE)
233
+ throw "assert failed";
234
+ return this.inclusionTreeDepth;
235
+ }, n.prototype.transform = function(r) {
236
+ var h = this.rect.x;
237
+ h > i.WORLD_BOUNDARY ? h = i.WORLD_BOUNDARY : h < -i.WORLD_BOUNDARY && (h = -i.WORLD_BOUNDARY);
238
+ var a = this.rect.y;
239
+ a > i.WORLD_BOUNDARY ? a = i.WORLD_BOUNDARY : a < -i.WORLD_BOUNDARY && (a = -i.WORLD_BOUNDARY);
240
+ var p = new g(h, a), v = r.inverseTransformPoint(p);
241
+ this.setLocation(v.x, v.y);
242
+ }, n.prototype.getLeft = function() {
243
+ return this.rect.x;
244
+ }, n.prototype.getRight = function() {
245
+ return this.rect.x + this.rect.width;
246
+ }, n.prototype.getTop = function() {
247
+ return this.rect.y;
248
+ }, n.prototype.getBottom = function() {
249
+ return this.rect.y + this.rect.height;
250
+ }, n.prototype.getParent = function() {
251
+ return this.owner == null ? null : this.owner.getParent();
252
+ }, N.exports = n;
253
+ }),
254
+ /* 4 */
255
+ /***/
256
+ (function(N, I, L) {
257
+ function o(e, t) {
258
+ e == null && t == null ? (this.x = 0, this.y = 0) : (this.x = e, this.y = t);
259
+ }
260
+ o.prototype.getX = function() {
261
+ return this.x;
262
+ }, o.prototype.getY = function() {
263
+ return this.y;
264
+ }, o.prototype.setX = function(e) {
265
+ this.x = e;
266
+ }, o.prototype.setY = function(e) {
267
+ this.y = e;
268
+ }, o.prototype.getDifference = function(e) {
269
+ return new DimensionD(this.x - e.x, this.y - e.y);
270
+ }, o.prototype.getCopy = function() {
271
+ return new o(this.x, this.y);
272
+ }, o.prototype.translate = function(e) {
273
+ return this.x += e.width, this.y += e.height, this;
274
+ }, N.exports = o;
275
+ }),
276
+ /* 5 */
277
+ /***/
278
+ (function(N, I, L) {
279
+ var o = L(2), e = L(10), t = L(0), i = L(6), l = L(3), g = L(1), n = L(13), d = L(12), r = L(11);
280
+ function h(p, v, D) {
281
+ o.call(this, D), this.estimatedSize = e.MIN_VALUE, this.margin = t.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = !1, this.parent = p, v != null && v instanceof i ? this.graphManager = v : v != null && v instanceof Layout && (this.graphManager = v.graphManager);
282
+ }
283
+ h.prototype = Object.create(o.prototype);
284
+ for (var a in o)
285
+ h[a] = o[a];
286
+ h.prototype.getNodes = function() {
287
+ return this.nodes;
288
+ }, h.prototype.getEdges = function() {
289
+ return this.edges;
290
+ }, h.prototype.getGraphManager = function() {
291
+ return this.graphManager;
292
+ }, h.prototype.getParent = function() {
293
+ return this.parent;
294
+ }, h.prototype.getLeft = function() {
295
+ return this.left;
296
+ }, h.prototype.getRight = function() {
297
+ return this.right;
298
+ }, h.prototype.getTop = function() {
299
+ return this.top;
300
+ }, h.prototype.getBottom = function() {
301
+ return this.bottom;
302
+ }, h.prototype.isConnected = function() {
303
+ return this.isConnected;
304
+ }, h.prototype.add = function(p, v, D) {
305
+ if (v == null && D == null) {
306
+ var u = p;
307
+ if (this.graphManager == null)
308
+ throw "Graph has no graph mgr!";
309
+ if (this.getNodes().indexOf(u) > -1)
310
+ throw "Node already in graph!";
311
+ return u.owner = this, this.getNodes().push(u), u;
312
+ } else {
313
+ var T = p;
314
+ if (!(this.getNodes().indexOf(v) > -1 && this.getNodes().indexOf(D) > -1))
315
+ throw "Source or target not in graph!";
316
+ if (!(v.owner == D.owner && v.owner == this))
317
+ throw "Both owners must be this graph!";
318
+ return v.owner != D.owner ? null : (T.source = v, T.target = D, T.isInterGraph = !1, this.getEdges().push(T), v.edges.push(T), D != v && D.edges.push(T), T);
319
+ }
320
+ }, h.prototype.remove = function(p) {
321
+ var v = p;
322
+ if (p instanceof l) {
323
+ if (v == null)
324
+ throw "Node is null!";
325
+ if (!(v.owner != null && v.owner == this))
326
+ throw "Owner graph is invalid!";
327
+ if (this.graphManager == null)
328
+ throw "Owner graph manager is invalid!";
329
+ for (var D = v.edges.slice(), u, T = D.length, y = 0; y < T; y++)
330
+ u = D[y], u.isInterGraph ? this.graphManager.remove(u) : u.source.owner.remove(u);
331
+ var O = this.nodes.indexOf(v);
332
+ if (O == -1)
333
+ throw "Node not in owner node list!";
334
+ this.nodes.splice(O, 1);
335
+ } else if (p instanceof g) {
336
+ var u = p;
337
+ if (u == null)
338
+ throw "Edge is null!";
339
+ if (!(u.source != null && u.target != null))
340
+ throw "Source and/or target is null!";
341
+ if (!(u.source.owner != null && u.target.owner != null && u.source.owner == this && u.target.owner == this))
342
+ throw "Source and/or target owner is invalid!";
343
+ var s = u.source.edges.indexOf(u), f = u.target.edges.indexOf(u);
344
+ if (!(s > -1 && f > -1))
345
+ throw "Source and/or target doesn't know this edge!";
346
+ u.source.edges.splice(s, 1), u.target != u.source && u.target.edges.splice(f, 1);
347
+ var O = u.source.owner.getEdges().indexOf(u);
348
+ if (O == -1)
349
+ throw "Not in owner's edge list!";
350
+ u.source.owner.getEdges().splice(O, 1);
351
+ }
352
+ }, h.prototype.updateLeftTop = function() {
353
+ for (var p = e.MAX_VALUE, v = e.MAX_VALUE, D, u, T, y = this.getNodes(), O = y.length, s = 0; s < O; s++) {
354
+ var f = y[s];
355
+ D = f.getTop(), u = f.getLeft(), p > D && (p = D), v > u && (v = u);
356
+ }
357
+ return p == e.MAX_VALUE ? null : (y[0].getParent().paddingLeft != null ? T = y[0].getParent().paddingLeft : T = this.margin, this.left = v - T, this.top = p - T, new d(this.left, this.top));
358
+ }, h.prototype.updateBounds = function(p) {
359
+ for (var v = e.MAX_VALUE, D = -e.MAX_VALUE, u = e.MAX_VALUE, T = -e.MAX_VALUE, y, O, s, f, c, E = this.nodes, A = E.length, m = 0; m < A; m++) {
360
+ var C = E[m];
361
+ p && C.child != null && C.updateBounds(), y = C.getLeft(), O = C.getRight(), s = C.getTop(), f = C.getBottom(), v > y && (v = y), D < O && (D = O), u > s && (u = s), T < f && (T = f);
362
+ }
363
+ var R = new n(v, u, D - v, T - u);
364
+ v == e.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), E[0].getParent().paddingLeft != null ? c = E[0].getParent().paddingLeft : c = this.margin, this.left = R.x - c, this.right = R.x + R.width + c, this.top = R.y - c, this.bottom = R.y + R.height + c;
365
+ }, h.calculateBounds = function(p) {
366
+ for (var v = e.MAX_VALUE, D = -e.MAX_VALUE, u = e.MAX_VALUE, T = -e.MAX_VALUE, y, O, s, f, c = p.length, E = 0; E < c; E++) {
367
+ var A = p[E];
368
+ y = A.getLeft(), O = A.getRight(), s = A.getTop(), f = A.getBottom(), v > y && (v = y), D < O && (D = O), u > s && (u = s), T < f && (T = f);
369
+ }
370
+ var m = new n(v, u, D - v, T - u);
371
+ return m;
372
+ }, h.prototype.getInclusionTreeDepth = function() {
373
+ return this == this.graphManager.getRoot() ? 1 : this.parent.getInclusionTreeDepth();
374
+ }, h.prototype.getEstimatedSize = function() {
375
+ if (this.estimatedSize == e.MIN_VALUE)
376
+ throw "assert failed";
377
+ return this.estimatedSize;
378
+ }, h.prototype.calcEstimatedSize = function() {
379
+ for (var p = 0, v = this.nodes, D = v.length, u = 0; u < D; u++) {
380
+ var T = v[u];
381
+ p += T.calcEstimatedSize();
382
+ }
383
+ return p == 0 ? this.estimatedSize = t.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = p / Math.sqrt(this.nodes.length), this.estimatedSize;
384
+ }, h.prototype.updateConnected = function() {
385
+ var p = this;
386
+ if (this.nodes.length == 0) {
387
+ this.isConnected = !0;
388
+ return;
389
+ }
390
+ var v = new r(), D = /* @__PURE__ */ new Set(), u = this.nodes[0], T, y, O = u.withChildren();
391
+ for (O.forEach(function(m) {
392
+ v.push(m), D.add(m);
393
+ }); v.length !== 0; ) {
394
+ u = v.shift(), T = u.getEdges();
395
+ for (var s = T.length, f = 0; f < s; f++) {
396
+ var c = T[f];
397
+ if (y = c.getOtherEndInGraph(u, this), y != null && !D.has(y)) {
398
+ var E = y.withChildren();
399
+ E.forEach(function(m) {
400
+ v.push(m), D.add(m);
401
+ });
402
+ }
403
+ }
404
+ }
405
+ if (this.isConnected = !1, D.size >= this.nodes.length) {
406
+ var A = 0;
407
+ D.forEach(function(m) {
408
+ m.owner == p && A++;
409
+ }), A == this.nodes.length && (this.isConnected = !0);
410
+ }
411
+ }, N.exports = h;
412
+ }),
413
+ /* 6 */
414
+ /***/
415
+ (function(N, I, L) {
416
+ var o, e = L(1);
417
+ function t(i) {
418
+ o = L(5), this.layout = i, this.graphs = [], this.edges = [];
419
+ }
420
+ t.prototype.addRoot = function() {
421
+ var i = this.layout.newGraph(), l = this.layout.newNode(null), g = this.add(i, l);
422
+ return this.setRootGraph(g), this.rootGraph;
423
+ }, t.prototype.add = function(i, l, g, n, d) {
424
+ if (g == null && n == null && d == null) {
425
+ if (i == null)
426
+ throw "Graph is null!";
427
+ if (l == null)
428
+ throw "Parent node is null!";
429
+ if (this.graphs.indexOf(i) > -1)
430
+ throw "Graph already in this graph mgr!";
431
+ if (this.graphs.push(i), i.parent != null)
432
+ throw "Already has a parent!";
433
+ if (l.child != null)
434
+ throw "Already has a child!";
435
+ return i.parent = l, l.child = i, i;
436
+ } else {
437
+ d = g, n = l, g = i;
438
+ var r = n.getOwner(), h = d.getOwner();
439
+ if (!(r != null && r.getGraphManager() == this))
440
+ throw "Source not in this graph mgr!";
441
+ if (!(h != null && h.getGraphManager() == this))
442
+ throw "Target not in this graph mgr!";
443
+ if (r == h)
444
+ return g.isInterGraph = !1, r.add(g, n, d);
445
+ if (g.isInterGraph = !0, g.source = n, g.target = d, this.edges.indexOf(g) > -1)
446
+ throw "Edge already in inter-graph edge list!";
447
+ if (this.edges.push(g), !(g.source != null && g.target != null))
448
+ throw "Edge source and/or target is null!";
449
+ if (!(g.source.edges.indexOf(g) == -1 && g.target.edges.indexOf(g) == -1))
450
+ throw "Edge already in source and/or target incidency list!";
451
+ return g.source.edges.push(g), g.target.edges.push(g), g;
452
+ }
453
+ }, t.prototype.remove = function(i) {
454
+ if (i instanceof o) {
455
+ var l = i;
456
+ if (l.getGraphManager() != this)
457
+ throw "Graph not in this graph mgr";
458
+ if (!(l == this.rootGraph || l.parent != null && l.parent.graphManager == this))
459
+ throw "Invalid parent node!";
460
+ var g = [];
461
+ g = g.concat(l.getEdges());
462
+ for (var n, d = g.length, r = 0; r < d; r++)
463
+ n = g[r], l.remove(n);
464
+ var h = [];
465
+ h = h.concat(l.getNodes());
466
+ var a;
467
+ d = h.length;
468
+ for (var r = 0; r < d; r++)
469
+ a = h[r], l.remove(a);
470
+ l == this.rootGraph && this.setRootGraph(null);
471
+ var p = this.graphs.indexOf(l);
472
+ this.graphs.splice(p, 1), l.parent = null;
473
+ } else if (i instanceof e) {
474
+ if (n = i, n == null)
475
+ throw "Edge is null!";
476
+ if (!n.isInterGraph)
477
+ throw "Not an inter-graph edge!";
478
+ if (!(n.source != null && n.target != null))
479
+ throw "Source and/or target is null!";
480
+ if (!(n.source.edges.indexOf(n) != -1 && n.target.edges.indexOf(n) != -1))
481
+ throw "Source and/or target doesn't know this edge!";
482
+ var p = n.source.edges.indexOf(n);
483
+ if (n.source.edges.splice(p, 1), p = n.target.edges.indexOf(n), n.target.edges.splice(p, 1), !(n.source.owner != null && n.source.owner.getGraphManager() != null))
484
+ throw "Edge owner graph or owner graph manager is null!";
485
+ if (n.source.owner.getGraphManager().edges.indexOf(n) == -1)
486
+ throw "Not in owner graph manager's edge list!";
487
+ var p = n.source.owner.getGraphManager().edges.indexOf(n);
488
+ n.source.owner.getGraphManager().edges.splice(p, 1);
489
+ }
490
+ }, t.prototype.updateBounds = function() {
491
+ this.rootGraph.updateBounds(!0);
492
+ }, t.prototype.getGraphs = function() {
493
+ return this.graphs;
494
+ }, t.prototype.getAllNodes = function() {
495
+ if (this.allNodes == null) {
496
+ for (var i = [], l = this.getGraphs(), g = l.length, n = 0; n < g; n++)
497
+ i = i.concat(l[n].getNodes());
498
+ this.allNodes = i;
499
+ }
500
+ return this.allNodes;
501
+ }, t.prototype.resetAllNodes = function() {
502
+ this.allNodes = null;
503
+ }, t.prototype.resetAllEdges = function() {
504
+ this.allEdges = null;
505
+ }, t.prototype.resetAllNodesToApplyGravitation = function() {
506
+ this.allNodesToApplyGravitation = null;
507
+ }, t.prototype.getAllEdges = function() {
508
+ if (this.allEdges == null) {
509
+ var i = [], l = this.getGraphs();
510
+ l.length;
511
+ for (var g = 0; g < l.length; g++)
512
+ i = i.concat(l[g].getEdges());
513
+ i = i.concat(this.edges), this.allEdges = i;
514
+ }
515
+ return this.allEdges;
516
+ }, t.prototype.getAllNodesToApplyGravitation = function() {
517
+ return this.allNodesToApplyGravitation;
518
+ }, t.prototype.setAllNodesToApplyGravitation = function(i) {
519
+ if (this.allNodesToApplyGravitation != null)
520
+ throw "assert failed";
521
+ this.allNodesToApplyGravitation = i;
522
+ }, t.prototype.getRoot = function() {
523
+ return this.rootGraph;
524
+ }, t.prototype.setRootGraph = function(i) {
525
+ if (i.getGraphManager() != this)
526
+ throw "Root not in this graph mgr!";
527
+ this.rootGraph = i, i.parent == null && (i.parent = this.layout.newNode("Root node"));
528
+ }, t.prototype.getLayout = function() {
529
+ return this.layout;
530
+ }, t.prototype.isOneAncestorOfOther = function(i, l) {
531
+ if (!(i != null && l != null))
532
+ throw "assert failed";
533
+ if (i == l)
534
+ return !0;
535
+ var g = i.getOwner(), n;
536
+ do {
537
+ if (n = g.getParent(), n == null)
538
+ break;
539
+ if (n == l)
540
+ return !0;
541
+ if (g = n.getOwner(), g == null)
542
+ break;
543
+ } while (!0);
544
+ g = l.getOwner();
545
+ do {
546
+ if (n = g.getParent(), n == null)
547
+ break;
548
+ if (n == i)
549
+ return !0;
550
+ if (g = n.getOwner(), g == null)
551
+ break;
552
+ } while (!0);
553
+ return !1;
554
+ }, t.prototype.calcLowestCommonAncestors = function() {
555
+ for (var i, l, g, n, d, r = this.getAllEdges(), h = r.length, a = 0; a < h; a++) {
556
+ if (i = r[a], l = i.source, g = i.target, i.lca = null, i.sourceInLca = l, i.targetInLca = g, l == g) {
557
+ i.lca = l.getOwner();
558
+ continue;
559
+ }
560
+ for (n = l.getOwner(); i.lca == null; ) {
561
+ for (i.targetInLca = g, d = g.getOwner(); i.lca == null; ) {
562
+ if (d == n) {
563
+ i.lca = d;
564
+ break;
565
+ }
566
+ if (d == this.rootGraph)
567
+ break;
568
+ if (i.lca != null)
569
+ throw "assert failed";
570
+ i.targetInLca = d.getParent(), d = i.targetInLca.getOwner();
571
+ }
572
+ if (n == this.rootGraph)
573
+ break;
574
+ i.lca == null && (i.sourceInLca = n.getParent(), n = i.sourceInLca.getOwner());
575
+ }
576
+ if (i.lca == null)
577
+ throw "assert failed";
578
+ }
579
+ }, t.prototype.calcLowestCommonAncestor = function(i, l) {
580
+ if (i == l)
581
+ return i.getOwner();
582
+ var g = i.getOwner();
583
+ do {
584
+ if (g == null)
585
+ break;
586
+ var n = l.getOwner();
587
+ do {
588
+ if (n == null)
589
+ break;
590
+ if (n == g)
591
+ return n;
592
+ n = n.getParent().getOwner();
593
+ } while (!0);
594
+ g = g.getParent().getOwner();
595
+ } while (!0);
596
+ return g;
597
+ }, t.prototype.calcInclusionTreeDepths = function(i, l) {
598
+ i == null && l == null && (i = this.rootGraph, l = 1);
599
+ for (var g, n = i.getNodes(), d = n.length, r = 0; r < d; r++)
600
+ g = n[r], g.inclusionTreeDepth = l, g.child != null && this.calcInclusionTreeDepths(g.child, l + 1);
601
+ }, t.prototype.includesInvalidEdge = function() {
602
+ for (var i, l = this.edges.length, g = 0; g < l; g++)
603
+ if (i = this.edges[g], this.isOneAncestorOfOther(i.source, i.target))
604
+ return !0;
605
+ return !1;
606
+ }, N.exports = t;
607
+ }),
608
+ /* 7 */
609
+ /***/
610
+ (function(N, I, L) {
611
+ var o = L(0);
612
+ function e() {
613
+ }
614
+ for (var t in o)
615
+ e[t] = o[t];
616
+ e.MAX_ITERATIONS = 2500, e.DEFAULT_EDGE_LENGTH = 50, e.DEFAULT_SPRING_STRENGTH = 0.45, e.DEFAULT_REPULSION_STRENGTH = 4500, e.DEFAULT_GRAVITY_STRENGTH = 0.4, e.DEFAULT_COMPOUND_GRAVITY_STRENGTH = 1, e.DEFAULT_GRAVITY_RANGE_FACTOR = 3.8, e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = 1.5, e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION = !0, e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION = !0, e.DEFAULT_COOLING_FACTOR_INCREMENTAL = 0.3, e.COOLING_ADAPTATION_FACTOR = 0.33, e.ADAPTATION_LOWER_NODE_LIMIT = 1e3, e.ADAPTATION_UPPER_NODE_LIMIT = 5e3, e.MAX_NODE_DISPLACEMENT_INCREMENTAL = 100, e.MAX_NODE_DISPLACEMENT = e.MAX_NODE_DISPLACEMENT_INCREMENTAL * 3, e.MIN_REPULSION_DIST = e.DEFAULT_EDGE_LENGTH / 10, e.CONVERGENCE_CHECK_PERIOD = 100, e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = 0.1, e.MIN_EDGE_LENGTH = 1, e.GRID_CALCULATION_CHECK_PERIOD = 10, N.exports = e;
617
+ }),
618
+ /* 8 */
619
+ /***/
620
+ (function(N, I, L) {
621
+ var o = L(12);
622
+ function e() {
623
+ }
624
+ e.calcSeparationAmount = function(t, i, l, g) {
625
+ if (!t.intersects(i))
626
+ throw "assert failed";
627
+ var n = new Array(2);
628
+ this.decideDirectionsForOverlappingNodes(t, i, n), l[0] = Math.min(t.getRight(), i.getRight()) - Math.max(t.x, i.x), l[1] = Math.min(t.getBottom(), i.getBottom()) - Math.max(t.y, i.y), t.getX() <= i.getX() && t.getRight() >= i.getRight() ? l[0] += Math.min(i.getX() - t.getX(), t.getRight() - i.getRight()) : i.getX() <= t.getX() && i.getRight() >= t.getRight() && (l[0] += Math.min(t.getX() - i.getX(), i.getRight() - t.getRight())), t.getY() <= i.getY() && t.getBottom() >= i.getBottom() ? l[1] += Math.min(i.getY() - t.getY(), t.getBottom() - i.getBottom()) : i.getY() <= t.getY() && i.getBottom() >= t.getBottom() && (l[1] += Math.min(t.getY() - i.getY(), i.getBottom() - t.getBottom()));
629
+ var d = Math.abs((i.getCenterY() - t.getCenterY()) / (i.getCenterX() - t.getCenterX()));
630
+ i.getCenterY() === t.getCenterY() && i.getCenterX() === t.getCenterX() && (d = 1);
631
+ var r = d * l[0], h = l[1] / d;
632
+ l[0] < h ? h = l[0] : r = l[1], l[0] = -1 * n[0] * (h / 2 + g), l[1] = -1 * n[1] * (r / 2 + g);
633
+ }, e.decideDirectionsForOverlappingNodes = function(t, i, l) {
634
+ t.getCenterX() < i.getCenterX() ? l[0] = -1 : l[0] = 1, t.getCenterY() < i.getCenterY() ? l[1] = -1 : l[1] = 1;
635
+ }, e.getIntersection2 = function(t, i, l) {
636
+ var g = t.getCenterX(), n = t.getCenterY(), d = i.getCenterX(), r = i.getCenterY();
637
+ if (t.intersects(i))
638
+ return l[0] = g, l[1] = n, l[2] = d, l[3] = r, !0;
639
+ var h = t.getX(), a = t.getY(), p = t.getRight(), v = t.getX(), D = t.getBottom(), u = t.getRight(), T = t.getWidthHalf(), y = t.getHeightHalf(), O = i.getX(), s = i.getY(), f = i.getRight(), c = i.getX(), E = i.getBottom(), A = i.getRight(), m = i.getWidthHalf(), C = i.getHeightHalf(), R = !1, M = !1;
640
+ if (g === d) {
641
+ if (n > r)
642
+ return l[0] = g, l[1] = a, l[2] = d, l[3] = E, !1;
643
+ if (n < r)
644
+ return l[0] = g, l[1] = D, l[2] = d, l[3] = s, !1;
645
+ } else if (n === r) {
646
+ if (g > d)
647
+ return l[0] = h, l[1] = n, l[2] = f, l[3] = r, !1;
648
+ if (g < d)
649
+ return l[0] = p, l[1] = n, l[2] = O, l[3] = r, !1;
650
+ } else {
651
+ var S = t.height / t.width, Y = i.height / i.width, w = (r - n) / (d - g), x = void 0, F = void 0, U = void 0, P = void 0, _ = void 0, X = void 0;
652
+ if (-S === w ? g > d ? (l[0] = v, l[1] = D, R = !0) : (l[0] = p, l[1] = a, R = !0) : S === w && (g > d ? (l[0] = h, l[1] = a, R = !0) : (l[0] = u, l[1] = D, R = !0)), -Y === w ? d > g ? (l[2] = c, l[3] = E, M = !0) : (l[2] = f, l[3] = s, M = !0) : Y === w && (d > g ? (l[2] = O, l[3] = s, M = !0) : (l[2] = A, l[3] = E, M = !0)), R && M)
653
+ return !1;
654
+ if (g > d ? n > r ? (x = this.getCardinalDirection(S, w, 4), F = this.getCardinalDirection(Y, w, 2)) : (x = this.getCardinalDirection(-S, w, 3), F = this.getCardinalDirection(-Y, w, 1)) : n > r ? (x = this.getCardinalDirection(-S, w, 1), F = this.getCardinalDirection(-Y, w, 3)) : (x = this.getCardinalDirection(S, w, 2), F = this.getCardinalDirection(Y, w, 4)), !R)
655
+ switch (x) {
656
+ case 1:
657
+ P = a, U = g + -y / w, l[0] = U, l[1] = P;
658
+ break;
659
+ case 2:
660
+ U = u, P = n + T * w, l[0] = U, l[1] = P;
661
+ break;
662
+ case 3:
663
+ P = D, U = g + y / w, l[0] = U, l[1] = P;
664
+ break;
665
+ case 4:
666
+ U = v, P = n + -T * w, l[0] = U, l[1] = P;
667
+ break;
668
+ }
669
+ if (!M)
670
+ switch (F) {
671
+ case 1:
672
+ X = s, _ = d + -C / w, l[2] = _, l[3] = X;
673
+ break;
674
+ case 2:
675
+ _ = A, X = r + m * w, l[2] = _, l[3] = X;
676
+ break;
677
+ case 3:
678
+ X = E, _ = d + C / w, l[2] = _, l[3] = X;
679
+ break;
680
+ case 4:
681
+ _ = c, X = r + -m * w, l[2] = _, l[3] = X;
682
+ break;
683
+ }
684
+ }
685
+ return !1;
686
+ }, e.getCardinalDirection = function(t, i, l) {
687
+ return t > i ? l : 1 + l % 4;
688
+ }, e.getIntersection = function(t, i, l, g) {
689
+ if (g == null)
690
+ return this.getIntersection2(t, i, l);
691
+ var n = t.x, d = t.y, r = i.x, h = i.y, a = l.x, p = l.y, v = g.x, D = g.y, u = void 0, T = void 0, y = void 0, O = void 0, s = void 0, f = void 0, c = void 0, E = void 0, A = void 0;
692
+ return y = h - d, s = n - r, c = r * d - n * h, O = D - p, f = a - v, E = v * p - a * D, A = y * f - O * s, A === 0 ? null : (u = (s * E - f * c) / A, T = (O * c - y * E) / A, new o(u, T));
693
+ }, e.angleOfVector = function(t, i, l, g) {
694
+ var n = void 0;
695
+ return t !== l ? (n = Math.atan((g - i) / (l - t)), l < t ? n += Math.PI : g < i && (n += this.TWO_PI)) : g < i ? n = this.ONE_AND_HALF_PI : n = this.HALF_PI, n;
696
+ }, e.doIntersect = function(t, i, l, g) {
697
+ var n = t.x, d = t.y, r = i.x, h = i.y, a = l.x, p = l.y, v = g.x, D = g.y, u = (r - n) * (D - p) - (v - a) * (h - d);
698
+ if (u === 0)
699
+ return !1;
700
+ var T = ((D - p) * (v - n) + (a - v) * (D - d)) / u, y = ((d - h) * (v - n) + (r - n) * (D - d)) / u;
701
+ return 0 < T && T < 1 && 0 < y && y < 1;
702
+ }, e.HALF_PI = 0.5 * Math.PI, e.ONE_AND_HALF_PI = 1.5 * Math.PI, e.TWO_PI = 2 * Math.PI, e.THREE_PI = 3 * Math.PI, N.exports = e;
703
+ }),
704
+ /* 9 */
705
+ /***/
706
+ (function(N, I, L) {
707
+ function o() {
708
+ }
709
+ o.sign = function(e) {
710
+ return e > 0 ? 1 : e < 0 ? -1 : 0;
711
+ }, o.floor = function(e) {
712
+ return e < 0 ? Math.ceil(e) : Math.floor(e);
713
+ }, o.ceil = function(e) {
714
+ return e < 0 ? Math.floor(e) : Math.ceil(e);
715
+ }, N.exports = o;
716
+ }),
717
+ /* 10 */
718
+ /***/
719
+ (function(N, I, L) {
720
+ function o() {
721
+ }
722
+ o.MAX_VALUE = 2147483647, o.MIN_VALUE = -2147483648, N.exports = o;
723
+ }),
724
+ /* 11 */
725
+ /***/
726
+ (function(N, I, L) {
727
+ var o = /* @__PURE__ */ (function() {
728
+ function n(d, r) {
729
+ for (var h = 0; h < r.length; h++) {
730
+ var a = r[h];
731
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(d, a.key, a);
732
+ }
733
+ }
734
+ return function(d, r, h) {
735
+ return r && n(d.prototype, r), h && n(d, h), d;
736
+ };
737
+ })();
738
+ function e(n, d) {
739
+ if (!(n instanceof d))
740
+ throw new TypeError("Cannot call a class as a function");
741
+ }
742
+ var t = function(d) {
743
+ return { value: d, next: null, prev: null };
744
+ }, i = function(d, r, h, a) {
745
+ return d !== null ? d.next = r : a.head = r, h !== null ? h.prev = r : a.tail = r, r.prev = d, r.next = h, a.length++, r;
746
+ }, l = function(d, r) {
747
+ var h = d.prev, a = d.next;
748
+ return h !== null ? h.next = a : r.head = a, a !== null ? a.prev = h : r.tail = h, d.prev = d.next = null, r.length--, d;
749
+ }, g = (function() {
750
+ function n(d) {
751
+ var r = this;
752
+ e(this, n), this.length = 0, this.head = null, this.tail = null, d?.forEach(function(h) {
753
+ return r.push(h);
754
+ });
755
+ }
756
+ return o(n, [{
757
+ key: "size",
758
+ value: function() {
759
+ return this.length;
760
+ }
761
+ }, {
762
+ key: "insertBefore",
763
+ value: function(r, h) {
764
+ return i(h.prev, t(r), h, this);
765
+ }
766
+ }, {
767
+ key: "insertAfter",
768
+ value: function(r, h) {
769
+ return i(h, t(r), h.next, this);
770
+ }
771
+ }, {
772
+ key: "insertNodeBefore",
773
+ value: function(r, h) {
774
+ return i(h.prev, r, h, this);
775
+ }
776
+ }, {
777
+ key: "insertNodeAfter",
778
+ value: function(r, h) {
779
+ return i(h, r, h.next, this);
780
+ }
781
+ }, {
782
+ key: "push",
783
+ value: function(r) {
784
+ return i(this.tail, t(r), null, this);
785
+ }
786
+ }, {
787
+ key: "unshift",
788
+ value: function(r) {
789
+ return i(null, t(r), this.head, this);
790
+ }
791
+ }, {
792
+ key: "remove",
793
+ value: function(r) {
794
+ return l(r, this);
795
+ }
796
+ }, {
797
+ key: "pop",
798
+ value: function() {
799
+ return l(this.tail, this).value;
800
+ }
801
+ }, {
802
+ key: "popNode",
803
+ value: function() {
804
+ return l(this.tail, this);
805
+ }
806
+ }, {
807
+ key: "shift",
808
+ value: function() {
809
+ return l(this.head, this).value;
810
+ }
811
+ }, {
812
+ key: "shiftNode",
813
+ value: function() {
814
+ return l(this.head, this);
815
+ }
816
+ }, {
817
+ key: "get_object_at",
818
+ value: function(r) {
819
+ if (r <= this.length()) {
820
+ for (var h = 1, a = this.head; h < r; )
821
+ a = a.next, h++;
822
+ return a.value;
823
+ }
824
+ }
825
+ }, {
826
+ key: "set_object_at",
827
+ value: function(r, h) {
828
+ if (r <= this.length()) {
829
+ for (var a = 1, p = this.head; a < r; )
830
+ p = p.next, a++;
831
+ p.value = h;
832
+ }
833
+ }
834
+ }]), n;
835
+ })();
836
+ N.exports = g;
837
+ }),
838
+ /* 12 */
839
+ /***/
840
+ (function(N, I, L) {
841
+ function o(e, t, i) {
842
+ this.x = null, this.y = null, e == null && t == null && i == null ? (this.x = 0, this.y = 0) : typeof e == "number" && typeof t == "number" && i == null ? (this.x = e, this.y = t) : e.constructor.name == "Point" && t == null && i == null && (i = e, this.x = i.x, this.y = i.y);
843
+ }
844
+ o.prototype.getX = function() {
845
+ return this.x;
846
+ }, o.prototype.getY = function() {
847
+ return this.y;
848
+ }, o.prototype.getLocation = function() {
849
+ return new o(this.x, this.y);
850
+ }, o.prototype.setLocation = function(e, t, i) {
851
+ e.constructor.name == "Point" && t == null && i == null ? (i = e, this.setLocation(i.x, i.y)) : typeof e == "number" && typeof t == "number" && i == null && (parseInt(e) == e && parseInt(t) == t ? this.move(e, t) : (this.x = Math.floor(e + 0.5), this.y = Math.floor(t + 0.5)));
852
+ }, o.prototype.move = function(e, t) {
853
+ this.x = e, this.y = t;
854
+ }, o.prototype.translate = function(e, t) {
855
+ this.x += e, this.y += t;
856
+ }, o.prototype.equals = function(e) {
857
+ if (e.constructor.name == "Point") {
858
+ var t = e;
859
+ return this.x == t.x && this.y == t.y;
860
+ }
861
+ return this == e;
862
+ }, o.prototype.toString = function() {
863
+ return new o().constructor.name + "[x=" + this.x + ",y=" + this.y + "]";
864
+ }, N.exports = o;
865
+ }),
866
+ /* 13 */
867
+ /***/
868
+ (function(N, I, L) {
869
+ function o(e, t, i, l) {
870
+ this.x = 0, this.y = 0, this.width = 0, this.height = 0, e != null && t != null && i != null && l != null && (this.x = e, this.y = t, this.width = i, this.height = l);
871
+ }
872
+ o.prototype.getX = function() {
873
+ return this.x;
874
+ }, o.prototype.setX = function(e) {
875
+ this.x = e;
876
+ }, o.prototype.getY = function() {
877
+ return this.y;
878
+ }, o.prototype.setY = function(e) {
879
+ this.y = e;
880
+ }, o.prototype.getWidth = function() {
881
+ return this.width;
882
+ }, o.prototype.setWidth = function(e) {
883
+ this.width = e;
884
+ }, o.prototype.getHeight = function() {
885
+ return this.height;
886
+ }, o.prototype.setHeight = function(e) {
887
+ this.height = e;
888
+ }, o.prototype.getRight = function() {
889
+ return this.x + this.width;
890
+ }, o.prototype.getBottom = function() {
891
+ return this.y + this.height;
892
+ }, o.prototype.intersects = function(e) {
893
+ return !(this.getRight() < e.x || this.getBottom() < e.y || e.getRight() < this.x || e.getBottom() < this.y);
894
+ }, o.prototype.getCenterX = function() {
895
+ return this.x + this.width / 2;
896
+ }, o.prototype.getMinX = function() {
897
+ return this.getX();
898
+ }, o.prototype.getMaxX = function() {
899
+ return this.getX() + this.width;
900
+ }, o.prototype.getCenterY = function() {
901
+ return this.y + this.height / 2;
902
+ }, o.prototype.getMinY = function() {
903
+ return this.getY();
904
+ }, o.prototype.getMaxY = function() {
905
+ return this.getY() + this.height;
906
+ }, o.prototype.getWidthHalf = function() {
907
+ return this.width / 2;
908
+ }, o.prototype.getHeightHalf = function() {
909
+ return this.height / 2;
910
+ }, N.exports = o;
911
+ }),
912
+ /* 14 */
913
+ /***/
914
+ (function(N, I, L) {
915
+ var o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
916
+ return typeof t;
917
+ } : function(t) {
918
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
919
+ };
920
+ function e() {
921
+ }
922
+ e.lastID = 0, e.createID = function(t) {
923
+ return e.isPrimitive(t) ? t : (t.uniqueID != null || (t.uniqueID = e.getString(), e.lastID++), t.uniqueID);
924
+ }, e.getString = function(t) {
925
+ return t == null && (t = e.lastID), "Object#" + t;
926
+ }, e.isPrimitive = function(t) {
927
+ var i = typeof t > "u" ? "undefined" : o(t);
928
+ return t == null || i != "object" && i != "function";
929
+ }, N.exports = e;
930
+ }),
931
+ /* 15 */
932
+ /***/
933
+ (function(N, I, L) {
934
+ function o(a) {
935
+ if (Array.isArray(a)) {
936
+ for (var p = 0, v = Array(a.length); p < a.length; p++)
937
+ v[p] = a[p];
938
+ return v;
939
+ } else
940
+ return Array.from(a);
941
+ }
942
+ var e = L(0), t = L(6), i = L(3), l = L(1), g = L(5), n = L(4), d = L(17), r = L(27);
943
+ function h(a) {
944
+ r.call(this), this.layoutQuality = e.QUALITY, this.createBendsAsNeeded = e.DEFAULT_CREATE_BENDS_AS_NEEDED, this.incremental = e.DEFAULT_INCREMENTAL, this.animationOnLayout = e.DEFAULT_ANIMATION_ON_LAYOUT, this.animationDuringLayout = e.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = e.DEFAULT_ANIMATION_PERIOD, this.uniformLeafNodeSizes = e.DEFAULT_UNIFORM_LEAF_NODE_SIZES, this.edgeToDummyNodes = /* @__PURE__ */ new Map(), this.graphManager = new t(this), this.isLayoutFinished = !1, this.isSubLayout = !1, this.isRemoteUse = !1, a != null && (this.isRemoteUse = a);
945
+ }
946
+ h.RANDOM_SEED = 1, h.prototype = Object.create(r.prototype), h.prototype.getGraphManager = function() {
947
+ return this.graphManager;
948
+ }, h.prototype.getAllNodes = function() {
949
+ return this.graphManager.getAllNodes();
950
+ }, h.prototype.getAllEdges = function() {
951
+ return this.graphManager.getAllEdges();
952
+ }, h.prototype.getAllNodesToApplyGravitation = function() {
953
+ return this.graphManager.getAllNodesToApplyGravitation();
954
+ }, h.prototype.newGraphManager = function() {
955
+ var a = new t(this);
956
+ return this.graphManager = a, a;
957
+ }, h.prototype.newGraph = function(a) {
958
+ return new g(null, this.graphManager, a);
959
+ }, h.prototype.newNode = function(a) {
960
+ return new i(this.graphManager, a);
961
+ }, h.prototype.newEdge = function(a) {
962
+ return new l(null, null, a);
963
+ }, h.prototype.checkLayoutSuccess = function() {
964
+ return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
965
+ }, h.prototype.runLayout = function() {
966
+ this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
967
+ var a;
968
+ return this.checkLayoutSuccess() ? a = !1 : a = this.layout(), e.ANIMATE === "during" ? !1 : (a && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, a);
969
+ }, h.prototype.doPostLayout = function() {
970
+ this.incremental || this.transform(), this.update();
971
+ }, h.prototype.update2 = function() {
972
+ if (this.createBendsAsNeeded && (this.createBendpointsFromDummyNodes(), this.graphManager.resetAllEdges()), !this.isRemoteUse) {
973
+ for (var a = this.graphManager.getAllEdges(), p = 0; p < a.length; p++)
974
+ a[p];
975
+ for (var v = this.graphManager.getRoot().getNodes(), p = 0; p < v.length; p++)
976
+ v[p];
977
+ this.update(this.graphManager.getRoot());
978
+ }
979
+ }, h.prototype.update = function(a) {
980
+ if (a == null)
981
+ this.update2();
982
+ else if (a instanceof i) {
983
+ var p = a;
984
+ if (p.getChild() != null)
985
+ for (var v = p.getChild().getNodes(), D = 0; D < v.length; D++)
986
+ update(v[D]);
987
+ if (p.vGraphObject != null) {
988
+ var u = p.vGraphObject;
989
+ u.update(p);
990
+ }
991
+ } else if (a instanceof l) {
992
+ var T = a;
993
+ if (T.vGraphObject != null) {
994
+ var y = T.vGraphObject;
995
+ y.update(T);
996
+ }
997
+ } else if (a instanceof g) {
998
+ var O = a;
999
+ if (O.vGraphObject != null) {
1000
+ var s = O.vGraphObject;
1001
+ s.update(O);
1002
+ }
1003
+ }
1004
+ }, h.prototype.initParameters = function() {
1005
+ this.isSubLayout || (this.layoutQuality = e.QUALITY, this.animationDuringLayout = e.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = e.DEFAULT_ANIMATION_PERIOD, this.animationOnLayout = e.DEFAULT_ANIMATION_ON_LAYOUT, this.incremental = e.DEFAULT_INCREMENTAL, this.createBendsAsNeeded = e.DEFAULT_CREATE_BENDS_AS_NEEDED, this.uniformLeafNodeSizes = e.DEFAULT_UNIFORM_LEAF_NODE_SIZES), this.animationDuringLayout && (this.animationOnLayout = !1);
1006
+ }, h.prototype.transform = function(a) {
1007
+ if (a == null)
1008
+ this.transform(new n(0, 0));
1009
+ else {
1010
+ var p = new d(), v = this.graphManager.getRoot().updateLeftTop();
1011
+ if (v != null) {
1012
+ p.setWorldOrgX(a.x), p.setWorldOrgY(a.y), p.setDeviceOrgX(v.x), p.setDeviceOrgY(v.y);
1013
+ for (var D = this.getAllNodes(), u, T = 0; T < D.length; T++)
1014
+ u = D[T], u.transform(p);
1015
+ }
1016
+ }
1017
+ }, h.prototype.positionNodesRandomly = function(a) {
1018
+ if (a == null)
1019
+ this.positionNodesRandomly(this.getGraphManager().getRoot()), this.getGraphManager().getRoot().updateBounds(!0);
1020
+ else
1021
+ for (var p, v, D = a.getNodes(), u = 0; u < D.length; u++)
1022
+ p = D[u], v = p.getChild(), v == null || v.getNodes().length == 0 ? p.scatter() : (this.positionNodesRandomly(v), p.updateBounds());
1023
+ }, h.prototype.getFlatForest = function() {
1024
+ for (var a = [], p = !0, v = this.graphManager.getRoot().getNodes(), D = !0, u = 0; u < v.length; u++)
1025
+ v[u].getChild() != null && (D = !1);
1026
+ if (!D)
1027
+ return a;
1028
+ var T = /* @__PURE__ */ new Set(), y = [], O = /* @__PURE__ */ new Map(), s = [];
1029
+ for (s = s.concat(v); s.length > 0 && p; ) {
1030
+ for (y.push(s[0]); y.length > 0 && p; ) {
1031
+ var f = y[0];
1032
+ y.splice(0, 1), T.add(f);
1033
+ for (var c = f.getEdges(), u = 0; u < c.length; u++) {
1034
+ var E = c[u].getOtherEnd(f);
1035
+ if (O.get(f) != E)
1036
+ if (!T.has(E))
1037
+ y.push(E), O.set(E, f);
1038
+ else {
1039
+ p = !1;
1040
+ break;
1041
+ }
1042
+ }
1043
+ }
1044
+ if (!p)
1045
+ a = [];
1046
+ else {
1047
+ var A = [].concat(o(T));
1048
+ a.push(A);
1049
+ for (var u = 0; u < A.length; u++) {
1050
+ var m = A[u], C = s.indexOf(m);
1051
+ C > -1 && s.splice(C, 1);
1052
+ }
1053
+ T = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Map();
1054
+ }
1055
+ }
1056
+ return a;
1057
+ }, h.prototype.createDummyNodesForBendpoints = function(a) {
1058
+ for (var p = [], v = a.source, D = this.graphManager.calcLowestCommonAncestor(a.source, a.target), u = 0; u < a.bendpoints.length; u++) {
1059
+ var T = this.newNode(null);
1060
+ T.setRect(new Point(0, 0), new Dimension(1, 1)), D.add(T);
1061
+ var y = this.newEdge(null);
1062
+ this.graphManager.add(y, v, T), p.add(T), v = T;
1063
+ }
1064
+ var y = this.newEdge(null);
1065
+ return this.graphManager.add(y, v, a.target), this.edgeToDummyNodes.set(a, p), a.isInterGraph() ? this.graphManager.remove(a) : D.remove(a), p;
1066
+ }, h.prototype.createBendpointsFromDummyNodes = function() {
1067
+ var a = [];
1068
+ a = a.concat(this.graphManager.getAllEdges()), a = [].concat(o(this.edgeToDummyNodes.keys())).concat(a);
1069
+ for (var p = 0; p < a.length; p++) {
1070
+ var v = a[p];
1071
+ if (v.bendpoints.length > 0) {
1072
+ for (var D = this.edgeToDummyNodes.get(v), u = 0; u < D.length; u++) {
1073
+ var T = D[u], y = new n(T.getCenterX(), T.getCenterY()), O = v.bendpoints.get(u);
1074
+ O.x = y.x, O.y = y.y, T.getOwner().remove(T);
1075
+ }
1076
+ this.graphManager.add(v, v.source, v.target);
1077
+ }
1078
+ }
1079
+ }, h.transform = function(a, p, v, D) {
1080
+ if (v != null && D != null) {
1081
+ var u = p;
1082
+ if (a <= 50) {
1083
+ var T = p / v;
1084
+ u -= (p - T) / 50 * (50 - a);
1085
+ } else {
1086
+ var y = p * D;
1087
+ u += (y - p) / 50 * (a - 50);
1088
+ }
1089
+ return u;
1090
+ } else {
1091
+ var O, s;
1092
+ return a <= 50 ? (O = 9 * p / 500, s = p / 10) : (O = 9 * p / 50, s = -8 * p), O * a + s;
1093
+ }
1094
+ }, h.findCenterOfTree = function(a) {
1095
+ var p = [];
1096
+ p = p.concat(a);
1097
+ var v = [], D = /* @__PURE__ */ new Map(), u = !1, T = null;
1098
+ (p.length == 1 || p.length == 2) && (u = !0, T = p[0]);
1099
+ for (var y = 0; y < p.length; y++) {
1100
+ var O = p[y], s = O.getNeighborsList().size;
1101
+ D.set(O, O.getNeighborsList().size), s == 1 && v.push(O);
1102
+ }
1103
+ var f = [];
1104
+ for (f = f.concat(v); !u; ) {
1105
+ var c = [];
1106
+ c = c.concat(f), f = [];
1107
+ for (var y = 0; y < p.length; y++) {
1108
+ var O = p[y], E = p.indexOf(O);
1109
+ E >= 0 && p.splice(E, 1);
1110
+ var A = O.getNeighborsList();
1111
+ A.forEach(function(R) {
1112
+ if (v.indexOf(R) < 0) {
1113
+ var M = D.get(R), S = M - 1;
1114
+ S == 1 && f.push(R), D.set(R, S);
1115
+ }
1116
+ });
1117
+ }
1118
+ v = v.concat(f), (p.length == 1 || p.length == 2) && (u = !0, T = p[0]);
1119
+ }
1120
+ return T;
1121
+ }, h.prototype.setGraphManager = function(a) {
1122
+ this.graphManager = a;
1123
+ }, N.exports = h;
1124
+ }),
1125
+ /* 16 */
1126
+ /***/
1127
+ (function(N, I, L) {
1128
+ function o() {
1129
+ }
1130
+ o.seed = 1, o.x = 0, o.nextDouble = function() {
1131
+ return o.x = Math.sin(o.seed++) * 1e4, o.x - Math.floor(o.x);
1132
+ }, N.exports = o;
1133
+ }),
1134
+ /* 17 */
1135
+ /***/
1136
+ (function(N, I, L) {
1137
+ var o = L(4);
1138
+ function e(t, i) {
1139
+ this.lworldOrgX = 0, this.lworldOrgY = 0, this.ldeviceOrgX = 0, this.ldeviceOrgY = 0, this.lworldExtX = 1, this.lworldExtY = 1, this.ldeviceExtX = 1, this.ldeviceExtY = 1;
1140
+ }
1141
+ e.prototype.getWorldOrgX = function() {
1142
+ return this.lworldOrgX;
1143
+ }, e.prototype.setWorldOrgX = function(t) {
1144
+ this.lworldOrgX = t;
1145
+ }, e.prototype.getWorldOrgY = function() {
1146
+ return this.lworldOrgY;
1147
+ }, e.prototype.setWorldOrgY = function(t) {
1148
+ this.lworldOrgY = t;
1149
+ }, e.prototype.getWorldExtX = function() {
1150
+ return this.lworldExtX;
1151
+ }, e.prototype.setWorldExtX = function(t) {
1152
+ this.lworldExtX = t;
1153
+ }, e.prototype.getWorldExtY = function() {
1154
+ return this.lworldExtY;
1155
+ }, e.prototype.setWorldExtY = function(t) {
1156
+ this.lworldExtY = t;
1157
+ }, e.prototype.getDeviceOrgX = function() {
1158
+ return this.ldeviceOrgX;
1159
+ }, e.prototype.setDeviceOrgX = function(t) {
1160
+ this.ldeviceOrgX = t;
1161
+ }, e.prototype.getDeviceOrgY = function() {
1162
+ return this.ldeviceOrgY;
1163
+ }, e.prototype.setDeviceOrgY = function(t) {
1164
+ this.ldeviceOrgY = t;
1165
+ }, e.prototype.getDeviceExtX = function() {
1166
+ return this.ldeviceExtX;
1167
+ }, e.prototype.setDeviceExtX = function(t) {
1168
+ this.ldeviceExtX = t;
1169
+ }, e.prototype.getDeviceExtY = function() {
1170
+ return this.ldeviceExtY;
1171
+ }, e.prototype.setDeviceExtY = function(t) {
1172
+ this.ldeviceExtY = t;
1173
+ }, e.prototype.transformX = function(t) {
1174
+ var i = 0, l = this.lworldExtX;
1175
+ return l != 0 && (i = this.ldeviceOrgX + (t - this.lworldOrgX) * this.ldeviceExtX / l), i;
1176
+ }, e.prototype.transformY = function(t) {
1177
+ var i = 0, l = this.lworldExtY;
1178
+ return l != 0 && (i = this.ldeviceOrgY + (t - this.lworldOrgY) * this.ldeviceExtY / l), i;
1179
+ }, e.prototype.inverseTransformX = function(t) {
1180
+ var i = 0, l = this.ldeviceExtX;
1181
+ return l != 0 && (i = this.lworldOrgX + (t - this.ldeviceOrgX) * this.lworldExtX / l), i;
1182
+ }, e.prototype.inverseTransformY = function(t) {
1183
+ var i = 0, l = this.ldeviceExtY;
1184
+ return l != 0 && (i = this.lworldOrgY + (t - this.ldeviceOrgY) * this.lworldExtY / l), i;
1185
+ }, e.prototype.inverseTransformPoint = function(t) {
1186
+ var i = new o(this.inverseTransformX(t.x), this.inverseTransformY(t.y));
1187
+ return i;
1188
+ }, N.exports = e;
1189
+ }),
1190
+ /* 18 */
1191
+ /***/
1192
+ (function(N, I, L) {
1193
+ function o(r) {
1194
+ if (Array.isArray(r)) {
1195
+ for (var h = 0, a = Array(r.length); h < r.length; h++)
1196
+ a[h] = r[h];
1197
+ return a;
1198
+ } else
1199
+ return Array.from(r);
1200
+ }
1201
+ var e = L(15), t = L(7), i = L(0), l = L(8), g = L(9);
1202
+ function n() {
1203
+ e.call(this), this.useSmartIdealEdgeLengthCalculation = t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.idealEdgeLength = t.DEFAULT_EDGE_LENGTH, this.springConstant = t.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = t.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = t.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = t.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = t.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.displacementThresholdPerNode = 3 * t.DEFAULT_EDGE_LENGTH / 100, this.coolingFactor = t.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.initialCoolingFactor = t.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.totalDisplacement = 0, this.oldTotalDisplacement = 0, this.maxIterations = t.MAX_ITERATIONS;
1204
+ }
1205
+ n.prototype = Object.create(e.prototype);
1206
+ for (var d in e)
1207
+ n[d] = e[d];
1208
+ n.prototype.initParameters = function() {
1209
+ e.prototype.initParameters.call(this, arguments), this.totalIterations = 0, this.notAnimatedIterations = 0, this.useFRGridVariant = t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION, this.grid = [];
1210
+ }, n.prototype.calcIdealEdgeLengths = function() {
1211
+ for (var r, h, a, p, v, D, u = this.getGraphManager().getAllEdges(), T = 0; T < u.length; T++)
1212
+ r = u[T], r.idealLength = this.idealEdgeLength, r.isInterGraph && (a = r.getSource(), p = r.getTarget(), v = r.getSourceInLca().getEstimatedSize(), D = r.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (r.idealLength += v + D - 2 * i.SIMPLE_NODE_SIZE), h = r.getLca().getInclusionTreeDepth(), r.idealLength += t.DEFAULT_EDGE_LENGTH * t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (a.getInclusionTreeDepth() + p.getInclusionTreeDepth() - 2 * h));
1213
+ }, n.prototype.initSpringEmbedder = function() {
1214
+ var r = this.getAllNodes().length;
1215
+ this.incremental ? (r > t.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * t.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (r - t.ADAPTATION_LOWER_NODE_LIMIT) / (t.ADAPTATION_UPPER_NODE_LIMIT - t.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - t.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = t.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (r > t.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(t.COOLING_ADAPTATION_FACTOR, 1 - (r - t.ADAPTATION_LOWER_NODE_LIMIT) / (t.ADAPTATION_UPPER_NODE_LIMIT - t.ADAPTATION_LOWER_NODE_LIMIT) * (1 - t.COOLING_ADAPTATION_FACTOR)) : this.coolingFactor = 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = t.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1216
+ }, n.prototype.calcSpringForces = function() {
1217
+ for (var r = this.getAllEdges(), h, a = 0; a < r.length; a++)
1218
+ h = r[a], this.calcSpringForce(h, h.idealLength);
1219
+ }, n.prototype.calcRepulsionForces = function() {
1220
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a, p, v, D, u = this.getAllNodes(), T;
1221
+ if (this.useFRGridVariant)
1222
+ for (this.totalIterations % t.GRID_CALCULATION_CHECK_PERIOD == 1 && r && this.updateGrid(), T = /* @__PURE__ */ new Set(), a = 0; a < u.length; a++)
1223
+ v = u[a], this.calculateRepulsionForceOfANode(v, T, r, h), T.add(v);
1224
+ else
1225
+ for (a = 0; a < u.length; a++)
1226
+ for (v = u[a], p = a + 1; p < u.length; p++)
1227
+ D = u[p], v.getOwner() == D.getOwner() && this.calcRepulsionForce(v, D);
1228
+ }, n.prototype.calcGravitationalForces = function() {
1229
+ for (var r, h = this.getAllNodesToApplyGravitation(), a = 0; a < h.length; a++)
1230
+ r = h[a], this.calcGravitationalForce(r);
1231
+ }, n.prototype.moveNodes = function() {
1232
+ for (var r = this.getAllNodes(), h, a = 0; a < r.length; a++)
1233
+ h = r[a], h.move();
1234
+ }, n.prototype.calcSpringForce = function(r, h) {
1235
+ var a = r.getSource(), p = r.getTarget(), v, D, u, T;
1236
+ if (this.uniformLeafNodeSizes && a.getChild() == null && p.getChild() == null)
1237
+ r.updateLengthSimple();
1238
+ else if (r.updateLength(), r.isOverlapingSourceAndTarget)
1239
+ return;
1240
+ v = r.getLength(), v != 0 && (D = this.springConstant * (v - h), u = D * (r.lengthX / v), T = D * (r.lengthY / v), a.springForceX += u, a.springForceY += T, p.springForceX -= u, p.springForceY -= T);
1241
+ }, n.prototype.calcRepulsionForce = function(r, h) {
1242
+ var a = r.getRect(), p = h.getRect(), v = new Array(2), D = new Array(4), u, T, y, O, s, f, c;
1243
+ if (a.intersects(p)) {
1244
+ l.calcSeparationAmount(a, p, v, t.DEFAULT_EDGE_LENGTH / 2), f = 2 * v[0], c = 2 * v[1];
1245
+ var E = r.noOfChildren * h.noOfChildren / (r.noOfChildren + h.noOfChildren);
1246
+ r.repulsionForceX -= E * f, r.repulsionForceY -= E * c, h.repulsionForceX += E * f, h.repulsionForceY += E * c;
1247
+ } else
1248
+ this.uniformLeafNodeSizes && r.getChild() == null && h.getChild() == null ? (u = p.getCenterX() - a.getCenterX(), T = p.getCenterY() - a.getCenterY()) : (l.getIntersection(a, p, D), u = D[2] - D[0], T = D[3] - D[1]), Math.abs(u) < t.MIN_REPULSION_DIST && (u = g.sign(u) * t.MIN_REPULSION_DIST), Math.abs(T) < t.MIN_REPULSION_DIST && (T = g.sign(T) * t.MIN_REPULSION_DIST), y = u * u + T * T, O = Math.sqrt(y), s = this.repulsionConstant * r.noOfChildren * h.noOfChildren / y, f = s * u / O, c = s * T / O, r.repulsionForceX -= f, r.repulsionForceY -= c, h.repulsionForceX += f, h.repulsionForceY += c;
1249
+ }, n.prototype.calcGravitationalForce = function(r) {
1250
+ var h, a, p, v, D, u, T, y;
1251
+ h = r.getOwner(), a = (h.getRight() + h.getLeft()) / 2, p = (h.getTop() + h.getBottom()) / 2, v = r.getCenterX() - a, D = r.getCenterY() - p, u = Math.abs(v) + r.getWidth() / 2, T = Math.abs(D) + r.getHeight() / 2, r.getOwner() == this.graphManager.getRoot() ? (y = h.getEstimatedSize() * this.gravityRangeFactor, (u > y || T > y) && (r.gravitationForceX = -this.gravityConstant * v, r.gravitationForceY = -this.gravityConstant * D)) : (y = h.getEstimatedSize() * this.compoundGravityRangeFactor, (u > y || T > y) && (r.gravitationForceX = -this.gravityConstant * v * this.compoundGravityConstant, r.gravitationForceY = -this.gravityConstant * D * this.compoundGravityConstant));
1252
+ }, n.prototype.isConverged = function() {
1253
+ var r, h = !1;
1254
+ return this.totalIterations > this.maxIterations / 3 && (h = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2), r = this.totalDisplacement < this.totalDisplacementThreshold, this.oldTotalDisplacement = this.totalDisplacement, r || h;
1255
+ }, n.prototype.animate = function() {
1256
+ this.animationDuringLayout && !this.isSubLayout && (this.notAnimatedIterations == this.animationPeriod ? (this.update(), this.notAnimatedIterations = 0) : this.notAnimatedIterations++);
1257
+ }, n.prototype.calcNoOfChildrenForAllNodes = function() {
1258
+ for (var r, h = this.graphManager.getAllNodes(), a = 0; a < h.length; a++)
1259
+ r = h[a], r.noOfChildren = r.getNoOfChildren();
1260
+ }, n.prototype.calcGrid = function(r) {
1261
+ var h = 0, a = 0;
1262
+ h = parseInt(Math.ceil((r.getRight() - r.getLeft()) / this.repulsionRange)), a = parseInt(Math.ceil((r.getBottom() - r.getTop()) / this.repulsionRange));
1263
+ for (var p = new Array(h), v = 0; v < h; v++)
1264
+ p[v] = new Array(a);
1265
+ for (var v = 0; v < h; v++)
1266
+ for (var D = 0; D < a; D++)
1267
+ p[v][D] = new Array();
1268
+ return p;
1269
+ }, n.prototype.addNodeToGrid = function(r, h, a) {
1270
+ var p = 0, v = 0, D = 0, u = 0;
1271
+ p = parseInt(Math.floor((r.getRect().x - h) / this.repulsionRange)), v = parseInt(Math.floor((r.getRect().width + r.getRect().x - h) / this.repulsionRange)), D = parseInt(Math.floor((r.getRect().y - a) / this.repulsionRange)), u = parseInt(Math.floor((r.getRect().height + r.getRect().y - a) / this.repulsionRange));
1272
+ for (var T = p; T <= v; T++)
1273
+ for (var y = D; y <= u; y++)
1274
+ this.grid[T][y].push(r), r.setGridCoordinates(p, v, D, u);
1275
+ }, n.prototype.updateGrid = function() {
1276
+ var r, h, a = this.getAllNodes();
1277
+ for (this.grid = this.calcGrid(this.graphManager.getRoot()), r = 0; r < a.length; r++)
1278
+ h = a[r], this.addNodeToGrid(h, this.graphManager.getRoot().getLeft(), this.graphManager.getRoot().getTop());
1279
+ }, n.prototype.calculateRepulsionForceOfANode = function(r, h, a, p) {
1280
+ if (this.totalIterations % t.GRID_CALCULATION_CHECK_PERIOD == 1 && a || p) {
1281
+ var v = /* @__PURE__ */ new Set();
1282
+ r.surrounding = new Array();
1283
+ for (var D, u = this.grid, T = r.startX - 1; T < r.finishX + 2; T++)
1284
+ for (var y = r.startY - 1; y < r.finishY + 2; y++)
1285
+ if (!(T < 0 || y < 0 || T >= u.length || y >= u[0].length)) {
1286
+ for (var O = 0; O < u[T][y].length; O++)
1287
+ if (D = u[T][y][O], !(r.getOwner() != D.getOwner() || r == D) && !h.has(D) && !v.has(D)) {
1288
+ var s = Math.abs(r.getCenterX() - D.getCenterX()) - (r.getWidth() / 2 + D.getWidth() / 2), f = Math.abs(r.getCenterY() - D.getCenterY()) - (r.getHeight() / 2 + D.getHeight() / 2);
1289
+ s <= this.repulsionRange && f <= this.repulsionRange && v.add(D);
1290
+ }
1291
+ }
1292
+ r.surrounding = [].concat(o(v));
1293
+ }
1294
+ for (T = 0; T < r.surrounding.length; T++)
1295
+ this.calcRepulsionForce(r, r.surrounding[T]);
1296
+ }, n.prototype.calcRepulsionRange = function() {
1297
+ return 0;
1298
+ }, N.exports = n;
1299
+ }),
1300
+ /* 19 */
1301
+ /***/
1302
+ (function(N, I, L) {
1303
+ var o = L(1), e = L(7);
1304
+ function t(l, g, n) {
1305
+ o.call(this, l, g, n), this.idealLength = e.DEFAULT_EDGE_LENGTH;
1306
+ }
1307
+ t.prototype = Object.create(o.prototype);
1308
+ for (var i in o)
1309
+ t[i] = o[i];
1310
+ N.exports = t;
1311
+ }),
1312
+ /* 20 */
1313
+ /***/
1314
+ (function(N, I, L) {
1315
+ var o = L(3);
1316
+ function e(i, l, g, n) {
1317
+ o.call(this, i, l, g, n), 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 = [];
1318
+ }
1319
+ e.prototype = Object.create(o.prototype);
1320
+ for (var t in o)
1321
+ e[t] = o[t];
1322
+ e.prototype.setGridCoordinates = function(i, l, g, n) {
1323
+ this.startX = i, this.finishX = l, this.startY = g, this.finishY = n;
1324
+ }, N.exports = e;
1325
+ }),
1326
+ /* 21 */
1327
+ /***/
1328
+ (function(N, I, L) {
1329
+ function o(e, t) {
1330
+ this.width = 0, this.height = 0, e !== null && t !== null && (this.height = t, this.width = e);
1331
+ }
1332
+ o.prototype.getWidth = function() {
1333
+ return this.width;
1334
+ }, o.prototype.setWidth = function(e) {
1335
+ this.width = e;
1336
+ }, o.prototype.getHeight = function() {
1337
+ return this.height;
1338
+ }, o.prototype.setHeight = function(e) {
1339
+ this.height = e;
1340
+ }, N.exports = o;
1341
+ }),
1342
+ /* 22 */
1343
+ /***/
1344
+ (function(N, I, L) {
1345
+ var o = L(14);
1346
+ function e() {
1347
+ this.map = {}, this.keys = [];
1348
+ }
1349
+ e.prototype.put = function(t, i) {
1350
+ var l = o.createID(t);
1351
+ this.contains(l) || (this.map[l] = i, this.keys.push(t));
1352
+ }, e.prototype.contains = function(t) {
1353
+ return o.createID(t), this.map[t] != null;
1354
+ }, e.prototype.get = function(t) {
1355
+ var i = o.createID(t);
1356
+ return this.map[i];
1357
+ }, e.prototype.keySet = function() {
1358
+ return this.keys;
1359
+ }, N.exports = e;
1360
+ }),
1361
+ /* 23 */
1362
+ /***/
1363
+ (function(N, I, L) {
1364
+ var o = L(14);
1365
+ function e() {
1366
+ this.set = {};
1367
+ }
1368
+ e.prototype.add = function(t) {
1369
+ var i = o.createID(t);
1370
+ this.contains(i) || (this.set[i] = t);
1371
+ }, e.prototype.remove = function(t) {
1372
+ delete this.set[o.createID(t)];
1373
+ }, e.prototype.clear = function() {
1374
+ this.set = {};
1375
+ }, e.prototype.contains = function(t) {
1376
+ return this.set[o.createID(t)] == t;
1377
+ }, e.prototype.isEmpty = function() {
1378
+ return this.size() === 0;
1379
+ }, e.prototype.size = function() {
1380
+ return Object.keys(this.set).length;
1381
+ }, e.prototype.addAllTo = function(t) {
1382
+ for (var i = Object.keys(this.set), l = i.length, g = 0; g < l; g++)
1383
+ t.push(this.set[i[g]]);
1384
+ }, e.prototype.size = function() {
1385
+ return Object.keys(this.set).length;
1386
+ }, e.prototype.addAll = function(t) {
1387
+ for (var i = t.length, l = 0; l < i; l++) {
1388
+ var g = t[l];
1389
+ this.add(g);
1390
+ }
1391
+ }, N.exports = e;
1392
+ }),
1393
+ /* 24 */
1394
+ /***/
1395
+ (function(N, I, L) {
1396
+ var o = /* @__PURE__ */ (function() {
1397
+ function l(g, n) {
1398
+ for (var d = 0; d < n.length; d++) {
1399
+ var r = n[d];
1400
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(g, r.key, r);
1401
+ }
1402
+ }
1403
+ return function(g, n, d) {
1404
+ return n && l(g.prototype, n), d && l(g, d), g;
1405
+ };
1406
+ })();
1407
+ function e(l, g) {
1408
+ if (!(l instanceof g))
1409
+ throw new TypeError("Cannot call a class as a function");
1410
+ }
1411
+ var t = L(11), i = (function() {
1412
+ function l(g, n) {
1413
+ e(this, l), (n !== null || n !== void 0) && (this.compareFunction = this._defaultCompareFunction);
1414
+ var d = void 0;
1415
+ g instanceof t ? d = g.size() : d = g.length, this._quicksort(g, 0, d - 1);
1416
+ }
1417
+ return o(l, [{
1418
+ key: "_quicksort",
1419
+ value: function(n, d, r) {
1420
+ if (d < r) {
1421
+ var h = this._partition(n, d, r);
1422
+ this._quicksort(n, d, h), this._quicksort(n, h + 1, r);
1423
+ }
1424
+ }
1425
+ }, {
1426
+ key: "_partition",
1427
+ value: function(n, d, r) {
1428
+ for (var h = this._get(n, d), a = d, p = r; ; ) {
1429
+ for (; this.compareFunction(h, this._get(n, p)); )
1430
+ p--;
1431
+ for (; this.compareFunction(this._get(n, a), h); )
1432
+ a++;
1433
+ if (a < p)
1434
+ this._swap(n, a, p), a++, p--;
1435
+ else return p;
1436
+ }
1437
+ }
1438
+ }, {
1439
+ key: "_get",
1440
+ value: function(n, d) {
1441
+ return n instanceof t ? n.get_object_at(d) : n[d];
1442
+ }
1443
+ }, {
1444
+ key: "_set",
1445
+ value: function(n, d, r) {
1446
+ n instanceof t ? n.set_object_at(d, r) : n[d] = r;
1447
+ }
1448
+ }, {
1449
+ key: "_swap",
1450
+ value: function(n, d, r) {
1451
+ var h = this._get(n, d);
1452
+ this._set(n, d, this._get(n, r)), this._set(n, r, h);
1453
+ }
1454
+ }, {
1455
+ key: "_defaultCompareFunction",
1456
+ value: function(n, d) {
1457
+ return d > n;
1458
+ }
1459
+ }]), l;
1460
+ })();
1461
+ N.exports = i;
1462
+ }),
1463
+ /* 25 */
1464
+ /***/
1465
+ (function(N, I, L) {
1466
+ var o = /* @__PURE__ */ (function() {
1467
+ function i(l, g) {
1468
+ for (var n = 0; n < g.length; n++) {
1469
+ var d = g[n];
1470
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(l, d.key, d);
1471
+ }
1472
+ }
1473
+ return function(l, g, n) {
1474
+ return g && i(l.prototype, g), n && i(l, n), l;
1475
+ };
1476
+ })();
1477
+ function e(i, l) {
1478
+ if (!(i instanceof l))
1479
+ throw new TypeError("Cannot call a class as a function");
1480
+ }
1481
+ var t = (function() {
1482
+ function i(l, g) {
1483
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, d = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : -1, r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : -1;
1484
+ e(this, i), this.sequence1 = l, this.sequence2 = g, this.match_score = n, this.mismatch_penalty = d, this.gap_penalty = r, this.iMax = l.length + 1, this.jMax = g.length + 1, this.grid = new Array(this.iMax);
1485
+ for (var h = 0; h < this.iMax; h++) {
1486
+ this.grid[h] = new Array(this.jMax);
1487
+ for (var a = 0; a < this.jMax; a++)
1488
+ this.grid[h][a] = 0;
1489
+ }
1490
+ this.tracebackGrid = new Array(this.iMax);
1491
+ for (var p = 0; p < this.iMax; p++) {
1492
+ this.tracebackGrid[p] = new Array(this.jMax);
1493
+ for (var v = 0; v < this.jMax; v++)
1494
+ this.tracebackGrid[p][v] = [null, null, null];
1495
+ }
1496
+ this.alignments = [], this.score = -1, this.computeGrids();
1497
+ }
1498
+ return o(i, [{
1499
+ key: "getScore",
1500
+ value: function() {
1501
+ return this.score;
1502
+ }
1503
+ }, {
1504
+ key: "getAlignments",
1505
+ value: function() {
1506
+ return this.alignments;
1507
+ }
1508
+ // Main dynamic programming procedure
1509
+ }, {
1510
+ key: "computeGrids",
1511
+ value: function() {
1512
+ for (var g = 1; g < this.jMax; g++)
1513
+ this.grid[0][g] = this.grid[0][g - 1] + this.gap_penalty, this.tracebackGrid[0][g] = [!1, !1, !0];
1514
+ for (var n = 1; n < this.iMax; n++)
1515
+ this.grid[n][0] = this.grid[n - 1][0] + this.gap_penalty, this.tracebackGrid[n][0] = [!1, !0, !1];
1516
+ for (var d = 1; d < this.iMax; d++)
1517
+ for (var r = 1; r < this.jMax; r++) {
1518
+ var h = void 0;
1519
+ this.sequence1[d - 1] === this.sequence2[r - 1] ? h = this.grid[d - 1][r - 1] + this.match_score : h = this.grid[d - 1][r - 1] + this.mismatch_penalty;
1520
+ var a = this.grid[d - 1][r] + this.gap_penalty, p = this.grid[d][r - 1] + this.gap_penalty, v = [h, a, p], D = this.arrayAllMaxIndexes(v);
1521
+ this.grid[d][r] = v[D[0]], this.tracebackGrid[d][r] = [D.includes(0), D.includes(1), D.includes(2)];
1522
+ }
1523
+ this.score = this.grid[this.iMax - 1][this.jMax - 1];
1524
+ }
1525
+ // Gets all possible valid sequence combinations
1526
+ }, {
1527
+ key: "alignmentTraceback",
1528
+ value: function() {
1529
+ var g = [];
1530
+ for (g.push({
1531
+ pos: [this.sequence1.length, this.sequence2.length],
1532
+ seq1: "",
1533
+ seq2: ""
1534
+ }); g[0]; ) {
1535
+ var n = g[0], d = this.tracebackGrid[n.pos[0]][n.pos[1]];
1536
+ d[0] && g.push({
1537
+ pos: [n.pos[0] - 1, n.pos[1] - 1],
1538
+ seq1: this.sequence1[n.pos[0] - 1] + n.seq1,
1539
+ seq2: this.sequence2[n.pos[1] - 1] + n.seq2
1540
+ }), d[1] && g.push({
1541
+ pos: [n.pos[0] - 1, n.pos[1]],
1542
+ seq1: this.sequence1[n.pos[0] - 1] + n.seq1,
1543
+ seq2: "-" + n.seq2
1544
+ }), d[2] && g.push({
1545
+ pos: [n.pos[0], n.pos[1] - 1],
1546
+ seq1: "-" + n.seq1,
1547
+ seq2: this.sequence2[n.pos[1] - 1] + n.seq2
1548
+ }), n.pos[0] === 0 && n.pos[1] === 0 && this.alignments.push({
1549
+ sequence1: n.seq1,
1550
+ sequence2: n.seq2
1551
+ }), g.shift();
1552
+ }
1553
+ return this.alignments;
1554
+ }
1555
+ // Helper Functions
1556
+ }, {
1557
+ key: "getAllIndexes",
1558
+ value: function(g, n) {
1559
+ for (var d = [], r = -1; (r = g.indexOf(n, r + 1)) !== -1; )
1560
+ d.push(r);
1561
+ return d;
1562
+ }
1563
+ }, {
1564
+ key: "arrayAllMaxIndexes",
1565
+ value: function(g) {
1566
+ return this.getAllIndexes(g, Math.max.apply(null, g));
1567
+ }
1568
+ }]), i;
1569
+ })();
1570
+ N.exports = t;
1571
+ }),
1572
+ /* 26 */
1573
+ /***/
1574
+ (function(N, I, L) {
1575
+ var o = function() {
1576
+ };
1577
+ o.FDLayout = L(18), o.FDLayoutConstants = L(7), o.FDLayoutEdge = L(19), o.FDLayoutNode = L(20), o.DimensionD = L(21), o.HashMap = L(22), o.HashSet = L(23), o.IGeometry = L(8), o.IMath = L(9), o.Integer = L(10), o.Point = L(12), o.PointD = L(4), o.RandomSeed = L(16), o.RectangleD = L(13), o.Transform = L(17), o.UniqueIDGeneretor = L(14), o.Quicksort = L(24), o.LinkedList = L(11), o.LGraphObject = L(2), o.LGraph = L(5), o.LEdge = L(1), o.LGraphManager = L(6), o.LNode = L(3), o.Layout = L(15), o.LayoutConstants = L(0), o.NeedlemanWunsch = L(25), N.exports = o;
1578
+ }),
1579
+ /* 27 */
1580
+ /***/
1581
+ (function(N, I, L) {
1582
+ function o() {
1583
+ this.listeners = [];
1584
+ }
1585
+ var e = o.prototype;
1586
+ e.addListener = function(t, i) {
1587
+ this.listeners.push({
1588
+ event: t,
1589
+ callback: i
1590
+ });
1591
+ }, e.removeListener = function(t, i) {
1592
+ for (var l = this.listeners.length; l >= 0; l--) {
1593
+ var g = this.listeners[l];
1594
+ g.event === t && g.callback === i && this.listeners.splice(l, 1);
1595
+ }
1596
+ }, e.emit = function(t, i) {
1597
+ for (var l = 0; l < this.listeners.length; l++) {
1598
+ var g = this.listeners[l];
1599
+ t === g.event && g.callback(i);
1600
+ }
1601
+ }, N.exports = o;
1602
+ })
1603
+ /******/
1604
+ ])
1605
+ );
1606
+ });
1607
+ })(Q)), Q.exports;
1608
+ }
1609
+ var ct = $.exports, z;
1610
+ function pt() {
1611
+ return z || (z = 1, (function(G, b) {
1612
+ (function(I, L) {
1613
+ G.exports = L(ft());
1614
+ })(ct, function(N) {
1615
+ return (
1616
+ /******/
1617
+ (function(I) {
1618
+ var L = {};
1619
+ function o(e) {
1620
+ if (L[e])
1621
+ return L[e].exports;
1622
+ var t = L[e] = {
1623
+ /******/
1624
+ i: e,
1625
+ /******/
1626
+ l: !1,
1627
+ /******/
1628
+ exports: {}
1629
+ /******/
1630
+ };
1631
+ return I[e].call(t.exports, t, t.exports, o), t.l = !0, t.exports;
1632
+ }
1633
+ return o.m = I, o.c = L, o.i = function(e) {
1634
+ return e;
1635
+ }, o.d = function(e, t, i) {
1636
+ o.o(e, t) || Object.defineProperty(e, t, {
1637
+ /******/
1638
+ configurable: !1,
1639
+ /******/
1640
+ enumerable: !0,
1641
+ /******/
1642
+ get: i
1643
+ /******/
1644
+ });
1645
+ }, o.n = function(e) {
1646
+ var t = e && e.__esModule ? (
1647
+ /******/
1648
+ function() {
1649
+ return e.default;
1650
+ }
1651
+ ) : (
1652
+ /******/
1653
+ function() {
1654
+ return e;
1655
+ }
1656
+ );
1657
+ return o.d(t, "a", t), t;
1658
+ }, o.o = function(e, t) {
1659
+ return Object.prototype.hasOwnProperty.call(e, t);
1660
+ }, o.p = "", o(o.s = 7);
1661
+ })([
1662
+ /* 0 */
1663
+ /***/
1664
+ (function(I, L) {
1665
+ I.exports = N;
1666
+ }),
1667
+ /* 1 */
1668
+ /***/
1669
+ (function(I, L, o) {
1670
+ var e = o(0).FDLayoutConstants;
1671
+ function t() {
1672
+ }
1673
+ for (var i in e)
1674
+ t[i] = e[i];
1675
+ t.DEFAULT_USE_MULTI_LEVEL_SCALING = !1, t.DEFAULT_RADIAL_SEPARATION = e.DEFAULT_EDGE_LENGTH, t.DEFAULT_COMPONENT_SEPERATION = 60, t.TILE = !0, t.TILING_PADDING_VERTICAL = 10, t.TILING_PADDING_HORIZONTAL = 10, t.TREE_REDUCTION_ON_INCREMENTAL = !1, I.exports = t;
1676
+ }),
1677
+ /* 2 */
1678
+ /***/
1679
+ (function(I, L, o) {
1680
+ var e = o(0).FDLayoutEdge;
1681
+ function t(l, g, n) {
1682
+ e.call(this, l, g, n);
1683
+ }
1684
+ t.prototype = Object.create(e.prototype);
1685
+ for (var i in e)
1686
+ t[i] = e[i];
1687
+ I.exports = t;
1688
+ }),
1689
+ /* 3 */
1690
+ /***/
1691
+ (function(I, L, o) {
1692
+ var e = o(0).LGraph;
1693
+ function t(l, g, n) {
1694
+ e.call(this, l, g, n);
1695
+ }
1696
+ t.prototype = Object.create(e.prototype);
1697
+ for (var i in e)
1698
+ t[i] = e[i];
1699
+ I.exports = t;
1700
+ }),
1701
+ /* 4 */
1702
+ /***/
1703
+ (function(I, L, o) {
1704
+ var e = o(0).LGraphManager;
1705
+ function t(l) {
1706
+ e.call(this, l);
1707
+ }
1708
+ t.prototype = Object.create(e.prototype);
1709
+ for (var i in e)
1710
+ t[i] = e[i];
1711
+ I.exports = t;
1712
+ }),
1713
+ /* 5 */
1714
+ /***/
1715
+ (function(I, L, o) {
1716
+ var e = o(0).FDLayoutNode, t = o(0).IMath;
1717
+ function i(g, n, d, r) {
1718
+ e.call(this, g, n, d, r);
1719
+ }
1720
+ i.prototype = Object.create(e.prototype);
1721
+ for (var l in e)
1722
+ i[l] = e[l];
1723
+ i.prototype.move = function() {
1724
+ var g = this.graphManager.getLayout();
1725
+ this.displacementX = g.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.noOfChildren, this.displacementY = g.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.noOfChildren, Math.abs(this.displacementX) > g.coolingFactor * g.maxNodeDisplacement && (this.displacementX = g.coolingFactor * g.maxNodeDisplacement * t.sign(this.displacementX)), Math.abs(this.displacementY) > g.coolingFactor * g.maxNodeDisplacement && (this.displacementY = g.coolingFactor * g.maxNodeDisplacement * t.sign(this.displacementY)), this.child == null ? this.moveBy(this.displacementX, this.displacementY) : this.child.getNodes().length == 0 ? this.moveBy(this.displacementX, this.displacementY) : this.propogateDisplacementToChildren(this.displacementX, this.displacementY), g.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;
1726
+ }, i.prototype.propogateDisplacementToChildren = function(g, n) {
1727
+ for (var d = this.getChild().getNodes(), r, h = 0; h < d.length; h++)
1728
+ r = d[h], r.getChild() == null ? (r.moveBy(g, n), r.displacementX += g, r.displacementY += n) : r.propogateDisplacementToChildren(g, n);
1729
+ }, i.prototype.setPred1 = function(g) {
1730
+ this.pred1 = g;
1731
+ }, i.prototype.getPred1 = function() {
1732
+ return pred1;
1733
+ }, i.prototype.getPred2 = function() {
1734
+ return pred2;
1735
+ }, i.prototype.setNext = function(g) {
1736
+ this.next = g;
1737
+ }, i.prototype.getNext = function() {
1738
+ return next;
1739
+ }, i.prototype.setProcessed = function(g) {
1740
+ this.processed = g;
1741
+ }, i.prototype.isProcessed = function() {
1742
+ return processed;
1743
+ }, I.exports = i;
1744
+ }),
1745
+ /* 6 */
1746
+ /***/
1747
+ (function(I, L, o) {
1748
+ var e = o(0).FDLayout, t = o(4), i = o(3), l = o(5), g = o(2), n = o(1), d = o(0).FDLayoutConstants, r = o(0).LayoutConstants, h = o(0).Point, a = o(0).PointD, p = o(0).Layout, v = o(0).Integer, D = o(0).IGeometry, u = o(0).LGraph, T = o(0).Transform;
1749
+ function y() {
1750
+ e.call(this), this.toBeTiled = {};
1751
+ }
1752
+ y.prototype = Object.create(e.prototype);
1753
+ for (var O in e)
1754
+ y[O] = e[O];
1755
+ y.prototype.newGraphManager = function() {
1756
+ var s = new t(this);
1757
+ return this.graphManager = s, s;
1758
+ }, y.prototype.newGraph = function(s) {
1759
+ return new i(null, this.graphManager, s);
1760
+ }, y.prototype.newNode = function(s) {
1761
+ return new l(this.graphManager, s);
1762
+ }, y.prototype.newEdge = function(s) {
1763
+ return new g(null, null, s);
1764
+ }, y.prototype.initParameters = function() {
1765
+ e.prototype.initParameters.call(this, arguments), this.isSubLayout || (n.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = n.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.springConstant = d.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = d.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = d.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = d.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = d.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1, this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / d.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = d.CONVERGENCE_CHECK_PERIOD / this.maxIterations, this.coolingAdjuster = 1);
1766
+ }, y.prototype.layout = function() {
1767
+ var s = r.DEFAULT_CREATE_BENDS_AS_NEEDED;
1768
+ return s && (this.createBendpoints(), this.graphManager.resetAllEdges()), this.level = 0, this.classicLayout();
1769
+ }, y.prototype.classicLayout = function() {
1770
+ 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) {
1771
+ if (n.TREE_REDUCTION_ON_INCREMENTAL) {
1772
+ this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation();
1773
+ var f = new Set(this.getAllNodes()), c = this.nodesWithGravity.filter(function(m) {
1774
+ return f.has(m);
1775
+ });
1776
+ this.graphManager.setAllNodesToApplyGravitation(c);
1777
+ }
1778
+ } else {
1779
+ var s = this.getFlatForest();
1780
+ if (s.length > 0)
1781
+ this.positionNodesRadially(s);
1782
+ else {
1783
+ this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation();
1784
+ var f = new Set(this.getAllNodes()), c = this.nodesWithGravity.filter(function(E) {
1785
+ return f.has(E);
1786
+ });
1787
+ this.graphManager.setAllNodesToApplyGravitation(c), this.positionNodesRandomly();
1788
+ }
1789
+ }
1790
+ return this.initSpringEmbedder(), this.runSpringEmbedder(), !0;
1791
+ }, y.prototype.tick = function() {
1792
+ if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished)
1793
+ if (this.prunedNodesAll.length > 0)
1794
+ this.isTreeGrowing = !0;
1795
+ else
1796
+ return !0;
1797
+ if (this.totalIterations % d.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
1798
+ if (this.isConverged())
1799
+ if (this.prunedNodesAll.length > 0)
1800
+ this.isTreeGrowing = !0;
1801
+ else
1802
+ return !0;
1803
+ 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));
1804
+ }
1805
+ if (this.isTreeGrowing) {
1806
+ if (this.growTreeIterations % 10 == 0)
1807
+ if (this.prunedNodesAll.length > 0) {
1808
+ this.graphManager.updateBounds(), this.updateGrid(), this.growTree(this.prunedNodesAll), this.graphManager.resetAllNodesToApplyGravitation();
1809
+ var s = new Set(this.getAllNodes()), f = this.nodesWithGravity.filter(function(A) {
1810
+ return s.has(A);
1811
+ });
1812
+ this.graphManager.setAllNodesToApplyGravitation(f), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor = d.DEFAULT_COOLING_FACTOR_INCREMENTAL;
1813
+ } else
1814
+ this.isTreeGrowing = !1, this.isGrowthFinished = !0;
1815
+ this.growTreeIterations++;
1816
+ }
1817
+ if (this.isGrowthFinished) {
1818
+ if (this.isConverged())
1819
+ return !0;
1820
+ this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), this.coolingFactor = d.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
1821
+ }
1822
+ var c = !this.isTreeGrowing && !this.isGrowthFinished, E = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished;
1823
+ return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(c, E), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1;
1824
+ }, y.prototype.getPositionsData = function() {
1825
+ for (var s = this.graphManager.getAllNodes(), f = {}, c = 0; c < s.length; c++) {
1826
+ var E = s[c].rect, A = s[c].id;
1827
+ f[A] = {
1828
+ id: A,
1829
+ x: E.getCenterX(),
1830
+ y: E.getCenterY(),
1831
+ w: E.width,
1832
+ h: E.height
1833
+ };
1834
+ }
1835
+ return f;
1836
+ }, y.prototype.runSpringEmbedder = function() {
1837
+ this.initialAnimationPeriod = 25, this.animationPeriod = this.initialAnimationPeriod;
1838
+ var s = !1;
1839
+ if (d.ANIMATE === "during")
1840
+ this.emit("layoutstarted");
1841
+ else {
1842
+ for (; !s; )
1843
+ s = this.tick();
1844
+ this.graphManager.updateBounds();
1845
+ }
1846
+ }, y.prototype.calculateNodesToApplyGravitationTo = function() {
1847
+ var s = [], f, c = this.graphManager.getGraphs(), E = c.length, A;
1848
+ for (A = 0; A < E; A++)
1849
+ f = c[A], f.updateConnected(), f.isConnected || (s = s.concat(f.getNodes()));
1850
+ return s;
1851
+ }, y.prototype.createBendpoints = function() {
1852
+ var s = [];
1853
+ s = s.concat(this.graphManager.getAllEdges());
1854
+ var f = /* @__PURE__ */ new Set(), c;
1855
+ for (c = 0; c < s.length; c++) {
1856
+ var E = s[c];
1857
+ if (!f.has(E)) {
1858
+ var A = E.getSource(), m = E.getTarget();
1859
+ if (A == m)
1860
+ E.getBendpoints().push(new a()), E.getBendpoints().push(new a()), this.createDummyNodesForBendpoints(E), f.add(E);
1861
+ else {
1862
+ var C = [];
1863
+ if (C = C.concat(A.getEdgeListToNode(m)), C = C.concat(m.getEdgeListToNode(A)), !f.has(C[0])) {
1864
+ if (C.length > 1) {
1865
+ var R;
1866
+ for (R = 0; R < C.length; R++) {
1867
+ var M = C[R];
1868
+ M.getBendpoints().push(new a()), this.createDummyNodesForBendpoints(M);
1869
+ }
1870
+ }
1871
+ C.forEach(function(S) {
1872
+ f.add(S);
1873
+ });
1874
+ }
1875
+ }
1876
+ }
1877
+ if (f.size == s.length)
1878
+ break;
1879
+ }
1880
+ }, y.prototype.positionNodesRadially = function(s) {
1881
+ for (var f = new h(0, 0), c = Math.ceil(Math.sqrt(s.length)), E = 0, A = 0, m = 0, C = new a(0, 0), R = 0; R < s.length; R++) {
1882
+ R % c == 0 && (m = 0, A = E, R != 0 && (A += n.DEFAULT_COMPONENT_SEPERATION), E = 0);
1883
+ var M = s[R], S = p.findCenterOfTree(M);
1884
+ f.x = m, f.y = A, C = y.radialLayout(M, S, f), C.y > E && (E = Math.floor(C.y)), m = Math.floor(C.x + n.DEFAULT_COMPONENT_SEPERATION);
1885
+ }
1886
+ this.transform(new a(r.WORLD_CENTER_X - C.x / 2, r.WORLD_CENTER_Y - C.y / 2));
1887
+ }, y.radialLayout = function(s, f, c) {
1888
+ var E = Math.max(this.maxDiagonalInTree(s), n.DEFAULT_RADIAL_SEPARATION);
1889
+ y.branchRadialLayout(f, null, 0, 359, 0, E);
1890
+ var A = u.calculateBounds(s), m = new T();
1891
+ m.setDeviceOrgX(A.getMinX()), m.setDeviceOrgY(A.getMinY()), m.setWorldOrgX(c.x), m.setWorldOrgY(c.y);
1892
+ for (var C = 0; C < s.length; C++) {
1893
+ var R = s[C];
1894
+ R.transform(m);
1895
+ }
1896
+ var M = new a(A.getMaxX(), A.getMaxY());
1897
+ return m.inverseTransformPoint(M);
1898
+ }, y.branchRadialLayout = function(s, f, c, E, A, m) {
1899
+ var C = (E - c + 1) / 2;
1900
+ C < 0 && (C += 180);
1901
+ var R = (C + c) % 360, M = R * D.TWO_PI / 360, S = A * Math.cos(M), Y = A * Math.sin(M);
1902
+ s.setCenter(S, Y);
1903
+ var w = [];
1904
+ w = w.concat(s.getEdges());
1905
+ var x = w.length;
1906
+ f != null && x--;
1907
+ for (var F = 0, U = w.length, P, _ = s.getEdgesBetween(f); _.length > 1; ) {
1908
+ var X = _[0];
1909
+ _.splice(0, 1);
1910
+ var H = w.indexOf(X);
1911
+ H >= 0 && w.splice(H, 1), U--, x--;
1912
+ }
1913
+ f != null ? P = (w.indexOf(_[0]) + 1) % U : P = 0;
1914
+ for (var W = Math.abs(E - c) / x, B = P; F != x; B = ++B % U) {
1915
+ var K = w[B].getOtherEnd(s);
1916
+ if (K != f) {
1917
+ var q = (c + F * W) % 360, ht = (q + W) % 360;
1918
+ y.branchRadialLayout(K, s, q, ht, A + m, m), F++;
1919
+ }
1920
+ }
1921
+ }, y.maxDiagonalInTree = function(s) {
1922
+ for (var f = v.MIN_VALUE, c = 0; c < s.length; c++) {
1923
+ var E = s[c], A = E.getDiagonal();
1924
+ A > f && (f = A);
1925
+ }
1926
+ return f;
1927
+ }, y.prototype.calcRepulsionRange = function() {
1928
+ return 2 * (this.level + 1) * this.idealEdgeLength;
1929
+ }, y.prototype.groupZeroDegreeMembers = function() {
1930
+ var s = this, f = {};
1931
+ this.memberGroups = {}, this.idToDummyNode = {};
1932
+ for (var c = [], E = this.graphManager.getAllNodes(), A = 0; A < E.length; A++) {
1933
+ var m = E[A], C = m.getParent();
1934
+ this.getNodeDegreeWithChildren(m) === 0 && (C.id == null || !this.getToBeTiled(C)) && c.push(m);
1935
+ }
1936
+ for (var A = 0; A < c.length; A++) {
1937
+ var m = c[A], R = m.getParent().id;
1938
+ typeof f[R] > "u" && (f[R] = []), f[R] = f[R].concat(m);
1939
+ }
1940
+ Object.keys(f).forEach(function(M) {
1941
+ if (f[M].length > 1) {
1942
+ var S = "DummyCompound_" + M;
1943
+ s.memberGroups[S] = f[M];
1944
+ var Y = f[M][0].getParent(), w = new l(s.graphManager);
1945
+ w.id = S, w.paddingLeft = Y.paddingLeft || 0, w.paddingRight = Y.paddingRight || 0, w.paddingBottom = Y.paddingBottom || 0, w.paddingTop = Y.paddingTop || 0, s.idToDummyNode[S] = w;
1946
+ var x = s.getGraphManager().add(s.newGraph(), w), F = Y.getChild();
1947
+ F.add(w);
1948
+ for (var U = 0; U < f[M].length; U++) {
1949
+ var P = f[M][U];
1950
+ F.remove(P), x.add(P);
1951
+ }
1952
+ }
1953
+ });
1954
+ }, y.prototype.clearCompounds = function() {
1955
+ var s = {}, f = {};
1956
+ this.performDFSOnCompounds();
1957
+ for (var c = 0; c < this.compoundOrder.length; c++)
1958
+ f[this.compoundOrder[c].id] = this.compoundOrder[c], s[this.compoundOrder[c].id] = [].concat(this.compoundOrder[c].getChild().getNodes()), this.graphManager.remove(this.compoundOrder[c].getChild()), this.compoundOrder[c].child = null;
1959
+ this.graphManager.resetAllNodes(), this.tileCompoundMembers(s, f);
1960
+ }, y.prototype.clearZeroDegreeMembers = function() {
1961
+ var s = this, f = this.tiledZeroDegreePack = [];
1962
+ Object.keys(this.memberGroups).forEach(function(c) {
1963
+ var E = s.idToDummyNode[c];
1964
+ f[c] = s.tileNodes(s.memberGroups[c], E.paddingLeft + E.paddingRight), E.rect.width = f[c].width, E.rect.height = f[c].height;
1965
+ });
1966
+ }, y.prototype.repopulateCompounds = function() {
1967
+ for (var s = this.compoundOrder.length - 1; s >= 0; s--) {
1968
+ var f = this.compoundOrder[s], c = f.id, E = f.paddingLeft, A = f.paddingTop;
1969
+ this.adjustLocations(this.tiledMemberPack[c], f.rect.x, f.rect.y, E, A);
1970
+ }
1971
+ }, y.prototype.repopulateZeroDegreeMembers = function() {
1972
+ var s = this, f = this.tiledZeroDegreePack;
1973
+ Object.keys(f).forEach(function(c) {
1974
+ var E = s.idToDummyNode[c], A = E.paddingLeft, m = E.paddingTop;
1975
+ s.adjustLocations(f[c], E.rect.x, E.rect.y, A, m);
1976
+ });
1977
+ }, y.prototype.getToBeTiled = function(s) {
1978
+ var f = s.id;
1979
+ if (this.toBeTiled[f] != null)
1980
+ return this.toBeTiled[f];
1981
+ var c = s.getChild();
1982
+ if (c == null)
1983
+ return this.toBeTiled[f] = !1, !1;
1984
+ for (var E = c.getNodes(), A = 0; A < E.length; A++) {
1985
+ var m = E[A];
1986
+ if (this.getNodeDegree(m) > 0)
1987
+ return this.toBeTiled[f] = !1, !1;
1988
+ if (m.getChild() == null) {
1989
+ this.toBeTiled[m.id] = !1;
1990
+ continue;
1991
+ }
1992
+ if (!this.getToBeTiled(m))
1993
+ return this.toBeTiled[f] = !1, !1;
1994
+ }
1995
+ return this.toBeTiled[f] = !0, !0;
1996
+ }, y.prototype.getNodeDegree = function(s) {
1997
+ s.id;
1998
+ for (var f = s.getEdges(), c = 0, E = 0; E < f.length; E++) {
1999
+ var A = f[E];
2000
+ A.getSource().id !== A.getTarget().id && (c = c + 1);
2001
+ }
2002
+ return c;
2003
+ }, y.prototype.getNodeDegreeWithChildren = function(s) {
2004
+ var f = this.getNodeDegree(s);
2005
+ if (s.getChild() == null)
2006
+ return f;
2007
+ for (var c = s.getChild().getNodes(), E = 0; E < c.length; E++) {
2008
+ var A = c[E];
2009
+ f += this.getNodeDegreeWithChildren(A);
2010
+ }
2011
+ return f;
2012
+ }, y.prototype.performDFSOnCompounds = function() {
2013
+ this.compoundOrder = [], this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes());
2014
+ }, y.prototype.fillCompexOrderByDFS = function(s) {
2015
+ for (var f = 0; f < s.length; f++) {
2016
+ var c = s[f];
2017
+ c.getChild() != null && this.fillCompexOrderByDFS(c.getChild().getNodes()), this.getToBeTiled(c) && this.compoundOrder.push(c);
2018
+ }
2019
+ }, y.prototype.adjustLocations = function(s, f, c, E, A) {
2020
+ f += E, c += A;
2021
+ for (var m = f, C = 0; C < s.rows.length; C++) {
2022
+ var R = s.rows[C];
2023
+ f = m;
2024
+ for (var M = 0, S = 0; S < R.length; S++) {
2025
+ var Y = R[S];
2026
+ Y.rect.x = f, Y.rect.y = c, f += Y.rect.width + s.horizontalPadding, Y.rect.height > M && (M = Y.rect.height);
2027
+ }
2028
+ c += M + s.verticalPadding;
2029
+ }
2030
+ }, y.prototype.tileCompoundMembers = function(s, f) {
2031
+ var c = this;
2032
+ this.tiledMemberPack = [], Object.keys(s).forEach(function(E) {
2033
+ var A = f[E];
2034
+ c.tiledMemberPack[E] = c.tileNodes(s[E], A.paddingLeft + A.paddingRight), A.rect.width = c.tiledMemberPack[E].width, A.rect.height = c.tiledMemberPack[E].height;
2035
+ });
2036
+ }, y.prototype.tileNodes = function(s, f) {
2037
+ var c = n.TILING_PADDING_VERTICAL, E = n.TILING_PADDING_HORIZONTAL, A = {
2038
+ rows: [],
2039
+ rowWidth: [],
2040
+ rowHeight: [],
2041
+ width: 0,
2042
+ height: f,
2043
+ // assume minHeight equals to minWidth
2044
+ verticalPadding: c,
2045
+ horizontalPadding: E
2046
+ };
2047
+ s.sort(function(R, M) {
2048
+ return R.rect.width * R.rect.height > M.rect.width * M.rect.height ? -1 : R.rect.width * R.rect.height < M.rect.width * M.rect.height ? 1 : 0;
2049
+ });
2050
+ for (var m = 0; m < s.length; m++) {
2051
+ var C = s[m];
2052
+ A.rows.length == 0 ? this.insertNodeToRow(A, C, 0, f) : this.canAddHorizontal(A, C.rect.width, C.rect.height) ? this.insertNodeToRow(A, C, this.getShortestRowIndex(A), f) : this.insertNodeToRow(A, C, A.rows.length, f), this.shiftToLastRow(A);
2053
+ }
2054
+ return A;
2055
+ }, y.prototype.insertNodeToRow = function(s, f, c, E) {
2056
+ var A = E;
2057
+ if (c == s.rows.length) {
2058
+ var m = [];
2059
+ s.rows.push(m), s.rowWidth.push(A), s.rowHeight.push(0);
2060
+ }
2061
+ var C = s.rowWidth[c] + f.rect.width;
2062
+ s.rows[c].length > 0 && (C += s.horizontalPadding), s.rowWidth[c] = C, s.width < C && (s.width = C);
2063
+ var R = f.rect.height;
2064
+ c > 0 && (R += s.verticalPadding);
2065
+ var M = 0;
2066
+ R > s.rowHeight[c] && (M = s.rowHeight[c], s.rowHeight[c] = R, M = s.rowHeight[c] - M), s.height += M, s.rows[c].push(f);
2067
+ }, y.prototype.getShortestRowIndex = function(s) {
2068
+ for (var f = -1, c = Number.MAX_VALUE, E = 0; E < s.rows.length; E++)
2069
+ s.rowWidth[E] < c && (f = E, c = s.rowWidth[E]);
2070
+ return f;
2071
+ }, y.prototype.getLongestRowIndex = function(s) {
2072
+ for (var f = -1, c = Number.MIN_VALUE, E = 0; E < s.rows.length; E++)
2073
+ s.rowWidth[E] > c && (f = E, c = s.rowWidth[E]);
2074
+ return f;
2075
+ }, y.prototype.canAddHorizontal = function(s, f, c) {
2076
+ var E = this.getShortestRowIndex(s);
2077
+ if (E < 0)
2078
+ return !0;
2079
+ var A = s.rowWidth[E];
2080
+ if (A + s.horizontalPadding + f <= s.width) return !0;
2081
+ var m = 0;
2082
+ s.rowHeight[E] < c && E > 0 && (m = c + s.verticalPadding - s.rowHeight[E]);
2083
+ var C;
2084
+ s.width - A >= f + s.horizontalPadding ? C = (s.height + m) / (A + f + s.horizontalPadding) : C = (s.height + m) / s.width, m = c + s.verticalPadding;
2085
+ var R;
2086
+ return s.width < f ? R = (s.height + m) / f : R = (s.height + m) / s.width, R < 1 && (R = 1 / R), C < 1 && (C = 1 / C), C < R;
2087
+ }, y.prototype.shiftToLastRow = function(s) {
2088
+ var f = this.getLongestRowIndex(s), c = s.rowWidth.length - 1, E = s.rows[f], A = E[E.length - 1], m = A.width + s.horizontalPadding;
2089
+ if (s.width - s.rowWidth[c] > m && f != c) {
2090
+ E.splice(-1, 1), s.rows[c].push(A), s.rowWidth[f] = s.rowWidth[f] - m, s.rowWidth[c] = s.rowWidth[c] + m, s.width = s.rowWidth[instance.getLongestRowIndex(s)];
2091
+ for (var C = Number.MIN_VALUE, R = 0; R < E.length; R++)
2092
+ E[R].height > C && (C = E[R].height);
2093
+ f > 0 && (C += s.verticalPadding);
2094
+ var M = s.rowHeight[f] + s.rowHeight[c];
2095
+ s.rowHeight[f] = C, s.rowHeight[c] < A.height + s.verticalPadding && (s.rowHeight[c] = A.height + s.verticalPadding);
2096
+ var S = s.rowHeight[f] + s.rowHeight[c];
2097
+ s.height += S - M, this.shiftToLastRow(s);
2098
+ }
2099
+ }, y.prototype.tilingPreLayout = function() {
2100
+ n.TILE && (this.groupZeroDegreeMembers(), this.clearCompounds(), this.clearZeroDegreeMembers());
2101
+ }, y.prototype.tilingPostLayout = function() {
2102
+ n.TILE && (this.repopulateZeroDegreeMembers(), this.repopulateCompounds());
2103
+ }, y.prototype.reduceTrees = function() {
2104
+ for (var s = [], f = !0, c; f; ) {
2105
+ var E = this.graphManager.getAllNodes(), A = [];
2106
+ f = !1;
2107
+ for (var m = 0; m < E.length; m++)
2108
+ c = E[m], c.getEdges().length == 1 && !c.getEdges()[0].isInterGraph && c.getChild() == null && (A.push([c, c.getEdges()[0], c.getOwner()]), f = !0);
2109
+ if (f == !0) {
2110
+ for (var C = [], R = 0; R < A.length; R++)
2111
+ A[R][0].getEdges().length == 1 && (C.push(A[R]), A[R][0].getOwner().remove(A[R][0]));
2112
+ s.push(C), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2113
+ }
2114
+ }
2115
+ this.prunedNodesAll = s;
2116
+ }, y.prototype.growTree = function(s) {
2117
+ for (var f = s.length, c = s[f - 1], E, A = 0; A < c.length; A++)
2118
+ E = c[A], this.findPlaceforPrunedNode(E), E[2].add(E[0]), E[2].add(E[1], E[1].source, E[1].target);
2119
+ s.splice(s.length - 1, 1), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2120
+ }, y.prototype.findPlaceforPrunedNode = function(s) {
2121
+ var f, c, E = s[0];
2122
+ E == s[1].source ? c = s[1].target : c = s[1].source;
2123
+ var A = c.startX, m = c.finishX, C = c.startY, R = c.finishY, M = 0, S = 0, Y = 0, w = 0, x = [M, Y, S, w];
2124
+ if (C > 0)
2125
+ for (var F = A; F <= m; F++)
2126
+ x[0] += this.grid[F][C - 1].length + this.grid[F][C].length - 1;
2127
+ if (m < this.grid.length - 1)
2128
+ for (var F = C; F <= R; F++)
2129
+ x[1] += this.grid[m + 1][F].length + this.grid[m][F].length - 1;
2130
+ if (R < this.grid[0].length - 1)
2131
+ for (var F = A; F <= m; F++)
2132
+ x[2] += this.grid[F][R + 1].length + this.grid[F][R].length - 1;
2133
+ if (A > 0)
2134
+ for (var F = C; F <= R; F++)
2135
+ x[3] += this.grid[A - 1][F].length + this.grid[A][F].length - 1;
2136
+ for (var U = v.MAX_VALUE, P, _, X = 0; X < x.length; X++)
2137
+ x[X] < U ? (U = x[X], P = 1, _ = X) : x[X] == U && P++;
2138
+ if (P == 3 && U == 0)
2139
+ x[0] == 0 && x[1] == 0 && x[2] == 0 ? f = 1 : x[0] == 0 && x[1] == 0 && x[3] == 0 ? f = 0 : x[0] == 0 && x[2] == 0 && x[3] == 0 ? f = 3 : x[1] == 0 && x[2] == 0 && x[3] == 0 && (f = 2);
2140
+ else if (P == 2 && U == 0) {
2141
+ var H = Math.floor(Math.random() * 2);
2142
+ x[0] == 0 && x[1] == 0 ? H == 0 ? f = 0 : f = 1 : x[0] == 0 && x[2] == 0 ? H == 0 ? f = 0 : f = 2 : x[0] == 0 && x[3] == 0 ? H == 0 ? f = 0 : f = 3 : x[1] == 0 && x[2] == 0 ? H == 0 ? f = 1 : f = 2 : x[1] == 0 && x[3] == 0 ? H == 0 ? f = 1 : f = 3 : H == 0 ? f = 2 : f = 3;
2143
+ } else if (P == 4 && U == 0) {
2144
+ var H = Math.floor(Math.random() * 4);
2145
+ f = H;
2146
+ } else
2147
+ f = _;
2148
+ f == 0 ? E.setCenter(c.getCenterX(), c.getCenterY() - c.getHeight() / 2 - d.DEFAULT_EDGE_LENGTH - E.getHeight() / 2) : f == 1 ? E.setCenter(c.getCenterX() + c.getWidth() / 2 + d.DEFAULT_EDGE_LENGTH + E.getWidth() / 2, c.getCenterY()) : f == 2 ? E.setCenter(c.getCenterX(), c.getCenterY() + c.getHeight() / 2 + d.DEFAULT_EDGE_LENGTH + E.getHeight() / 2) : E.setCenter(c.getCenterX() - c.getWidth() / 2 - d.DEFAULT_EDGE_LENGTH - E.getWidth() / 2, c.getCenterY());
2149
+ }, I.exports = y;
2150
+ }),
2151
+ /* 7 */
2152
+ /***/
2153
+ (function(I, L, o) {
2154
+ var e = {};
2155
+ e.layoutBase = o(0), e.CoSEConstants = o(1), e.CoSEEdge = o(2), e.CoSEGraph = o(3), e.CoSEGraphManager = o(4), e.CoSELayout = o(6), e.CoSENode = o(5), I.exports = e;
2156
+ })
2157
+ /******/
2158
+ ])
2159
+ );
2160
+ });
2161
+ })($)), $.exports;
2162
+ }
2163
+ var dt = Z.exports, J;
2164
+ function vt() {
2165
+ return J || (J = 1, (function(G, b) {
2166
+ (function(I, L) {
2167
+ G.exports = L(pt());
2168
+ })(dt, function(N) {
2169
+ return (
2170
+ /******/
2171
+ (function(I) {
2172
+ var L = {};
2173
+ function o(e) {
2174
+ if (L[e])
2175
+ return L[e].exports;
2176
+ var t = L[e] = {
2177
+ /******/
2178
+ i: e,
2179
+ /******/
2180
+ l: !1,
2181
+ /******/
2182
+ exports: {}
2183
+ /******/
2184
+ };
2185
+ return I[e].call(t.exports, t, t.exports, o), t.l = !0, t.exports;
2186
+ }
2187
+ return o.m = I, o.c = L, o.i = function(e) {
2188
+ return e;
2189
+ }, o.d = function(e, t, i) {
2190
+ o.o(e, t) || Object.defineProperty(e, t, {
2191
+ /******/
2192
+ configurable: !1,
2193
+ /******/
2194
+ enumerable: !0,
2195
+ /******/
2196
+ get: i
2197
+ /******/
2198
+ });
2199
+ }, o.n = function(e) {
2200
+ var t = e && e.__esModule ? (
2201
+ /******/
2202
+ function() {
2203
+ return e.default;
2204
+ }
2205
+ ) : (
2206
+ /******/
2207
+ function() {
2208
+ return e;
2209
+ }
2210
+ );
2211
+ return o.d(t, "a", t), t;
2212
+ }, o.o = function(e, t) {
2213
+ return Object.prototype.hasOwnProperty.call(e, t);
2214
+ }, o.p = "", o(o.s = 1);
2215
+ })([
2216
+ /* 0 */
2217
+ /***/
2218
+ (function(I, L) {
2219
+ I.exports = N;
2220
+ }),
2221
+ /* 1 */
2222
+ /***/
2223
+ (function(I, L, o) {
2224
+ var e = o(0).layoutBase.LayoutConstants, t = o(0).layoutBase.FDLayoutConstants, i = o(0).CoSEConstants, l = o(0).CoSELayout, g = o(0).CoSENode, n = o(0).layoutBase.PointD, d = o(0).layoutBase.DimensionD, r = {
2225
+ // Called on `layoutready`
2226
+ ready: function() {
2227
+ },
2228
+ // Called on `layoutstop`
2229
+ stop: function() {
2230
+ },
2231
+ // 'draft', 'default' or 'proof"
2232
+ // - 'draft' fast cooling rate
2233
+ // - 'default' moderate cooling rate
2234
+ // - "proof" slow cooling rate
2235
+ quality: "default",
2236
+ // include labels in node dimensions
2237
+ nodeDimensionsIncludeLabels: !1,
2238
+ // number of ticks per frame; higher is faster but more jerky
2239
+ refresh: 30,
2240
+ // Whether to fit the network view after when done
2241
+ fit: !0,
2242
+ // Padding on fit
2243
+ padding: 10,
2244
+ // Whether to enable incremental mode
2245
+ randomize: !0,
2246
+ // Node repulsion (non overlapping) multiplier
2247
+ nodeRepulsion: 4500,
2248
+ // Ideal edge (non nested) length
2249
+ idealEdgeLength: 50,
2250
+ // Divisor to compute edge forces
2251
+ edgeElasticity: 0.45,
2252
+ // Nesting factor (multiplier) to compute ideal edge length for nested edges
2253
+ nestingFactor: 0.1,
2254
+ // Gravity force (constant)
2255
+ gravity: 0.25,
2256
+ // Maximum number of iterations to perform
2257
+ numIter: 2500,
2258
+ // For enabling tiling
2259
+ tile: !0,
2260
+ // Type of layout animation. The option set is {'during', 'end', false}
2261
+ animate: "end",
2262
+ // Duration for animate:end
2263
+ animationDuration: 500,
2264
+ // Represents the amount of the vertical space to put between the zero degree members during the tiling operation(can also be a function)
2265
+ tilingPaddingVertical: 10,
2266
+ // Represents the amount of the horizontal space to put between the zero degree members during the tiling operation(can also be a function)
2267
+ tilingPaddingHorizontal: 10,
2268
+ // Gravity range (constant) for compounds
2269
+ gravityRangeCompound: 1.5,
2270
+ // Gravity force (constant) for compounds
2271
+ gravityCompound: 1,
2272
+ // Gravity range (constant)
2273
+ gravityRange: 3.8,
2274
+ // Initial cooling factor for incremental layout
2275
+ initialEnergyOnIncremental: 0.5
2276
+ };
2277
+ function h(D, u) {
2278
+ var T = {};
2279
+ for (var y in D)
2280
+ T[y] = D[y];
2281
+ for (var y in u)
2282
+ T[y] = u[y];
2283
+ return T;
2284
+ }
2285
+ function a(D) {
2286
+ this.options = h(r, D), p(this.options);
2287
+ }
2288
+ var p = function(u) {
2289
+ u.nodeRepulsion != null && (i.DEFAULT_REPULSION_STRENGTH = t.DEFAULT_REPULSION_STRENGTH = u.nodeRepulsion), u.idealEdgeLength != null && (i.DEFAULT_EDGE_LENGTH = t.DEFAULT_EDGE_LENGTH = u.idealEdgeLength), u.edgeElasticity != null && (i.DEFAULT_SPRING_STRENGTH = t.DEFAULT_SPRING_STRENGTH = u.edgeElasticity), u.nestingFactor != null && (i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = u.nestingFactor), u.gravity != null && (i.DEFAULT_GRAVITY_STRENGTH = t.DEFAULT_GRAVITY_STRENGTH = u.gravity), u.numIter != null && (i.MAX_ITERATIONS = t.MAX_ITERATIONS = u.numIter), u.gravityRange != null && (i.DEFAULT_GRAVITY_RANGE_FACTOR = t.DEFAULT_GRAVITY_RANGE_FACTOR = u.gravityRange), u.gravityCompound != null && (i.DEFAULT_COMPOUND_GRAVITY_STRENGTH = t.DEFAULT_COMPOUND_GRAVITY_STRENGTH = u.gravityCompound), u.gravityRangeCompound != null && (i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = u.gravityRangeCompound), u.initialEnergyOnIncremental != null && (i.DEFAULT_COOLING_FACTOR_INCREMENTAL = t.DEFAULT_COOLING_FACTOR_INCREMENTAL = u.initialEnergyOnIncremental), u.quality == "draft" ? e.QUALITY = 0 : u.quality == "proof" ? e.QUALITY = 2 : e.QUALITY = 1, i.NODE_DIMENSIONS_INCLUDE_LABELS = t.NODE_DIMENSIONS_INCLUDE_LABELS = e.NODE_DIMENSIONS_INCLUDE_LABELS = u.nodeDimensionsIncludeLabels, i.DEFAULT_INCREMENTAL = t.DEFAULT_INCREMENTAL = e.DEFAULT_INCREMENTAL = !u.randomize, i.ANIMATE = t.ANIMATE = e.ANIMATE = u.animate, i.TILE = u.tile, i.TILING_PADDING_VERTICAL = typeof u.tilingPaddingVertical == "function" ? u.tilingPaddingVertical.call() : u.tilingPaddingVertical, i.TILING_PADDING_HORIZONTAL = typeof u.tilingPaddingHorizontal == "function" ? u.tilingPaddingHorizontal.call() : u.tilingPaddingHorizontal;
2290
+ };
2291
+ a.prototype.run = function() {
2292
+ var D, u, T = this.options;
2293
+ this.idToLNode = {};
2294
+ var y = this.layout = new l(), O = this;
2295
+ O.stopped = !1, this.cy = this.options.cy, this.cy.trigger({ type: "layoutstart", layout: this });
2296
+ var s = y.newGraphManager();
2297
+ this.gm = s;
2298
+ var f = this.options.eles.nodes(), c = this.options.eles.edges();
2299
+ this.root = s.addRoot(), this.processChildrenList(this.root, this.getTopMostNodes(f), y);
2300
+ for (var E = 0; E < c.length; E++) {
2301
+ var A = c[E], m = this.idToLNode[A.data("source")], C = this.idToLNode[A.data("target")];
2302
+ if (m !== C && m.getEdgesBetween(C).length == 0) {
2303
+ var R = s.add(y.newEdge(), m, C);
2304
+ R.id = A.id();
2305
+ }
2306
+ }
2307
+ var M = function(w, x) {
2308
+ typeof w == "number" && (w = x);
2309
+ var F = w.data("id"), U = O.idToLNode[F];
2310
+ return {
2311
+ x: U.getRect().getCenterX(),
2312
+ y: U.getRect().getCenterY()
2313
+ };
2314
+ }, S = function Y() {
2315
+ for (var w = function() {
2316
+ T.fit && T.cy.fit(T.eles, T.padding), D || (D = !0, O.cy.one("layoutready", T.ready), O.cy.trigger({ type: "layoutready", layout: O }));
2317
+ }, x = O.options.refresh, F, U = 0; U < x && !F; U++)
2318
+ F = O.stopped || O.layout.tick();
2319
+ if (F) {
2320
+ y.checkLayoutSuccess() && !y.isSubLayout && y.doPostLayout(), y.tilingPostLayout && y.tilingPostLayout(), y.isLayoutFinished = !0, O.options.eles.nodes().positions(M), w(), O.cy.one("layoutstop", O.options.stop), O.cy.trigger({ type: "layoutstop", layout: O }), u && cancelAnimationFrame(u), D = !1;
2321
+ return;
2322
+ }
2323
+ var P = O.layout.getPositionsData();
2324
+ T.eles.nodes().positions(function(_, X) {
2325
+ if (typeof _ == "number" && (_ = X), !_.isParent()) {
2326
+ for (var H = _.id(), W = P[H], B = _; W == null && (W = P[B.data("parent")] || P["DummyCompound_" + B.data("parent")], P[H] = W, B = B.parent()[0], B != null); )
2327
+ ;
2328
+ return W != null ? {
2329
+ x: W.x,
2330
+ y: W.y
2331
+ } : {
2332
+ x: _.position("x"),
2333
+ y: _.position("y")
2334
+ };
2335
+ }
2336
+ }), w(), u = requestAnimationFrame(Y);
2337
+ };
2338
+ return y.addListener("layoutstarted", function() {
2339
+ O.options.animate === "during" && (u = requestAnimationFrame(S));
2340
+ }), y.runLayout(), this.options.animate !== "during" && (O.options.eles.nodes().not(":parent").layoutPositions(O, O.options, M), D = !1), this;
2341
+ }, a.prototype.getTopMostNodes = function(D) {
2342
+ for (var u = {}, T = 0; T < D.length; T++)
2343
+ u[D[T].id()] = !0;
2344
+ var y = D.filter(function(O, s) {
2345
+ typeof O == "number" && (O = s);
2346
+ for (var f = O.parent()[0]; f != null; ) {
2347
+ if (u[f.id()])
2348
+ return !1;
2349
+ f = f.parent()[0];
2350
+ }
2351
+ return !0;
2352
+ });
2353
+ return y;
2354
+ }, a.prototype.processChildrenList = function(D, u, T) {
2355
+ for (var y = u.length, O = 0; O < y; O++) {
2356
+ var s = u[O], f = s.children(), c, E = s.layoutDimensions({
2357
+ nodeDimensionsIncludeLabels: this.options.nodeDimensionsIncludeLabels
2358
+ });
2359
+ if (s.outerWidth() != null && s.outerHeight() != null ? c = D.add(new g(T.graphManager, new n(s.position("x") - E.w / 2, s.position("y") - E.h / 2), new d(parseFloat(E.w), parseFloat(E.h)))) : c = D.add(new g(this.graphManager)), c.id = s.data("id"), c.paddingLeft = parseInt(s.css("padding")), c.paddingTop = parseInt(s.css("padding")), c.paddingRight = parseInt(s.css("padding")), c.paddingBottom = parseInt(s.css("padding")), this.options.nodeDimensionsIncludeLabels && s.isParent()) {
2360
+ var A = s.boundingBox({ includeLabels: !0, includeNodes: !1 }).w, m = s.boundingBox({ includeLabels: !0, includeNodes: !1 }).h, C = s.css("text-halign");
2361
+ c.labelWidth = A, c.labelHeight = m, c.labelPos = C;
2362
+ }
2363
+ if (this.idToLNode[s.data("id")] = c, isNaN(c.rect.x) && (c.rect.x = 0), isNaN(c.rect.y) && (c.rect.y = 0), f != null && f.length > 0) {
2364
+ var R;
2365
+ R = T.getGraphManager().add(T.newGraph(), c), this.processChildrenList(R, f, T);
2366
+ }
2367
+ }
2368
+ }, a.prototype.stop = function() {
2369
+ return this.stopped = !0, this;
2370
+ };
2371
+ var v = function(u) {
2372
+ u("layout", "cose-bilkent", a);
2373
+ };
2374
+ typeof cytoscape < "u" && v(cytoscape), I.exports = v;
2375
+ })
2376
+ /******/
2377
+ ])
2378
+ );
2379
+ });
2380
+ })(Z)), Z.exports;
2381
+ }
2382
+ var yt = vt();
2383
+ const Et = /* @__PURE__ */ lt(yt);
2384
+ tt.use(Et);
2385
+ function et(G, b) {
2386
+ G.forEach((N) => {
2387
+ const I = {
2388
+ id: N.id,
2389
+ labelText: N.label,
2390
+ height: N.height,
2391
+ width: N.width,
2392
+ padding: N.padding ?? 0
2393
+ };
2394
+ Object.keys(N).forEach((L) => {
2395
+ ["id", "label", "height", "width", "padding", "x", "y"].includes(L) || (I[L] = N[L]);
2396
+ }), b.add({
2397
+ group: "nodes",
2398
+ data: I,
2399
+ position: {
2400
+ x: N.x ?? 0,
2401
+ y: N.y ?? 0
2402
+ }
2403
+ });
2404
+ });
2405
+ }
2406
+ V(et, "addNodes");
2407
+ function rt(G, b) {
2408
+ G.forEach((N) => {
2409
+ const I = {
2410
+ id: N.id,
2411
+ source: N.start,
2412
+ target: N.end
2413
+ };
2414
+ Object.keys(N).forEach((L) => {
2415
+ ["id", "start", "end"].includes(L) || (I[L] = N[L]);
2416
+ }), b.add({
2417
+ group: "edges",
2418
+ data: I
2419
+ });
2420
+ });
2421
+ }
2422
+ V(rt, "addEdges");
2423
+ function it(G) {
2424
+ return new Promise((b) => {
2425
+ const N = gt("body").append("div").attr("id", "cy").attr("style", "display:none"), I = tt({
2426
+ container: document.getElementById("cy"),
2427
+ // container to render in
2428
+ style: [
2429
+ {
2430
+ selector: "edge",
2431
+ style: {
2432
+ "curve-style": "bezier"
2433
+ }
2434
+ }
2435
+ ]
2436
+ });
2437
+ N.remove(), et(G.nodes, I), rt(G.edges, I), I.nodes().forEach(function(o) {
2438
+ o.layoutDimensions = () => {
2439
+ const e = o.data();
2440
+ return { w: e.width, h: e.height };
2441
+ };
2442
+ });
2443
+ const L = {
2444
+ name: "cose-bilkent",
2445
+ // @ts-ignore Types for cose-bilkent are not correct?
2446
+ quality: "proof",
2447
+ styleEnabled: !1,
2448
+ animate: !1
2449
+ };
2450
+ I.layout(L).run(), I.ready((o) => {
2451
+ k.info("Cytoscape ready", o), b(I);
2452
+ });
2453
+ });
2454
+ }
2455
+ V(it, "createCytoscapeInstance");
2456
+ function nt(G) {
2457
+ return G.nodes().map((b) => {
2458
+ const N = b.data(), I = b.position(), L = {
2459
+ id: N.id,
2460
+ x: I.x,
2461
+ y: I.y
2462
+ };
2463
+ return Object.keys(N).forEach((o) => {
2464
+ o !== "id" && (L[o] = N[o]);
2465
+ }), L;
2466
+ });
2467
+ }
2468
+ V(nt, "extractPositionedNodes");
2469
+ function ot(G) {
2470
+ return G.edges().map((b) => {
2471
+ const N = b.data(), I = b._private.rscratch, L = {
2472
+ id: N.id,
2473
+ source: N.source,
2474
+ target: N.target,
2475
+ startX: I.startX,
2476
+ startY: I.startY,
2477
+ midX: I.midX,
2478
+ midY: I.midY,
2479
+ endX: I.endX,
2480
+ endY: I.endY
2481
+ };
2482
+ return Object.keys(N).forEach((o) => {
2483
+ ["id", "source", "target"].includes(o) || (L[o] = N[o]);
2484
+ }), L;
2485
+ });
2486
+ }
2487
+ V(ot, "extractPositionedEdges");
2488
+ async function st(G, b) {
2489
+ k.debug("Starting cose-bilkent layout algorithm");
2490
+ try {
2491
+ at(G);
2492
+ const N = await it(G), I = nt(N), L = ot(N);
2493
+ return k.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`), {
2494
+ nodes: I,
2495
+ edges: L
2496
+ };
2497
+ } catch (N) {
2498
+ throw k.error("Error in cose-bilkent layout algorithm:", N), N;
2499
+ }
2500
+ }
2501
+ V(st, "executeCoseBilkentLayout");
2502
+ function at(G) {
2503
+ if (!G)
2504
+ throw new Error("Layout data is required");
2505
+ if (!G.config)
2506
+ throw new Error("Configuration is required in layout data");
2507
+ if (!G.rootNode)
2508
+ throw new Error("Root node is required");
2509
+ if (!G.nodes || !Array.isArray(G.nodes))
2510
+ throw new Error("No nodes found in layout data");
2511
+ if (!Array.isArray(G.edges))
2512
+ throw new Error("Edges array is required in layout data");
2513
+ return !0;
2514
+ }
2515
+ V(at, "validateLayoutData");
2516
+ var Lt = /* @__PURE__ */ V(async (G, b, {
2517
+ insertCluster: N,
2518
+ insertEdge: I,
2519
+ insertEdgeLabel: L,
2520
+ insertMarkers: o,
2521
+ insertNode: e,
2522
+ log: t,
2523
+ positionEdgeLabel: i
2524
+ }, { algorithm: l }) => {
2525
+ const g = {}, n = {}, d = b.select("g");
2526
+ o(d, G.markers, G.type, G.diagramId);
2527
+ const r = d.insert("g").attr("class", "subgraphs"), h = d.insert("g").attr("class", "edgePaths"), a = d.insert("g").attr("class", "edgeLabels"), p = d.insert("g").attr("class", "nodes");
2528
+ t.debug("Inserting nodes into DOM for dimension calculation"), await Promise.all(
2529
+ G.nodes.map(async (u) => {
2530
+ if (u.isGroup) {
2531
+ const T = { ...u };
2532
+ n[u.id] = T, g[u.id] = T, await N(r, u);
2533
+ } else {
2534
+ const T = { ...u };
2535
+ g[u.id] = T;
2536
+ const y = await e(p, u, {
2537
+ config: G.config,
2538
+ dir: G.direction || "TB"
2539
+ }), O = y.node().getBBox();
2540
+ T.width = O.width, T.height = O.height, T.domId = y, t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`);
2541
+ }
2542
+ })
2543
+ ), t.debug("Running cose-bilkent layout algorithm");
2544
+ const v = {
2545
+ ...G,
2546
+ nodes: G.nodes.map((u) => {
2547
+ const T = g[u.id];
2548
+ return {
2549
+ ...u,
2550
+ width: T.width,
2551
+ height: T.height
2552
+ };
2553
+ })
2554
+ }, D = await st(v, G.config);
2555
+ t.debug("Positioning nodes based on layout results"), D.nodes.forEach((u) => {
2556
+ const T = g[u.id];
2557
+ T?.domId && (T.domId.attr(
2558
+ "transform",
2559
+ `translate(${u.x}, ${u.y})`
2560
+ ), T.x = u.x, T.y = u.y, t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`));
2561
+ }), D.edges.forEach((u) => {
2562
+ const T = G.edges.find((y) => y.id === u.id);
2563
+ T && (T.points = [
2564
+ { x: u.startX, y: u.startY },
2565
+ { x: u.midX, y: u.midY },
2566
+ { x: u.endX, y: u.endY }
2567
+ ]);
2568
+ }), t.debug("Inserting and positioning edges"), await Promise.all(
2569
+ G.edges.map(async (u) => {
2570
+ await L(a, u);
2571
+ const T = g[u.start ?? ""], y = g[u.end ?? ""];
2572
+ if (T && y) {
2573
+ const O = D.edges.find((s) => s.id === u.id);
2574
+ if (O) {
2575
+ t.debug("APA01 positionedEdge", O);
2576
+ const s = { ...u }, f = I(
2577
+ h,
2578
+ s,
2579
+ n,
2580
+ G.type,
2581
+ T,
2582
+ y,
2583
+ G.diagramId
2584
+ );
2585
+ i(s, f);
2586
+ } else {
2587
+ const s = {
2588
+ ...u,
2589
+ points: [
2590
+ { x: T.x || 0, y: T.y || 0 },
2591
+ { x: y.x || 0, y: y.y || 0 }
2592
+ ]
2593
+ }, f = I(
2594
+ h,
2595
+ s,
2596
+ n,
2597
+ G.type,
2598
+ T,
2599
+ y,
2600
+ G.diagramId
2601
+ );
2602
+ i(s, f);
2603
+ }
2604
+ }
2605
+ })
2606
+ ), t.debug("Cose-bilkent rendering completed");
2607
+ }, "render"), At = Lt;
2608
+ export {
2609
+ At as render
2610
+ };
2611
+ //# sourceMappingURL=cose-bilkent-S5V4N54A-4R0ErgrZ.js.map