@elmethis/core 1.0.0-alpha.146 → 1.0.0-alpha.148

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 (859) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +6 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
  3. package/dist/_virtual/advancedFormat.mjs +7 -0
  4. package/dist/_virtual/advancedFormat2.mjs +4 -0
  5. package/dist/_virtual/cancellation.mjs +5 -0
  6. package/dist/_virtual/cancellation2.mjs +4 -0
  7. package/dist/_virtual/constants.mjs +4 -0
  8. package/dist/_virtual/cose-base.mjs +4 -0
  9. package/dist/_virtual/cose-base2.mjs +4 -0
  10. package/dist/_virtual/customParseFormat.mjs +7 -0
  11. package/dist/_virtual/customParseFormat2.mjs +4 -0
  12. package/dist/_virtual/cytoscape-cose-bilkent.mjs +7 -0
  13. package/dist/_virtual/cytoscape-cose-bilkent2.mjs +4 -0
  14. package/dist/_virtual/cytoscape-fcose.mjs +7 -0
  15. package/dist/_virtual/cytoscape-fcose2.mjs +4 -0
  16. package/dist/_virtual/dayjs.min.mjs +7 -0
  17. package/dist/_virtual/dayjs.min2.mjs +4 -0
  18. package/dist/_virtual/events.mjs +5 -0
  19. package/dist/_virtual/events2.mjs +4 -0
  20. package/dist/_virtual/index.mjs +5 -0
  21. package/dist/_virtual/index2.mjs +4 -0
  22. package/dist/_virtual/is.mjs +4 -0
  23. package/dist/_virtual/isoWeek.mjs +7 -0
  24. package/dist/_virtual/isoWeek2.mjs +4 -0
  25. package/dist/_virtual/layout-base.mjs +4 -0
  26. package/dist/_virtual/layout-base2.mjs +4 -0
  27. package/dist/_virtual/ral.mjs +4 -0
  28. package/dist/components/badge/ElmBadge.vue.mjs +10 -0
  29. package/dist/components/badge/ElmBadge.vue2.mjs +33 -0
  30. package/dist/components/badge/ElmBadge.vue3.mjs +14 -0
  31. package/dist/components/badge/ElmTag.vue.mjs +10 -0
  32. package/dist/components/badge/ElmTag.vue2.mjs +39 -0
  33. package/dist/components/badge/ElmTag.vue3.mjs +14 -0
  34. package/dist/components/code/ElmCodeBlock.vue.mjs +10 -0
  35. package/dist/components/code/ElmCodeBlock.vue2.mjs +86 -0
  36. package/dist/components/code/ElmCodeBlock.vue3.mjs +18 -0
  37. package/dist/components/code/ElmKatex.vue.mjs +10 -0
  38. package/dist/components/code/ElmKatex.vue2.mjs +46 -0
  39. package/dist/components/code/ElmKatex.vue3.mjs +8 -0
  40. package/dist/components/code/ElmMermaid.vue.mjs +6 -0
  41. package/dist/components/code/ElmMermaid.vue2.mjs +56 -0
  42. package/dist/components/code/ElmShikiHighlighter.vue.mjs +11 -0
  43. package/dist/components/code/ElmShikiHighlighter.vue2.mjs +44 -0
  44. package/dist/components/code/ElmShikiHighlighter.vue3.mjs +8 -0
  45. package/dist/components/containments/ElmColumn.vue.mjs +10 -0
  46. package/dist/components/containments/ElmColumn.vue2.mjs +16 -0
  47. package/dist/components/containments/ElmColumn.vue3.mjs +8 -0
  48. package/dist/components/containments/ElmColumnList.vue.mjs +10 -0
  49. package/dist/components/containments/ElmColumnList.vue2.mjs +16 -0
  50. package/dist/components/containments/ElmColumnList.vue3.mjs +6 -0
  51. package/dist/components/containments/ElmDesktopWindow.vue.mjs +10 -0
  52. package/dist/components/containments/ElmDesktopWindow.vue2.mjs +42 -0
  53. package/dist/components/containments/ElmDesktopWindow.vue3.mjs +14 -0
  54. package/dist/components/containments/ElmModal.vue.mjs +10 -0
  55. package/dist/components/containments/ElmModal.vue2.mjs +44 -0
  56. package/dist/components/containments/ElmModal.vue3.mjs +11 -0
  57. package/dist/components/containments/ElmParallax.vue.mjs +10 -0
  58. package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
  59. package/dist/components/containments/ElmParallax.vue3.mjs +8 -0
  60. package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
  61. package/dist/components/containments/ElmSnackbar.vue2.mjs +39 -0
  62. package/dist/components/containments/ElmSnackbar.vue3.mjs +14 -0
  63. package/dist/components/containments/ElmSnackbarContainer.vue.mjs +10 -0
  64. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
  65. package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +7 -0
  66. package/dist/components/containments/ElmToggle.vue.mjs +10 -0
  67. package/dist/components/containments/ElmToggle.vue2.mjs +71 -0
  68. package/dist/components/containments/ElmToggle.vue3.mjs +17 -0
  69. package/dist/components/containments/ElmTooltip.vue.mjs +10 -0
  70. package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
  71. package/dist/components/containments/ElmTooltip.vue3.mjs +8 -0
  72. package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
  73. package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
  74. package/dist/components/data/ElmMultiProgress.vue3.mjs +11 -0
  75. package/dist/components/data/ElmProgress.vue.mjs +10 -0
  76. package/dist/components/data/ElmProgress.vue2.mjs +53 -0
  77. package/dist/components/data/ElmProgress.vue3.mjs +20 -0
  78. package/dist/components/data/ElmStatusMessage.vue.mjs +10 -0
  79. package/dist/components/data/ElmStatusMessage.vue2.mjs +75 -0
  80. package/dist/components/data/ElmStatusMessage.vue3.mjs +11 -0
  81. package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
  82. package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
  83. package/dist/components/fallback/ElmBlockFallback.vue3.mjs +6 -0
  84. package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
  85. package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
  86. package/dist/components/fallback/ElmRectangleWave.vue3.mjs +9 -0
  87. package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
  88. package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
  89. package/dist/components/fallback/ElmSpinner.vue3.mjs +12 -0
  90. package/dist/components/form/ElmButton.vue.mjs +10 -0
  91. package/dist/components/form/ElmButton.vue2.mjs +57 -0
  92. package/dist/components/form/ElmButton.vue3.mjs +20 -0
  93. package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
  94. package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
  95. package/dist/components/form/ElmCheckbox.vue3.mjs +22 -0
  96. package/dist/components/form/ElmSwitch.vue.mjs +10 -0
  97. package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
  98. package/dist/components/form/ElmSwitch.vue3.mjs +16 -0
  99. package/dist/components/form/ElmTextField.vue.mjs +10 -0
  100. package/dist/components/form/ElmTextField.vue2.mjs +124 -0
  101. package/dist/components/form/ElmTextField.vue3.mjs +34 -0
  102. package/dist/components/form/ElmTotp.vue.mjs +10 -0
  103. package/dist/components/form/ElmTotp.vue2.mjs +102 -0
  104. package/dist/components/form/ElmTotp.vue3.mjs +22 -0
  105. package/dist/components/headings/ElmFragmentIdentifier.vue.mjs +10 -0
  106. package/dist/components/headings/ElmFragmentIdentifier.vue2.mjs +54 -0
  107. package/dist/components/headings/ElmFragmentIdentifier.vue3.mjs +11 -0
  108. package/dist/components/headings/ElmHeading1.vue.mjs +10 -0
  109. package/dist/components/headings/ElmHeading1.vue2.mjs +43 -0
  110. package/dist/components/headings/ElmHeading1.vue3.mjs +8 -0
  111. package/dist/components/headings/ElmHeading2.vue.mjs +10 -0
  112. package/dist/components/headings/ElmHeading2.vue2.mjs +49 -0
  113. package/dist/components/headings/ElmHeading2.vue3.mjs +11 -0
  114. package/dist/components/headings/ElmHeading3.vue.mjs +10 -0
  115. package/dist/components/headings/ElmHeading3.vue2.mjs +39 -0
  116. package/dist/components/headings/ElmHeading3.vue3.mjs +8 -0
  117. package/dist/components/headings/ElmHeading4.vue.mjs +10 -0
  118. package/dist/components/headings/ElmHeading4.vue2.mjs +31 -0
  119. package/dist/components/headings/ElmHeading4.vue3.mjs +8 -0
  120. package/dist/components/headings/ElmHeading5.vue.mjs +10 -0
  121. package/dist/components/headings/ElmHeading5.vue2.mjs +31 -0
  122. package/dist/components/headings/ElmHeading5.vue3.mjs +8 -0
  123. package/dist/components/headings/ElmHeading6.vue.mjs +10 -0
  124. package/dist/components/headings/ElmHeading6.vue2.mjs +31 -0
  125. package/dist/components/headings/ElmHeading6.vue3.mjs +8 -0
  126. package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
  127. package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
  128. package/dist/components/icon/ElmArrowIcon.vue3.mjs +17 -0
  129. package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
  130. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +45 -0
  131. package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +15 -0
  132. package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
  133. package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
  134. package/dist/components/icon/ElmCubeIcon.vue3.mjs +12 -0
  135. package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
  136. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
  137. package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +14 -0
  138. package/dist/components/icon/ElmLanguageIcon.vue.mjs +10 -0
  139. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +148 -0
  140. package/dist/components/icon/ElmLanguageIcon.vue3.mjs +11 -0
  141. package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
  142. package/dist/components/icon/ElmLoginIcon.vue2.mjs +37 -0
  143. package/dist/components/icon/ElmLoginIcon.vue3.mjs +8 -0
  144. package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
  145. package/dist/components/icon/ElmToggleTheme.vue2.mjs +30 -0
  146. package/dist/components/icon/ElmToggleTheme.vue3.mjs +8 -0
  147. package/dist/{Bash-Dgvf3lDU.js → components/icon/languages/Bash.vue.mjs} +16 -15
  148. package/dist/components/icon/languages/Bash.vue2.mjs +8 -0
  149. package/dist/components/icon/languages/Css.vue.mjs +19 -0
  150. package/dist/components/icon/languages/Rust.vue.mjs +17 -0
  151. package/dist/components/inline/ElmInlineLink.vue.mjs +10 -0
  152. package/dist/components/inline/ElmInlineLink.vue2.mjs +53 -0
  153. package/dist/components/inline/ElmInlineLink.vue3.mjs +11 -0
  154. package/dist/components/inline/ElmInlineRuby.vue.mjs +29 -0
  155. package/dist/components/inline/ElmInlineRuby.vue2.mjs +4 -0
  156. package/dist/components/inline/ElmInlineText.vue.mjs +10 -0
  157. package/dist/components/inline/ElmInlineText.vue2.mjs +57 -0
  158. package/dist/components/inline/ElmInlineText.vue3.mjs +11 -0
  159. package/dist/components/media/ElmFile.vue.mjs +10 -0
  160. package/dist/components/media/ElmFile.vue2.mjs +77 -0
  161. package/dist/components/media/ElmFile.vue3.mjs +14 -0
  162. package/dist/components/media/ElmImage.vue.mjs +10 -0
  163. package/dist/components/media/ElmImage.vue2.mjs +91 -0
  164. package/dist/components/media/ElmImage.vue3.mjs +18 -0
  165. package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
  166. package/dist/components/navigation/ElmBookmark.vue2.mjs +115 -0
  167. package/dist/components/navigation/ElmBookmark.vue3.mjs +32 -0
  168. package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
  169. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +63 -0
  170. package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +18 -0
  171. package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
  172. package/dist/components/navigation/ElmPagetop.vue2.mjs +51 -0
  173. package/dist/components/navigation/ElmPagetop.vue3.mjs +18 -0
  174. package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
  175. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +43 -0
  176. package/dist/components/navigation/ElmTableOfContents.vue3.mjs +14 -0
  177. package/dist/components/others/ElmColorSample.vue.mjs +10 -0
  178. package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
  179. package/dist/components/others/ElmColorSample.vue3.mjs +9 -0
  180. package/dist/components/others/ElmColorTable.vue.mjs +10 -0
  181. package/dist/components/others/ElmColorTable.vue2.mjs +45 -0
  182. package/dist/components/others/ElmColorTable.vue3.mjs +10 -0
  183. package/dist/components/renderer/ElmJsonRenderer.vue.mjs +96 -0
  184. package/dist/components/renderer/ElmJsonRenderer.vue2.mjs +4 -0
  185. package/dist/components/renderer/ElmJsonRendererAsync.vue.mjs +24 -0
  186. package/dist/components/renderer/ElmJsonRendererAsync.vue2.mjs +4 -0
  187. package/dist/components/table/ElmTable.vue.mjs +6 -0
  188. package/dist/components/table/ElmTable.vue2.mjs +22 -0
  189. package/dist/components/table/ElmTableBody.vue.mjs +15 -0
  190. package/dist/components/table/ElmTableBody.vue3.mjs +5 -0
  191. package/dist/components/table/ElmTableCell.vue.mjs +6 -0
  192. package/dist/components/table/ElmTableCell.vue2.mjs +22 -0
  193. package/dist/components/table/ElmTableHeader.vue.mjs +15 -0
  194. package/dist/components/table/ElmTableHeader.vue3.mjs +5 -0
  195. package/dist/components/table/ElmTableRow.vue.mjs +14 -0
  196. package/dist/components/table/ElmTableRow.vue2.mjs +4 -0
  197. package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
  198. package/dist/components/typography/ElmBlockQuote.vue2.mjs +27 -0
  199. package/dist/components/typography/ElmBlockQuote.vue3.mjs +8 -0
  200. package/dist/components/typography/ElmBulletedList.vue.mjs +27 -0
  201. package/dist/components/typography/ElmBulletedList.vue3.mjs +5 -0
  202. package/dist/components/typography/ElmCallout.vue.mjs +10 -0
  203. package/dist/components/typography/ElmCallout.vue2.mjs +57 -0
  204. package/dist/components/typography/ElmCallout.vue3.mjs +14 -0
  205. package/dist/components/typography/ElmDivider.vue.mjs +10 -0
  206. package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
  207. package/dist/components/typography/ElmDivider.vue3.mjs +8 -0
  208. package/dist/components/typography/ElmListItem.vue.mjs +10 -0
  209. package/dist/components/typography/ElmListItem.vue2.mjs +16 -0
  210. package/dist/components/typography/ElmListItem.vue3.mjs +8 -0
  211. package/dist/components/typography/ElmNumberedList.vue.mjs +27 -0
  212. package/dist/components/typography/ElmNumberedList.vue3.mjs +5 -0
  213. package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
  214. package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
  215. package/dist/components/typography/ElmParagraph.vue3.mjs +8 -0
  216. package/dist/hooks/useElmethisTheme.mjs +43 -0
  217. package/dist/hooks/useTyping.mjs +37 -0
  218. package/dist/index.mjs +150 -0
  219. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/constants.mjs +20 -0
  220. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.mjs +76 -0
  221. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/helpers.mjs +57 -0
  222. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/model.mjs +220 -0
  223. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/visitor.mjs +64 -0
  224. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.mjs +101 -0
  225. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.mjs +45 -0
  226. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.mjs +693 -0
  227. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.mjs +39 -0
  228. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/print.mjs +14 -0
  229. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/timer.mjs +10 -0
  230. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/to-fast-properties.mjs +15 -0
  231. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.mjs +15 -0
  232. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.mjs +28 -0
  233. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.mjs +20 -0
  234. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/name.mjs +54 -0
  235. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.mjs +17 -0
  236. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +27 -0
  237. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.mjs +24 -0
  238. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.mjs +120 -0
  239. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.mjs +33 -0
  240. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/html.mjs +10 -0
  241. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/id.mjs +29 -0
  242. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.mjs +41 -0
  243. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-4AB2E3PP.mjs +6 -0
  244. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2NYFTIL2.mjs +34 -0
  245. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2O5ZK7RR.mjs +34 -0
  246. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7PKI6E2E.mjs +541 -0
  247. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-C4OEIS7N.mjs +46 -0
  248. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EXZZNE6F.mjs +34 -0
  249. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ROXG7S4E.mjs +42 -0
  250. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-V4Q32G6S.mjs +34 -0
  251. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-O2Q2CXLX.mjs +6 -0
  252. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-4N47QTOZ.mjs +6 -0
  253. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-KVYON367.mjs +6 -0
  254. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-R6RNRRYF.mjs +6 -0
  255. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-MK3ICKWK.mjs +6 -0
  256. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +115 -0
  257. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/all-star-lookahead.mjs +531 -0
  258. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/atn.mjs +393 -0
  259. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/dfa.mjs +42 -0
  260. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/lang/lang_extensions.mjs +12 -0
  261. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/constants.mjs +4 -0
  262. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst.mjs +42 -0
  263. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.mjs +87 -0
  264. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/errors_public.mjs +161 -0
  265. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/exceptions_public.mjs +60 -0
  266. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/checks.mjs +416 -0
  267. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/first.mjs +47 -0
  268. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/follow.mjs +41 -0
  269. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.mjs +24 -0
  270. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/interpreter.mjs +424 -0
  271. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/keys.mjs +22 -0
  272. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.mjs +48 -0
  273. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/lookahead.mjs +387 -0
  274. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/resolver.mjs +40 -0
  275. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/rest.mjs +83 -0
  276. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/parser.mjs +181 -0
  277. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.mjs +25 -0
  278. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.mjs +69 -0
  279. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.mjs +270 -0
  280. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.mjs +59 -0
  281. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.mjs +128 -0
  282. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.mjs +38 -0
  283. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.mjs +323 -0
  284. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.mjs +434 -0
  285. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.mjs +251 -0
  286. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.mjs +167 -0
  287. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.mjs +19 -0
  288. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer.mjs +720 -0
  289. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_errors_public.mjs +11 -0
  290. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_public.mjs +552 -0
  291. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp.mjs +214 -0
  292. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp_parser.mjs +20 -0
  293. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens.mjs +115 -0
  294. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens_public.mjs +88 -0
  295. package/dist/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.mjs +1090 -0
  296. package/dist/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.mjs +2555 -0
  297. package/dist/node_modules/.pnpm/cytoscape-cose-bilkent@4.1.0_cytoscape@3.31.1/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.mjs +374 -0
  298. package/dist/node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.31.1/node_modules/cytoscape-fcose/cytoscape-fcose.mjs +1278 -0
  299. package/dist/node_modules/.pnpm/cytoscape@3.31.1/node_modules/cytoscape/dist/cytoscape.esm.mjs +29469 -0
  300. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/max.mjs +21 -0
  301. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/min.mjs +21 -0
  302. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/sum.mjs +21 -0
  303. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.mjs +6 -0
  304. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.mjs +10 -0
  305. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.mjs +47 -0
  306. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.mjs +6 -0
  307. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.mjs +21 -0
  308. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.mjs +21 -0
  309. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.mjs +6 -0
  310. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.mjs +11 -0
  311. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.mjs +51 -0
  312. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/axis.mjs +94 -0
  313. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/identity.mjs +6 -0
  314. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.mjs +338 -0
  315. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.mjs +13 -0
  316. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/lab.mjs +95 -0
  317. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/math.mjs +6 -0
  318. package/dist/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.mjs +70 -0
  319. package/dist/node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.mjs +6 -0
  320. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/defaultLocale.mjs +20 -0
  321. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/exponent.mjs +7 -0
  322. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatDecimal.mjs +15 -0
  323. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatGroup.mjs +15 -0
  324. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatNumerals.mjs +10 -0
  325. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatPrefixAuto.mjs +12 -0
  326. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatRounded.mjs +10 -0
  327. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatSpecifier.mjs +37 -0
  328. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTrim.mjs +21 -0
  329. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTypes.mjs +21 -0
  330. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/identity.mjs +6 -0
  331. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/locale.mjs +82 -0
  332. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionFixed.mjs +7 -0
  333. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionPrefix.mjs +7 -0
  334. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionRound.mjs +8 -0
  335. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.mjs +13 -0
  336. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.mjs +29 -0
  337. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.mjs +4 -0
  338. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.mjs +9 -0
  339. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/hcl.mjs +18 -0
  340. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.mjs +8 -0
  341. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.mjs +15 -0
  342. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.mjs +20 -0
  343. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.mjs +20 -0
  344. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.mjs +8 -0
  345. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.mjs +43 -0
  346. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.mjs +28 -0
  347. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.mjs +59 -0
  348. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.mjs +18 -0
  349. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.mjs +16 -0
  350. package/dist/node_modules/.pnpm/d3-path@1.0.9/node_modules/d3-path/src/path.mjs +73 -0
  351. package/dist/node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.mjs +88 -0
  352. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/align.mjs +22 -0
  353. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/constant.mjs +8 -0
  354. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankey.mjs +326 -0
  355. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankeyLinkHorizontal.mjs +13 -0
  356. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/categorical/Tableau10.mjs +5 -0
  357. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/colors.mjs +8 -0
  358. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/band.mjs +56 -0
  359. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.mjs +8 -0
  360. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.mjs +95 -0
  361. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.mjs +16 -0
  362. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.mjs +61 -0
  363. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/nice.mjs +14 -0
  364. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.mjs +6 -0
  365. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.mjs +38 -0
  366. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.mjs +34 -0
  367. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/time.mjs +54 -0
  368. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.mjs +6 -0
  369. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.mjs +8 -0
  370. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.mjs +20 -0
  371. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.mjs +14 -0
  372. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.mjs +9 -0
  373. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.mjs +12 -0
  374. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs +7 -0
  375. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.mjs +10 -0
  376. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.mjs +46 -0
  377. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.mjs +9 -0
  378. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.mjs +64 -0
  379. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.mjs +14 -0
  380. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.mjs +76 -0
  381. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.mjs +6 -0
  382. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.mjs +28 -0
  383. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.mjs +11 -0
  384. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.mjs +6 -0
  385. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.mjs +31 -0
  386. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.mjs +8 -0
  387. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.mjs +16 -0
  388. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.mjs +20 -0
  389. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.mjs +88 -0
  390. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.mjs +14 -0
  391. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.mjs +10 -0
  392. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.mjs +19 -0
  393. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.mjs +9 -0
  394. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.mjs +18 -0
  395. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.mjs +12 -0
  396. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.mjs +6 -0
  397. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.mjs +64 -0
  398. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.mjs +14 -0
  399. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.mjs +23 -0
  400. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.mjs +9 -0
  401. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.mjs +10 -0
  402. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.mjs +17 -0
  403. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.mjs +24 -0
  404. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.mjs +16 -0
  405. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.mjs +16 -0
  406. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.mjs +8 -0
  407. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.mjs +22 -0
  408. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.mjs +6 -0
  409. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.mjs +28 -0
  410. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.mjs +20 -0
  411. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.mjs +10 -0
  412. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.mjs +11 -0
  413. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.mjs +6 -0
  414. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/array.mjs +4 -0
  415. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/constant.mjs +8 -0
  416. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/link/index.mjs +45 -0
  417. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/point.mjs +10 -0
  418. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.mjs +133 -0
  419. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.mjs +6 -0
  420. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.mjs +8 -0
  421. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.mjs +66 -0
  422. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.mjs +63 -0
  423. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.mjs +50 -0
  424. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.mjs +49 -0
  425. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.mjs +43 -0
  426. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.mjs +73 -0
  427. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.mjs +69 -0
  428. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.mjs +57 -0
  429. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.mjs +83 -0
  430. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.mjs +75 -0
  431. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.mjs +63 -0
  432. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.mjs +39 -0
  433. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.mjs +25 -0
  434. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.mjs +99 -0
  435. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.mjs +54 -0
  436. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.mjs +59 -0
  437. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/descending.mjs +6 -0
  438. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/identity.mjs +6 -0
  439. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.mjs +41 -0
  440. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.mjs +32 -0
  441. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.mjs +5 -0
  442. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.mjs +19 -0
  443. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/pie.mjs +55 -0
  444. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.mjs +10 -0
  445. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/defaultLocale.mjs +25 -0
  446. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/locale.mjs +542 -0
  447. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/day.mjs +34 -0
  448. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/duration.mjs +16 -0
  449. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/hour.mjs +26 -0
  450. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/interval.mjs +61 -0
  451. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/millisecond.mjs +23 -0
  452. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/minute.mjs +26 -0
  453. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/month.mjs +27 -0
  454. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/second.mjs +15 -0
  455. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/ticks.mjs +54 -0
  456. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/week.mjs +66 -0
  457. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/year.mjs +45 -0
  458. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.mjs +13 -0
  459. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.mjs +96 -0
  460. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.mjs +21 -0
  461. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs +5 -0
  462. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.mjs +9 -0
  463. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.mjs +39 -0
  464. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.mjs +55 -0
  465. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.mjs +42 -0
  466. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.mjs +18 -0
  467. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.mjs +18 -0
  468. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.mjs +14 -0
  469. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.mjs +15 -0
  470. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.mjs +23 -0
  471. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.mjs +16 -0
  472. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.mjs +68 -0
  473. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.mjs +11 -0
  474. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.mjs +18 -0
  475. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.mjs +23 -0
  476. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.mjs +13 -0
  477. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.mjs +125 -0
  478. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.mjs +20 -0
  479. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.mjs +24 -0
  480. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.mjs +8 -0
  481. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.mjs +47 -0
  482. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.mjs +25 -0
  483. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.mjs +18 -0
  484. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.mjs +25 -0
  485. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.mjs +22 -0
  486. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.mjs +64 -0
  487. package/dist/node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs +45 -0
  488. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/acyclic.mjs +55 -0
  489. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/add-border-segments.mjs +33 -0
  490. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/coordinate-system.mjs +66 -0
  491. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/data/list.mjs +49 -0
  492. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/greedy-fas.mjs +97 -0
  493. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/layout.mjs +344 -0
  494. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/nesting-graph.mjs +94 -0
  495. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/normalize.mjs +69 -0
  496. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.mjs +25 -0
  497. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/barycenter.mjs +29 -0
  498. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.mjs +33 -0
  499. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/cross-count.mjs +54 -0
  500. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/index.mjs +51 -0
  501. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/init-order.mjs +30 -0
  502. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.mjs +84 -0
  503. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.mjs +66 -0
  504. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort.mjs +47 -0
  505. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.mjs +66 -0
  506. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/bk.mjs +296 -0
  507. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/index.mjs +29 -0
  508. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.mjs +45 -0
  509. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/index.mjs +29 -0
  510. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.mjs +148 -0
  511. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/util.mjs +30 -0
  512. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/util.mjs +164 -0
  513. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dfs.mjs +33 -0
  514. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.mjs +2 -0
  515. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.mjs +2 -0
  516. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/postorder.mjs +7 -0
  517. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/preorder.mjs +7 -0
  518. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/topsort.mjs +7 -0
  519. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/graph.mjs +420 -0
  520. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/json.mjs +47 -0
  521. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs +286 -0
  522. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/advancedFormat.mjs +58 -0
  523. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.mjs +133 -0
  524. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isoWeek.mjs +37 -0
  525. package/dist/node_modules/.pnpm/dompurify@3.2.4/node_modules/dompurify/dist/purify.es.mjs +965 -0
  526. package/dist/node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.mjs +43 -0
  527. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/index.mjs +131 -0
  528. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/reusable.mjs +5 -0
  529. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/type.mjs +24 -0
  530. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hex.mjs +40 -0
  531. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hsl.mjs +50 -0
  532. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/index.mjs +39 -0
  533. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/keyword.mjs +172 -0
  534. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/rgb.mjs +33 -0
  535. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/constants.mjs +13 -0
  536. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust.mjs +15 -0
  537. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust_channel.mjs +13 -0
  538. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/change.mjs +12 -0
  539. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/channel.mjs +8 -0
  540. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/darken.mjs +7 -0
  541. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/invert.mjs +12 -0
  542. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_dark.mjs +7 -0
  543. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_light.mjs +7 -0
  544. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/lighten.mjs +7 -0
  545. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/luminance.mjs +10 -0
  546. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/mix.mjs +20 -0
  547. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/rgba.mjs +18 -0
  548. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.mjs +95 -0
  549. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/index.mjs +11 -0
  550. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/lang.mjs +14 -0
  551. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/unit.mjs +10 -0
  552. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/default-module.mjs +87 -0
  553. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/dependency-injection.mjs +74 -0
  554. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/comment-provider.mjs +17 -0
  555. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/documentation-provider.mjs +62 -0
  556. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/jsdoc.mjs +478 -0
  557. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/generated/ast.mjs +725 -0
  558. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/grammar-config.mjs +20 -0
  559. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/async-parser.mjs +11 -0
  560. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/completion-parser-builder.mjs +13 -0
  561. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/cst-node-builder.mjs +233 -0
  562. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser-builder.mjs +17 -0
  563. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser.mjs +453 -0
  564. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/lexer.mjs +72 -0
  565. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/parser-builder-base.mjs +336 -0
  566. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/token-builder.mjs +105 -0
  567. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/value-converter.mjs +111 -0
  568. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/linker.mjs +139 -0
  569. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/name-provider.mjs +19 -0
  570. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/references.mjs +80 -0
  571. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-computation.mjs +70 -0
  572. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-provider.mjs +62 -0
  573. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope.mjs +60 -0
  574. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/hydrator.mjs +256 -0
  575. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/json-serializer.mjs +202 -0
  576. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/service-registry.mjs +69 -0
  577. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/syntax-tree.mjs +73 -0
  578. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/ast-utils.mjs +159 -0
  579. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/caching.mjs +137 -0
  580. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/collections.mjs +177 -0
  581. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/cst-utils.mjs +126 -0
  582. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/disposable.mjs +12 -0
  583. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/errors.mjs +12 -0
  584. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-loader.mjs +33 -0
  585. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-utils.mjs +377 -0
  586. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/promise-utils.mjs +56 -0
  587. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/regexp-utils.mjs +239 -0
  588. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/stream.mjs +466 -0
  589. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/uri-utils.mjs +37 -0
  590. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/document-validator.mjs +236 -0
  591. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/validation-registry.mjs +142 -0
  592. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-descriptions.mjs +75 -0
  593. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-node-locator.mjs +43 -0
  594. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/configuration.mjs +81 -0
  595. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/document-builder.mjs +328 -0
  596. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/documents.mjs +210 -0
  597. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/file-system-provider.mjs +15 -0
  598. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/index-manager.mjs +74 -0
  599. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-lock.mjs +64 -0
  600. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-manager.mjs +106 -0
  601. package/dist/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.mjs +3197 -0
  602. package/dist/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.mjs +3745 -0
  603. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +6 -0
  604. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +21 -0
  605. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +21 -0
  606. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +6 -0
  607. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +21 -0
  608. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +6 -0
  609. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +6 -0
  610. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.mjs +15 -0
  611. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +18 -0
  612. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +5 -0
  613. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +5 -0
  614. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +6 -0
  615. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs +16 -0
  616. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +12 -0
  617. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +13 -0
  618. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.mjs +8 -0
  619. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +24 -0
  620. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs +10 -0
  621. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +10 -0
  622. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.mjs +13 -0
  623. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.mjs +12 -0
  624. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +10 -0
  625. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs +13 -0
  626. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +13 -0
  627. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.mjs +8 -0
  628. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs +16 -0
  629. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +83 -0
  630. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs +21 -0
  631. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.mjs +6 -0
  632. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseExtremum.mjs +14 -0
  633. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFilter.mjs +13 -0
  634. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.mjs +12 -0
  635. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFlatten.mjs +21 -0
  636. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs +5 -0
  637. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.mjs +8 -0
  638. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs +13 -0
  639. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
  640. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +14 -0
  641. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.mjs +6 -0
  642. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.mjs +9 -0
  643. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +9 -0
  644. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.mjs +14 -0
  645. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.mjs +45 -0
  646. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +9 -0
  647. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.mjs +35 -0
  648. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.mjs +6 -0
  649. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +22 -0
  650. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +9 -0
  651. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +14 -0
  652. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.mjs +20 -0
  653. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +19 -0
  654. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs +20 -0
  655. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseLt.mjs +6 -0
  656. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMap.mjs +12 -0
  657. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.mjs +15 -0
  658. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.mjs +20 -0
  659. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +27 -0
  660. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +61 -0
  661. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.mjs +8 -0
  662. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.mjs +9 -0
  663. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseReduce.mjs +9 -0
  664. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs +9 -0
  665. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs +14 -0
  666. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +10 -0
  667. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs +21 -0
  668. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +8 -0
  669. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.mjs +46 -0
  670. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.mjs +6 -0
  671. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castFunction.mjs +7 -0
  672. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs +13 -0
  673. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs +9 -0
  674. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +16 -0
  675. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +7 -0
  676. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +9 -0
  677. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
  678. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +8 -0
  679. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs +11 -0
  680. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs +23 -0
  681. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.mjs +8 -0
  682. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +5 -0
  683. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs +23 -0
  684. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.mjs +21 -0
  685. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs +15 -0
  686. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.mjs +10 -0
  687. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs +12 -0
  688. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.mjs +50 -0
  689. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.mjs +59 -0
  690. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.mjs +50 -0
  691. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +4 -0
  692. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +9 -0
  693. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +8 -0
  694. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.mjs +13 -0
  695. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +9 -0
  696. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs +5 -0
  697. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +25 -0
  698. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +17 -0
  699. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +34 -0
  700. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +6 -0
  701. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.mjs +25 -0
  702. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +8 -0
  703. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +8 -0
  704. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +15 -0
  705. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +10 -0
  706. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +11 -0
  707. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +13 -0
  708. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +43 -0
  709. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs +9 -0
  710. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isFlattenable.mjs +10 -0
  711. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +10 -0
  712. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs +17 -0
  713. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs +16 -0
  714. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +7 -0
  715. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +11 -0
  716. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +8 -0
  717. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.mjs +7 -0
  718. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +7 -0
  719. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +20 -0
  720. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +8 -0
  721. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +7 -0
  722. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +14 -0
  723. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +14 -0
  724. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +9 -0
  725. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +7 -0
  726. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +7 -0
  727. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +10 -0
  728. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.mjs +10 -0
  729. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.mjs +11 -0
  730. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs +15 -0
  731. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +5 -0
  732. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +5 -0
  733. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs +12 -0
  734. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +18 -0
  735. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +8 -0
  736. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +8 -0
  737. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs +21 -0
  738. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +6 -0
  739. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +12 -0
  740. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.mjs +8 -0
  741. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.mjs +6 -0
  742. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.mjs +10 -0
  743. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs +6 -0
  744. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs +20 -0
  745. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +8 -0
  746. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +8 -0
  747. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +6 -0
  748. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +6 -0
  749. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +22 -0
  750. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.mjs +12 -0
  751. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs +16 -0
  752. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs +11 -0
  753. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +18 -0
  754. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/clone.mjs +8 -0
  755. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs +8 -0
  756. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +6 -0
  757. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/filter.mjs +11 -0
  758. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatMap.mjs +8 -0
  759. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatten.mjs +8 -0
  760. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forEach.mjs +11 -0
  761. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs +8 -0
  762. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.mjs +8 -0
  763. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs +6 -0
  764. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +13 -0
  765. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +4 -0
  766. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +8 -0
  767. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs +8 -0
  768. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +11 -0
  769. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEmpty.mjs +35 -0
  770. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +13 -0
  771. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +7 -0
  772. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +8 -0
  773. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +7 -0
  774. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +6 -0
  775. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +22 -0
  776. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +8 -0
  777. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs +9 -0
  778. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +8 -0
  779. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +9 -0
  780. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs +9 -0
  781. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.mjs +11 -0
  782. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs +22 -0
  783. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +8 -0
  784. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/min.mjs +9 -0
  785. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.mjs +5 -0
  786. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.mjs +10 -0
  787. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/reduce.mjs +12 -0
  788. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +6 -0
  789. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +6 -0
  790. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +8 -0
  791. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs +7 -0
  792. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqBy.mjs +8 -0
  793. package/dist/node_modules/.pnpm/marked@15.0.7/node_modules/marked/lib/marked.esm.mjs +2152 -0
  794. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-IEHRJDOE.mjs +1093 -0
  795. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-JOT3LUYC.mjs +3598 -0
  796. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-VJAJSXHY.mjs +2487 -0
  797. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BMEZGHF.mjs +17 -0
  798. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5NNNAHNI.mjs +143 -0
  799. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6JRP7KZX.mjs +2696 -0
  800. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7B677QYD.mjs +19 -0
  801. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-A2AXSNBT.mjs +1828 -0
  802. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AEK57VVT.mjs +1961 -0
  803. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-C3MQ5ANM.mjs +332 -0
  804. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-D6G4REZN.mjs +109 -0
  805. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-H2D2JQ3I.mjs +78 -0
  806. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HRU6DDCH.mjs +5018 -0
  807. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-IIMUDSI4.mjs +696 -0
  808. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-K557N5IZ.mjs +17 -0
  809. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4NI6UNU.mjs +557 -0
  810. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RZ5BOZE2.mjs +38 -0
  811. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TYCBKAJE.mjs +57 -0
  812. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VV3M67IP.mjs +107 -0
  813. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XZIHB7SX.mjs +17 -0
  814. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YTJNT7DU.mjs +3052 -0
  815. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-GIVACNV2.mjs +27 -0
  816. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-COTLJTTW.mjs +27 -0
  817. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/dagre-OKDRZEBW.mjs +662 -0
  818. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-SSKATNLV.mjs +306 -0
  819. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-VNBRO52H.mjs +191 -0
  820. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q7BY3M3F.mjs +1168 -0
  821. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-4HSFHLVR.mjs +2339 -0
  822. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-APWFNJXF.mjs +2104 -0
  823. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-7IBYFJ6S.mjs +1215 -0
  824. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-PH2N3AL5.mjs +31 -0
  825. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-U35MCT3I.mjs +1201 -0
  826. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-NDS4AKOZ.mjs +1055 -0
  827. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-ALO5MXBD.mjs +1195 -0
  828. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-IB7DONF6.mjs +188 -0
  829. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-7GDLP6J5.mjs +1340 -0
  830. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-KVF5MWMF.mjs +1168 -0
  831. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-QLVOVGJD.mjs +670 -0
  832. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-X6HHIX6F.mjs +3419 -0
  833. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-DGXRK772.mjs +477 -0
  834. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-YXO3MK2T.mjs +27 -0
  835. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-BDJGKUSR.mjs +1232 -0
  836. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-VJFVF3MP.mjs +1778 -0
  837. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/mermaid.core.mjs +1222 -0
  838. package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.mjs +13 -0
  839. package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/url-alphabet/index.mjs +4 -0
  840. package/dist/node_modules/.pnpm/roughjs@4.6.6/node_modules/roughjs/bundled/rough.esm.mjs +1001 -0
  841. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.mjs +16 -0
  842. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.mjs +164 -0
  843. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.mjs +29 -0
  844. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.mjs +156 -0
  845. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.mjs +38 -0
  846. package/dist/node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.mjs +42 -0
  847. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.mjs +95 -0
  848. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.mjs +133 -0
  849. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.mjs +40 -0
  850. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.mjs +28 -0
  851. package/dist/node_modules/.pnpm/vscode-languageserver-textdocument@1.0.12/node_modules/vscode-languageserver-textdocument/lib/esm/main.mjs +225 -0
  852. package/dist/node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.mjs +1262 -0
  853. package/dist/node_modules/.pnpm/vscode-uri@3.0.8/node_modules/vscode-uri/lib/esm/index.mjs +344 -0
  854. package/package.json +24 -26
  855. package/dist/Css-BDTor6my.js +0 -18
  856. package/dist/ElmShikiHighlighter-B6syB4ax.js +0 -44
  857. package/dist/Rust-BwuxPQOA.js +0 -16
  858. package/dist/elmethis.js +0 -70
  859. package/dist/index-BFwE0btN.js +0 -3523
@@ -0,0 +1,3197 @@
1
+ import { __module as layoutBase$1 } from "../../../../../_virtual/layout-base.mjs";
2
+ var layoutBase = layoutBase$1.exports;
3
+ var hasRequiredLayoutBase;
4
+ function requireLayoutBase() {
5
+ if (hasRequiredLayoutBase) return layoutBase$1.exports;
6
+ hasRequiredLayoutBase = 1;
7
+ (function(module, exports) {
8
+ (function webpackUniversalModuleDefinition(root, factory) {
9
+ module.exports = factory();
10
+ })(layoutBase, function() {
11
+ return (
12
+ /******/
13
+ function(modules) {
14
+ var installedModules = {};
15
+ function __webpack_require__(moduleId) {
16
+ if (installedModules[moduleId]) {
17
+ return installedModules[moduleId].exports;
18
+ }
19
+ var module2 = installedModules[moduleId] = {
20
+ /******/
21
+ i: moduleId,
22
+ /******/
23
+ l: false,
24
+ /******/
25
+ exports: {}
26
+ /******/
27
+ };
28
+ modules[moduleId].call(module2.exports, module2, module2.exports, __webpack_require__);
29
+ module2.l = true;
30
+ return module2.exports;
31
+ }
32
+ __webpack_require__.m = modules;
33
+ __webpack_require__.c = installedModules;
34
+ __webpack_require__.i = function(value) {
35
+ return value;
36
+ };
37
+ __webpack_require__.d = function(exports2, name, getter) {
38
+ if (!__webpack_require__.o(exports2, name)) {
39
+ Object.defineProperty(exports2, name, {
40
+ /******/
41
+ configurable: false,
42
+ /******/
43
+ enumerable: true,
44
+ /******/
45
+ get: getter
46
+ /******/
47
+ });
48
+ }
49
+ };
50
+ __webpack_require__.n = function(module2) {
51
+ var getter = module2 && module2.__esModule ? (
52
+ /******/
53
+ function getDefault() {
54
+ return module2["default"];
55
+ }
56
+ ) : (
57
+ /******/
58
+ function getModuleExports() {
59
+ return module2;
60
+ }
61
+ );
62
+ __webpack_require__.d(getter, "a", getter);
63
+ return getter;
64
+ };
65
+ __webpack_require__.o = function(object, property) {
66
+ return Object.prototype.hasOwnProperty.call(object, property);
67
+ };
68
+ __webpack_require__.p = "";
69
+ return __webpack_require__(__webpack_require__.s = 26);
70
+ }([
71
+ /* 0 */
72
+ /***/
73
+ function(module2, exports2, __webpack_require__) {
74
+ function LayoutConstants() {
75
+ }
76
+ LayoutConstants.QUALITY = 1;
77
+ LayoutConstants.DEFAULT_CREATE_BENDS_AS_NEEDED = false;
78
+ LayoutConstants.DEFAULT_INCREMENTAL = false;
79
+ LayoutConstants.DEFAULT_ANIMATION_ON_LAYOUT = true;
80
+ LayoutConstants.DEFAULT_ANIMATION_DURING_LAYOUT = false;
81
+ LayoutConstants.DEFAULT_ANIMATION_PERIOD = 50;
82
+ LayoutConstants.DEFAULT_UNIFORM_LEAF_NODE_SIZES = false;
83
+ LayoutConstants.DEFAULT_GRAPH_MARGIN = 15;
84
+ LayoutConstants.NODE_DIMENSIONS_INCLUDE_LABELS = false;
85
+ LayoutConstants.SIMPLE_NODE_SIZE = 40;
86
+ LayoutConstants.SIMPLE_NODE_HALF_SIZE = LayoutConstants.SIMPLE_NODE_SIZE / 2;
87
+ LayoutConstants.EMPTY_COMPOUND_NODE_SIZE = 40;
88
+ LayoutConstants.MIN_EDGE_LENGTH = 1;
89
+ LayoutConstants.WORLD_BOUNDARY = 1e6;
90
+ LayoutConstants.INITIAL_WORLD_BOUNDARY = LayoutConstants.WORLD_BOUNDARY / 1e3;
91
+ LayoutConstants.WORLD_CENTER_X = 1200;
92
+ LayoutConstants.WORLD_CENTER_Y = 900;
93
+ module2.exports = LayoutConstants;
94
+ },
95
+ /* 1 */
96
+ /***/
97
+ function(module2, exports2, __webpack_require__) {
98
+ var LGraphObject = __webpack_require__(2);
99
+ var IGeometry = __webpack_require__(8);
100
+ var IMath = __webpack_require__(9);
101
+ function LEdge(source, target, vEdge) {
102
+ LGraphObject.call(this, vEdge);
103
+ this.isOverlapingSourceAndTarget = false;
104
+ this.vGraphObject = vEdge;
105
+ this.bendpoints = [];
106
+ this.source = source;
107
+ this.target = target;
108
+ }
109
+ LEdge.prototype = Object.create(LGraphObject.prototype);
110
+ for (var prop in LGraphObject) {
111
+ LEdge[prop] = LGraphObject[prop];
112
+ }
113
+ LEdge.prototype.getSource = function() {
114
+ return this.source;
115
+ };
116
+ LEdge.prototype.getTarget = function() {
117
+ return this.target;
118
+ };
119
+ LEdge.prototype.isInterGraph = function() {
120
+ return this.isInterGraph;
121
+ };
122
+ LEdge.prototype.getLength = function() {
123
+ return this.length;
124
+ };
125
+ LEdge.prototype.isOverlapingSourceAndTarget = function() {
126
+ return this.isOverlapingSourceAndTarget;
127
+ };
128
+ LEdge.prototype.getBendpoints = function() {
129
+ return this.bendpoints;
130
+ };
131
+ LEdge.prototype.getLca = function() {
132
+ return this.lca;
133
+ };
134
+ LEdge.prototype.getSourceInLca = function() {
135
+ return this.sourceInLca;
136
+ };
137
+ LEdge.prototype.getTargetInLca = function() {
138
+ return this.targetInLca;
139
+ };
140
+ LEdge.prototype.getOtherEnd = function(node) {
141
+ if (this.source === node) {
142
+ return this.target;
143
+ } else if (this.target === node) {
144
+ return this.source;
145
+ } else {
146
+ throw "Node is not incident with this edge";
147
+ }
148
+ };
149
+ LEdge.prototype.getOtherEndInGraph = function(node, graph) {
150
+ var otherEnd = this.getOtherEnd(node);
151
+ var root = graph.getGraphManager().getRoot();
152
+ while (true) {
153
+ if (otherEnd.getOwner() == graph) {
154
+ return otherEnd;
155
+ }
156
+ if (otherEnd.getOwner() == root) {
157
+ break;
158
+ }
159
+ otherEnd = otherEnd.getOwner().getParent();
160
+ }
161
+ return null;
162
+ };
163
+ LEdge.prototype.updateLength = function() {
164
+ var clipPointCoordinates = new Array(4);
165
+ this.isOverlapingSourceAndTarget = IGeometry.getIntersection(this.target.getRect(), this.source.getRect(), clipPointCoordinates);
166
+ if (!this.isOverlapingSourceAndTarget) {
167
+ this.lengthX = clipPointCoordinates[0] - clipPointCoordinates[2];
168
+ this.lengthY = clipPointCoordinates[1] - clipPointCoordinates[3];
169
+ if (Math.abs(this.lengthX) < 1) {
170
+ this.lengthX = IMath.sign(this.lengthX);
171
+ }
172
+ if (Math.abs(this.lengthY) < 1) {
173
+ this.lengthY = IMath.sign(this.lengthY);
174
+ }
175
+ this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY);
176
+ }
177
+ };
178
+ LEdge.prototype.updateLengthSimple = function() {
179
+ this.lengthX = this.target.getCenterX() - this.source.getCenterX();
180
+ this.lengthY = this.target.getCenterY() - this.source.getCenterY();
181
+ if (Math.abs(this.lengthX) < 1) {
182
+ this.lengthX = IMath.sign(this.lengthX);
183
+ }
184
+ if (Math.abs(this.lengthY) < 1) {
185
+ this.lengthY = IMath.sign(this.lengthY);
186
+ }
187
+ this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY);
188
+ };
189
+ module2.exports = LEdge;
190
+ },
191
+ /* 2 */
192
+ /***/
193
+ function(module2, exports2, __webpack_require__) {
194
+ function LGraphObject(vGraphObject) {
195
+ this.vGraphObject = vGraphObject;
196
+ }
197
+ module2.exports = LGraphObject;
198
+ },
199
+ /* 3 */
200
+ /***/
201
+ function(module2, exports2, __webpack_require__) {
202
+ var LGraphObject = __webpack_require__(2);
203
+ var Integer = __webpack_require__(10);
204
+ var RectangleD = __webpack_require__(13);
205
+ var LayoutConstants = __webpack_require__(0);
206
+ var RandomSeed = __webpack_require__(16);
207
+ var PointD = __webpack_require__(4);
208
+ function LNode(gm, loc, size, vNode) {
209
+ if (size == null && vNode == null) {
210
+ vNode = loc;
211
+ }
212
+ LGraphObject.call(this, vNode);
213
+ if (gm.graphManager != null) gm = gm.graphManager;
214
+ this.estimatedSize = Integer.MIN_VALUE;
215
+ this.inclusionTreeDepth = Integer.MAX_VALUE;
216
+ this.vGraphObject = vNode;
217
+ this.edges = [];
218
+ this.graphManager = gm;
219
+ if (size != null && loc != null) this.rect = new RectangleD(loc.x, loc.y, size.width, size.height);
220
+ else this.rect = new RectangleD();
221
+ }
222
+ LNode.prototype = Object.create(LGraphObject.prototype);
223
+ for (var prop in LGraphObject) {
224
+ LNode[prop] = LGraphObject[prop];
225
+ }
226
+ LNode.prototype.getEdges = function() {
227
+ return this.edges;
228
+ };
229
+ LNode.prototype.getChild = function() {
230
+ return this.child;
231
+ };
232
+ LNode.prototype.getOwner = function() {
233
+ return this.owner;
234
+ };
235
+ LNode.prototype.getWidth = function() {
236
+ return this.rect.width;
237
+ };
238
+ LNode.prototype.setWidth = function(width) {
239
+ this.rect.width = width;
240
+ };
241
+ LNode.prototype.getHeight = function() {
242
+ return this.rect.height;
243
+ };
244
+ LNode.prototype.setHeight = function(height) {
245
+ this.rect.height = height;
246
+ };
247
+ LNode.prototype.getCenterX = function() {
248
+ return this.rect.x + this.rect.width / 2;
249
+ };
250
+ LNode.prototype.getCenterY = function() {
251
+ return this.rect.y + this.rect.height / 2;
252
+ };
253
+ LNode.prototype.getCenter = function() {
254
+ return new PointD(this.rect.x + this.rect.width / 2, this.rect.y + this.rect.height / 2);
255
+ };
256
+ LNode.prototype.getLocation = function() {
257
+ return new PointD(this.rect.x, this.rect.y);
258
+ };
259
+ LNode.prototype.getRect = function() {
260
+ return this.rect;
261
+ };
262
+ LNode.prototype.getDiagonal = function() {
263
+ return Math.sqrt(this.rect.width * this.rect.width + this.rect.height * this.rect.height);
264
+ };
265
+ LNode.prototype.getHalfTheDiagonal = function() {
266
+ return Math.sqrt(this.rect.height * this.rect.height + this.rect.width * this.rect.width) / 2;
267
+ };
268
+ LNode.prototype.setRect = function(upperLeft, dimension) {
269
+ this.rect.x = upperLeft.x;
270
+ this.rect.y = upperLeft.y;
271
+ this.rect.width = dimension.width;
272
+ this.rect.height = dimension.height;
273
+ };
274
+ LNode.prototype.setCenter = function(cx, cy) {
275
+ this.rect.x = cx - this.rect.width / 2;
276
+ this.rect.y = cy - this.rect.height / 2;
277
+ };
278
+ LNode.prototype.setLocation = function(x, y) {
279
+ this.rect.x = x;
280
+ this.rect.y = y;
281
+ };
282
+ LNode.prototype.moveBy = function(dx, dy) {
283
+ this.rect.x += dx;
284
+ this.rect.y += dy;
285
+ };
286
+ LNode.prototype.getEdgeListToNode = function(to) {
287
+ var edgeList = [];
288
+ var self = this;
289
+ self.edges.forEach(function(edge) {
290
+ if (edge.target == to) {
291
+ if (edge.source != self) throw "Incorrect edge source!";
292
+ edgeList.push(edge);
293
+ }
294
+ });
295
+ return edgeList;
296
+ };
297
+ LNode.prototype.getEdgesBetween = function(other) {
298
+ var edgeList = [];
299
+ var self = this;
300
+ self.edges.forEach(function(edge) {
301
+ if (!(edge.source == self || edge.target == self)) throw "Incorrect edge source and/or target";
302
+ if (edge.target == other || edge.source == other) {
303
+ edgeList.push(edge);
304
+ }
305
+ });
306
+ return edgeList;
307
+ };
308
+ LNode.prototype.getNeighborsList = function() {
309
+ var neighbors = /* @__PURE__ */ new Set();
310
+ var self = this;
311
+ self.edges.forEach(function(edge) {
312
+ if (edge.source == self) {
313
+ neighbors.add(edge.target);
314
+ } else {
315
+ if (edge.target != self) {
316
+ throw "Incorrect incidency!";
317
+ }
318
+ neighbors.add(edge.source);
319
+ }
320
+ });
321
+ return neighbors;
322
+ };
323
+ LNode.prototype.withChildren = function() {
324
+ var withNeighborsList = /* @__PURE__ */ new Set();
325
+ var childNode;
326
+ var children;
327
+ withNeighborsList.add(this);
328
+ if (this.child != null) {
329
+ var nodes = this.child.getNodes();
330
+ for (var i = 0; i < nodes.length; i++) {
331
+ childNode = nodes[i];
332
+ children = childNode.withChildren();
333
+ children.forEach(function(node) {
334
+ withNeighborsList.add(node);
335
+ });
336
+ }
337
+ }
338
+ return withNeighborsList;
339
+ };
340
+ LNode.prototype.getNoOfChildren = function() {
341
+ var noOfChildren = 0;
342
+ var childNode;
343
+ if (this.child == null) {
344
+ noOfChildren = 1;
345
+ } else {
346
+ var nodes = this.child.getNodes();
347
+ for (var i = 0; i < nodes.length; i++) {
348
+ childNode = nodes[i];
349
+ noOfChildren += childNode.getNoOfChildren();
350
+ }
351
+ }
352
+ if (noOfChildren == 0) {
353
+ noOfChildren = 1;
354
+ }
355
+ return noOfChildren;
356
+ };
357
+ LNode.prototype.getEstimatedSize = function() {
358
+ if (this.estimatedSize == Integer.MIN_VALUE) {
359
+ throw "assert failed";
360
+ }
361
+ return this.estimatedSize;
362
+ };
363
+ LNode.prototype.calcEstimatedSize = function() {
364
+ if (this.child == null) {
365
+ return this.estimatedSize = (this.rect.width + this.rect.height) / 2;
366
+ } else {
367
+ this.estimatedSize = this.child.calcEstimatedSize();
368
+ this.rect.width = this.estimatedSize;
369
+ this.rect.height = this.estimatedSize;
370
+ return this.estimatedSize;
371
+ }
372
+ };
373
+ LNode.prototype.scatter = function() {
374
+ var randomCenterX;
375
+ var randomCenterY;
376
+ var minX = -LayoutConstants.INITIAL_WORLD_BOUNDARY;
377
+ var maxX = LayoutConstants.INITIAL_WORLD_BOUNDARY;
378
+ randomCenterX = LayoutConstants.WORLD_CENTER_X + RandomSeed.nextDouble() * (maxX - minX) + minX;
379
+ var minY = -LayoutConstants.INITIAL_WORLD_BOUNDARY;
380
+ var maxY = LayoutConstants.INITIAL_WORLD_BOUNDARY;
381
+ randomCenterY = LayoutConstants.WORLD_CENTER_Y + RandomSeed.nextDouble() * (maxY - minY) + minY;
382
+ this.rect.x = randomCenterX;
383
+ this.rect.y = randomCenterY;
384
+ };
385
+ LNode.prototype.updateBounds = function() {
386
+ if (this.getChild() == null) {
387
+ throw "assert failed";
388
+ }
389
+ if (this.getChild().getNodes().length != 0) {
390
+ var childGraph = this.getChild();
391
+ childGraph.updateBounds(true);
392
+ this.rect.x = childGraph.getLeft();
393
+ this.rect.y = childGraph.getTop();
394
+ this.setWidth(childGraph.getRight() - childGraph.getLeft());
395
+ this.setHeight(childGraph.getBottom() - childGraph.getTop());
396
+ if (LayoutConstants.NODE_DIMENSIONS_INCLUDE_LABELS) {
397
+ var width = childGraph.getRight() - childGraph.getLeft();
398
+ var height = childGraph.getBottom() - childGraph.getTop();
399
+ if (this.labelWidth > width) {
400
+ this.rect.x -= (this.labelWidth - width) / 2;
401
+ this.setWidth(this.labelWidth);
402
+ }
403
+ if (this.labelHeight > height) {
404
+ if (this.labelPos == "center") {
405
+ this.rect.y -= (this.labelHeight - height) / 2;
406
+ } else if (this.labelPos == "top") {
407
+ this.rect.y -= this.labelHeight - height;
408
+ }
409
+ this.setHeight(this.labelHeight);
410
+ }
411
+ }
412
+ }
413
+ };
414
+ LNode.prototype.getInclusionTreeDepth = function() {
415
+ if (this.inclusionTreeDepth == Integer.MAX_VALUE) {
416
+ throw "assert failed";
417
+ }
418
+ return this.inclusionTreeDepth;
419
+ };
420
+ LNode.prototype.transform = function(trans) {
421
+ var left = this.rect.x;
422
+ if (left > LayoutConstants.WORLD_BOUNDARY) {
423
+ left = LayoutConstants.WORLD_BOUNDARY;
424
+ } else if (left < -LayoutConstants.WORLD_BOUNDARY) {
425
+ left = -LayoutConstants.WORLD_BOUNDARY;
426
+ }
427
+ var top = this.rect.y;
428
+ if (top > LayoutConstants.WORLD_BOUNDARY) {
429
+ top = LayoutConstants.WORLD_BOUNDARY;
430
+ } else if (top < -LayoutConstants.WORLD_BOUNDARY) {
431
+ top = -LayoutConstants.WORLD_BOUNDARY;
432
+ }
433
+ var leftTop = new PointD(left, top);
434
+ var vLeftTop = trans.inverseTransformPoint(leftTop);
435
+ this.setLocation(vLeftTop.x, vLeftTop.y);
436
+ };
437
+ LNode.prototype.getLeft = function() {
438
+ return this.rect.x;
439
+ };
440
+ LNode.prototype.getRight = function() {
441
+ return this.rect.x + this.rect.width;
442
+ };
443
+ LNode.prototype.getTop = function() {
444
+ return this.rect.y;
445
+ };
446
+ LNode.prototype.getBottom = function() {
447
+ return this.rect.y + this.rect.height;
448
+ };
449
+ LNode.prototype.getParent = function() {
450
+ if (this.owner == null) {
451
+ return null;
452
+ }
453
+ return this.owner.getParent();
454
+ };
455
+ module2.exports = LNode;
456
+ },
457
+ /* 4 */
458
+ /***/
459
+ function(module2, exports2, __webpack_require__) {
460
+ function PointD(x, y) {
461
+ if (x == null && y == null) {
462
+ this.x = 0;
463
+ this.y = 0;
464
+ } else {
465
+ this.x = x;
466
+ this.y = y;
467
+ }
468
+ }
469
+ PointD.prototype.getX = function() {
470
+ return this.x;
471
+ };
472
+ PointD.prototype.getY = function() {
473
+ return this.y;
474
+ };
475
+ PointD.prototype.setX = function(x) {
476
+ this.x = x;
477
+ };
478
+ PointD.prototype.setY = function(y) {
479
+ this.y = y;
480
+ };
481
+ PointD.prototype.getDifference = function(pt) {
482
+ return new DimensionD(this.x - pt.x, this.y - pt.y);
483
+ };
484
+ PointD.prototype.getCopy = function() {
485
+ return new PointD(this.x, this.y);
486
+ };
487
+ PointD.prototype.translate = function(dim) {
488
+ this.x += dim.width;
489
+ this.y += dim.height;
490
+ return this;
491
+ };
492
+ module2.exports = PointD;
493
+ },
494
+ /* 5 */
495
+ /***/
496
+ function(module2, exports2, __webpack_require__) {
497
+ var LGraphObject = __webpack_require__(2);
498
+ var Integer = __webpack_require__(10);
499
+ var LayoutConstants = __webpack_require__(0);
500
+ var LGraphManager = __webpack_require__(6);
501
+ var LNode = __webpack_require__(3);
502
+ var LEdge = __webpack_require__(1);
503
+ var RectangleD = __webpack_require__(13);
504
+ var Point2 = __webpack_require__(12);
505
+ var LinkedList = __webpack_require__(11);
506
+ function LGraph(parent, obj2, vGraph) {
507
+ LGraphObject.call(this, vGraph);
508
+ this.estimatedSize = Integer.MIN_VALUE;
509
+ this.margin = LayoutConstants.DEFAULT_GRAPH_MARGIN;
510
+ this.edges = [];
511
+ this.nodes = [];
512
+ this.isConnected = false;
513
+ this.parent = parent;
514
+ if (obj2 != null && obj2 instanceof LGraphManager) {
515
+ this.graphManager = obj2;
516
+ } else if (obj2 != null && obj2 instanceof Layout) {
517
+ this.graphManager = obj2.graphManager;
518
+ }
519
+ }
520
+ LGraph.prototype = Object.create(LGraphObject.prototype);
521
+ for (var prop in LGraphObject) {
522
+ LGraph[prop] = LGraphObject[prop];
523
+ }
524
+ LGraph.prototype.getNodes = function() {
525
+ return this.nodes;
526
+ };
527
+ LGraph.prototype.getEdges = function() {
528
+ return this.edges;
529
+ };
530
+ LGraph.prototype.getGraphManager = function() {
531
+ return this.graphManager;
532
+ };
533
+ LGraph.prototype.getParent = function() {
534
+ return this.parent;
535
+ };
536
+ LGraph.prototype.getLeft = function() {
537
+ return this.left;
538
+ };
539
+ LGraph.prototype.getRight = function() {
540
+ return this.right;
541
+ };
542
+ LGraph.prototype.getTop = function() {
543
+ return this.top;
544
+ };
545
+ LGraph.prototype.getBottom = function() {
546
+ return this.bottom;
547
+ };
548
+ LGraph.prototype.isConnected = function() {
549
+ return this.isConnected;
550
+ };
551
+ LGraph.prototype.add = function(obj1, sourceNode, targetNode) {
552
+ if (sourceNode == null && targetNode == null) {
553
+ var newNode = obj1;
554
+ if (this.graphManager == null) {
555
+ throw "Graph has no graph mgr!";
556
+ }
557
+ if (this.getNodes().indexOf(newNode) > -1) {
558
+ throw "Node already in graph!";
559
+ }
560
+ newNode.owner = this;
561
+ this.getNodes().push(newNode);
562
+ return newNode;
563
+ } else {
564
+ var newEdge = obj1;
565
+ if (!(this.getNodes().indexOf(sourceNode) > -1 && this.getNodes().indexOf(targetNode) > -1)) {
566
+ throw "Source or target not in graph!";
567
+ }
568
+ if (!(sourceNode.owner == targetNode.owner && sourceNode.owner == this)) {
569
+ throw "Both owners must be this graph!";
570
+ }
571
+ if (sourceNode.owner != targetNode.owner) {
572
+ return null;
573
+ }
574
+ newEdge.source = sourceNode;
575
+ newEdge.target = targetNode;
576
+ newEdge.isInterGraph = false;
577
+ this.getEdges().push(newEdge);
578
+ sourceNode.edges.push(newEdge);
579
+ if (targetNode != sourceNode) {
580
+ targetNode.edges.push(newEdge);
581
+ }
582
+ return newEdge;
583
+ }
584
+ };
585
+ LGraph.prototype.remove = function(obj) {
586
+ var node = obj;
587
+ if (obj instanceof LNode) {
588
+ if (node == null) {
589
+ throw "Node is null!";
590
+ }
591
+ if (!(node.owner != null && node.owner == this)) {
592
+ throw "Owner graph is invalid!";
593
+ }
594
+ if (this.graphManager == null) {
595
+ throw "Owner graph manager is invalid!";
596
+ }
597
+ var edgesToBeRemoved = node.edges.slice();
598
+ var edge;
599
+ var s = edgesToBeRemoved.length;
600
+ for (var i = 0; i < s; i++) {
601
+ edge = edgesToBeRemoved[i];
602
+ if (edge.isInterGraph) {
603
+ this.graphManager.remove(edge);
604
+ } else {
605
+ edge.source.owner.remove(edge);
606
+ }
607
+ }
608
+ var index = this.nodes.indexOf(node);
609
+ if (index == -1) {
610
+ throw "Node not in owner node list!";
611
+ }
612
+ this.nodes.splice(index, 1);
613
+ } else if (obj instanceof LEdge) {
614
+ var edge = obj;
615
+ if (edge == null) {
616
+ throw "Edge is null!";
617
+ }
618
+ if (!(edge.source != null && edge.target != null)) {
619
+ throw "Source and/or target is null!";
620
+ }
621
+ if (!(edge.source.owner != null && edge.target.owner != null && edge.source.owner == this && edge.target.owner == this)) {
622
+ throw "Source and/or target owner is invalid!";
623
+ }
624
+ var sourceIndex = edge.source.edges.indexOf(edge);
625
+ var targetIndex = edge.target.edges.indexOf(edge);
626
+ if (!(sourceIndex > -1 && targetIndex > -1)) {
627
+ throw "Source and/or target doesn't know this edge!";
628
+ }
629
+ edge.source.edges.splice(sourceIndex, 1);
630
+ if (edge.target != edge.source) {
631
+ edge.target.edges.splice(targetIndex, 1);
632
+ }
633
+ var index = edge.source.owner.getEdges().indexOf(edge);
634
+ if (index == -1) {
635
+ throw "Not in owner's edge list!";
636
+ }
637
+ edge.source.owner.getEdges().splice(index, 1);
638
+ }
639
+ };
640
+ LGraph.prototype.updateLeftTop = function() {
641
+ var top = Integer.MAX_VALUE;
642
+ var left = Integer.MAX_VALUE;
643
+ var nodeTop;
644
+ var nodeLeft;
645
+ var margin;
646
+ var nodes = this.getNodes();
647
+ var s = nodes.length;
648
+ for (var i = 0; i < s; i++) {
649
+ var lNode = nodes[i];
650
+ nodeTop = lNode.getTop();
651
+ nodeLeft = lNode.getLeft();
652
+ if (top > nodeTop) {
653
+ top = nodeTop;
654
+ }
655
+ if (left > nodeLeft) {
656
+ left = nodeLeft;
657
+ }
658
+ }
659
+ if (top == Integer.MAX_VALUE) {
660
+ return null;
661
+ }
662
+ if (nodes[0].getParent().paddingLeft != void 0) {
663
+ margin = nodes[0].getParent().paddingLeft;
664
+ } else {
665
+ margin = this.margin;
666
+ }
667
+ this.left = left - margin;
668
+ this.top = top - margin;
669
+ return new Point2(this.left, this.top);
670
+ };
671
+ LGraph.prototype.updateBounds = function(recursive) {
672
+ var left = Integer.MAX_VALUE;
673
+ var right = -Integer.MAX_VALUE;
674
+ var top = Integer.MAX_VALUE;
675
+ var bottom = -Integer.MAX_VALUE;
676
+ var nodeLeft;
677
+ var nodeRight;
678
+ var nodeTop;
679
+ var nodeBottom;
680
+ var margin;
681
+ var nodes = this.nodes;
682
+ var s = nodes.length;
683
+ for (var i = 0; i < s; i++) {
684
+ var lNode = nodes[i];
685
+ if (recursive && lNode.child != null) {
686
+ lNode.updateBounds();
687
+ }
688
+ nodeLeft = lNode.getLeft();
689
+ nodeRight = lNode.getRight();
690
+ nodeTop = lNode.getTop();
691
+ nodeBottom = lNode.getBottom();
692
+ if (left > nodeLeft) {
693
+ left = nodeLeft;
694
+ }
695
+ if (right < nodeRight) {
696
+ right = nodeRight;
697
+ }
698
+ if (top > nodeTop) {
699
+ top = nodeTop;
700
+ }
701
+ if (bottom < nodeBottom) {
702
+ bottom = nodeBottom;
703
+ }
704
+ }
705
+ var boundingRect = new RectangleD(left, top, right - left, bottom - top);
706
+ if (left == Integer.MAX_VALUE) {
707
+ this.left = this.parent.getLeft();
708
+ this.right = this.parent.getRight();
709
+ this.top = this.parent.getTop();
710
+ this.bottom = this.parent.getBottom();
711
+ }
712
+ if (nodes[0].getParent().paddingLeft != void 0) {
713
+ margin = nodes[0].getParent().paddingLeft;
714
+ } else {
715
+ margin = this.margin;
716
+ }
717
+ this.left = boundingRect.x - margin;
718
+ this.right = boundingRect.x + boundingRect.width + margin;
719
+ this.top = boundingRect.y - margin;
720
+ this.bottom = boundingRect.y + boundingRect.height + margin;
721
+ };
722
+ LGraph.calculateBounds = function(nodes) {
723
+ var left = Integer.MAX_VALUE;
724
+ var right = -Integer.MAX_VALUE;
725
+ var top = Integer.MAX_VALUE;
726
+ var bottom = -Integer.MAX_VALUE;
727
+ var nodeLeft;
728
+ var nodeRight;
729
+ var nodeTop;
730
+ var nodeBottom;
731
+ var s = nodes.length;
732
+ for (var i = 0; i < s; i++) {
733
+ var lNode = nodes[i];
734
+ nodeLeft = lNode.getLeft();
735
+ nodeRight = lNode.getRight();
736
+ nodeTop = lNode.getTop();
737
+ nodeBottom = lNode.getBottom();
738
+ if (left > nodeLeft) {
739
+ left = nodeLeft;
740
+ }
741
+ if (right < nodeRight) {
742
+ right = nodeRight;
743
+ }
744
+ if (top > nodeTop) {
745
+ top = nodeTop;
746
+ }
747
+ if (bottom < nodeBottom) {
748
+ bottom = nodeBottom;
749
+ }
750
+ }
751
+ var boundingRect = new RectangleD(left, top, right - left, bottom - top);
752
+ return boundingRect;
753
+ };
754
+ LGraph.prototype.getInclusionTreeDepth = function() {
755
+ if (this == this.graphManager.getRoot()) {
756
+ return 1;
757
+ } else {
758
+ return this.parent.getInclusionTreeDepth();
759
+ }
760
+ };
761
+ LGraph.prototype.getEstimatedSize = function() {
762
+ if (this.estimatedSize == Integer.MIN_VALUE) {
763
+ throw "assert failed";
764
+ }
765
+ return this.estimatedSize;
766
+ };
767
+ LGraph.prototype.calcEstimatedSize = function() {
768
+ var size = 0;
769
+ var nodes = this.nodes;
770
+ var s = nodes.length;
771
+ for (var i = 0; i < s; i++) {
772
+ var lNode = nodes[i];
773
+ size += lNode.calcEstimatedSize();
774
+ }
775
+ if (size == 0) {
776
+ this.estimatedSize = LayoutConstants.EMPTY_COMPOUND_NODE_SIZE;
777
+ } else {
778
+ this.estimatedSize = size / Math.sqrt(this.nodes.length);
779
+ }
780
+ return this.estimatedSize;
781
+ };
782
+ LGraph.prototype.updateConnected = function() {
783
+ var self = this;
784
+ if (this.nodes.length == 0) {
785
+ this.isConnected = true;
786
+ return;
787
+ }
788
+ var queue = new LinkedList();
789
+ var visited = /* @__PURE__ */ new Set();
790
+ var currentNode = this.nodes[0];
791
+ var neighborEdges;
792
+ var currentNeighbor;
793
+ var childrenOfNode = currentNode.withChildren();
794
+ childrenOfNode.forEach(function(node) {
795
+ queue.push(node);
796
+ visited.add(node);
797
+ });
798
+ while (queue.length !== 0) {
799
+ currentNode = queue.shift();
800
+ neighborEdges = currentNode.getEdges();
801
+ var size = neighborEdges.length;
802
+ for (var i = 0; i < size; i++) {
803
+ var neighborEdge = neighborEdges[i];
804
+ currentNeighbor = neighborEdge.getOtherEndInGraph(currentNode, this);
805
+ if (currentNeighbor != null && !visited.has(currentNeighbor)) {
806
+ var childrenOfNeighbor = currentNeighbor.withChildren();
807
+ childrenOfNeighbor.forEach(function(node) {
808
+ queue.push(node);
809
+ visited.add(node);
810
+ });
811
+ }
812
+ }
813
+ }
814
+ this.isConnected = false;
815
+ if (visited.size >= this.nodes.length) {
816
+ var noOfVisitedInThisGraph = 0;
817
+ visited.forEach(function(visitedNode) {
818
+ if (visitedNode.owner == self) {
819
+ noOfVisitedInThisGraph++;
820
+ }
821
+ });
822
+ if (noOfVisitedInThisGraph == this.nodes.length) {
823
+ this.isConnected = true;
824
+ }
825
+ }
826
+ };
827
+ module2.exports = LGraph;
828
+ },
829
+ /* 6 */
830
+ /***/
831
+ function(module2, exports2, __webpack_require__) {
832
+ var LGraph;
833
+ var LEdge = __webpack_require__(1);
834
+ function LGraphManager(layout) {
835
+ LGraph = __webpack_require__(5);
836
+ this.layout = layout;
837
+ this.graphs = [];
838
+ this.edges = [];
839
+ }
840
+ LGraphManager.prototype.addRoot = function() {
841
+ var ngraph = this.layout.newGraph();
842
+ var nnode = this.layout.newNode(null);
843
+ var root = this.add(ngraph, nnode);
844
+ this.setRootGraph(root);
845
+ return this.rootGraph;
846
+ };
847
+ LGraphManager.prototype.add = function(newGraph, parentNode, newEdge, sourceNode, targetNode) {
848
+ if (newEdge == null && sourceNode == null && targetNode == null) {
849
+ if (newGraph == null) {
850
+ throw "Graph is null!";
851
+ }
852
+ if (parentNode == null) {
853
+ throw "Parent node is null!";
854
+ }
855
+ if (this.graphs.indexOf(newGraph) > -1) {
856
+ throw "Graph already in this graph mgr!";
857
+ }
858
+ this.graphs.push(newGraph);
859
+ if (newGraph.parent != null) {
860
+ throw "Already has a parent!";
861
+ }
862
+ if (parentNode.child != null) {
863
+ throw "Already has a child!";
864
+ }
865
+ newGraph.parent = parentNode;
866
+ parentNode.child = newGraph;
867
+ return newGraph;
868
+ } else {
869
+ targetNode = newEdge;
870
+ sourceNode = parentNode;
871
+ newEdge = newGraph;
872
+ var sourceGraph = sourceNode.getOwner();
873
+ var targetGraph = targetNode.getOwner();
874
+ if (!(sourceGraph != null && sourceGraph.getGraphManager() == this)) {
875
+ throw "Source not in this graph mgr!";
876
+ }
877
+ if (!(targetGraph != null && targetGraph.getGraphManager() == this)) {
878
+ throw "Target not in this graph mgr!";
879
+ }
880
+ if (sourceGraph == targetGraph) {
881
+ newEdge.isInterGraph = false;
882
+ return sourceGraph.add(newEdge, sourceNode, targetNode);
883
+ } else {
884
+ newEdge.isInterGraph = true;
885
+ newEdge.source = sourceNode;
886
+ newEdge.target = targetNode;
887
+ if (this.edges.indexOf(newEdge) > -1) {
888
+ throw "Edge already in inter-graph edge list!";
889
+ }
890
+ this.edges.push(newEdge);
891
+ if (!(newEdge.source != null && newEdge.target != null)) {
892
+ throw "Edge source and/or target is null!";
893
+ }
894
+ if (!(newEdge.source.edges.indexOf(newEdge) == -1 && newEdge.target.edges.indexOf(newEdge) == -1)) {
895
+ throw "Edge already in source and/or target incidency list!";
896
+ }
897
+ newEdge.source.edges.push(newEdge);
898
+ newEdge.target.edges.push(newEdge);
899
+ return newEdge;
900
+ }
901
+ }
902
+ };
903
+ LGraphManager.prototype.remove = function(lObj) {
904
+ if (lObj instanceof LGraph) {
905
+ var graph = lObj;
906
+ if (graph.getGraphManager() != this) {
907
+ throw "Graph not in this graph mgr";
908
+ }
909
+ if (!(graph == this.rootGraph || graph.parent != null && graph.parent.graphManager == this)) {
910
+ throw "Invalid parent node!";
911
+ }
912
+ var edgesToBeRemoved = [];
913
+ edgesToBeRemoved = edgesToBeRemoved.concat(graph.getEdges());
914
+ var edge;
915
+ var s = edgesToBeRemoved.length;
916
+ for (var i = 0; i < s; i++) {
917
+ edge = edgesToBeRemoved[i];
918
+ graph.remove(edge);
919
+ }
920
+ var nodesToBeRemoved = [];
921
+ nodesToBeRemoved = nodesToBeRemoved.concat(graph.getNodes());
922
+ var node;
923
+ s = nodesToBeRemoved.length;
924
+ for (var i = 0; i < s; i++) {
925
+ node = nodesToBeRemoved[i];
926
+ graph.remove(node);
927
+ }
928
+ if (graph == this.rootGraph) {
929
+ this.setRootGraph(null);
930
+ }
931
+ var index = this.graphs.indexOf(graph);
932
+ this.graphs.splice(index, 1);
933
+ graph.parent = null;
934
+ } else if (lObj instanceof LEdge) {
935
+ edge = lObj;
936
+ if (edge == null) {
937
+ throw "Edge is null!";
938
+ }
939
+ if (!edge.isInterGraph) {
940
+ throw "Not an inter-graph edge!";
941
+ }
942
+ if (!(edge.source != null && edge.target != null)) {
943
+ throw "Source and/or target is null!";
944
+ }
945
+ if (!(edge.source.edges.indexOf(edge) != -1 && edge.target.edges.indexOf(edge) != -1)) {
946
+ throw "Source and/or target doesn't know this edge!";
947
+ }
948
+ var index = edge.source.edges.indexOf(edge);
949
+ edge.source.edges.splice(index, 1);
950
+ index = edge.target.edges.indexOf(edge);
951
+ edge.target.edges.splice(index, 1);
952
+ if (!(edge.source.owner != null && edge.source.owner.getGraphManager() != null)) {
953
+ throw "Edge owner graph or owner graph manager is null!";
954
+ }
955
+ if (edge.source.owner.getGraphManager().edges.indexOf(edge) == -1) {
956
+ throw "Not in owner graph manager's edge list!";
957
+ }
958
+ var index = edge.source.owner.getGraphManager().edges.indexOf(edge);
959
+ edge.source.owner.getGraphManager().edges.splice(index, 1);
960
+ }
961
+ };
962
+ LGraphManager.prototype.updateBounds = function() {
963
+ this.rootGraph.updateBounds(true);
964
+ };
965
+ LGraphManager.prototype.getGraphs = function() {
966
+ return this.graphs;
967
+ };
968
+ LGraphManager.prototype.getAllNodes = function() {
969
+ if (this.allNodes == null) {
970
+ var nodeList = [];
971
+ var graphs = this.getGraphs();
972
+ var s = graphs.length;
973
+ for (var i = 0; i < s; i++) {
974
+ nodeList = nodeList.concat(graphs[i].getNodes());
975
+ }
976
+ this.allNodes = nodeList;
977
+ }
978
+ return this.allNodes;
979
+ };
980
+ LGraphManager.prototype.resetAllNodes = function() {
981
+ this.allNodes = null;
982
+ };
983
+ LGraphManager.prototype.resetAllEdges = function() {
984
+ this.allEdges = null;
985
+ };
986
+ LGraphManager.prototype.resetAllNodesToApplyGravitation = function() {
987
+ this.allNodesToApplyGravitation = null;
988
+ };
989
+ LGraphManager.prototype.getAllEdges = function() {
990
+ if (this.allEdges == null) {
991
+ var edgeList = [];
992
+ var graphs = this.getGraphs();
993
+ graphs.length;
994
+ for (var i = 0; i < graphs.length; i++) {
995
+ edgeList = edgeList.concat(graphs[i].getEdges());
996
+ }
997
+ edgeList = edgeList.concat(this.edges);
998
+ this.allEdges = edgeList;
999
+ }
1000
+ return this.allEdges;
1001
+ };
1002
+ LGraphManager.prototype.getAllNodesToApplyGravitation = function() {
1003
+ return this.allNodesToApplyGravitation;
1004
+ };
1005
+ LGraphManager.prototype.setAllNodesToApplyGravitation = function(nodeList) {
1006
+ if (this.allNodesToApplyGravitation != null) {
1007
+ throw "assert failed";
1008
+ }
1009
+ this.allNodesToApplyGravitation = nodeList;
1010
+ };
1011
+ LGraphManager.prototype.getRoot = function() {
1012
+ return this.rootGraph;
1013
+ };
1014
+ LGraphManager.prototype.setRootGraph = function(graph) {
1015
+ if (graph.getGraphManager() != this) {
1016
+ throw "Root not in this graph mgr!";
1017
+ }
1018
+ this.rootGraph = graph;
1019
+ if (graph.parent == null) {
1020
+ graph.parent = this.layout.newNode("Root node");
1021
+ }
1022
+ };
1023
+ LGraphManager.prototype.getLayout = function() {
1024
+ return this.layout;
1025
+ };
1026
+ LGraphManager.prototype.isOneAncestorOfOther = function(firstNode, secondNode) {
1027
+ if (!(firstNode != null && secondNode != null)) {
1028
+ throw "assert failed";
1029
+ }
1030
+ if (firstNode == secondNode) {
1031
+ return true;
1032
+ }
1033
+ var ownerGraph = firstNode.getOwner();
1034
+ var parentNode;
1035
+ do {
1036
+ parentNode = ownerGraph.getParent();
1037
+ if (parentNode == null) {
1038
+ break;
1039
+ }
1040
+ if (parentNode == secondNode) {
1041
+ return true;
1042
+ }
1043
+ ownerGraph = parentNode.getOwner();
1044
+ if (ownerGraph == null) {
1045
+ break;
1046
+ }
1047
+ } while (true);
1048
+ ownerGraph = secondNode.getOwner();
1049
+ do {
1050
+ parentNode = ownerGraph.getParent();
1051
+ if (parentNode == null) {
1052
+ break;
1053
+ }
1054
+ if (parentNode == firstNode) {
1055
+ return true;
1056
+ }
1057
+ ownerGraph = parentNode.getOwner();
1058
+ if (ownerGraph == null) {
1059
+ break;
1060
+ }
1061
+ } while (true);
1062
+ return false;
1063
+ };
1064
+ LGraphManager.prototype.calcLowestCommonAncestors = function() {
1065
+ var edge;
1066
+ var sourceNode;
1067
+ var targetNode;
1068
+ var sourceAncestorGraph;
1069
+ var targetAncestorGraph;
1070
+ var edges = this.getAllEdges();
1071
+ var s = edges.length;
1072
+ for (var i = 0; i < s; i++) {
1073
+ edge = edges[i];
1074
+ sourceNode = edge.source;
1075
+ targetNode = edge.target;
1076
+ edge.lca = null;
1077
+ edge.sourceInLca = sourceNode;
1078
+ edge.targetInLca = targetNode;
1079
+ if (sourceNode == targetNode) {
1080
+ edge.lca = sourceNode.getOwner();
1081
+ continue;
1082
+ }
1083
+ sourceAncestorGraph = sourceNode.getOwner();
1084
+ while (edge.lca == null) {
1085
+ edge.targetInLca = targetNode;
1086
+ targetAncestorGraph = targetNode.getOwner();
1087
+ while (edge.lca == null) {
1088
+ if (targetAncestorGraph == sourceAncestorGraph) {
1089
+ edge.lca = targetAncestorGraph;
1090
+ break;
1091
+ }
1092
+ if (targetAncestorGraph == this.rootGraph) {
1093
+ break;
1094
+ }
1095
+ if (edge.lca != null) {
1096
+ throw "assert failed";
1097
+ }
1098
+ edge.targetInLca = targetAncestorGraph.getParent();
1099
+ targetAncestorGraph = edge.targetInLca.getOwner();
1100
+ }
1101
+ if (sourceAncestorGraph == this.rootGraph) {
1102
+ break;
1103
+ }
1104
+ if (edge.lca == null) {
1105
+ edge.sourceInLca = sourceAncestorGraph.getParent();
1106
+ sourceAncestorGraph = edge.sourceInLca.getOwner();
1107
+ }
1108
+ }
1109
+ if (edge.lca == null) {
1110
+ throw "assert failed";
1111
+ }
1112
+ }
1113
+ };
1114
+ LGraphManager.prototype.calcLowestCommonAncestor = function(firstNode, secondNode) {
1115
+ if (firstNode == secondNode) {
1116
+ return firstNode.getOwner();
1117
+ }
1118
+ var firstOwnerGraph = firstNode.getOwner();
1119
+ do {
1120
+ if (firstOwnerGraph == null) {
1121
+ break;
1122
+ }
1123
+ var secondOwnerGraph = secondNode.getOwner();
1124
+ do {
1125
+ if (secondOwnerGraph == null) {
1126
+ break;
1127
+ }
1128
+ if (secondOwnerGraph == firstOwnerGraph) {
1129
+ return secondOwnerGraph;
1130
+ }
1131
+ secondOwnerGraph = secondOwnerGraph.getParent().getOwner();
1132
+ } while (true);
1133
+ firstOwnerGraph = firstOwnerGraph.getParent().getOwner();
1134
+ } while (true);
1135
+ return firstOwnerGraph;
1136
+ };
1137
+ LGraphManager.prototype.calcInclusionTreeDepths = function(graph, depth) {
1138
+ if (graph == null && depth == null) {
1139
+ graph = this.rootGraph;
1140
+ depth = 1;
1141
+ }
1142
+ var node;
1143
+ var nodes = graph.getNodes();
1144
+ var s = nodes.length;
1145
+ for (var i = 0; i < s; i++) {
1146
+ node = nodes[i];
1147
+ node.inclusionTreeDepth = depth;
1148
+ if (node.child != null) {
1149
+ this.calcInclusionTreeDepths(node.child, depth + 1);
1150
+ }
1151
+ }
1152
+ };
1153
+ LGraphManager.prototype.includesInvalidEdge = function() {
1154
+ var edge;
1155
+ var s = this.edges.length;
1156
+ for (var i = 0; i < s; i++) {
1157
+ edge = this.edges[i];
1158
+ if (this.isOneAncestorOfOther(edge.source, edge.target)) {
1159
+ return true;
1160
+ }
1161
+ }
1162
+ return false;
1163
+ };
1164
+ module2.exports = LGraphManager;
1165
+ },
1166
+ /* 7 */
1167
+ /***/
1168
+ function(module2, exports2, __webpack_require__) {
1169
+ var LayoutConstants = __webpack_require__(0);
1170
+ function FDLayoutConstants() {
1171
+ }
1172
+ for (var prop in LayoutConstants) {
1173
+ FDLayoutConstants[prop] = LayoutConstants[prop];
1174
+ }
1175
+ FDLayoutConstants.MAX_ITERATIONS = 2500;
1176
+ FDLayoutConstants.DEFAULT_EDGE_LENGTH = 50;
1177
+ FDLayoutConstants.DEFAULT_SPRING_STRENGTH = 0.45;
1178
+ FDLayoutConstants.DEFAULT_REPULSION_STRENGTH = 4500;
1179
+ FDLayoutConstants.DEFAULT_GRAVITY_STRENGTH = 0.4;
1180
+ FDLayoutConstants.DEFAULT_COMPOUND_GRAVITY_STRENGTH = 1;
1181
+ FDLayoutConstants.DEFAULT_GRAVITY_RANGE_FACTOR = 3.8;
1182
+ FDLayoutConstants.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = 1.5;
1183
+ FDLayoutConstants.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION = true;
1184
+ FDLayoutConstants.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION = true;
1185
+ FDLayoutConstants.DEFAULT_COOLING_FACTOR_INCREMENTAL = 0.3;
1186
+ FDLayoutConstants.COOLING_ADAPTATION_FACTOR = 0.33;
1187
+ FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT = 1e3;
1188
+ FDLayoutConstants.ADAPTATION_UPPER_NODE_LIMIT = 5e3;
1189
+ FDLayoutConstants.MAX_NODE_DISPLACEMENT_INCREMENTAL = 100;
1190
+ FDLayoutConstants.MAX_NODE_DISPLACEMENT = FDLayoutConstants.MAX_NODE_DISPLACEMENT_INCREMENTAL * 3;
1191
+ FDLayoutConstants.MIN_REPULSION_DIST = FDLayoutConstants.DEFAULT_EDGE_LENGTH / 10;
1192
+ FDLayoutConstants.CONVERGENCE_CHECK_PERIOD = 100;
1193
+ FDLayoutConstants.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = 0.1;
1194
+ FDLayoutConstants.MIN_EDGE_LENGTH = 1;
1195
+ FDLayoutConstants.GRID_CALCULATION_CHECK_PERIOD = 10;
1196
+ module2.exports = FDLayoutConstants;
1197
+ },
1198
+ /* 8 */
1199
+ /***/
1200
+ function(module2, exports2, __webpack_require__) {
1201
+ var Point2 = __webpack_require__(12);
1202
+ function IGeometry() {
1203
+ }
1204
+ IGeometry.calcSeparationAmount = function(rectA, rectB, overlapAmount, separationBuffer) {
1205
+ if (!rectA.intersects(rectB)) {
1206
+ throw "assert failed";
1207
+ }
1208
+ var directions = new Array(2);
1209
+ this.decideDirectionsForOverlappingNodes(rectA, rectB, directions);
1210
+ overlapAmount[0] = Math.min(rectA.getRight(), rectB.getRight()) - Math.max(rectA.x, rectB.x);
1211
+ overlapAmount[1] = Math.min(rectA.getBottom(), rectB.getBottom()) - Math.max(rectA.y, rectB.y);
1212
+ if (rectA.getX() <= rectB.getX() && rectA.getRight() >= rectB.getRight()) {
1213
+ overlapAmount[0] += Math.min(rectB.getX() - rectA.getX(), rectA.getRight() - rectB.getRight());
1214
+ } else if (rectB.getX() <= rectA.getX() && rectB.getRight() >= rectA.getRight()) {
1215
+ overlapAmount[0] += Math.min(rectA.getX() - rectB.getX(), rectB.getRight() - rectA.getRight());
1216
+ }
1217
+ if (rectA.getY() <= rectB.getY() && rectA.getBottom() >= rectB.getBottom()) {
1218
+ overlapAmount[1] += Math.min(rectB.getY() - rectA.getY(), rectA.getBottom() - rectB.getBottom());
1219
+ } else if (rectB.getY() <= rectA.getY() && rectB.getBottom() >= rectA.getBottom()) {
1220
+ overlapAmount[1] += Math.min(rectA.getY() - rectB.getY(), rectB.getBottom() - rectA.getBottom());
1221
+ }
1222
+ var slope = Math.abs((rectB.getCenterY() - rectA.getCenterY()) / (rectB.getCenterX() - rectA.getCenterX()));
1223
+ if (rectB.getCenterY() === rectA.getCenterY() && rectB.getCenterX() === rectA.getCenterX()) {
1224
+ slope = 1;
1225
+ }
1226
+ var moveByY = slope * overlapAmount[0];
1227
+ var moveByX = overlapAmount[1] / slope;
1228
+ if (overlapAmount[0] < moveByX) {
1229
+ moveByX = overlapAmount[0];
1230
+ } else {
1231
+ moveByY = overlapAmount[1];
1232
+ }
1233
+ overlapAmount[0] = -1 * directions[0] * (moveByX / 2 + separationBuffer);
1234
+ overlapAmount[1] = -1 * directions[1] * (moveByY / 2 + separationBuffer);
1235
+ };
1236
+ IGeometry.decideDirectionsForOverlappingNodes = function(rectA, rectB, directions) {
1237
+ if (rectA.getCenterX() < rectB.getCenterX()) {
1238
+ directions[0] = -1;
1239
+ } else {
1240
+ directions[0] = 1;
1241
+ }
1242
+ if (rectA.getCenterY() < rectB.getCenterY()) {
1243
+ directions[1] = -1;
1244
+ } else {
1245
+ directions[1] = 1;
1246
+ }
1247
+ };
1248
+ IGeometry.getIntersection2 = function(rectA, rectB, result) {
1249
+ var p1x = rectA.getCenterX();
1250
+ var p1y = rectA.getCenterY();
1251
+ var p2x = rectB.getCenterX();
1252
+ var p2y = rectB.getCenterY();
1253
+ if (rectA.intersects(rectB)) {
1254
+ result[0] = p1x;
1255
+ result[1] = p1y;
1256
+ result[2] = p2x;
1257
+ result[3] = p2y;
1258
+ return true;
1259
+ }
1260
+ var topLeftAx = rectA.getX();
1261
+ var topLeftAy = rectA.getY();
1262
+ var topRightAx = rectA.getRight();
1263
+ var bottomLeftAx = rectA.getX();
1264
+ var bottomLeftAy = rectA.getBottom();
1265
+ var bottomRightAx = rectA.getRight();
1266
+ var halfWidthA = rectA.getWidthHalf();
1267
+ var halfHeightA = rectA.getHeightHalf();
1268
+ var topLeftBx = rectB.getX();
1269
+ var topLeftBy = rectB.getY();
1270
+ var topRightBx = rectB.getRight();
1271
+ var bottomLeftBx = rectB.getX();
1272
+ var bottomLeftBy = rectB.getBottom();
1273
+ var bottomRightBx = rectB.getRight();
1274
+ var halfWidthB = rectB.getWidthHalf();
1275
+ var halfHeightB = rectB.getHeightHalf();
1276
+ var clipPointAFound = false;
1277
+ var clipPointBFound = false;
1278
+ if (p1x === p2x) {
1279
+ if (p1y > p2y) {
1280
+ result[0] = p1x;
1281
+ result[1] = topLeftAy;
1282
+ result[2] = p2x;
1283
+ result[3] = bottomLeftBy;
1284
+ return false;
1285
+ } else if (p1y < p2y) {
1286
+ result[0] = p1x;
1287
+ result[1] = bottomLeftAy;
1288
+ result[2] = p2x;
1289
+ result[3] = topLeftBy;
1290
+ return false;
1291
+ } else ;
1292
+ } else if (p1y === p2y) {
1293
+ if (p1x > p2x) {
1294
+ result[0] = topLeftAx;
1295
+ result[1] = p1y;
1296
+ result[2] = topRightBx;
1297
+ result[3] = p2y;
1298
+ return false;
1299
+ } else if (p1x < p2x) {
1300
+ result[0] = topRightAx;
1301
+ result[1] = p1y;
1302
+ result[2] = topLeftBx;
1303
+ result[3] = p2y;
1304
+ return false;
1305
+ } else ;
1306
+ } else {
1307
+ var slopeA = rectA.height / rectA.width;
1308
+ var slopeB = rectB.height / rectB.width;
1309
+ var slopePrime = (p2y - p1y) / (p2x - p1x);
1310
+ var cardinalDirectionA = void 0;
1311
+ var cardinalDirectionB = void 0;
1312
+ var tempPointAx = void 0;
1313
+ var tempPointAy = void 0;
1314
+ var tempPointBx = void 0;
1315
+ var tempPointBy = void 0;
1316
+ if (-slopeA === slopePrime) {
1317
+ if (p1x > p2x) {
1318
+ result[0] = bottomLeftAx;
1319
+ result[1] = bottomLeftAy;
1320
+ clipPointAFound = true;
1321
+ } else {
1322
+ result[0] = topRightAx;
1323
+ result[1] = topLeftAy;
1324
+ clipPointAFound = true;
1325
+ }
1326
+ } else if (slopeA === slopePrime) {
1327
+ if (p1x > p2x) {
1328
+ result[0] = topLeftAx;
1329
+ result[1] = topLeftAy;
1330
+ clipPointAFound = true;
1331
+ } else {
1332
+ result[0] = bottomRightAx;
1333
+ result[1] = bottomLeftAy;
1334
+ clipPointAFound = true;
1335
+ }
1336
+ }
1337
+ if (-slopeB === slopePrime) {
1338
+ if (p2x > p1x) {
1339
+ result[2] = bottomLeftBx;
1340
+ result[3] = bottomLeftBy;
1341
+ clipPointBFound = true;
1342
+ } else {
1343
+ result[2] = topRightBx;
1344
+ result[3] = topLeftBy;
1345
+ clipPointBFound = true;
1346
+ }
1347
+ } else if (slopeB === slopePrime) {
1348
+ if (p2x > p1x) {
1349
+ result[2] = topLeftBx;
1350
+ result[3] = topLeftBy;
1351
+ clipPointBFound = true;
1352
+ } else {
1353
+ result[2] = bottomRightBx;
1354
+ result[3] = bottomLeftBy;
1355
+ clipPointBFound = true;
1356
+ }
1357
+ }
1358
+ if (clipPointAFound && clipPointBFound) {
1359
+ return false;
1360
+ }
1361
+ if (p1x > p2x) {
1362
+ if (p1y > p2y) {
1363
+ cardinalDirectionA = this.getCardinalDirection(slopeA, slopePrime, 4);
1364
+ cardinalDirectionB = this.getCardinalDirection(slopeB, slopePrime, 2);
1365
+ } else {
1366
+ cardinalDirectionA = this.getCardinalDirection(-slopeA, slopePrime, 3);
1367
+ cardinalDirectionB = this.getCardinalDirection(-slopeB, slopePrime, 1);
1368
+ }
1369
+ } else {
1370
+ if (p1y > p2y) {
1371
+ cardinalDirectionA = this.getCardinalDirection(-slopeA, slopePrime, 1);
1372
+ cardinalDirectionB = this.getCardinalDirection(-slopeB, slopePrime, 3);
1373
+ } else {
1374
+ cardinalDirectionA = this.getCardinalDirection(slopeA, slopePrime, 2);
1375
+ cardinalDirectionB = this.getCardinalDirection(slopeB, slopePrime, 4);
1376
+ }
1377
+ }
1378
+ if (!clipPointAFound) {
1379
+ switch (cardinalDirectionA) {
1380
+ case 1:
1381
+ tempPointAy = topLeftAy;
1382
+ tempPointAx = p1x + -halfHeightA / slopePrime;
1383
+ result[0] = tempPointAx;
1384
+ result[1] = tempPointAy;
1385
+ break;
1386
+ case 2:
1387
+ tempPointAx = bottomRightAx;
1388
+ tempPointAy = p1y + halfWidthA * slopePrime;
1389
+ result[0] = tempPointAx;
1390
+ result[1] = tempPointAy;
1391
+ break;
1392
+ case 3:
1393
+ tempPointAy = bottomLeftAy;
1394
+ tempPointAx = p1x + halfHeightA / slopePrime;
1395
+ result[0] = tempPointAx;
1396
+ result[1] = tempPointAy;
1397
+ break;
1398
+ case 4:
1399
+ tempPointAx = bottomLeftAx;
1400
+ tempPointAy = p1y + -halfWidthA * slopePrime;
1401
+ result[0] = tempPointAx;
1402
+ result[1] = tempPointAy;
1403
+ break;
1404
+ }
1405
+ }
1406
+ if (!clipPointBFound) {
1407
+ switch (cardinalDirectionB) {
1408
+ case 1:
1409
+ tempPointBy = topLeftBy;
1410
+ tempPointBx = p2x + -halfHeightB / slopePrime;
1411
+ result[2] = tempPointBx;
1412
+ result[3] = tempPointBy;
1413
+ break;
1414
+ case 2:
1415
+ tempPointBx = bottomRightBx;
1416
+ tempPointBy = p2y + halfWidthB * slopePrime;
1417
+ result[2] = tempPointBx;
1418
+ result[3] = tempPointBy;
1419
+ break;
1420
+ case 3:
1421
+ tempPointBy = bottomLeftBy;
1422
+ tempPointBx = p2x + halfHeightB / slopePrime;
1423
+ result[2] = tempPointBx;
1424
+ result[3] = tempPointBy;
1425
+ break;
1426
+ case 4:
1427
+ tempPointBx = bottomLeftBx;
1428
+ tempPointBy = p2y + -halfWidthB * slopePrime;
1429
+ result[2] = tempPointBx;
1430
+ result[3] = tempPointBy;
1431
+ break;
1432
+ }
1433
+ }
1434
+ }
1435
+ return false;
1436
+ };
1437
+ IGeometry.getCardinalDirection = function(slope, slopePrime, line) {
1438
+ if (slope > slopePrime) {
1439
+ return line;
1440
+ } else {
1441
+ return 1 + line % 4;
1442
+ }
1443
+ };
1444
+ IGeometry.getIntersection = function(s1, s2, f1, f2) {
1445
+ if (f2 == null) {
1446
+ return this.getIntersection2(s1, s2, f1);
1447
+ }
1448
+ var x1 = s1.x;
1449
+ var y1 = s1.y;
1450
+ var x2 = s2.x;
1451
+ var y2 = s2.y;
1452
+ var x3 = f1.x;
1453
+ var y3 = f1.y;
1454
+ var x4 = f2.x;
1455
+ var y4 = f2.y;
1456
+ var x = void 0, y = void 0;
1457
+ var a1 = void 0, a2 = void 0, b1 = void 0, b2 = void 0, c1 = void 0, c2 = void 0;
1458
+ var denom = void 0;
1459
+ a1 = y2 - y1;
1460
+ b1 = x1 - x2;
1461
+ c1 = x2 * y1 - x1 * y2;
1462
+ a2 = y4 - y3;
1463
+ b2 = x3 - x4;
1464
+ c2 = x4 * y3 - x3 * y4;
1465
+ denom = a1 * b2 - a2 * b1;
1466
+ if (denom === 0) {
1467
+ return null;
1468
+ }
1469
+ x = (b1 * c2 - b2 * c1) / denom;
1470
+ y = (a2 * c1 - a1 * c2) / denom;
1471
+ return new Point2(x, y);
1472
+ };
1473
+ IGeometry.angleOfVector = function(Cx, Cy, Nx, Ny) {
1474
+ var C_angle = void 0;
1475
+ if (Cx !== Nx) {
1476
+ C_angle = Math.atan((Ny - Cy) / (Nx - Cx));
1477
+ if (Nx < Cx) {
1478
+ C_angle += Math.PI;
1479
+ } else if (Ny < Cy) {
1480
+ C_angle += this.TWO_PI;
1481
+ }
1482
+ } else if (Ny < Cy) {
1483
+ C_angle = this.ONE_AND_HALF_PI;
1484
+ } else {
1485
+ C_angle = this.HALF_PI;
1486
+ }
1487
+ return C_angle;
1488
+ };
1489
+ IGeometry.doIntersect = function(p1, p2, p3, p4) {
1490
+ var a = p1.x;
1491
+ var b = p1.y;
1492
+ var c = p2.x;
1493
+ var d = p2.y;
1494
+ var p = p3.x;
1495
+ var q = p3.y;
1496
+ var r = p4.x;
1497
+ var s = p4.y;
1498
+ var det = (c - a) * (s - q) - (r - p) * (d - b);
1499
+ if (det === 0) {
1500
+ return false;
1501
+ } else {
1502
+ var lambda = ((s - q) * (r - a) + (p - r) * (s - b)) / det;
1503
+ var gamma = ((b - d) * (r - a) + (c - a) * (s - b)) / det;
1504
+ return 0 < lambda && lambda < 1 && 0 < gamma && gamma < 1;
1505
+ }
1506
+ };
1507
+ IGeometry.HALF_PI = 0.5 * Math.PI;
1508
+ IGeometry.ONE_AND_HALF_PI = 1.5 * Math.PI;
1509
+ IGeometry.TWO_PI = 2 * Math.PI;
1510
+ IGeometry.THREE_PI = 3 * Math.PI;
1511
+ module2.exports = IGeometry;
1512
+ },
1513
+ /* 9 */
1514
+ /***/
1515
+ function(module2, exports2, __webpack_require__) {
1516
+ function IMath() {
1517
+ }
1518
+ IMath.sign = function(value) {
1519
+ if (value > 0) {
1520
+ return 1;
1521
+ } else if (value < 0) {
1522
+ return -1;
1523
+ } else {
1524
+ return 0;
1525
+ }
1526
+ };
1527
+ IMath.floor = function(value) {
1528
+ return value < 0 ? Math.ceil(value) : Math.floor(value);
1529
+ };
1530
+ IMath.ceil = function(value) {
1531
+ return value < 0 ? Math.floor(value) : Math.ceil(value);
1532
+ };
1533
+ module2.exports = IMath;
1534
+ },
1535
+ /* 10 */
1536
+ /***/
1537
+ function(module2, exports2, __webpack_require__) {
1538
+ function Integer() {
1539
+ }
1540
+ Integer.MAX_VALUE = 2147483647;
1541
+ Integer.MIN_VALUE = -2147483648;
1542
+ module2.exports = Integer;
1543
+ },
1544
+ /* 11 */
1545
+ /***/
1546
+ function(module2, exports2, __webpack_require__) {
1547
+ var _createClass = /* @__PURE__ */ function() {
1548
+ function defineProperties(target, props) {
1549
+ for (var i = 0; i < props.length; i++) {
1550
+ var descriptor = props[i];
1551
+ descriptor.enumerable = descriptor.enumerable || false;
1552
+ descriptor.configurable = true;
1553
+ if ("value" in descriptor) descriptor.writable = true;
1554
+ Object.defineProperty(target, descriptor.key, descriptor);
1555
+ }
1556
+ }
1557
+ return function(Constructor, protoProps, staticProps) {
1558
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
1559
+ if (staticProps) defineProperties(Constructor, staticProps);
1560
+ return Constructor;
1561
+ };
1562
+ }();
1563
+ function _classCallCheck(instance, Constructor) {
1564
+ if (!(instance instanceof Constructor)) {
1565
+ throw new TypeError("Cannot call a class as a function");
1566
+ }
1567
+ }
1568
+ var nodeFrom = function nodeFrom2(value) {
1569
+ return { value, next: null, prev: null };
1570
+ };
1571
+ var add = function add2(prev, node, next, list) {
1572
+ if (prev !== null) {
1573
+ prev.next = node;
1574
+ } else {
1575
+ list.head = node;
1576
+ }
1577
+ if (next !== null) {
1578
+ next.prev = node;
1579
+ } else {
1580
+ list.tail = node;
1581
+ }
1582
+ node.prev = prev;
1583
+ node.next = next;
1584
+ list.length++;
1585
+ return node;
1586
+ };
1587
+ var _remove = function _remove2(node, list) {
1588
+ var prev = node.prev, next = node.next;
1589
+ if (prev !== null) {
1590
+ prev.next = next;
1591
+ } else {
1592
+ list.head = next;
1593
+ }
1594
+ if (next !== null) {
1595
+ next.prev = prev;
1596
+ } else {
1597
+ list.tail = prev;
1598
+ }
1599
+ node.prev = node.next = null;
1600
+ list.length--;
1601
+ return node;
1602
+ };
1603
+ var LinkedList = function() {
1604
+ function LinkedList2(vals) {
1605
+ var _this = this;
1606
+ _classCallCheck(this, LinkedList2);
1607
+ this.length = 0;
1608
+ this.head = null;
1609
+ this.tail = null;
1610
+ if (vals != null) {
1611
+ vals.forEach(function(v) {
1612
+ return _this.push(v);
1613
+ });
1614
+ }
1615
+ }
1616
+ _createClass(LinkedList2, [{
1617
+ key: "size",
1618
+ value: function size() {
1619
+ return this.length;
1620
+ }
1621
+ }, {
1622
+ key: "insertBefore",
1623
+ value: function insertBefore(val, otherNode) {
1624
+ return add(otherNode.prev, nodeFrom(val), otherNode, this);
1625
+ }
1626
+ }, {
1627
+ key: "insertAfter",
1628
+ value: function insertAfter(val, otherNode) {
1629
+ return add(otherNode, nodeFrom(val), otherNode.next, this);
1630
+ }
1631
+ }, {
1632
+ key: "insertNodeBefore",
1633
+ value: function insertNodeBefore(newNode, otherNode) {
1634
+ return add(otherNode.prev, newNode, otherNode, this);
1635
+ }
1636
+ }, {
1637
+ key: "insertNodeAfter",
1638
+ value: function insertNodeAfter(newNode, otherNode) {
1639
+ return add(otherNode, newNode, otherNode.next, this);
1640
+ }
1641
+ }, {
1642
+ key: "push",
1643
+ value: function push(val) {
1644
+ return add(this.tail, nodeFrom(val), null, this);
1645
+ }
1646
+ }, {
1647
+ key: "unshift",
1648
+ value: function unshift(val) {
1649
+ return add(null, nodeFrom(val), this.head, this);
1650
+ }
1651
+ }, {
1652
+ key: "remove",
1653
+ value: function remove(node) {
1654
+ return _remove(node, this);
1655
+ }
1656
+ }, {
1657
+ key: "pop",
1658
+ value: function pop() {
1659
+ return _remove(this.tail, this).value;
1660
+ }
1661
+ }, {
1662
+ key: "popNode",
1663
+ value: function popNode() {
1664
+ return _remove(this.tail, this);
1665
+ }
1666
+ }, {
1667
+ key: "shift",
1668
+ value: function shift() {
1669
+ return _remove(this.head, this).value;
1670
+ }
1671
+ }, {
1672
+ key: "shiftNode",
1673
+ value: function shiftNode() {
1674
+ return _remove(this.head, this);
1675
+ }
1676
+ }, {
1677
+ key: "get_object_at",
1678
+ value: function get_object_at(index) {
1679
+ if (index <= this.length()) {
1680
+ var i = 1;
1681
+ var current = this.head;
1682
+ while (i < index) {
1683
+ current = current.next;
1684
+ i++;
1685
+ }
1686
+ return current.value;
1687
+ }
1688
+ }
1689
+ }, {
1690
+ key: "set_object_at",
1691
+ value: function set_object_at(index, value) {
1692
+ if (index <= this.length()) {
1693
+ var i = 1;
1694
+ var current = this.head;
1695
+ while (i < index) {
1696
+ current = current.next;
1697
+ i++;
1698
+ }
1699
+ current.value = value;
1700
+ }
1701
+ }
1702
+ }]);
1703
+ return LinkedList2;
1704
+ }();
1705
+ module2.exports = LinkedList;
1706
+ },
1707
+ /* 12 */
1708
+ /***/
1709
+ function(module2, exports2, __webpack_require__) {
1710
+ function Point2(x, y, p) {
1711
+ this.x = null;
1712
+ this.y = null;
1713
+ if (x == null && y == null && p == null) {
1714
+ this.x = 0;
1715
+ this.y = 0;
1716
+ } else if (typeof x == "number" && typeof y == "number" && p == null) {
1717
+ this.x = x;
1718
+ this.y = y;
1719
+ } else if (x.constructor.name == "Point" && y == null && p == null) {
1720
+ p = x;
1721
+ this.x = p.x;
1722
+ this.y = p.y;
1723
+ }
1724
+ }
1725
+ Point2.prototype.getX = function() {
1726
+ return this.x;
1727
+ };
1728
+ Point2.prototype.getY = function() {
1729
+ return this.y;
1730
+ };
1731
+ Point2.prototype.getLocation = function() {
1732
+ return new Point2(this.x, this.y);
1733
+ };
1734
+ Point2.prototype.setLocation = function(x, y, p) {
1735
+ if (x.constructor.name == "Point" && y == null && p == null) {
1736
+ p = x;
1737
+ this.setLocation(p.x, p.y);
1738
+ } else if (typeof x == "number" && typeof y == "number" && p == null) {
1739
+ if (parseInt(x) == x && parseInt(y) == y) {
1740
+ this.move(x, y);
1741
+ } else {
1742
+ this.x = Math.floor(x + 0.5);
1743
+ this.y = Math.floor(y + 0.5);
1744
+ }
1745
+ }
1746
+ };
1747
+ Point2.prototype.move = function(x, y) {
1748
+ this.x = x;
1749
+ this.y = y;
1750
+ };
1751
+ Point2.prototype.translate = function(dx, dy) {
1752
+ this.x += dx;
1753
+ this.y += dy;
1754
+ };
1755
+ Point2.prototype.equals = function(obj) {
1756
+ if (obj.constructor.name == "Point") {
1757
+ var pt = obj;
1758
+ return this.x == pt.x && this.y == pt.y;
1759
+ }
1760
+ return this == obj;
1761
+ };
1762
+ Point2.prototype.toString = function() {
1763
+ return new Point2().constructor.name + "[x=" + this.x + ",y=" + this.y + "]";
1764
+ };
1765
+ module2.exports = Point2;
1766
+ },
1767
+ /* 13 */
1768
+ /***/
1769
+ function(module2, exports2, __webpack_require__) {
1770
+ function RectangleD(x, y, width, height) {
1771
+ this.x = 0;
1772
+ this.y = 0;
1773
+ this.width = 0;
1774
+ this.height = 0;
1775
+ if (x != null && y != null && width != null && height != null) {
1776
+ this.x = x;
1777
+ this.y = y;
1778
+ this.width = width;
1779
+ this.height = height;
1780
+ }
1781
+ }
1782
+ RectangleD.prototype.getX = function() {
1783
+ return this.x;
1784
+ };
1785
+ RectangleD.prototype.setX = function(x) {
1786
+ this.x = x;
1787
+ };
1788
+ RectangleD.prototype.getY = function() {
1789
+ return this.y;
1790
+ };
1791
+ RectangleD.prototype.setY = function(y) {
1792
+ this.y = y;
1793
+ };
1794
+ RectangleD.prototype.getWidth = function() {
1795
+ return this.width;
1796
+ };
1797
+ RectangleD.prototype.setWidth = function(width) {
1798
+ this.width = width;
1799
+ };
1800
+ RectangleD.prototype.getHeight = function() {
1801
+ return this.height;
1802
+ };
1803
+ RectangleD.prototype.setHeight = function(height) {
1804
+ this.height = height;
1805
+ };
1806
+ RectangleD.prototype.getRight = function() {
1807
+ return this.x + this.width;
1808
+ };
1809
+ RectangleD.prototype.getBottom = function() {
1810
+ return this.y + this.height;
1811
+ };
1812
+ RectangleD.prototype.intersects = function(a) {
1813
+ if (this.getRight() < a.x) {
1814
+ return false;
1815
+ }
1816
+ if (this.getBottom() < a.y) {
1817
+ return false;
1818
+ }
1819
+ if (a.getRight() < this.x) {
1820
+ return false;
1821
+ }
1822
+ if (a.getBottom() < this.y) {
1823
+ return false;
1824
+ }
1825
+ return true;
1826
+ };
1827
+ RectangleD.prototype.getCenterX = function() {
1828
+ return this.x + this.width / 2;
1829
+ };
1830
+ RectangleD.prototype.getMinX = function() {
1831
+ return this.getX();
1832
+ };
1833
+ RectangleD.prototype.getMaxX = function() {
1834
+ return this.getX() + this.width;
1835
+ };
1836
+ RectangleD.prototype.getCenterY = function() {
1837
+ return this.y + this.height / 2;
1838
+ };
1839
+ RectangleD.prototype.getMinY = function() {
1840
+ return this.getY();
1841
+ };
1842
+ RectangleD.prototype.getMaxY = function() {
1843
+ return this.getY() + this.height;
1844
+ };
1845
+ RectangleD.prototype.getWidthHalf = function() {
1846
+ return this.width / 2;
1847
+ };
1848
+ RectangleD.prototype.getHeightHalf = function() {
1849
+ return this.height / 2;
1850
+ };
1851
+ module2.exports = RectangleD;
1852
+ },
1853
+ /* 14 */
1854
+ /***/
1855
+ function(module2, exports2, __webpack_require__) {
1856
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
1857
+ return typeof obj;
1858
+ } : function(obj) {
1859
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1860
+ };
1861
+ function UniqueIDGeneretor() {
1862
+ }
1863
+ UniqueIDGeneretor.lastID = 0;
1864
+ UniqueIDGeneretor.createID = function(obj) {
1865
+ if (UniqueIDGeneretor.isPrimitive(obj)) {
1866
+ return obj;
1867
+ }
1868
+ if (obj.uniqueID != null) {
1869
+ return obj.uniqueID;
1870
+ }
1871
+ obj.uniqueID = UniqueIDGeneretor.getString();
1872
+ UniqueIDGeneretor.lastID++;
1873
+ return obj.uniqueID;
1874
+ };
1875
+ UniqueIDGeneretor.getString = function(id) {
1876
+ if (id == null) id = UniqueIDGeneretor.lastID;
1877
+ return "Object#" + id;
1878
+ };
1879
+ UniqueIDGeneretor.isPrimitive = function(arg) {
1880
+ var type = typeof arg === "undefined" ? "undefined" : _typeof(arg);
1881
+ return arg == null || type != "object" && type != "function";
1882
+ };
1883
+ module2.exports = UniqueIDGeneretor;
1884
+ },
1885
+ /* 15 */
1886
+ /***/
1887
+ function(module2, exports2, __webpack_require__) {
1888
+ function _toConsumableArray(arr) {
1889
+ if (Array.isArray(arr)) {
1890
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
1891
+ arr2[i] = arr[i];
1892
+ }
1893
+ return arr2;
1894
+ } else {
1895
+ return Array.from(arr);
1896
+ }
1897
+ }
1898
+ var LayoutConstants = __webpack_require__(0);
1899
+ var LGraphManager = __webpack_require__(6);
1900
+ var LNode = __webpack_require__(3);
1901
+ var LEdge = __webpack_require__(1);
1902
+ var LGraph = __webpack_require__(5);
1903
+ var PointD = __webpack_require__(4);
1904
+ var Transform = __webpack_require__(17);
1905
+ var Emitter = __webpack_require__(27);
1906
+ function Layout2(isRemoteUse) {
1907
+ Emitter.call(this);
1908
+ this.layoutQuality = LayoutConstants.QUALITY;
1909
+ this.createBendsAsNeeded = LayoutConstants.DEFAULT_CREATE_BENDS_AS_NEEDED;
1910
+ this.incremental = LayoutConstants.DEFAULT_INCREMENTAL;
1911
+ this.animationOnLayout = LayoutConstants.DEFAULT_ANIMATION_ON_LAYOUT;
1912
+ this.animationDuringLayout = LayoutConstants.DEFAULT_ANIMATION_DURING_LAYOUT;
1913
+ this.animationPeriod = LayoutConstants.DEFAULT_ANIMATION_PERIOD;
1914
+ this.uniformLeafNodeSizes = LayoutConstants.DEFAULT_UNIFORM_LEAF_NODE_SIZES;
1915
+ this.edgeToDummyNodes = /* @__PURE__ */ new Map();
1916
+ this.graphManager = new LGraphManager(this);
1917
+ this.isLayoutFinished = false;
1918
+ this.isSubLayout = false;
1919
+ this.isRemoteUse = false;
1920
+ if (isRemoteUse != null) {
1921
+ this.isRemoteUse = isRemoteUse;
1922
+ }
1923
+ }
1924
+ Layout2.RANDOM_SEED = 1;
1925
+ Layout2.prototype = Object.create(Emitter.prototype);
1926
+ Layout2.prototype.getGraphManager = function() {
1927
+ return this.graphManager;
1928
+ };
1929
+ Layout2.prototype.getAllNodes = function() {
1930
+ return this.graphManager.getAllNodes();
1931
+ };
1932
+ Layout2.prototype.getAllEdges = function() {
1933
+ return this.graphManager.getAllEdges();
1934
+ };
1935
+ Layout2.prototype.getAllNodesToApplyGravitation = function() {
1936
+ return this.graphManager.getAllNodesToApplyGravitation();
1937
+ };
1938
+ Layout2.prototype.newGraphManager = function() {
1939
+ var gm = new LGraphManager(this);
1940
+ this.graphManager = gm;
1941
+ return gm;
1942
+ };
1943
+ Layout2.prototype.newGraph = function(vGraph) {
1944
+ return new LGraph(null, this.graphManager, vGraph);
1945
+ };
1946
+ Layout2.prototype.newNode = function(vNode) {
1947
+ return new LNode(this.graphManager, vNode);
1948
+ };
1949
+ Layout2.prototype.newEdge = function(vEdge) {
1950
+ return new LEdge(null, null, vEdge);
1951
+ };
1952
+ Layout2.prototype.checkLayoutSuccess = function() {
1953
+ return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
1954
+ };
1955
+ Layout2.prototype.runLayout = function() {
1956
+ this.isLayoutFinished = false;
1957
+ if (this.tilingPreLayout) {
1958
+ this.tilingPreLayout();
1959
+ }
1960
+ this.initParameters();
1961
+ var isLayoutSuccessfull;
1962
+ if (this.checkLayoutSuccess()) {
1963
+ isLayoutSuccessfull = false;
1964
+ } else {
1965
+ isLayoutSuccessfull = this.layout();
1966
+ }
1967
+ if (LayoutConstants.ANIMATE === "during") {
1968
+ return false;
1969
+ }
1970
+ if (isLayoutSuccessfull) {
1971
+ if (!this.isSubLayout) {
1972
+ this.doPostLayout();
1973
+ }
1974
+ }
1975
+ if (this.tilingPostLayout) {
1976
+ this.tilingPostLayout();
1977
+ }
1978
+ this.isLayoutFinished = true;
1979
+ return isLayoutSuccessfull;
1980
+ };
1981
+ Layout2.prototype.doPostLayout = function() {
1982
+ if (!this.incremental) {
1983
+ this.transform();
1984
+ }
1985
+ this.update();
1986
+ };
1987
+ Layout2.prototype.update2 = function() {
1988
+ if (this.createBendsAsNeeded) {
1989
+ this.createBendpointsFromDummyNodes();
1990
+ this.graphManager.resetAllEdges();
1991
+ }
1992
+ if (!this.isRemoteUse) {
1993
+ var allEdges = this.graphManager.getAllEdges();
1994
+ for (var i = 0; i < allEdges.length; i++) {
1995
+ allEdges[i];
1996
+ }
1997
+ var nodes = this.graphManager.getRoot().getNodes();
1998
+ for (var i = 0; i < nodes.length; i++) {
1999
+ nodes[i];
2000
+ }
2001
+ this.update(this.graphManager.getRoot());
2002
+ }
2003
+ };
2004
+ Layout2.prototype.update = function(obj) {
2005
+ if (obj == null) {
2006
+ this.update2();
2007
+ } else if (obj instanceof LNode) {
2008
+ var node = obj;
2009
+ if (node.getChild() != null) {
2010
+ var nodes = node.getChild().getNodes();
2011
+ for (var i = 0; i < nodes.length; i++) {
2012
+ update(nodes[i]);
2013
+ }
2014
+ }
2015
+ if (node.vGraphObject != null) {
2016
+ var vNode = node.vGraphObject;
2017
+ vNode.update(node);
2018
+ }
2019
+ } else if (obj instanceof LEdge) {
2020
+ var edge = obj;
2021
+ if (edge.vGraphObject != null) {
2022
+ var vEdge = edge.vGraphObject;
2023
+ vEdge.update(edge);
2024
+ }
2025
+ } else if (obj instanceof LGraph) {
2026
+ var graph = obj;
2027
+ if (graph.vGraphObject != null) {
2028
+ var vGraph = graph.vGraphObject;
2029
+ vGraph.update(graph);
2030
+ }
2031
+ }
2032
+ };
2033
+ Layout2.prototype.initParameters = function() {
2034
+ if (!this.isSubLayout) {
2035
+ this.layoutQuality = LayoutConstants.QUALITY;
2036
+ this.animationDuringLayout = LayoutConstants.DEFAULT_ANIMATION_DURING_LAYOUT;
2037
+ this.animationPeriod = LayoutConstants.DEFAULT_ANIMATION_PERIOD;
2038
+ this.animationOnLayout = LayoutConstants.DEFAULT_ANIMATION_ON_LAYOUT;
2039
+ this.incremental = LayoutConstants.DEFAULT_INCREMENTAL;
2040
+ this.createBendsAsNeeded = LayoutConstants.DEFAULT_CREATE_BENDS_AS_NEEDED;
2041
+ this.uniformLeafNodeSizes = LayoutConstants.DEFAULT_UNIFORM_LEAF_NODE_SIZES;
2042
+ }
2043
+ if (this.animationDuringLayout) {
2044
+ this.animationOnLayout = false;
2045
+ }
2046
+ };
2047
+ Layout2.prototype.transform = function(newLeftTop) {
2048
+ if (newLeftTop == void 0) {
2049
+ this.transform(new PointD(0, 0));
2050
+ } else {
2051
+ var trans = new Transform();
2052
+ var leftTop = this.graphManager.getRoot().updateLeftTop();
2053
+ if (leftTop != null) {
2054
+ trans.setWorldOrgX(newLeftTop.x);
2055
+ trans.setWorldOrgY(newLeftTop.y);
2056
+ trans.setDeviceOrgX(leftTop.x);
2057
+ trans.setDeviceOrgY(leftTop.y);
2058
+ var nodes = this.getAllNodes();
2059
+ var node;
2060
+ for (var i = 0; i < nodes.length; i++) {
2061
+ node = nodes[i];
2062
+ node.transform(trans);
2063
+ }
2064
+ }
2065
+ }
2066
+ };
2067
+ Layout2.prototype.positionNodesRandomly = function(graph) {
2068
+ if (graph == void 0) {
2069
+ this.positionNodesRandomly(this.getGraphManager().getRoot());
2070
+ this.getGraphManager().getRoot().updateBounds(true);
2071
+ } else {
2072
+ var lNode;
2073
+ var childGraph;
2074
+ var nodes = graph.getNodes();
2075
+ for (var i = 0; i < nodes.length; i++) {
2076
+ lNode = nodes[i];
2077
+ childGraph = lNode.getChild();
2078
+ if (childGraph == null) {
2079
+ lNode.scatter();
2080
+ } else if (childGraph.getNodes().length == 0) {
2081
+ lNode.scatter();
2082
+ } else {
2083
+ this.positionNodesRandomly(childGraph);
2084
+ lNode.updateBounds();
2085
+ }
2086
+ }
2087
+ }
2088
+ };
2089
+ Layout2.prototype.getFlatForest = function() {
2090
+ var flatForest = [];
2091
+ var isForest = true;
2092
+ var allNodes = this.graphManager.getRoot().getNodes();
2093
+ var isFlat = true;
2094
+ for (var i = 0; i < allNodes.length; i++) {
2095
+ if (allNodes[i].getChild() != null) {
2096
+ isFlat = false;
2097
+ }
2098
+ }
2099
+ if (!isFlat) {
2100
+ return flatForest;
2101
+ }
2102
+ var visited = /* @__PURE__ */ new Set();
2103
+ var toBeVisited = [];
2104
+ var parents = /* @__PURE__ */ new Map();
2105
+ var unProcessedNodes = [];
2106
+ unProcessedNodes = unProcessedNodes.concat(allNodes);
2107
+ while (unProcessedNodes.length > 0 && isForest) {
2108
+ toBeVisited.push(unProcessedNodes[0]);
2109
+ while (toBeVisited.length > 0 && isForest) {
2110
+ var currentNode = toBeVisited[0];
2111
+ toBeVisited.splice(0, 1);
2112
+ visited.add(currentNode);
2113
+ var neighborEdges = currentNode.getEdges();
2114
+ for (var i = 0; i < neighborEdges.length; i++) {
2115
+ var currentNeighbor = neighborEdges[i].getOtherEnd(currentNode);
2116
+ if (parents.get(currentNode) != currentNeighbor) {
2117
+ if (!visited.has(currentNeighbor)) {
2118
+ toBeVisited.push(currentNeighbor);
2119
+ parents.set(currentNeighbor, currentNode);
2120
+ } else {
2121
+ isForest = false;
2122
+ break;
2123
+ }
2124
+ }
2125
+ }
2126
+ }
2127
+ if (!isForest) {
2128
+ flatForest = [];
2129
+ } else {
2130
+ var temp = [].concat(_toConsumableArray(visited));
2131
+ flatForest.push(temp);
2132
+ for (var i = 0; i < temp.length; i++) {
2133
+ var value = temp[i];
2134
+ var index = unProcessedNodes.indexOf(value);
2135
+ if (index > -1) {
2136
+ unProcessedNodes.splice(index, 1);
2137
+ }
2138
+ }
2139
+ visited = /* @__PURE__ */ new Set();
2140
+ parents = /* @__PURE__ */ new Map();
2141
+ }
2142
+ }
2143
+ return flatForest;
2144
+ };
2145
+ Layout2.prototype.createDummyNodesForBendpoints = function(edge) {
2146
+ var dummyNodes = [];
2147
+ var prev = edge.source;
2148
+ var graph = this.graphManager.calcLowestCommonAncestor(edge.source, edge.target);
2149
+ for (var i = 0; i < edge.bendpoints.length; i++) {
2150
+ var dummyNode = this.newNode(null);
2151
+ dummyNode.setRect(new Point(0, 0), new Dimension(1, 1));
2152
+ graph.add(dummyNode);
2153
+ var dummyEdge = this.newEdge(null);
2154
+ this.graphManager.add(dummyEdge, prev, dummyNode);
2155
+ dummyNodes.add(dummyNode);
2156
+ prev = dummyNode;
2157
+ }
2158
+ var dummyEdge = this.newEdge(null);
2159
+ this.graphManager.add(dummyEdge, prev, edge.target);
2160
+ this.edgeToDummyNodes.set(edge, dummyNodes);
2161
+ if (edge.isInterGraph()) {
2162
+ this.graphManager.remove(edge);
2163
+ } else {
2164
+ graph.remove(edge);
2165
+ }
2166
+ return dummyNodes;
2167
+ };
2168
+ Layout2.prototype.createBendpointsFromDummyNodes = function() {
2169
+ var edges = [];
2170
+ edges = edges.concat(this.graphManager.getAllEdges());
2171
+ edges = [].concat(_toConsumableArray(this.edgeToDummyNodes.keys())).concat(edges);
2172
+ for (var k = 0; k < edges.length; k++) {
2173
+ var lEdge = edges[k];
2174
+ if (lEdge.bendpoints.length > 0) {
2175
+ var path = this.edgeToDummyNodes.get(lEdge);
2176
+ for (var i = 0; i < path.length; i++) {
2177
+ var dummyNode = path[i];
2178
+ var p = new PointD(dummyNode.getCenterX(), dummyNode.getCenterY());
2179
+ var ebp = lEdge.bendpoints.get(i);
2180
+ ebp.x = p.x;
2181
+ ebp.y = p.y;
2182
+ dummyNode.getOwner().remove(dummyNode);
2183
+ }
2184
+ this.graphManager.add(lEdge, lEdge.source, lEdge.target);
2185
+ }
2186
+ }
2187
+ };
2188
+ Layout2.transform = function(sliderValue, defaultValue, minDiv, maxMul) {
2189
+ if (minDiv != void 0 && maxMul != void 0) {
2190
+ var value = defaultValue;
2191
+ if (sliderValue <= 50) {
2192
+ var minValue = defaultValue / minDiv;
2193
+ value -= (defaultValue - minValue) / 50 * (50 - sliderValue);
2194
+ } else {
2195
+ var maxValue = defaultValue * maxMul;
2196
+ value += (maxValue - defaultValue) / 50 * (sliderValue - 50);
2197
+ }
2198
+ return value;
2199
+ } else {
2200
+ var a, b;
2201
+ if (sliderValue <= 50) {
2202
+ a = 9 * defaultValue / 500;
2203
+ b = defaultValue / 10;
2204
+ } else {
2205
+ a = 9 * defaultValue / 50;
2206
+ b = -8 * defaultValue;
2207
+ }
2208
+ return a * sliderValue + b;
2209
+ }
2210
+ };
2211
+ Layout2.findCenterOfTree = function(nodes) {
2212
+ var list = [];
2213
+ list = list.concat(nodes);
2214
+ var removedNodes = [];
2215
+ var remainingDegrees = /* @__PURE__ */ new Map();
2216
+ var foundCenter = false;
2217
+ var centerNode = null;
2218
+ if (list.length == 1 || list.length == 2) {
2219
+ foundCenter = true;
2220
+ centerNode = list[0];
2221
+ }
2222
+ for (var i = 0; i < list.length; i++) {
2223
+ var node = list[i];
2224
+ var degree = node.getNeighborsList().size;
2225
+ remainingDegrees.set(node, node.getNeighborsList().size);
2226
+ if (degree == 1) {
2227
+ removedNodes.push(node);
2228
+ }
2229
+ }
2230
+ var tempList = [];
2231
+ tempList = tempList.concat(removedNodes);
2232
+ while (!foundCenter) {
2233
+ var tempList2 = [];
2234
+ tempList2 = tempList2.concat(tempList);
2235
+ tempList = [];
2236
+ for (var i = 0; i < list.length; i++) {
2237
+ var node = list[i];
2238
+ var index = list.indexOf(node);
2239
+ if (index >= 0) {
2240
+ list.splice(index, 1);
2241
+ }
2242
+ var neighbours = node.getNeighborsList();
2243
+ neighbours.forEach(function(neighbour) {
2244
+ if (removedNodes.indexOf(neighbour) < 0) {
2245
+ var otherDegree = remainingDegrees.get(neighbour);
2246
+ var newDegree = otherDegree - 1;
2247
+ if (newDegree == 1) {
2248
+ tempList.push(neighbour);
2249
+ }
2250
+ remainingDegrees.set(neighbour, newDegree);
2251
+ }
2252
+ });
2253
+ }
2254
+ removedNodes = removedNodes.concat(tempList);
2255
+ if (list.length == 1 || list.length == 2) {
2256
+ foundCenter = true;
2257
+ centerNode = list[0];
2258
+ }
2259
+ }
2260
+ return centerNode;
2261
+ };
2262
+ Layout2.prototype.setGraphManager = function(gm) {
2263
+ this.graphManager = gm;
2264
+ };
2265
+ module2.exports = Layout2;
2266
+ },
2267
+ /* 16 */
2268
+ /***/
2269
+ function(module2, exports2, __webpack_require__) {
2270
+ function RandomSeed() {
2271
+ }
2272
+ RandomSeed.seed = 1;
2273
+ RandomSeed.x = 0;
2274
+ RandomSeed.nextDouble = function() {
2275
+ RandomSeed.x = Math.sin(RandomSeed.seed++) * 1e4;
2276
+ return RandomSeed.x - Math.floor(RandomSeed.x);
2277
+ };
2278
+ module2.exports = RandomSeed;
2279
+ },
2280
+ /* 17 */
2281
+ /***/
2282
+ function(module2, exports2, __webpack_require__) {
2283
+ var PointD = __webpack_require__(4);
2284
+ function Transform(x, y) {
2285
+ this.lworldOrgX = 0;
2286
+ this.lworldOrgY = 0;
2287
+ this.ldeviceOrgX = 0;
2288
+ this.ldeviceOrgY = 0;
2289
+ this.lworldExtX = 1;
2290
+ this.lworldExtY = 1;
2291
+ this.ldeviceExtX = 1;
2292
+ this.ldeviceExtY = 1;
2293
+ }
2294
+ Transform.prototype.getWorldOrgX = function() {
2295
+ return this.lworldOrgX;
2296
+ };
2297
+ Transform.prototype.setWorldOrgX = function(wox) {
2298
+ this.lworldOrgX = wox;
2299
+ };
2300
+ Transform.prototype.getWorldOrgY = function() {
2301
+ return this.lworldOrgY;
2302
+ };
2303
+ Transform.prototype.setWorldOrgY = function(woy) {
2304
+ this.lworldOrgY = woy;
2305
+ };
2306
+ Transform.prototype.getWorldExtX = function() {
2307
+ return this.lworldExtX;
2308
+ };
2309
+ Transform.prototype.setWorldExtX = function(wex) {
2310
+ this.lworldExtX = wex;
2311
+ };
2312
+ Transform.prototype.getWorldExtY = function() {
2313
+ return this.lworldExtY;
2314
+ };
2315
+ Transform.prototype.setWorldExtY = function(wey) {
2316
+ this.lworldExtY = wey;
2317
+ };
2318
+ Transform.prototype.getDeviceOrgX = function() {
2319
+ return this.ldeviceOrgX;
2320
+ };
2321
+ Transform.prototype.setDeviceOrgX = function(dox) {
2322
+ this.ldeviceOrgX = dox;
2323
+ };
2324
+ Transform.prototype.getDeviceOrgY = function() {
2325
+ return this.ldeviceOrgY;
2326
+ };
2327
+ Transform.prototype.setDeviceOrgY = function(doy) {
2328
+ this.ldeviceOrgY = doy;
2329
+ };
2330
+ Transform.prototype.getDeviceExtX = function() {
2331
+ return this.ldeviceExtX;
2332
+ };
2333
+ Transform.prototype.setDeviceExtX = function(dex) {
2334
+ this.ldeviceExtX = dex;
2335
+ };
2336
+ Transform.prototype.getDeviceExtY = function() {
2337
+ return this.ldeviceExtY;
2338
+ };
2339
+ Transform.prototype.setDeviceExtY = function(dey) {
2340
+ this.ldeviceExtY = dey;
2341
+ };
2342
+ Transform.prototype.transformX = function(x) {
2343
+ var xDevice = 0;
2344
+ var worldExtX = this.lworldExtX;
2345
+ if (worldExtX != 0) {
2346
+ xDevice = this.ldeviceOrgX + (x - this.lworldOrgX) * this.ldeviceExtX / worldExtX;
2347
+ }
2348
+ return xDevice;
2349
+ };
2350
+ Transform.prototype.transformY = function(y) {
2351
+ var yDevice = 0;
2352
+ var worldExtY = this.lworldExtY;
2353
+ if (worldExtY != 0) {
2354
+ yDevice = this.ldeviceOrgY + (y - this.lworldOrgY) * this.ldeviceExtY / worldExtY;
2355
+ }
2356
+ return yDevice;
2357
+ };
2358
+ Transform.prototype.inverseTransformX = function(x) {
2359
+ var xWorld = 0;
2360
+ var deviceExtX = this.ldeviceExtX;
2361
+ if (deviceExtX != 0) {
2362
+ xWorld = this.lworldOrgX + (x - this.ldeviceOrgX) * this.lworldExtX / deviceExtX;
2363
+ }
2364
+ return xWorld;
2365
+ };
2366
+ Transform.prototype.inverseTransformY = function(y) {
2367
+ var yWorld = 0;
2368
+ var deviceExtY = this.ldeviceExtY;
2369
+ if (deviceExtY != 0) {
2370
+ yWorld = this.lworldOrgY + (y - this.ldeviceOrgY) * this.lworldExtY / deviceExtY;
2371
+ }
2372
+ return yWorld;
2373
+ };
2374
+ Transform.prototype.inverseTransformPoint = function(inPoint) {
2375
+ var outPoint = new PointD(this.inverseTransformX(inPoint.x), this.inverseTransformY(inPoint.y));
2376
+ return outPoint;
2377
+ };
2378
+ module2.exports = Transform;
2379
+ },
2380
+ /* 18 */
2381
+ /***/
2382
+ function(module2, exports2, __webpack_require__) {
2383
+ function _toConsumableArray(arr) {
2384
+ if (Array.isArray(arr)) {
2385
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
2386
+ arr2[i] = arr[i];
2387
+ }
2388
+ return arr2;
2389
+ } else {
2390
+ return Array.from(arr);
2391
+ }
2392
+ }
2393
+ var Layout2 = __webpack_require__(15);
2394
+ var FDLayoutConstants = __webpack_require__(7);
2395
+ var LayoutConstants = __webpack_require__(0);
2396
+ var IGeometry = __webpack_require__(8);
2397
+ var IMath = __webpack_require__(9);
2398
+ function FDLayout() {
2399
+ Layout2.call(this);
2400
+ this.useSmartIdealEdgeLengthCalculation = FDLayoutConstants.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION;
2401
+ this.idealEdgeLength = FDLayoutConstants.DEFAULT_EDGE_LENGTH;
2402
+ this.springConstant = FDLayoutConstants.DEFAULT_SPRING_STRENGTH;
2403
+ this.repulsionConstant = FDLayoutConstants.DEFAULT_REPULSION_STRENGTH;
2404
+ this.gravityConstant = FDLayoutConstants.DEFAULT_GRAVITY_STRENGTH;
2405
+ this.compoundGravityConstant = FDLayoutConstants.DEFAULT_COMPOUND_GRAVITY_STRENGTH;
2406
+ this.gravityRangeFactor = FDLayoutConstants.DEFAULT_GRAVITY_RANGE_FACTOR;
2407
+ this.compoundGravityRangeFactor = FDLayoutConstants.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR;
2408
+ this.displacementThresholdPerNode = 3 * FDLayoutConstants.DEFAULT_EDGE_LENGTH / 100;
2409
+ this.coolingFactor = FDLayoutConstants.DEFAULT_COOLING_FACTOR_INCREMENTAL;
2410
+ this.initialCoolingFactor = FDLayoutConstants.DEFAULT_COOLING_FACTOR_INCREMENTAL;
2411
+ this.totalDisplacement = 0;
2412
+ this.oldTotalDisplacement = 0;
2413
+ this.maxIterations = FDLayoutConstants.MAX_ITERATIONS;
2414
+ }
2415
+ FDLayout.prototype = Object.create(Layout2.prototype);
2416
+ for (var prop in Layout2) {
2417
+ FDLayout[prop] = Layout2[prop];
2418
+ }
2419
+ FDLayout.prototype.initParameters = function() {
2420
+ Layout2.prototype.initParameters.call(this, arguments);
2421
+ this.totalIterations = 0;
2422
+ this.notAnimatedIterations = 0;
2423
+ this.useFRGridVariant = FDLayoutConstants.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION;
2424
+ this.grid = [];
2425
+ };
2426
+ FDLayout.prototype.calcIdealEdgeLengths = function() {
2427
+ var edge;
2428
+ var lcaDepth;
2429
+ var source;
2430
+ var target;
2431
+ var sizeOfSourceInLca;
2432
+ var sizeOfTargetInLca;
2433
+ var allEdges = this.getGraphManager().getAllEdges();
2434
+ for (var i = 0; i < allEdges.length; i++) {
2435
+ edge = allEdges[i];
2436
+ edge.idealLength = this.idealEdgeLength;
2437
+ if (edge.isInterGraph) {
2438
+ source = edge.getSource();
2439
+ target = edge.getTarget();
2440
+ sizeOfSourceInLca = edge.getSourceInLca().getEstimatedSize();
2441
+ sizeOfTargetInLca = edge.getTargetInLca().getEstimatedSize();
2442
+ if (this.useSmartIdealEdgeLengthCalculation) {
2443
+ edge.idealLength += sizeOfSourceInLca + sizeOfTargetInLca - 2 * LayoutConstants.SIMPLE_NODE_SIZE;
2444
+ }
2445
+ lcaDepth = edge.getLca().getInclusionTreeDepth();
2446
+ edge.idealLength += FDLayoutConstants.DEFAULT_EDGE_LENGTH * FDLayoutConstants.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (source.getInclusionTreeDepth() + target.getInclusionTreeDepth() - 2 * lcaDepth);
2447
+ }
2448
+ }
2449
+ };
2450
+ FDLayout.prototype.initSpringEmbedder = function() {
2451
+ var s = this.getAllNodes().length;
2452
+ if (this.incremental) {
2453
+ if (s > FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) {
2454
+ this.coolingFactor = Math.max(this.coolingFactor * FDLayoutConstants.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (s - FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) / (FDLayoutConstants.ADAPTATION_UPPER_NODE_LIMIT - FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - FDLayoutConstants.COOLING_ADAPTATION_FACTOR));
2455
+ }
2456
+ this.maxNodeDisplacement = FDLayoutConstants.MAX_NODE_DISPLACEMENT_INCREMENTAL;
2457
+ } else {
2458
+ if (s > FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) {
2459
+ this.coolingFactor = Math.max(FDLayoutConstants.COOLING_ADAPTATION_FACTOR, 1 - (s - FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) / (FDLayoutConstants.ADAPTATION_UPPER_NODE_LIMIT - FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) * (1 - FDLayoutConstants.COOLING_ADAPTATION_FACTOR));
2460
+ } else {
2461
+ this.coolingFactor = 1;
2462
+ }
2463
+ this.initialCoolingFactor = this.coolingFactor;
2464
+ this.maxNodeDisplacement = FDLayoutConstants.MAX_NODE_DISPLACEMENT;
2465
+ }
2466
+ this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations);
2467
+ this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length;
2468
+ this.repulsionRange = this.calcRepulsionRange();
2469
+ };
2470
+ FDLayout.prototype.calcSpringForces = function() {
2471
+ var lEdges = this.getAllEdges();
2472
+ var edge;
2473
+ for (var i = 0; i < lEdges.length; i++) {
2474
+ edge = lEdges[i];
2475
+ this.calcSpringForce(edge, edge.idealLength);
2476
+ }
2477
+ };
2478
+ FDLayout.prototype.calcRepulsionForces = function() {
2479
+ var gridUpdateAllowed = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
2480
+ var forceToNodeSurroundingUpdate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
2481
+ var i, j;
2482
+ var nodeA, nodeB;
2483
+ var lNodes = this.getAllNodes();
2484
+ var processedNodeSet;
2485
+ if (this.useFRGridVariant) {
2486
+ if (this.totalIterations % FDLayoutConstants.GRID_CALCULATION_CHECK_PERIOD == 1 && gridUpdateAllowed) {
2487
+ this.updateGrid();
2488
+ }
2489
+ processedNodeSet = /* @__PURE__ */ new Set();
2490
+ for (i = 0; i < lNodes.length; i++) {
2491
+ nodeA = lNodes[i];
2492
+ this.calculateRepulsionForceOfANode(nodeA, processedNodeSet, gridUpdateAllowed, forceToNodeSurroundingUpdate);
2493
+ processedNodeSet.add(nodeA);
2494
+ }
2495
+ } else {
2496
+ for (i = 0; i < lNodes.length; i++) {
2497
+ nodeA = lNodes[i];
2498
+ for (j = i + 1; j < lNodes.length; j++) {
2499
+ nodeB = lNodes[j];
2500
+ if (nodeA.getOwner() != nodeB.getOwner()) {
2501
+ continue;
2502
+ }
2503
+ this.calcRepulsionForce(nodeA, nodeB);
2504
+ }
2505
+ }
2506
+ }
2507
+ };
2508
+ FDLayout.prototype.calcGravitationalForces = function() {
2509
+ var node;
2510
+ var lNodes = this.getAllNodesToApplyGravitation();
2511
+ for (var i = 0; i < lNodes.length; i++) {
2512
+ node = lNodes[i];
2513
+ this.calcGravitationalForce(node);
2514
+ }
2515
+ };
2516
+ FDLayout.prototype.moveNodes = function() {
2517
+ var lNodes = this.getAllNodes();
2518
+ var node;
2519
+ for (var i = 0; i < lNodes.length; i++) {
2520
+ node = lNodes[i];
2521
+ node.move();
2522
+ }
2523
+ };
2524
+ FDLayout.prototype.calcSpringForce = function(edge, idealLength) {
2525
+ var sourceNode = edge.getSource();
2526
+ var targetNode = edge.getTarget();
2527
+ var length;
2528
+ var springForce;
2529
+ var springForceX;
2530
+ var springForceY;
2531
+ if (this.uniformLeafNodeSizes && sourceNode.getChild() == null && targetNode.getChild() == null) {
2532
+ edge.updateLengthSimple();
2533
+ } else {
2534
+ edge.updateLength();
2535
+ if (edge.isOverlapingSourceAndTarget) {
2536
+ return;
2537
+ }
2538
+ }
2539
+ length = edge.getLength();
2540
+ if (length == 0) return;
2541
+ springForce = this.springConstant * (length - idealLength);
2542
+ springForceX = springForce * (edge.lengthX / length);
2543
+ springForceY = springForce * (edge.lengthY / length);
2544
+ sourceNode.springForceX += springForceX;
2545
+ sourceNode.springForceY += springForceY;
2546
+ targetNode.springForceX -= springForceX;
2547
+ targetNode.springForceY -= springForceY;
2548
+ };
2549
+ FDLayout.prototype.calcRepulsionForce = function(nodeA, nodeB) {
2550
+ var rectA = nodeA.getRect();
2551
+ var rectB = nodeB.getRect();
2552
+ var overlapAmount = new Array(2);
2553
+ var clipPoints = new Array(4);
2554
+ var distanceX;
2555
+ var distanceY;
2556
+ var distanceSquared;
2557
+ var distance;
2558
+ var repulsionForce;
2559
+ var repulsionForceX;
2560
+ var repulsionForceY;
2561
+ if (rectA.intersects(rectB)) {
2562
+ IGeometry.calcSeparationAmount(rectA, rectB, overlapAmount, FDLayoutConstants.DEFAULT_EDGE_LENGTH / 2);
2563
+ repulsionForceX = 2 * overlapAmount[0];
2564
+ repulsionForceY = 2 * overlapAmount[1];
2565
+ var childrenConstant = nodeA.noOfChildren * nodeB.noOfChildren / (nodeA.noOfChildren + nodeB.noOfChildren);
2566
+ nodeA.repulsionForceX -= childrenConstant * repulsionForceX;
2567
+ nodeA.repulsionForceY -= childrenConstant * repulsionForceY;
2568
+ nodeB.repulsionForceX += childrenConstant * repulsionForceX;
2569
+ nodeB.repulsionForceY += childrenConstant * repulsionForceY;
2570
+ } else {
2571
+ if (this.uniformLeafNodeSizes && nodeA.getChild() == null && nodeB.getChild() == null) {
2572
+ distanceX = rectB.getCenterX() - rectA.getCenterX();
2573
+ distanceY = rectB.getCenterY() - rectA.getCenterY();
2574
+ } else {
2575
+ IGeometry.getIntersection(rectA, rectB, clipPoints);
2576
+ distanceX = clipPoints[2] - clipPoints[0];
2577
+ distanceY = clipPoints[3] - clipPoints[1];
2578
+ }
2579
+ if (Math.abs(distanceX) < FDLayoutConstants.MIN_REPULSION_DIST) {
2580
+ distanceX = IMath.sign(distanceX) * FDLayoutConstants.MIN_REPULSION_DIST;
2581
+ }
2582
+ if (Math.abs(distanceY) < FDLayoutConstants.MIN_REPULSION_DIST) {
2583
+ distanceY = IMath.sign(distanceY) * FDLayoutConstants.MIN_REPULSION_DIST;
2584
+ }
2585
+ distanceSquared = distanceX * distanceX + distanceY * distanceY;
2586
+ distance = Math.sqrt(distanceSquared);
2587
+ repulsionForce = this.repulsionConstant * nodeA.noOfChildren * nodeB.noOfChildren / distanceSquared;
2588
+ repulsionForceX = repulsionForce * distanceX / distance;
2589
+ repulsionForceY = repulsionForce * distanceY / distance;
2590
+ nodeA.repulsionForceX -= repulsionForceX;
2591
+ nodeA.repulsionForceY -= repulsionForceY;
2592
+ nodeB.repulsionForceX += repulsionForceX;
2593
+ nodeB.repulsionForceY += repulsionForceY;
2594
+ }
2595
+ };
2596
+ FDLayout.prototype.calcGravitationalForce = function(node) {
2597
+ var ownerGraph;
2598
+ var ownerCenterX;
2599
+ var ownerCenterY;
2600
+ var distanceX;
2601
+ var distanceY;
2602
+ var absDistanceX;
2603
+ var absDistanceY;
2604
+ var estimatedSize;
2605
+ ownerGraph = node.getOwner();
2606
+ ownerCenterX = (ownerGraph.getRight() + ownerGraph.getLeft()) / 2;
2607
+ ownerCenterY = (ownerGraph.getTop() + ownerGraph.getBottom()) / 2;
2608
+ distanceX = node.getCenterX() - ownerCenterX;
2609
+ distanceY = node.getCenterY() - ownerCenterY;
2610
+ absDistanceX = Math.abs(distanceX) + node.getWidth() / 2;
2611
+ absDistanceY = Math.abs(distanceY) + node.getHeight() / 2;
2612
+ if (node.getOwner() == this.graphManager.getRoot()) {
2613
+ estimatedSize = ownerGraph.getEstimatedSize() * this.gravityRangeFactor;
2614
+ if (absDistanceX > estimatedSize || absDistanceY > estimatedSize) {
2615
+ node.gravitationForceX = -this.gravityConstant * distanceX;
2616
+ node.gravitationForceY = -this.gravityConstant * distanceY;
2617
+ }
2618
+ } else {
2619
+ estimatedSize = ownerGraph.getEstimatedSize() * this.compoundGravityRangeFactor;
2620
+ if (absDistanceX > estimatedSize || absDistanceY > estimatedSize) {
2621
+ node.gravitationForceX = -this.gravityConstant * distanceX * this.compoundGravityConstant;
2622
+ node.gravitationForceY = -this.gravityConstant * distanceY * this.compoundGravityConstant;
2623
+ }
2624
+ }
2625
+ };
2626
+ FDLayout.prototype.isConverged = function() {
2627
+ var converged;
2628
+ var oscilating = false;
2629
+ if (this.totalIterations > this.maxIterations / 3) {
2630
+ oscilating = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2;
2631
+ }
2632
+ converged = this.totalDisplacement < this.totalDisplacementThreshold;
2633
+ this.oldTotalDisplacement = this.totalDisplacement;
2634
+ return converged || oscilating;
2635
+ };
2636
+ FDLayout.prototype.animate = function() {
2637
+ if (this.animationDuringLayout && !this.isSubLayout) {
2638
+ if (this.notAnimatedIterations == this.animationPeriod) {
2639
+ this.update();
2640
+ this.notAnimatedIterations = 0;
2641
+ } else {
2642
+ this.notAnimatedIterations++;
2643
+ }
2644
+ }
2645
+ };
2646
+ FDLayout.prototype.calcNoOfChildrenForAllNodes = function() {
2647
+ var node;
2648
+ var allNodes = this.graphManager.getAllNodes();
2649
+ for (var i = 0; i < allNodes.length; i++) {
2650
+ node = allNodes[i];
2651
+ node.noOfChildren = node.getNoOfChildren();
2652
+ }
2653
+ };
2654
+ FDLayout.prototype.calcGrid = function(graph) {
2655
+ var sizeX = 0;
2656
+ var sizeY = 0;
2657
+ sizeX = parseInt(Math.ceil((graph.getRight() - graph.getLeft()) / this.repulsionRange));
2658
+ sizeY = parseInt(Math.ceil((graph.getBottom() - graph.getTop()) / this.repulsionRange));
2659
+ var grid = new Array(sizeX);
2660
+ for (var i = 0; i < sizeX; i++) {
2661
+ grid[i] = new Array(sizeY);
2662
+ }
2663
+ for (var i = 0; i < sizeX; i++) {
2664
+ for (var j = 0; j < sizeY; j++) {
2665
+ grid[i][j] = new Array();
2666
+ }
2667
+ }
2668
+ return grid;
2669
+ };
2670
+ FDLayout.prototype.addNodeToGrid = function(v, left, top) {
2671
+ var startX = 0;
2672
+ var finishX = 0;
2673
+ var startY = 0;
2674
+ var finishY = 0;
2675
+ startX = parseInt(Math.floor((v.getRect().x - left) / this.repulsionRange));
2676
+ finishX = parseInt(Math.floor((v.getRect().width + v.getRect().x - left) / this.repulsionRange));
2677
+ startY = parseInt(Math.floor((v.getRect().y - top) / this.repulsionRange));
2678
+ finishY = parseInt(Math.floor((v.getRect().height + v.getRect().y - top) / this.repulsionRange));
2679
+ for (var i = startX; i <= finishX; i++) {
2680
+ for (var j = startY; j <= finishY; j++) {
2681
+ this.grid[i][j].push(v);
2682
+ v.setGridCoordinates(startX, finishX, startY, finishY);
2683
+ }
2684
+ }
2685
+ };
2686
+ FDLayout.prototype.updateGrid = function() {
2687
+ var i;
2688
+ var nodeA;
2689
+ var lNodes = this.getAllNodes();
2690
+ this.grid = this.calcGrid(this.graphManager.getRoot());
2691
+ for (i = 0; i < lNodes.length; i++) {
2692
+ nodeA = lNodes[i];
2693
+ this.addNodeToGrid(nodeA, this.graphManager.getRoot().getLeft(), this.graphManager.getRoot().getTop());
2694
+ }
2695
+ };
2696
+ FDLayout.prototype.calculateRepulsionForceOfANode = function(nodeA, processedNodeSet, gridUpdateAllowed, forceToNodeSurroundingUpdate) {
2697
+ if (this.totalIterations % FDLayoutConstants.GRID_CALCULATION_CHECK_PERIOD == 1 && gridUpdateAllowed || forceToNodeSurroundingUpdate) {
2698
+ var surrounding = /* @__PURE__ */ new Set();
2699
+ nodeA.surrounding = new Array();
2700
+ var nodeB;
2701
+ var grid = this.grid;
2702
+ for (var i = nodeA.startX - 1; i < nodeA.finishX + 2; i++) {
2703
+ for (var j = nodeA.startY - 1; j < nodeA.finishY + 2; j++) {
2704
+ if (!(i < 0 || j < 0 || i >= grid.length || j >= grid[0].length)) {
2705
+ for (var k = 0; k < grid[i][j].length; k++) {
2706
+ nodeB = grid[i][j][k];
2707
+ if (nodeA.getOwner() != nodeB.getOwner() || nodeA == nodeB) {
2708
+ continue;
2709
+ }
2710
+ if (!processedNodeSet.has(nodeB) && !surrounding.has(nodeB)) {
2711
+ var distanceX = Math.abs(nodeA.getCenterX() - nodeB.getCenterX()) - (nodeA.getWidth() / 2 + nodeB.getWidth() / 2);
2712
+ var distanceY = Math.abs(nodeA.getCenterY() - nodeB.getCenterY()) - (nodeA.getHeight() / 2 + nodeB.getHeight() / 2);
2713
+ if (distanceX <= this.repulsionRange && distanceY <= this.repulsionRange) {
2714
+ surrounding.add(nodeB);
2715
+ }
2716
+ }
2717
+ }
2718
+ }
2719
+ }
2720
+ }
2721
+ nodeA.surrounding = [].concat(_toConsumableArray(surrounding));
2722
+ }
2723
+ for (i = 0; i < nodeA.surrounding.length; i++) {
2724
+ this.calcRepulsionForce(nodeA, nodeA.surrounding[i]);
2725
+ }
2726
+ };
2727
+ FDLayout.prototype.calcRepulsionRange = function() {
2728
+ return 0;
2729
+ };
2730
+ module2.exports = FDLayout;
2731
+ },
2732
+ /* 19 */
2733
+ /***/
2734
+ function(module2, exports2, __webpack_require__) {
2735
+ var LEdge = __webpack_require__(1);
2736
+ var FDLayoutConstants = __webpack_require__(7);
2737
+ function FDLayoutEdge(source, target, vEdge) {
2738
+ LEdge.call(this, source, target, vEdge);
2739
+ this.idealLength = FDLayoutConstants.DEFAULT_EDGE_LENGTH;
2740
+ }
2741
+ FDLayoutEdge.prototype = Object.create(LEdge.prototype);
2742
+ for (var prop in LEdge) {
2743
+ FDLayoutEdge[prop] = LEdge[prop];
2744
+ }
2745
+ module2.exports = FDLayoutEdge;
2746
+ },
2747
+ /* 20 */
2748
+ /***/
2749
+ function(module2, exports2, __webpack_require__) {
2750
+ var LNode = __webpack_require__(3);
2751
+ function FDLayoutNode(gm, loc, size, vNode) {
2752
+ LNode.call(this, gm, loc, size, vNode);
2753
+ this.springForceX = 0;
2754
+ this.springForceY = 0;
2755
+ this.repulsionForceX = 0;
2756
+ this.repulsionForceY = 0;
2757
+ this.gravitationForceX = 0;
2758
+ this.gravitationForceY = 0;
2759
+ this.displacementX = 0;
2760
+ this.displacementY = 0;
2761
+ this.startX = 0;
2762
+ this.finishX = 0;
2763
+ this.startY = 0;
2764
+ this.finishY = 0;
2765
+ this.surrounding = [];
2766
+ }
2767
+ FDLayoutNode.prototype = Object.create(LNode.prototype);
2768
+ for (var prop in LNode) {
2769
+ FDLayoutNode[prop] = LNode[prop];
2770
+ }
2771
+ FDLayoutNode.prototype.setGridCoordinates = function(_startX, _finishX, _startY, _finishY) {
2772
+ this.startX = _startX;
2773
+ this.finishX = _finishX;
2774
+ this.startY = _startY;
2775
+ this.finishY = _finishY;
2776
+ };
2777
+ module2.exports = FDLayoutNode;
2778
+ },
2779
+ /* 21 */
2780
+ /***/
2781
+ function(module2, exports2, __webpack_require__) {
2782
+ function DimensionD2(width, height) {
2783
+ this.width = 0;
2784
+ this.height = 0;
2785
+ if (width !== null && height !== null) {
2786
+ this.height = height;
2787
+ this.width = width;
2788
+ }
2789
+ }
2790
+ DimensionD2.prototype.getWidth = function() {
2791
+ return this.width;
2792
+ };
2793
+ DimensionD2.prototype.setWidth = function(width) {
2794
+ this.width = width;
2795
+ };
2796
+ DimensionD2.prototype.getHeight = function() {
2797
+ return this.height;
2798
+ };
2799
+ DimensionD2.prototype.setHeight = function(height) {
2800
+ this.height = height;
2801
+ };
2802
+ module2.exports = DimensionD2;
2803
+ },
2804
+ /* 22 */
2805
+ /***/
2806
+ function(module2, exports2, __webpack_require__) {
2807
+ var UniqueIDGeneretor = __webpack_require__(14);
2808
+ function HashMap() {
2809
+ this.map = {};
2810
+ this.keys = [];
2811
+ }
2812
+ HashMap.prototype.put = function(key, value) {
2813
+ var theId = UniqueIDGeneretor.createID(key);
2814
+ if (!this.contains(theId)) {
2815
+ this.map[theId] = value;
2816
+ this.keys.push(key);
2817
+ }
2818
+ };
2819
+ HashMap.prototype.contains = function(key) {
2820
+ UniqueIDGeneretor.createID(key);
2821
+ return this.map[key] != null;
2822
+ };
2823
+ HashMap.prototype.get = function(key) {
2824
+ var theId = UniqueIDGeneretor.createID(key);
2825
+ return this.map[theId];
2826
+ };
2827
+ HashMap.prototype.keySet = function() {
2828
+ return this.keys;
2829
+ };
2830
+ module2.exports = HashMap;
2831
+ },
2832
+ /* 23 */
2833
+ /***/
2834
+ function(module2, exports2, __webpack_require__) {
2835
+ var UniqueIDGeneretor = __webpack_require__(14);
2836
+ function HashSet() {
2837
+ this.set = {};
2838
+ }
2839
+ HashSet.prototype.add = function(obj) {
2840
+ var theId = UniqueIDGeneretor.createID(obj);
2841
+ if (!this.contains(theId)) this.set[theId] = obj;
2842
+ };
2843
+ HashSet.prototype.remove = function(obj) {
2844
+ delete this.set[UniqueIDGeneretor.createID(obj)];
2845
+ };
2846
+ HashSet.prototype.clear = function() {
2847
+ this.set = {};
2848
+ };
2849
+ HashSet.prototype.contains = function(obj) {
2850
+ return this.set[UniqueIDGeneretor.createID(obj)] == obj;
2851
+ };
2852
+ HashSet.prototype.isEmpty = function() {
2853
+ return this.size() === 0;
2854
+ };
2855
+ HashSet.prototype.size = function() {
2856
+ return Object.keys(this.set).length;
2857
+ };
2858
+ HashSet.prototype.addAllTo = function(list) {
2859
+ var keys = Object.keys(this.set);
2860
+ var length = keys.length;
2861
+ for (var i = 0; i < length; i++) {
2862
+ list.push(this.set[keys[i]]);
2863
+ }
2864
+ };
2865
+ HashSet.prototype.size = function() {
2866
+ return Object.keys(this.set).length;
2867
+ };
2868
+ HashSet.prototype.addAll = function(list) {
2869
+ var s = list.length;
2870
+ for (var i = 0; i < s; i++) {
2871
+ var v = list[i];
2872
+ this.add(v);
2873
+ }
2874
+ };
2875
+ module2.exports = HashSet;
2876
+ },
2877
+ /* 24 */
2878
+ /***/
2879
+ function(module2, exports2, __webpack_require__) {
2880
+ var _createClass = /* @__PURE__ */ function() {
2881
+ function defineProperties(target, props) {
2882
+ for (var i = 0; i < props.length; i++) {
2883
+ var descriptor = props[i];
2884
+ descriptor.enumerable = descriptor.enumerable || false;
2885
+ descriptor.configurable = true;
2886
+ if ("value" in descriptor) descriptor.writable = true;
2887
+ Object.defineProperty(target, descriptor.key, descriptor);
2888
+ }
2889
+ }
2890
+ return function(Constructor, protoProps, staticProps) {
2891
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
2892
+ if (staticProps) defineProperties(Constructor, staticProps);
2893
+ return Constructor;
2894
+ };
2895
+ }();
2896
+ function _classCallCheck(instance, Constructor) {
2897
+ if (!(instance instanceof Constructor)) {
2898
+ throw new TypeError("Cannot call a class as a function");
2899
+ }
2900
+ }
2901
+ var LinkedList = __webpack_require__(11);
2902
+ var Quicksort = function() {
2903
+ function Quicksort2(A, compareFunction) {
2904
+ _classCallCheck(this, Quicksort2);
2905
+ if (compareFunction !== null || compareFunction !== void 0) this.compareFunction = this._defaultCompareFunction;
2906
+ var length = void 0;
2907
+ if (A instanceof LinkedList) length = A.size();
2908
+ else length = A.length;
2909
+ this._quicksort(A, 0, length - 1);
2910
+ }
2911
+ _createClass(Quicksort2, [{
2912
+ key: "_quicksort",
2913
+ value: function _quicksort(A, p, r) {
2914
+ if (p < r) {
2915
+ var q = this._partition(A, p, r);
2916
+ this._quicksort(A, p, q);
2917
+ this._quicksort(A, q + 1, r);
2918
+ }
2919
+ }
2920
+ }, {
2921
+ key: "_partition",
2922
+ value: function _partition(A, p, r) {
2923
+ var x = this._get(A, p);
2924
+ var i = p;
2925
+ var j = r;
2926
+ while (true) {
2927
+ while (this.compareFunction(x, this._get(A, j))) {
2928
+ j--;
2929
+ }
2930
+ while (this.compareFunction(this._get(A, i), x)) {
2931
+ i++;
2932
+ }
2933
+ if (i < j) {
2934
+ this._swap(A, i, j);
2935
+ i++;
2936
+ j--;
2937
+ } else return j;
2938
+ }
2939
+ }
2940
+ }, {
2941
+ key: "_get",
2942
+ value: function _get(object, index) {
2943
+ if (object instanceof LinkedList) return object.get_object_at(index);
2944
+ else return object[index];
2945
+ }
2946
+ }, {
2947
+ key: "_set",
2948
+ value: function _set(object, index, value) {
2949
+ if (object instanceof LinkedList) object.set_object_at(index, value);
2950
+ else object[index] = value;
2951
+ }
2952
+ }, {
2953
+ key: "_swap",
2954
+ value: function _swap(A, i, j) {
2955
+ var temp = this._get(A, i);
2956
+ this._set(A, i, this._get(A, j));
2957
+ this._set(A, j, temp);
2958
+ }
2959
+ }, {
2960
+ key: "_defaultCompareFunction",
2961
+ value: function _defaultCompareFunction(a, b) {
2962
+ return b > a;
2963
+ }
2964
+ }]);
2965
+ return Quicksort2;
2966
+ }();
2967
+ module2.exports = Quicksort;
2968
+ },
2969
+ /* 25 */
2970
+ /***/
2971
+ function(module2, exports2, __webpack_require__) {
2972
+ var _createClass = /* @__PURE__ */ function() {
2973
+ function defineProperties(target, props) {
2974
+ for (var i = 0; i < props.length; i++) {
2975
+ var descriptor = props[i];
2976
+ descriptor.enumerable = descriptor.enumerable || false;
2977
+ descriptor.configurable = true;
2978
+ if ("value" in descriptor) descriptor.writable = true;
2979
+ Object.defineProperty(target, descriptor.key, descriptor);
2980
+ }
2981
+ }
2982
+ return function(Constructor, protoProps, staticProps) {
2983
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
2984
+ if (staticProps) defineProperties(Constructor, staticProps);
2985
+ return Constructor;
2986
+ };
2987
+ }();
2988
+ function _classCallCheck(instance, Constructor) {
2989
+ if (!(instance instanceof Constructor)) {
2990
+ throw new TypeError("Cannot call a class as a function");
2991
+ }
2992
+ }
2993
+ var NeedlemanWunsch = function() {
2994
+ function NeedlemanWunsch2(sequence1, sequence2) {
2995
+ var match_score = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
2996
+ var mismatch_penalty = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : -1;
2997
+ var gap_penalty = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : -1;
2998
+ _classCallCheck(this, NeedlemanWunsch2);
2999
+ this.sequence1 = sequence1;
3000
+ this.sequence2 = sequence2;
3001
+ this.match_score = match_score;
3002
+ this.mismatch_penalty = mismatch_penalty;
3003
+ this.gap_penalty = gap_penalty;
3004
+ this.iMax = sequence1.length + 1;
3005
+ this.jMax = sequence2.length + 1;
3006
+ this.grid = new Array(this.iMax);
3007
+ for (var i = 0; i < this.iMax; i++) {
3008
+ this.grid[i] = new Array(this.jMax);
3009
+ for (var j = 0; j < this.jMax; j++) {
3010
+ this.grid[i][j] = 0;
3011
+ }
3012
+ }
3013
+ this.tracebackGrid = new Array(this.iMax);
3014
+ for (var _i = 0; _i < this.iMax; _i++) {
3015
+ this.tracebackGrid[_i] = new Array(this.jMax);
3016
+ for (var _j = 0; _j < this.jMax; _j++) {
3017
+ this.tracebackGrid[_i][_j] = [null, null, null];
3018
+ }
3019
+ }
3020
+ this.alignments = [];
3021
+ this.score = -1;
3022
+ this.computeGrids();
3023
+ }
3024
+ _createClass(NeedlemanWunsch2, [{
3025
+ key: "getScore",
3026
+ value: function getScore() {
3027
+ return this.score;
3028
+ }
3029
+ }, {
3030
+ key: "getAlignments",
3031
+ value: function getAlignments() {
3032
+ return this.alignments;
3033
+ }
3034
+ // Main dynamic programming procedure
3035
+ }, {
3036
+ key: "computeGrids",
3037
+ value: function computeGrids() {
3038
+ for (var j = 1; j < this.jMax; j++) {
3039
+ this.grid[0][j] = this.grid[0][j - 1] + this.gap_penalty;
3040
+ this.tracebackGrid[0][j] = [false, false, true];
3041
+ }
3042
+ for (var i = 1; i < this.iMax; i++) {
3043
+ this.grid[i][0] = this.grid[i - 1][0] + this.gap_penalty;
3044
+ this.tracebackGrid[i][0] = [false, true, false];
3045
+ }
3046
+ for (var _i2 = 1; _i2 < this.iMax; _i2++) {
3047
+ for (var _j2 = 1; _j2 < this.jMax; _j2++) {
3048
+ var diag = void 0;
3049
+ if (this.sequence1[_i2 - 1] === this.sequence2[_j2 - 1]) diag = this.grid[_i2 - 1][_j2 - 1] + this.match_score;
3050
+ else diag = this.grid[_i2 - 1][_j2 - 1] + this.mismatch_penalty;
3051
+ var up = this.grid[_i2 - 1][_j2] + this.gap_penalty;
3052
+ var left = this.grid[_i2][_j2 - 1] + this.gap_penalty;
3053
+ var maxOf = [diag, up, left];
3054
+ var indices = this.arrayAllMaxIndexes(maxOf);
3055
+ this.grid[_i2][_j2] = maxOf[indices[0]];
3056
+ this.tracebackGrid[_i2][_j2] = [indices.includes(0), indices.includes(1), indices.includes(2)];
3057
+ }
3058
+ }
3059
+ this.score = this.grid[this.iMax - 1][this.jMax - 1];
3060
+ }
3061
+ // Gets all possible valid sequence combinations
3062
+ }, {
3063
+ key: "alignmentTraceback",
3064
+ value: function alignmentTraceback() {
3065
+ var inProcessAlignments = [];
3066
+ inProcessAlignments.push({
3067
+ pos: [this.sequence1.length, this.sequence2.length],
3068
+ seq1: "",
3069
+ seq2: ""
3070
+ });
3071
+ while (inProcessAlignments[0]) {
3072
+ var current = inProcessAlignments[0];
3073
+ var directions = this.tracebackGrid[current.pos[0]][current.pos[1]];
3074
+ if (directions[0]) {
3075
+ inProcessAlignments.push({
3076
+ pos: [current.pos[0] - 1, current.pos[1] - 1],
3077
+ seq1: this.sequence1[current.pos[0] - 1] + current.seq1,
3078
+ seq2: this.sequence2[current.pos[1] - 1] + current.seq2
3079
+ });
3080
+ }
3081
+ if (directions[1]) {
3082
+ inProcessAlignments.push({
3083
+ pos: [current.pos[0] - 1, current.pos[1]],
3084
+ seq1: this.sequence1[current.pos[0] - 1] + current.seq1,
3085
+ seq2: "-" + current.seq2
3086
+ });
3087
+ }
3088
+ if (directions[2]) {
3089
+ inProcessAlignments.push({
3090
+ pos: [current.pos[0], current.pos[1] - 1],
3091
+ seq1: "-" + current.seq1,
3092
+ seq2: this.sequence2[current.pos[1] - 1] + current.seq2
3093
+ });
3094
+ }
3095
+ if (current.pos[0] === 0 && current.pos[1] === 0) this.alignments.push({
3096
+ sequence1: current.seq1,
3097
+ sequence2: current.seq2
3098
+ });
3099
+ inProcessAlignments.shift();
3100
+ }
3101
+ return this.alignments;
3102
+ }
3103
+ // Helper Functions
3104
+ }, {
3105
+ key: "getAllIndexes",
3106
+ value: function getAllIndexes(arr, val) {
3107
+ var indexes = [], i = -1;
3108
+ while ((i = arr.indexOf(val, i + 1)) !== -1) {
3109
+ indexes.push(i);
3110
+ }
3111
+ return indexes;
3112
+ }
3113
+ }, {
3114
+ key: "arrayAllMaxIndexes",
3115
+ value: function arrayAllMaxIndexes(array) {
3116
+ return this.getAllIndexes(array, Math.max.apply(null, array));
3117
+ }
3118
+ }]);
3119
+ return NeedlemanWunsch2;
3120
+ }();
3121
+ module2.exports = NeedlemanWunsch;
3122
+ },
3123
+ /* 26 */
3124
+ /***/
3125
+ function(module2, exports2, __webpack_require__) {
3126
+ var layoutBase2 = function layoutBase3() {
3127
+ return;
3128
+ };
3129
+ layoutBase2.FDLayout = __webpack_require__(18);
3130
+ layoutBase2.FDLayoutConstants = __webpack_require__(7);
3131
+ layoutBase2.FDLayoutEdge = __webpack_require__(19);
3132
+ layoutBase2.FDLayoutNode = __webpack_require__(20);
3133
+ layoutBase2.DimensionD = __webpack_require__(21);
3134
+ layoutBase2.HashMap = __webpack_require__(22);
3135
+ layoutBase2.HashSet = __webpack_require__(23);
3136
+ layoutBase2.IGeometry = __webpack_require__(8);
3137
+ layoutBase2.IMath = __webpack_require__(9);
3138
+ layoutBase2.Integer = __webpack_require__(10);
3139
+ layoutBase2.Point = __webpack_require__(12);
3140
+ layoutBase2.PointD = __webpack_require__(4);
3141
+ layoutBase2.RandomSeed = __webpack_require__(16);
3142
+ layoutBase2.RectangleD = __webpack_require__(13);
3143
+ layoutBase2.Transform = __webpack_require__(17);
3144
+ layoutBase2.UniqueIDGeneretor = __webpack_require__(14);
3145
+ layoutBase2.Quicksort = __webpack_require__(24);
3146
+ layoutBase2.LinkedList = __webpack_require__(11);
3147
+ layoutBase2.LGraphObject = __webpack_require__(2);
3148
+ layoutBase2.LGraph = __webpack_require__(5);
3149
+ layoutBase2.LEdge = __webpack_require__(1);
3150
+ layoutBase2.LGraphManager = __webpack_require__(6);
3151
+ layoutBase2.LNode = __webpack_require__(3);
3152
+ layoutBase2.Layout = __webpack_require__(15);
3153
+ layoutBase2.LayoutConstants = __webpack_require__(0);
3154
+ layoutBase2.NeedlemanWunsch = __webpack_require__(25);
3155
+ module2.exports = layoutBase2;
3156
+ },
3157
+ /* 27 */
3158
+ /***/
3159
+ function(module2, exports2, __webpack_require__) {
3160
+ function Emitter() {
3161
+ this.listeners = [];
3162
+ }
3163
+ var p = Emitter.prototype;
3164
+ p.addListener = function(event, callback) {
3165
+ this.listeners.push({
3166
+ event,
3167
+ callback
3168
+ });
3169
+ };
3170
+ p.removeListener = function(event, callback) {
3171
+ for (var i = this.listeners.length; i >= 0; i--) {
3172
+ var l = this.listeners[i];
3173
+ if (l.event === event && l.callback === callback) {
3174
+ this.listeners.splice(i, 1);
3175
+ }
3176
+ }
3177
+ };
3178
+ p.emit = function(event, data) {
3179
+ for (var i = 0; i < this.listeners.length; i++) {
3180
+ var l = this.listeners[i];
3181
+ if (event === l.event) {
3182
+ l.callback(data);
3183
+ }
3184
+ }
3185
+ };
3186
+ module2.exports = Emitter;
3187
+ }
3188
+ /******/
3189
+ ])
3190
+ );
3191
+ });
3192
+ })(layoutBase$1);
3193
+ return layoutBase$1.exports;
3194
+ }
3195
+ export {
3196
+ requireLayoutBase as __require
3197
+ };