@elmethis/core 1.0.0-alpha.149 → 1.0.0-alpha.150

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 (666) hide show
  1. package/dist/index.d.ts +2 -3
  2. package/dist/index.mjs +119 -121
  3. package/package.json +1 -1
  4. package/dist/_virtual/_commonjsHelpers.mjs +0 -6
  5. package/dist/_virtual/advancedFormat.mjs +0 -7
  6. package/dist/_virtual/advancedFormat2.mjs +0 -4
  7. package/dist/_virtual/cancellation.mjs +0 -5
  8. package/dist/_virtual/cancellation2.mjs +0 -4
  9. package/dist/_virtual/constants.mjs +0 -4
  10. package/dist/_virtual/cose-base.mjs +0 -4
  11. package/dist/_virtual/cose-base2.mjs +0 -4
  12. package/dist/_virtual/customParseFormat.mjs +0 -7
  13. package/dist/_virtual/customParseFormat2.mjs +0 -4
  14. package/dist/_virtual/cytoscape-cose-bilkent.mjs +0 -7
  15. package/dist/_virtual/cytoscape-cose-bilkent2.mjs +0 -4
  16. package/dist/_virtual/cytoscape-fcose.mjs +0 -7
  17. package/dist/_virtual/cytoscape-fcose2.mjs +0 -4
  18. package/dist/_virtual/dayjs.min.mjs +0 -7
  19. package/dist/_virtual/dayjs.min2.mjs +0 -4
  20. package/dist/_virtual/events.mjs +0 -5
  21. package/dist/_virtual/events2.mjs +0 -4
  22. package/dist/_virtual/index.mjs +0 -5
  23. package/dist/_virtual/index2.mjs +0 -4
  24. package/dist/_virtual/is.mjs +0 -4
  25. package/dist/_virtual/isoWeek.mjs +0 -7
  26. package/dist/_virtual/isoWeek2.mjs +0 -4
  27. package/dist/_virtual/layout-base.mjs +0 -4
  28. package/dist/_virtual/layout-base2.mjs +0 -4
  29. package/dist/_virtual/ral.mjs +0 -4
  30. package/dist/components/code/ElmMermaid.stories.d.ts +0 -7
  31. package/dist/components/code/ElmMermaid.vue.d.ts +0 -8
  32. package/dist/components/code/ElmMermaid.vue.mjs +0 -6
  33. package/dist/components/code/ElmMermaid.vue2.mjs +0 -56
  34. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/constants.mjs +0 -20
  35. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.mjs +0 -76
  36. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/helpers.mjs +0 -57
  37. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/model.mjs +0 -220
  38. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/visitor.mjs +0 -64
  39. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.mjs +0 -101
  40. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.mjs +0 -45
  41. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.mjs +0 -693
  42. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.mjs +0 -39
  43. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/print.mjs +0 -14
  44. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/timer.mjs +0 -10
  45. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/to-fast-properties.mjs +0 -15
  46. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.mjs +0 -15
  47. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.mjs +0 -28
  48. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.mjs +0 -20
  49. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/name.mjs +0 -54
  50. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.mjs +0 -17
  51. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +0 -27
  52. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.mjs +0 -24
  53. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.mjs +0 -120
  54. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.mjs +0 -33
  55. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/html.mjs +0 -10
  56. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/id.mjs +0 -29
  57. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.mjs +0 -41
  58. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-4AB2E3PP.mjs +0 -6
  59. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2NYFTIL2.mjs +0 -34
  60. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2O5ZK7RR.mjs +0 -34
  61. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7PKI6E2E.mjs +0 -541
  62. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-C4OEIS7N.mjs +0 -46
  63. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EXZZNE6F.mjs +0 -34
  64. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ROXG7S4E.mjs +0 -42
  65. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-V4Q32G6S.mjs +0 -34
  66. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-O2Q2CXLX.mjs +0 -6
  67. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-4N47QTOZ.mjs +0 -6
  68. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-KVYON367.mjs +0 -6
  69. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-R6RNRRYF.mjs +0 -6
  70. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-MK3ICKWK.mjs +0 -6
  71. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +0 -115
  72. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/all-star-lookahead.mjs +0 -531
  73. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/atn.mjs +0 -393
  74. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/dfa.mjs +0 -42
  75. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/lang/lang_extensions.mjs +0 -12
  76. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/constants.mjs +0 -4
  77. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst.mjs +0 -42
  78. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.mjs +0 -87
  79. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/errors_public.mjs +0 -161
  80. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/exceptions_public.mjs +0 -60
  81. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/checks.mjs +0 -416
  82. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/first.mjs +0 -47
  83. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/follow.mjs +0 -41
  84. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.mjs +0 -24
  85. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/interpreter.mjs +0 -424
  86. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/keys.mjs +0 -22
  87. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.mjs +0 -48
  88. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/lookahead.mjs +0 -387
  89. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/resolver.mjs +0 -40
  90. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/rest.mjs +0 -83
  91. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/parser.mjs +0 -181
  92. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.mjs +0 -25
  93. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.mjs +0 -69
  94. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.mjs +0 -270
  95. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.mjs +0 -59
  96. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.mjs +0 -128
  97. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.mjs +0 -38
  98. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.mjs +0 -323
  99. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.mjs +0 -434
  100. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.mjs +0 -251
  101. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.mjs +0 -167
  102. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.mjs +0 -19
  103. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer.mjs +0 -720
  104. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_errors_public.mjs +0 -11
  105. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_public.mjs +0 -552
  106. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp.mjs +0 -214
  107. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp_parser.mjs +0 -20
  108. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens.mjs +0 -115
  109. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens_public.mjs +0 -88
  110. package/dist/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.mjs +0 -1090
  111. package/dist/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.mjs +0 -2555
  112. package/dist/node_modules/.pnpm/cytoscape-cose-bilkent@4.1.0_cytoscape@3.31.1/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.mjs +0 -374
  113. package/dist/node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.31.1/node_modules/cytoscape-fcose/cytoscape-fcose.mjs +0 -1278
  114. package/dist/node_modules/.pnpm/cytoscape@3.31.1/node_modules/cytoscape/dist/cytoscape.esm.mjs +0 -29469
  115. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/max.mjs +0 -21
  116. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/min.mjs +0 -21
  117. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/sum.mjs +0 -21
  118. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.mjs +0 -6
  119. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.mjs +0 -10
  120. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.mjs +0 -47
  121. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.mjs +0 -6
  122. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.mjs +0 -21
  123. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.mjs +0 -21
  124. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.mjs +0 -6
  125. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.mjs +0 -11
  126. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.mjs +0 -51
  127. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/axis.mjs +0 -94
  128. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/identity.mjs +0 -6
  129. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.mjs +0 -338
  130. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.mjs +0 -13
  131. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/lab.mjs +0 -95
  132. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/math.mjs +0 -6
  133. package/dist/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.mjs +0 -70
  134. package/dist/node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.mjs +0 -6
  135. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/defaultLocale.mjs +0 -20
  136. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/exponent.mjs +0 -7
  137. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatDecimal.mjs +0 -15
  138. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatGroup.mjs +0 -15
  139. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatNumerals.mjs +0 -10
  140. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatPrefixAuto.mjs +0 -12
  141. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatRounded.mjs +0 -10
  142. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatSpecifier.mjs +0 -37
  143. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTrim.mjs +0 -21
  144. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTypes.mjs +0 -21
  145. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/identity.mjs +0 -6
  146. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/locale.mjs +0 -82
  147. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionFixed.mjs +0 -7
  148. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionPrefix.mjs +0 -7
  149. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionRound.mjs +0 -8
  150. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.mjs +0 -13
  151. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.mjs +0 -29
  152. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.mjs +0 -4
  153. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.mjs +0 -9
  154. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/hcl.mjs +0 -18
  155. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.mjs +0 -8
  156. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.mjs +0 -15
  157. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.mjs +0 -20
  158. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.mjs +0 -20
  159. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.mjs +0 -8
  160. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.mjs +0 -43
  161. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.mjs +0 -28
  162. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.mjs +0 -59
  163. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.mjs +0 -18
  164. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.mjs +0 -16
  165. package/dist/node_modules/.pnpm/d3-path@1.0.9/node_modules/d3-path/src/path.mjs +0 -73
  166. package/dist/node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.mjs +0 -88
  167. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/align.mjs +0 -22
  168. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/constant.mjs +0 -8
  169. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankey.mjs +0 -326
  170. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankeyLinkHorizontal.mjs +0 -13
  171. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/categorical/Tableau10.mjs +0 -5
  172. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/colors.mjs +0 -8
  173. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/band.mjs +0 -56
  174. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.mjs +0 -8
  175. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.mjs +0 -95
  176. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.mjs +0 -16
  177. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.mjs +0 -61
  178. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/nice.mjs +0 -14
  179. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.mjs +0 -6
  180. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.mjs +0 -38
  181. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.mjs +0 -34
  182. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/time.mjs +0 -54
  183. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.mjs +0 -6
  184. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.mjs +0 -8
  185. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.mjs +0 -20
  186. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.mjs +0 -14
  187. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.mjs +0 -9
  188. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.mjs +0 -12
  189. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs +0 -7
  190. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.mjs +0 -10
  191. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.mjs +0 -46
  192. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.mjs +0 -9
  193. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.mjs +0 -64
  194. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.mjs +0 -14
  195. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.mjs +0 -76
  196. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.mjs +0 -6
  197. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.mjs +0 -28
  198. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.mjs +0 -11
  199. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.mjs +0 -6
  200. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.mjs +0 -31
  201. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.mjs +0 -8
  202. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.mjs +0 -16
  203. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.mjs +0 -20
  204. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.mjs +0 -88
  205. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.mjs +0 -14
  206. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.mjs +0 -10
  207. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.mjs +0 -19
  208. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.mjs +0 -9
  209. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.mjs +0 -18
  210. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.mjs +0 -12
  211. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.mjs +0 -6
  212. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.mjs +0 -64
  213. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.mjs +0 -14
  214. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.mjs +0 -23
  215. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.mjs +0 -9
  216. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.mjs +0 -10
  217. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.mjs +0 -17
  218. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.mjs +0 -24
  219. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.mjs +0 -16
  220. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.mjs +0 -16
  221. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.mjs +0 -8
  222. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.mjs +0 -22
  223. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.mjs +0 -6
  224. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.mjs +0 -28
  225. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.mjs +0 -20
  226. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.mjs +0 -10
  227. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.mjs +0 -11
  228. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.mjs +0 -6
  229. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/array.mjs +0 -4
  230. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/constant.mjs +0 -8
  231. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/link/index.mjs +0 -45
  232. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/point.mjs +0 -10
  233. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.mjs +0 -133
  234. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.mjs +0 -6
  235. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.mjs +0 -8
  236. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.mjs +0 -66
  237. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.mjs +0 -63
  238. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.mjs +0 -50
  239. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.mjs +0 -49
  240. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.mjs +0 -43
  241. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.mjs +0 -73
  242. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.mjs +0 -69
  243. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.mjs +0 -57
  244. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.mjs +0 -83
  245. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.mjs +0 -75
  246. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.mjs +0 -63
  247. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.mjs +0 -39
  248. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.mjs +0 -25
  249. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.mjs +0 -99
  250. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.mjs +0 -54
  251. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.mjs +0 -59
  252. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/descending.mjs +0 -6
  253. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/identity.mjs +0 -6
  254. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.mjs +0 -41
  255. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.mjs +0 -32
  256. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.mjs +0 -5
  257. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.mjs +0 -19
  258. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/pie.mjs +0 -55
  259. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.mjs +0 -10
  260. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/defaultLocale.mjs +0 -25
  261. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/locale.mjs +0 -542
  262. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/day.mjs +0 -34
  263. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/duration.mjs +0 -16
  264. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/hour.mjs +0 -26
  265. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/interval.mjs +0 -61
  266. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/millisecond.mjs +0 -23
  267. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/minute.mjs +0 -26
  268. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/month.mjs +0 -27
  269. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/second.mjs +0 -15
  270. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/ticks.mjs +0 -54
  271. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/week.mjs +0 -66
  272. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/year.mjs +0 -45
  273. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.mjs +0 -13
  274. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.mjs +0 -96
  275. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.mjs +0 -21
  276. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs +0 -5
  277. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.mjs +0 -9
  278. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.mjs +0 -39
  279. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.mjs +0 -55
  280. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.mjs +0 -42
  281. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.mjs +0 -18
  282. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.mjs +0 -18
  283. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.mjs +0 -14
  284. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.mjs +0 -15
  285. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.mjs +0 -23
  286. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.mjs +0 -16
  287. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.mjs +0 -68
  288. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.mjs +0 -11
  289. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.mjs +0 -18
  290. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.mjs +0 -23
  291. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.mjs +0 -13
  292. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.mjs +0 -125
  293. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.mjs +0 -20
  294. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.mjs +0 -24
  295. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.mjs +0 -8
  296. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.mjs +0 -47
  297. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.mjs +0 -25
  298. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.mjs +0 -18
  299. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.mjs +0 -25
  300. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.mjs +0 -22
  301. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.mjs +0 -64
  302. package/dist/node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs +0 -45
  303. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/acyclic.mjs +0 -55
  304. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/add-border-segments.mjs +0 -33
  305. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/coordinate-system.mjs +0 -66
  306. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/data/list.mjs +0 -49
  307. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/greedy-fas.mjs +0 -97
  308. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/layout.mjs +0 -344
  309. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/nesting-graph.mjs +0 -94
  310. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/normalize.mjs +0 -69
  311. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.mjs +0 -25
  312. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/barycenter.mjs +0 -29
  313. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.mjs +0 -33
  314. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/cross-count.mjs +0 -54
  315. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/index.mjs +0 -51
  316. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/init-order.mjs +0 -30
  317. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.mjs +0 -84
  318. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.mjs +0 -66
  319. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort.mjs +0 -47
  320. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.mjs +0 -66
  321. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/bk.mjs +0 -296
  322. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/index.mjs +0 -29
  323. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.mjs +0 -45
  324. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/index.mjs +0 -29
  325. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.mjs +0 -148
  326. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/util.mjs +0 -30
  327. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/util.mjs +0 -164
  328. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dfs.mjs +0 -33
  329. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.mjs +0 -2
  330. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.mjs +0 -2
  331. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/postorder.mjs +0 -7
  332. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/preorder.mjs +0 -7
  333. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/topsort.mjs +0 -7
  334. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/graph.mjs +0 -420
  335. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/json.mjs +0 -47
  336. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs +0 -286
  337. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/advancedFormat.mjs +0 -58
  338. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.mjs +0 -133
  339. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isoWeek.mjs +0 -37
  340. package/dist/node_modules/.pnpm/dompurify@3.2.4/node_modules/dompurify/dist/purify.es.mjs +0 -965
  341. package/dist/node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.mjs +0 -43
  342. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/index.mjs +0 -131
  343. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/reusable.mjs +0 -5
  344. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/type.mjs +0 -24
  345. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hex.mjs +0 -40
  346. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hsl.mjs +0 -50
  347. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/index.mjs +0 -39
  348. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/keyword.mjs +0 -172
  349. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/rgb.mjs +0 -33
  350. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/constants.mjs +0 -13
  351. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust.mjs +0 -15
  352. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust_channel.mjs +0 -13
  353. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/change.mjs +0 -12
  354. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/channel.mjs +0 -8
  355. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/darken.mjs +0 -7
  356. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/invert.mjs +0 -12
  357. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_dark.mjs +0 -7
  358. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_light.mjs +0 -7
  359. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/lighten.mjs +0 -7
  360. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/luminance.mjs +0 -10
  361. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/mix.mjs +0 -20
  362. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/rgba.mjs +0 -18
  363. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.mjs +0 -95
  364. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/index.mjs +0 -11
  365. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/lang.mjs +0 -14
  366. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/unit.mjs +0 -10
  367. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/default-module.mjs +0 -87
  368. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/dependency-injection.mjs +0 -74
  369. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/comment-provider.mjs +0 -17
  370. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/documentation-provider.mjs +0 -62
  371. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/jsdoc.mjs +0 -478
  372. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/generated/ast.mjs +0 -725
  373. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/grammar-config.mjs +0 -20
  374. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/async-parser.mjs +0 -11
  375. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/completion-parser-builder.mjs +0 -13
  376. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/cst-node-builder.mjs +0 -233
  377. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser-builder.mjs +0 -17
  378. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser.mjs +0 -453
  379. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/lexer.mjs +0 -72
  380. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/parser-builder-base.mjs +0 -336
  381. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/token-builder.mjs +0 -105
  382. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/value-converter.mjs +0 -111
  383. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/linker.mjs +0 -139
  384. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/name-provider.mjs +0 -19
  385. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/references.mjs +0 -80
  386. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-computation.mjs +0 -70
  387. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-provider.mjs +0 -62
  388. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope.mjs +0 -60
  389. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/hydrator.mjs +0 -256
  390. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/json-serializer.mjs +0 -202
  391. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/service-registry.mjs +0 -69
  392. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/syntax-tree.mjs +0 -73
  393. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/ast-utils.mjs +0 -159
  394. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/caching.mjs +0 -137
  395. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/collections.mjs +0 -177
  396. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/cst-utils.mjs +0 -126
  397. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/disposable.mjs +0 -12
  398. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/errors.mjs +0 -12
  399. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-loader.mjs +0 -33
  400. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-utils.mjs +0 -377
  401. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/promise-utils.mjs +0 -56
  402. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/regexp-utils.mjs +0 -239
  403. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/stream.mjs +0 -466
  404. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/uri-utils.mjs +0 -37
  405. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/document-validator.mjs +0 -236
  406. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/validation-registry.mjs +0 -142
  407. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-descriptions.mjs +0 -75
  408. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-node-locator.mjs +0 -43
  409. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/configuration.mjs +0 -81
  410. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/document-builder.mjs +0 -328
  411. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/documents.mjs +0 -210
  412. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/file-system-provider.mjs +0 -15
  413. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/index-manager.mjs +0 -74
  414. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-lock.mjs +0 -64
  415. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-manager.mjs +0 -106
  416. package/dist/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.mjs +0 -3197
  417. package/dist/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.mjs +0 -3745
  418. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +0 -6
  419. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +0 -21
  420. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +0 -21
  421. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +0 -6
  422. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +0 -21
  423. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +0 -6
  424. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +0 -6
  425. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.mjs +0 -15
  426. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +0 -18
  427. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +0 -5
  428. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +0 -5
  429. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +0 -6
  430. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs +0 -16
  431. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +0 -12
  432. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +0 -13
  433. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.mjs +0 -8
  434. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +0 -24
  435. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs +0 -10
  436. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +0 -10
  437. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.mjs +0 -13
  438. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.mjs +0 -12
  439. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +0 -10
  440. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs +0 -13
  441. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +0 -13
  442. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.mjs +0 -8
  443. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs +0 -16
  444. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +0 -83
  445. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs +0 -21
  446. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.mjs +0 -6
  447. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseExtremum.mjs +0 -14
  448. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFilter.mjs +0 -13
  449. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.mjs +0 -12
  450. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFlatten.mjs +0 -21
  451. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs +0 -5
  452. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.mjs +0 -8
  453. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs +0 -13
  454. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +0 -9
  455. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +0 -14
  456. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.mjs +0 -6
  457. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.mjs +0 -9
  458. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +0 -9
  459. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.mjs +0 -14
  460. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.mjs +0 -45
  461. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +0 -9
  462. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.mjs +0 -35
  463. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.mjs +0 -6
  464. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +0 -22
  465. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +0 -9
  466. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +0 -14
  467. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.mjs +0 -20
  468. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +0 -19
  469. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs +0 -20
  470. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseLt.mjs +0 -6
  471. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMap.mjs +0 -12
  472. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.mjs +0 -15
  473. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.mjs +0 -20
  474. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +0 -27
  475. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +0 -61
  476. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.mjs +0 -8
  477. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.mjs +0 -9
  478. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseReduce.mjs +0 -9
  479. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs +0 -9
  480. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs +0 -14
  481. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +0 -10
  482. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs +0 -21
  483. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +0 -8
  484. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.mjs +0 -46
  485. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.mjs +0 -6
  486. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castFunction.mjs +0 -7
  487. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs +0 -13
  488. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs +0 -9
  489. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +0 -16
  490. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +0 -7
  491. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +0 -9
  492. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +0 -8
  493. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +0 -8
  494. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs +0 -11
  495. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs +0 -23
  496. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.mjs +0 -8
  497. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +0 -5
  498. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs +0 -23
  499. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.mjs +0 -21
  500. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs +0 -15
  501. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.mjs +0 -10
  502. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs +0 -12
  503. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.mjs +0 -50
  504. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.mjs +0 -59
  505. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.mjs +0 -50
  506. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +0 -4
  507. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +0 -9
  508. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +0 -8
  509. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.mjs +0 -13
  510. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +0 -9
  511. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs +0 -5
  512. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +0 -25
  513. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +0 -17
  514. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +0 -34
  515. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +0 -6
  516. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.mjs +0 -25
  517. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +0 -8
  518. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +0 -8
  519. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +0 -15
  520. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +0 -10
  521. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +0 -11
  522. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +0 -13
  523. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +0 -43
  524. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs +0 -9
  525. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isFlattenable.mjs +0 -10
  526. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +0 -10
  527. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs +0 -17
  528. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs +0 -16
  529. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +0 -7
  530. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +0 -11
  531. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +0 -8
  532. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.mjs +0 -7
  533. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +0 -7
  534. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +0 -20
  535. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +0 -8
  536. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +0 -7
  537. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +0 -14
  538. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +0 -14
  539. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +0 -9
  540. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +0 -7
  541. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +0 -7
  542. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +0 -10
  543. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.mjs +0 -10
  544. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.mjs +0 -11
  545. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs +0 -15
  546. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +0 -5
  547. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +0 -5
  548. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs +0 -12
  549. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +0 -18
  550. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +0 -8
  551. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +0 -8
  552. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs +0 -21
  553. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +0 -6
  554. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +0 -12
  555. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.mjs +0 -8
  556. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.mjs +0 -6
  557. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.mjs +0 -10
  558. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs +0 -6
  559. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs +0 -20
  560. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +0 -8
  561. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +0 -8
  562. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +0 -6
  563. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +0 -6
  564. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +0 -22
  565. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.mjs +0 -12
  566. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs +0 -16
  567. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs +0 -11
  568. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +0 -18
  569. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/clone.mjs +0 -8
  570. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs +0 -8
  571. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +0 -6
  572. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/filter.mjs +0 -11
  573. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatMap.mjs +0 -8
  574. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatten.mjs +0 -8
  575. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forEach.mjs +0 -11
  576. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs +0 -8
  577. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.mjs +0 -8
  578. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs +0 -6
  579. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +0 -13
  580. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +0 -4
  581. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +0 -8
  582. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs +0 -8
  583. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +0 -11
  584. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEmpty.mjs +0 -35
  585. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +0 -13
  586. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +0 -7
  587. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +0 -8
  588. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +0 -7
  589. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +0 -6
  590. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +0 -22
  591. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +0 -8
  592. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs +0 -9
  593. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +0 -8
  594. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +0 -9
  595. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs +0 -9
  596. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.mjs +0 -11
  597. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs +0 -22
  598. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +0 -8
  599. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/min.mjs +0 -9
  600. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.mjs +0 -5
  601. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.mjs +0 -10
  602. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/reduce.mjs +0 -12
  603. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +0 -6
  604. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +0 -6
  605. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +0 -8
  606. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs +0 -7
  607. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqBy.mjs +0 -8
  608. package/dist/node_modules/.pnpm/marked@15.0.7/node_modules/marked/lib/marked.esm.mjs +0 -2152
  609. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-IEHRJDOE.mjs +0 -1093
  610. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-JOT3LUYC.mjs +0 -3598
  611. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-VJAJSXHY.mjs +0 -2487
  612. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BMEZGHF.mjs +0 -17
  613. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5NNNAHNI.mjs +0 -143
  614. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6JRP7KZX.mjs +0 -2696
  615. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7B677QYD.mjs +0 -19
  616. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-A2AXSNBT.mjs +0 -1828
  617. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AEK57VVT.mjs +0 -1961
  618. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-C3MQ5ANM.mjs +0 -332
  619. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-D6G4REZN.mjs +0 -109
  620. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-H2D2JQ3I.mjs +0 -78
  621. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HRU6DDCH.mjs +0 -5018
  622. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-IIMUDSI4.mjs +0 -696
  623. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-K557N5IZ.mjs +0 -17
  624. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4NI6UNU.mjs +0 -557
  625. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RZ5BOZE2.mjs +0 -38
  626. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TYCBKAJE.mjs +0 -57
  627. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VV3M67IP.mjs +0 -107
  628. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XZIHB7SX.mjs +0 -17
  629. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YTJNT7DU.mjs +0 -3052
  630. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-GIVACNV2.mjs +0 -27
  631. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-COTLJTTW.mjs +0 -27
  632. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/dagre-OKDRZEBW.mjs +0 -662
  633. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-SSKATNLV.mjs +0 -306
  634. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-VNBRO52H.mjs +0 -191
  635. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q7BY3M3F.mjs +0 -1168
  636. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-4HSFHLVR.mjs +0 -2339
  637. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-APWFNJXF.mjs +0 -2104
  638. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-7IBYFJ6S.mjs +0 -1215
  639. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-PH2N3AL5.mjs +0 -31
  640. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-U35MCT3I.mjs +0 -1201
  641. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-NDS4AKOZ.mjs +0 -1055
  642. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-ALO5MXBD.mjs +0 -1195
  643. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-IB7DONF6.mjs +0 -188
  644. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-7GDLP6J5.mjs +0 -1340
  645. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-KVF5MWMF.mjs +0 -1168
  646. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-QLVOVGJD.mjs +0 -670
  647. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-X6HHIX6F.mjs +0 -3419
  648. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-DGXRK772.mjs +0 -477
  649. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-YXO3MK2T.mjs +0 -27
  650. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-BDJGKUSR.mjs +0 -1232
  651. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-VJFVF3MP.mjs +0 -1778
  652. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/mermaid.core.mjs +0 -1222
  653. package/dist/node_modules/.pnpm/roughjs@4.6.6/node_modules/roughjs/bundled/rough.esm.mjs +0 -1001
  654. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.mjs +0 -16
  655. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.mjs +0 -164
  656. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.mjs +0 -29
  657. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.mjs +0 -156
  658. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.mjs +0 -38
  659. package/dist/node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.mjs +0 -42
  660. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.mjs +0 -95
  661. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.mjs +0 -133
  662. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.mjs +0 -40
  663. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.mjs +0 -28
  664. package/dist/node_modules/.pnpm/vscode-languageserver-textdocument@1.0.12/node_modules/vscode-languageserver-textdocument/lib/esm/main.mjs +0 -225
  665. package/dist/node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.mjs +0 -1262
  666. package/dist/node_modules/.pnpm/vscode-uri@3.0.8/node_modules/vscode-uri/lib/esm/index.mjs +0 -344
@@ -1,3598 +0,0 @@
1
- var _a, _b;
2
- import { getLineFunctionsWithOffset } from "./chunk-VV3M67IP.mjs";
3
- import { getSubGraphTitleMargins } from "./chunk-K557N5IZ.mjs";
4
- import { createText, replaceIconSubstring } from "./chunk-C3MQ5ANM.mjs";
5
- import { utils_default, decodeEntities, getStylesFromArray } from "./chunk-O4NI6UNU.mjs";
6
- import { __name, getConfig, configureSvgSize, log, clear, getConfig2, evaluate, common_default, sanitizeText } from "./chunk-YTJNT7DU.mjs";
7
- import clone from "../../../../../../lodash-es@4.17.21/node_modules/lodash-es/clone.mjs";
8
- import "../../../../../../d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs";
9
- import "../../../../../../d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs";
10
- import { Graph } from "../../../../../../dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/graph.mjs";
11
- import channel from "../../../../../../khroma@2.1.0/node_modules/khroma/dist/methods/channel.mjs";
12
- import rgba from "../../../../../../khroma@2.1.0/node_modules/khroma/dist/methods/rgba.mjs";
13
- import select from "../../../../../../d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs";
14
- import line from "../../../../../../d3-shape@3.2.0/node_modules/d3-shape/src/line.mjs";
15
- import curveBasis from "../../../../../../d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.mjs";
16
- var parser = function() {
17
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
18
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
19
- return o2;
20
- }, "o"), $V0 = [1, 7], $V1 = [1, 13], $V2 = [1, 14], $V3 = [1, 15], $V4 = [1, 19], $V5 = [1, 16], $V6 = [1, 17], $V7 = [1, 18], $V8 = [8, 30], $V9 = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], $Va = [1, 23], $Vb = [1, 24], $Vc = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], $Vd = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], $Ve = [1, 49];
21
- var parser2 = {
22
- trace: /* @__PURE__ */ __name(function trace() {
23
- }, "trace"),
24
- yy: {},
25
- symbols_: { "error": 2, "spaceLines": 3, "SPACELINE": 4, "NL": 5, "separator": 6, "SPACE": 7, "EOF": 8, "start": 9, "BLOCK_DIAGRAM_KEY": 10, "document": 11, "stop": 12, "statement": 13, "link": 14, "LINK": 15, "START_LINK": 16, "LINK_LABEL": 17, "STR": 18, "nodeStatement": 19, "columnsStatement": 20, "SPACE_BLOCK": 21, "blockStatement": 22, "classDefStatement": 23, "cssClassStatement": 24, "styleStatement": 25, "node": 26, "SIZE": 27, "COLUMNS": 28, "id-block": 29, "end": 30, "block": 31, "NODE_ID": 32, "nodeShapeNLabel": 33, "dirList": 34, "DIR": 35, "NODE_DSTART": 36, "NODE_DEND": 37, "BLOCK_ARROW_START": 38, "BLOCK_ARROW_END": 39, "classDef": 40, "CLASSDEF_ID": 41, "CLASSDEF_STYLEOPTS": 42, "DEFAULT": 43, "class": 44, "CLASSENTITY_IDS": 45, "STYLECLASS": 46, "style": 47, "STYLE_ENTITY_IDS": 48, "STYLE_DEFINITION_DATA": 49, "$accept": 0, "$end": 1 },
26
- terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "block", 32: "NODE_ID", 35: "DIR", 36: "NODE_DSTART", 37: "NODE_DEND", 38: "BLOCK_ARROW_START", 39: "BLOCK_ARROW_END", 40: "classDef", 41: "CLASSDEF_ID", 42: "CLASSDEF_STYLEOPTS", 43: "DEFAULT", 44: "class", 45: "CLASSENTITY_IDS", 46: "STYLECLASS", 47: "style", 48: "STYLE_ENTITY_IDS", 49: "STYLE_DEFINITION_DATA" },
27
- productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [34, 1], [34, 2], [33, 3], [33, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
28
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
29
- var $0 = $$.length - 1;
30
- switch (yystate) {
31
- case 4:
32
- yy.getLogger().debug("Rule: separator (NL) ");
33
- break;
34
- case 5:
35
- yy.getLogger().debug("Rule: separator (Space) ");
36
- break;
37
- case 6:
38
- yy.getLogger().debug("Rule: separator (EOF) ");
39
- break;
40
- case 7:
41
- yy.getLogger().debug("Rule: hierarchy: ", $$[$0 - 1]);
42
- yy.setHierarchy($$[$0 - 1]);
43
- break;
44
- case 8:
45
- yy.getLogger().debug("Stop NL ");
46
- break;
47
- case 9:
48
- yy.getLogger().debug("Stop EOF ");
49
- break;
50
- case 10:
51
- yy.getLogger().debug("Stop NL2 ");
52
- break;
53
- case 11:
54
- yy.getLogger().debug("Stop EOF2 ");
55
- break;
56
- case 12:
57
- yy.getLogger().debug("Rule: statement: ", $$[$0]);
58
- typeof $$[$0].length === "number" ? this.$ = $$[$0] : this.$ = [$$[$0]];
59
- break;
60
- case 13:
61
- yy.getLogger().debug("Rule: statement #2: ", $$[$0 - 1]);
62
- this.$ = [$$[$0 - 1]].concat($$[$0]);
63
- break;
64
- case 14:
65
- yy.getLogger().debug("Rule: link: ", $$[$0], yytext);
66
- this.$ = { edgeTypeStr: $$[$0], label: "" };
67
- break;
68
- case 15:
69
- yy.getLogger().debug("Rule: LABEL link: ", $$[$0 - 3], $$[$0 - 1], $$[$0]);
70
- this.$ = { edgeTypeStr: $$[$0], label: $$[$0 - 1] };
71
- break;
72
- case 18:
73
- const num = parseInt($$[$0]);
74
- const spaceId = yy.generateId();
75
- this.$ = { id: spaceId, type: "space", label: "", width: num, children: [] };
76
- break;
77
- case 23:
78
- yy.getLogger().debug("Rule: (nodeStatement link node) ", $$[$0 - 2], $$[$0 - 1], $$[$0], " typestr: ", $$[$0 - 1].edgeTypeStr);
79
- const edgeData = yy.edgeStrToEdgeData($$[$0 - 1].edgeTypeStr);
80
- this.$ = [
81
- { id: $$[$0 - 2].id, label: $$[$0 - 2].label, type: $$[$0 - 2].type, directions: $$[$0 - 2].directions },
82
- { id: $$[$0 - 2].id + "-" + $$[$0].id, start: $$[$0 - 2].id, end: $$[$0].id, label: $$[$0 - 1].label, type: "edge", directions: $$[$0].directions, arrowTypeEnd: edgeData, arrowTypeStart: "arrow_open" },
83
- { id: $$[$0].id, label: $$[$0].label, type: yy.typeStr2Type($$[$0].typeStr), directions: $$[$0].directions }
84
- ];
85
- break;
86
- case 24:
87
- yy.getLogger().debug("Rule: nodeStatement (abc88 node size) ", $$[$0 - 1], $$[$0]);
88
- this.$ = { id: $$[$0 - 1].id, label: $$[$0 - 1].label, type: yy.typeStr2Type($$[$0 - 1].typeStr), directions: $$[$0 - 1].directions, widthInColumns: parseInt($$[$0], 10) };
89
- break;
90
- case 25:
91
- yy.getLogger().debug("Rule: nodeStatement (node) ", $$[$0]);
92
- this.$ = { id: $$[$0].id, label: $$[$0].label, type: yy.typeStr2Type($$[$0].typeStr), directions: $$[$0].directions, widthInColumns: 1 };
93
- break;
94
- case 26:
95
- yy.getLogger().debug("APA123", this ? this : "na");
96
- yy.getLogger().debug("COLUMNS: ", $$[$0]);
97
- this.$ = { type: "column-setting", columns: $$[$0] === "auto" ? -1 : parseInt($$[$0]) };
98
- break;
99
- case 27:
100
- yy.getLogger().debug("Rule: id-block statement : ", $$[$0 - 2], $$[$0 - 1]);
101
- yy.generateId();
102
- this.$ = { ...$$[$0 - 2], type: "composite", children: $$[$0 - 1] };
103
- break;
104
- case 28:
105
- yy.getLogger().debug("Rule: blockStatement : ", $$[$0 - 2], $$[$0 - 1], $$[$0]);
106
- const id = yy.generateId();
107
- this.$ = { id, type: "composite", label: "", children: $$[$0 - 1] };
108
- break;
109
- case 29:
110
- yy.getLogger().debug("Rule: node (NODE_ID separator): ", $$[$0]);
111
- this.$ = { id: $$[$0] };
112
- break;
113
- case 30:
114
- yy.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", $$[$0 - 1], $$[$0]);
115
- this.$ = { id: $$[$0 - 1], label: $$[$0].label, typeStr: $$[$0].typeStr, directions: $$[$0].directions };
116
- break;
117
- case 31:
118
- yy.getLogger().debug("Rule: dirList: ", $$[$0]);
119
- this.$ = [$$[$0]];
120
- break;
121
- case 32:
122
- yy.getLogger().debug("Rule: dirList: ", $$[$0 - 1], $$[$0]);
123
- this.$ = [$$[$0 - 1]].concat($$[$0]);
124
- break;
125
- case 33:
126
- yy.getLogger().debug("Rule: nodeShapeNLabel: ", $$[$0 - 2], $$[$0 - 1], $$[$0]);
127
- this.$ = { typeStr: $$[$0 - 2] + $$[$0], label: $$[$0 - 1] };
128
- break;
129
- case 34:
130
- yy.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", $$[$0 - 3], $$[$0 - 2], " #3:", $$[$0 - 1], $$[$0]);
131
- this.$ = { typeStr: $$[$0 - 3] + $$[$0], label: $$[$0 - 2], directions: $$[$0 - 1] };
132
- break;
133
- case 35:
134
- case 36:
135
- this.$ = { type: "classDef", id: $$[$0 - 1].trim(), css: $$[$0].trim() };
136
- break;
137
- case 37:
138
- this.$ = { type: "applyClass", id: $$[$0 - 1].trim(), styleClass: $$[$0].trim() };
139
- break;
140
- case 38:
141
- this.$ = { type: "applyStyles", id: $$[$0 - 1].trim(), stylesStr: $$[$0].trim() };
142
- break;
143
- }
144
- }, "anonymous"),
145
- table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 8: [1, 20] }, o($V8, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: $V0, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }), o($V9, [2, 16], { 14: 22, 15: $Va, 16: $Vb }), o($V9, [2, 17]), o($V9, [2, 18]), o($V9, [2, 19]), o($V9, [2, 20]), o($V9, [2, 21]), o($V9, [2, 22]), o($Vc, [2, 25], { 27: [1, 25] }), o($V9, [2, 26]), { 19: 26, 26: 12, 32: $V4 }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, o($Vd, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, o($V8, [2, 13]), { 26: 35, 32: $V4 }, { 32: [2, 14] }, { 17: [1, 36] }, o($Vc, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: $Va, 16: $Vb, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, o($Vd, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, o($Vc, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, o($V9, [2, 28]), o($V9, [2, 35]), o($V9, [2, 36]), o($V9, [2, 37]), o($V9, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: $Ve }, { 15: [1, 50] }, o($V9, [2, 27]), o($Vd, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: $Ve, 39: [2, 31] }, { 32: [2, 15] }, o($Vd, [2, 34]), { 39: [2, 32] }],
146
- defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
147
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
148
- if (hash.recoverable) {
149
- this.trace(str);
150
- } else {
151
- var error = new Error(str);
152
- error.hash = hash;
153
- throw error;
154
- }
155
- }, "parseError"),
156
- parse: /* @__PURE__ */ __name(function parse(input) {
157
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
158
- var args = lstack.slice.call(arguments, 1);
159
- var lexer2 = Object.create(this.lexer);
160
- var sharedState = { yy: {} };
161
- for (var k in this.yy) {
162
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
163
- sharedState.yy[k] = this.yy[k];
164
- }
165
- }
166
- lexer2.setInput(input, sharedState.yy);
167
- sharedState.yy.lexer = lexer2;
168
- sharedState.yy.parser = this;
169
- if (typeof lexer2.yylloc == "undefined") {
170
- lexer2.yylloc = {};
171
- }
172
- var yyloc = lexer2.yylloc;
173
- lstack.push(yyloc);
174
- var ranges = lexer2.options && lexer2.options.ranges;
175
- if (typeof sharedState.yy.parseError === "function") {
176
- this.parseError = sharedState.yy.parseError;
177
- } else {
178
- this.parseError = Object.getPrototypeOf(this).parseError;
179
- }
180
- function popStack(n) {
181
- stack.length = stack.length - 2 * n;
182
- vstack.length = vstack.length - n;
183
- lstack.length = lstack.length - n;
184
- }
185
- __name(popStack, "popStack");
186
- function lex() {
187
- var token;
188
- token = tstack.pop() || lexer2.lex() || EOF;
189
- if (typeof token !== "number") {
190
- if (token instanceof Array) {
191
- tstack = token;
192
- token = tstack.pop();
193
- }
194
- token = self.symbols_[token] || token;
195
- }
196
- return token;
197
- }
198
- __name(lex, "lex");
199
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
200
- while (true) {
201
- state = stack[stack.length - 1];
202
- if (this.defaultActions[state]) {
203
- action = this.defaultActions[state];
204
- } else {
205
- if (symbol === null || typeof symbol == "undefined") {
206
- symbol = lex();
207
- }
208
- action = table[state] && table[state][symbol];
209
- }
210
- if (typeof action === "undefined" || !action.length || !action[0]) {
211
- var errStr = "";
212
- expected = [];
213
- for (p in table[state]) {
214
- if (this.terminals_[p] && p > TERROR) {
215
- expected.push("'" + this.terminals_[p] + "'");
216
- }
217
- }
218
- if (lexer2.showPosition) {
219
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
220
- } else {
221
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
222
- }
223
- this.parseError(errStr, {
224
- text: lexer2.match,
225
- token: this.terminals_[symbol] || symbol,
226
- line: lexer2.yylineno,
227
- loc: yyloc,
228
- expected
229
- });
230
- }
231
- if (action[0] instanceof Array && action.length > 1) {
232
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
233
- }
234
- switch (action[0]) {
235
- case 1:
236
- stack.push(symbol);
237
- vstack.push(lexer2.yytext);
238
- lstack.push(lexer2.yylloc);
239
- stack.push(action[1]);
240
- symbol = null;
241
- {
242
- yyleng = lexer2.yyleng;
243
- yytext = lexer2.yytext;
244
- yylineno = lexer2.yylineno;
245
- yyloc = lexer2.yylloc;
246
- }
247
- break;
248
- case 2:
249
- len = this.productions_[action[1]][1];
250
- yyval.$ = vstack[vstack.length - len];
251
- yyval._$ = {
252
- first_line: lstack[lstack.length - (len || 1)].first_line,
253
- last_line: lstack[lstack.length - 1].last_line,
254
- first_column: lstack[lstack.length - (len || 1)].first_column,
255
- last_column: lstack[lstack.length - 1].last_column
256
- };
257
- if (ranges) {
258
- yyval._$.range = [
259
- lstack[lstack.length - (len || 1)].range[0],
260
- lstack[lstack.length - 1].range[1]
261
- ];
262
- }
263
- r = this.performAction.apply(yyval, [
264
- yytext,
265
- yyleng,
266
- yylineno,
267
- sharedState.yy,
268
- action[1],
269
- vstack,
270
- lstack
271
- ].concat(args));
272
- if (typeof r !== "undefined") {
273
- return r;
274
- }
275
- if (len) {
276
- stack = stack.slice(0, -1 * len * 2);
277
- vstack = vstack.slice(0, -1 * len);
278
- lstack = lstack.slice(0, -1 * len);
279
- }
280
- stack.push(this.productions_[action[1]][0]);
281
- vstack.push(yyval.$);
282
- lstack.push(yyval._$);
283
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
284
- stack.push(newState);
285
- break;
286
- case 3:
287
- return true;
288
- }
289
- }
290
- return true;
291
- }, "parse")
292
- };
293
- var lexer = /* @__PURE__ */ function() {
294
- var lexer2 = {
295
- EOF: 1,
296
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
297
- if (this.yy.parser) {
298
- this.yy.parser.parseError(str, hash);
299
- } else {
300
- throw new Error(str);
301
- }
302
- }, "parseError"),
303
- // resets the lexer, sets new input
304
- setInput: /* @__PURE__ */ __name(function(input, yy) {
305
- this.yy = yy || this.yy || {};
306
- this._input = input;
307
- this._more = this._backtrack = this.done = false;
308
- this.yylineno = this.yyleng = 0;
309
- this.yytext = this.matched = this.match = "";
310
- this.conditionStack = ["INITIAL"];
311
- this.yylloc = {
312
- first_line: 1,
313
- first_column: 0,
314
- last_line: 1,
315
- last_column: 0
316
- };
317
- if (this.options.ranges) {
318
- this.yylloc.range = [0, 0];
319
- }
320
- this.offset = 0;
321
- return this;
322
- }, "setInput"),
323
- // consumes and returns one char from the input
324
- input: /* @__PURE__ */ __name(function() {
325
- var ch = this._input[0];
326
- this.yytext += ch;
327
- this.yyleng++;
328
- this.offset++;
329
- this.match += ch;
330
- this.matched += ch;
331
- var lines = ch.match(/(?:\r\n?|\n).*/g);
332
- if (lines) {
333
- this.yylineno++;
334
- this.yylloc.last_line++;
335
- } else {
336
- this.yylloc.last_column++;
337
- }
338
- if (this.options.ranges) {
339
- this.yylloc.range[1]++;
340
- }
341
- this._input = this._input.slice(1);
342
- return ch;
343
- }, "input"),
344
- // unshifts one char (or a string) into the input
345
- unput: /* @__PURE__ */ __name(function(ch) {
346
- var len = ch.length;
347
- var lines = ch.split(/(?:\r\n?|\n)/g);
348
- this._input = ch + this._input;
349
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
350
- this.offset -= len;
351
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
352
- this.match = this.match.substr(0, this.match.length - 1);
353
- this.matched = this.matched.substr(0, this.matched.length - 1);
354
- if (lines.length - 1) {
355
- this.yylineno -= lines.length - 1;
356
- }
357
- var r = this.yylloc.range;
358
- this.yylloc = {
359
- first_line: this.yylloc.first_line,
360
- last_line: this.yylineno + 1,
361
- first_column: this.yylloc.first_column,
362
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
363
- };
364
- if (this.options.ranges) {
365
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
366
- }
367
- this.yyleng = this.yytext.length;
368
- return this;
369
- }, "unput"),
370
- // When called from action, caches matched text and appends it on next action
371
- more: /* @__PURE__ */ __name(function() {
372
- this._more = true;
373
- return this;
374
- }, "more"),
375
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
376
- reject: /* @__PURE__ */ __name(function() {
377
- if (this.options.backtrack_lexer) {
378
- this._backtrack = true;
379
- } else {
380
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
381
- text: "",
382
- token: null,
383
- line: this.yylineno
384
- });
385
- }
386
- return this;
387
- }, "reject"),
388
- // retain first n characters of the match
389
- less: /* @__PURE__ */ __name(function(n) {
390
- this.unput(this.match.slice(n));
391
- }, "less"),
392
- // displays already matched input, i.e. for error messages
393
- pastInput: /* @__PURE__ */ __name(function() {
394
- var past = this.matched.substr(0, this.matched.length - this.match.length);
395
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
396
- }, "pastInput"),
397
- // displays upcoming input, i.e. for error messages
398
- upcomingInput: /* @__PURE__ */ __name(function() {
399
- var next = this.match;
400
- if (next.length < 20) {
401
- next += this._input.substr(0, 20 - next.length);
402
- }
403
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
404
- }, "upcomingInput"),
405
- // displays the character position where the lexing error occurred, i.e. for error messages
406
- showPosition: /* @__PURE__ */ __name(function() {
407
- var pre = this.pastInput();
408
- var c = new Array(pre.length + 1).join("-");
409
- return pre + this.upcomingInput() + "\n" + c + "^";
410
- }, "showPosition"),
411
- // test the lexed token: return FALSE when not a match, otherwise return token
412
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
413
- var token, lines, backup;
414
- if (this.options.backtrack_lexer) {
415
- backup = {
416
- yylineno: this.yylineno,
417
- yylloc: {
418
- first_line: this.yylloc.first_line,
419
- last_line: this.last_line,
420
- first_column: this.yylloc.first_column,
421
- last_column: this.yylloc.last_column
422
- },
423
- yytext: this.yytext,
424
- match: this.match,
425
- matches: this.matches,
426
- matched: this.matched,
427
- yyleng: this.yyleng,
428
- offset: this.offset,
429
- _more: this._more,
430
- _input: this._input,
431
- yy: this.yy,
432
- conditionStack: this.conditionStack.slice(0),
433
- done: this.done
434
- };
435
- if (this.options.ranges) {
436
- backup.yylloc.range = this.yylloc.range.slice(0);
437
- }
438
- }
439
- lines = match[0].match(/(?:\r\n?|\n).*/g);
440
- if (lines) {
441
- this.yylineno += lines.length;
442
- }
443
- this.yylloc = {
444
- first_line: this.yylloc.last_line,
445
- last_line: this.yylineno + 1,
446
- first_column: this.yylloc.last_column,
447
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
448
- };
449
- this.yytext += match[0];
450
- this.match += match[0];
451
- this.matches = match;
452
- this.yyleng = this.yytext.length;
453
- if (this.options.ranges) {
454
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
455
- }
456
- this._more = false;
457
- this._backtrack = false;
458
- this._input = this._input.slice(match[0].length);
459
- this.matched += match[0];
460
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
461
- if (this.done && this._input) {
462
- this.done = false;
463
- }
464
- if (token) {
465
- return token;
466
- } else if (this._backtrack) {
467
- for (var k in backup) {
468
- this[k] = backup[k];
469
- }
470
- return false;
471
- }
472
- return false;
473
- }, "test_match"),
474
- // return next match in input
475
- next: /* @__PURE__ */ __name(function() {
476
- if (this.done) {
477
- return this.EOF;
478
- }
479
- if (!this._input) {
480
- this.done = true;
481
- }
482
- var token, match, tempMatch, index;
483
- if (!this._more) {
484
- this.yytext = "";
485
- this.match = "";
486
- }
487
- var rules = this._currentRules();
488
- for (var i = 0; i < rules.length; i++) {
489
- tempMatch = this._input.match(this.rules[rules[i]]);
490
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
491
- match = tempMatch;
492
- index = i;
493
- if (this.options.backtrack_lexer) {
494
- token = this.test_match(tempMatch, rules[i]);
495
- if (token !== false) {
496
- return token;
497
- } else if (this._backtrack) {
498
- match = false;
499
- continue;
500
- } else {
501
- return false;
502
- }
503
- } else if (!this.options.flex) {
504
- break;
505
- }
506
- }
507
- }
508
- if (match) {
509
- token = this.test_match(match, rules[index]);
510
- if (token !== false) {
511
- return token;
512
- }
513
- return false;
514
- }
515
- if (this._input === "") {
516
- return this.EOF;
517
- } else {
518
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
519
- text: "",
520
- token: null,
521
- line: this.yylineno
522
- });
523
- }
524
- }, "next"),
525
- // return next match that has a token
526
- lex: /* @__PURE__ */ __name(function lex() {
527
- var r = this.next();
528
- if (r) {
529
- return r;
530
- } else {
531
- return this.lex();
532
- }
533
- }, "lex"),
534
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
535
- begin: /* @__PURE__ */ __name(function begin(condition) {
536
- this.conditionStack.push(condition);
537
- }, "begin"),
538
- // pop the previously active lexer condition state off the condition stack
539
- popState: /* @__PURE__ */ __name(function popState() {
540
- var n = this.conditionStack.length - 1;
541
- if (n > 0) {
542
- return this.conditionStack.pop();
543
- } else {
544
- return this.conditionStack[0];
545
- }
546
- }, "popState"),
547
- // produce the lexer rule set which is active for the currently active lexer condition state
548
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
549
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
550
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
551
- } else {
552
- return this.conditions["INITIAL"].rules;
553
- }
554
- }, "_currentRules"),
555
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
556
- topState: /* @__PURE__ */ __name(function topState(n) {
557
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
558
- if (n >= 0) {
559
- return this.conditionStack[n];
560
- } else {
561
- return "INITIAL";
562
- }
563
- }, "topState"),
564
- // alias for begin(condition)
565
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
566
- this.begin(condition);
567
- }, "pushState"),
568
- // return the number of states currently on the stack
569
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
570
- return this.conditionStack.length;
571
- }, "stateStackSize"),
572
- options: {},
573
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
574
- switch ($avoiding_name_collisions) {
575
- case 0:
576
- return 10;
577
- case 1:
578
- yy.getLogger().debug("Found space-block");
579
- return 31;
580
- case 2:
581
- yy.getLogger().debug("Found nl-block");
582
- return 31;
583
- case 3:
584
- yy.getLogger().debug("Found space-block");
585
- return 29;
586
- case 4:
587
- yy.getLogger().debug(".", yy_.yytext);
588
- break;
589
- case 5:
590
- yy.getLogger().debug("_", yy_.yytext);
591
- break;
592
- case 6:
593
- return 5;
594
- case 7:
595
- yy_.yytext = -1;
596
- return 28;
597
- case 8:
598
- yy_.yytext = yy_.yytext.replace(/columns\s+/, "");
599
- yy.getLogger().debug("COLUMNS (LEX)", yy_.yytext);
600
- return 28;
601
- case 9:
602
- this.pushState("md_string");
603
- break;
604
- case 10:
605
- return "MD_STR";
606
- case 11:
607
- this.popState();
608
- break;
609
- case 12:
610
- this.pushState("string");
611
- break;
612
- case 13:
613
- yy.getLogger().debug("LEX: POPPING STR:", yy_.yytext);
614
- this.popState();
615
- break;
616
- case 14:
617
- yy.getLogger().debug("LEX: STR end:", yy_.yytext);
618
- return "STR";
619
- case 15:
620
- yy_.yytext = yy_.yytext.replace(/space\:/, "");
621
- yy.getLogger().debug("SPACE NUM (LEX)", yy_.yytext);
622
- return 21;
623
- case 16:
624
- yy_.yytext = "1";
625
- yy.getLogger().debug("COLUMNS (LEX)", yy_.yytext);
626
- return 21;
627
- case 17:
628
- return 43;
629
- case 18:
630
- return "LINKSTYLE";
631
- case 19:
632
- return "INTERPOLATE";
633
- case 20:
634
- this.pushState("CLASSDEF");
635
- return 40;
636
- case 21:
637
- this.popState();
638
- this.pushState("CLASSDEFID");
639
- return "DEFAULT_CLASSDEF_ID";
640
- case 22:
641
- this.popState();
642
- this.pushState("CLASSDEFID");
643
- return 41;
644
- case 23:
645
- this.popState();
646
- return 42;
647
- case 24:
648
- this.pushState("CLASS");
649
- return 44;
650
- case 25:
651
- this.popState();
652
- this.pushState("CLASS_STYLE");
653
- return 45;
654
- case 26:
655
- this.popState();
656
- return 46;
657
- case 27:
658
- this.pushState("STYLE_STMNT");
659
- return 47;
660
- case 28:
661
- this.popState();
662
- this.pushState("STYLE_DEFINITION");
663
- return 48;
664
- case 29:
665
- this.popState();
666
- return 49;
667
- case 30:
668
- this.pushState("acc_title");
669
- return "acc_title";
670
- case 31:
671
- this.popState();
672
- return "acc_title_value";
673
- case 32:
674
- this.pushState("acc_descr");
675
- return "acc_descr";
676
- case 33:
677
- this.popState();
678
- return "acc_descr_value";
679
- case 34:
680
- this.pushState("acc_descr_multiline");
681
- break;
682
- case 35:
683
- this.popState();
684
- break;
685
- case 36:
686
- return "acc_descr_multiline_value";
687
- case 37:
688
- return 30;
689
- case 38:
690
- this.popState();
691
- yy.getLogger().debug("Lex: ((");
692
- return "NODE_DEND";
693
- case 39:
694
- this.popState();
695
- yy.getLogger().debug("Lex: ((");
696
- return "NODE_DEND";
697
- case 40:
698
- this.popState();
699
- yy.getLogger().debug("Lex: ))");
700
- return "NODE_DEND";
701
- case 41:
702
- this.popState();
703
- yy.getLogger().debug("Lex: ((");
704
- return "NODE_DEND";
705
- case 42:
706
- this.popState();
707
- yy.getLogger().debug("Lex: ((");
708
- return "NODE_DEND";
709
- case 43:
710
- this.popState();
711
- yy.getLogger().debug("Lex: (-");
712
- return "NODE_DEND";
713
- case 44:
714
- this.popState();
715
- yy.getLogger().debug("Lex: -)");
716
- return "NODE_DEND";
717
- case 45:
718
- this.popState();
719
- yy.getLogger().debug("Lex: ((");
720
- return "NODE_DEND";
721
- case 46:
722
- this.popState();
723
- yy.getLogger().debug("Lex: ]]");
724
- return "NODE_DEND";
725
- case 47:
726
- this.popState();
727
- yy.getLogger().debug("Lex: (");
728
- return "NODE_DEND";
729
- case 48:
730
- this.popState();
731
- yy.getLogger().debug("Lex: ])");
732
- return "NODE_DEND";
733
- case 49:
734
- this.popState();
735
- yy.getLogger().debug("Lex: /]");
736
- return "NODE_DEND";
737
- case 50:
738
- this.popState();
739
- yy.getLogger().debug("Lex: /]");
740
- return "NODE_DEND";
741
- case 51:
742
- this.popState();
743
- yy.getLogger().debug("Lex: )]");
744
- return "NODE_DEND";
745
- case 52:
746
- this.popState();
747
- yy.getLogger().debug("Lex: )");
748
- return "NODE_DEND";
749
- case 53:
750
- this.popState();
751
- yy.getLogger().debug("Lex: ]>");
752
- return "NODE_DEND";
753
- case 54:
754
- this.popState();
755
- yy.getLogger().debug("Lex: ]");
756
- return "NODE_DEND";
757
- case 55:
758
- yy.getLogger().debug("Lexa: -)");
759
- this.pushState("NODE");
760
- return 36;
761
- case 56:
762
- yy.getLogger().debug("Lexa: (-");
763
- this.pushState("NODE");
764
- return 36;
765
- case 57:
766
- yy.getLogger().debug("Lexa: ))");
767
- this.pushState("NODE");
768
- return 36;
769
- case 58:
770
- yy.getLogger().debug("Lexa: )");
771
- this.pushState("NODE");
772
- return 36;
773
- case 59:
774
- yy.getLogger().debug("Lex: (((");
775
- this.pushState("NODE");
776
- return 36;
777
- case 60:
778
- yy.getLogger().debug("Lexa: )");
779
- this.pushState("NODE");
780
- return 36;
781
- case 61:
782
- yy.getLogger().debug("Lexa: )");
783
- this.pushState("NODE");
784
- return 36;
785
- case 62:
786
- yy.getLogger().debug("Lexa: )");
787
- this.pushState("NODE");
788
- return 36;
789
- case 63:
790
- yy.getLogger().debug("Lexc: >");
791
- this.pushState("NODE");
792
- return 36;
793
- case 64:
794
- yy.getLogger().debug("Lexa: ([");
795
- this.pushState("NODE");
796
- return 36;
797
- case 65:
798
- yy.getLogger().debug("Lexa: )");
799
- this.pushState("NODE");
800
- return 36;
801
- case 66:
802
- this.pushState("NODE");
803
- return 36;
804
- case 67:
805
- this.pushState("NODE");
806
- return 36;
807
- case 68:
808
- this.pushState("NODE");
809
- return 36;
810
- case 69:
811
- this.pushState("NODE");
812
- return 36;
813
- case 70:
814
- this.pushState("NODE");
815
- return 36;
816
- case 71:
817
- this.pushState("NODE");
818
- return 36;
819
- case 72:
820
- this.pushState("NODE");
821
- return 36;
822
- case 73:
823
- yy.getLogger().debug("Lexa: [");
824
- this.pushState("NODE");
825
- return 36;
826
- case 74:
827
- this.pushState("BLOCK_ARROW");
828
- yy.getLogger().debug("LEX ARR START");
829
- return 38;
830
- case 75:
831
- yy.getLogger().debug("Lex: NODE_ID", yy_.yytext);
832
- return 32;
833
- case 76:
834
- yy.getLogger().debug("Lex: EOF", yy_.yytext);
835
- return 8;
836
- case 77:
837
- this.pushState("md_string");
838
- break;
839
- case 78:
840
- this.pushState("md_string");
841
- break;
842
- case 79:
843
- return "NODE_DESCR";
844
- case 80:
845
- this.popState();
846
- break;
847
- case 81:
848
- yy.getLogger().debug("Lex: Starting string");
849
- this.pushState("string");
850
- break;
851
- case 82:
852
- yy.getLogger().debug("LEX ARR: Starting string");
853
- this.pushState("string");
854
- break;
855
- case 83:
856
- yy.getLogger().debug("LEX: NODE_DESCR:", yy_.yytext);
857
- return "NODE_DESCR";
858
- case 84:
859
- yy.getLogger().debug("LEX POPPING");
860
- this.popState();
861
- break;
862
- case 85:
863
- yy.getLogger().debug("Lex: =>BAE");
864
- this.pushState("ARROW_DIR");
865
- break;
866
- case 86:
867
- yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
868
- yy.getLogger().debug("Lex (right): dir:", yy_.yytext);
869
- return "DIR";
870
- case 87:
871
- yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
872
- yy.getLogger().debug("Lex (left):", yy_.yytext);
873
- return "DIR";
874
- case 88:
875
- yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
876
- yy.getLogger().debug("Lex (x):", yy_.yytext);
877
- return "DIR";
878
- case 89:
879
- yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
880
- yy.getLogger().debug("Lex (y):", yy_.yytext);
881
- return "DIR";
882
- case 90:
883
- yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
884
- yy.getLogger().debug("Lex (up):", yy_.yytext);
885
- return "DIR";
886
- case 91:
887
- yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
888
- yy.getLogger().debug("Lex (down):", yy_.yytext);
889
- return "DIR";
890
- case 92:
891
- yy_.yytext = "]>";
892
- yy.getLogger().debug("Lex (ARROW_DIR end):", yy_.yytext);
893
- this.popState();
894
- this.popState();
895
- return "BLOCK_ARROW_END";
896
- case 93:
897
- yy.getLogger().debug("Lex: LINK", "#" + yy_.yytext + "#");
898
- return 15;
899
- case 94:
900
- yy.getLogger().debug("Lex: LINK", yy_.yytext);
901
- return 15;
902
- case 95:
903
- yy.getLogger().debug("Lex: LINK", yy_.yytext);
904
- return 15;
905
- case 96:
906
- yy.getLogger().debug("Lex: LINK", yy_.yytext);
907
- return 15;
908
- case 97:
909
- yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
910
- this.pushState("LLABEL");
911
- return 16;
912
- case 98:
913
- yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
914
- this.pushState("LLABEL");
915
- return 16;
916
- case 99:
917
- yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
918
- this.pushState("LLABEL");
919
- return 16;
920
- case 100:
921
- this.pushState("md_string");
922
- break;
923
- case 101:
924
- yy.getLogger().debug("Lex: Starting string");
925
- this.pushState("string");
926
- return "LINK_LABEL";
927
- case 102:
928
- this.popState();
929
- yy.getLogger().debug("Lex: LINK", "#" + yy_.yytext + "#");
930
- return 15;
931
- case 103:
932
- this.popState();
933
- yy.getLogger().debug("Lex: LINK", yy_.yytext);
934
- return 15;
935
- case 104:
936
- this.popState();
937
- yy.getLogger().debug("Lex: LINK", yy_.yytext);
938
- return 15;
939
- case 105:
940
- yy.getLogger().debug("Lex: COLON", yy_.yytext);
941
- yy_.yytext = yy_.yytext.slice(1);
942
- return 27;
943
- }
944
- }, "anonymous"),
945
- rules: [/^(?:block-beta\b)/, /^(?:block\s+)/, /^(?:block\n+)/, /^(?:block:)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/],
946
- conditions: { "STYLE_DEFINITION": { "rules": [29], "inclusive": false }, "STYLE_STMNT": { "rules": [28], "inclusive": false }, "CLASSDEFID": { "rules": [23], "inclusive": false }, "CLASSDEF": { "rules": [21, 22], "inclusive": false }, "CLASS_STYLE": { "rules": [26], "inclusive": false }, "CLASS": { "rules": [25], "inclusive": false }, "LLABEL": { "rules": [100, 101, 102, 103, 104], "inclusive": false }, "ARROW_DIR": { "rules": [86, 87, 88, 89, 90, 91, 92], "inclusive": false }, "BLOCK_ARROW": { "rules": [77, 82, 85], "inclusive": false }, "NODE": { "rules": [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 78, 81], "inclusive": false }, "md_string": { "rules": [10, 11, 79, 80], "inclusive": false }, "space": { "rules": [], "inclusive": false }, "string": { "rules": [13, 14, 83, 84], "inclusive": false }, "acc_descr_multiline": { "rules": [35, 36], "inclusive": false }, "acc_descr": { "rules": [33], "inclusive": false }, "acc_title": { "rules": [31], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 15, 16, 17, 18, 19, 20, 24, 27, 30, 32, 34, 37, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 93, 94, 95, 96, 97, 98, 99, 105], "inclusive": true } }
947
- };
948
- return lexer2;
949
- }();
950
- parser2.lexer = lexer;
951
- function Parser() {
952
- this.yy = {};
953
- }
954
- __name(Parser, "Parser");
955
- Parser.prototype = parser2;
956
- parser2.Parser = Parser;
957
- return new Parser();
958
- }();
959
- parser.parser = parser;
960
- var block_default = parser;
961
- var blockDatabase = /* @__PURE__ */ new Map();
962
- var edgeList = [];
963
- var edgeCount = /* @__PURE__ */ new Map();
964
- var COLOR_KEYWORD = "color";
965
- var FILL_KEYWORD = "fill";
966
- var BG_FILL = "bgFill";
967
- var STYLECLASS_SEP = ",";
968
- var config = getConfig2();
969
- var classes = /* @__PURE__ */ new Map();
970
- var sanitizeText2 = /* @__PURE__ */ __name((txt) => common_default.sanitizeText(txt, config), "sanitizeText");
971
- var addStyleClass = /* @__PURE__ */ __name(function(id, styleAttributes = "") {
972
- let foundClass = classes.get(id);
973
- if (!foundClass) {
974
- foundClass = { id, styles: [], textStyles: [] };
975
- classes.set(id, foundClass);
976
- }
977
- if (styleAttributes !== void 0 && styleAttributes !== null) {
978
- styleAttributes.split(STYLECLASS_SEP).forEach((attrib) => {
979
- const fixedAttrib = attrib.replace(/([^;]*);/, "$1").trim();
980
- if (RegExp(COLOR_KEYWORD).exec(attrib)) {
981
- const newStyle1 = fixedAttrib.replace(FILL_KEYWORD, BG_FILL);
982
- const newStyle2 = newStyle1.replace(COLOR_KEYWORD, FILL_KEYWORD);
983
- foundClass.textStyles.push(newStyle2);
984
- }
985
- foundClass.styles.push(fixedAttrib);
986
- });
987
- }
988
- }, "addStyleClass");
989
- var addStyle2Node = /* @__PURE__ */ __name(function(id, styles = "") {
990
- const foundBlock = blockDatabase.get(id);
991
- if (styles !== void 0 && styles !== null) {
992
- foundBlock.styles = styles.split(STYLECLASS_SEP);
993
- }
994
- }, "addStyle2Node");
995
- var setCssClass = /* @__PURE__ */ __name(function(itemIds, cssClassName) {
996
- itemIds.split(",").forEach(function(id) {
997
- let foundBlock = blockDatabase.get(id);
998
- if (foundBlock === void 0) {
999
- const trimmedId = id.trim();
1000
- foundBlock = { id: trimmedId, type: "na", children: [] };
1001
- blockDatabase.set(trimmedId, foundBlock);
1002
- }
1003
- if (!foundBlock.classes) {
1004
- foundBlock.classes = [];
1005
- }
1006
- foundBlock.classes.push(cssClassName);
1007
- });
1008
- }, "setCssClass");
1009
- var populateBlockDatabase = /* @__PURE__ */ __name((_blockList, parent) => {
1010
- const blockList = _blockList.flat();
1011
- const children = [];
1012
- for (const block of blockList) {
1013
- if (block.label) {
1014
- block.label = sanitizeText2(block.label);
1015
- }
1016
- if (block.type === "classDef") {
1017
- addStyleClass(block.id, block.css);
1018
- continue;
1019
- }
1020
- if (block.type === "applyClass") {
1021
- setCssClass(block.id, (block == null ? void 0 : block.styleClass) ?? "");
1022
- continue;
1023
- }
1024
- if (block.type === "applyStyles") {
1025
- if (block == null ? void 0 : block.stylesStr) {
1026
- addStyle2Node(block.id, block == null ? void 0 : block.stylesStr);
1027
- }
1028
- continue;
1029
- }
1030
- if (block.type === "column-setting") {
1031
- parent.columns = block.columns ?? -1;
1032
- } else if (block.type === "edge") {
1033
- const count = (edgeCount.get(block.id) ?? 0) + 1;
1034
- edgeCount.set(block.id, count);
1035
- block.id = count + "-" + block.id;
1036
- edgeList.push(block);
1037
- } else {
1038
- if (!block.label) {
1039
- if (block.type === "composite") {
1040
- block.label = "";
1041
- } else {
1042
- block.label = block.id;
1043
- }
1044
- }
1045
- const existingBlock = blockDatabase.get(block.id);
1046
- if (existingBlock === void 0) {
1047
- blockDatabase.set(block.id, block);
1048
- } else {
1049
- if (block.type !== "na") {
1050
- existingBlock.type = block.type;
1051
- }
1052
- if (block.label !== block.id) {
1053
- existingBlock.label = block.label;
1054
- }
1055
- }
1056
- if (block.children) {
1057
- populateBlockDatabase(block.children, block);
1058
- }
1059
- if (block.type === "space") {
1060
- const w = block.width ?? 1;
1061
- for (let j = 0; j < w; j++) {
1062
- const newBlock = clone(block);
1063
- newBlock.id = newBlock.id + "-" + j;
1064
- blockDatabase.set(newBlock.id, newBlock);
1065
- children.push(newBlock);
1066
- }
1067
- } else if (existingBlock === void 0) {
1068
- children.push(block);
1069
- }
1070
- }
1071
- }
1072
- parent.children = children;
1073
- }, "populateBlockDatabase");
1074
- var blocks = [];
1075
- var rootBlock = { id: "root", type: "composite", children: [], columns: -1 };
1076
- var clear2 = /* @__PURE__ */ __name(() => {
1077
- log.debug("Clear called");
1078
- clear();
1079
- rootBlock = { id: "root", type: "composite", children: [], columns: -1 };
1080
- blockDatabase = /* @__PURE__ */ new Map([["root", rootBlock]]);
1081
- blocks = [];
1082
- classes = /* @__PURE__ */ new Map();
1083
- edgeList = [];
1084
- edgeCount = /* @__PURE__ */ new Map();
1085
- }, "clear");
1086
- function typeStr2Type(typeStr) {
1087
- log.debug("typeStr2Type", typeStr);
1088
- switch (typeStr) {
1089
- case "[]":
1090
- return "square";
1091
- case "()":
1092
- log.debug("we have a round");
1093
- return "round";
1094
- case "(())":
1095
- return "circle";
1096
- case ">]":
1097
- return "rect_left_inv_arrow";
1098
- case "{}":
1099
- return "diamond";
1100
- case "{{}}":
1101
- return "hexagon";
1102
- case "([])":
1103
- return "stadium";
1104
- case "[[]]":
1105
- return "subroutine";
1106
- case "[()]":
1107
- return "cylinder";
1108
- case "((()))":
1109
- return "doublecircle";
1110
- case "[//]":
1111
- return "lean_right";
1112
- case "[\\\\]":
1113
- return "lean_left";
1114
- case "[/\\]":
1115
- return "trapezoid";
1116
- case "[\\/]":
1117
- return "inv_trapezoid";
1118
- case "<[]>":
1119
- return "block_arrow";
1120
- default:
1121
- return "na";
1122
- }
1123
- }
1124
- __name(typeStr2Type, "typeStr2Type");
1125
- function edgeTypeStr2Type(typeStr) {
1126
- log.debug("typeStr2Type", typeStr);
1127
- switch (typeStr) {
1128
- case "==":
1129
- return "thick";
1130
- default:
1131
- return "normal";
1132
- }
1133
- }
1134
- __name(edgeTypeStr2Type, "edgeTypeStr2Type");
1135
- function edgeStrToEdgeData(typeStr) {
1136
- switch (typeStr.trim()) {
1137
- case "--x":
1138
- return "arrow_cross";
1139
- case "--o":
1140
- return "arrow_circle";
1141
- default:
1142
- return "arrow_point";
1143
- }
1144
- }
1145
- __name(edgeStrToEdgeData, "edgeStrToEdgeData");
1146
- var cnt = 0;
1147
- var generateId = /* @__PURE__ */ __name(() => {
1148
- cnt++;
1149
- return "id-" + Math.random().toString(36).substr(2, 12) + "-" + cnt;
1150
- }, "generateId");
1151
- var setHierarchy = /* @__PURE__ */ __name((block) => {
1152
- rootBlock.children = block;
1153
- populateBlockDatabase(block, rootBlock);
1154
- blocks = rootBlock.children;
1155
- }, "setHierarchy");
1156
- var getColumns = /* @__PURE__ */ __name((blockId) => {
1157
- const block = blockDatabase.get(blockId);
1158
- if (!block) {
1159
- return -1;
1160
- }
1161
- if (block.columns) {
1162
- return block.columns;
1163
- }
1164
- if (!block.children) {
1165
- return -1;
1166
- }
1167
- return block.children.length;
1168
- }, "getColumns");
1169
- var getBlocksFlat = /* @__PURE__ */ __name(() => {
1170
- return [...blockDatabase.values()];
1171
- }, "getBlocksFlat");
1172
- var getBlocks = /* @__PURE__ */ __name(() => {
1173
- return blocks || [];
1174
- }, "getBlocks");
1175
- var getEdges = /* @__PURE__ */ __name(() => {
1176
- return edgeList;
1177
- }, "getEdges");
1178
- var getBlock = /* @__PURE__ */ __name((id) => {
1179
- return blockDatabase.get(id);
1180
- }, "getBlock");
1181
- var setBlock = /* @__PURE__ */ __name((block) => {
1182
- blockDatabase.set(block.id, block);
1183
- }, "setBlock");
1184
- var getLogger = /* @__PURE__ */ __name(() => console, "getLogger");
1185
- var getClasses = /* @__PURE__ */ __name(function() {
1186
- return classes;
1187
- }, "getClasses");
1188
- var db = {
1189
- getConfig: /* @__PURE__ */ __name(() => getConfig().block, "getConfig"),
1190
- typeStr2Type,
1191
- edgeTypeStr2Type,
1192
- edgeStrToEdgeData,
1193
- getLogger,
1194
- getBlocksFlat,
1195
- getBlocks,
1196
- getEdges,
1197
- setHierarchy,
1198
- getBlock,
1199
- setBlock,
1200
- getColumns,
1201
- getClasses,
1202
- clear: clear2,
1203
- generateId
1204
- };
1205
- var blockDB_default = db;
1206
- var fade = /* @__PURE__ */ __name((color, opacity) => {
1207
- const channel2 = channel;
1208
- const r = channel2(color, "r");
1209
- const g = channel2(color, "g");
1210
- const b = channel2(color, "b");
1211
- return rgba(r, g, b, opacity);
1212
- }, "fade");
1213
- var getStyles = /* @__PURE__ */ __name((options) => `.label {
1214
- font-family: ${options.fontFamily};
1215
- color: ${options.nodeTextColor || options.textColor};
1216
- }
1217
- .cluster-label text {
1218
- fill: ${options.titleColor};
1219
- }
1220
- .cluster-label span,p {
1221
- color: ${options.titleColor};
1222
- }
1223
-
1224
-
1225
-
1226
- .label text,span,p {
1227
- fill: ${options.nodeTextColor || options.textColor};
1228
- color: ${options.nodeTextColor || options.textColor};
1229
- }
1230
-
1231
- .node rect,
1232
- .node circle,
1233
- .node ellipse,
1234
- .node polygon,
1235
- .node path {
1236
- fill: ${options.mainBkg};
1237
- stroke: ${options.nodeBorder};
1238
- stroke-width: 1px;
1239
- }
1240
- .flowchart-label text {
1241
- text-anchor: middle;
1242
- }
1243
- // .flowchart-label .text-outer-tspan {
1244
- // text-anchor: middle;
1245
- // }
1246
- // .flowchart-label .text-inner-tspan {
1247
- // text-anchor: start;
1248
- // }
1249
-
1250
- .node .label {
1251
- text-align: center;
1252
- }
1253
- .node.clickable {
1254
- cursor: pointer;
1255
- }
1256
-
1257
- .arrowheadPath {
1258
- fill: ${options.arrowheadColor};
1259
- }
1260
-
1261
- .edgePath .path {
1262
- stroke: ${options.lineColor};
1263
- stroke-width: 2.0px;
1264
- }
1265
-
1266
- .flowchart-link {
1267
- stroke: ${options.lineColor};
1268
- fill: none;
1269
- }
1270
-
1271
- .edgeLabel {
1272
- background-color: ${options.edgeLabelBackground};
1273
- rect {
1274
- opacity: 0.5;
1275
- background-color: ${options.edgeLabelBackground};
1276
- fill: ${options.edgeLabelBackground};
1277
- }
1278
- text-align: center;
1279
- }
1280
-
1281
- /* For html labels only */
1282
- .labelBkg {
1283
- background-color: ${fade(options.edgeLabelBackground, 0.5)};
1284
- // background-color:
1285
- }
1286
-
1287
- .node .cluster {
1288
- // fill: ${fade(options.mainBkg, 0.5)};
1289
- fill: ${fade(options.clusterBkg, 0.5)};
1290
- stroke: ${fade(options.clusterBorder, 0.2)};
1291
- box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1292
- stroke-width: 1px;
1293
- }
1294
-
1295
- .cluster text {
1296
- fill: ${options.titleColor};
1297
- }
1298
-
1299
- .cluster span,p {
1300
- color: ${options.titleColor};
1301
- }
1302
- /* .cluster div {
1303
- color: ${options.titleColor};
1304
- } */
1305
-
1306
- div.mermaidTooltip {
1307
- position: absolute;
1308
- text-align: center;
1309
- max-width: 200px;
1310
- padding: 2px;
1311
- font-family: ${options.fontFamily};
1312
- font-size: 12px;
1313
- background: ${options.tertiaryColor};
1314
- border: 1px solid ${options.border2};
1315
- border-radius: 2px;
1316
- pointer-events: none;
1317
- z-index: 100;
1318
- }
1319
-
1320
- .flowchartTitleText {
1321
- text-anchor: middle;
1322
- font-size: 18px;
1323
- fill: ${options.textColor};
1324
- }
1325
- `, "getStyles");
1326
- var styles_default = getStyles;
1327
- var insertMarkers = /* @__PURE__ */ __name((elem, markerArray, type, id) => {
1328
- markerArray.forEach((markerName) => {
1329
- markers[markerName](elem, type, id);
1330
- });
1331
- }, "insertMarkers");
1332
- var extension = /* @__PURE__ */ __name((elem, type, id) => {
1333
- log.trace("Making markers for ", id);
1334
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-extensionStart").attr("class", "marker extension " + type).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z");
1335
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-extensionEnd").attr("class", "marker extension " + type).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
1336
- }, "extension");
1337
- var composition = /* @__PURE__ */ __name((elem, type, id) => {
1338
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-compositionStart").attr("class", "marker composition " + type).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1339
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-compositionEnd").attr("class", "marker composition " + type).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1340
- }, "composition");
1341
- var aggregation = /* @__PURE__ */ __name((elem, type, id) => {
1342
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-aggregationStart").attr("class", "marker aggregation " + type).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1343
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-aggregationEnd").attr("class", "marker aggregation " + type).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1344
- }, "aggregation");
1345
- var dependency = /* @__PURE__ */ __name((elem, type, id) => {
1346
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-dependencyStart").attr("class", "marker dependency " + type).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z");
1347
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-dependencyEnd").attr("class", "marker dependency " + type).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1348
- }, "dependency");
1349
- var lollipop = /* @__PURE__ */ __name((elem, type, id) => {
1350
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-lollipopStart").attr("class", "marker lollipop " + type).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
1351
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-lollipopEnd").attr("class", "marker lollipop " + type).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
1352
- }, "lollipop");
1353
- var point = /* @__PURE__ */ __name((elem, type, id) => {
1354
- elem.append("marker").attr("id", id + "_" + type + "-pointEnd").attr("class", "marker " + type).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1355
- elem.append("marker").attr("id", id + "_" + type + "-pointStart").attr("class", "marker " + type).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1356
- }, "point");
1357
- var circle = /* @__PURE__ */ __name((elem, type, id) => {
1358
- elem.append("marker").attr("id", id + "_" + type + "-circleEnd").attr("class", "marker " + type).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1359
- elem.append("marker").attr("id", id + "_" + type + "-circleStart").attr("class", "marker " + type).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1360
- }, "circle");
1361
- var cross = /* @__PURE__ */ __name((elem, type, id) => {
1362
- elem.append("marker").attr("id", id + "_" + type + "-crossEnd").attr("class", "marker cross " + type).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
1363
- elem.append("marker").attr("id", id + "_" + type + "-crossStart").attr("class", "marker cross " + type).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
1364
- }, "cross");
1365
- var barb = /* @__PURE__ */ __name((elem, type, id) => {
1366
- elem.append("defs").append("marker").attr("id", id + "_" + type + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
1367
- }, "barb");
1368
- var markers = {
1369
- extension,
1370
- composition,
1371
- aggregation,
1372
- dependency,
1373
- lollipop,
1374
- point,
1375
- circle,
1376
- cross,
1377
- barb
1378
- };
1379
- var markers_default = insertMarkers;
1380
- var padding = ((_b = (_a = getConfig2()) == null ? void 0 : _a.block) == null ? void 0 : _b.padding) ?? 8;
1381
- function calculateBlockPosition(columns, position) {
1382
- if (columns === 0 || !Number.isInteger(columns)) {
1383
- throw new Error("Columns must be an integer !== 0.");
1384
- }
1385
- if (position < 0 || !Number.isInteger(position)) {
1386
- throw new Error("Position must be a non-negative integer." + position);
1387
- }
1388
- if (columns < 0) {
1389
- return { px: position, py: 0 };
1390
- }
1391
- if (columns === 1) {
1392
- return { px: 0, py: position };
1393
- }
1394
- const px = position % columns;
1395
- const py = Math.floor(position / columns);
1396
- return { px, py };
1397
- }
1398
- __name(calculateBlockPosition, "calculateBlockPosition");
1399
- var getMaxChildSize = /* @__PURE__ */ __name((block) => {
1400
- let maxWidth = 0;
1401
- let maxHeight = 0;
1402
- for (const child of block.children) {
1403
- const { width, height, x, y } = child.size ?? { width: 0, height: 0, x: 0, y: 0 };
1404
- log.debug(
1405
- "getMaxChildSize abc95 child:",
1406
- child.id,
1407
- "width:",
1408
- width,
1409
- "height:",
1410
- height,
1411
- "x:",
1412
- x,
1413
- "y:",
1414
- y,
1415
- child.type
1416
- );
1417
- if (child.type === "space") {
1418
- continue;
1419
- }
1420
- if (width > maxWidth) {
1421
- maxWidth = width / (block.widthInColumns ?? 1);
1422
- }
1423
- if (height > maxHeight) {
1424
- maxHeight = height;
1425
- }
1426
- }
1427
- return { width: maxWidth, height: maxHeight };
1428
- }, "getMaxChildSize");
1429
- function setBlockSizes(block, db2, siblingWidth = 0, siblingHeight = 0) {
1430
- var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k;
1431
- log.debug(
1432
- "setBlockSizes abc95 (start)",
1433
- block.id,
1434
- (_a2 = block == null ? void 0 : block.size) == null ? void 0 : _a2.x,
1435
- "block width =",
1436
- block == null ? void 0 : block.size,
1437
- "sieblingWidth",
1438
- siblingWidth
1439
- );
1440
- if (!((_b2 = block == null ? void 0 : block.size) == null ? void 0 : _b2.width)) {
1441
- block.size = {
1442
- width: siblingWidth,
1443
- height: siblingHeight,
1444
- x: 0,
1445
- y: 0
1446
- };
1447
- }
1448
- let maxWidth = 0;
1449
- let maxHeight = 0;
1450
- if (((_c = block.children) == null ? void 0 : _c.length) > 0) {
1451
- for (const child of block.children) {
1452
- setBlockSizes(child, db2);
1453
- }
1454
- const childSize = getMaxChildSize(block);
1455
- maxWidth = childSize.width;
1456
- maxHeight = childSize.height;
1457
- log.debug("setBlockSizes abc95 maxWidth of", block.id, ":s children is ", maxWidth, maxHeight);
1458
- for (const child of block.children) {
1459
- if (child.size) {
1460
- log.debug(
1461
- `abc95 Setting size of children of ${block.id} id=${child.id} ${maxWidth} ${maxHeight} ${JSON.stringify(child.size)}`
1462
- );
1463
- child.size.width = maxWidth * (child.widthInColumns ?? 1) + padding * ((child.widthInColumns ?? 1) - 1);
1464
- child.size.height = maxHeight;
1465
- child.size.x = 0;
1466
- child.size.y = 0;
1467
- log.debug(
1468
- `abc95 updating size of ${block.id} children child:${child.id} maxWidth:${maxWidth} maxHeight:${maxHeight}`
1469
- );
1470
- }
1471
- }
1472
- for (const child of block.children) {
1473
- setBlockSizes(child, db2, maxWidth, maxHeight);
1474
- }
1475
- const columns = block.columns ?? -1;
1476
- let numItems = 0;
1477
- for (const child of block.children) {
1478
- numItems += child.widthInColumns ?? 1;
1479
- }
1480
- let xSize = block.children.length;
1481
- if (columns > 0 && columns < numItems) {
1482
- xSize = columns;
1483
- }
1484
- const ySize = Math.ceil(numItems / xSize);
1485
- let width = xSize * (maxWidth + padding) + padding;
1486
- let height = ySize * (maxHeight + padding) + padding;
1487
- if (width < siblingWidth) {
1488
- log.debug(
1489
- `Detected to small siebling: abc95 ${block.id} sieblingWidth ${siblingWidth} sieblingHeight ${siblingHeight} width ${width}`
1490
- );
1491
- width = siblingWidth;
1492
- height = siblingHeight;
1493
- const childWidth = (siblingWidth - xSize * padding - padding) / xSize;
1494
- const childHeight = (siblingHeight - ySize * padding - padding) / ySize;
1495
- log.debug("Size indata abc88", block.id, "childWidth", childWidth, "maxWidth", maxWidth);
1496
- log.debug("Size indata abc88", block.id, "childHeight", childHeight, "maxHeight", maxHeight);
1497
- log.debug("Size indata abc88 xSize", xSize, "padding", padding);
1498
- for (const child of block.children) {
1499
- if (child.size) {
1500
- child.size.width = childWidth;
1501
- child.size.height = childHeight;
1502
- child.size.x = 0;
1503
- child.size.y = 0;
1504
- }
1505
- }
1506
- }
1507
- log.debug(
1508
- `abc95 (finale calc) ${block.id} xSize ${xSize} ySize ${ySize} columns ${columns}${block.children.length} width=${Math.max(width, ((_d = block.size) == null ? void 0 : _d.width) || 0)}`
1509
- );
1510
- if (width < (((_e = block == null ? void 0 : block.size) == null ? void 0 : _e.width) || 0)) {
1511
- width = ((_f = block == null ? void 0 : block.size) == null ? void 0 : _f.width) || 0;
1512
- const num = columns > 0 ? Math.min(block.children.length, columns) : block.children.length;
1513
- if (num > 0) {
1514
- const childWidth = (width - num * padding - padding) / num;
1515
- log.debug("abc95 (growing to fit) width", block.id, width, (_g = block.size) == null ? void 0 : _g.width, childWidth);
1516
- for (const child of block.children) {
1517
- if (child.size) {
1518
- child.size.width = childWidth;
1519
- }
1520
- }
1521
- }
1522
- }
1523
- block.size = {
1524
- width,
1525
- height,
1526
- x: 0,
1527
- y: 0
1528
- };
1529
- }
1530
- log.debug(
1531
- "setBlockSizes abc94 (done)",
1532
- block.id,
1533
- (_h = block == null ? void 0 : block.size) == null ? void 0 : _h.x,
1534
- (_i = block == null ? void 0 : block.size) == null ? void 0 : _i.width,
1535
- (_j = block == null ? void 0 : block.size) == null ? void 0 : _j.y,
1536
- (_k = block == null ? void 0 : block.size) == null ? void 0 : _k.height
1537
- );
1538
- }
1539
- __name(setBlockSizes, "setBlockSizes");
1540
- function layoutBlocks(block, db2) {
1541
- var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
1542
- log.debug(
1543
- `abc85 layout blocks (=>layoutBlocks) ${block.id} x: ${(_a2 = block == null ? void 0 : block.size) == null ? void 0 : _a2.x} y: ${(_b2 = block == null ? void 0 : block.size) == null ? void 0 : _b2.y} width: ${(_c = block == null ? void 0 : block.size) == null ? void 0 : _c.width}`
1544
- );
1545
- const columns = block.columns ?? -1;
1546
- log.debug("layoutBlocks columns abc95", block.id, "=>", columns, block);
1547
- if (block.children && // find max width of children
1548
- block.children.length > 0) {
1549
- const width = ((_e = (_d = block == null ? void 0 : block.children[0]) == null ? void 0 : _d.size) == null ? void 0 : _e.width) ?? 0;
1550
- const widthOfChildren = block.children.length * width + (block.children.length - 1) * padding;
1551
- log.debug("widthOfChildren 88", widthOfChildren, "posX");
1552
- let columnPos = 0;
1553
- log.debug("abc91 block?.size?.x", block.id, (_f = block == null ? void 0 : block.size) == null ? void 0 : _f.x);
1554
- let startingPosX = ((_g = block == null ? void 0 : block.size) == null ? void 0 : _g.x) ? ((_h = block == null ? void 0 : block.size) == null ? void 0 : _h.x) + (-((_i = block == null ? void 0 : block.size) == null ? void 0 : _i.width) / 2 || 0) : -padding;
1555
- let rowPos = 0;
1556
- for (const child of block.children) {
1557
- const parent = block;
1558
- if (!child.size) {
1559
- continue;
1560
- }
1561
- const { width: width2, height } = child.size;
1562
- const { px, py } = calculateBlockPosition(columns, columnPos);
1563
- if (py != rowPos) {
1564
- rowPos = py;
1565
- startingPosX = ((_j = block == null ? void 0 : block.size) == null ? void 0 : _j.x) ? ((_k = block == null ? void 0 : block.size) == null ? void 0 : _k.x) + (-((_l = block == null ? void 0 : block.size) == null ? void 0 : _l.width) / 2 || 0) : -padding;
1566
- log.debug("New row in layout for block", block.id, " and child ", child.id, rowPos);
1567
- }
1568
- log.debug(
1569
- `abc89 layout blocks (child) id: ${child.id} Pos: ${columnPos} (px, py) ${px},${py} (${(_m = parent == null ? void 0 : parent.size) == null ? void 0 : _m.x},${(_n = parent == null ? void 0 : parent.size) == null ? void 0 : _n.y}) parent: ${parent.id} width: ${width2}${padding}`
1570
- );
1571
- if (parent.size) {
1572
- const halfWidth = width2 / 2;
1573
- child.size.x = startingPosX + padding + halfWidth;
1574
- log.debug(
1575
- `abc91 layout blocks (calc) px, pyid:${child.id} startingPos=X${startingPosX} new startingPosX${child.size.x} ${halfWidth} padding=${padding} width=${width2} halfWidth=${halfWidth} => x:${child.size.x} y:${child.size.y} ${child.widthInColumns} (width * (child?.w || 1)) / 2 ${width2 * ((child == null ? void 0 : child.widthInColumns) ?? 1) / 2}`
1576
- );
1577
- startingPosX = child.size.x + halfWidth;
1578
- child.size.y = parent.size.y - parent.size.height / 2 + py * (height + padding) + height / 2 + padding;
1579
- log.debug(
1580
- `abc88 layout blocks (calc) px, pyid:${child.id}startingPosX${startingPosX}${padding}${halfWidth}=>x:${child.size.x}y:${child.size.y}${child.widthInColumns}(width * (child?.w || 1)) / 2${width2 * ((child == null ? void 0 : child.widthInColumns) ?? 1) / 2}`
1581
- );
1582
- }
1583
- if (child.children) {
1584
- layoutBlocks(child);
1585
- }
1586
- columnPos += (child == null ? void 0 : child.widthInColumns) ?? 1;
1587
- log.debug("abc88 columnsPos", child, columnPos);
1588
- }
1589
- }
1590
- log.debug(
1591
- `layout blocks (<==layoutBlocks) ${block.id} x: ${(_o = block == null ? void 0 : block.size) == null ? void 0 : _o.x} y: ${(_p = block == null ? void 0 : block.size) == null ? void 0 : _p.y} width: ${(_q = block == null ? void 0 : block.size) == null ? void 0 : _q.width}`
1592
- );
1593
- }
1594
- __name(layoutBlocks, "layoutBlocks");
1595
- function findBounds(block, { minX, minY, maxX, maxY } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1596
- if (block.size && block.id !== "root") {
1597
- const { x, y, width, height } = block.size;
1598
- if (x - width / 2 < minX) {
1599
- minX = x - width / 2;
1600
- }
1601
- if (y - height / 2 < minY) {
1602
- minY = y - height / 2;
1603
- }
1604
- if (x + width / 2 > maxX) {
1605
- maxX = x + width / 2;
1606
- }
1607
- if (y + height / 2 > maxY) {
1608
- maxY = y + height / 2;
1609
- }
1610
- }
1611
- if (block.children) {
1612
- for (const child of block.children) {
1613
- ({ minX, minY, maxX, maxY } = findBounds(child, { minX, minY, maxX, maxY }));
1614
- }
1615
- }
1616
- return { minX, minY, maxX, maxY };
1617
- }
1618
- __name(findBounds, "findBounds");
1619
- function layout(db2) {
1620
- const root = db2.getBlock("root");
1621
- if (!root) {
1622
- return;
1623
- }
1624
- setBlockSizes(root, db2, 0, 0);
1625
- layoutBlocks(root);
1626
- log.debug("getBlocks", JSON.stringify(root, null, 2));
1627
- const { minX, minY, maxX, maxY } = findBounds(root);
1628
- const height = maxY - minY;
1629
- const width = maxX - minX;
1630
- return { x: minX, y: minY, width, height };
1631
- }
1632
- __name(layout, "layout");
1633
- function applyStyle(dom, styleFn) {
1634
- if (styleFn) {
1635
- dom.attr("style", styleFn);
1636
- }
1637
- }
1638
- __name(applyStyle, "applyStyle");
1639
- function addHtmlLabel(node) {
1640
- const fo = select(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject"));
1641
- const div = fo.append("xhtml:div");
1642
- const label = node.label;
1643
- const labelClass = node.isNode ? "nodeLabel" : "edgeLabel";
1644
- const span = div.append("span");
1645
- span.html(label);
1646
- applyStyle(span, node.labelStyle);
1647
- span.attr("class", labelClass);
1648
- applyStyle(div, node.labelStyle);
1649
- div.style("display", "inline-block");
1650
- div.style("white-space", "nowrap");
1651
- div.attr("xmlns", "http://www.w3.org/1999/xhtml");
1652
- return fo.node();
1653
- }
1654
- __name(addHtmlLabel, "addHtmlLabel");
1655
- var createLabel = /* @__PURE__ */ __name((_vertexText, style, isTitle, isNode) => {
1656
- let vertexText = _vertexText || "";
1657
- if (typeof vertexText === "object") {
1658
- vertexText = vertexText[0];
1659
- }
1660
- if (evaluate(getConfig2().flowchart.htmlLabels)) {
1661
- vertexText = vertexText.replace(/\\n|\n/g, "<br />");
1662
- log.debug("vertexText" + vertexText);
1663
- const node = {
1664
- isNode,
1665
- label: replaceIconSubstring(decodeEntities(vertexText)),
1666
- labelStyle: style.replace("fill:", "color:")
1667
- };
1668
- let vertexNode = addHtmlLabel(node);
1669
- return vertexNode;
1670
- } else {
1671
- const svgLabel = document.createElementNS("http://www.w3.org/2000/svg", "text");
1672
- svgLabel.setAttribute("style", style.replace("color:", "fill:"));
1673
- let rows = [];
1674
- if (typeof vertexText === "string") {
1675
- rows = vertexText.split(/\\n|\n|<br\s*\/?>/gi);
1676
- } else if (Array.isArray(vertexText)) {
1677
- rows = vertexText;
1678
- } else {
1679
- rows = [];
1680
- }
1681
- for (const row of rows) {
1682
- const tspan = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
1683
- tspan.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
1684
- tspan.setAttribute("dy", "1em");
1685
- tspan.setAttribute("x", "0");
1686
- if (isTitle) {
1687
- tspan.setAttribute("class", "title-row");
1688
- } else {
1689
- tspan.setAttribute("class", "row");
1690
- }
1691
- tspan.textContent = row.trim();
1692
- svgLabel.appendChild(tspan);
1693
- }
1694
- return svgLabel;
1695
- }
1696
- }, "createLabel");
1697
- var createLabel_default = createLabel;
1698
- var addEdgeMarkers = /* @__PURE__ */ __name((svgPath, edge, url, id, diagramType) => {
1699
- if (edge.arrowTypeStart) {
1700
- addEdgeMarker(svgPath, "start", edge.arrowTypeStart, url, id, diagramType);
1701
- }
1702
- if (edge.arrowTypeEnd) {
1703
- addEdgeMarker(svgPath, "end", edge.arrowTypeEnd, url, id, diagramType);
1704
- }
1705
- }, "addEdgeMarkers");
1706
- var arrowTypesMap = {
1707
- arrow_cross: "cross",
1708
- arrow_point: "point",
1709
- arrow_barb: "barb",
1710
- arrow_circle: "circle",
1711
- aggregation: "aggregation",
1712
- extension: "extension",
1713
- composition: "composition",
1714
- dependency: "dependency",
1715
- lollipop: "lollipop"
1716
- };
1717
- var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position, arrowType, url, id, diagramType) => {
1718
- const endMarkerType = arrowTypesMap[arrowType];
1719
- if (!endMarkerType) {
1720
- log.warn(`Unknown arrow type: ${arrowType}`);
1721
- return;
1722
- }
1723
- const suffix = position === "start" ? "Start" : "End";
1724
- svgPath.attr(`marker-${position}`, `url(${url}#${id}_${diagramType}-${endMarkerType}${suffix})`);
1725
- }, "addEdgeMarker");
1726
- var edgeLabels = {};
1727
- var terminalLabels = {};
1728
- var insertEdgeLabel = /* @__PURE__ */ __name((elem, edge) => {
1729
- const config2 = getConfig2();
1730
- const useHtmlLabels = evaluate(config2.flowchart.htmlLabels);
1731
- const labelElement = edge.labelType === "markdown" ? createText(
1732
- elem,
1733
- edge.label,
1734
- {
1735
- style: edge.labelStyle,
1736
- useHtmlLabels,
1737
- addSvgBackground: true
1738
- },
1739
- config2
1740
- ) : createLabel_default(edge.label, edge.labelStyle);
1741
- const edgeLabel = elem.insert("g").attr("class", "edgeLabel");
1742
- const label = edgeLabel.insert("g").attr("class", "label");
1743
- label.node().appendChild(labelElement);
1744
- let bbox = labelElement.getBBox();
1745
- if (useHtmlLabels) {
1746
- const div = labelElement.children[0];
1747
- const dv = select(labelElement);
1748
- bbox = div.getBoundingClientRect();
1749
- dv.attr("width", bbox.width);
1750
- dv.attr("height", bbox.height);
1751
- }
1752
- label.attr("transform", "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")");
1753
- edgeLabels[edge.id] = edgeLabel;
1754
- edge.width = bbox.width;
1755
- edge.height = bbox.height;
1756
- let fo;
1757
- if (edge.startLabelLeft) {
1758
- const startLabelElement = createLabel_default(edge.startLabelLeft, edge.labelStyle);
1759
- const startEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
1760
- const inner = startEdgeLabelLeft.insert("g").attr("class", "inner");
1761
- fo = inner.node().appendChild(startLabelElement);
1762
- const slBox = startLabelElement.getBBox();
1763
- inner.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
1764
- if (!terminalLabels[edge.id]) {
1765
- terminalLabels[edge.id] = {};
1766
- }
1767
- terminalLabels[edge.id].startLeft = startEdgeLabelLeft;
1768
- setTerminalWidth(fo, edge.startLabelLeft);
1769
- }
1770
- if (edge.startLabelRight) {
1771
- const startLabelElement = createLabel_default(edge.startLabelRight, edge.labelStyle);
1772
- const startEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
1773
- const inner = startEdgeLabelRight.insert("g").attr("class", "inner");
1774
- fo = startEdgeLabelRight.node().appendChild(startLabelElement);
1775
- inner.node().appendChild(startLabelElement);
1776
- const slBox = startLabelElement.getBBox();
1777
- inner.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
1778
- if (!terminalLabels[edge.id]) {
1779
- terminalLabels[edge.id] = {};
1780
- }
1781
- terminalLabels[edge.id].startRight = startEdgeLabelRight;
1782
- setTerminalWidth(fo, edge.startLabelRight);
1783
- }
1784
- if (edge.endLabelLeft) {
1785
- const endLabelElement = createLabel_default(edge.endLabelLeft, edge.labelStyle);
1786
- const endEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
1787
- const inner = endEdgeLabelLeft.insert("g").attr("class", "inner");
1788
- fo = inner.node().appendChild(endLabelElement);
1789
- const slBox = endLabelElement.getBBox();
1790
- inner.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
1791
- endEdgeLabelLeft.node().appendChild(endLabelElement);
1792
- if (!terminalLabels[edge.id]) {
1793
- terminalLabels[edge.id] = {};
1794
- }
1795
- terminalLabels[edge.id].endLeft = endEdgeLabelLeft;
1796
- setTerminalWidth(fo, edge.endLabelLeft);
1797
- }
1798
- if (edge.endLabelRight) {
1799
- const endLabelElement = createLabel_default(edge.endLabelRight, edge.labelStyle);
1800
- const endEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
1801
- const inner = endEdgeLabelRight.insert("g").attr("class", "inner");
1802
- fo = inner.node().appendChild(endLabelElement);
1803
- const slBox = endLabelElement.getBBox();
1804
- inner.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
1805
- endEdgeLabelRight.node().appendChild(endLabelElement);
1806
- if (!terminalLabels[edge.id]) {
1807
- terminalLabels[edge.id] = {};
1808
- }
1809
- terminalLabels[edge.id].endRight = endEdgeLabelRight;
1810
- setTerminalWidth(fo, edge.endLabelRight);
1811
- }
1812
- return labelElement;
1813
- }, "insertEdgeLabel");
1814
- function setTerminalWidth(fo, value) {
1815
- if (getConfig2().flowchart.htmlLabels && fo) {
1816
- fo.style.width = value.length * 9 + "px";
1817
- fo.style.height = "12px";
1818
- }
1819
- }
1820
- __name(setTerminalWidth, "setTerminalWidth");
1821
- var positionEdgeLabel = /* @__PURE__ */ __name((edge, paths) => {
1822
- log.debug("Moving label abc88 ", edge.id, edge.label, edgeLabels[edge.id], paths);
1823
- let path = paths.updatedPath ? paths.updatedPath : paths.originalPath;
1824
- const siteConfig = getConfig2();
1825
- const { subGraphTitleTotalMargin } = getSubGraphTitleMargins(siteConfig);
1826
- if (edge.label) {
1827
- const el = edgeLabels[edge.id];
1828
- let x = edge.x;
1829
- let y = edge.y;
1830
- if (path) {
1831
- const pos = utils_default.calcLabelPosition(path);
1832
- log.debug(
1833
- "Moving label " + edge.label + " from (",
1834
- x,
1835
- ",",
1836
- y,
1837
- ") to (",
1838
- pos.x,
1839
- ",",
1840
- pos.y,
1841
- ") abc88"
1842
- );
1843
- if (paths.updatedPath) {
1844
- x = pos.x;
1845
- y = pos.y;
1846
- }
1847
- }
1848
- el.attr("transform", `translate(${x}, ${y + subGraphTitleTotalMargin / 2})`);
1849
- }
1850
- if (edge.startLabelLeft) {
1851
- const el = terminalLabels[edge.id].startLeft;
1852
- let x = edge.x;
1853
- let y = edge.y;
1854
- if (path) {
1855
- const pos = utils_default.calcTerminalLabelPosition(edge.arrowTypeStart ? 10 : 0, "start_left", path);
1856
- x = pos.x;
1857
- y = pos.y;
1858
- }
1859
- el.attr("transform", `translate(${x}, ${y})`);
1860
- }
1861
- if (edge.startLabelRight) {
1862
- const el = terminalLabels[edge.id].startRight;
1863
- let x = edge.x;
1864
- let y = edge.y;
1865
- if (path) {
1866
- const pos = utils_default.calcTerminalLabelPosition(
1867
- edge.arrowTypeStart ? 10 : 0,
1868
- "start_right",
1869
- path
1870
- );
1871
- x = pos.x;
1872
- y = pos.y;
1873
- }
1874
- el.attr("transform", `translate(${x}, ${y})`);
1875
- }
1876
- if (edge.endLabelLeft) {
1877
- const el = terminalLabels[edge.id].endLeft;
1878
- let x = edge.x;
1879
- let y = edge.y;
1880
- if (path) {
1881
- const pos = utils_default.calcTerminalLabelPosition(edge.arrowTypeEnd ? 10 : 0, "end_left", path);
1882
- x = pos.x;
1883
- y = pos.y;
1884
- }
1885
- el.attr("transform", `translate(${x}, ${y})`);
1886
- }
1887
- if (edge.endLabelRight) {
1888
- const el = terminalLabels[edge.id].endRight;
1889
- let x = edge.x;
1890
- let y = edge.y;
1891
- if (path) {
1892
- const pos = utils_default.calcTerminalLabelPosition(edge.arrowTypeEnd ? 10 : 0, "end_right", path);
1893
- x = pos.x;
1894
- y = pos.y;
1895
- }
1896
- el.attr("transform", `translate(${x}, ${y})`);
1897
- }
1898
- }, "positionEdgeLabel");
1899
- var outsideNode = /* @__PURE__ */ __name((node, point2) => {
1900
- const x = node.x;
1901
- const y = node.y;
1902
- const dx = Math.abs(point2.x - x);
1903
- const dy = Math.abs(point2.y - y);
1904
- const w = node.width / 2;
1905
- const h = node.height / 2;
1906
- if (dx >= w || dy >= h) {
1907
- return true;
1908
- }
1909
- return false;
1910
- }, "outsideNode");
1911
- var intersection = /* @__PURE__ */ __name((node, outsidePoint, insidePoint) => {
1912
- log.debug(`intersection calc abc89:
1913
- outsidePoint: ${JSON.stringify(outsidePoint)}
1914
- insidePoint : ${JSON.stringify(insidePoint)}
1915
- node : x:${node.x} y:${node.y} w:${node.width} h:${node.height}`);
1916
- const x = node.x;
1917
- const y = node.y;
1918
- const dx = Math.abs(x - insidePoint.x);
1919
- const w = node.width / 2;
1920
- let r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;
1921
- const h = node.height / 2;
1922
- const Q = Math.abs(outsidePoint.y - insidePoint.y);
1923
- const R = Math.abs(outsidePoint.x - insidePoint.x);
1924
- if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) {
1925
- let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;
1926
- r = R * q / Q;
1927
- const res = {
1928
- x: insidePoint.x < outsidePoint.x ? insidePoint.x + r : insidePoint.x - R + r,
1929
- y: insidePoint.y < outsidePoint.y ? insidePoint.y + Q - q : insidePoint.y - Q + q
1930
- };
1931
- if (r === 0) {
1932
- res.x = outsidePoint.x;
1933
- res.y = outsidePoint.y;
1934
- }
1935
- if (R === 0) {
1936
- res.x = outsidePoint.x;
1937
- }
1938
- if (Q === 0) {
1939
- res.y = outsidePoint.y;
1940
- }
1941
- log.debug(`abc89 topp/bott calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, res);
1942
- return res;
1943
- } else {
1944
- if (insidePoint.x < outsidePoint.x) {
1945
- r = outsidePoint.x - w - x;
1946
- } else {
1947
- r = x - w - outsidePoint.x;
1948
- }
1949
- let q = Q * r / R;
1950
- let _x = insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - R + r;
1951
- let _y = insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q;
1952
- log.debug(`sides calc abc89, Q ${Q}, q ${q}, R ${R}, r ${r}`, { _x, _y });
1953
- if (r === 0) {
1954
- _x = outsidePoint.x;
1955
- _y = outsidePoint.y;
1956
- }
1957
- if (R === 0) {
1958
- _x = outsidePoint.x;
1959
- }
1960
- if (Q === 0) {
1961
- _y = outsidePoint.y;
1962
- }
1963
- return { x: _x, y: _y };
1964
- }
1965
- }, "intersection");
1966
- var cutPathAtIntersect = /* @__PURE__ */ __name((_points, boundaryNode) => {
1967
- log.debug("abc88 cutPathAtIntersect", _points, boundaryNode);
1968
- let points = [];
1969
- let lastPointOutside = _points[0];
1970
- let isInside = false;
1971
- _points.forEach((point2) => {
1972
- if (!outsideNode(boundaryNode, point2) && !isInside) {
1973
- const inter = intersection(boundaryNode, lastPointOutside, point2);
1974
- let pointPresent = false;
1975
- points.forEach((p) => {
1976
- pointPresent = pointPresent || p.x === inter.x && p.y === inter.y;
1977
- });
1978
- if (!points.some((e) => e.x === inter.x && e.y === inter.y)) {
1979
- points.push(inter);
1980
- }
1981
- isInside = true;
1982
- } else {
1983
- lastPointOutside = point2;
1984
- if (!isInside) {
1985
- points.push(point2);
1986
- }
1987
- }
1988
- });
1989
- return points;
1990
- }, "cutPathAtIntersect");
1991
- var insertEdge = /* @__PURE__ */ __name(function(elem, e, edge, clusterDb, diagramType, graph, id) {
1992
- let points = edge.points;
1993
- log.debug("abc88 InsertEdge: edge=", edge, "e=", e);
1994
- let pointsHasChanged = false;
1995
- const tail = graph.node(e.v);
1996
- var head = graph.node(e.w);
1997
- if ((head == null ? void 0 : head.intersect) && (tail == null ? void 0 : tail.intersect)) {
1998
- points = points.slice(1, edge.points.length - 1);
1999
- points.unshift(tail.intersect(points[0]));
2000
- points.push(head.intersect(points[points.length - 1]));
2001
- }
2002
- if (edge.toCluster) {
2003
- log.debug("to cluster abc88", clusterDb[edge.toCluster]);
2004
- points = cutPathAtIntersect(edge.points, clusterDb[edge.toCluster].node);
2005
- pointsHasChanged = true;
2006
- }
2007
- if (edge.fromCluster) {
2008
- log.debug("from cluster abc88", clusterDb[edge.fromCluster]);
2009
- points = cutPathAtIntersect(points.reverse(), clusterDb[edge.fromCluster].node).reverse();
2010
- pointsHasChanged = true;
2011
- }
2012
- const lineData = points.filter((p) => !Number.isNaN(p.y));
2013
- let curve = curveBasis;
2014
- if (edge.curve && (diagramType === "graph" || diagramType === "flowchart")) {
2015
- curve = edge.curve;
2016
- }
2017
- const { x, y } = getLineFunctionsWithOffset(edge);
2018
- const lineFunction = line().x(x).y(y).curve(curve);
2019
- let strokeClasses;
2020
- switch (edge.thickness) {
2021
- case "normal":
2022
- strokeClasses = "edge-thickness-normal";
2023
- break;
2024
- case "thick":
2025
- strokeClasses = "edge-thickness-thick";
2026
- break;
2027
- case "invisible":
2028
- strokeClasses = "edge-thickness-thick";
2029
- break;
2030
- default:
2031
- strokeClasses = "";
2032
- }
2033
- switch (edge.pattern) {
2034
- case "solid":
2035
- strokeClasses += " edge-pattern-solid";
2036
- break;
2037
- case "dotted":
2038
- strokeClasses += " edge-pattern-dotted";
2039
- break;
2040
- case "dashed":
2041
- strokeClasses += " edge-pattern-dashed";
2042
- break;
2043
- }
2044
- const svgPath = elem.append("path").attr("d", lineFunction(lineData)).attr("id", edge.id).attr("class", " " + strokeClasses + (edge.classes ? " " + edge.classes : "")).attr("style", edge.style);
2045
- let url = "";
2046
- if (getConfig2().flowchart.arrowMarkerAbsolute || getConfig2().state.arrowMarkerAbsolute) {
2047
- url = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search;
2048
- url = url.replace(/\(/g, "\\(");
2049
- url = url.replace(/\)/g, "\\)");
2050
- }
2051
- addEdgeMarkers(svgPath, edge, url, id, diagramType);
2052
- let paths = {};
2053
- if (pointsHasChanged) {
2054
- paths.updatedPath = points;
2055
- }
2056
- paths.originalPath = edge.points;
2057
- return paths;
2058
- }, "insertEdge");
2059
- var expandAndDeduplicateDirections = /* @__PURE__ */ __name((directions) => {
2060
- const uniqueDirections = /* @__PURE__ */ new Set();
2061
- for (const direction of directions) {
2062
- switch (direction) {
2063
- case "x":
2064
- uniqueDirections.add("right");
2065
- uniqueDirections.add("left");
2066
- break;
2067
- case "y":
2068
- uniqueDirections.add("up");
2069
- uniqueDirections.add("down");
2070
- break;
2071
- default:
2072
- uniqueDirections.add(direction);
2073
- break;
2074
- }
2075
- }
2076
- return uniqueDirections;
2077
- }, "expandAndDeduplicateDirections");
2078
- var getArrowPoints = /* @__PURE__ */ __name((duplicatedDirections, bbox, node) => {
2079
- const directions = expandAndDeduplicateDirections(duplicatedDirections);
2080
- const f = 2;
2081
- const height = bbox.height + 2 * node.padding;
2082
- const midpoint = height / f;
2083
- const width = bbox.width + 2 * midpoint + node.padding;
2084
- const padding2 = node.padding / 2;
2085
- if (directions.has("right") && directions.has("left") && directions.has("up") && directions.has("down")) {
2086
- return [
2087
- // Bottom
2088
- { x: 0, y: 0 },
2089
- { x: midpoint, y: 0 },
2090
- { x: width / 2, y: 2 * padding2 },
2091
- { x: width - midpoint, y: 0 },
2092
- { x: width, y: 0 },
2093
- // Right
2094
- { x: width, y: -height / 3 },
2095
- { x: width + 2 * padding2, y: -height / 2 },
2096
- { x: width, y: -2 * height / 3 },
2097
- { x: width, y: -height },
2098
- // Top
2099
- { x: width - midpoint, y: -height },
2100
- { x: width / 2, y: -height - 2 * padding2 },
2101
- { x: midpoint, y: -height },
2102
- // Left
2103
- { x: 0, y: -height },
2104
- { x: 0, y: -2 * height / 3 },
2105
- { x: -2 * padding2, y: -height / 2 },
2106
- { x: 0, y: -height / 3 }
2107
- ];
2108
- }
2109
- if (directions.has("right") && directions.has("left") && directions.has("up")) {
2110
- return [
2111
- { x: midpoint, y: 0 },
2112
- { x: width - midpoint, y: 0 },
2113
- { x: width, y: -height / 2 },
2114
- { x: width - midpoint, y: -height },
2115
- { x: midpoint, y: -height },
2116
- { x: 0, y: -height / 2 }
2117
- ];
2118
- }
2119
- if (directions.has("right") && directions.has("left") && directions.has("down")) {
2120
- return [
2121
- { x: 0, y: 0 },
2122
- { x: midpoint, y: -height },
2123
- { x: width - midpoint, y: -height },
2124
- { x: width, y: 0 }
2125
- ];
2126
- }
2127
- if (directions.has("right") && directions.has("up") && directions.has("down")) {
2128
- return [
2129
- { x: 0, y: 0 },
2130
- { x: width, y: -midpoint },
2131
- { x: width, y: -height + midpoint },
2132
- { x: 0, y: -height }
2133
- ];
2134
- }
2135
- if (directions.has("left") && directions.has("up") && directions.has("down")) {
2136
- return [
2137
- { x: width, y: 0 },
2138
- { x: 0, y: -midpoint },
2139
- { x: 0, y: -height + midpoint },
2140
- { x: width, y: -height }
2141
- ];
2142
- }
2143
- if (directions.has("right") && directions.has("left")) {
2144
- return [
2145
- { x: midpoint, y: 0 },
2146
- { x: midpoint, y: -padding2 },
2147
- { x: width - midpoint, y: -padding2 },
2148
- { x: width - midpoint, y: 0 },
2149
- { x: width, y: -height / 2 },
2150
- { x: width - midpoint, y: -height },
2151
- { x: width - midpoint, y: -height + padding2 },
2152
- { x: midpoint, y: -height + padding2 },
2153
- { x: midpoint, y: -height },
2154
- { x: 0, y: -height / 2 }
2155
- ];
2156
- }
2157
- if (directions.has("up") && directions.has("down")) {
2158
- return [
2159
- // Bottom center
2160
- { x: width / 2, y: 0 },
2161
- // Left pont of bottom arrow
2162
- { x: 0, y: -padding2 },
2163
- { x: midpoint, y: -padding2 },
2164
- // Left top over vertical section
2165
- { x: midpoint, y: -height + padding2 },
2166
- { x: 0, y: -height + padding2 },
2167
- // Top of arrow
2168
- { x: width / 2, y: -height },
2169
- { x: width, y: -height + padding2 },
2170
- // Top of right vertical bar
2171
- { x: width - midpoint, y: -height + padding2 },
2172
- { x: width - midpoint, y: -padding2 },
2173
- { x: width, y: -padding2 }
2174
- ];
2175
- }
2176
- if (directions.has("right") && directions.has("up")) {
2177
- return [
2178
- { x: 0, y: 0 },
2179
- { x: width, y: -midpoint },
2180
- { x: 0, y: -height }
2181
- ];
2182
- }
2183
- if (directions.has("right") && directions.has("down")) {
2184
- return [
2185
- { x: 0, y: 0 },
2186
- { x: width, y: 0 },
2187
- { x: 0, y: -height }
2188
- ];
2189
- }
2190
- if (directions.has("left") && directions.has("up")) {
2191
- return [
2192
- { x: width, y: 0 },
2193
- { x: 0, y: -midpoint },
2194
- { x: width, y: -height }
2195
- ];
2196
- }
2197
- if (directions.has("left") && directions.has("down")) {
2198
- return [
2199
- { x: width, y: 0 },
2200
- { x: 0, y: 0 },
2201
- { x: width, y: -height }
2202
- ];
2203
- }
2204
- if (directions.has("right")) {
2205
- return [
2206
- { x: midpoint, y: -padding2 },
2207
- { x: midpoint, y: -padding2 },
2208
- { x: width - midpoint, y: -padding2 },
2209
- { x: width - midpoint, y: 0 },
2210
- { x: width, y: -height / 2 },
2211
- { x: width - midpoint, y: -height },
2212
- { x: width - midpoint, y: -height + padding2 },
2213
- // top left corner of arrow
2214
- { x: midpoint, y: -height + padding2 },
2215
- { x: midpoint, y: -height + padding2 }
2216
- ];
2217
- }
2218
- if (directions.has("left")) {
2219
- return [
2220
- { x: midpoint, y: 0 },
2221
- { x: midpoint, y: -padding2 },
2222
- // Two points, the right corners
2223
- { x: width - midpoint, y: -padding2 },
2224
- { x: width - midpoint, y: -height + padding2 },
2225
- { x: midpoint, y: -height + padding2 },
2226
- { x: midpoint, y: -height },
2227
- { x: 0, y: -height / 2 }
2228
- ];
2229
- }
2230
- if (directions.has("up")) {
2231
- return [
2232
- // Bottom center
2233
- { x: midpoint, y: -padding2 },
2234
- // Left top over vertical section
2235
- { x: midpoint, y: -height + padding2 },
2236
- { x: 0, y: -height + padding2 },
2237
- // Top of arrow
2238
- { x: width / 2, y: -height },
2239
- { x: width, y: -height + padding2 },
2240
- // Top of right vertical bar
2241
- { x: width - midpoint, y: -height + padding2 },
2242
- { x: width - midpoint, y: -padding2 }
2243
- ];
2244
- }
2245
- if (directions.has("down")) {
2246
- return [
2247
- // Bottom center
2248
- { x: width / 2, y: 0 },
2249
- // Left pont of bottom arrow
2250
- { x: 0, y: -padding2 },
2251
- { x: midpoint, y: -padding2 },
2252
- // Left top over vertical section
2253
- { x: midpoint, y: -height + padding2 },
2254
- { x: width - midpoint, y: -height + padding2 },
2255
- { x: width - midpoint, y: -padding2 },
2256
- { x: width, y: -padding2 }
2257
- ];
2258
- }
2259
- return [{ x: 0, y: 0 }];
2260
- }, "getArrowPoints");
2261
- function intersectNode(node, point2) {
2262
- return node.intersect(point2);
2263
- }
2264
- __name(intersectNode, "intersectNode");
2265
- var intersect_node_default = intersectNode;
2266
- function intersectEllipse(node, rx, ry, point2) {
2267
- var cx = node.x;
2268
- var cy = node.y;
2269
- var px = cx - point2.x;
2270
- var py = cy - point2.y;
2271
- var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);
2272
- var dx = Math.abs(rx * ry * px / det);
2273
- if (point2.x < cx) {
2274
- dx = -dx;
2275
- }
2276
- var dy = Math.abs(rx * ry * py / det);
2277
- if (point2.y < cy) {
2278
- dy = -dy;
2279
- }
2280
- return { x: cx + dx, y: cy + dy };
2281
- }
2282
- __name(intersectEllipse, "intersectEllipse");
2283
- var intersect_ellipse_default = intersectEllipse;
2284
- function intersectCircle(node, rx, point2) {
2285
- return intersect_ellipse_default(node, rx, rx, point2);
2286
- }
2287
- __name(intersectCircle, "intersectCircle");
2288
- var intersect_circle_default = intersectCircle;
2289
- function intersectLine(p1, p2, q1, q2) {
2290
- var a1, a2, b1, b2, c1, c2;
2291
- var r1, r2, r3, r4;
2292
- var denom, offset, num;
2293
- var x, y;
2294
- a1 = p2.y - p1.y;
2295
- b1 = p1.x - p2.x;
2296
- c1 = p2.x * p1.y - p1.x * p2.y;
2297
- r3 = a1 * q1.x + b1 * q1.y + c1;
2298
- r4 = a1 * q2.x + b1 * q2.y + c1;
2299
- if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {
2300
- return;
2301
- }
2302
- a2 = q2.y - q1.y;
2303
- b2 = q1.x - q2.x;
2304
- c2 = q2.x * q1.y - q1.x * q2.y;
2305
- r1 = a2 * p1.x + b2 * p1.y + c2;
2306
- r2 = a2 * p2.x + b2 * p2.y + c2;
2307
- if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {
2308
- return;
2309
- }
2310
- denom = a1 * b2 - a2 * b1;
2311
- if (denom === 0) {
2312
- return;
2313
- }
2314
- offset = Math.abs(denom / 2);
2315
- num = b1 * c2 - b2 * c1;
2316
- x = num < 0 ? (num - offset) / denom : (num + offset) / denom;
2317
- num = a2 * c1 - a1 * c2;
2318
- y = num < 0 ? (num - offset) / denom : (num + offset) / denom;
2319
- return { x, y };
2320
- }
2321
- __name(intersectLine, "intersectLine");
2322
- function sameSign(r1, r2) {
2323
- return r1 * r2 > 0;
2324
- }
2325
- __name(sameSign, "sameSign");
2326
- var intersect_line_default = intersectLine;
2327
- var intersect_polygon_default = intersectPolygon;
2328
- function intersectPolygon(node, polyPoints, point2) {
2329
- var x1 = node.x;
2330
- var y1 = node.y;
2331
- var intersections = [];
2332
- var minX = Number.POSITIVE_INFINITY;
2333
- var minY = Number.POSITIVE_INFINITY;
2334
- if (typeof polyPoints.forEach === "function") {
2335
- polyPoints.forEach(function(entry) {
2336
- minX = Math.min(minX, entry.x);
2337
- minY = Math.min(minY, entry.y);
2338
- });
2339
- } else {
2340
- minX = Math.min(minX, polyPoints.x);
2341
- minY = Math.min(minY, polyPoints.y);
2342
- }
2343
- var left = x1 - node.width / 2 - minX;
2344
- var top = y1 - node.height / 2 - minY;
2345
- for (var i = 0; i < polyPoints.length; i++) {
2346
- var p1 = polyPoints[i];
2347
- var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];
2348
- var intersect = intersect_line_default(
2349
- node,
2350
- point2,
2351
- { x: left + p1.x, y: top + p1.y },
2352
- { x: left + p2.x, y: top + p2.y }
2353
- );
2354
- if (intersect) {
2355
- intersections.push(intersect);
2356
- }
2357
- }
2358
- if (!intersections.length) {
2359
- return node;
2360
- }
2361
- if (intersections.length > 1) {
2362
- intersections.sort(function(p, q) {
2363
- var pdx = p.x - point2.x;
2364
- var pdy = p.y - point2.y;
2365
- var distp = Math.sqrt(pdx * pdx + pdy * pdy);
2366
- var qdx = q.x - point2.x;
2367
- var qdy = q.y - point2.y;
2368
- var distq = Math.sqrt(qdx * qdx + qdy * qdy);
2369
- return distp < distq ? -1 : distp === distq ? 0 : 1;
2370
- });
2371
- }
2372
- return intersections[0];
2373
- }
2374
- __name(intersectPolygon, "intersectPolygon");
2375
- var intersectRect = /* @__PURE__ */ __name((node, point2) => {
2376
- var x = node.x;
2377
- var y = node.y;
2378
- var dx = point2.x - x;
2379
- var dy = point2.y - y;
2380
- var w = node.width / 2;
2381
- var h = node.height / 2;
2382
- var sx, sy;
2383
- if (Math.abs(dy) * w > Math.abs(dx) * h) {
2384
- if (dy < 0) {
2385
- h = -h;
2386
- }
2387
- sx = dy === 0 ? 0 : h * dx / dy;
2388
- sy = h;
2389
- } else {
2390
- if (dx < 0) {
2391
- w = -w;
2392
- }
2393
- sx = w;
2394
- sy = dx === 0 ? 0 : w * dy / dx;
2395
- }
2396
- return { x: x + sx, y: y + sy };
2397
- }, "intersectRect");
2398
- var intersect_rect_default = intersectRect;
2399
- var intersect_default = {
2400
- node: intersect_node_default,
2401
- circle: intersect_circle_default,
2402
- ellipse: intersect_ellipse_default,
2403
- polygon: intersect_polygon_default,
2404
- rect: intersect_rect_default
2405
- };
2406
- var labelHelper = /* @__PURE__ */ __name(async (parent, node, _classes, isNode) => {
2407
- const config2 = getConfig2();
2408
- let classes2;
2409
- const useHtmlLabels = node.useHtmlLabels || evaluate(config2.flowchart.htmlLabels);
2410
- if (!_classes) {
2411
- classes2 = "node default";
2412
- } else {
2413
- classes2 = _classes;
2414
- }
2415
- const shapeSvg = parent.insert("g").attr("class", classes2).attr("id", node.domId || node.id);
2416
- const label = shapeSvg.insert("g").attr("class", "label").attr("style", node.labelStyle);
2417
- let labelText;
2418
- if (node.labelText === void 0) {
2419
- labelText = "";
2420
- } else {
2421
- labelText = typeof node.labelText === "string" ? node.labelText : node.labelText[0];
2422
- }
2423
- const textNode = label.node();
2424
- let text;
2425
- if (node.labelType === "markdown") {
2426
- text = createText(
2427
- label,
2428
- sanitizeText(decodeEntities(labelText), config2),
2429
- {
2430
- useHtmlLabels,
2431
- width: node.width || config2.flowchart.wrappingWidth,
2432
- classes: "markdown-node-label"
2433
- },
2434
- config2
2435
- );
2436
- } else {
2437
- text = textNode.appendChild(
2438
- createLabel_default(sanitizeText(decodeEntities(labelText), config2), node.labelStyle, false, isNode)
2439
- );
2440
- }
2441
- let bbox = text.getBBox();
2442
- const halfPadding = node.padding / 2;
2443
- if (evaluate(config2.flowchart.htmlLabels)) {
2444
- const div = text.children[0];
2445
- const dv = select(text);
2446
- const images = div.getElementsByTagName("img");
2447
- if (images) {
2448
- const noImgText = labelText.replace(/<img[^>]*>/g, "").trim() === "";
2449
- await Promise.all(
2450
- [...images].map(
2451
- (img) => new Promise((res) => {
2452
- function setupImage() {
2453
- img.style.display = "flex";
2454
- img.style.flexDirection = "column";
2455
- if (noImgText) {
2456
- const bodyFontSize = config2.fontSize ? config2.fontSize : window.getComputedStyle(document.body).fontSize;
2457
- const enlargingFactor = 5;
2458
- const width = parseInt(bodyFontSize, 10) * enlargingFactor + "px";
2459
- img.style.minWidth = width;
2460
- img.style.maxWidth = width;
2461
- } else {
2462
- img.style.width = "100%";
2463
- }
2464
- res(img);
2465
- }
2466
- __name(setupImage, "setupImage");
2467
- setTimeout(() => {
2468
- if (img.complete) {
2469
- setupImage();
2470
- }
2471
- });
2472
- img.addEventListener("error", setupImage);
2473
- img.addEventListener("load", setupImage);
2474
- })
2475
- )
2476
- );
2477
- }
2478
- bbox = div.getBoundingClientRect();
2479
- dv.attr("width", bbox.width);
2480
- dv.attr("height", bbox.height);
2481
- }
2482
- if (useHtmlLabels) {
2483
- label.attr("transform", "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")");
2484
- } else {
2485
- label.attr("transform", "translate(0, " + -bbox.height / 2 + ")");
2486
- }
2487
- if (node.centerLabel) {
2488
- label.attr("transform", "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")");
2489
- }
2490
- label.insert("rect", ":first-child");
2491
- return { shapeSvg, bbox, halfPadding, label };
2492
- }, "labelHelper");
2493
- var updateNodeBounds = /* @__PURE__ */ __name((node, element) => {
2494
- const bbox = element.node().getBBox();
2495
- node.width = bbox.width;
2496
- node.height = bbox.height;
2497
- }, "updateNodeBounds");
2498
- function insertPolygonShape(parent, w, h, points) {
2499
- return parent.insert("polygon", ":first-child").attr(
2500
- "points",
2501
- points.map(function(d) {
2502
- return d.x + "," + d.y;
2503
- }).join(" ")
2504
- ).attr("class", "label-container").attr("transform", "translate(" + -w / 2 + "," + h / 2 + ")");
2505
- }
2506
- __name(insertPolygonShape, "insertPolygonShape");
2507
- var note = /* @__PURE__ */ __name(async (parent, node) => {
2508
- const useHtmlLabels = node.useHtmlLabels || getConfig2().flowchart.htmlLabels;
2509
- if (!useHtmlLabels) {
2510
- node.centerLabel = true;
2511
- }
2512
- const { shapeSvg, bbox, halfPadding } = await labelHelper(
2513
- parent,
2514
- node,
2515
- "node " + node.classes,
2516
- true
2517
- );
2518
- log.info("Classes = ", node.classes);
2519
- const rect2 = shapeSvg.insert("rect", ":first-child");
2520
- rect2.attr("rx", node.rx).attr("ry", node.ry).attr("x", -bbox.width / 2 - halfPadding).attr("y", -bbox.height / 2 - halfPadding).attr("width", bbox.width + node.padding).attr("height", bbox.height + node.padding);
2521
- updateNodeBounds(node, rect2);
2522
- node.intersect = function(point2) {
2523
- return intersect_default.rect(node, point2);
2524
- };
2525
- return shapeSvg;
2526
- }, "note");
2527
- var note_default = note;
2528
- var formatClass = /* @__PURE__ */ __name((str) => {
2529
- if (str) {
2530
- return " " + str;
2531
- }
2532
- return "";
2533
- }, "formatClass");
2534
- var getClassesFromNode = /* @__PURE__ */ __name((node, otherClasses) => {
2535
- return `${otherClasses ? otherClasses : "node default"}${formatClass(node.classes)} ${formatClass(
2536
- node.class
2537
- )}`;
2538
- }, "getClassesFromNode");
2539
- var question = /* @__PURE__ */ __name(async (parent, node) => {
2540
- const { shapeSvg, bbox } = await labelHelper(
2541
- parent,
2542
- node,
2543
- getClassesFromNode(node, void 0),
2544
- true
2545
- );
2546
- const w = bbox.width + node.padding;
2547
- const h = bbox.height + node.padding;
2548
- const s = w + h;
2549
- const points = [
2550
- { x: s / 2, y: 0 },
2551
- { x: s, y: -s / 2 },
2552
- { x: s / 2, y: -s },
2553
- { x: 0, y: -s / 2 }
2554
- ];
2555
- log.info("Question main (Circle)");
2556
- const questionElem = insertPolygonShape(shapeSvg, s, s, points);
2557
- questionElem.attr("style", node.style);
2558
- updateNodeBounds(node, questionElem);
2559
- node.intersect = function(point2) {
2560
- log.warn("Intersect called");
2561
- return intersect_default.polygon(node, points, point2);
2562
- };
2563
- return shapeSvg;
2564
- }, "question");
2565
- var choice = /* @__PURE__ */ __name((parent, node) => {
2566
- const shapeSvg = parent.insert("g").attr("class", "node default").attr("id", node.domId || node.id);
2567
- const s = 28;
2568
- const points = [
2569
- { x: 0, y: s / 2 },
2570
- { x: s / 2, y: 0 },
2571
- { x: 0, y: -28 / 2 },
2572
- { x: -28 / 2, y: 0 }
2573
- ];
2574
- const choice2 = shapeSvg.insert("polygon", ":first-child").attr(
2575
- "points",
2576
- points.map(function(d) {
2577
- return d.x + "," + d.y;
2578
- }).join(" ")
2579
- );
2580
- choice2.attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28);
2581
- node.width = 28;
2582
- node.height = 28;
2583
- node.intersect = function(point2) {
2584
- return intersect_default.circle(node, 14, point2);
2585
- };
2586
- return shapeSvg;
2587
- }, "choice");
2588
- var hexagon = /* @__PURE__ */ __name(async (parent, node) => {
2589
- const { shapeSvg, bbox } = await labelHelper(
2590
- parent,
2591
- node,
2592
- getClassesFromNode(node, void 0),
2593
- true
2594
- );
2595
- const f = 4;
2596
- const h = bbox.height + node.padding;
2597
- const m = h / f;
2598
- const w = bbox.width + 2 * m + node.padding;
2599
- const points = [
2600
- { x: m, y: 0 },
2601
- { x: w - m, y: 0 },
2602
- { x: w, y: -h / 2 },
2603
- { x: w - m, y: -h },
2604
- { x: m, y: -h },
2605
- { x: 0, y: -h / 2 }
2606
- ];
2607
- const hex = insertPolygonShape(shapeSvg, w, h, points);
2608
- hex.attr("style", node.style);
2609
- updateNodeBounds(node, hex);
2610
- node.intersect = function(point2) {
2611
- return intersect_default.polygon(node, points, point2);
2612
- };
2613
- return shapeSvg;
2614
- }, "hexagon");
2615
- var block_arrow = /* @__PURE__ */ __name(async (parent, node) => {
2616
- const { shapeSvg, bbox } = await labelHelper(parent, node, void 0, true);
2617
- const f = 2;
2618
- const h = bbox.height + 2 * node.padding;
2619
- const m = h / f;
2620
- const w = bbox.width + 2 * m + node.padding;
2621
- const points = getArrowPoints(node.directions, bbox, node);
2622
- const blockArrow = insertPolygonShape(shapeSvg, w, h, points);
2623
- blockArrow.attr("style", node.style);
2624
- updateNodeBounds(node, blockArrow);
2625
- node.intersect = function(point2) {
2626
- return intersect_default.polygon(node, points, point2);
2627
- };
2628
- return shapeSvg;
2629
- }, "block_arrow");
2630
- var rect_left_inv_arrow = /* @__PURE__ */ __name(async (parent, node) => {
2631
- const { shapeSvg, bbox } = await labelHelper(
2632
- parent,
2633
- node,
2634
- getClassesFromNode(node, void 0),
2635
- true
2636
- );
2637
- const w = bbox.width + node.padding;
2638
- const h = bbox.height + node.padding;
2639
- const points = [
2640
- { x: -h / 2, y: 0 },
2641
- { x: w, y: 0 },
2642
- { x: w, y: -h },
2643
- { x: -h / 2, y: -h },
2644
- { x: 0, y: -h / 2 }
2645
- ];
2646
- const el = insertPolygonShape(shapeSvg, w, h, points);
2647
- el.attr("style", node.style);
2648
- node.width = w + h;
2649
- node.height = h;
2650
- node.intersect = function(point2) {
2651
- return intersect_default.polygon(node, points, point2);
2652
- };
2653
- return shapeSvg;
2654
- }, "rect_left_inv_arrow");
2655
- var lean_right = /* @__PURE__ */ __name(async (parent, node) => {
2656
- const { shapeSvg, bbox } = await labelHelper(parent, node, getClassesFromNode(node), true);
2657
- const w = bbox.width + node.padding;
2658
- const h = bbox.height + node.padding;
2659
- const points = [
2660
- { x: -2 * h / 6, y: 0 },
2661
- { x: w - h / 6, y: 0 },
2662
- { x: w + 2 * h / 6, y: -h },
2663
- { x: h / 6, y: -h }
2664
- ];
2665
- const el = insertPolygonShape(shapeSvg, w, h, points);
2666
- el.attr("style", node.style);
2667
- updateNodeBounds(node, el);
2668
- node.intersect = function(point2) {
2669
- return intersect_default.polygon(node, points, point2);
2670
- };
2671
- return shapeSvg;
2672
- }, "lean_right");
2673
- var lean_left = /* @__PURE__ */ __name(async (parent, node) => {
2674
- const { shapeSvg, bbox } = await labelHelper(
2675
- parent,
2676
- node,
2677
- getClassesFromNode(node, void 0),
2678
- true
2679
- );
2680
- const w = bbox.width + node.padding;
2681
- const h = bbox.height + node.padding;
2682
- const points = [
2683
- { x: 2 * h / 6, y: 0 },
2684
- { x: w + h / 6, y: 0 },
2685
- { x: w - 2 * h / 6, y: -h },
2686
- { x: -h / 6, y: -h }
2687
- ];
2688
- const el = insertPolygonShape(shapeSvg, w, h, points);
2689
- el.attr("style", node.style);
2690
- updateNodeBounds(node, el);
2691
- node.intersect = function(point2) {
2692
- return intersect_default.polygon(node, points, point2);
2693
- };
2694
- return shapeSvg;
2695
- }, "lean_left");
2696
- var trapezoid = /* @__PURE__ */ __name(async (parent, node) => {
2697
- const { shapeSvg, bbox } = await labelHelper(
2698
- parent,
2699
- node,
2700
- getClassesFromNode(node, void 0),
2701
- true
2702
- );
2703
- const w = bbox.width + node.padding;
2704
- const h = bbox.height + node.padding;
2705
- const points = [
2706
- { x: -2 * h / 6, y: 0 },
2707
- { x: w + 2 * h / 6, y: 0 },
2708
- { x: w - h / 6, y: -h },
2709
- { x: h / 6, y: -h }
2710
- ];
2711
- const el = insertPolygonShape(shapeSvg, w, h, points);
2712
- el.attr("style", node.style);
2713
- updateNodeBounds(node, el);
2714
- node.intersect = function(point2) {
2715
- return intersect_default.polygon(node, points, point2);
2716
- };
2717
- return shapeSvg;
2718
- }, "trapezoid");
2719
- var inv_trapezoid = /* @__PURE__ */ __name(async (parent, node) => {
2720
- const { shapeSvg, bbox } = await labelHelper(
2721
- parent,
2722
- node,
2723
- getClassesFromNode(node, void 0),
2724
- true
2725
- );
2726
- const w = bbox.width + node.padding;
2727
- const h = bbox.height + node.padding;
2728
- const points = [
2729
- { x: h / 6, y: 0 },
2730
- { x: w - h / 6, y: 0 },
2731
- { x: w + 2 * h / 6, y: -h },
2732
- { x: -2 * h / 6, y: -h }
2733
- ];
2734
- const el = insertPolygonShape(shapeSvg, w, h, points);
2735
- el.attr("style", node.style);
2736
- updateNodeBounds(node, el);
2737
- node.intersect = function(point2) {
2738
- return intersect_default.polygon(node, points, point2);
2739
- };
2740
- return shapeSvg;
2741
- }, "inv_trapezoid");
2742
- var rect_right_inv_arrow = /* @__PURE__ */ __name(async (parent, node) => {
2743
- const { shapeSvg, bbox } = await labelHelper(
2744
- parent,
2745
- node,
2746
- getClassesFromNode(node, void 0),
2747
- true
2748
- );
2749
- const w = bbox.width + node.padding;
2750
- const h = bbox.height + node.padding;
2751
- const points = [
2752
- { x: 0, y: 0 },
2753
- { x: w + h / 2, y: 0 },
2754
- { x: w, y: -h / 2 },
2755
- { x: w + h / 2, y: -h },
2756
- { x: 0, y: -h }
2757
- ];
2758
- const el = insertPolygonShape(shapeSvg, w, h, points);
2759
- el.attr("style", node.style);
2760
- updateNodeBounds(node, el);
2761
- node.intersect = function(point2) {
2762
- return intersect_default.polygon(node, points, point2);
2763
- };
2764
- return shapeSvg;
2765
- }, "rect_right_inv_arrow");
2766
- var cylinder = /* @__PURE__ */ __name(async (parent, node) => {
2767
- const { shapeSvg, bbox } = await labelHelper(
2768
- parent,
2769
- node,
2770
- getClassesFromNode(node, void 0),
2771
- true
2772
- );
2773
- const w = bbox.width + node.padding;
2774
- const rx = w / 2;
2775
- const ry = rx / (2.5 + w / 50);
2776
- const h = bbox.height + ry + node.padding;
2777
- const shape = "M 0," + ry + " a " + rx + "," + ry + " 0,0,0 " + w + " 0 a " + rx + "," + ry + " 0,0,0 " + -w + " 0 l 0," + h + " a " + rx + "," + ry + " 0,0,0 " + w + " 0 l 0," + -h;
2778
- const el = shapeSvg.attr("label-offset-y", ry).insert("path", ":first-child").attr("style", node.style).attr("d", shape).attr("transform", "translate(" + -w / 2 + "," + -(h / 2 + ry) + ")");
2779
- updateNodeBounds(node, el);
2780
- node.intersect = function(point2) {
2781
- const pos = intersect_default.rect(node, point2);
2782
- const x = pos.x - node.x;
2783
- if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {
2784
- let y = ry * ry * (1 - x * x / (rx * rx));
2785
- if (y != 0) {
2786
- y = Math.sqrt(y);
2787
- }
2788
- y = ry - y;
2789
- if (point2.y - node.y > 0) {
2790
- y = -y;
2791
- }
2792
- pos.y += y;
2793
- }
2794
- return pos;
2795
- };
2796
- return shapeSvg;
2797
- }, "cylinder");
2798
- var rect = /* @__PURE__ */ __name(async (parent, node) => {
2799
- const { shapeSvg, bbox, halfPadding } = await labelHelper(
2800
- parent,
2801
- node,
2802
- "node " + node.classes + " " + node.class,
2803
- true
2804
- );
2805
- const rect2 = shapeSvg.insert("rect", ":first-child");
2806
- const totalWidth = node.positioned ? node.width : bbox.width + node.padding;
2807
- const totalHeight = node.positioned ? node.height : bbox.height + node.padding;
2808
- const x = node.positioned ? -totalWidth / 2 : -bbox.width / 2 - halfPadding;
2809
- const y = node.positioned ? -totalHeight / 2 : -bbox.height / 2 - halfPadding;
2810
- rect2.attr("class", "basic label-container").attr("style", node.style).attr("rx", node.rx).attr("ry", node.ry).attr("x", x).attr("y", y).attr("width", totalWidth).attr("height", totalHeight);
2811
- if (node.props) {
2812
- const propKeys = new Set(Object.keys(node.props));
2813
- if (node.props.borders) {
2814
- applyNodePropertyBorders(rect2, node.props.borders, totalWidth, totalHeight);
2815
- propKeys.delete("borders");
2816
- }
2817
- propKeys.forEach((propKey) => {
2818
- log.warn(`Unknown node property ${propKey}`);
2819
- });
2820
- }
2821
- updateNodeBounds(node, rect2);
2822
- node.intersect = function(point2) {
2823
- return intersect_default.rect(node, point2);
2824
- };
2825
- return shapeSvg;
2826
- }, "rect");
2827
- var composite = /* @__PURE__ */ __name(async (parent, node) => {
2828
- const { shapeSvg, bbox, halfPadding } = await labelHelper(
2829
- parent,
2830
- node,
2831
- "node " + node.classes,
2832
- true
2833
- );
2834
- const rect2 = shapeSvg.insert("rect", ":first-child");
2835
- const totalWidth = node.positioned ? node.width : bbox.width + node.padding;
2836
- const totalHeight = node.positioned ? node.height : bbox.height + node.padding;
2837
- const x = node.positioned ? -totalWidth / 2 : -bbox.width / 2 - halfPadding;
2838
- const y = node.positioned ? -totalHeight / 2 : -bbox.height / 2 - halfPadding;
2839
- rect2.attr("class", "basic cluster composite label-container").attr("style", node.style).attr("rx", node.rx).attr("ry", node.ry).attr("x", x).attr("y", y).attr("width", totalWidth).attr("height", totalHeight);
2840
- if (node.props) {
2841
- const propKeys = new Set(Object.keys(node.props));
2842
- if (node.props.borders) {
2843
- applyNodePropertyBorders(rect2, node.props.borders, totalWidth, totalHeight);
2844
- propKeys.delete("borders");
2845
- }
2846
- propKeys.forEach((propKey) => {
2847
- log.warn(`Unknown node property ${propKey}`);
2848
- });
2849
- }
2850
- updateNodeBounds(node, rect2);
2851
- node.intersect = function(point2) {
2852
- return intersect_default.rect(node, point2);
2853
- };
2854
- return shapeSvg;
2855
- }, "composite");
2856
- var labelRect = /* @__PURE__ */ __name(async (parent, node) => {
2857
- const { shapeSvg } = await labelHelper(parent, node, "label", true);
2858
- log.trace("Classes = ", node.class);
2859
- const rect2 = shapeSvg.insert("rect", ":first-child");
2860
- const totalWidth = 0;
2861
- const totalHeight = 0;
2862
- rect2.attr("width", totalWidth).attr("height", totalHeight);
2863
- shapeSvg.attr("class", "label edgeLabel");
2864
- if (node.props) {
2865
- const propKeys = new Set(Object.keys(node.props));
2866
- if (node.props.borders) {
2867
- applyNodePropertyBorders(rect2, node.props.borders, totalWidth, totalHeight);
2868
- propKeys.delete("borders");
2869
- }
2870
- propKeys.forEach((propKey) => {
2871
- log.warn(`Unknown node property ${propKey}`);
2872
- });
2873
- }
2874
- updateNodeBounds(node, rect2);
2875
- node.intersect = function(point2) {
2876
- return intersect_default.rect(node, point2);
2877
- };
2878
- return shapeSvg;
2879
- }, "labelRect");
2880
- function applyNodePropertyBorders(rect2, borders, totalWidth, totalHeight) {
2881
- const strokeDashArray = [];
2882
- const addBorder = /* @__PURE__ */ __name((length) => {
2883
- strokeDashArray.push(length, 0);
2884
- }, "addBorder");
2885
- const skipBorder = /* @__PURE__ */ __name((length) => {
2886
- strokeDashArray.push(0, length);
2887
- }, "skipBorder");
2888
- if (borders.includes("t")) {
2889
- log.debug("add top border");
2890
- addBorder(totalWidth);
2891
- } else {
2892
- skipBorder(totalWidth);
2893
- }
2894
- if (borders.includes("r")) {
2895
- log.debug("add right border");
2896
- addBorder(totalHeight);
2897
- } else {
2898
- skipBorder(totalHeight);
2899
- }
2900
- if (borders.includes("b")) {
2901
- log.debug("add bottom border");
2902
- addBorder(totalWidth);
2903
- } else {
2904
- skipBorder(totalWidth);
2905
- }
2906
- if (borders.includes("l")) {
2907
- log.debug("add left border");
2908
- addBorder(totalHeight);
2909
- } else {
2910
- skipBorder(totalHeight);
2911
- }
2912
- rect2.attr("stroke-dasharray", strokeDashArray.join(" "));
2913
- }
2914
- __name(applyNodePropertyBorders, "applyNodePropertyBorders");
2915
- var rectWithTitle = /* @__PURE__ */ __name((parent, node) => {
2916
- let classes2;
2917
- if (!node.classes) {
2918
- classes2 = "node default";
2919
- } else {
2920
- classes2 = "node " + node.classes;
2921
- }
2922
- const shapeSvg = parent.insert("g").attr("class", classes2).attr("id", node.domId || node.id);
2923
- const rect2 = shapeSvg.insert("rect", ":first-child");
2924
- const innerLine = shapeSvg.insert("line");
2925
- const label = shapeSvg.insert("g").attr("class", "label");
2926
- const text2 = node.labelText.flat ? node.labelText.flat() : node.labelText;
2927
- let title = "";
2928
- if (typeof text2 === "object") {
2929
- title = text2[0];
2930
- } else {
2931
- title = text2;
2932
- }
2933
- log.info("Label text abc79", title, text2, typeof text2 === "object");
2934
- const text = label.node().appendChild(createLabel_default(title, node.labelStyle, true, true));
2935
- let bbox = { width: 0, height: 0 };
2936
- if (evaluate(getConfig2().flowchart.htmlLabels)) {
2937
- const div = text.children[0];
2938
- const dv = select(text);
2939
- bbox = div.getBoundingClientRect();
2940
- dv.attr("width", bbox.width);
2941
- dv.attr("height", bbox.height);
2942
- }
2943
- log.info("Text 2", text2);
2944
- const textRows = text2.slice(1, text2.length);
2945
- let titleBox = text.getBBox();
2946
- const descr = label.node().appendChild(
2947
- createLabel_default(textRows.join ? textRows.join("<br/>") : textRows, node.labelStyle, true, true)
2948
- );
2949
- if (evaluate(getConfig2().flowchart.htmlLabels)) {
2950
- const div = descr.children[0];
2951
- const dv = select(descr);
2952
- bbox = div.getBoundingClientRect();
2953
- dv.attr("width", bbox.width);
2954
- dv.attr("height", bbox.height);
2955
- }
2956
- const halfPadding = node.padding / 2;
2957
- select(descr).attr(
2958
- "transform",
2959
- "translate( " + // (titleBox.width - bbox.width) / 2 +
2960
- (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ", " + (titleBox.height + halfPadding + 5) + ")"
2961
- );
2962
- select(text).attr(
2963
- "transform",
2964
- "translate( " + // (titleBox.width - bbox.width) / 2 +
2965
- (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ", 0)"
2966
- );
2967
- bbox = label.node().getBBox();
2968
- label.attr(
2969
- "transform",
2970
- "translate(" + -bbox.width / 2 + ", " + (-bbox.height / 2 - halfPadding + 3) + ")"
2971
- );
2972
- rect2.attr("class", "outer title-state").attr("x", -bbox.width / 2 - halfPadding).attr("y", -bbox.height / 2 - halfPadding).attr("width", bbox.width + node.padding).attr("height", bbox.height + node.padding);
2973
- innerLine.attr("class", "divider").attr("x1", -bbox.width / 2 - halfPadding).attr("x2", bbox.width / 2 + halfPadding).attr("y1", -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr("y2", -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);
2974
- updateNodeBounds(node, rect2);
2975
- node.intersect = function(point2) {
2976
- return intersect_default.rect(node, point2);
2977
- };
2978
- return shapeSvg;
2979
- }, "rectWithTitle");
2980
- var stadium = /* @__PURE__ */ __name(async (parent, node) => {
2981
- const { shapeSvg, bbox } = await labelHelper(
2982
- parent,
2983
- node,
2984
- getClassesFromNode(node, void 0),
2985
- true
2986
- );
2987
- const h = bbox.height + node.padding;
2988
- const w = bbox.width + h / 4 + node.padding;
2989
- const rect2 = shapeSvg.insert("rect", ":first-child").attr("style", node.style).attr("rx", h / 2).attr("ry", h / 2).attr("x", -w / 2).attr("y", -h / 2).attr("width", w).attr("height", h);
2990
- updateNodeBounds(node, rect2);
2991
- node.intersect = function(point2) {
2992
- return intersect_default.rect(node, point2);
2993
- };
2994
- return shapeSvg;
2995
- }, "stadium");
2996
- var circle2 = /* @__PURE__ */ __name(async (parent, node) => {
2997
- const { shapeSvg, bbox, halfPadding } = await labelHelper(
2998
- parent,
2999
- node,
3000
- getClassesFromNode(node, void 0),
3001
- true
3002
- );
3003
- const circle3 = shapeSvg.insert("circle", ":first-child");
3004
- circle3.attr("style", node.style).attr("rx", node.rx).attr("ry", node.ry).attr("r", bbox.width / 2 + halfPadding).attr("width", bbox.width + node.padding).attr("height", bbox.height + node.padding);
3005
- log.info("Circle main");
3006
- updateNodeBounds(node, circle3);
3007
- node.intersect = function(point2) {
3008
- log.info("Circle intersect", node, bbox.width / 2 + halfPadding, point2);
3009
- return intersect_default.circle(node, bbox.width / 2 + halfPadding, point2);
3010
- };
3011
- return shapeSvg;
3012
- }, "circle");
3013
- var doublecircle = /* @__PURE__ */ __name(async (parent, node) => {
3014
- const { shapeSvg, bbox, halfPadding } = await labelHelper(
3015
- parent,
3016
- node,
3017
- getClassesFromNode(node, void 0),
3018
- true
3019
- );
3020
- const gap = 5;
3021
- const circleGroup = shapeSvg.insert("g", ":first-child");
3022
- const outerCircle = circleGroup.insert("circle");
3023
- const innerCircle = circleGroup.insert("circle");
3024
- circleGroup.attr("class", node.class);
3025
- outerCircle.attr("style", node.style).attr("rx", node.rx).attr("ry", node.ry).attr("r", bbox.width / 2 + halfPadding + gap).attr("width", bbox.width + node.padding + gap * 2).attr("height", bbox.height + node.padding + gap * 2);
3026
- innerCircle.attr("style", node.style).attr("rx", node.rx).attr("ry", node.ry).attr("r", bbox.width / 2 + halfPadding).attr("width", bbox.width + node.padding).attr("height", bbox.height + node.padding);
3027
- log.info("DoubleCircle main");
3028
- updateNodeBounds(node, outerCircle);
3029
- node.intersect = function(point2) {
3030
- log.info("DoubleCircle intersect", node, bbox.width / 2 + halfPadding + gap, point2);
3031
- return intersect_default.circle(node, bbox.width / 2 + halfPadding + gap, point2);
3032
- };
3033
- return shapeSvg;
3034
- }, "doublecircle");
3035
- var subroutine = /* @__PURE__ */ __name(async (parent, node) => {
3036
- const { shapeSvg, bbox } = await labelHelper(
3037
- parent,
3038
- node,
3039
- getClassesFromNode(node, void 0),
3040
- true
3041
- );
3042
- const w = bbox.width + node.padding;
3043
- const h = bbox.height + node.padding;
3044
- const points = [
3045
- { x: 0, y: 0 },
3046
- { x: w, y: 0 },
3047
- { x: w, y: -h },
3048
- { x: 0, y: -h },
3049
- { x: 0, y: 0 },
3050
- { x: -8, y: 0 },
3051
- { x: w + 8, y: 0 },
3052
- { x: w + 8, y: -h },
3053
- { x: -8, y: -h },
3054
- { x: -8, y: 0 }
3055
- ];
3056
- const el = insertPolygonShape(shapeSvg, w, h, points);
3057
- el.attr("style", node.style);
3058
- updateNodeBounds(node, el);
3059
- node.intersect = function(point2) {
3060
- return intersect_default.polygon(node, points, point2);
3061
- };
3062
- return shapeSvg;
3063
- }, "subroutine");
3064
- var start = /* @__PURE__ */ __name((parent, node) => {
3065
- const shapeSvg = parent.insert("g").attr("class", "node default").attr("id", node.domId || node.id);
3066
- const circle3 = shapeSvg.insert("circle", ":first-child");
3067
- circle3.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14);
3068
- updateNodeBounds(node, circle3);
3069
- node.intersect = function(point2) {
3070
- return intersect_default.circle(node, 7, point2);
3071
- };
3072
- return shapeSvg;
3073
- }, "start");
3074
- var forkJoin = /* @__PURE__ */ __name((parent, node, dir) => {
3075
- const shapeSvg = parent.insert("g").attr("class", "node default").attr("id", node.domId || node.id);
3076
- let width = 70;
3077
- let height = 10;
3078
- if (dir === "LR") {
3079
- width = 10;
3080
- height = 70;
3081
- }
3082
- const shape = shapeSvg.append("rect").attr("x", -1 * width / 2).attr("y", -1 * height / 2).attr("width", width).attr("height", height).attr("class", "fork-join");
3083
- updateNodeBounds(node, shape);
3084
- node.height = node.height + node.padding / 2;
3085
- node.width = node.width + node.padding / 2;
3086
- node.intersect = function(point2) {
3087
- return intersect_default.rect(node, point2);
3088
- };
3089
- return shapeSvg;
3090
- }, "forkJoin");
3091
- var end = /* @__PURE__ */ __name((parent, node) => {
3092
- const shapeSvg = parent.insert("g").attr("class", "node default").attr("id", node.domId || node.id);
3093
- const innerCircle = shapeSvg.insert("circle", ":first-child");
3094
- const circle3 = shapeSvg.insert("circle", ":first-child");
3095
- circle3.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14);
3096
- innerCircle.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10);
3097
- updateNodeBounds(node, circle3);
3098
- node.intersect = function(point2) {
3099
- return intersect_default.circle(node, 7, point2);
3100
- };
3101
- return shapeSvg;
3102
- }, "end");
3103
- var class_box = /* @__PURE__ */ __name((parent, node) => {
3104
- var _a2;
3105
- const halfPadding = node.padding / 2;
3106
- const rowPadding = 4;
3107
- const lineHeight = 8;
3108
- let classes2;
3109
- if (!node.classes) {
3110
- classes2 = "node default";
3111
- } else {
3112
- classes2 = "node " + node.classes;
3113
- }
3114
- const shapeSvg = parent.insert("g").attr("class", classes2).attr("id", node.domId || node.id);
3115
- const rect2 = shapeSvg.insert("rect", ":first-child");
3116
- const topLine = shapeSvg.insert("line");
3117
- const bottomLine = shapeSvg.insert("line");
3118
- let maxWidth = 0;
3119
- let maxHeight = rowPadding;
3120
- const labelContainer = shapeSvg.insert("g").attr("class", "label");
3121
- let verticalPos = 0;
3122
- const hasInterface = (_a2 = node.classData.annotations) == null ? void 0 : _a2[0];
3123
- const interfaceLabelText = node.classData.annotations[0] ? "«" + node.classData.annotations[0] + "»" : "";
3124
- const interfaceLabel = labelContainer.node().appendChild(createLabel_default(interfaceLabelText, node.labelStyle, true, true));
3125
- let interfaceBBox = interfaceLabel.getBBox();
3126
- if (evaluate(getConfig2().flowchart.htmlLabels)) {
3127
- const div = interfaceLabel.children[0];
3128
- const dv = select(interfaceLabel);
3129
- interfaceBBox = div.getBoundingClientRect();
3130
- dv.attr("width", interfaceBBox.width);
3131
- dv.attr("height", interfaceBBox.height);
3132
- }
3133
- if (node.classData.annotations[0]) {
3134
- maxHeight += interfaceBBox.height + rowPadding;
3135
- maxWidth += interfaceBBox.width;
3136
- }
3137
- let classTitleString = node.classData.label;
3138
- if (node.classData.type !== void 0 && node.classData.type !== "") {
3139
- if (getConfig2().flowchart.htmlLabels) {
3140
- classTitleString += "&lt;" + node.classData.type + "&gt;";
3141
- } else {
3142
- classTitleString += "<" + node.classData.type + ">";
3143
- }
3144
- }
3145
- const classTitleLabel = labelContainer.node().appendChild(createLabel_default(classTitleString, node.labelStyle, true, true));
3146
- select(classTitleLabel).attr("class", "classTitle");
3147
- let classTitleBBox = classTitleLabel.getBBox();
3148
- if (evaluate(getConfig2().flowchart.htmlLabels)) {
3149
- const div = classTitleLabel.children[0];
3150
- const dv = select(classTitleLabel);
3151
- classTitleBBox = div.getBoundingClientRect();
3152
- dv.attr("width", classTitleBBox.width);
3153
- dv.attr("height", classTitleBBox.height);
3154
- }
3155
- maxHeight += classTitleBBox.height + rowPadding;
3156
- if (classTitleBBox.width > maxWidth) {
3157
- maxWidth = classTitleBBox.width;
3158
- }
3159
- const classAttributes = [];
3160
- node.classData.members.forEach((member) => {
3161
- const parsedInfo = member.getDisplayDetails();
3162
- let parsedText = parsedInfo.displayText;
3163
- if (getConfig2().flowchart.htmlLabels) {
3164
- parsedText = parsedText.replace(/</g, "&lt;").replace(/>/g, "&gt;");
3165
- }
3166
- const lbl = labelContainer.node().appendChild(
3167
- createLabel_default(
3168
- parsedText,
3169
- parsedInfo.cssStyle ? parsedInfo.cssStyle : node.labelStyle,
3170
- true,
3171
- true
3172
- )
3173
- );
3174
- let bbox = lbl.getBBox();
3175
- if (evaluate(getConfig2().flowchart.htmlLabels)) {
3176
- const div = lbl.children[0];
3177
- const dv = select(lbl);
3178
- bbox = div.getBoundingClientRect();
3179
- dv.attr("width", bbox.width);
3180
- dv.attr("height", bbox.height);
3181
- }
3182
- if (bbox.width > maxWidth) {
3183
- maxWidth = bbox.width;
3184
- }
3185
- maxHeight += bbox.height + rowPadding;
3186
- classAttributes.push(lbl);
3187
- });
3188
- maxHeight += lineHeight;
3189
- const classMethods = [];
3190
- node.classData.methods.forEach((member) => {
3191
- const parsedInfo = member.getDisplayDetails();
3192
- let displayText = parsedInfo.displayText;
3193
- if (getConfig2().flowchart.htmlLabels) {
3194
- displayText = displayText.replace(/</g, "&lt;").replace(/>/g, "&gt;");
3195
- }
3196
- const lbl = labelContainer.node().appendChild(
3197
- createLabel_default(
3198
- displayText,
3199
- parsedInfo.cssStyle ? parsedInfo.cssStyle : node.labelStyle,
3200
- true,
3201
- true
3202
- )
3203
- );
3204
- let bbox = lbl.getBBox();
3205
- if (evaluate(getConfig2().flowchart.htmlLabels)) {
3206
- const div = lbl.children[0];
3207
- const dv = select(lbl);
3208
- bbox = div.getBoundingClientRect();
3209
- dv.attr("width", bbox.width);
3210
- dv.attr("height", bbox.height);
3211
- }
3212
- if (bbox.width > maxWidth) {
3213
- maxWidth = bbox.width;
3214
- }
3215
- maxHeight += bbox.height + rowPadding;
3216
- classMethods.push(lbl);
3217
- });
3218
- maxHeight += lineHeight;
3219
- if (hasInterface) {
3220
- let diffX2 = (maxWidth - interfaceBBox.width) / 2;
3221
- select(interfaceLabel).attr(
3222
- "transform",
3223
- "translate( " + (-1 * maxWidth / 2 + diffX2) + ", " + -1 * maxHeight / 2 + ")"
3224
- );
3225
- verticalPos = interfaceBBox.height + rowPadding;
3226
- }
3227
- let diffX = (maxWidth - classTitleBBox.width) / 2;
3228
- select(classTitleLabel).attr(
3229
- "transform",
3230
- "translate( " + (-1 * maxWidth / 2 + diffX) + ", " + (-1 * maxHeight / 2 + verticalPos) + ")"
3231
- );
3232
- verticalPos += classTitleBBox.height + rowPadding;
3233
- topLine.attr("class", "divider").attr("x1", -maxWidth / 2 - halfPadding).attr("x2", maxWidth / 2 + halfPadding).attr("y1", -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr("y2", -maxHeight / 2 - halfPadding + lineHeight + verticalPos);
3234
- verticalPos += lineHeight;
3235
- classAttributes.forEach((lbl) => {
3236
- select(lbl).attr(
3237
- "transform",
3238
- "translate( " + -maxWidth / 2 + ", " + (-1 * maxHeight / 2 + verticalPos + lineHeight / 2) + ")"
3239
- );
3240
- const memberBBox = lbl == null ? void 0 : lbl.getBBox();
3241
- verticalPos += ((memberBBox == null ? void 0 : memberBBox.height) ?? 0) + rowPadding;
3242
- });
3243
- verticalPos += lineHeight;
3244
- bottomLine.attr("class", "divider").attr("x1", -maxWidth / 2 - halfPadding).attr("x2", maxWidth / 2 + halfPadding).attr("y1", -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr("y2", -maxHeight / 2 - halfPadding + lineHeight + verticalPos);
3245
- verticalPos += lineHeight;
3246
- classMethods.forEach((lbl) => {
3247
- select(lbl).attr(
3248
- "transform",
3249
- "translate( " + -maxWidth / 2 + ", " + (-1 * maxHeight / 2 + verticalPos) + ")"
3250
- );
3251
- const memberBBox = lbl == null ? void 0 : lbl.getBBox();
3252
- verticalPos += ((memberBBox == null ? void 0 : memberBBox.height) ?? 0) + rowPadding;
3253
- });
3254
- rect2.attr("style", node.style).attr("class", "outer title-state").attr("x", -maxWidth / 2 - halfPadding).attr("y", -(maxHeight / 2) - halfPadding).attr("width", maxWidth + node.padding).attr("height", maxHeight + node.padding);
3255
- updateNodeBounds(node, rect2);
3256
- node.intersect = function(point2) {
3257
- return intersect_default.rect(node, point2);
3258
- };
3259
- return shapeSvg;
3260
- }, "class_box");
3261
- var shapes = {
3262
- rhombus: question,
3263
- composite,
3264
- question,
3265
- rect,
3266
- labelRect,
3267
- rectWithTitle,
3268
- choice,
3269
- circle: circle2,
3270
- doublecircle,
3271
- stadium,
3272
- hexagon,
3273
- block_arrow,
3274
- rect_left_inv_arrow,
3275
- lean_right,
3276
- lean_left,
3277
- trapezoid,
3278
- inv_trapezoid,
3279
- rect_right_inv_arrow,
3280
- cylinder,
3281
- start,
3282
- end,
3283
- note: note_default,
3284
- subroutine,
3285
- fork: forkJoin,
3286
- join: forkJoin,
3287
- class_box
3288
- };
3289
- var nodeElems = {};
3290
- var insertNode = /* @__PURE__ */ __name(async (elem, node, renderOptions) => {
3291
- let newEl;
3292
- let el;
3293
- if (node.link) {
3294
- let target;
3295
- if (getConfig2().securityLevel === "sandbox") {
3296
- target = "_top";
3297
- } else if (node.linkTarget) {
3298
- target = node.linkTarget || "_blank";
3299
- }
3300
- newEl = elem.insert("svg:a").attr("xlink:href", node.link).attr("target", target);
3301
- el = await shapes[node.shape](newEl, node, renderOptions);
3302
- } else {
3303
- el = await shapes[node.shape](elem, node, renderOptions);
3304
- newEl = el;
3305
- }
3306
- if (node.tooltip) {
3307
- el.attr("title", node.tooltip);
3308
- }
3309
- if (node.class) {
3310
- el.attr("class", "node default " + node.class);
3311
- }
3312
- nodeElems[node.id] = newEl;
3313
- if (node.haveCallback) {
3314
- nodeElems[node.id].attr("class", nodeElems[node.id].attr("class") + " clickable");
3315
- }
3316
- return newEl;
3317
- }, "insertNode");
3318
- var positionNode = /* @__PURE__ */ __name((node) => {
3319
- const el = nodeElems[node.id];
3320
- log.trace(
3321
- "Transforming node",
3322
- node.diff,
3323
- node,
3324
- "translate(" + (node.x - node.width / 2 - 5) + ", " + node.width / 2 + ")"
3325
- );
3326
- const padding2 = 8;
3327
- const diff = node.diff || 0;
3328
- if (node.clusterNode) {
3329
- el.attr(
3330
- "transform",
3331
- "translate(" + (node.x + diff - node.width / 2) + ", " + (node.y - node.height / 2 - padding2) + ")"
3332
- );
3333
- } else {
3334
- el.attr("transform", "translate(" + node.x + ", " + node.y + ")");
3335
- }
3336
- return diff;
3337
- }, "positionNode");
3338
- function getNodeFromBlock(block, db2, positioned = false) {
3339
- var _a2, _b2, _c;
3340
- const vertex = block;
3341
- let classStr = "default";
3342
- if ((((_a2 = vertex == null ? void 0 : vertex.classes) == null ? void 0 : _a2.length) || 0) > 0) {
3343
- classStr = ((vertex == null ? void 0 : vertex.classes) ?? []).join(" ");
3344
- }
3345
- classStr = classStr + " flowchart-label";
3346
- let radius = 0;
3347
- let shape = "";
3348
- let padding2;
3349
- switch (vertex.type) {
3350
- case "round":
3351
- radius = 5;
3352
- shape = "rect";
3353
- break;
3354
- case "composite":
3355
- radius = 0;
3356
- shape = "composite";
3357
- padding2 = 0;
3358
- break;
3359
- case "square":
3360
- shape = "rect";
3361
- break;
3362
- case "diamond":
3363
- shape = "question";
3364
- break;
3365
- case "hexagon":
3366
- shape = "hexagon";
3367
- break;
3368
- case "block_arrow":
3369
- shape = "block_arrow";
3370
- break;
3371
- case "odd":
3372
- shape = "rect_left_inv_arrow";
3373
- break;
3374
- case "lean_right":
3375
- shape = "lean_right";
3376
- break;
3377
- case "lean_left":
3378
- shape = "lean_left";
3379
- break;
3380
- case "trapezoid":
3381
- shape = "trapezoid";
3382
- break;
3383
- case "inv_trapezoid":
3384
- shape = "inv_trapezoid";
3385
- break;
3386
- case "rect_left_inv_arrow":
3387
- shape = "rect_left_inv_arrow";
3388
- break;
3389
- case "circle":
3390
- shape = "circle";
3391
- break;
3392
- case "ellipse":
3393
- shape = "ellipse";
3394
- break;
3395
- case "stadium":
3396
- shape = "stadium";
3397
- break;
3398
- case "subroutine":
3399
- shape = "subroutine";
3400
- break;
3401
- case "cylinder":
3402
- shape = "cylinder";
3403
- break;
3404
- case "group":
3405
- shape = "rect";
3406
- break;
3407
- case "doublecircle":
3408
- shape = "doublecircle";
3409
- break;
3410
- default:
3411
- shape = "rect";
3412
- }
3413
- const styles = getStylesFromArray((vertex == null ? void 0 : vertex.styles) ?? []);
3414
- const vertexText = vertex.label;
3415
- const bounds = vertex.size ?? { width: 0, height: 0, x: 0, y: 0 };
3416
- const node = {
3417
- labelStyle: styles.labelStyle,
3418
- shape,
3419
- labelText: vertexText,
3420
- rx: radius,
3421
- ry: radius,
3422
- class: classStr,
3423
- style: styles.style,
3424
- id: vertex.id,
3425
- directions: vertex.directions,
3426
- width: bounds.width,
3427
- height: bounds.height,
3428
- x: bounds.x,
3429
- y: bounds.y,
3430
- positioned,
3431
- intersect: void 0,
3432
- type: vertex.type,
3433
- padding: padding2 ?? ((_c = (_b2 = getConfig()) == null ? void 0 : _b2.block) == null ? void 0 : _c.padding) ?? 0
3434
- };
3435
- return node;
3436
- }
3437
- __name(getNodeFromBlock, "getNodeFromBlock");
3438
- async function calculateBlockSize(elem, block, db2) {
3439
- const node = getNodeFromBlock(block, db2, false);
3440
- if (node.type === "group") {
3441
- return;
3442
- }
3443
- const config2 = getConfig();
3444
- const nodeEl = await insertNode(elem, node, { config: config2 });
3445
- const boundingBox = nodeEl.node().getBBox();
3446
- const obj = db2.getBlock(node.id);
3447
- obj.size = { width: boundingBox.width, height: boundingBox.height, x: 0, y: 0, node: nodeEl };
3448
- db2.setBlock(obj);
3449
- nodeEl.remove();
3450
- }
3451
- __name(calculateBlockSize, "calculateBlockSize");
3452
- async function insertBlockPositioned(elem, block, db2) {
3453
- const node = getNodeFromBlock(block, db2, true);
3454
- const obj = db2.getBlock(node.id);
3455
- if (obj.type !== "space") {
3456
- const config2 = getConfig();
3457
- await insertNode(elem, node, { config: config2 });
3458
- block.intersect = node == null ? void 0 : node.intersect;
3459
- positionNode(node);
3460
- }
3461
- }
3462
- __name(insertBlockPositioned, "insertBlockPositioned");
3463
- async function performOperations(elem, blocks2, db2, operation) {
3464
- for (const block of blocks2) {
3465
- await operation(elem, block, db2);
3466
- if (block.children) {
3467
- await performOperations(elem, block.children, db2, operation);
3468
- }
3469
- }
3470
- }
3471
- __name(performOperations, "performOperations");
3472
- async function calculateBlockSizes(elem, blocks2, db2) {
3473
- await performOperations(elem, blocks2, db2, calculateBlockSize);
3474
- }
3475
- __name(calculateBlockSizes, "calculateBlockSizes");
3476
- async function insertBlocks(elem, blocks2, db2) {
3477
- await performOperations(elem, blocks2, db2, insertBlockPositioned);
3478
- }
3479
- __name(insertBlocks, "insertBlocks");
3480
- async function insertEdges(elem, edges, blocks2, db2, id) {
3481
- const g = new Graph({
3482
- multigraph: true,
3483
- compound: true
3484
- });
3485
- g.setGraph({
3486
- rankdir: "TB",
3487
- nodesep: 10,
3488
- ranksep: 10,
3489
- marginx: 8,
3490
- marginy: 8
3491
- });
3492
- for (const block of blocks2) {
3493
- if (block.size) {
3494
- g.setNode(block.id, {
3495
- width: block.size.width,
3496
- height: block.size.height,
3497
- intersect: block.intersect
3498
- });
3499
- }
3500
- }
3501
- for (const edge of edges) {
3502
- if (edge.start && edge.end) {
3503
- const startBlock = db2.getBlock(edge.start);
3504
- const endBlock = db2.getBlock(edge.end);
3505
- if ((startBlock == null ? void 0 : startBlock.size) && (endBlock == null ? void 0 : endBlock.size)) {
3506
- const start2 = startBlock.size;
3507
- const end2 = endBlock.size;
3508
- const points = [
3509
- { x: start2.x, y: start2.y },
3510
- { x: start2.x + (end2.x - start2.x) / 2, y: start2.y + (end2.y - start2.y) / 2 },
3511
- { x: end2.x, y: end2.y }
3512
- ];
3513
- insertEdge(
3514
- elem,
3515
- { v: edge.start, w: edge.end, name: edge.id },
3516
- {
3517
- ...edge,
3518
- arrowTypeEnd: edge.arrowTypeEnd,
3519
- arrowTypeStart: edge.arrowTypeStart,
3520
- points,
3521
- classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3522
- },
3523
- void 0,
3524
- "block",
3525
- g,
3526
- id
3527
- );
3528
- if (edge.label) {
3529
- await insertEdgeLabel(elem, {
3530
- ...edge,
3531
- label: edge.label,
3532
- labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
3533
- arrowTypeEnd: edge.arrowTypeEnd,
3534
- arrowTypeStart: edge.arrowTypeStart,
3535
- points,
3536
- classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3537
- });
3538
- positionEdgeLabel(
3539
- { ...edge, x: points[1].x, y: points[1].y },
3540
- {
3541
- originalPath: points
3542
- }
3543
- );
3544
- }
3545
- }
3546
- }
3547
- }
3548
- }
3549
- __name(insertEdges, "insertEdges");
3550
- var getClasses2 = /* @__PURE__ */ __name(function(text, diagObj) {
3551
- return diagObj.db.getClasses();
3552
- }, "getClasses");
3553
- var draw = /* @__PURE__ */ __name(async function(text, id, _version, diagObj) {
3554
- const { securityLevel, block: conf } = getConfig();
3555
- const db2 = diagObj.db;
3556
- let sandboxElement;
3557
- if (securityLevel === "sandbox") {
3558
- sandboxElement = select("#i" + id);
3559
- }
3560
- const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
3561
- const svg = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
3562
- const markers2 = ["point", "circle", "cross"];
3563
- markers_default(svg, markers2, diagObj.type, id);
3564
- const bl = db2.getBlocks();
3565
- const blArr = db2.getBlocksFlat();
3566
- const edges = db2.getEdges();
3567
- const nodes = svg.insert("g").attr("class", "block");
3568
- await calculateBlockSizes(nodes, bl, db2);
3569
- const bounds = layout(db2);
3570
- await insertBlocks(nodes, bl, db2);
3571
- await insertEdges(nodes, edges, blArr, db2, id);
3572
- if (bounds) {
3573
- const bounds2 = bounds;
3574
- const magicFactor = Math.max(1, Math.round(0.125 * (bounds2.width / bounds2.height)));
3575
- const height = bounds2.height + magicFactor + 10;
3576
- const width = bounds2.width + 10;
3577
- const { useMaxWidth } = conf;
3578
- configureSvgSize(svg, height, width, !!useMaxWidth);
3579
- log.debug("Here Bounds", bounds, bounds2);
3580
- svg.attr(
3581
- "viewBox",
3582
- `${bounds2.x - 5} ${bounds2.y - 5} ${bounds2.width + 10} ${bounds2.height + 10}`
3583
- );
3584
- }
3585
- }, "draw");
3586
- var blockRenderer_default = {
3587
- draw,
3588
- getClasses: getClasses2
3589
- };
3590
- var diagram = {
3591
- parser: block_default,
3592
- db: blockDB_default,
3593
- renderer: blockRenderer_default,
3594
- styles: styles_default
3595
- };
3596
- export {
3597
- diagram
3598
- };