codicent-app-sdk 0.3.114 → 0.3.115

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 (1456) hide show
  1. package/dist/cjs/config/index.d.ts +1 -0
  2. package/dist/cjs/config/index.d.ts.map +1 -1
  3. package/dist/cjs/config/index.js +1 -1
  4. package/dist/cjs/hooks/useRealtimeVoiceAI.d.ts +1 -1
  5. package/dist/cjs/hooks/useRealtimeVoiceAI.d.ts.map +1 -1
  6. package/dist/cjs/hooks/useRealtimeVoiceAI.js +1 -1
  7. package/dist/cjs/services/codicent.d.ts +4 -3
  8. package/dist/cjs/services/codicent.d.ts.map +1 -1
  9. package/dist/cjs/services/codicent.js +1 -1
  10. package/dist/esm/config/index.d.ts +1 -0
  11. package/dist/esm/config/index.d.ts.map +1 -1
  12. package/dist/esm/config/index.js +1 -1
  13. package/dist/esm/hooks/useRealtimeVoiceAI.d.ts +1 -1
  14. package/dist/esm/hooks/useRealtimeVoiceAI.d.ts.map +1 -1
  15. package/dist/esm/hooks/useRealtimeVoiceAI.js +1 -1
  16. package/dist/esm/services/codicent.d.ts +4 -3
  17. package/dist/esm/services/codicent.d.ts.map +1 -1
  18. package/dist/esm/services/codicent.js +1 -1
  19. package/dist/index.d.ts +6 -4
  20. package/package.json +2 -2
  21. package/dist/cjs/_virtual/advancedFormat.js +0 -1
  22. package/dist/cjs/_virtual/cancellation.js +0 -1
  23. package/dist/cjs/_virtual/constants.js +0 -1
  24. package/dist/cjs/_virtual/cose-base.js +0 -1
  25. package/dist/cjs/_virtual/cose-base2.js +0 -1
  26. package/dist/cjs/_virtual/customParseFormat.js +0 -1
  27. package/dist/cjs/_virtual/cytoscape-cose-bilkent.js +0 -1
  28. package/dist/cjs/_virtual/cytoscape-fcose.js +0 -1
  29. package/dist/cjs/_virtual/dayjs.min.js +0 -1
  30. package/dist/cjs/_virtual/events.js +0 -1
  31. package/dist/cjs/_virtual/index6.js +0 -1
  32. package/dist/cjs/_virtual/is.js +0 -1
  33. package/dist/cjs/_virtual/isoWeek.js +0 -1
  34. package/dist/cjs/_virtual/layout-base.js +0 -1
  35. package/dist/cjs/_virtual/layout-base2.js +0 -1
  36. package/dist/cjs/_virtual/ral.js +0 -1
  37. package/dist/cjs/node_modules/@braintree/sanitize-url/dist/constants.js +0 -1
  38. package/dist/cjs/node_modules/@braintree/sanitize-url/dist/index.js +0 -1
  39. package/dist/cjs/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -1
  40. package/dist/cjs/node_modules/@chevrotain/gast/lib/src/model.js +0 -1
  41. package/dist/cjs/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -1
  42. package/dist/cjs/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -1
  43. package/dist/cjs/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -1
  44. package/dist/cjs/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -1
  45. package/dist/cjs/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -1
  46. package/dist/cjs/node_modules/@chevrotain/utils/lib/src/print.js +0 -1
  47. package/dist/cjs/node_modules/@chevrotain/utils/lib/src/timer.js +0 -1
  48. package/dist/cjs/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -1
  49. package/dist/cjs/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -1
  50. package/dist/cjs/node_modules/@iconify/utils/lib/icon/defaults.js +0 -1
  51. package/dist/cjs/node_modules/@iconify/utils/lib/icon/merge.js +0 -1
  52. package/dist/cjs/node_modules/@iconify/utils/lib/icon/name.js +0 -1
  53. package/dist/cjs/node_modules/@iconify/utils/lib/icon/transformations.js +0 -1
  54. package/dist/cjs/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -1
  55. package/dist/cjs/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -1
  56. package/dist/cjs/node_modules/@iconify/utils/lib/svg/build.js +0 -1
  57. package/dist/cjs/node_modules/@iconify/utils/lib/svg/defs.js +0 -1
  58. package/dist/cjs/node_modules/@iconify/utils/lib/svg/html.js +0 -1
  59. package/dist/cjs/node_modules/@iconify/utils/lib/svg/id.js +0 -1
  60. package/dist/cjs/node_modules/@iconify/utils/lib/svg/size.js +0 -1
  61. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-I3QFYML2.js +0 -1
  62. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4YFB5VUC.js +0 -1
  63. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BI6EQKOQ.js +0 -1
  64. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EQFLFMNE.js +0 -1
  65. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FF7BQXOH.js +0 -1
  66. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NCMFTTUW.js +0 -1
  67. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-Y27MQZ3U.js +0 -1
  68. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-YCYPL57B.js +0 -1
  69. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-46DW6VJ7.js +0 -1
  70. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-W2GHVCYJ.js +0 -1
  71. package/dist/cjs/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-BEWT4RHE.js +0 -1
  72. package/dist/cjs/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +0 -1
  73. package/dist/cjs/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -1
  74. package/dist/cjs/node_modules/chevrotain/lib/src/parse/constants.js +0 -1
  75. package/dist/cjs/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -1
  76. package/dist/cjs/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -1
  77. package/dist/cjs/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -1
  78. package/dist/cjs/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -1
  79. package/dist/cjs/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -1
  80. package/dist/cjs/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -1
  81. package/dist/cjs/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -1
  82. package/dist/cjs/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -1
  83. package/dist/cjs/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -1
  84. package/dist/cjs/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -1
  85. package/dist/cjs/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -1
  86. package/dist/cjs/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -1
  87. package/dist/cjs/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -1
  88. package/dist/cjs/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -1
  89. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -1
  90. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -1
  91. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -1
  92. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -1
  93. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -1
  94. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -1
  95. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -1
  96. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -1
  97. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -1
  98. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -1
  99. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -1
  100. package/dist/cjs/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -1
  101. package/dist/cjs/node_modules/chevrotain/lib/src/scan/lexer.js +0 -1
  102. package/dist/cjs/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -1
  103. package/dist/cjs/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -1
  104. package/dist/cjs/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -1
  105. package/dist/cjs/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -1
  106. package/dist/cjs/node_modules/chevrotain/lib/src/scan/tokens.js +0 -1
  107. package/dist/cjs/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -1
  108. package/dist/cjs/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -1
  109. package/dist/cjs/node_modules/chevrotain-allstar/lib/atn.js +0 -1
  110. package/dist/cjs/node_modules/chevrotain-allstar/lib/dfa.js +0 -1
  111. package/dist/cjs/node_modules/cose-base/cose-base.js +0 -1
  112. package/dist/cjs/node_modules/cytoscape/dist/cytoscape.esm.js +0 -9
  113. package/dist/cjs/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +0 -1
  114. package/dist/cjs/node_modules/cytoscape-fcose/cytoscape-fcose.js +0 -1
  115. package/dist/cjs/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +0 -1
  116. package/dist/cjs/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +0 -1
  117. package/dist/cjs/node_modules/d3-array/src/ascending.js +0 -1
  118. package/dist/cjs/node_modules/d3-array/src/bisect.js +0 -1
  119. package/dist/cjs/node_modules/d3-array/src/bisector.js +0 -1
  120. package/dist/cjs/node_modules/d3-array/src/descending.js +0 -1
  121. package/dist/cjs/node_modules/d3-array/src/max.js +0 -1
  122. package/dist/cjs/node_modules/d3-array/src/min.js +0 -1
  123. package/dist/cjs/node_modules/d3-array/src/number.js +0 -1
  124. package/dist/cjs/node_modules/d3-array/src/range.js +0 -1
  125. package/dist/cjs/node_modules/d3-array/src/ticks.js +0 -1
  126. package/dist/cjs/node_modules/d3-axis/src/axis.js +0 -1
  127. package/dist/cjs/node_modules/d3-axis/src/identity.js +0 -1
  128. package/dist/cjs/node_modules/d3-color/src/color.js +0 -1
  129. package/dist/cjs/node_modules/d3-color/src/define.js +0 -1
  130. package/dist/cjs/node_modules/d3-color/src/lab.js +0 -1
  131. package/dist/cjs/node_modules/d3-color/src/math.js +0 -1
  132. package/dist/cjs/node_modules/d3-dispatch/src/dispatch.js +0 -1
  133. package/dist/cjs/node_modules/d3-ease/src/cubic.js +0 -1
  134. package/dist/cjs/node_modules/d3-format/src/defaultLocale.js +0 -1
  135. package/dist/cjs/node_modules/d3-format/src/exponent.js +0 -1
  136. package/dist/cjs/node_modules/d3-format/src/formatDecimal.js +0 -1
  137. package/dist/cjs/node_modules/d3-format/src/formatGroup.js +0 -1
  138. package/dist/cjs/node_modules/d3-format/src/formatNumerals.js +0 -1
  139. package/dist/cjs/node_modules/d3-format/src/formatPrefixAuto.js +0 -1
  140. package/dist/cjs/node_modules/d3-format/src/formatRounded.js +0 -1
  141. package/dist/cjs/node_modules/d3-format/src/formatSpecifier.js +0 -1
  142. package/dist/cjs/node_modules/d3-format/src/formatTrim.js +0 -1
  143. package/dist/cjs/node_modules/d3-format/src/formatTypes.js +0 -1
  144. package/dist/cjs/node_modules/d3-format/src/identity.js +0 -1
  145. package/dist/cjs/node_modules/d3-format/src/locale.js +0 -1
  146. package/dist/cjs/node_modules/d3-format/src/precisionFixed.js +0 -1
  147. package/dist/cjs/node_modules/d3-format/src/precisionPrefix.js +0 -1
  148. package/dist/cjs/node_modules/d3-format/src/precisionRound.js +0 -1
  149. package/dist/cjs/node_modules/d3-interpolate/src/array.js +0 -1
  150. package/dist/cjs/node_modules/d3-interpolate/src/color.js +0 -1
  151. package/dist/cjs/node_modules/d3-interpolate/src/constant.js +0 -1
  152. package/dist/cjs/node_modules/d3-interpolate/src/date.js +0 -1
  153. package/dist/cjs/node_modules/d3-interpolate/src/hcl.js +0 -1
  154. package/dist/cjs/node_modules/d3-interpolate/src/number.js +0 -1
  155. package/dist/cjs/node_modules/d3-interpolate/src/numberArray.js +0 -1
  156. package/dist/cjs/node_modules/d3-interpolate/src/object.js +0 -1
  157. package/dist/cjs/node_modules/d3-interpolate/src/rgb.js +0 -1
  158. package/dist/cjs/node_modules/d3-interpolate/src/round.js +0 -1
  159. package/dist/cjs/node_modules/d3-interpolate/src/string.js +0 -1
  160. package/dist/cjs/node_modules/d3-interpolate/src/transform/decompose.js +0 -1
  161. package/dist/cjs/node_modules/d3-interpolate/src/transform/index.js +0 -1
  162. package/dist/cjs/node_modules/d3-interpolate/src/transform/parse.js +0 -1
  163. package/dist/cjs/node_modules/d3-interpolate/src/value.js +0 -1
  164. package/dist/cjs/node_modules/d3-path/src/path.js +0 -1
  165. package/dist/cjs/node_modules/d3-sankey/node_modules/d3-array/src/max.js +0 -1
  166. package/dist/cjs/node_modules/d3-sankey/node_modules/d3-array/src/min.js +0 -1
  167. package/dist/cjs/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +0 -1
  168. package/dist/cjs/node_modules/d3-sankey/node_modules/d3-path/src/path.js +0 -1
  169. package/dist/cjs/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +0 -1
  170. package/dist/cjs/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +0 -1
  171. package/dist/cjs/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +0 -1
  172. package/dist/cjs/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +0 -1
  173. package/dist/cjs/node_modules/d3-sankey/src/align.js +0 -1
  174. package/dist/cjs/node_modules/d3-sankey/src/constant.js +0 -1
  175. package/dist/cjs/node_modules/d3-sankey/src/sankey.js +0 -1
  176. package/dist/cjs/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +0 -1
  177. package/dist/cjs/node_modules/d3-scale/src/band.js +0 -1
  178. package/dist/cjs/node_modules/d3-scale/src/constant.js +0 -1
  179. package/dist/cjs/node_modules/d3-scale/src/continuous.js +0 -1
  180. package/dist/cjs/node_modules/d3-scale/src/init.js +0 -1
  181. package/dist/cjs/node_modules/d3-scale/src/linear.js +0 -1
  182. package/dist/cjs/node_modules/d3-scale/src/nice.js +0 -1
  183. package/dist/cjs/node_modules/d3-scale/src/number.js +0 -1
  184. package/dist/cjs/node_modules/d3-scale/src/ordinal.js +0 -1
  185. package/dist/cjs/node_modules/d3-scale/src/tickFormat.js +0 -1
  186. package/dist/cjs/node_modules/d3-scale/src/time.js +0 -1
  187. package/dist/cjs/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +0 -1
  188. package/dist/cjs/node_modules/d3-scale-chromatic/src/colors.js +0 -1
  189. package/dist/cjs/node_modules/d3-selection/src/array.js +0 -1
  190. package/dist/cjs/node_modules/d3-selection/src/constant.js +0 -1
  191. package/dist/cjs/node_modules/d3-selection/src/creator.js +0 -1
  192. package/dist/cjs/node_modules/d3-selection/src/matcher.js +0 -1
  193. package/dist/cjs/node_modules/d3-selection/src/namespace.js +0 -1
  194. package/dist/cjs/node_modules/d3-selection/src/namespaces.js +0 -1
  195. package/dist/cjs/node_modules/d3-selection/src/select.js +0 -1
  196. package/dist/cjs/node_modules/d3-selection/src/selection/append.js +0 -1
  197. package/dist/cjs/node_modules/d3-selection/src/selection/attr.js +0 -1
  198. package/dist/cjs/node_modules/d3-selection/src/selection/call.js +0 -1
  199. package/dist/cjs/node_modules/d3-selection/src/selection/classed.js +0 -1
  200. package/dist/cjs/node_modules/d3-selection/src/selection/clone.js +0 -1
  201. package/dist/cjs/node_modules/d3-selection/src/selection/data.js +0 -1
  202. package/dist/cjs/node_modules/d3-selection/src/selection/datum.js +0 -1
  203. package/dist/cjs/node_modules/d3-selection/src/selection/dispatch.js +0 -1
  204. package/dist/cjs/node_modules/d3-selection/src/selection/each.js +0 -1
  205. package/dist/cjs/node_modules/d3-selection/src/selection/empty.js +0 -1
  206. package/dist/cjs/node_modules/d3-selection/src/selection/enter.js +0 -1
  207. package/dist/cjs/node_modules/d3-selection/src/selection/exit.js +0 -1
  208. package/dist/cjs/node_modules/d3-selection/src/selection/filter.js +0 -1
  209. package/dist/cjs/node_modules/d3-selection/src/selection/html.js +0 -1
  210. package/dist/cjs/node_modules/d3-selection/src/selection/index.js +0 -1
  211. package/dist/cjs/node_modules/d3-selection/src/selection/insert.js +0 -1
  212. package/dist/cjs/node_modules/d3-selection/src/selection/iterator.js +0 -1
  213. package/dist/cjs/node_modules/d3-selection/src/selection/join.js +0 -1
  214. package/dist/cjs/node_modules/d3-selection/src/selection/lower.js +0 -1
  215. package/dist/cjs/node_modules/d3-selection/src/selection/merge.js +0 -1
  216. package/dist/cjs/node_modules/d3-selection/src/selection/node.js +0 -1
  217. package/dist/cjs/node_modules/d3-selection/src/selection/nodes.js +0 -1
  218. package/dist/cjs/node_modules/d3-selection/src/selection/on.js +0 -1
  219. package/dist/cjs/node_modules/d3-selection/src/selection/order.js +0 -1
  220. package/dist/cjs/node_modules/d3-selection/src/selection/property.js +0 -1
  221. package/dist/cjs/node_modules/d3-selection/src/selection/raise.js +0 -1
  222. package/dist/cjs/node_modules/d3-selection/src/selection/remove.js +0 -1
  223. package/dist/cjs/node_modules/d3-selection/src/selection/select.js +0 -1
  224. package/dist/cjs/node_modules/d3-selection/src/selection/selectAll.js +0 -1
  225. package/dist/cjs/node_modules/d3-selection/src/selection/selectChild.js +0 -1
  226. package/dist/cjs/node_modules/d3-selection/src/selection/selectChildren.js +0 -1
  227. package/dist/cjs/node_modules/d3-selection/src/selection/size.js +0 -1
  228. package/dist/cjs/node_modules/d3-selection/src/selection/sort.js +0 -1
  229. package/dist/cjs/node_modules/d3-selection/src/selection/sparse.js +0 -1
  230. package/dist/cjs/node_modules/d3-selection/src/selection/style.js +0 -1
  231. package/dist/cjs/node_modules/d3-selection/src/selection/text.js +0 -1
  232. package/dist/cjs/node_modules/d3-selection/src/selector.js +0 -1
  233. package/dist/cjs/node_modules/d3-selection/src/selectorAll.js +0 -1
  234. package/dist/cjs/node_modules/d3-selection/src/window.js +0 -1
  235. package/dist/cjs/node_modules/d3-shape/src/arc.js +0 -1
  236. package/dist/cjs/node_modules/d3-shape/src/array.js +0 -1
  237. package/dist/cjs/node_modules/d3-shape/src/constant.js +0 -1
  238. package/dist/cjs/node_modules/d3-shape/src/curve/basis.js +0 -1
  239. package/dist/cjs/node_modules/d3-shape/src/curve/basisClosed.js +0 -1
  240. package/dist/cjs/node_modules/d3-shape/src/curve/basisOpen.js +0 -1
  241. package/dist/cjs/node_modules/d3-shape/src/curve/bump.js +0 -1
  242. package/dist/cjs/node_modules/d3-shape/src/curve/bundle.js +0 -1
  243. package/dist/cjs/node_modules/d3-shape/src/curve/cardinal.js +0 -1
  244. package/dist/cjs/node_modules/d3-shape/src/curve/cardinalClosed.js +0 -1
  245. package/dist/cjs/node_modules/d3-shape/src/curve/cardinalOpen.js +0 -1
  246. package/dist/cjs/node_modules/d3-shape/src/curve/catmullRom.js +0 -1
  247. package/dist/cjs/node_modules/d3-shape/src/curve/catmullRomClosed.js +0 -1
  248. package/dist/cjs/node_modules/d3-shape/src/curve/catmullRomOpen.js +0 -1
  249. package/dist/cjs/node_modules/d3-shape/src/curve/linear.js +0 -1
  250. package/dist/cjs/node_modules/d3-shape/src/curve/linearClosed.js +0 -1
  251. package/dist/cjs/node_modules/d3-shape/src/curve/monotone.js +0 -1
  252. package/dist/cjs/node_modules/d3-shape/src/curve/natural.js +0 -1
  253. package/dist/cjs/node_modules/d3-shape/src/curve/step.js +0 -1
  254. package/dist/cjs/node_modules/d3-shape/src/descending.js +0 -1
  255. package/dist/cjs/node_modules/d3-shape/src/identity.js +0 -1
  256. package/dist/cjs/node_modules/d3-shape/src/line.js +0 -1
  257. package/dist/cjs/node_modules/d3-shape/src/math.js +0 -1
  258. package/dist/cjs/node_modules/d3-shape/src/noop.js +0 -1
  259. package/dist/cjs/node_modules/d3-shape/src/path.js +0 -1
  260. package/dist/cjs/node_modules/d3-shape/src/pie.js +0 -1
  261. package/dist/cjs/node_modules/d3-shape/src/point.js +0 -1
  262. package/dist/cjs/node_modules/d3-time/src/day.js +0 -1
  263. package/dist/cjs/node_modules/d3-time/src/duration.js +0 -1
  264. package/dist/cjs/node_modules/d3-time/src/hour.js +0 -1
  265. package/dist/cjs/node_modules/d3-time/src/interval.js +0 -1
  266. package/dist/cjs/node_modules/d3-time/src/millisecond.js +0 -1
  267. package/dist/cjs/node_modules/d3-time/src/minute.js +0 -1
  268. package/dist/cjs/node_modules/d3-time/src/month.js +0 -1
  269. package/dist/cjs/node_modules/d3-time/src/second.js +0 -1
  270. package/dist/cjs/node_modules/d3-time/src/ticks.js +0 -1
  271. package/dist/cjs/node_modules/d3-time/src/week.js +0 -1
  272. package/dist/cjs/node_modules/d3-time/src/year.js +0 -1
  273. package/dist/cjs/node_modules/d3-time-format/src/defaultLocale.js +0 -1
  274. package/dist/cjs/node_modules/d3-time-format/src/locale.js +0 -1
  275. package/dist/cjs/node_modules/d3-timer/src/timeout.js +0 -1
  276. package/dist/cjs/node_modules/d3-timer/src/timer.js +0 -1
  277. package/dist/cjs/node_modules/d3-transition/src/interrupt.js +0 -1
  278. package/dist/cjs/node_modules/d3-transition/src/selection/index.js +0 -1
  279. package/dist/cjs/node_modules/d3-transition/src/selection/interrupt.js +0 -1
  280. package/dist/cjs/node_modules/d3-transition/src/selection/transition.js +0 -1
  281. package/dist/cjs/node_modules/d3-transition/src/transition/attr.js +0 -1
  282. package/dist/cjs/node_modules/d3-transition/src/transition/attrTween.js +0 -1
  283. package/dist/cjs/node_modules/d3-transition/src/transition/delay.js +0 -1
  284. package/dist/cjs/node_modules/d3-transition/src/transition/duration.js +0 -1
  285. package/dist/cjs/node_modules/d3-transition/src/transition/ease.js +0 -1
  286. package/dist/cjs/node_modules/d3-transition/src/transition/easeVarying.js +0 -1
  287. package/dist/cjs/node_modules/d3-transition/src/transition/end.js +0 -1
  288. package/dist/cjs/node_modules/d3-transition/src/transition/filter.js +0 -1
  289. package/dist/cjs/node_modules/d3-transition/src/transition/index.js +0 -1
  290. package/dist/cjs/node_modules/d3-transition/src/transition/interpolate.js +0 -1
  291. package/dist/cjs/node_modules/d3-transition/src/transition/merge.js +0 -1
  292. package/dist/cjs/node_modules/d3-transition/src/transition/on.js +0 -1
  293. package/dist/cjs/node_modules/d3-transition/src/transition/remove.js +0 -1
  294. package/dist/cjs/node_modules/d3-transition/src/transition/schedule.js +0 -1
  295. package/dist/cjs/node_modules/d3-transition/src/transition/select.js +0 -1
  296. package/dist/cjs/node_modules/d3-transition/src/transition/selectAll.js +0 -1
  297. package/dist/cjs/node_modules/d3-transition/src/transition/selection.js +0 -1
  298. package/dist/cjs/node_modules/d3-transition/src/transition/style.js +0 -1
  299. package/dist/cjs/node_modules/d3-transition/src/transition/styleTween.js +0 -1
  300. package/dist/cjs/node_modules/d3-transition/src/transition/text.js +0 -1
  301. package/dist/cjs/node_modules/d3-transition/src/transition/textTween.js +0 -1
  302. package/dist/cjs/node_modules/d3-transition/src/transition/transition.js +0 -1
  303. package/dist/cjs/node_modules/d3-transition/src/transition/tween.js +0 -1
  304. package/dist/cjs/node_modules/d3-zoom/src/transform.js +0 -1
  305. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/acyclic.js +0 -1
  306. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +0 -1
  307. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +0 -1
  308. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/data/list.js +0 -1
  309. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +0 -1
  310. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/layout.js +0 -1
  311. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +0 -1
  312. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/normalize.js +0 -1
  313. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +0 -1
  314. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +0 -1
  315. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +0 -1
  316. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +0 -1
  317. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/order/index.js +0 -1
  318. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/order/init-order.js +0 -1
  319. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +0 -1
  320. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +0 -1
  321. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/order/sort.js +0 -1
  322. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +0 -1
  323. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/position/bk.js +0 -1
  324. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/position/index.js +0 -1
  325. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +0 -1
  326. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/rank/index.js +0 -1
  327. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +0 -1
  328. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/rank/util.js +0 -1
  329. package/dist/cjs/node_modules/dagre-d3-es/src/dagre/util.js +0 -1
  330. package/dist/cjs/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +0 -1
  331. package/dist/cjs/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +0 -1
  332. package/dist/cjs/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +0 -1
  333. package/dist/cjs/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +0 -1
  334. package/dist/cjs/node_modules/dagre-d3-es/src/graphlib/graph.js +0 -1
  335. package/dist/cjs/node_modules/dagre-d3-es/src/graphlib/json.js +0 -1
  336. package/dist/cjs/node_modules/dayjs/dayjs.min.js +0 -1
  337. package/dist/cjs/node_modules/dayjs/plugin/advancedFormat.js +0 -1
  338. package/dist/cjs/node_modules/dayjs/plugin/customParseFormat.js +0 -1
  339. package/dist/cjs/node_modules/dayjs/plugin/isoWeek.js +0 -1
  340. package/dist/cjs/node_modules/dompurify/dist/purify.es.js +0 -3
  341. package/dist/cjs/node_modules/internmap/src/index.js +0 -1
  342. package/dist/cjs/node_modules/katex/dist/katex.js +0 -1
  343. package/dist/cjs/node_modules/khroma/dist/channels/index.js +0 -1
  344. package/dist/cjs/node_modules/khroma/dist/channels/reusable.js +0 -1
  345. package/dist/cjs/node_modules/khroma/dist/channels/type.js +0 -1
  346. package/dist/cjs/node_modules/khroma/dist/color/hex.js +0 -1
  347. package/dist/cjs/node_modules/khroma/dist/color/hsl.js +0 -1
  348. package/dist/cjs/node_modules/khroma/dist/color/index.js +0 -1
  349. package/dist/cjs/node_modules/khroma/dist/color/keyword.js +0 -1
  350. package/dist/cjs/node_modules/khroma/dist/color/rgb.js +0 -1
  351. package/dist/cjs/node_modules/khroma/dist/constants.js +0 -1
  352. package/dist/cjs/node_modules/khroma/dist/methods/adjust.js +0 -1
  353. package/dist/cjs/node_modules/khroma/dist/methods/adjust_channel.js +0 -1
  354. package/dist/cjs/node_modules/khroma/dist/methods/change.js +0 -1
  355. package/dist/cjs/node_modules/khroma/dist/methods/channel.js +0 -1
  356. package/dist/cjs/node_modules/khroma/dist/methods/darken.js +0 -1
  357. package/dist/cjs/node_modules/khroma/dist/methods/invert.js +0 -1
  358. package/dist/cjs/node_modules/khroma/dist/methods/is_dark.js +0 -1
  359. package/dist/cjs/node_modules/khroma/dist/methods/is_light.js +0 -1
  360. package/dist/cjs/node_modules/khroma/dist/methods/lighten.js +0 -1
  361. package/dist/cjs/node_modules/khroma/dist/methods/luminance.js +0 -1
  362. package/dist/cjs/node_modules/khroma/dist/methods/mix.js +0 -1
  363. package/dist/cjs/node_modules/khroma/dist/methods/rgba.js +0 -1
  364. package/dist/cjs/node_modules/khroma/dist/utils/channel.js +0 -1
  365. package/dist/cjs/node_modules/khroma/dist/utils/index.js +0 -1
  366. package/dist/cjs/node_modules/khroma/dist/utils/lang.js +0 -1
  367. package/dist/cjs/node_modules/khroma/dist/utils/unit.js +0 -1
  368. package/dist/cjs/node_modules/langium/lib/default-module.js +0 -1
  369. package/dist/cjs/node_modules/langium/lib/dependency-injection.js +0 -1
  370. package/dist/cjs/node_modules/langium/lib/documentation/comment-provider.js +0 -1
  371. package/dist/cjs/node_modules/langium/lib/documentation/documentation-provider.js +0 -1
  372. package/dist/cjs/node_modules/langium/lib/documentation/jsdoc.js +0 -1
  373. package/dist/cjs/node_modules/langium/lib/languages/generated/ast.js +0 -1
  374. package/dist/cjs/node_modules/langium/lib/languages/grammar-config.js +0 -1
  375. package/dist/cjs/node_modules/langium/lib/parser/async-parser.js +0 -1
  376. package/dist/cjs/node_modules/langium/lib/parser/completion-parser-builder.js +0 -1
  377. package/dist/cjs/node_modules/langium/lib/parser/cst-node-builder.js +0 -1
  378. package/dist/cjs/node_modules/langium/lib/parser/langium-parser-builder.js +0 -1
  379. package/dist/cjs/node_modules/langium/lib/parser/langium-parser.js +0 -1
  380. package/dist/cjs/node_modules/langium/lib/parser/lexer.js +0 -1
  381. package/dist/cjs/node_modules/langium/lib/parser/parser-builder-base.js +0 -1
  382. package/dist/cjs/node_modules/langium/lib/parser/token-builder.js +0 -1
  383. package/dist/cjs/node_modules/langium/lib/parser/value-converter.js +0 -1
  384. package/dist/cjs/node_modules/langium/lib/references/linker.js +0 -1
  385. package/dist/cjs/node_modules/langium/lib/references/name-provider.js +0 -1
  386. package/dist/cjs/node_modules/langium/lib/references/references.js +0 -1
  387. package/dist/cjs/node_modules/langium/lib/references/scope-computation.js +0 -1
  388. package/dist/cjs/node_modules/langium/lib/references/scope-provider.js +0 -1
  389. package/dist/cjs/node_modules/langium/lib/references/scope.js +0 -1
  390. package/dist/cjs/node_modules/langium/lib/serializer/hydrator.js +0 -1
  391. package/dist/cjs/node_modules/langium/lib/serializer/json-serializer.js +0 -1
  392. package/dist/cjs/node_modules/langium/lib/service-registry.js +0 -1
  393. package/dist/cjs/node_modules/langium/lib/syntax-tree.js +0 -1
  394. package/dist/cjs/node_modules/langium/lib/utils/ast-utils.js +0 -1
  395. package/dist/cjs/node_modules/langium/lib/utils/caching.js +0 -1
  396. package/dist/cjs/node_modules/langium/lib/utils/collections.js +0 -1
  397. package/dist/cjs/node_modules/langium/lib/utils/cst-utils.js +0 -1
  398. package/dist/cjs/node_modules/langium/lib/utils/disposable.js +0 -1
  399. package/dist/cjs/node_modules/langium/lib/utils/errors.js +0 -1
  400. package/dist/cjs/node_modules/langium/lib/utils/grammar-loader.js +0 -1
  401. package/dist/cjs/node_modules/langium/lib/utils/grammar-utils.js +0 -1
  402. package/dist/cjs/node_modules/langium/lib/utils/promise-utils.js +0 -1
  403. package/dist/cjs/node_modules/langium/lib/utils/regexp-utils.js +0 -1
  404. package/dist/cjs/node_modules/langium/lib/utils/stream.js +0 -1
  405. package/dist/cjs/node_modules/langium/lib/utils/uri-utils.js +0 -1
  406. package/dist/cjs/node_modules/langium/lib/validation/document-validator.js +0 -1
  407. package/dist/cjs/node_modules/langium/lib/validation/validation-registry.js +0 -1
  408. package/dist/cjs/node_modules/langium/lib/workspace/ast-descriptions.js +0 -1
  409. package/dist/cjs/node_modules/langium/lib/workspace/ast-node-locator.js +0 -1
  410. package/dist/cjs/node_modules/langium/lib/workspace/configuration.js +0 -1
  411. package/dist/cjs/node_modules/langium/lib/workspace/document-builder.js +0 -1
  412. package/dist/cjs/node_modules/langium/lib/workspace/documents.js +0 -1
  413. package/dist/cjs/node_modules/langium/lib/workspace/file-system-provider.js +0 -1
  414. package/dist/cjs/node_modules/langium/lib/workspace/index-manager.js +0 -1
  415. package/dist/cjs/node_modules/langium/lib/workspace/workspace-lock.js +0 -1
  416. package/dist/cjs/node_modules/langium/lib/workspace/workspace-manager.js +0 -1
  417. package/dist/cjs/node_modules/layout-base/layout-base.js +0 -1
  418. package/dist/cjs/node_modules/lodash-es/_DataView.js +0 -1
  419. package/dist/cjs/node_modules/lodash-es/_Hash.js +0 -1
  420. package/dist/cjs/node_modules/lodash-es/_ListCache.js +0 -1
  421. package/dist/cjs/node_modules/lodash-es/_Map.js +0 -1
  422. package/dist/cjs/node_modules/lodash-es/_MapCache.js +0 -1
  423. package/dist/cjs/node_modules/lodash-es/_Promise.js +0 -1
  424. package/dist/cjs/node_modules/lodash-es/_Set.js +0 -1
  425. package/dist/cjs/node_modules/lodash-es/_SetCache.js +0 -1
  426. package/dist/cjs/node_modules/lodash-es/_Stack.js +0 -1
  427. package/dist/cjs/node_modules/lodash-es/_Symbol.js +0 -1
  428. package/dist/cjs/node_modules/lodash-es/_Uint8Array.js +0 -1
  429. package/dist/cjs/node_modules/lodash-es/_WeakMap.js +0 -1
  430. package/dist/cjs/node_modules/lodash-es/_apply.js +0 -1
  431. package/dist/cjs/node_modules/lodash-es/_arrayAggregator.js +0 -1
  432. package/dist/cjs/node_modules/lodash-es/_arrayEach.js +0 -1
  433. package/dist/cjs/node_modules/lodash-es/_arrayEvery.js +0 -1
  434. package/dist/cjs/node_modules/lodash-es/_arrayFilter.js +0 -1
  435. package/dist/cjs/node_modules/lodash-es/_arrayIncludes.js +0 -1
  436. package/dist/cjs/node_modules/lodash-es/_arrayIncludesWith.js +0 -1
  437. package/dist/cjs/node_modules/lodash-es/_arrayLikeKeys.js +0 -1
  438. package/dist/cjs/node_modules/lodash-es/_arrayMap.js +0 -1
  439. package/dist/cjs/node_modules/lodash-es/_arrayPush.js +0 -1
  440. package/dist/cjs/node_modules/lodash-es/_arrayReduce.js +0 -1
  441. package/dist/cjs/node_modules/lodash-es/_arraySome.js +0 -1
  442. package/dist/cjs/node_modules/lodash-es/_assignMergeValue.js +0 -1
  443. package/dist/cjs/node_modules/lodash-es/_assignValue.js +0 -1
  444. package/dist/cjs/node_modules/lodash-es/_assocIndexOf.js +0 -1
  445. package/dist/cjs/node_modules/lodash-es/_baseAggregator.js +0 -1
  446. package/dist/cjs/node_modules/lodash-es/_baseAssign.js +0 -1
  447. package/dist/cjs/node_modules/lodash-es/_baseAssignIn.js +0 -1
  448. package/dist/cjs/node_modules/lodash-es/_baseAssignValue.js +0 -1
  449. package/dist/cjs/node_modules/lodash-es/_baseClone.js +0 -1
  450. package/dist/cjs/node_modules/lodash-es/_baseCreate.js +0 -1
  451. package/dist/cjs/node_modules/lodash-es/_baseDifference.js +0 -1
  452. package/dist/cjs/node_modules/lodash-es/_baseEach.js +0 -1
  453. package/dist/cjs/node_modules/lodash-es/_baseEvery.js +0 -1
  454. package/dist/cjs/node_modules/lodash-es/_baseExtremum.js +0 -1
  455. package/dist/cjs/node_modules/lodash-es/_baseFilter.js +0 -1
  456. package/dist/cjs/node_modules/lodash-es/_baseFindIndex.js +0 -1
  457. package/dist/cjs/node_modules/lodash-es/_baseFlatten.js +0 -1
  458. package/dist/cjs/node_modules/lodash-es/_baseFor.js +0 -1
  459. package/dist/cjs/node_modules/lodash-es/_baseForOwn.js +0 -1
  460. package/dist/cjs/node_modules/lodash-es/_baseGet.js +0 -1
  461. package/dist/cjs/node_modules/lodash-es/_baseGetAllKeys.js +0 -1
  462. package/dist/cjs/node_modules/lodash-es/_baseGetTag.js +0 -1
  463. package/dist/cjs/node_modules/lodash-es/_baseGt.js +0 -1
  464. package/dist/cjs/node_modules/lodash-es/_baseHas.js +0 -1
  465. package/dist/cjs/node_modules/lodash-es/_baseHasIn.js +0 -1
  466. package/dist/cjs/node_modules/lodash-es/_baseIndexOf.js +0 -1
  467. package/dist/cjs/node_modules/lodash-es/_baseIsArguments.js +0 -1
  468. package/dist/cjs/node_modules/lodash-es/_baseIsEqual.js +0 -1
  469. package/dist/cjs/node_modules/lodash-es/_baseIsEqualDeep.js +0 -1
  470. package/dist/cjs/node_modules/lodash-es/_baseIsMap.js +0 -1
  471. package/dist/cjs/node_modules/lodash-es/_baseIsMatch.js +0 -1
  472. package/dist/cjs/node_modules/lodash-es/_baseIsNaN.js +0 -1
  473. package/dist/cjs/node_modules/lodash-es/_baseIsNative.js +0 -1
  474. package/dist/cjs/node_modules/lodash-es/_baseIsRegExp.js +0 -1
  475. package/dist/cjs/node_modules/lodash-es/_baseIsSet.js +0 -1
  476. package/dist/cjs/node_modules/lodash-es/_baseIsTypedArray.js +0 -1
  477. package/dist/cjs/node_modules/lodash-es/_baseIteratee.js +0 -1
  478. package/dist/cjs/node_modules/lodash-es/_baseKeys.js +0 -1
  479. package/dist/cjs/node_modules/lodash-es/_baseKeysIn.js +0 -1
  480. package/dist/cjs/node_modules/lodash-es/_baseLt.js +0 -1
  481. package/dist/cjs/node_modules/lodash-es/_baseMap.js +0 -1
  482. package/dist/cjs/node_modules/lodash-es/_baseMatches.js +0 -1
  483. package/dist/cjs/node_modules/lodash-es/_baseMatchesProperty.js +0 -1
  484. package/dist/cjs/node_modules/lodash-es/_baseMerge.js +0 -1
  485. package/dist/cjs/node_modules/lodash-es/_baseMergeDeep.js +0 -1
  486. package/dist/cjs/node_modules/lodash-es/_baseOrderBy.js +0 -1
  487. package/dist/cjs/node_modules/lodash-es/_basePick.js +0 -1
  488. package/dist/cjs/node_modules/lodash-es/_basePickBy.js +0 -1
  489. package/dist/cjs/node_modules/lodash-es/_baseProperty.js +0 -1
  490. package/dist/cjs/node_modules/lodash-es/_basePropertyDeep.js +0 -1
  491. package/dist/cjs/node_modules/lodash-es/_baseRange.js +0 -1
  492. package/dist/cjs/node_modules/lodash-es/_baseReduce.js +0 -1
  493. package/dist/cjs/node_modules/lodash-es/_baseRest.js +0 -1
  494. package/dist/cjs/node_modules/lodash-es/_baseSet.js +0 -1
  495. package/dist/cjs/node_modules/lodash-es/_baseSetToString.js +0 -1
  496. package/dist/cjs/node_modules/lodash-es/_baseSlice.js +0 -1
  497. package/dist/cjs/node_modules/lodash-es/_baseSome.js +0 -1
  498. package/dist/cjs/node_modules/lodash-es/_baseSortBy.js +0 -1
  499. package/dist/cjs/node_modules/lodash-es/_baseTimes.js +0 -1
  500. package/dist/cjs/node_modules/lodash-es/_baseToString.js +0 -1
  501. package/dist/cjs/node_modules/lodash-es/_baseTrim.js +0 -1
  502. package/dist/cjs/node_modules/lodash-es/_baseUnary.js +0 -1
  503. package/dist/cjs/node_modules/lodash-es/_baseUniq.js +0 -1
  504. package/dist/cjs/node_modules/lodash-es/_baseValues.js +0 -1
  505. package/dist/cjs/node_modules/lodash-es/_baseZipObject.js +0 -1
  506. package/dist/cjs/node_modules/lodash-es/_cacheHas.js +0 -1
  507. package/dist/cjs/node_modules/lodash-es/_castFunction.js +0 -1
  508. package/dist/cjs/node_modules/lodash-es/_castPath.js +0 -1
  509. package/dist/cjs/node_modules/lodash-es/_cloneArrayBuffer.js +0 -1
  510. package/dist/cjs/node_modules/lodash-es/_cloneBuffer.js +0 -1
  511. package/dist/cjs/node_modules/lodash-es/_cloneDataView.js +0 -1
  512. package/dist/cjs/node_modules/lodash-es/_cloneRegExp.js +0 -1
  513. package/dist/cjs/node_modules/lodash-es/_cloneSymbol.js +0 -1
  514. package/dist/cjs/node_modules/lodash-es/_cloneTypedArray.js +0 -1
  515. package/dist/cjs/node_modules/lodash-es/_compareAscending.js +0 -1
  516. package/dist/cjs/node_modules/lodash-es/_compareMultiple.js +0 -1
  517. package/dist/cjs/node_modules/lodash-es/_copyArray.js +0 -1
  518. package/dist/cjs/node_modules/lodash-es/_copyObject.js +0 -1
  519. package/dist/cjs/node_modules/lodash-es/_copySymbols.js +0 -1
  520. package/dist/cjs/node_modules/lodash-es/_copySymbolsIn.js +0 -1
  521. package/dist/cjs/node_modules/lodash-es/_coreJsData.js +0 -1
  522. package/dist/cjs/node_modules/lodash-es/_createAggregator.js +0 -1
  523. package/dist/cjs/node_modules/lodash-es/_createAssigner.js +0 -1
  524. package/dist/cjs/node_modules/lodash-es/_createBaseEach.js +0 -1
  525. package/dist/cjs/node_modules/lodash-es/_createBaseFor.js +0 -1
  526. package/dist/cjs/node_modules/lodash-es/_createFind.js +0 -1
  527. package/dist/cjs/node_modules/lodash-es/_createRange.js +0 -1
  528. package/dist/cjs/node_modules/lodash-es/_createSet.js +0 -1
  529. package/dist/cjs/node_modules/lodash-es/_defineProperty.js +0 -1
  530. package/dist/cjs/node_modules/lodash-es/_equalArrays.js +0 -1
  531. package/dist/cjs/node_modules/lodash-es/_equalByTag.js +0 -1
  532. package/dist/cjs/node_modules/lodash-es/_equalObjects.js +0 -1
  533. package/dist/cjs/node_modules/lodash-es/_flatRest.js +0 -1
  534. package/dist/cjs/node_modules/lodash-es/_freeGlobal.js +0 -1
  535. package/dist/cjs/node_modules/lodash-es/_getAllKeys.js +0 -1
  536. package/dist/cjs/node_modules/lodash-es/_getAllKeysIn.js +0 -1
  537. package/dist/cjs/node_modules/lodash-es/_getMapData.js +0 -1
  538. package/dist/cjs/node_modules/lodash-es/_getMatchData.js +0 -1
  539. package/dist/cjs/node_modules/lodash-es/_getNative.js +0 -1
  540. package/dist/cjs/node_modules/lodash-es/_getPrototype.js +0 -1
  541. package/dist/cjs/node_modules/lodash-es/_getRawTag.js +0 -1
  542. package/dist/cjs/node_modules/lodash-es/_getSymbols.js +0 -1
  543. package/dist/cjs/node_modules/lodash-es/_getSymbolsIn.js +0 -1
  544. package/dist/cjs/node_modules/lodash-es/_getTag.js +0 -1
  545. package/dist/cjs/node_modules/lodash-es/_getValue.js +0 -1
  546. package/dist/cjs/node_modules/lodash-es/_hasPath.js +0 -1
  547. package/dist/cjs/node_modules/lodash-es/_hashClear.js +0 -1
  548. package/dist/cjs/node_modules/lodash-es/_hashDelete.js +0 -1
  549. package/dist/cjs/node_modules/lodash-es/_hashGet.js +0 -1
  550. package/dist/cjs/node_modules/lodash-es/_hashHas.js +0 -1
  551. package/dist/cjs/node_modules/lodash-es/_hashSet.js +0 -1
  552. package/dist/cjs/node_modules/lodash-es/_initCloneArray.js +0 -1
  553. package/dist/cjs/node_modules/lodash-es/_initCloneByTag.js +0 -1
  554. package/dist/cjs/node_modules/lodash-es/_initCloneObject.js +0 -1
  555. package/dist/cjs/node_modules/lodash-es/_isFlattenable.js +0 -1
  556. package/dist/cjs/node_modules/lodash-es/_isIndex.js +0 -1
  557. package/dist/cjs/node_modules/lodash-es/_isIterateeCall.js +0 -1
  558. package/dist/cjs/node_modules/lodash-es/_isKey.js +0 -1
  559. package/dist/cjs/node_modules/lodash-es/_isKeyable.js +0 -1
  560. package/dist/cjs/node_modules/lodash-es/_isMasked.js +0 -1
  561. package/dist/cjs/node_modules/lodash-es/_isPrototype.js +0 -1
  562. package/dist/cjs/node_modules/lodash-es/_isStrictComparable.js +0 -1
  563. package/dist/cjs/node_modules/lodash-es/_listCacheClear.js +0 -1
  564. package/dist/cjs/node_modules/lodash-es/_listCacheDelete.js +0 -1
  565. package/dist/cjs/node_modules/lodash-es/_listCacheGet.js +0 -1
  566. package/dist/cjs/node_modules/lodash-es/_listCacheHas.js +0 -1
  567. package/dist/cjs/node_modules/lodash-es/_listCacheSet.js +0 -1
  568. package/dist/cjs/node_modules/lodash-es/_mapCacheClear.js +0 -1
  569. package/dist/cjs/node_modules/lodash-es/_mapCacheDelete.js +0 -1
  570. package/dist/cjs/node_modules/lodash-es/_mapCacheGet.js +0 -1
  571. package/dist/cjs/node_modules/lodash-es/_mapCacheHas.js +0 -1
  572. package/dist/cjs/node_modules/lodash-es/_mapCacheSet.js +0 -1
  573. package/dist/cjs/node_modules/lodash-es/_mapToArray.js +0 -1
  574. package/dist/cjs/node_modules/lodash-es/_matchesStrictComparable.js +0 -1
  575. package/dist/cjs/node_modules/lodash-es/_memoizeCapped.js +0 -1
  576. package/dist/cjs/node_modules/lodash-es/_nativeCreate.js +0 -1
  577. package/dist/cjs/node_modules/lodash-es/_nativeKeys.js +0 -1
  578. package/dist/cjs/node_modules/lodash-es/_nativeKeysIn.js +0 -1
  579. package/dist/cjs/node_modules/lodash-es/_nodeUtil.js +0 -1
  580. package/dist/cjs/node_modules/lodash-es/_objectToString.js +0 -1
  581. package/dist/cjs/node_modules/lodash-es/_overArg.js +0 -1
  582. package/dist/cjs/node_modules/lodash-es/_overRest.js +0 -1
  583. package/dist/cjs/node_modules/lodash-es/_root.js +0 -1
  584. package/dist/cjs/node_modules/lodash-es/_safeGet.js +0 -1
  585. package/dist/cjs/node_modules/lodash-es/_setCacheAdd.js +0 -1
  586. package/dist/cjs/node_modules/lodash-es/_setCacheHas.js +0 -1
  587. package/dist/cjs/node_modules/lodash-es/_setToArray.js +0 -1
  588. package/dist/cjs/node_modules/lodash-es/_setToString.js +0 -1
  589. package/dist/cjs/node_modules/lodash-es/_shortOut.js +0 -1
  590. package/dist/cjs/node_modules/lodash-es/_stackClear.js +0 -1
  591. package/dist/cjs/node_modules/lodash-es/_stackDelete.js +0 -1
  592. package/dist/cjs/node_modules/lodash-es/_stackGet.js +0 -1
  593. package/dist/cjs/node_modules/lodash-es/_stackHas.js +0 -1
  594. package/dist/cjs/node_modules/lodash-es/_stackSet.js +0 -1
  595. package/dist/cjs/node_modules/lodash-es/_strictIndexOf.js +0 -1
  596. package/dist/cjs/node_modules/lodash-es/_stringToPath.js +0 -1
  597. package/dist/cjs/node_modules/lodash-es/_toKey.js +0 -1
  598. package/dist/cjs/node_modules/lodash-es/_toSource.js +0 -1
  599. package/dist/cjs/node_modules/lodash-es/_trimmedEndIndex.js +0 -1
  600. package/dist/cjs/node_modules/lodash-es/assign.js +0 -1
  601. package/dist/cjs/node_modules/lodash-es/clone.js +0 -1
  602. package/dist/cjs/node_modules/lodash-es/cloneDeep.js +0 -1
  603. package/dist/cjs/node_modules/lodash-es/compact.js +0 -1
  604. package/dist/cjs/node_modules/lodash-es/constant.js +0 -1
  605. package/dist/cjs/node_modules/lodash-es/defaults.js +0 -1
  606. package/dist/cjs/node_modules/lodash-es/difference.js +0 -1
  607. package/dist/cjs/node_modules/lodash-es/drop.js +0 -1
  608. package/dist/cjs/node_modules/lodash-es/dropRight.js +0 -1
  609. package/dist/cjs/node_modules/lodash-es/eq.js +0 -1
  610. package/dist/cjs/node_modules/lodash-es/every.js +0 -1
  611. package/dist/cjs/node_modules/lodash-es/filter.js +0 -1
  612. package/dist/cjs/node_modules/lodash-es/find.js +0 -1
  613. package/dist/cjs/node_modules/lodash-es/findIndex.js +0 -1
  614. package/dist/cjs/node_modules/lodash-es/flatMap.js +0 -1
  615. package/dist/cjs/node_modules/lodash-es/flatten.js +0 -1
  616. package/dist/cjs/node_modules/lodash-es/forEach.js +0 -1
  617. package/dist/cjs/node_modules/lodash-es/forIn.js +0 -1
  618. package/dist/cjs/node_modules/lodash-es/forOwn.js +0 -1
  619. package/dist/cjs/node_modules/lodash-es/get.js +0 -1
  620. package/dist/cjs/node_modules/lodash-es/groupBy.js +0 -1
  621. package/dist/cjs/node_modules/lodash-es/has.js +0 -1
  622. package/dist/cjs/node_modules/lodash-es/hasIn.js +0 -1
  623. package/dist/cjs/node_modules/lodash-es/head.js +0 -1
  624. package/dist/cjs/node_modules/lodash-es/identity.js +0 -1
  625. package/dist/cjs/node_modules/lodash-es/includes.js +0 -1
  626. package/dist/cjs/node_modules/lodash-es/indexOf.js +0 -1
  627. package/dist/cjs/node_modules/lodash-es/isArguments.js +0 -1
  628. package/dist/cjs/node_modules/lodash-es/isArray.js +0 -1
  629. package/dist/cjs/node_modules/lodash-es/isArrayLike.js +0 -1
  630. package/dist/cjs/node_modules/lodash-es/isArrayLikeObject.js +0 -1
  631. package/dist/cjs/node_modules/lodash-es/isBuffer.js +0 -1
  632. package/dist/cjs/node_modules/lodash-es/isEmpty.js +0 -1
  633. package/dist/cjs/node_modules/lodash-es/isFunction.js +0 -1
  634. package/dist/cjs/node_modules/lodash-es/isLength.js +0 -1
  635. package/dist/cjs/node_modules/lodash-es/isMap.js +0 -1
  636. package/dist/cjs/node_modules/lodash-es/isObject.js +0 -1
  637. package/dist/cjs/node_modules/lodash-es/isObjectLike.js +0 -1
  638. package/dist/cjs/node_modules/lodash-es/isPlainObject.js +0 -1
  639. package/dist/cjs/node_modules/lodash-es/isRegExp.js +0 -1
  640. package/dist/cjs/node_modules/lodash-es/isSet.js +0 -1
  641. package/dist/cjs/node_modules/lodash-es/isString.js +0 -1
  642. package/dist/cjs/node_modules/lodash-es/isSymbol.js +0 -1
  643. package/dist/cjs/node_modules/lodash-es/isTypedArray.js +0 -1
  644. package/dist/cjs/node_modules/lodash-es/isUndefined.js +0 -1
  645. package/dist/cjs/node_modules/lodash-es/keys.js +0 -1
  646. package/dist/cjs/node_modules/lodash-es/keysIn.js +0 -1
  647. package/dist/cjs/node_modules/lodash-es/last.js +0 -1
  648. package/dist/cjs/node_modules/lodash-es/map.js +0 -1
  649. package/dist/cjs/node_modules/lodash-es/mapValues.js +0 -1
  650. package/dist/cjs/node_modules/lodash-es/max.js +0 -1
  651. package/dist/cjs/node_modules/lodash-es/memoize.js +0 -1
  652. package/dist/cjs/node_modules/lodash-es/merge.js +0 -1
  653. package/dist/cjs/node_modules/lodash-es/min.js +0 -1
  654. package/dist/cjs/node_modules/lodash-es/minBy.js +0 -1
  655. package/dist/cjs/node_modules/lodash-es/negate.js +0 -1
  656. package/dist/cjs/node_modules/lodash-es/noop.js +0 -1
  657. package/dist/cjs/node_modules/lodash-es/now.js +0 -1
  658. package/dist/cjs/node_modules/lodash-es/pick.js +0 -1
  659. package/dist/cjs/node_modules/lodash-es/pickBy.js +0 -1
  660. package/dist/cjs/node_modules/lodash-es/property.js +0 -1
  661. package/dist/cjs/node_modules/lodash-es/range.js +0 -1
  662. package/dist/cjs/node_modules/lodash-es/reduce.js +0 -1
  663. package/dist/cjs/node_modules/lodash-es/reject.js +0 -1
  664. package/dist/cjs/node_modules/lodash-es/some.js +0 -1
  665. package/dist/cjs/node_modules/lodash-es/sortBy.js +0 -1
  666. package/dist/cjs/node_modules/lodash-es/stubArray.js +0 -1
  667. package/dist/cjs/node_modules/lodash-es/stubFalse.js +0 -1
  668. package/dist/cjs/node_modules/lodash-es/toFinite.js +0 -1
  669. package/dist/cjs/node_modules/lodash-es/toInteger.js +0 -1
  670. package/dist/cjs/node_modules/lodash-es/toNumber.js +0 -1
  671. package/dist/cjs/node_modules/lodash-es/toPlainObject.js +0 -1
  672. package/dist/cjs/node_modules/lodash-es/toString.js +0 -1
  673. package/dist/cjs/node_modules/lodash-es/union.js +0 -1
  674. package/dist/cjs/node_modules/lodash-es/uniq.js +0 -1
  675. package/dist/cjs/node_modules/lodash-es/uniqBy.js +0 -1
  676. package/dist/cjs/node_modules/lodash-es/uniqueId.js +0 -1
  677. package/dist/cjs/node_modules/lodash-es/values.js +0 -1
  678. package/dist/cjs/node_modules/lodash-es/zipObject.js +0 -1
  679. package/dist/cjs/node_modules/marked/lib/marked.esm.js +0 -1
  680. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-UYN6MBPD.js +0 -1
  681. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-ZHA2E4KO.js +0 -1
  682. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-6F5ED5ID.js +0 -1
  683. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3JNJP5BE.js +0 -1
  684. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3X56UNUX.js +0 -1
  685. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5HRBRIJM.js +0 -1
  686. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-66SQ7PYY.js +0 -1
  687. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6DBFFHIP.js +0 -1
  688. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6JOS74DS.js +0 -1
  689. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7DKRZKHE.js +0 -1
  690. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7NZE2EM7.js +0 -1
  691. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7U56Z5CX.js +0 -1
  692. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ASOPGD6M.js +0 -1
  693. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BO7VGL7K.js +0 -1
  694. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EJ4ZWXGL.js +0 -1
  695. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-K6PMAZHR.js +0 -1
  696. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KFBOBJHC.js +0 -1
  697. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OPO4IU42.js +0 -1
  698. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3SWNSAA.js +0 -7
  699. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-T2TOU4HS.js +0 -1
  700. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TMUBEWPD.js +0 -1
  701. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-LNE6IOMH.js +0 -1
  702. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-MQ7JQ4JX.js +0 -1
  703. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/dagre-4EVJKHTY.js +0 -1
  704. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QW4FP2JN.js +0 -1
  705. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-6RL3IURR.js +0 -1
  706. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-7ASYPVHJ.js +0 -1
  707. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-NTVNEXSI.js +0 -1
  708. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-NRZ2UAAF.js +0 -1
  709. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-A4XQUW5V.js +0 -1
  710. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-G5WM74LC.js +0 -1
  711. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-QRCXZQQD.js +0 -1
  712. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-GWI6TPTV.js +0 -1
  713. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-YF2LJOPJ.js +0 -1
  714. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-OS5C2QUG.js +0 -1
  715. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-MIRIMTAZ.js +0 -1
  716. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-Y46BX6SQ.js +0 -1
  717. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-G6AWOVSC.js +0 -1
  718. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-MAYHULR4.js +0 -1
  719. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4JROLMXI.js +0 -1
  720. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-U7ZMHBDA.js +0 -1
  721. package/dist/cjs/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-6QU3TZC5.js +0 -1
  722. package/dist/cjs/node_modules/mermaid/dist/mermaid.core.js +0 -6
  723. package/dist/cjs/node_modules/roughjs/bundled/rough.esm.js +0 -1
  724. package/dist/cjs/node_modules/ts-dedent/esm/index.js +0 -1
  725. package/dist/cjs/node_modules/uuid/dist/esm-browser/parse.js +0 -1
  726. package/dist/cjs/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  727. package/dist/cjs/node_modules/uuid/dist/esm-browser/sha1.js +0 -1
  728. package/dist/cjs/node_modules/uuid/dist/esm-browser/stringify.js +0 -1
  729. package/dist/cjs/node_modules/uuid/dist/esm-browser/v35.js +0 -1
  730. package/dist/cjs/node_modules/uuid/dist/esm-browser/v5.js +0 -1
  731. package/dist/cjs/node_modules/uuid/dist/esm-browser/validate.js +0 -1
  732. package/dist/cjs/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -1
  733. package/dist/cjs/node_modules/vscode-jsonrpc/lib/common/events.js +0 -1
  734. package/dist/cjs/node_modules/vscode-jsonrpc/lib/common/is.js +0 -1
  735. package/dist/cjs/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -1
  736. package/dist/cjs/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -1
  737. package/dist/cjs/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1
  738. package/dist/cjs/node_modules/vscode-uri/lib/esm/index.js +0 -1
  739. package/dist/esm/_virtual/advancedFormat.js +0 -1
  740. package/dist/esm/_virtual/cancellation.js +0 -1
  741. package/dist/esm/_virtual/constants.js +0 -1
  742. package/dist/esm/_virtual/cose-base.js +0 -1
  743. package/dist/esm/_virtual/cose-base2.js +0 -1
  744. package/dist/esm/_virtual/customParseFormat.js +0 -1
  745. package/dist/esm/_virtual/cytoscape-cose-bilkent.js +0 -1
  746. package/dist/esm/_virtual/cytoscape-fcose.js +0 -1
  747. package/dist/esm/_virtual/dayjs.min.js +0 -1
  748. package/dist/esm/_virtual/events.js +0 -1
  749. package/dist/esm/_virtual/index6.js +0 -1
  750. package/dist/esm/_virtual/is.js +0 -1
  751. package/dist/esm/_virtual/isoWeek.js +0 -1
  752. package/dist/esm/_virtual/layout-base.js +0 -1
  753. package/dist/esm/_virtual/layout-base2.js +0 -1
  754. package/dist/esm/_virtual/ral.js +0 -1
  755. package/dist/esm/node_modules/@braintree/sanitize-url/dist/constants.js +0 -1
  756. package/dist/esm/node_modules/@braintree/sanitize-url/dist/index.js +0 -1
  757. package/dist/esm/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -1
  758. package/dist/esm/node_modules/@chevrotain/gast/lib/src/model.js +0 -1
  759. package/dist/esm/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -1
  760. package/dist/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -1
  761. package/dist/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -1
  762. package/dist/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -1
  763. package/dist/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -1
  764. package/dist/esm/node_modules/@chevrotain/utils/lib/src/print.js +0 -1
  765. package/dist/esm/node_modules/@chevrotain/utils/lib/src/timer.js +0 -1
  766. package/dist/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -1
  767. package/dist/esm/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -1
  768. package/dist/esm/node_modules/@iconify/utils/lib/icon/defaults.js +0 -1
  769. package/dist/esm/node_modules/@iconify/utils/lib/icon/merge.js +0 -1
  770. package/dist/esm/node_modules/@iconify/utils/lib/icon/name.js +0 -1
  771. package/dist/esm/node_modules/@iconify/utils/lib/icon/transformations.js +0 -1
  772. package/dist/esm/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -1
  773. package/dist/esm/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -1
  774. package/dist/esm/node_modules/@iconify/utils/lib/svg/build.js +0 -1
  775. package/dist/esm/node_modules/@iconify/utils/lib/svg/defs.js +0 -1
  776. package/dist/esm/node_modules/@iconify/utils/lib/svg/html.js +0 -1
  777. package/dist/esm/node_modules/@iconify/utils/lib/svg/id.js +0 -1
  778. package/dist/esm/node_modules/@iconify/utils/lib/svg/size.js +0 -1
  779. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-I3QFYML2.js +0 -1
  780. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4YFB5VUC.js +0 -1
  781. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BI6EQKOQ.js +0 -1
  782. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EQFLFMNE.js +0 -1
  783. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FF7BQXOH.js +0 -1
  784. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NCMFTTUW.js +0 -1
  785. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-Y27MQZ3U.js +0 -1
  786. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-YCYPL57B.js +0 -1
  787. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-46DW6VJ7.js +0 -1
  788. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-W2GHVCYJ.js +0 -1
  789. package/dist/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-BEWT4RHE.js +0 -1
  790. package/dist/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +0 -1
  791. package/dist/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -1
  792. package/dist/esm/node_modules/chevrotain/lib/src/parse/constants.js +0 -1
  793. package/dist/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -1
  794. package/dist/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -1
  795. package/dist/esm/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -1
  796. package/dist/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -1
  797. package/dist/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -1
  798. package/dist/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -1
  799. package/dist/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -1
  800. package/dist/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -1
  801. package/dist/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -1
  802. package/dist/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -1
  803. package/dist/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -1
  804. package/dist/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -1
  805. package/dist/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -1
  806. package/dist/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -1
  807. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -1
  808. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -1
  809. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -1
  810. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -1
  811. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -1
  812. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -1
  813. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -1
  814. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -1
  815. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -1
  816. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -1
  817. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -1
  818. package/dist/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -1
  819. package/dist/esm/node_modules/chevrotain/lib/src/scan/lexer.js +0 -1
  820. package/dist/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -1
  821. package/dist/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -1
  822. package/dist/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -1
  823. package/dist/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -1
  824. package/dist/esm/node_modules/chevrotain/lib/src/scan/tokens.js +0 -1
  825. package/dist/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -1
  826. package/dist/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -1
  827. package/dist/esm/node_modules/chevrotain-allstar/lib/atn.js +0 -1
  828. package/dist/esm/node_modules/chevrotain-allstar/lib/dfa.js +0 -1
  829. package/dist/esm/node_modules/cose-base/cose-base.js +0 -1
  830. package/dist/esm/node_modules/cytoscape/dist/cytoscape.esm.js +0 -9
  831. package/dist/esm/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +0 -1
  832. package/dist/esm/node_modules/cytoscape-fcose/cytoscape-fcose.js +0 -1
  833. package/dist/esm/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +0 -1
  834. package/dist/esm/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +0 -1
  835. package/dist/esm/node_modules/d3-array/src/ascending.js +0 -1
  836. package/dist/esm/node_modules/d3-array/src/bisect.js +0 -1
  837. package/dist/esm/node_modules/d3-array/src/bisector.js +0 -1
  838. package/dist/esm/node_modules/d3-array/src/descending.js +0 -1
  839. package/dist/esm/node_modules/d3-array/src/max.js +0 -1
  840. package/dist/esm/node_modules/d3-array/src/min.js +0 -1
  841. package/dist/esm/node_modules/d3-array/src/number.js +0 -1
  842. package/dist/esm/node_modules/d3-array/src/range.js +0 -1
  843. package/dist/esm/node_modules/d3-array/src/ticks.js +0 -1
  844. package/dist/esm/node_modules/d3-axis/src/axis.js +0 -1
  845. package/dist/esm/node_modules/d3-axis/src/identity.js +0 -1
  846. package/dist/esm/node_modules/d3-color/src/color.js +0 -1
  847. package/dist/esm/node_modules/d3-color/src/define.js +0 -1
  848. package/dist/esm/node_modules/d3-color/src/lab.js +0 -1
  849. package/dist/esm/node_modules/d3-color/src/math.js +0 -1
  850. package/dist/esm/node_modules/d3-dispatch/src/dispatch.js +0 -1
  851. package/dist/esm/node_modules/d3-ease/src/cubic.js +0 -1
  852. package/dist/esm/node_modules/d3-format/src/defaultLocale.js +0 -1
  853. package/dist/esm/node_modules/d3-format/src/exponent.js +0 -1
  854. package/dist/esm/node_modules/d3-format/src/formatDecimal.js +0 -1
  855. package/dist/esm/node_modules/d3-format/src/formatGroup.js +0 -1
  856. package/dist/esm/node_modules/d3-format/src/formatNumerals.js +0 -1
  857. package/dist/esm/node_modules/d3-format/src/formatPrefixAuto.js +0 -1
  858. package/dist/esm/node_modules/d3-format/src/formatRounded.js +0 -1
  859. package/dist/esm/node_modules/d3-format/src/formatSpecifier.js +0 -1
  860. package/dist/esm/node_modules/d3-format/src/formatTrim.js +0 -1
  861. package/dist/esm/node_modules/d3-format/src/formatTypes.js +0 -1
  862. package/dist/esm/node_modules/d3-format/src/identity.js +0 -1
  863. package/dist/esm/node_modules/d3-format/src/locale.js +0 -1
  864. package/dist/esm/node_modules/d3-format/src/precisionFixed.js +0 -1
  865. package/dist/esm/node_modules/d3-format/src/precisionPrefix.js +0 -1
  866. package/dist/esm/node_modules/d3-format/src/precisionRound.js +0 -1
  867. package/dist/esm/node_modules/d3-interpolate/src/array.js +0 -1
  868. package/dist/esm/node_modules/d3-interpolate/src/color.js +0 -1
  869. package/dist/esm/node_modules/d3-interpolate/src/constant.js +0 -1
  870. package/dist/esm/node_modules/d3-interpolate/src/date.js +0 -1
  871. package/dist/esm/node_modules/d3-interpolate/src/hcl.js +0 -1
  872. package/dist/esm/node_modules/d3-interpolate/src/number.js +0 -1
  873. package/dist/esm/node_modules/d3-interpolate/src/numberArray.js +0 -1
  874. package/dist/esm/node_modules/d3-interpolate/src/object.js +0 -1
  875. package/dist/esm/node_modules/d3-interpolate/src/rgb.js +0 -1
  876. package/dist/esm/node_modules/d3-interpolate/src/round.js +0 -1
  877. package/dist/esm/node_modules/d3-interpolate/src/string.js +0 -1
  878. package/dist/esm/node_modules/d3-interpolate/src/transform/decompose.js +0 -1
  879. package/dist/esm/node_modules/d3-interpolate/src/transform/index.js +0 -1
  880. package/dist/esm/node_modules/d3-interpolate/src/transform/parse.js +0 -1
  881. package/dist/esm/node_modules/d3-interpolate/src/value.js +0 -1
  882. package/dist/esm/node_modules/d3-path/src/path.js +0 -1
  883. package/dist/esm/node_modules/d3-sankey/node_modules/d3-array/src/max.js +0 -1
  884. package/dist/esm/node_modules/d3-sankey/node_modules/d3-array/src/min.js +0 -1
  885. package/dist/esm/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +0 -1
  886. package/dist/esm/node_modules/d3-sankey/node_modules/d3-path/src/path.js +0 -1
  887. package/dist/esm/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +0 -1
  888. package/dist/esm/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +0 -1
  889. package/dist/esm/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +0 -1
  890. package/dist/esm/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +0 -1
  891. package/dist/esm/node_modules/d3-sankey/src/align.js +0 -1
  892. package/dist/esm/node_modules/d3-sankey/src/constant.js +0 -1
  893. package/dist/esm/node_modules/d3-sankey/src/sankey.js +0 -1
  894. package/dist/esm/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +0 -1
  895. package/dist/esm/node_modules/d3-scale/src/band.js +0 -1
  896. package/dist/esm/node_modules/d3-scale/src/constant.js +0 -1
  897. package/dist/esm/node_modules/d3-scale/src/continuous.js +0 -1
  898. package/dist/esm/node_modules/d3-scale/src/init.js +0 -1
  899. package/dist/esm/node_modules/d3-scale/src/linear.js +0 -1
  900. package/dist/esm/node_modules/d3-scale/src/nice.js +0 -1
  901. package/dist/esm/node_modules/d3-scale/src/number.js +0 -1
  902. package/dist/esm/node_modules/d3-scale/src/ordinal.js +0 -1
  903. package/dist/esm/node_modules/d3-scale/src/tickFormat.js +0 -1
  904. package/dist/esm/node_modules/d3-scale/src/time.js +0 -1
  905. package/dist/esm/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +0 -1
  906. package/dist/esm/node_modules/d3-scale-chromatic/src/colors.js +0 -1
  907. package/dist/esm/node_modules/d3-selection/src/array.js +0 -1
  908. package/dist/esm/node_modules/d3-selection/src/constant.js +0 -1
  909. package/dist/esm/node_modules/d3-selection/src/creator.js +0 -1
  910. package/dist/esm/node_modules/d3-selection/src/matcher.js +0 -1
  911. package/dist/esm/node_modules/d3-selection/src/namespace.js +0 -1
  912. package/dist/esm/node_modules/d3-selection/src/namespaces.js +0 -1
  913. package/dist/esm/node_modules/d3-selection/src/select.js +0 -1
  914. package/dist/esm/node_modules/d3-selection/src/selection/append.js +0 -1
  915. package/dist/esm/node_modules/d3-selection/src/selection/attr.js +0 -1
  916. package/dist/esm/node_modules/d3-selection/src/selection/call.js +0 -1
  917. package/dist/esm/node_modules/d3-selection/src/selection/classed.js +0 -1
  918. package/dist/esm/node_modules/d3-selection/src/selection/clone.js +0 -1
  919. package/dist/esm/node_modules/d3-selection/src/selection/data.js +0 -1
  920. package/dist/esm/node_modules/d3-selection/src/selection/datum.js +0 -1
  921. package/dist/esm/node_modules/d3-selection/src/selection/dispatch.js +0 -1
  922. package/dist/esm/node_modules/d3-selection/src/selection/each.js +0 -1
  923. package/dist/esm/node_modules/d3-selection/src/selection/empty.js +0 -1
  924. package/dist/esm/node_modules/d3-selection/src/selection/enter.js +0 -1
  925. package/dist/esm/node_modules/d3-selection/src/selection/exit.js +0 -1
  926. package/dist/esm/node_modules/d3-selection/src/selection/filter.js +0 -1
  927. package/dist/esm/node_modules/d3-selection/src/selection/html.js +0 -1
  928. package/dist/esm/node_modules/d3-selection/src/selection/index.js +0 -1
  929. package/dist/esm/node_modules/d3-selection/src/selection/insert.js +0 -1
  930. package/dist/esm/node_modules/d3-selection/src/selection/iterator.js +0 -1
  931. package/dist/esm/node_modules/d3-selection/src/selection/join.js +0 -1
  932. package/dist/esm/node_modules/d3-selection/src/selection/lower.js +0 -1
  933. package/dist/esm/node_modules/d3-selection/src/selection/merge.js +0 -1
  934. package/dist/esm/node_modules/d3-selection/src/selection/node.js +0 -1
  935. package/dist/esm/node_modules/d3-selection/src/selection/nodes.js +0 -1
  936. package/dist/esm/node_modules/d3-selection/src/selection/on.js +0 -1
  937. package/dist/esm/node_modules/d3-selection/src/selection/order.js +0 -1
  938. package/dist/esm/node_modules/d3-selection/src/selection/property.js +0 -1
  939. package/dist/esm/node_modules/d3-selection/src/selection/raise.js +0 -1
  940. package/dist/esm/node_modules/d3-selection/src/selection/remove.js +0 -1
  941. package/dist/esm/node_modules/d3-selection/src/selection/select.js +0 -1
  942. package/dist/esm/node_modules/d3-selection/src/selection/selectAll.js +0 -1
  943. package/dist/esm/node_modules/d3-selection/src/selection/selectChild.js +0 -1
  944. package/dist/esm/node_modules/d3-selection/src/selection/selectChildren.js +0 -1
  945. package/dist/esm/node_modules/d3-selection/src/selection/size.js +0 -1
  946. package/dist/esm/node_modules/d3-selection/src/selection/sort.js +0 -1
  947. package/dist/esm/node_modules/d3-selection/src/selection/sparse.js +0 -1
  948. package/dist/esm/node_modules/d3-selection/src/selection/style.js +0 -1
  949. package/dist/esm/node_modules/d3-selection/src/selection/text.js +0 -1
  950. package/dist/esm/node_modules/d3-selection/src/selector.js +0 -1
  951. package/dist/esm/node_modules/d3-selection/src/selectorAll.js +0 -1
  952. package/dist/esm/node_modules/d3-selection/src/window.js +0 -1
  953. package/dist/esm/node_modules/d3-shape/src/arc.js +0 -1
  954. package/dist/esm/node_modules/d3-shape/src/array.js +0 -1
  955. package/dist/esm/node_modules/d3-shape/src/constant.js +0 -1
  956. package/dist/esm/node_modules/d3-shape/src/curve/basis.js +0 -1
  957. package/dist/esm/node_modules/d3-shape/src/curve/basisClosed.js +0 -1
  958. package/dist/esm/node_modules/d3-shape/src/curve/basisOpen.js +0 -1
  959. package/dist/esm/node_modules/d3-shape/src/curve/bump.js +0 -1
  960. package/dist/esm/node_modules/d3-shape/src/curve/bundle.js +0 -1
  961. package/dist/esm/node_modules/d3-shape/src/curve/cardinal.js +0 -1
  962. package/dist/esm/node_modules/d3-shape/src/curve/cardinalClosed.js +0 -1
  963. package/dist/esm/node_modules/d3-shape/src/curve/cardinalOpen.js +0 -1
  964. package/dist/esm/node_modules/d3-shape/src/curve/catmullRom.js +0 -1
  965. package/dist/esm/node_modules/d3-shape/src/curve/catmullRomClosed.js +0 -1
  966. package/dist/esm/node_modules/d3-shape/src/curve/catmullRomOpen.js +0 -1
  967. package/dist/esm/node_modules/d3-shape/src/curve/linear.js +0 -1
  968. package/dist/esm/node_modules/d3-shape/src/curve/linearClosed.js +0 -1
  969. package/dist/esm/node_modules/d3-shape/src/curve/monotone.js +0 -1
  970. package/dist/esm/node_modules/d3-shape/src/curve/natural.js +0 -1
  971. package/dist/esm/node_modules/d3-shape/src/curve/step.js +0 -1
  972. package/dist/esm/node_modules/d3-shape/src/descending.js +0 -1
  973. package/dist/esm/node_modules/d3-shape/src/identity.js +0 -1
  974. package/dist/esm/node_modules/d3-shape/src/line.js +0 -1
  975. package/dist/esm/node_modules/d3-shape/src/math.js +0 -1
  976. package/dist/esm/node_modules/d3-shape/src/noop.js +0 -1
  977. package/dist/esm/node_modules/d3-shape/src/path.js +0 -1
  978. package/dist/esm/node_modules/d3-shape/src/pie.js +0 -1
  979. package/dist/esm/node_modules/d3-shape/src/point.js +0 -1
  980. package/dist/esm/node_modules/d3-time/src/day.js +0 -1
  981. package/dist/esm/node_modules/d3-time/src/duration.js +0 -1
  982. package/dist/esm/node_modules/d3-time/src/hour.js +0 -1
  983. package/dist/esm/node_modules/d3-time/src/interval.js +0 -1
  984. package/dist/esm/node_modules/d3-time/src/millisecond.js +0 -1
  985. package/dist/esm/node_modules/d3-time/src/minute.js +0 -1
  986. package/dist/esm/node_modules/d3-time/src/month.js +0 -1
  987. package/dist/esm/node_modules/d3-time/src/second.js +0 -1
  988. package/dist/esm/node_modules/d3-time/src/ticks.js +0 -1
  989. package/dist/esm/node_modules/d3-time/src/week.js +0 -1
  990. package/dist/esm/node_modules/d3-time/src/year.js +0 -1
  991. package/dist/esm/node_modules/d3-time-format/src/defaultLocale.js +0 -1
  992. package/dist/esm/node_modules/d3-time-format/src/locale.js +0 -1
  993. package/dist/esm/node_modules/d3-timer/src/timeout.js +0 -1
  994. package/dist/esm/node_modules/d3-timer/src/timer.js +0 -1
  995. package/dist/esm/node_modules/d3-transition/src/interrupt.js +0 -1
  996. package/dist/esm/node_modules/d3-transition/src/selection/index.js +0 -1
  997. package/dist/esm/node_modules/d3-transition/src/selection/interrupt.js +0 -1
  998. package/dist/esm/node_modules/d3-transition/src/selection/transition.js +0 -1
  999. package/dist/esm/node_modules/d3-transition/src/transition/attr.js +0 -1
  1000. package/dist/esm/node_modules/d3-transition/src/transition/attrTween.js +0 -1
  1001. package/dist/esm/node_modules/d3-transition/src/transition/delay.js +0 -1
  1002. package/dist/esm/node_modules/d3-transition/src/transition/duration.js +0 -1
  1003. package/dist/esm/node_modules/d3-transition/src/transition/ease.js +0 -1
  1004. package/dist/esm/node_modules/d3-transition/src/transition/easeVarying.js +0 -1
  1005. package/dist/esm/node_modules/d3-transition/src/transition/end.js +0 -1
  1006. package/dist/esm/node_modules/d3-transition/src/transition/filter.js +0 -1
  1007. package/dist/esm/node_modules/d3-transition/src/transition/index.js +0 -1
  1008. package/dist/esm/node_modules/d3-transition/src/transition/interpolate.js +0 -1
  1009. package/dist/esm/node_modules/d3-transition/src/transition/merge.js +0 -1
  1010. package/dist/esm/node_modules/d3-transition/src/transition/on.js +0 -1
  1011. package/dist/esm/node_modules/d3-transition/src/transition/remove.js +0 -1
  1012. package/dist/esm/node_modules/d3-transition/src/transition/schedule.js +0 -1
  1013. package/dist/esm/node_modules/d3-transition/src/transition/select.js +0 -1
  1014. package/dist/esm/node_modules/d3-transition/src/transition/selectAll.js +0 -1
  1015. package/dist/esm/node_modules/d3-transition/src/transition/selection.js +0 -1
  1016. package/dist/esm/node_modules/d3-transition/src/transition/style.js +0 -1
  1017. package/dist/esm/node_modules/d3-transition/src/transition/styleTween.js +0 -1
  1018. package/dist/esm/node_modules/d3-transition/src/transition/text.js +0 -1
  1019. package/dist/esm/node_modules/d3-transition/src/transition/textTween.js +0 -1
  1020. package/dist/esm/node_modules/d3-transition/src/transition/transition.js +0 -1
  1021. package/dist/esm/node_modules/d3-transition/src/transition/tween.js +0 -1
  1022. package/dist/esm/node_modules/d3-zoom/src/transform.js +0 -1
  1023. package/dist/esm/node_modules/dagre-d3-es/src/dagre/acyclic.js +0 -1
  1024. package/dist/esm/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +0 -1
  1025. package/dist/esm/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +0 -1
  1026. package/dist/esm/node_modules/dagre-d3-es/src/dagre/data/list.js +0 -1
  1027. package/dist/esm/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +0 -1
  1028. package/dist/esm/node_modules/dagre-d3-es/src/dagre/layout.js +0 -1
  1029. package/dist/esm/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +0 -1
  1030. package/dist/esm/node_modules/dagre-d3-es/src/dagre/normalize.js +0 -1
  1031. package/dist/esm/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +0 -1
  1032. package/dist/esm/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +0 -1
  1033. package/dist/esm/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +0 -1
  1034. package/dist/esm/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +0 -1
  1035. package/dist/esm/node_modules/dagre-d3-es/src/dagre/order/index.js +0 -1
  1036. package/dist/esm/node_modules/dagre-d3-es/src/dagre/order/init-order.js +0 -1
  1037. package/dist/esm/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +0 -1
  1038. package/dist/esm/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +0 -1
  1039. package/dist/esm/node_modules/dagre-d3-es/src/dagre/order/sort.js +0 -1
  1040. package/dist/esm/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +0 -1
  1041. package/dist/esm/node_modules/dagre-d3-es/src/dagre/position/bk.js +0 -1
  1042. package/dist/esm/node_modules/dagre-d3-es/src/dagre/position/index.js +0 -1
  1043. package/dist/esm/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +0 -1
  1044. package/dist/esm/node_modules/dagre-d3-es/src/dagre/rank/index.js +0 -1
  1045. package/dist/esm/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +0 -1
  1046. package/dist/esm/node_modules/dagre-d3-es/src/dagre/rank/util.js +0 -1
  1047. package/dist/esm/node_modules/dagre-d3-es/src/dagre/util.js +0 -1
  1048. package/dist/esm/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +0 -1
  1049. package/dist/esm/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +0 -1
  1050. package/dist/esm/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +0 -1
  1051. package/dist/esm/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +0 -1
  1052. package/dist/esm/node_modules/dagre-d3-es/src/graphlib/graph.js +0 -1
  1053. package/dist/esm/node_modules/dagre-d3-es/src/graphlib/json.js +0 -1
  1054. package/dist/esm/node_modules/dayjs/dayjs.min.js +0 -1
  1055. package/dist/esm/node_modules/dayjs/plugin/advancedFormat.js +0 -1
  1056. package/dist/esm/node_modules/dayjs/plugin/customParseFormat.js +0 -1
  1057. package/dist/esm/node_modules/dayjs/plugin/isoWeek.js +0 -1
  1058. package/dist/esm/node_modules/dompurify/dist/purify.es.js +0 -2
  1059. package/dist/esm/node_modules/internmap/src/index.js +0 -1
  1060. package/dist/esm/node_modules/katex/dist/katex.js +0 -1
  1061. package/dist/esm/node_modules/khroma/dist/channels/index.js +0 -1
  1062. package/dist/esm/node_modules/khroma/dist/channels/reusable.js +0 -1
  1063. package/dist/esm/node_modules/khroma/dist/channels/type.js +0 -1
  1064. package/dist/esm/node_modules/khroma/dist/color/hex.js +0 -1
  1065. package/dist/esm/node_modules/khroma/dist/color/hsl.js +0 -1
  1066. package/dist/esm/node_modules/khroma/dist/color/index.js +0 -1
  1067. package/dist/esm/node_modules/khroma/dist/color/keyword.js +0 -1
  1068. package/dist/esm/node_modules/khroma/dist/color/rgb.js +0 -1
  1069. package/dist/esm/node_modules/khroma/dist/constants.js +0 -1
  1070. package/dist/esm/node_modules/khroma/dist/methods/adjust.js +0 -1
  1071. package/dist/esm/node_modules/khroma/dist/methods/adjust_channel.js +0 -1
  1072. package/dist/esm/node_modules/khroma/dist/methods/change.js +0 -1
  1073. package/dist/esm/node_modules/khroma/dist/methods/channel.js +0 -1
  1074. package/dist/esm/node_modules/khroma/dist/methods/darken.js +0 -1
  1075. package/dist/esm/node_modules/khroma/dist/methods/invert.js +0 -1
  1076. package/dist/esm/node_modules/khroma/dist/methods/is_dark.js +0 -1
  1077. package/dist/esm/node_modules/khroma/dist/methods/is_light.js +0 -1
  1078. package/dist/esm/node_modules/khroma/dist/methods/lighten.js +0 -1
  1079. package/dist/esm/node_modules/khroma/dist/methods/luminance.js +0 -1
  1080. package/dist/esm/node_modules/khroma/dist/methods/mix.js +0 -1
  1081. package/dist/esm/node_modules/khroma/dist/methods/rgba.js +0 -1
  1082. package/dist/esm/node_modules/khroma/dist/utils/channel.js +0 -1
  1083. package/dist/esm/node_modules/khroma/dist/utils/index.js +0 -1
  1084. package/dist/esm/node_modules/khroma/dist/utils/lang.js +0 -1
  1085. package/dist/esm/node_modules/khroma/dist/utils/unit.js +0 -1
  1086. package/dist/esm/node_modules/langium/lib/default-module.js +0 -1
  1087. package/dist/esm/node_modules/langium/lib/dependency-injection.js +0 -1
  1088. package/dist/esm/node_modules/langium/lib/documentation/comment-provider.js +0 -1
  1089. package/dist/esm/node_modules/langium/lib/documentation/documentation-provider.js +0 -1
  1090. package/dist/esm/node_modules/langium/lib/documentation/jsdoc.js +0 -1
  1091. package/dist/esm/node_modules/langium/lib/languages/generated/ast.js +0 -1
  1092. package/dist/esm/node_modules/langium/lib/languages/grammar-config.js +0 -1
  1093. package/dist/esm/node_modules/langium/lib/parser/async-parser.js +0 -1
  1094. package/dist/esm/node_modules/langium/lib/parser/completion-parser-builder.js +0 -1
  1095. package/dist/esm/node_modules/langium/lib/parser/cst-node-builder.js +0 -1
  1096. package/dist/esm/node_modules/langium/lib/parser/langium-parser-builder.js +0 -1
  1097. package/dist/esm/node_modules/langium/lib/parser/langium-parser.js +0 -1
  1098. package/dist/esm/node_modules/langium/lib/parser/lexer.js +0 -1
  1099. package/dist/esm/node_modules/langium/lib/parser/parser-builder-base.js +0 -1
  1100. package/dist/esm/node_modules/langium/lib/parser/token-builder.js +0 -1
  1101. package/dist/esm/node_modules/langium/lib/parser/value-converter.js +0 -1
  1102. package/dist/esm/node_modules/langium/lib/references/linker.js +0 -1
  1103. package/dist/esm/node_modules/langium/lib/references/name-provider.js +0 -1
  1104. package/dist/esm/node_modules/langium/lib/references/references.js +0 -1
  1105. package/dist/esm/node_modules/langium/lib/references/scope-computation.js +0 -1
  1106. package/dist/esm/node_modules/langium/lib/references/scope-provider.js +0 -1
  1107. package/dist/esm/node_modules/langium/lib/references/scope.js +0 -1
  1108. package/dist/esm/node_modules/langium/lib/serializer/hydrator.js +0 -1
  1109. package/dist/esm/node_modules/langium/lib/serializer/json-serializer.js +0 -1
  1110. package/dist/esm/node_modules/langium/lib/service-registry.js +0 -1
  1111. package/dist/esm/node_modules/langium/lib/syntax-tree.js +0 -1
  1112. package/dist/esm/node_modules/langium/lib/utils/ast-utils.js +0 -1
  1113. package/dist/esm/node_modules/langium/lib/utils/caching.js +0 -1
  1114. package/dist/esm/node_modules/langium/lib/utils/collections.js +0 -1
  1115. package/dist/esm/node_modules/langium/lib/utils/cst-utils.js +0 -1
  1116. package/dist/esm/node_modules/langium/lib/utils/disposable.js +0 -1
  1117. package/dist/esm/node_modules/langium/lib/utils/errors.js +0 -1
  1118. package/dist/esm/node_modules/langium/lib/utils/grammar-loader.js +0 -1
  1119. package/dist/esm/node_modules/langium/lib/utils/grammar-utils.js +0 -1
  1120. package/dist/esm/node_modules/langium/lib/utils/promise-utils.js +0 -1
  1121. package/dist/esm/node_modules/langium/lib/utils/regexp-utils.js +0 -1
  1122. package/dist/esm/node_modules/langium/lib/utils/stream.js +0 -1
  1123. package/dist/esm/node_modules/langium/lib/utils/uri-utils.js +0 -1
  1124. package/dist/esm/node_modules/langium/lib/validation/document-validator.js +0 -1
  1125. package/dist/esm/node_modules/langium/lib/validation/validation-registry.js +0 -1
  1126. package/dist/esm/node_modules/langium/lib/workspace/ast-descriptions.js +0 -1
  1127. package/dist/esm/node_modules/langium/lib/workspace/ast-node-locator.js +0 -1
  1128. package/dist/esm/node_modules/langium/lib/workspace/configuration.js +0 -1
  1129. package/dist/esm/node_modules/langium/lib/workspace/document-builder.js +0 -1
  1130. package/dist/esm/node_modules/langium/lib/workspace/documents.js +0 -1
  1131. package/dist/esm/node_modules/langium/lib/workspace/file-system-provider.js +0 -1
  1132. package/dist/esm/node_modules/langium/lib/workspace/index-manager.js +0 -1
  1133. package/dist/esm/node_modules/langium/lib/workspace/workspace-lock.js +0 -1
  1134. package/dist/esm/node_modules/langium/lib/workspace/workspace-manager.js +0 -1
  1135. package/dist/esm/node_modules/layout-base/layout-base.js +0 -1
  1136. package/dist/esm/node_modules/lodash-es/_DataView.js +0 -1
  1137. package/dist/esm/node_modules/lodash-es/_Hash.js +0 -1
  1138. package/dist/esm/node_modules/lodash-es/_ListCache.js +0 -1
  1139. package/dist/esm/node_modules/lodash-es/_Map.js +0 -1
  1140. package/dist/esm/node_modules/lodash-es/_MapCache.js +0 -1
  1141. package/dist/esm/node_modules/lodash-es/_Promise.js +0 -1
  1142. package/dist/esm/node_modules/lodash-es/_Set.js +0 -1
  1143. package/dist/esm/node_modules/lodash-es/_SetCache.js +0 -1
  1144. package/dist/esm/node_modules/lodash-es/_Stack.js +0 -1
  1145. package/dist/esm/node_modules/lodash-es/_Symbol.js +0 -1
  1146. package/dist/esm/node_modules/lodash-es/_Uint8Array.js +0 -1
  1147. package/dist/esm/node_modules/lodash-es/_WeakMap.js +0 -1
  1148. package/dist/esm/node_modules/lodash-es/_apply.js +0 -1
  1149. package/dist/esm/node_modules/lodash-es/_arrayAggregator.js +0 -1
  1150. package/dist/esm/node_modules/lodash-es/_arrayEach.js +0 -1
  1151. package/dist/esm/node_modules/lodash-es/_arrayEvery.js +0 -1
  1152. package/dist/esm/node_modules/lodash-es/_arrayFilter.js +0 -1
  1153. package/dist/esm/node_modules/lodash-es/_arrayIncludes.js +0 -1
  1154. package/dist/esm/node_modules/lodash-es/_arrayIncludesWith.js +0 -1
  1155. package/dist/esm/node_modules/lodash-es/_arrayLikeKeys.js +0 -1
  1156. package/dist/esm/node_modules/lodash-es/_arrayMap.js +0 -1
  1157. package/dist/esm/node_modules/lodash-es/_arrayPush.js +0 -1
  1158. package/dist/esm/node_modules/lodash-es/_arrayReduce.js +0 -1
  1159. package/dist/esm/node_modules/lodash-es/_arraySome.js +0 -1
  1160. package/dist/esm/node_modules/lodash-es/_assignMergeValue.js +0 -1
  1161. package/dist/esm/node_modules/lodash-es/_assignValue.js +0 -1
  1162. package/dist/esm/node_modules/lodash-es/_assocIndexOf.js +0 -1
  1163. package/dist/esm/node_modules/lodash-es/_baseAggregator.js +0 -1
  1164. package/dist/esm/node_modules/lodash-es/_baseAssign.js +0 -1
  1165. package/dist/esm/node_modules/lodash-es/_baseAssignIn.js +0 -1
  1166. package/dist/esm/node_modules/lodash-es/_baseAssignValue.js +0 -1
  1167. package/dist/esm/node_modules/lodash-es/_baseClone.js +0 -1
  1168. package/dist/esm/node_modules/lodash-es/_baseCreate.js +0 -1
  1169. package/dist/esm/node_modules/lodash-es/_baseDifference.js +0 -1
  1170. package/dist/esm/node_modules/lodash-es/_baseEach.js +0 -1
  1171. package/dist/esm/node_modules/lodash-es/_baseEvery.js +0 -1
  1172. package/dist/esm/node_modules/lodash-es/_baseExtremum.js +0 -1
  1173. package/dist/esm/node_modules/lodash-es/_baseFilter.js +0 -1
  1174. package/dist/esm/node_modules/lodash-es/_baseFindIndex.js +0 -1
  1175. package/dist/esm/node_modules/lodash-es/_baseFlatten.js +0 -1
  1176. package/dist/esm/node_modules/lodash-es/_baseFor.js +0 -1
  1177. package/dist/esm/node_modules/lodash-es/_baseForOwn.js +0 -1
  1178. package/dist/esm/node_modules/lodash-es/_baseGet.js +0 -1
  1179. package/dist/esm/node_modules/lodash-es/_baseGetAllKeys.js +0 -1
  1180. package/dist/esm/node_modules/lodash-es/_baseGetTag.js +0 -1
  1181. package/dist/esm/node_modules/lodash-es/_baseGt.js +0 -1
  1182. package/dist/esm/node_modules/lodash-es/_baseHas.js +0 -1
  1183. package/dist/esm/node_modules/lodash-es/_baseHasIn.js +0 -1
  1184. package/dist/esm/node_modules/lodash-es/_baseIndexOf.js +0 -1
  1185. package/dist/esm/node_modules/lodash-es/_baseIsArguments.js +0 -1
  1186. package/dist/esm/node_modules/lodash-es/_baseIsEqual.js +0 -1
  1187. package/dist/esm/node_modules/lodash-es/_baseIsEqualDeep.js +0 -1
  1188. package/dist/esm/node_modules/lodash-es/_baseIsMap.js +0 -1
  1189. package/dist/esm/node_modules/lodash-es/_baseIsMatch.js +0 -1
  1190. package/dist/esm/node_modules/lodash-es/_baseIsNaN.js +0 -1
  1191. package/dist/esm/node_modules/lodash-es/_baseIsNative.js +0 -1
  1192. package/dist/esm/node_modules/lodash-es/_baseIsRegExp.js +0 -1
  1193. package/dist/esm/node_modules/lodash-es/_baseIsSet.js +0 -1
  1194. package/dist/esm/node_modules/lodash-es/_baseIsTypedArray.js +0 -1
  1195. package/dist/esm/node_modules/lodash-es/_baseIteratee.js +0 -1
  1196. package/dist/esm/node_modules/lodash-es/_baseKeys.js +0 -1
  1197. package/dist/esm/node_modules/lodash-es/_baseKeysIn.js +0 -1
  1198. package/dist/esm/node_modules/lodash-es/_baseLt.js +0 -1
  1199. package/dist/esm/node_modules/lodash-es/_baseMap.js +0 -1
  1200. package/dist/esm/node_modules/lodash-es/_baseMatches.js +0 -1
  1201. package/dist/esm/node_modules/lodash-es/_baseMatchesProperty.js +0 -1
  1202. package/dist/esm/node_modules/lodash-es/_baseMerge.js +0 -1
  1203. package/dist/esm/node_modules/lodash-es/_baseMergeDeep.js +0 -1
  1204. package/dist/esm/node_modules/lodash-es/_baseOrderBy.js +0 -1
  1205. package/dist/esm/node_modules/lodash-es/_basePick.js +0 -1
  1206. package/dist/esm/node_modules/lodash-es/_basePickBy.js +0 -1
  1207. package/dist/esm/node_modules/lodash-es/_baseProperty.js +0 -1
  1208. package/dist/esm/node_modules/lodash-es/_basePropertyDeep.js +0 -1
  1209. package/dist/esm/node_modules/lodash-es/_baseRange.js +0 -1
  1210. package/dist/esm/node_modules/lodash-es/_baseReduce.js +0 -1
  1211. package/dist/esm/node_modules/lodash-es/_baseRest.js +0 -1
  1212. package/dist/esm/node_modules/lodash-es/_baseSet.js +0 -1
  1213. package/dist/esm/node_modules/lodash-es/_baseSetToString.js +0 -1
  1214. package/dist/esm/node_modules/lodash-es/_baseSlice.js +0 -1
  1215. package/dist/esm/node_modules/lodash-es/_baseSome.js +0 -1
  1216. package/dist/esm/node_modules/lodash-es/_baseSortBy.js +0 -1
  1217. package/dist/esm/node_modules/lodash-es/_baseTimes.js +0 -1
  1218. package/dist/esm/node_modules/lodash-es/_baseToString.js +0 -1
  1219. package/dist/esm/node_modules/lodash-es/_baseTrim.js +0 -1
  1220. package/dist/esm/node_modules/lodash-es/_baseUnary.js +0 -1
  1221. package/dist/esm/node_modules/lodash-es/_baseUniq.js +0 -1
  1222. package/dist/esm/node_modules/lodash-es/_baseValues.js +0 -1
  1223. package/dist/esm/node_modules/lodash-es/_baseZipObject.js +0 -1
  1224. package/dist/esm/node_modules/lodash-es/_cacheHas.js +0 -1
  1225. package/dist/esm/node_modules/lodash-es/_castFunction.js +0 -1
  1226. package/dist/esm/node_modules/lodash-es/_castPath.js +0 -1
  1227. package/dist/esm/node_modules/lodash-es/_cloneArrayBuffer.js +0 -1
  1228. package/dist/esm/node_modules/lodash-es/_cloneBuffer.js +0 -1
  1229. package/dist/esm/node_modules/lodash-es/_cloneDataView.js +0 -1
  1230. package/dist/esm/node_modules/lodash-es/_cloneRegExp.js +0 -1
  1231. package/dist/esm/node_modules/lodash-es/_cloneSymbol.js +0 -1
  1232. package/dist/esm/node_modules/lodash-es/_cloneTypedArray.js +0 -1
  1233. package/dist/esm/node_modules/lodash-es/_compareAscending.js +0 -1
  1234. package/dist/esm/node_modules/lodash-es/_compareMultiple.js +0 -1
  1235. package/dist/esm/node_modules/lodash-es/_copyArray.js +0 -1
  1236. package/dist/esm/node_modules/lodash-es/_copyObject.js +0 -1
  1237. package/dist/esm/node_modules/lodash-es/_copySymbols.js +0 -1
  1238. package/dist/esm/node_modules/lodash-es/_copySymbolsIn.js +0 -1
  1239. package/dist/esm/node_modules/lodash-es/_coreJsData.js +0 -1
  1240. package/dist/esm/node_modules/lodash-es/_createAggregator.js +0 -1
  1241. package/dist/esm/node_modules/lodash-es/_createAssigner.js +0 -1
  1242. package/dist/esm/node_modules/lodash-es/_createBaseEach.js +0 -1
  1243. package/dist/esm/node_modules/lodash-es/_createBaseFor.js +0 -1
  1244. package/dist/esm/node_modules/lodash-es/_createFind.js +0 -1
  1245. package/dist/esm/node_modules/lodash-es/_createRange.js +0 -1
  1246. package/dist/esm/node_modules/lodash-es/_createSet.js +0 -1
  1247. package/dist/esm/node_modules/lodash-es/_defineProperty.js +0 -1
  1248. package/dist/esm/node_modules/lodash-es/_equalArrays.js +0 -1
  1249. package/dist/esm/node_modules/lodash-es/_equalByTag.js +0 -1
  1250. package/dist/esm/node_modules/lodash-es/_equalObjects.js +0 -1
  1251. package/dist/esm/node_modules/lodash-es/_flatRest.js +0 -1
  1252. package/dist/esm/node_modules/lodash-es/_freeGlobal.js +0 -1
  1253. package/dist/esm/node_modules/lodash-es/_getAllKeys.js +0 -1
  1254. package/dist/esm/node_modules/lodash-es/_getAllKeysIn.js +0 -1
  1255. package/dist/esm/node_modules/lodash-es/_getMapData.js +0 -1
  1256. package/dist/esm/node_modules/lodash-es/_getMatchData.js +0 -1
  1257. package/dist/esm/node_modules/lodash-es/_getNative.js +0 -1
  1258. package/dist/esm/node_modules/lodash-es/_getPrototype.js +0 -1
  1259. package/dist/esm/node_modules/lodash-es/_getRawTag.js +0 -1
  1260. package/dist/esm/node_modules/lodash-es/_getSymbols.js +0 -1
  1261. package/dist/esm/node_modules/lodash-es/_getSymbolsIn.js +0 -1
  1262. package/dist/esm/node_modules/lodash-es/_getTag.js +0 -1
  1263. package/dist/esm/node_modules/lodash-es/_getValue.js +0 -1
  1264. package/dist/esm/node_modules/lodash-es/_hasPath.js +0 -1
  1265. package/dist/esm/node_modules/lodash-es/_hashClear.js +0 -1
  1266. package/dist/esm/node_modules/lodash-es/_hashDelete.js +0 -1
  1267. package/dist/esm/node_modules/lodash-es/_hashGet.js +0 -1
  1268. package/dist/esm/node_modules/lodash-es/_hashHas.js +0 -1
  1269. package/dist/esm/node_modules/lodash-es/_hashSet.js +0 -1
  1270. package/dist/esm/node_modules/lodash-es/_initCloneArray.js +0 -1
  1271. package/dist/esm/node_modules/lodash-es/_initCloneByTag.js +0 -1
  1272. package/dist/esm/node_modules/lodash-es/_initCloneObject.js +0 -1
  1273. package/dist/esm/node_modules/lodash-es/_isFlattenable.js +0 -1
  1274. package/dist/esm/node_modules/lodash-es/_isIndex.js +0 -1
  1275. package/dist/esm/node_modules/lodash-es/_isIterateeCall.js +0 -1
  1276. package/dist/esm/node_modules/lodash-es/_isKey.js +0 -1
  1277. package/dist/esm/node_modules/lodash-es/_isKeyable.js +0 -1
  1278. package/dist/esm/node_modules/lodash-es/_isMasked.js +0 -1
  1279. package/dist/esm/node_modules/lodash-es/_isPrototype.js +0 -1
  1280. package/dist/esm/node_modules/lodash-es/_isStrictComparable.js +0 -1
  1281. package/dist/esm/node_modules/lodash-es/_listCacheClear.js +0 -1
  1282. package/dist/esm/node_modules/lodash-es/_listCacheDelete.js +0 -1
  1283. package/dist/esm/node_modules/lodash-es/_listCacheGet.js +0 -1
  1284. package/dist/esm/node_modules/lodash-es/_listCacheHas.js +0 -1
  1285. package/dist/esm/node_modules/lodash-es/_listCacheSet.js +0 -1
  1286. package/dist/esm/node_modules/lodash-es/_mapCacheClear.js +0 -1
  1287. package/dist/esm/node_modules/lodash-es/_mapCacheDelete.js +0 -1
  1288. package/dist/esm/node_modules/lodash-es/_mapCacheGet.js +0 -1
  1289. package/dist/esm/node_modules/lodash-es/_mapCacheHas.js +0 -1
  1290. package/dist/esm/node_modules/lodash-es/_mapCacheSet.js +0 -1
  1291. package/dist/esm/node_modules/lodash-es/_mapToArray.js +0 -1
  1292. package/dist/esm/node_modules/lodash-es/_matchesStrictComparable.js +0 -1
  1293. package/dist/esm/node_modules/lodash-es/_memoizeCapped.js +0 -1
  1294. package/dist/esm/node_modules/lodash-es/_nativeCreate.js +0 -1
  1295. package/dist/esm/node_modules/lodash-es/_nativeKeys.js +0 -1
  1296. package/dist/esm/node_modules/lodash-es/_nativeKeysIn.js +0 -1
  1297. package/dist/esm/node_modules/lodash-es/_nodeUtil.js +0 -1
  1298. package/dist/esm/node_modules/lodash-es/_objectToString.js +0 -1
  1299. package/dist/esm/node_modules/lodash-es/_overArg.js +0 -1
  1300. package/dist/esm/node_modules/lodash-es/_overRest.js +0 -1
  1301. package/dist/esm/node_modules/lodash-es/_root.js +0 -1
  1302. package/dist/esm/node_modules/lodash-es/_safeGet.js +0 -1
  1303. package/dist/esm/node_modules/lodash-es/_setCacheAdd.js +0 -1
  1304. package/dist/esm/node_modules/lodash-es/_setCacheHas.js +0 -1
  1305. package/dist/esm/node_modules/lodash-es/_setToArray.js +0 -1
  1306. package/dist/esm/node_modules/lodash-es/_setToString.js +0 -1
  1307. package/dist/esm/node_modules/lodash-es/_shortOut.js +0 -1
  1308. package/dist/esm/node_modules/lodash-es/_stackClear.js +0 -1
  1309. package/dist/esm/node_modules/lodash-es/_stackDelete.js +0 -1
  1310. package/dist/esm/node_modules/lodash-es/_stackGet.js +0 -1
  1311. package/dist/esm/node_modules/lodash-es/_stackHas.js +0 -1
  1312. package/dist/esm/node_modules/lodash-es/_stackSet.js +0 -1
  1313. package/dist/esm/node_modules/lodash-es/_strictIndexOf.js +0 -1
  1314. package/dist/esm/node_modules/lodash-es/_stringToPath.js +0 -1
  1315. package/dist/esm/node_modules/lodash-es/_toKey.js +0 -1
  1316. package/dist/esm/node_modules/lodash-es/_toSource.js +0 -1
  1317. package/dist/esm/node_modules/lodash-es/_trimmedEndIndex.js +0 -1
  1318. package/dist/esm/node_modules/lodash-es/assign.js +0 -1
  1319. package/dist/esm/node_modules/lodash-es/clone.js +0 -1
  1320. package/dist/esm/node_modules/lodash-es/cloneDeep.js +0 -1
  1321. package/dist/esm/node_modules/lodash-es/compact.js +0 -1
  1322. package/dist/esm/node_modules/lodash-es/constant.js +0 -1
  1323. package/dist/esm/node_modules/lodash-es/defaults.js +0 -1
  1324. package/dist/esm/node_modules/lodash-es/difference.js +0 -1
  1325. package/dist/esm/node_modules/lodash-es/drop.js +0 -1
  1326. package/dist/esm/node_modules/lodash-es/dropRight.js +0 -1
  1327. package/dist/esm/node_modules/lodash-es/eq.js +0 -1
  1328. package/dist/esm/node_modules/lodash-es/every.js +0 -1
  1329. package/dist/esm/node_modules/lodash-es/filter.js +0 -1
  1330. package/dist/esm/node_modules/lodash-es/find.js +0 -1
  1331. package/dist/esm/node_modules/lodash-es/findIndex.js +0 -1
  1332. package/dist/esm/node_modules/lodash-es/flatMap.js +0 -1
  1333. package/dist/esm/node_modules/lodash-es/flatten.js +0 -1
  1334. package/dist/esm/node_modules/lodash-es/forEach.js +0 -1
  1335. package/dist/esm/node_modules/lodash-es/forIn.js +0 -1
  1336. package/dist/esm/node_modules/lodash-es/forOwn.js +0 -1
  1337. package/dist/esm/node_modules/lodash-es/get.js +0 -1
  1338. package/dist/esm/node_modules/lodash-es/groupBy.js +0 -1
  1339. package/dist/esm/node_modules/lodash-es/has.js +0 -1
  1340. package/dist/esm/node_modules/lodash-es/hasIn.js +0 -1
  1341. package/dist/esm/node_modules/lodash-es/head.js +0 -1
  1342. package/dist/esm/node_modules/lodash-es/identity.js +0 -1
  1343. package/dist/esm/node_modules/lodash-es/includes.js +0 -1
  1344. package/dist/esm/node_modules/lodash-es/indexOf.js +0 -1
  1345. package/dist/esm/node_modules/lodash-es/isArguments.js +0 -1
  1346. package/dist/esm/node_modules/lodash-es/isArray.js +0 -1
  1347. package/dist/esm/node_modules/lodash-es/isArrayLike.js +0 -1
  1348. package/dist/esm/node_modules/lodash-es/isArrayLikeObject.js +0 -1
  1349. package/dist/esm/node_modules/lodash-es/isBuffer.js +0 -1
  1350. package/dist/esm/node_modules/lodash-es/isEmpty.js +0 -1
  1351. package/dist/esm/node_modules/lodash-es/isFunction.js +0 -1
  1352. package/dist/esm/node_modules/lodash-es/isLength.js +0 -1
  1353. package/dist/esm/node_modules/lodash-es/isMap.js +0 -1
  1354. package/dist/esm/node_modules/lodash-es/isObject.js +0 -1
  1355. package/dist/esm/node_modules/lodash-es/isObjectLike.js +0 -1
  1356. package/dist/esm/node_modules/lodash-es/isPlainObject.js +0 -1
  1357. package/dist/esm/node_modules/lodash-es/isRegExp.js +0 -1
  1358. package/dist/esm/node_modules/lodash-es/isSet.js +0 -1
  1359. package/dist/esm/node_modules/lodash-es/isString.js +0 -1
  1360. package/dist/esm/node_modules/lodash-es/isSymbol.js +0 -1
  1361. package/dist/esm/node_modules/lodash-es/isTypedArray.js +0 -1
  1362. package/dist/esm/node_modules/lodash-es/isUndefined.js +0 -1
  1363. package/dist/esm/node_modules/lodash-es/keys.js +0 -1
  1364. package/dist/esm/node_modules/lodash-es/keysIn.js +0 -1
  1365. package/dist/esm/node_modules/lodash-es/last.js +0 -1
  1366. package/dist/esm/node_modules/lodash-es/map.js +0 -1
  1367. package/dist/esm/node_modules/lodash-es/mapValues.js +0 -1
  1368. package/dist/esm/node_modules/lodash-es/max.js +0 -1
  1369. package/dist/esm/node_modules/lodash-es/memoize.js +0 -1
  1370. package/dist/esm/node_modules/lodash-es/merge.js +0 -1
  1371. package/dist/esm/node_modules/lodash-es/min.js +0 -1
  1372. package/dist/esm/node_modules/lodash-es/minBy.js +0 -1
  1373. package/dist/esm/node_modules/lodash-es/negate.js +0 -1
  1374. package/dist/esm/node_modules/lodash-es/noop.js +0 -1
  1375. package/dist/esm/node_modules/lodash-es/now.js +0 -1
  1376. package/dist/esm/node_modules/lodash-es/pick.js +0 -1
  1377. package/dist/esm/node_modules/lodash-es/pickBy.js +0 -1
  1378. package/dist/esm/node_modules/lodash-es/property.js +0 -1
  1379. package/dist/esm/node_modules/lodash-es/range.js +0 -1
  1380. package/dist/esm/node_modules/lodash-es/reduce.js +0 -1
  1381. package/dist/esm/node_modules/lodash-es/reject.js +0 -1
  1382. package/dist/esm/node_modules/lodash-es/some.js +0 -1
  1383. package/dist/esm/node_modules/lodash-es/sortBy.js +0 -1
  1384. package/dist/esm/node_modules/lodash-es/stubArray.js +0 -1
  1385. package/dist/esm/node_modules/lodash-es/stubFalse.js +0 -1
  1386. package/dist/esm/node_modules/lodash-es/toFinite.js +0 -1
  1387. package/dist/esm/node_modules/lodash-es/toInteger.js +0 -1
  1388. package/dist/esm/node_modules/lodash-es/toNumber.js +0 -1
  1389. package/dist/esm/node_modules/lodash-es/toPlainObject.js +0 -1
  1390. package/dist/esm/node_modules/lodash-es/toString.js +0 -1
  1391. package/dist/esm/node_modules/lodash-es/union.js +0 -1
  1392. package/dist/esm/node_modules/lodash-es/uniq.js +0 -1
  1393. package/dist/esm/node_modules/lodash-es/uniqBy.js +0 -1
  1394. package/dist/esm/node_modules/lodash-es/uniqueId.js +0 -1
  1395. package/dist/esm/node_modules/lodash-es/values.js +0 -1
  1396. package/dist/esm/node_modules/lodash-es/zipObject.js +0 -1
  1397. package/dist/esm/node_modules/marked/lib/marked.esm.js +0 -1
  1398. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-UYN6MBPD.js +0 -1
  1399. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-ZHA2E4KO.js +0 -1
  1400. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-6F5ED5ID.js +0 -1
  1401. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3JNJP5BE.js +0 -1
  1402. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3X56UNUX.js +0 -1
  1403. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5HRBRIJM.js +0 -1
  1404. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-66SQ7PYY.js +0 -1
  1405. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6DBFFHIP.js +0 -1
  1406. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6JOS74DS.js +0 -1
  1407. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7DKRZKHE.js +0 -1
  1408. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7NZE2EM7.js +0 -1
  1409. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7U56Z5CX.js +0 -1
  1410. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ASOPGD6M.js +0 -1
  1411. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BO7VGL7K.js +0 -1
  1412. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EJ4ZWXGL.js +0 -1
  1413. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-K6PMAZHR.js +0 -1
  1414. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KFBOBJHC.js +0 -1
  1415. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OPO4IU42.js +0 -1
  1416. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3SWNSAA.js +0 -7
  1417. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-T2TOU4HS.js +0 -1
  1418. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TMUBEWPD.js +0 -1
  1419. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-LNE6IOMH.js +0 -1
  1420. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-MQ7JQ4JX.js +0 -1
  1421. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/dagre-4EVJKHTY.js +0 -1
  1422. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QW4FP2JN.js +0 -1
  1423. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-6RL3IURR.js +0 -1
  1424. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-7ASYPVHJ.js +0 -1
  1425. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-NTVNEXSI.js +0 -1
  1426. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-NRZ2UAAF.js +0 -1
  1427. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-A4XQUW5V.js +0 -1
  1428. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-G5WM74LC.js +0 -1
  1429. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-QRCXZQQD.js +0 -1
  1430. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-GWI6TPTV.js +0 -1
  1431. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-YF2LJOPJ.js +0 -1
  1432. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-OS5C2QUG.js +0 -1
  1433. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-MIRIMTAZ.js +0 -1
  1434. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-Y46BX6SQ.js +0 -1
  1435. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-G6AWOVSC.js +0 -1
  1436. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-MAYHULR4.js +0 -1
  1437. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4JROLMXI.js +0 -1
  1438. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-U7ZMHBDA.js +0 -1
  1439. package/dist/esm/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-6QU3TZC5.js +0 -1
  1440. package/dist/esm/node_modules/mermaid/dist/mermaid.core.js +0 -6
  1441. package/dist/esm/node_modules/roughjs/bundled/rough.esm.js +0 -1
  1442. package/dist/esm/node_modules/ts-dedent/esm/index.js +0 -1
  1443. package/dist/esm/node_modules/uuid/dist/esm-browser/parse.js +0 -1
  1444. package/dist/esm/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  1445. package/dist/esm/node_modules/uuid/dist/esm-browser/sha1.js +0 -1
  1446. package/dist/esm/node_modules/uuid/dist/esm-browser/stringify.js +0 -1
  1447. package/dist/esm/node_modules/uuid/dist/esm-browser/v35.js +0 -1
  1448. package/dist/esm/node_modules/uuid/dist/esm-browser/v5.js +0 -1
  1449. package/dist/esm/node_modules/uuid/dist/esm-browser/validate.js +0 -1
  1450. package/dist/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -1
  1451. package/dist/esm/node_modules/vscode-jsonrpc/lib/common/events.js +0 -1
  1452. package/dist/esm/node_modules/vscode-jsonrpc/lib/common/is.js +0 -1
  1453. package/dist/esm/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -1
  1454. package/dist/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -1
  1455. package/dist/esm/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1
  1456. package/dist/esm/node_modules/vscode-uri/lib/esm/index.js +0 -1
@@ -1 +0,0 @@
1
- function e(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let t={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function n(e){t=e}const s=/[&<>"']/,r=new RegExp(s.source,"g"),i=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,l=new RegExp(i.source,"g"),o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a=e=>o[e];function c(e,t){if(t){if(s.test(e))return e.replace(r,a)}else if(i.test(e))return e.replace(l,a);return e}const h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;const p=/(^|[^\[])\^/g;function u(e,t){let n="string"==typeof e?e:e.source;t=t||"";const s={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(p,"$1"),n=n.replace(e,r),s},getRegex:()=>new RegExp(n,t)};return s}function k(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const g={exec:()=>null};function f(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let s=!1,r=t;for(;--r>=0&&"\\"===n[r];)s=!s;return s?"|":" |"})).split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(/\\\|/g,"|");return n}function x(e,t,n){const s=e.length;if(0===s)return"";let r=0;for(;r<s;){const i=e.charAt(s-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.slice(0,s-r)}function d(e,t,n,s){const r=t.href,i=t.title?c(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){s.state.inLink=!0;const e={type:"link",raw:n,href:r,title:i,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:i,text:c(l)}}class b{options;rules;lexer;constructor(e){this.options=e||t}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:x(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const s=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=s.length?e.slice(s.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=x(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:x(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=x(t[0],"\n").split("\n"),n="",s="";const r=[];for(;e.length>0;){let t=!1;const i=[];let l;for(l=0;l<e.length;l++)if(/^ {0,3}>/.test(e[l]))i.push(e[l]),t=!0;else{if(t)break;i.push(e[l])}e=e.slice(l);const o=i.join("\n"),a=o.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");n=n?`${n}\n${o}`:o,s=s?`${s}\n${a}`:a;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(a,r,!0),this.lexer.state.top=c,0===e.length)break;const h=r[r.length-1];if("code"===h?.type)break;if("blockquote"===h?.type){const t=h,i=t.raw+"\n"+e.join("\n"),l=this.blockquote(i);r[r.length-1]=l,n=n.substring(0,n.length-t.raw.length)+l.raw,s=s.substring(0,s.length-t.text.length)+l.text;break}if("list"!==h?.type);else{const t=h,i=t.raw+"\n"+e.join("\n"),l=this.list(i);r[r.length-1]=l,n=n.substring(0,n.length-h.raw.length)+l.raw,s=s.substring(0,s.length-t.raw.length)+l.raw,e=i.substring(r[r.length-1].raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:r,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const i=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let l=!1;for(;e;){let n=!1,s="",o="";if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let a=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],h=!a.trim(),p=0;if(this.options.pedantic?(p=2,o=a.trimStart()):h?p=t[1].length+1:(p=t[2].search(/[^ ]/),p=p>4?1:p,o=a.slice(p),p+=t[1].length),h&&/^ *$/.test(c)&&(s+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,p-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,p-1)}}#`);for(;e;){const l=e.split("\n",1)[0];if(c=l,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),r.test(c))break;if(i.test(c))break;if(t.test(c))break;if(n.test(e))break;if(c.search(/[^ ]/)>=p||!c.trim())o+="\n"+c.slice(p);else{if(h)break;if(a.search(/[^ ]/)>=4)break;if(r.test(a))break;if(i.test(a))break;if(n.test(a))break;o+="\n"+c}h||c.trim()||(h=!0),s+=l+"\n",e=e.substring(l.length+1),a=c.slice(p)}}r.loose||(l?r.loose=!0:/\n *\n *$/.test(s)&&(l=!0));let u,k=null;this.options.gfm&&(k=/^\[[ xX]\] /.exec(o),k&&(u="[ ] "!==k[0],o=o.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:s,task:!!k,checked:u,loose:!1,text:o,tokens:[]}),r.raw+=s}r.items[r.items.length-1].raw=r.items[r.items.length-1].raw.trimEnd(),r.items[r.items.length-1].text=r.items[r.items.length-1].text.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e<r.items.length;e++)if(this.lexer.state.top=!1,r.items[e].tokens=this.lexer.blockTokens(r.items[e].text,[]),!r.loose){const t=r.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));r.loose=n}if(r.loose)for(let e=0;e<r.items.length;e++)r.items[e].loose=!0;return r}}html(e){const t=this.rules.block.html.exec(e);if(t){return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const n=f(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),r=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const e of s)/^ *-+: *$/.test(e)?i.align.push("right"):/^ *:-+: *$/.test(e)?i.align.push("center"):/^ *:-+ *$/.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(const e of r)i.rows.push(f(e,i.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]}))));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:c(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=x(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),d(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return d(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s)return;if(s[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=[...s[0]].length-1;let r,i,l=n,o=0;const a="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(s=a.exec(t));){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(i=[...r].length,s[3]||s[4]){l+=i;continue}if((s[5]||s[6])&&n%3&&!((n+i)%3)){o+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+o);const t=[...s[0]][0].length,a=e.slice(0,n+s.index+t+i);if(Math.min(n,i)%2){const e=a.slice(1,-1);return{type:"em",raw:a,text:e,tokens:this.lexer.inlineTokens(e)}}const c=a.slice(2,-2);return{type:"strong",raw:a,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),s=/^ /.test(e)&&/ $/.test(e);return n&&s&&(e=e.substring(1,e.length-1)),e=c(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=c(t[1]),n="mailto:"+e):(e=c(t[1]),n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=c(t[0]),n="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=c(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:c(t[0]),{type:"text",raw:t[0],text:e}}}}const w=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,m=/(?:[*+-]|\d{1,9}[.)])/,y=u(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,m).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),$=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,z=/(?!\s*\])(?:\\.|[^\[\]\\])+/,R=u(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",z).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),T=u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,m).getRegex(),_="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",A=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,S=u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",A).replace("tag",_).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),I=u($).replace("hr",w).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),E={blockquote:u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",I).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:R,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:w,html:S,lheading:y,list:T,newline:/^(?: *(?:\n|$))+/,paragraph:I,table:g,text:/^[^\n]+/},q=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",w).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),Z={...E,table:q,paragraph:u($).replace("hr",w).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",q).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex()},L={...E,html:u("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",A).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u($).replace("hr",w).replace("heading"," *#{1,6} *[^\n]").replace("lheading",y).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},P=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,v=/^( {2,}|\\)\n(?!\s*$)/,Q="\\p{P}\\p{S}",B=u(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Q).getRegex(),C=u(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Q).getRegex(),M=u("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Q).getRegex(),O=u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Q).getRegex(),D=u(/\\([punct])/,"gu").replace(/punct/g,Q).getRegex(),j=u(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),H=u(A).replace("(?:--\x3e|$)","--\x3e").getRegex(),F=u("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",H).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),U=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X=u(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",U).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),N=u(/^!?\[(label)\]\[(ref)\]/).replace("label",U).replace("ref",z).getRegex(),G=u(/^!?\[(ref)\](?:\[\])?/).replace("ref",z).getRegex(),J={_backpedal:g,anyPunctuation:D,autolink:j,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:v,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:C,emStrongRDelimAst:M,emStrongRDelimUnd:O,escape:P,link:X,nolink:G,punctuation:B,reflink:N,reflinkSearch:u("reflink|nolink(?!\\()","g").replace("reflink",N).replace("nolink",G).getRegex(),tag:F,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},K={...J,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",U).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U).getRegex()},V={...J,escape:u(P).replace("])","~|])").getRegex(),url:u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},W={...V,br:u(v).replace("{2,}","*").getRegex(),text:u(V.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Y={normal:E,gfm:Z,pedantic:L},ee={normal:J,gfm:V,breaks:W,pedantic:K};class te{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||t,this.options.tokenizer=this.options.tokenizer||new b,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Y.normal,inline:ee.normal};this.options.pedantic?(n.block=Y.pedantic,n.inline=ee.pedantic):this.options.gfm&&(n.block=Y.gfm,this.options.breaks?n.inline=ee.breaks:n.inline=ee.gfm),this.tokenizer.rules=n}static get rules(){return{block:Y,inline:ee}}static lex(e,t){return new te(t).lex(e)}static lexInline(e,t){return new te(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){let s,r,i;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))))if(s=this.tokenizer.space(e))e=e.substring(s.raw.length),1===s.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(s);else if(s=this.tokenizer.code(e))e=e.substring(s.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(s):(r.raw+="\n"+s.raw,r.text+="\n"+s.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(s=this.tokenizer.fences(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.heading(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.hr(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.blockquote(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.list(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.html(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.def(e))e=e.substring(s.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title}):(r.raw+="\n"+s.raw,r.text+="\n"+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(s=this.tokenizer.table(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.lheading(e))e=e.substring(s.raw.length),t.push(s);else{if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(i)))r=t[t.length-1],n&&"paragraph"===r?.type?(r.raw+="\n"+s.raw,r.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(s),n=i.length!==e.length,e=e.substring(s.raw.length);else if(s=this.tokenizer.text(e))e=e.substring(s.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+s.raw,r.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(s);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,s,r,i,l,o,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(a));)a=a.slice(0,i.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(l||(o=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((s=>!!(n=s.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),s=t[t.length-1],s&&"text"===n.type&&"text"===s.type?(s.raw+=n.raw,s.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),s=t[t.length-1],s&&"text"===n.type&&"text"===s.type?(s.raw+=n.raw,s.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,o))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),l=!0,s=t[t.length-1],s&&"text"===s.type?(s.raw+=n.raw,s.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class ne{options;parser;constructor(e){this.options=e||t}space(e){return""}code({text:e,lang:t,escaped:n}){const s=(t||"").match(/^\S*/)?.[0],r=e.replace(/\n$/,"")+"\n";return s?'<pre><code class="language-'+c(s)+'">'+(n?r:c(r,!0))+"</code></pre>\n":"<pre><code>"+(n?r:c(r,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let s="";for(let t=0;t<e.items.length;t++){const n=e.items[t];s+=this.listitem(n)}const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+s+"</"+r+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let s="";for(let t=0;t<e.rows.length;t++){const r=e.rows[t];n="";for(let e=0;e<r.length;e++)n+=this.tablecell(r[e]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const s=this.parser.parseInline(n),r=k(e);if(null===r)return s;let i='<a href="'+(e=r)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+s+"</a>",i}image({href:e,title:t,text:n}){const s=k(e);if(null===s)return n;let r=`<img src="${e=s}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class se{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class re{options;renderer;textRenderer;constructor(e){this.options=e||t,this.options.renderer=this.options.renderer||new ne,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new se}static parse(e,t){return new re(t).parse(e)}static parseInline(e,t){return new re(t).parseInline(e)}parse(e,t=!0){let n="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const e=r,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const i=r;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let r=i,l=this.renderer.text(r);for(;s+1<e.length&&"text"===e[s+1].type;)r=e[++s],l+="\n"+this.renderer.text(r);n+=t?this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l}]}):l;continue}default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=e||"";continue}}const i=r;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}}class ie{options;constructor(e){this.options=e||t}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class le{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.#e(te.lex,re.parse);parseInline=this.#e(te.lexInline,re.parseInline);Parser=re;Renderer=ne;TextRenderer=se;Lexer=te;Tokenizer=b;Hooks=ie;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const s of e.header)n=n.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=s;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((s=>{const r=e[s].flat(1/0);n=n.concat(this.walkTokens(r,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=n.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=this.defaults.renderer||new ne(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const s=n;let r=e.renderer[s];e.useNewRenderer||(r=this.#t(r,s,t));const i=t[s];t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new b(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const s=n,r=e.tokenizer[s],i=t[s];t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new ie;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if("options"===n)continue;const s=n,r=e.hooks[s],i=t[s];ie.passThroughHooks.has(n)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then((e=>i.call(t,e)));const n=r.call(t,e);return i.call(t,n)}:t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(s.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}#t(e,t,n){switch(t){case"heading":return function(s){return s.type&&s.type===t?e.call(this,n.parser.parseInline(s.tokens),s.depth,function(e){return e.replace(h,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}(n.parser.parseInline(s.tokens,n.parser.textRenderer))):e.apply(this,arguments)};case"code":return function(n){return n.type&&n.type===t?e.call(this,n.text,n.lang,!!n.escaped):e.apply(this,arguments)};case"table":return function(n){if(!n.type||n.type!==t)return e.apply(this,arguments);let s="",r="";for(let e=0;e<n.header.length;e++)r+=this.tablecell({text:n.header[e].text,tokens:n.header[e].tokens,header:!0,align:n.align[e]});s+=this.tablerow({text:r});let i="";for(let e=0;e<n.rows.length;e++){const t=n.rows[e];r="";for(let e=0;e<t.length;e++)r+=this.tablecell({text:t[e].text,tokens:t[e].tokens,header:!1,align:n.align[e]});i+=this.tablerow({text:r})}return e.call(this,s,i)};case"blockquote":return function(n){if(!n.type||n.type!==t)return e.apply(this,arguments);const s=this.parser.parse(n.tokens);return e.call(this,s)};case"list":return function(n){if(!n.type||n.type!==t)return e.apply(this,arguments);const s=n.ordered,r=n.start,i=n.loose;let l="";for(let e=0;e<n.items.length;e++){const t=n.items[e],s=t.checked,r=t.task;let o="";if(t.task){const e=this.checkbox({checked:!!s});i?t.tokens.length>0&&"paragraph"===t.tokens[0].type?(t.tokens[0].text=e+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=e+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",text:e+" "}):o+=e+" "}o+=this.parser.parse(t.tokens,i),l+=this.listitem({type:"list_item",raw:o,text:o,task:r,checked:!!s,loose:i,tokens:t.tokens})}return e.call(this,l,s,r)};case"html":return function(n){return n.type&&n.type===t?e.call(this,n.text,n.block):e.apply(this,arguments)};case"paragraph":case"strong":case"em":case"del":return function(n){return n.type&&n.type===t?e.call(this,this.parser.parseInline(n.tokens)):e.apply(this,arguments)};case"escape":case"codespan":case"text":return function(n){return n.type&&n.type===t?e.call(this,n.text):e.apply(this,arguments)};case"link":return function(n){return n.type&&n.type===t?e.call(this,n.href,n.title,this.parser.parseInline(n.tokens)):e.apply(this,arguments)};case"image":return function(n){return n.type&&n.type===t?e.call(this,n.href,n.title,n.text):e.apply(this,arguments)}}return e}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return te.lex(e,t??this.defaults)}parser(e,t){return re.parse(e,t??this.defaults)}#e(e,t){return(n,s)=>{const r={...s},i={...this.defaults,...r};!0===this.defaults.async&&!1===r.async&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const l=this.#n(!!i.silent,!!i.async);if(null==n)return l(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then((t=>e(t,i))).then((e=>i.hooks?i.hooks.processAllTokens(e):e)).then((e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then((()=>e)):e)).then((e=>t(e,i))).then((e=>i.hooks?i.hooks.postprocess(e):e)).catch(l);try{i.hooks&&(n=i.hooks.preprocess(n));let s=e(n,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let r=t(s,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return l(e)}}}#n(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+c(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}}const oe=new le;function ae(e,t){return oe.parse(e,t)}ae.options=ae.setOptions=function(e){return oe.setOptions(e),ae.defaults=oe.defaults,n(ae.defaults),ae},ae.getDefaults=e,ae.defaults=t,ae.use=function(...e){return oe.use(...e),ae.defaults=oe.defaults,n(ae.defaults),ae},ae.walkTokens=function(e,t){return oe.walkTokens(e,t)},ae.parseInline=oe.parseInline,ae.Parser=re,ae.parser=re.parse,ae.Renderer=ne,ae.TextRenderer=se,ae.Lexer=te,ae.lexer=te.lex,ae.Tokenizer=b,ae.Hooks=ie,ae.parse=ae,ae.options,ae.setOptions,ae.use,ae.walkTokens,ae.parseInline,re.parse,te.lex;export{ie as Hooks,te as Lexer,le as Marked,re as Parser,ne as Renderer,se as TextRenderer,b as Tokenizer,t as defaults,e as getDefaults,ae as marked};
@@ -1 +0,0 @@
1
- import{unknownIcon as e,registerIconPacks as t,getIconSVG as r}from"./chunk-OPO4IU42.js";import{createText as i}from"./chunk-6JOS74DS.js";import{populateCommonDb as s}from"./chunk-TMUBEWPD.js";import{ImperativeState as o}from"./chunk-KFBOBJHC.js";import"./chunk-7DKRZKHE.js";import{selectSvgElement as n}from"./chunk-EJ4ZWXGL.js";import{defaultConfig_default as c,__name as a,setDiagramTitle as d,getDiagramTitle as l,setAccTitle as f,getAccTitle as h,setAccDescription as p,getAccDescription as g,getConfig2 as u,log as m,clear as y,setupGraphViewbox as w}from"./chunk-6DBFFHIP.js";import{parse as k}from"../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";import x from"../../../../cytoscape/dist/cytoscape.esm.js";import b from"../../../../cytoscape-fcose/cytoscape-fcose.js";import"../../../../d3-transition/src/selection/index.js";import"../../../../d3-zoom/src/transform.js";import v from"../../../../d3-selection/src/select.js";var $={L:"left",R:"right",T:"top",B:"bottom"},E={L:a((e=>`${e},${e/2} 0,${e} 0,0`),"L"),R:a((e=>`0,${e/2} ${e},0 ${e},${e}`),"R"),T:a((e=>`0,0 ${e},0 ${e/2},${e}`),"T"),B:a((e=>`${e/2},0 ${e},${e} 0,${e}`),"B")},T={L:a(((e,t)=>e-t+2),"L"),R:a(((e,t)=>e-2),"R"),T:a(((e,t)=>e-t+2),"T"),B:a(((e,t)=>e-2),"B")},j=a((function(e){return D(e)?"L"===e?"R":"L":"T"===e?"B":"T"}),"getOppositeArchitectureDirection"),I=a((function(e){return"L"===e||"R"===e||"T"===e||"B"===e}),"isArchitectureDirection"),D=a((function(e){return"L"===e||"R"===e}),"isArchitectureDirectionX"),B=a((function(e){return"T"===e||"B"===e}),"isArchitectureDirectionY"),L=a((function(e,t){const r=D(e)&&B(t),i=B(e)&&D(t);return r||i}),"isArchitectureDirectionXY"),S=a((function(e){const t=e[0],r=e[1],i=D(t)&&B(r),s=B(t)&&D(r);return i||s}),"isArchitecturePairXY"),A=a((function(e){return"LL"!==e&&"RR"!==e&&"TT"!==e&&"BB"!==e}),"isValidArchitectureDirectionPair"),O=a((function(e,t){const r=`${e}${t}`;return A(r)?r:void 0}),"getArchitectureDirectionPair"),R=a((function([e,t],r){const i=r[0],s=r[1];return D(i)?B(s)?[e+("L"===i?-1:1),t+("T"===s?1:-1)]:[e+("L"===i?-1:1),t]:D(s)?[e+("L"===s?1:-1),t+("T"===i?1:-1)]:[e,t+("T"===i?1:-1)]}),"shiftPositionByArchitectureDirectionPair"),G=a((function(e){return"LT"===e||"TL"===e?[1,1]:"BL"===e||"LB"===e?[1,-1]:"BR"===e||"RB"===e?[-1,-1]:[-1,1]}),"getArchitectureDirectionXYFactors"),P=a((function(e){return"service"===e.type}),"isArchitectureService"),z=a((function(e){return"junction"===e.type}),"isArchitectureJunction"),M=a((e=>e.data()),"edgeData"),J=a((e=>e.data()),"nodeData"),C=c.architecture,Z=new o((()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:C,dataStructures:void 0,elements:{}}))),F=a((()=>{Z.reset(),y()}),"clear"),X=a((function({id:e,icon:t,in:r,title:i,iconText:s}){if(void 0!==Z.records.registeredIds[e])throw new Error(`The service id [${e}] is already in use by another ${Z.records.registeredIds[e]}`);if(void 0!==r){if(e===r)throw new Error(`The service [${e}] cannot be placed within itself`);if(void 0===Z.records.registeredIds[r])throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if("node"===Z.records.registeredIds[r])throw new Error(`The service [${e}]'s parent is not a group`)}Z.records.registeredIds[e]="node",Z.records.nodes[e]={id:e,type:"service",icon:t,iconText:s,title:i,edges:[],in:r}}),"addService"),N=a((()=>Object.values(Z.records.nodes).filter(P)),"getServices"),Y=a((function({id:e,in:t}){Z.records.registeredIds[e]="node",Z.records.nodes[e]={id:e,type:"junction",edges:[],in:t}}),"addJunction"),H=a((()=>Object.values(Z.records.nodes).filter(z)),"getJunctions"),q=a((()=>Object.values(Z.records.nodes)),"getNodes"),W=a((e=>Z.records.nodes[e]),"getNode"),K=a((function({id:e,icon:t,in:r,title:i}){if(void 0!==Z.records.registeredIds[e])throw new Error(`The group id [${e}] is already in use by another ${Z.records.registeredIds[e]}`);if(void 0!==r){if(e===r)throw new Error(`The group [${e}] cannot be placed within itself`);if(void 0===Z.records.registeredIds[r])throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if("node"===Z.records.registeredIds[r])throw new Error(`The group [${e}]'s parent is not a group`)}Z.records.registeredIds[e]="group",Z.records.groups[e]={id:e,icon:t,title:i,in:r}}),"addGroup"),_=a((()=>Object.values(Z.records.groups)),"getGroups"),U=a((function({lhsId:e,rhsId:t,lhsDir:r,rhsDir:i,lhsInto:s,rhsInto:o,lhsGroup:n,rhsGroup:c,title:a}){if(!I(r))throw new Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${r}`);if(!I(i))throw new Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${i}`);if(void 0===Z.records.nodes[e]&&void 0===Z.records.groups[e])throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(void 0===Z.records.nodes[t]&&void 0===Z.records.groups[e])throw new Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);const d=Z.records.nodes[e].in,l=Z.records.nodes[t].in;if(n&&d&&l&&d==l)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(c&&d&&l&&d==l)throw new Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const f={lhsId:e,lhsDir:r,lhsInto:s,lhsGroup:n,rhsId:t,rhsDir:i,rhsInto:o,rhsGroup:c,title:a};Z.records.edges.push(f),Z.records.nodes[e]&&Z.records.nodes[t]&&(Z.records.nodes[e].edges.push(Z.records.edges[Z.records.edges.length-1]),Z.records.nodes[t].edges.push(Z.records.edges[Z.records.edges.length-1]))}),"addEdge"),V=a((()=>Z.records.edges),"getEdges"),Q=a((()=>{if(void 0===Z.records.dataStructures){const e=Object.entries(Z.records.nodes).reduce(((e,[t,r])=>(e[t]=r.edges.reduce(((e,r)=>{if(r.lhsId===t){const t=O(r.lhsDir,r.rhsDir);t&&(e[t]=r.rhsId)}else{const t=O(r.rhsDir,r.lhsDir);t&&(e[t]=r.lhsId)}return e}),{}),e)),{}),t=Object.keys(e)[0],r={[t]:1},i=Object.keys(e).reduce(((e,r)=>r===t?e:{...e,[r]:1}),{}),s=a((t=>{const s={[t]:[0,0]},o=[t];for(;o.length>0;){const t=o.shift();if(t){r[t]=1,delete i[t];const n=e[t],[c,a]=s[t];Object.entries(n).forEach((([e,t])=>{r[t]||(s[t]=R([c,a],e),o.push(t))}))}}return s}),"BFS"),o=[s(t)];for(;Object.keys(i).length>0;)o.push(s(Object.keys(i)[0]));Z.records.dataStructures={adjList:e,spatialMaps:o}}return Z.records.dataStructures}),"getDataStructures"),ee={clear:F,setDiagramTitle:d,getDiagramTitle:l,setAccTitle:f,getAccTitle:h,setAccDescription:p,getAccDescription:g,addService:X,getServices:N,addJunction:Y,getJunctions:H,getNodes:q,getNode:W,addGroup:K,getGroups:_,addEdge:U,getEdges:V,setElementForId:a(((e,t)=>{Z.records.elements[e]=t}),"setElementForId"),getElementById:a((e=>Z.records.elements[e]),"getElementById"),getDataStructures:Q};function te(e){const t=u().architecture;return t?.[e]?t[e]:C[e]}a(te,"getConfigField");var re=a(((e,t)=>{s(e,t),e.groups.map(t.addGroup),e.services.map((e=>t.addService({...e,type:"service"}))),e.junctions.map((e=>t.addJunction({...e,type:"junction"}))),e.edges.map(t.addEdge)}),"populateDb"),ie={parse:a((async e=>{const t=await k("architecture",e);m.debug(t),re(t,ee)}),"parse")},se=a((e=>`\n .edge {\n stroke-width: ${e.archEdgeWidth};\n stroke: ${e.archEdgeColor};\n fill: none;\n }\n\n .arrow {\n fill: ${e.archEdgeArrowColor};\n }\n\n .node-bkg {\n fill: none;\n stroke: ${e.archGroupBorderColor};\n stroke-width: ${e.archGroupBorderWidth};\n stroke-dasharray: 8;\n }\n .node-icon-text {\n display: flex; \n align-items: center;\n }\n \n .node-icon-text > div {\n color: #fff;\n margin: 1px;\n height: fit-content;\n text-align: center;\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n }\n`),"getStyles"),oe=a((e=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`),"wrapIcon"),ne={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:oe('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:oe('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:oe('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:oe('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:oe('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:e,blank:{body:oe("")}}},ce=a((async function(e,t){const r=te("padding"),s=te("iconSize"),o=s/2,n=s/6,c=n/2;await Promise.all(t.edges().map((async t=>{const{source:s,sourceDir:a,sourceArrow:d,sourceGroup:l,target:f,targetDir:h,targetArrow:p,targetGroup:g,label:m}=M(t);let{x:y,y:w}=t[0].sourceEndpoint();const{x:k,y:x}=t[0].midpoint();let{x:b,y:v}=t[0].targetEndpoint();const $=r+4;if(l&&(D(a)?y+="L"===a?-$:$:w+="T"===a?-$:$+18),g&&(D(h)?b+="L"===h?-$:$:v+="T"===h?-$:$+18),l||"junction"!==ee.getNode(s)?.type||(D(a)?y+="L"===a?o:-o:w+="T"===a?o:-o),g||"junction"!==ee.getNode(f)?.type||(D(h)?b+="L"===h?o:-o:v+="T"===h?o:-o),t[0]._private.rscratch){const t=e.insert("g");if(t.insert("path").attr("d",`M ${y},${w} L ${k},${x} L${b},${v} `).attr("class","edge"),d){const e=D(a)?T[a](y,n):y-c,r=B(a)?T[a](w,n):w-c;t.insert("polygon").attr("points",E[a](n)).attr("transform",`translate(${e},${r})`).attr("class","arrow")}if(p){const e=D(h)?T[h](b,n):b-c,r=B(h)?T[h](v,n):v-c;t.insert("polygon").attr("points",E[h](n)).attr("transform",`translate(${e},${r})`).attr("class","arrow")}if(m){const e=L(a,h)?"XY":D(a)?"X":"Y";let r=0;r="X"===e?Math.abs(y-b):"Y"===e?Math.abs(w-v)/1.5:Math.abs(y-b)/2;const s=t.append("g");if(await i(s,m,{useHtmlLabels:!1,width:r,classes:"architecture-service-label"},u()),s.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),"X"===e)s.attr("transform","translate("+k+", "+x+")");else if("Y"===e)s.attr("transform","translate("+k+", "+x+") rotate(-90)");else if("XY"===e){const e=O(a,h);if(e&&S(e)){const t=s.node().getBoundingClientRect(),[r,i]=G(e);s.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*r*i*45})`);const o=s.node().getBoundingClientRect();s.attr("transform",`\n translate(${k}, ${x-t.height/2})\n translate(${r*o.width/2}, ${i*o.height/2})\n rotate(${-1*r*i*45}, 0, ${t.height/2})\n `)}}}}})))}),"drawEdges"),ae=a((async function(e,t){const s=.75*te("padding"),o=te("fontSize"),n=te("iconSize")/2;await Promise.all(t.nodes().map((async t=>{const c=J(t);if("group"===c.type){const{h:a,w:d,x1:l,y1:f}=t.boundingBox();e.append("rect").attr("x",l+n).attr("y",f+n).attr("width",d).attr("height",a).attr("class","node-bkg");const h=e.append("g");let p=l,g=f;if(c.icon){const e=h.append("g");e.html(`<g>${await r(c.icon,{height:s,width:s,fallbackPrefix:ne.prefix})}</g>`),e.attr("transform","translate("+(p+n+1)+", "+(g+n+1)+")"),p+=s,g+=o/2-1-2}if(c.label){const e=h.append("g");await i(e,c.label,{useHtmlLabels:!1,width:d,classes:"architecture-service-label"},u()),e.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),e.attr("transform","translate("+(p+n+4)+", "+(g+n+2)+")")}}})))}),"drawGroups"),de=a((async function(e,t,s){for(const o of s){const s=t.append("g"),n=te("iconSize");if(o.title){const e=s.append("g");await i(e,o.title,{useHtmlLabels:!1,width:1.5*n,classes:"architecture-service-label"},u()),e.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),e.attr("transform","translate("+n/2+", "+n+")")}const c=s.append("g");if(o.icon)c.html(`<g>${await r(o.icon,{height:n,width:n,fallbackPrefix:ne.prefix})}</g>`);else if(o.iconText){c.html(`<g>${await r("blank",{height:n,width:n,fallbackPrefix:ne.prefix})}</g>`);const e=c.append("g").append("foreignObject").attr("width",n).attr("height",n).append("div").attr("class","node-icon-text").attr("style",`height: ${n}px;`).append("div").html(o.iconText),t=parseInt(window.getComputedStyle(e.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;e.attr("style",`-webkit-line-clamp: ${Math.floor((n-2)/t)};`)}else c.append("path").attr("class","node-bkg").attr("id","node-"+o.id).attr("d",`M0 ${n} v${-n} q0,-5 5,-5 h${n} q5,0 5,5 v${n} H0 Z`);s.attr("class","architecture-service");const{width:a,height:d}=s._groups[0][0].getBBox();o.width=a,o.height=d,e.setElementForId(o.id,s)}return 0}),"drawServices"),le=a((function(e,t,r){r.forEach((r=>{const i=t.append("g"),s=te("iconSize");i.append("g").append("rect").attr("id","node-"+r.id).attr("fill-opacity","0").attr("width",s).attr("height",s),i.attr("class","architecture-junction");const{width:o,height:n}=i._groups[0][0].getBBox();i.width=o,i.height=n,e.setElementForId(r.id,i)}))}),"drawJunctions");function fe(e,t){e.forEach((e=>{t.add({group:"nodes",data:{type:"service",id:e.id,icon:e.icon,label:e.title,parent:e.in,width:te("iconSize"),height:te("iconSize")},classes:"node-service"})}))}function he(e,t){e.forEach((e=>{t.add({group:"nodes",data:{type:"junction",id:e.id,parent:e.in,width:te("iconSize"),height:te("iconSize")},classes:"node-junction"})}))}function pe(e,t){t.nodes().map((t=>{const r=J(t);if("group"===r.type)return;r.x=t.position().x,r.y=t.position().y;e.getElementById(r.id).attr("transform","translate("+(r.x||0)+","+(r.y||0)+")")}))}function ge(e,t){e.forEach((e=>{t.add({group:"nodes",data:{type:"group",id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:"node-group"})}))}function ue(e,t){e.forEach((e=>{const{lhsId:r,rhsId:i,lhsInto:s,lhsGroup:o,rhsInto:n,lhsDir:c,rhsDir:a,rhsGroup:d,title:l}=e,f=L(e.lhsDir,e.rhsDir)?"segments":"straight",h={id:`${r}-${i}`,label:l,source:r,sourceDir:c,sourceArrow:s,sourceGroup:o,sourceEndpoint:"L"===c?"0 50%":"R"===c?"100% 50%":"T"===c?"50% 0":"50% 100%",target:i,targetDir:a,targetArrow:n,targetGroup:d,targetEndpoint:"L"===a?"0 50%":"R"===a?"100% 50%":"T"===a?"50% 0":"50% 100%"};t.add({group:"edges",data:h,classes:f})}))}function me(e){const t=e.map((e=>{const t={},r={};return Object.entries(e).forEach((([e,[i,s]])=>{t[s]||(t[s]=[]),r[i]||(r[i]=[]),t[s].push(e),r[i].push(e)})),{horiz:Object.values(t).filter((e=>e.length>1)),vert:Object.values(r).filter((e=>e.length>1))}})),[r,i]=t.reduce((([e,t],{horiz:r,vert:i})=>[[...e,...r],[...t,...i]]),[[],[]]);return{horizontal:r,vertical:i}}function ye(e){const t=[],r=a((e=>`${e[0]},${e[1]}`),"posToStr"),i=a((e=>e.split(",").map((e=>parseInt(e)))),"strToPos");return e.forEach((e=>{const s=Object.fromEntries(Object.entries(e).map((([e,t])=>[r(t),e]))),o=[r([0,0])],n={},c={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;o.length>0;){const e=o.shift();if(e){n[e]=1;const a=s[e];if(a){const d=i(e);Object.entries(c).forEach((([e,i])=>{const c=r([d[0]+i[0],d[1]+i[1]]),l=s[c];l&&!n[c]&&(o.push(c),t.push({[$[e]]:l,[$[j(e)]]:a,gap:1.5*te("iconSize")}))}))}}}})),t}function we(e,t,r,i,{spatialMaps:s}){return new Promise((o=>{const n=v("body").append("div").attr("id","cy").attr("style","display:none"),c=x({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${te("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${te("padding")}px`}}]});n.remove(),ge(r,c),fe(e,c),he(t,c),ue(i,c);const d=me(s),l=ye(s),f=c.layout({name:"fcose",quality:"proof",styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(e){const[t,r]=e.connectedNodes(),{parent:i}=J(t),{parent:s}=J(r);return i===s?1.5*te("iconSize"):.5*te("iconSize")},edgeElasticity(e){const[t,r]=e.connectedNodes(),{parent:i}=J(t),{parent:s}=J(r);return i===s?.45:.001},alignmentConstraint:d,relativePlacementConstraint:l});f.one("layoutstop",(()=>{function e(e,t,r,i){let s,o;const{x:n,y:c}=e,{x:a,y:d}=t;o=(i-c+(n-r)*(c-d)/(n-a))/Math.sqrt(1+Math.pow((c-d)/(n-a),2)),s=Math.sqrt(Math.pow(i-c,2)+Math.pow(r-n,2)-Math.pow(o,2));s/=Math.sqrt(Math.pow(a-n,2)+Math.pow(d-c,2));let l=(a-n)*(i-c)-(d-c)*(r-n);switch(!0){case l>=0:l=1;break;case l<0:l=-1}let f=(a-n)*(r-n)+(d-c)*(i-c);switch(!0){case f>=0:f=1;break;case f<0:f=-1}return o=Math.abs(o)*l,s*=f,{distances:o,weights:s}}a(e,"getSegmentWeights"),c.startBatch();for(const t of Object.values(c.edges()))if(t.data?.()){const{x:r,y:i}=t.source().position(),{x:s,y:o}=t.target().position();if(r!==s&&i!==o){const r=t.sourceEndpoint(),i=t.targetEndpoint(),{sourceDir:s}=M(t),[o,n]=B(s)?[r.x,i.y]:[i.x,r.y],{weights:c,distances:a}=e(r,i,o,n);t.style("segment-distances",a),t.style("segment-weights",c)}}c.endBatch(),f.run()})),f.run(),c.ready((e=>{m.info("Ready",e),o(c)}))}))}t([{name:ne.prefix,icons:ne}]),x.use(b),a(fe,"addServices"),a(he,"addJunctions"),a(pe,"positionNodes"),a(ge,"addGroups"),a(ue,"addEdges"),a(me,"getAlignments"),a(ye,"getRelativeConstraints"),a(we,"layoutArchitecture");var ke={parser:ie,db:ee,renderer:{draw:a((async(e,t,r,i)=>{const s=i.db,o=s.getServices(),c=s.getJunctions(),a=s.getGroups(),d=s.getEdges(),l=s.getDataStructures(),f=n(t),h=f.append("g");h.attr("class","architecture-edges");const p=f.append("g");p.attr("class","architecture-services");const g=f.append("g");g.attr("class","architecture-groups"),await de(s,p,o),le(s,p,c);const u=await we(o,c,a,d,l);await ce(h,u),await ae(g,u),pe(s,u),w(void 0,f,te("padding"),te("useMaxWidth"))}),"draw")},styles:se};export{ke as diagram};
@@ -1 +0,0 @@
1
- import{getLineFunctionsWithOffset as t}from"./chunk-3JNJP5BE.js";import{getSubGraphTitleMargins as e}from"./chunk-3X56UNUX.js";import{createText as r,replaceIconSubstring as a}from"./chunk-6JOS74DS.js";import{getStylesFromArray as s,utils_default as i,decodeEntities as n}from"./chunk-7DKRZKHE.js";import{__name as o,getConfig2 as l,log as c,getConfig as d,evaluate as h,configureSvgSize as g,clear as y,common_default as p,sanitizeText as u}from"./chunk-6DBFFHIP.js";import x from"../../../../lodash-es/clone.js";import"../../../../d3-transition/src/selection/index.js";import"../../../../d3-zoom/src/transform.js";import{Graph as b}from"../../../../dagre-d3-es/src/graphlib/graph.js";import f from"../../../../d3-selection/src/select.js";import m from"../../../../d3-shape/src/line.js";import w from"../../../../khroma/dist/methods/rgba.js";import k from"../../../../d3-shape/src/curve/basis.js";import S from"../../../../khroma/dist/methods/channel.js";var L=function(){var t=o((function(t,e,r,a){for(r=r||{},a=t.length;a--;r[t[a]]=e);return r}),"o"),e=[1,7],r=[1,13],a=[1,14],s=[1,15],i=[1,19],n=[1,16],l=[1,17],c=[1,18],d=[8,30],h=[8,21,28,29,30,31,32,40,44,47],g=[1,23],y=[1,24],p=[8,15,16,21,28,29,30,31,32,40,44,47],u=[8,15,16,21,27,28,29,30,31,32,40,44,47],x=[1,49],b={trace:o((function(){}),"trace"),yy:{},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},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"},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]],performAction:o((function(t,e,r,a,s,i,n){var o=i.length-1;switch(s){case 4:a.getLogger().debug("Rule: separator (NL) ");break;case 5:a.getLogger().debug("Rule: separator (Space) ");break;case 6:a.getLogger().debug("Rule: separator (EOF) ");break;case 7:a.getLogger().debug("Rule: hierarchy: ",i[o-1]),a.setHierarchy(i[o-1]);break;case 8:a.getLogger().debug("Stop NL ");break;case 9:a.getLogger().debug("Stop EOF ");break;case 10:a.getLogger().debug("Stop NL2 ");break;case 11:a.getLogger().debug("Stop EOF2 ");break;case 12:a.getLogger().debug("Rule: statement: ",i[o]),"number"==typeof i[o].length?this.$=i[o]:this.$=[i[o]];break;case 13:a.getLogger().debug("Rule: statement #2: ",i[o-1]),this.$=[i[o-1]].concat(i[o]);break;case 14:a.getLogger().debug("Rule: link: ",i[o],t),this.$={edgeTypeStr:i[o],label:""};break;case 15:a.getLogger().debug("Rule: LABEL link: ",i[o-3],i[o-1],i[o]),this.$={edgeTypeStr:i[o],label:i[o-1]};break;case 18:const e=parseInt(i[o]),r=a.generateId();this.$={id:r,type:"space",label:"",width:e,children:[]};break;case 23:a.getLogger().debug("Rule: (nodeStatement link node) ",i[o-2],i[o-1],i[o]," typestr: ",i[o-1].edgeTypeStr);const s=a.edgeStrToEdgeData(i[o-1].edgeTypeStr);this.$=[{id:i[o-2].id,label:i[o-2].label,type:i[o-2].type,directions:i[o-2].directions},{id:i[o-2].id+"-"+i[o].id,start:i[o-2].id,end:i[o].id,label:i[o-1].label,type:"edge",directions:i[o].directions,arrowTypeEnd:s,arrowTypeStart:"arrow_open"},{id:i[o].id,label:i[o].label,type:a.typeStr2Type(i[o].typeStr),directions:i[o].directions}];break;case 24:a.getLogger().debug("Rule: nodeStatement (abc88 node size) ",i[o-1],i[o]),this.$={id:i[o-1].id,label:i[o-1].label,type:a.typeStr2Type(i[o-1].typeStr),directions:i[o-1].directions,widthInColumns:parseInt(i[o],10)};break;case 25:a.getLogger().debug("Rule: nodeStatement (node) ",i[o]),this.$={id:i[o].id,label:i[o].label,type:a.typeStr2Type(i[o].typeStr),directions:i[o].directions,widthInColumns:1};break;case 26:a.getLogger().debug("APA123",this?this:"na"),a.getLogger().debug("COLUMNS: ",i[o]),this.$={type:"column-setting",columns:"auto"===i[o]?-1:parseInt(i[o])};break;case 27:a.getLogger().debug("Rule: id-block statement : ",i[o-2],i[o-1]),a.generateId(),this.$={...i[o-2],type:"composite",children:i[o-1]};break;case 28:a.getLogger().debug("Rule: blockStatement : ",i[o-2],i[o-1],i[o]);const n=a.generateId();this.$={id:n,type:"composite",label:"",children:i[o-1]};break;case 29:a.getLogger().debug("Rule: node (NODE_ID separator): ",i[o]),this.$={id:i[o]};break;case 30:a.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",i[o-1],i[o]),this.$={id:i[o-1],label:i[o].label,typeStr:i[o].typeStr,directions:i[o].directions};break;case 31:a.getLogger().debug("Rule: dirList: ",i[o]),this.$=[i[o]];break;case 32:a.getLogger().debug("Rule: dirList: ",i[o-1],i[o]),this.$=[i[o-1]].concat(i[o]);break;case 33:a.getLogger().debug("Rule: nodeShapeNLabel: ",i[o-2],i[o-1],i[o]),this.$={typeStr:i[o-2]+i[o],label:i[o-1]};break;case 34:a.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",i[o-3],i[o-2]," #3:",i[o-1],i[o]),this.$={typeStr:i[o-3]+i[o],label:i[o-2],directions:i[o-1]};break;case 35:case 36:this.$={type:"classDef",id:i[o-1].trim(),css:i[o].trim()};break;case 37:this.$={type:"applyClass",id:i[o-1].trim(),styleClass:i[o].trim()};break;case 38:this.$={type:"applyStyles",id:i[o-1].trim(),stylesStr:i[o].trim()}}}),"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:i,40:n,44:l,47:c},{8:[1,20]},t(d,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:e,28:r,29:a,31:s,32:i,40:n,44:l,47:c}),t(h,[2,16],{14:22,15:g,16:y}),t(h,[2,17]),t(h,[2,18]),t(h,[2,19]),t(h,[2,20]),t(h,[2,21]),t(h,[2,22]),t(p,[2,25],{27:[1,25]}),t(h,[2,26]),{19:26,26:12,32:i},{11:27,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:i,40:n,44:l,47:c},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},t(u,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},t(d,[2,13]),{26:35,32:i},{32:[2,14]},{17:[1,36]},t(p,[2,24]),{11:37,13:4,14:22,15:g,16:y,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:i,40:n,44:l,47:c},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},t(u,[2,30]),{18:[1,43]},{18:[1,44]},t(p,[2,23]),{18:[1,45]},{30:[1,46]},t(h,[2,28]),t(h,[2,35]),t(h,[2,36]),t(h,[2,37]),t(h,[2,38]),{37:[1,47]},{34:48,35:x},{15:[1,50]},t(h,[2,27]),t(u,[2,33]),{39:[1,51]},{34:52,35:x,39:[2,31]},{32:[2,15]},t(u,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:o((function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)}),"parseError"),parse:o((function(t){var e=this,r=[0],a=[],s=[null],i=[],n=this.table,l="",c=0,d=0,h=i.slice.call(arguments,1),g=Object.create(this.lexer),y={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(y.yy[p]=this.yy[p]);g.setInput(t,y.yy),y.yy.lexer=g,y.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var u=g.yylloc;i.push(u);var x=g.options&&g.options.ranges;function b(){var t;return"number"!=typeof(t=a.pop()||g.lex()||1)&&(t instanceof Array&&(t=(a=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o((function(t){r.length=r.length-2*t,s.length=s.length-t,i.length=i.length-t}),"popStack"),o(b,"lex");for(var f,m,w,k,S,L,_,E,v={};;){if(m=r[r.length-1],this.defaultActions[m]?w=this.defaultActions[m]:(null==f&&(f=b()),w=n[m]&&n[m][f]),void 0===w||!w.length||!w[0]){var D="";for(S in E=[],n[m])this.terminals_[S]&&S>2&&E.push("'"+this.terminals_[S]+"'");D=g.showPosition?"Parse error on line "+(c+1)+":\n"+g.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(D,{text:g.match,token:this.terminals_[f]||f,line:g.yylineno,loc:u,expected:E})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+f);switch(w[0]){case 1:r.push(f),s.push(g.yytext),i.push(g.yylloc),r.push(w[1]),f=null,d=g.yyleng,l=g.yytext,c=g.yylineno,u=g.yylloc;break;case 2:if(L=this.productions_[w[1]][1],v.$=s[s.length-L],v._$={first_line:i[i.length-(L||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(L||1)].first_column,last_column:i[i.length-1].last_column},x&&(v._$.range=[i[i.length-(L||1)].range[0],i[i.length-1].range[1]]),void 0!==(k=this.performAction.apply(v,[l,d,c,y.yy,w[1],s,i].concat(h))))return k;L&&(r=r.slice(0,-1*L*2),s=s.slice(0,-1*L),i=i.slice(0,-1*L)),r.push(this.productions_[w[1]][0]),s.push(v.$),i.push(v._$),_=n[r[r.length-2]][r[r.length-1]],r.push(_);break;case 3:return!0}}return!0}),"parse")},f=function(){return{EOF:1,parseError:o((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:o((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:o((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:o((function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:o((function(){return this._more=!0,this}),"more"),reject:o((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})}),"reject"),less:o((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:o((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:o((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:o((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:o((function(t,e){var r,a,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var i in s)this[i]=s[i];return!1}return!1}),"test_match"),next:o((function(){if(this.done)return this.EOF;var t,e,r,a;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),i=0;i<s.length;i++)if((r=this._input.match(this.rules[s[i]]))&&(!e||r[0].length>e[0].length)){if(e=r,a=i,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,s[i])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:o((function(){var t=this.next();return t||this.lex()}),"lex"),begin:o((function(t){this.conditionStack.push(t)}),"begin"),popState:o((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:o((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:o((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:o((function(t){this.begin(t)}),"pushState"),stateStackSize:o((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:o((function(t,e,r,a){switch(r){case 0:return 10;case 1:return t.getLogger().debug("Found space-block"),31;case 2:return t.getLogger().debug("Found nl-block"),31;case 3:return t.getLogger().debug("Found space-block"),29;case 4:t.getLogger().debug(".",e.yytext);break;case 5:t.getLogger().debug("_",e.yytext);break;case 6:return 5;case 7:return e.yytext=-1,28;case 8:return e.yytext=e.yytext.replace(/columns\s+/,""),t.getLogger().debug("COLUMNS (LEX)",e.yytext),28;case 9:case 77:case 78:case 100:this.pushState("md_string");break;case 10:return"MD_STR";case 11:case 35:case 80:this.popState();break;case 12:this.pushState("string");break;case 13:t.getLogger().debug("LEX: POPPING STR:",e.yytext),this.popState();break;case 14:return t.getLogger().debug("LEX: STR end:",e.yytext),"STR";case 15:return e.yytext=e.yytext.replace(/space\:/,""),t.getLogger().debug("SPACE NUM (LEX)",e.yytext),21;case 16:return e.yytext="1",t.getLogger().debug("COLUMNS (LEX)",e.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:case 39:case 41:case 42:case 45:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),t.getLogger().debug("Lex: ))"),"NODE_DEND";case 43:return this.popState(),t.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),t.getLogger().debug("Lex: -)"),"NODE_DEND";case 46:return this.popState(),t.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),t.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),t.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:case 50:return this.popState(),t.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),t.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),t.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),t.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),t.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return t.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return t.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return t.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:case 60:case 61:case 62:case 65:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return t.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 63:return t.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return t.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 66:case 67:case 68:case 69:case 70:case 71:case 72:return this.pushState("NODE"),36;case 73:return t.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),t.getLogger().debug("LEX ARR START"),38;case 75:return t.getLogger().debug("Lex: NODE_ID",e.yytext),32;case 76:return t.getLogger().debug("Lex: EOF",e.yytext),8;case 79:return"NODE_DESCR";case 81:t.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:t.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return t.getLogger().debug("LEX: NODE_DESCR:",e.yytext),"NODE_DESCR";case 84:t.getLogger().debug("LEX POPPING"),this.popState();break;case 85:t.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (right): dir:",e.yytext),"DIR";case 87:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (left):",e.yytext),"DIR";case 88:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (x):",e.yytext),"DIR";case 89:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (y):",e.yytext),"DIR";case 90:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (up):",e.yytext),"DIR";case 91:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (down):",e.yytext),"DIR";case 92:return e.yytext="]>",t.getLogger().debug("Lex (ARROW_DIR end):",e.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 94:case 95:case 96:return t.getLogger().debug("Lex: LINK",e.yytext),15;case 97:case 98:case 99:return t.getLogger().debug("Lex: START_LINK",e.yytext),this.pushState("LLABEL"),16;case 101:return t.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 103:case 104:return this.popState(),t.getLogger().debug("Lex: LINK",e.yytext),15;case 105:return t.getLogger().debug("Lex: COLON",e.yytext),e.yytext=e.yytext.slice(1),27}}),"anonymous"),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+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},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:!0}}}}();function m(){this.yy={}}return b.lexer=f,o(m,"Parser"),m.prototype=b,b.Parser=m,new m}();L.parser=L;var _=L,E=new Map,v=[],D=new Map,$="color",T="fill",N=l(),C=new Map,I=o((t=>p.sanitizeText(t,N)),"sanitizeText"),B=o((function(t,e=""){let r=C.get(t);r||(r={id:t,styles:[],textStyles:[]},C.set(t,r)),null!=e&&e.split(",").forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp($).exec(t)){const t=e.replace(T,"bgFill").replace($,T);r.textStyles.push(t)}r.styles.push(e)}))}),"addStyleClass"),z=o((function(t,e=""){const r=E.get(t);null!=e&&(r.styles=e.split(","))}),"addStyle2Node"),R=o((function(t,e){t.split(",").forEach((function(t){let r=E.get(t);if(void 0===r){const e=t.trim();r={id:e,type:"na",children:[]},E.set(e,r)}r.classes||(r.classes=[]),r.classes.push(e)}))}),"setCssClass"),O=o(((t,e)=>{const r=t.flat(),a=[];for(const t of r)if(t.label&&(t.label=I(t.label)),"classDef"!==t.type)if("applyClass"!==t.type)if("applyStyles"!==t.type)if("column-setting"===t.type)e.columns=t.columns??-1;else if("edge"===t.type){const e=(D.get(t.id)??0)+1;D.set(t.id,e),t.id=e+"-"+t.id,v.push(t)}else{t.label||("composite"===t.type?t.label="":t.label=t.id);const e=E.get(t.id);if(void 0===e?E.set(t.id,t):("na"!==t.type&&(e.type=t.type),t.label!==t.id&&(e.label=t.label)),t.children&&O(t.children,t),"space"===t.type){const e=t.width??1;for(let r=0;r<e;r++){const e=x(t);e.id=e.id+"-"+r,E.set(e.id,e),a.push(e)}}else void 0===e&&a.push(t)}else t?.stylesStr&&z(t.id,t?.stylesStr);else R(t.id,t?.styleClass??"");else B(t.id,t.css);e.children=a}),"populateBlockDatabase"),A=[],M={id:"root",type:"composite",children:[],columns:-1},P=o((()=>{c.debug("Clear called"),y(),M={id:"root",type:"composite",children:[],columns:-1},E=new Map([["root",M]]),A=[],C=new Map,v=[],D=new Map}),"clear");function Y(t){switch(c.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return c.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function X(t){return c.debug("typeStr2Type",t),"=="===t?"thick":"normal"}function F(t){switch(t.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}o(Y,"typeStr2Type"),o(X,"edgeTypeStr2Type"),o(F,"edgeStrToEdgeData");var W=0,j=o((()=>(W++,"id-"+Math.random().toString(36).substr(2,12)+"-"+W)),"generateId"),H=o((t=>{M.children=t,O(t,M),A=M.children}),"setHierarchy"),U=o((t=>{const e=E.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1}),"getColumns"),K=o((()=>[...E.values()]),"getBlocksFlat"),Z=o((()=>A||[]),"getBlocks"),q=o((()=>v),"getEdges"),J=o((t=>E.get(t)),"getBlock"),G=o((t=>{E.set(t.id,t)}),"setBlock"),V=o((()=>console),"getLogger"),Q=o((function(){return C}),"getClasses"),tt={getConfig:o((()=>d().block),"getConfig"),typeStr2Type:Y,edgeTypeStr2Type:X,edgeStrToEdgeData:F,getLogger:V,getBlocksFlat:K,getBlocks:Z,getEdges:q,setHierarchy:H,getBlock:J,setBlock:G,getColumns:U,getClasses:Q,clear:P,generateId:j},et=o(((t,e)=>{const r=S,a=r(t,"r"),s=r(t,"g"),i=r(t,"b");return w(a,s,i,e)}),"fade"),rt=o((t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span,p {\n color: ${t.titleColor};\n }\n\n\n\n .label text,span,p {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${et(t.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .node .cluster {\n // fill: ${et(t.mainBkg,.5)};\n fill: ${et(t.clusterBkg,.5)};\n stroke: ${et(t.clusterBorder,.2)};\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span,p {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`),"getStyles"),at=o(((t,e,r,a)=>{e.forEach((e=>{st[e](t,r,a)}))}),"insertMarkers"),st={extension:o(((t,e,r)=>{c.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).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")}),"extension"),composition:o(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).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")}),"composition"),aggregation:o(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).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")}),"aggregation"),dependency:o(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).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")}),"dependency"),lollipop:o(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).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)}),"lollipop"),point:o(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).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")}),"point"),circle:o(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).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")}),"circle"),cross:o(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).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")}),"cross"),barb:o(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-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")}),"barb")},it=at,nt=l()?.block?.padding??8;function ot(t,e){if(0===t||!Number.isInteger(t))throw new Error("Columns must be an integer !== 0.");if(e<0||!Number.isInteger(e))throw new Error("Position must be a non-negative integer."+e);if(t<0)return{px:e,py:0};if(1===t)return{px:0,py:e};return{px:e%t,py:Math.floor(e/t)}}o(ot,"calculateBlockPosition");var lt=o((t=>{let e=0,r=0;for(const a of t.children){const{width:s,height:i,x:n,y:o}=a.size??{width:0,height:0,x:0,y:0};c.debug("getMaxChildSize abc95 child:",a.id,"width:",s,"height:",i,"x:",n,"y:",o,a.type),"space"!==a.type&&(s>e&&(e=s/(t.widthInColumns??1)),i>r&&(r=i))}return{width:e,height:r}}),"getMaxChildSize");function ct(t,e,r=0,a=0){c.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"sieblingWidth",r),t?.size?.width||(t.size={width:r,height:a,x:0,y:0});let s=0,i=0;if(t.children?.length>0){for(const r of t.children)ct(r,e);const n=lt(t);s=n.width,i=n.height,c.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",s,i);for(const e of t.children)e.size&&(c.debug(`abc95 Setting size of children of ${t.id} id=${e.id} ${s} ${i} ${JSON.stringify(e.size)}`),e.size.width=s*(e.widthInColumns??1)+nt*((e.widthInColumns??1)-1),e.size.height=i,e.size.x=0,e.size.y=0,c.debug(`abc95 updating size of ${t.id} children child:${e.id} maxWidth:${s} maxHeight:${i}`));for(const r of t.children)ct(r,e,s,i);const o=t.columns??-1;let l=0;for(const e of t.children)l+=e.widthInColumns??1;let d=t.children.length;o>0&&o<l&&(d=o);const h=Math.ceil(l/d);let g=d*(s+nt)+nt,y=h*(i+nt)+nt;if(g<r){c.debug(`Detected to small siebling: abc95 ${t.id} sieblingWidth ${r} sieblingHeight ${a} width ${g}`),g=r,y=a;const e=(r-d*nt-nt)/d,n=(a-h*nt-nt)/h;c.debug("Size indata abc88",t.id,"childWidth",e,"maxWidth",s),c.debug("Size indata abc88",t.id,"childHeight",n,"maxHeight",i),c.debug("Size indata abc88 xSize",d,"padding",nt);for(const r of t.children)r.size&&(r.size.width=e,r.size.height=n,r.size.x=0,r.size.y=0)}if(c.debug(`abc95 (finale calc) ${t.id} xSize ${d} ySize ${h} columns ${o}${t.children.length} width=${Math.max(g,t.size?.width||0)}`),g<(t?.size?.width||0)){g=t?.size?.width||0;const e=o>0?Math.min(t.children.length,o):t.children.length;if(e>0){const r=(g-e*nt-nt)/e;c.debug("abc95 (growing to fit) width",t.id,g,t.size?.width,r);for(const e of t.children)e.size&&(e.size.width=r)}}t.size={width:g,height:y,x:0,y:0}}c.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}function dt(t,e){c.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);const r=t.columns??-1;if(c.debug("layoutBlocks columns abc95",t.id,"=>",r,t),t.children&&t.children.length>0){const e=t?.children[0]?.size?.width??0,a=t.children.length*e+(t.children.length-1)*nt;c.debug("widthOfChildren 88",a,"posX");let s=0;c.debug("abc91 block?.size?.x",t.id,t?.size?.x);let i=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-nt,n=0;for(const e of t.children){const a=t;if(!e.size)continue;const{width:o,height:l}=e.size,{px:d,py:h}=ot(r,s);if(h!=n&&(n=h,i=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-nt,c.debug("New row in layout for block",t.id," and child ",e.id,n)),c.debug(`abc89 layout blocks (child) id: ${e.id} Pos: ${s} (px, py) ${d},${h} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${o}${nt}`),a.size){const t=o/2;e.size.x=i+nt+t,c.debug(`abc91 layout blocks (calc) px, pyid:${e.id} startingPos=X${i} new startingPosX${e.size.x} ${t} padding=${nt} width=${o} halfWidth=${t} => x:${e.size.x} y:${e.size.y} ${e.widthInColumns} (width * (child?.w || 1)) / 2 ${o*(e?.widthInColumns??1)/2}`),i=e.size.x+t,e.size.y=a.size.y-a.size.height/2+h*(l+nt)+l/2+nt,c.debug(`abc88 layout blocks (calc) px, pyid:${e.id}startingPosX${i}${nt}${t}=>x:${e.size.x}y:${e.size.y}${e.widthInColumns}(width * (child?.w || 1)) / 2${o*(e?.widthInColumns??1)/2}`)}e.children&&dt(e),s+=e?.widthInColumns??1,c.debug("abc88 columnsPos",e,s)}}c.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}function ht(t,{minX:e,minY:r,maxX:a,maxY:s}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&"root"!==t.id){const{x:i,y:n,width:o,height:l}=t.size;i-o/2<e&&(e=i-o/2),n-l/2<r&&(r=n-l/2),i+o/2>a&&(a=i+o/2),n+l/2>s&&(s=n+l/2)}if(t.children)for(const i of t.children)({minX:e,minY:r,maxX:a,maxY:s}=ht(i,{minX:e,minY:r,maxX:a,maxY:s}));return{minX:e,minY:r,maxX:a,maxY:s}}function gt(t){const e=t.getBlock("root");if(!e)return;ct(e,t,0,0),dt(e),c.debug("getBlocks",JSON.stringify(e,null,2));const{minX:r,minY:a,maxX:s,maxY:i}=ht(e);return{x:r,y:a,width:s-r,height:i-a}}function yt(t,e){e&&t.attr("style",e)}function pt(t){const e=f(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),a=t.label,s=t.isNode?"nodeLabel":"edgeLabel",i=r.append("span");return i.html(a),yt(i,t.labelStyle),i.attr("class",s),yt(r,t.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}o(ct,"setBlockSizes"),o(dt,"layoutBlocks"),o(ht,"findBounds"),o(gt,"layout"),o(yt,"applyStyle"),o(pt,"addHtmlLabel");var ut=o(((t,e,r,s)=>{let i=t||"";if("object"==typeof i&&(i=i[0]),h(l().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),c.debug("vertexText"+i);return pt({isNode:s,label:a(n(i)),labelStyle:e.replace("fill:","color:")})}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let a=[];a="string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[];for(const e of a){const a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),r?a.setAttribute("class","title-row"):a.setAttribute("class","row"),a.textContent=e.trim(),t.appendChild(a)}return t}}),"createLabel"),xt=o(((t,e,r,a,s)=>{e.arrowTypeStart&&ft(t,"start",e.arrowTypeStart,r,a,s),e.arrowTypeEnd&&ft(t,"end",e.arrowTypeEnd,r,a,s)}),"addEdgeMarkers"),bt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},ft=o(((t,e,r,a,s,i)=>{const n=bt[r];if(!n)return void c.warn(`Unknown arrow type: ${r}`);const o="start"===e?"Start":"End";t.attr(`marker-${e}`,`url(${a}#${s}_${i}-${n}${o})`)}),"addEdgeMarker"),mt={},wt={},kt=o(((t,e)=>{const a=l(),s=h(a.flowchart.htmlLabels),i="markdown"===e.labelType?r(t,e.label,{style:e.labelStyle,useHtmlLabels:s,addSvgBackground:!0},a):ut(e.label,e.labelStyle),n=t.insert("g").attr("class","edgeLabel"),o=n.insert("g").attr("class","label");o.node().appendChild(i);let c,d=i.getBBox();if(s){const t=i.children[0],e=f(i);d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}if(o.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),mt[e.id]=n,e.width=d.width,e.height=d.height,e.startLabelLeft){const r=ut(e.startLabelLeft,e.labelStyle),a=t.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner");c=s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),wt[e.id]||(wt[e.id]={}),wt[e.id].startLeft=a,St(c,e.startLabelLeft)}if(e.startLabelRight){const r=ut(e.startLabelRight,e.labelStyle),a=t.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner");c=a.node().appendChild(r),s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),wt[e.id]||(wt[e.id]={}),wt[e.id].startRight=a,St(c,e.startLabelRight)}if(e.endLabelLeft){const r=ut(e.endLabelLeft,e.labelStyle),a=t.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner");c=s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),a.node().appendChild(r),wt[e.id]||(wt[e.id]={}),wt[e.id].endLeft=a,St(c,e.endLabelLeft)}if(e.endLabelRight){const r=ut(e.endLabelRight,e.labelStyle),a=t.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner");c=s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),a.node().appendChild(r),wt[e.id]||(wt[e.id]={}),wt[e.id].endRight=a,St(c,e.endLabelRight)}return i}),"insertEdgeLabel");function St(t,e){l().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}o(St,"setTerminalWidth");var Lt=o(((t,r)=>{c.debug("Moving label abc88 ",t.id,t.label,mt[t.id],r);let a=r.updatedPath?r.updatedPath:r.originalPath;const s=l(),{subGraphTitleTotalMargin:n}=e(s);if(t.label){const e=mt[t.id];let s=t.x,o=t.y;if(a){const e=i.calcLabelPosition(a);c.debug("Moving label "+t.label+" from (",s,",",o,") to (",e.x,",",e.y,") abc88"),r.updatedPath&&(s=e.x,o=e.y)}e.attr("transform",`translate(${s}, ${o+n/2})`)}if(t.startLabelLeft){const e=wt[t.id].startLeft;let r=t.x,s=t.y;if(a){const e=i.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",a);r=e.x,s=e.y}e.attr("transform",`translate(${r}, ${s})`)}if(t.startLabelRight){const e=wt[t.id].startRight;let r=t.x,s=t.y;if(a){const e=i.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",a);r=e.x,s=e.y}e.attr("transform",`translate(${r}, ${s})`)}if(t.endLabelLeft){const e=wt[t.id].endLeft;let r=t.x,s=t.y;if(a){const e=i.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",a);r=e.x,s=e.y}e.attr("transform",`translate(${r}, ${s})`)}if(t.endLabelRight){const e=wt[t.id].endRight;let r=t.x,s=t.y;if(a){const e=i.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",a);r=e.x,s=e.y}e.attr("transform",`translate(${r}, ${s})`)}}),"positionEdgeLabel"),_t=o(((t,e)=>{const r=t.x,a=t.y,s=Math.abs(e.x-r),i=Math.abs(e.y-a),n=t.width/2,o=t.height/2;return s>=n||i>=o}),"outsideNode"),Et=o(((t,e,r)=>{c.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const a=t.x,s=t.y,i=Math.abs(a-r.x),n=t.width/2;let o=r.x<e.x?n-i:n+i;const l=t.height/2,d=Math.abs(e.y-r.y),h=Math.abs(e.x-r.x);if(Math.abs(s-e.y)*n>Math.abs(a-e.x)*l){let t=r.y<e.y?e.y-l-s:s-l-e.y;o=h*t/d;const a={x:r.x<e.x?r.x+o:r.x-h+o,y:r.y<e.y?r.y+d-t:r.y-d+t};return 0===o&&(a.x=e.x,a.y=e.y),0===h&&(a.x=e.x),0===d&&(a.y=e.y),c.debug(`abc89 topp/bott calc, Q ${d}, q ${t}, R ${h}, r ${o}`,a),a}{o=r.x<e.x?e.x-n-a:a-n-e.x;let t=d*o/h,s=r.x<e.x?r.x+h-o:r.x-h+o,i=r.y<e.y?r.y+t:r.y-t;return c.debug(`sides calc abc89, Q ${d}, q ${t}, R ${h}, r ${o}`,{_x:s,_y:i}),0===o&&(s=e.x,i=e.y),0===h&&(s=e.x),0===d&&(i=e.y),{x:s,y:i}}}),"intersection"),vt=o(((t,e)=>{c.debug("abc88 cutPathAtIntersect",t,e);let r=[],a=t[0],s=!1;return t.forEach((t=>{if(_t(e,t)||s)a=t,s||r.push(t);else{const i=Et(e,a,t);let n=!1;r.forEach((t=>{n=n||t.x===i.x&&t.y===i.y})),r.some((t=>t.x===i.x&&t.y===i.y))||r.push(i),s=!0}})),r}),"cutPathAtIntersect"),Dt=o((function(e,r,a,s,i,n,o){let d=a.points;c.debug("abc88 InsertEdge: edge=",a,"e=",r);let h=!1;const g=n.node(r.v);var y=n.node(r.w);y?.intersect&&g?.intersect&&(d=d.slice(1,a.points.length-1),d.unshift(g.intersect(d[0])),d.push(y.intersect(d[d.length-1]))),a.toCluster&&(c.debug("to cluster abc88",s[a.toCluster]),d=vt(a.points,s[a.toCluster].node),h=!0),a.fromCluster&&(c.debug("from cluster abc88",s[a.fromCluster]),d=vt(d.reverse(),s[a.fromCluster].node).reverse(),h=!0);const p=d.filter((t=>!Number.isNaN(t.y)));let u=k;!a.curve||"graph"!==i&&"flowchart"!==i||(u=a.curve);const{x:x,y:b}=t(a),f=m().x(x).y(b).curve(u);let w;switch(a.thickness){case"normal":w="edge-thickness-normal";break;case"thick":case"invisible":w="edge-thickness-thick";break;default:w=""}switch(a.pattern){case"solid":w+=" edge-pattern-solid";break;case"dotted":w+=" edge-pattern-dotted";break;case"dashed":w+=" edge-pattern-dashed"}const S=e.append("path").attr("d",f(p)).attr("id",a.id).attr("class"," "+w+(a.classes?" "+a.classes:"")).attr("style",a.style);let L="";(l().flowchart.arrowMarkerAbsolute||l().state.arrowMarkerAbsolute)&&(L=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,L=L.replace(/\(/g,"\\("),L=L.replace(/\)/g,"\\)")),xt(S,a,L,o,i);let _={};return h&&(_.updatedPath=d),_.originalPath=a.points,_}),"insertEdge"),$t=o((t=>{const e=new Set;for(const r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r)}return e}),"expandAndDeduplicateDirections"),Tt=o(((t,e,r)=>{const a=$t(t),s=e.height+2*r.padding,i=s/2,n=e.width+2*i+r.padding,o=r.padding/2;return a.has("right")&&a.has("left")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:i,y:0},{x:n/2,y:2*o},{x:n-i,y:0},{x:n,y:0},{x:n,y:-s/3},{x:n+2*o,y:-s/2},{x:n,y:-2*s/3},{x:n,y:-s},{x:n-i,y:-s},{x:n/2,y:-s-2*o},{x:i,y:-s},{x:0,y:-s},{x:0,y:-2*s/3},{x:-2*o,y:-s/2},{x:0,y:-s/3}]:a.has("right")&&a.has("left")&&a.has("up")?[{x:i,y:0},{x:n-i,y:0},{x:n,y:-s/2},{x:n-i,y:-s},{x:i,y:-s},{x:0,y:-s/2}]:a.has("right")&&a.has("left")&&a.has("down")?[{x:0,y:0},{x:i,y:-s},{x:n-i,y:-s},{x:n,y:0}]:a.has("right")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:n,y:-i},{x:n,y:-s+i},{x:0,y:-s}]:a.has("left")&&a.has("up")&&a.has("down")?[{x:n,y:0},{x:0,y:-i},{x:0,y:-s+i},{x:n,y:-s}]:a.has("right")&&a.has("left")?[{x:i,y:0},{x:i,y:-o},{x:n-i,y:-o},{x:n-i,y:0},{x:n,y:-s/2},{x:n-i,y:-s},{x:n-i,y:-s+o},{x:i,y:-s+o},{x:i,y:-s},{x:0,y:-s/2}]:a.has("up")&&a.has("down")?[{x:n/2,y:0},{x:0,y:-o},{x:i,y:-o},{x:i,y:-s+o},{x:0,y:-s+o},{x:n/2,y:-s},{x:n,y:-s+o},{x:n-i,y:-s+o},{x:n-i,y:-o},{x:n,y:-o}]:a.has("right")&&a.has("up")?[{x:0,y:0},{x:n,y:-i},{x:0,y:-s}]:a.has("right")&&a.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-s}]:a.has("left")&&a.has("up")?[{x:n,y:0},{x:0,y:-i},{x:n,y:-s}]:a.has("left")&&a.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-s}]:a.has("right")?[{x:i,y:-o},{x:i,y:-o},{x:n-i,y:-o},{x:n-i,y:0},{x:n,y:-s/2},{x:n-i,y:-s},{x:n-i,y:-s+o},{x:i,y:-s+o},{x:i,y:-s+o}]:a.has("left")?[{x:i,y:0},{x:i,y:-o},{x:n-i,y:-o},{x:n-i,y:-s+o},{x:i,y:-s+o},{x:i,y:-s},{x:0,y:-s/2}]:a.has("up")?[{x:i,y:-o},{x:i,y:-s+o},{x:0,y:-s+o},{x:n/2,y:-s},{x:n,y:-s+o},{x:n-i,y:-s+o},{x:n-i,y:-o}]:a.has("down")?[{x:n/2,y:0},{x:0,y:-o},{x:i,y:-o},{x:i,y:-s+o},{x:n-i,y:-s+o},{x:n-i,y:-o},{x:n,y:-o}]:[{x:0,y:0}]}),"getArrowPoints");function Nt(t,e){return t.intersect(e)}o(Nt,"intersectNode");var Ct=Nt;function It(t,e,r,a){var s=t.x,i=t.y,n=s-a.x,o=i-a.y,l=Math.sqrt(e*e*o*o+r*r*n*n),c=Math.abs(e*r*n/l);a.x<s&&(c=-c);var d=Math.abs(e*r*o/l);return a.y<i&&(d=-d),{x:s+c,y:i+d}}o(It,"intersectEllipse");var Bt=It;function zt(t,e,r){return Bt(t,e,e,r)}o(zt,"intersectCircle");var Rt=zt;function Ot(t,e,r,a){var s,i,n,o,l,c,d,h,g,y,p,u,x;if(s=e.y-t.y,n=t.x-e.x,l=e.x*t.y-t.x*e.y,g=s*r.x+n*r.y+l,y=s*a.x+n*a.y+l,!(0!==g&&0!==y&&At(g,y)||(i=a.y-r.y,o=r.x-a.x,c=a.x*r.y-r.x*a.y,d=i*t.x+o*t.y+c,h=i*e.x+o*e.y+c,0!==d&&0!==h&&At(d,h)||0==(p=s*o-i*n))))return u=Math.abs(p/2),{x:(x=n*c-o*l)<0?(x-u)/p:(x+u)/p,y:(x=i*l-s*c)<0?(x-u)/p:(x+u)/p}}function At(t,e){return t*e>0}o(Ot,"intersectLine"),o(At,"sameSign");var Mt=Ot,Pt=Yt;function Yt(t,e,r){var a=t.x,s=t.y,i=[],n=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){n=Math.min(n,t.x),o=Math.min(o,t.y)})):(n=Math.min(n,e.x),o=Math.min(o,e.y));for(var l=a-t.width/2-n,c=s-t.height/2-o,d=0;d<e.length;d++){var h=e[d],g=e[d<e.length-1?d+1:0],y=Mt(t,r,{x:l+h.x,y:c+h.y},{x:l+g.x,y:c+g.y});y&&i.push(y)}return i.length?(i.length>1&&i.sort((function(t,e){var a=t.x-r.x,s=t.y-r.y,i=Math.sqrt(a*a+s*s),n=e.x-r.x,o=e.y-r.y,l=Math.sqrt(n*n+o*o);return i<l?-1:i===l?0:1})),i[0]):t}o(Yt,"intersectPolygon");var Xt={node:Ct,circle:Rt,ellipse:Bt,polygon:Pt,rect:o(((t,e)=>{var r,a,s=t.x,i=t.y,n=e.x-s,o=e.y-i,l=t.width/2,c=t.height/2;return Math.abs(o)*l>Math.abs(n)*c?(o<0&&(c=-c),r=0===o?0:c*n/o,a=c):(n<0&&(l=-l),r=l,a=0===n?0:l*o/n),{x:s+r,y:i+a}}),"intersectRect")},Ft=o((async(t,e,a,s)=>{const i=l();let c;const d=e.useHtmlLabels||h(i.flowchart.htmlLabels);c=a||"node default";const g=t.insert("g").attr("class",c).attr("id",e.domId||e.id),y=g.insert("g").attr("class","label").attr("style",e.labelStyle);let p;p=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];const x=y.node();let b;b="markdown"===e.labelType?r(y,u(n(p),i),{useHtmlLabels:d,width:e.width||i.flowchart.wrappingWidth,classes:"markdown-node-label"},i):x.appendChild(ut(u(n(p),i),e.labelStyle,!1,s));let m=b.getBBox();const w=e.padding/2;if(h(i.flowchart.htmlLabels)){const t=b.children[0],e=f(b),r=t.getElementsByTagName("img");if(r){const t=""===p.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map((e=>new Promise((r=>{function a(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=i.fontSize?i.fontSize:window.getComputedStyle(document.body).fontSize,r=5,a=parseInt(t,10)*r+"px";e.style.minWidth=a,e.style.maxWidth=a}else e.style.width="100%";r(e)}o(a,"setupImage"),setTimeout((()=>{e.complete&&a()})),e.addEventListener("error",a),e.addEventListener("load",a)})))))}m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}return d?y.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"):y.attr("transform","translate(0, "+-m.height/2+")"),e.centerLabel&&y.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),y.insert("rect",":first-child"),{shapeSvg:g,bbox:m,halfPadding:w,label:y}}),"labelHelper"),Wt=o(((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height}),"updateNodeBounds");function jt(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}o(jt,"insertPolygonShape");var Ht=o((async(t,e)=>{e.useHtmlLabels||l().flowchart.htmlLabels||(e.centerLabel=!0);const{shapeSvg:r,bbox:a,halfPadding:s}=await Ft(t,e,"node "+e.classes,!0);c.info("Classes = ",e.classes);const i=r.insert("rect",":first-child");return i.attr("rx",e.rx).attr("ry",e.ry).attr("x",-a.width/2-s).attr("y",-a.height/2-s).attr("width",a.width+e.padding).attr("height",a.height+e.padding),Wt(e,i),e.intersect=function(t){return Xt.rect(e,t)},r}),"note"),Ut=o((t=>t?" "+t:""),"formatClass"),Kt=o(((t,e)=>`${e||"node default"}${Ut(t.classes)} ${Ut(t.class)}`),"getClassesFromNode"),Zt=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e,void 0),!0),s=a.width+e.padding+(a.height+e.padding),i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];c.info("Question main (Circle)");const n=jt(r,s,s,i);return n.attr("style",e.style),Wt(e,n),e.intersect=function(t){return c.warn("Intersect called"),Xt.polygon(e,i,t)},r}),"question"),qt=o(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}];return r.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return Xt.circle(e,14,t)},r}),"choice"),Jt=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e,void 0),!0),s=a.height+e.padding,i=s/4,n=a.width+2*i+e.padding,o=[{x:i,y:0},{x:n-i,y:0},{x:n,y:-s/2},{x:n-i,y:-s},{x:i,y:-s},{x:0,y:-s/2}],l=jt(r,n,s,o);return l.attr("style",e.style),Wt(e,l),e.intersect=function(t){return Xt.polygon(e,o,t)},r}),"hexagon"),Gt=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,void 0,!0),s=a.height+2*e.padding,i=s/2,n=a.width+2*i+e.padding,o=Tt(e.directions,a,e),l=jt(r,n,s,o);return l.attr("style",e.style),Wt(e,l),e.intersect=function(t){return Xt.polygon(e,o,t)},r}),"block_arrow"),Vt=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e,void 0),!0),s=a.width+e.padding,i=a.height+e.padding,n=[{x:-i/2,y:0},{x:s,y:0},{x:s,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];return jt(r,s,i,n).attr("style",e.style),e.width=s+i,e.height=i,e.intersect=function(t){return Xt.polygon(e,n,t)},r}),"rect_left_inv_arrow"),Qt=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e),!0),s=a.width+e.padding,i=a.height+e.padding,n=[{x:-2*i/6,y:0},{x:s-i/6,y:0},{x:s+2*i/6,y:-i},{x:i/6,y:-i}],o=jt(r,s,i,n);return o.attr("style",e.style),Wt(e,o),e.intersect=function(t){return Xt.polygon(e,n,t)},r}),"lean_right"),te=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e,void 0),!0),s=a.width+e.padding,i=a.height+e.padding,n=[{x:2*i/6,y:0},{x:s+i/6,y:0},{x:s-2*i/6,y:-i},{x:-i/6,y:-i}],o=jt(r,s,i,n);return o.attr("style",e.style),Wt(e,o),e.intersect=function(t){return Xt.polygon(e,n,t)},r}),"lean_left"),ee=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e,void 0),!0),s=a.width+e.padding,i=a.height+e.padding,n=[{x:-2*i/6,y:0},{x:s+2*i/6,y:0},{x:s-i/6,y:-i},{x:i/6,y:-i}],o=jt(r,s,i,n);return o.attr("style",e.style),Wt(e,o),e.intersect=function(t){return Xt.polygon(e,n,t)},r}),"trapezoid"),re=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e,void 0),!0),s=a.width+e.padding,i=a.height+e.padding,n=[{x:i/6,y:0},{x:s-i/6,y:0},{x:s+2*i/6,y:-i},{x:-2*i/6,y:-i}],o=jt(r,s,i,n);return o.attr("style",e.style),Wt(e,o),e.intersect=function(t){return Xt.polygon(e,n,t)},r}),"inv_trapezoid"),ae=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e,void 0),!0),s=a.width+e.padding,i=a.height+e.padding,n=[{x:0,y:0},{x:s+i/2,y:0},{x:s,y:-i/2},{x:s+i/2,y:-i},{x:0,y:-i}],o=jt(r,s,i,n);return o.attr("style",e.style),Wt(e,o),e.intersect=function(t){return Xt.polygon(e,n,t)},r}),"rect_right_inv_arrow"),se=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e,void 0),!0),s=a.width+e.padding,i=s/2,n=i/(2.5+s/50),o=a.height+n+e.padding,l="M 0,"+n+" a "+i+","+n+" 0,0,0 "+s+" 0 a "+i+","+n+" 0,0,0 "+-s+" 0 l 0,"+o+" a "+i+","+n+" 0,0,0 "+s+" 0 l 0,"+-o,c=r.attr("label-offset-y",n).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-s/2+","+-(o/2+n)+")");return Wt(e,c),e.intersect=function(t){const r=Xt.rect(e,t),a=r.x-e.x;if(0!=i&&(Math.abs(a)<e.width/2||Math.abs(a)==e.width/2&&Math.abs(r.y-e.y)>e.height/2-n)){let s=n*n*(1-a*a/(i*i));0!=s&&(s=Math.sqrt(s)),s=n-s,t.y-e.y>0&&(s=-s),r.y+=s}return r},r}),"cylinder"),ie=o((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Ft(t,e,"node "+e.classes+" "+e.class,!0),i=r.insert("rect",":first-child"),n=e.positioned?e.width:a.width+e.padding,o=e.positioned?e.height:a.height+e.padding,l=e.positioned?-n/2:-a.width/2-s,d=e.positioned?-o/2:-a.height/2-s;if(i.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",l).attr("y",d).attr("width",n).attr("height",o),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(le(i,e.props.borders,n,o),t.delete("borders")),t.forEach((t=>{c.warn(`Unknown node property ${t}`)}))}return Wt(e,i),e.intersect=function(t){return Xt.rect(e,t)},r}),"rect"),ne=o((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Ft(t,e,"node "+e.classes,!0),i=r.insert("rect",":first-child"),n=e.positioned?e.width:a.width+e.padding,o=e.positioned?e.height:a.height+e.padding,l=e.positioned?-n/2:-a.width/2-s,d=e.positioned?-o/2:-a.height/2-s;if(i.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",l).attr("y",d).attr("width",n).attr("height",o),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(le(i,e.props.borders,n,o),t.delete("borders")),t.forEach((t=>{c.warn(`Unknown node property ${t}`)}))}return Wt(e,i),e.intersect=function(t){return Xt.rect(e,t)},r}),"composite"),oe=o((async(t,e)=>{const{shapeSvg:r}=await Ft(t,e,"label",!0);c.trace("Classes = ",e.class);const a=r.insert("rect",":first-child");if(a.attr("width",0).attr("height",0),r.attr("class","label edgeLabel"),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(le(a,e.props.borders,0,0),t.delete("borders")),t.forEach((t=>{c.warn(`Unknown node property ${t}`)}))}return Wt(e,a),e.intersect=function(t){return Xt.rect(e,t)},r}),"labelRect");function le(t,e,r,a){const s=[],i=o((t=>{s.push(t,0)}),"addBorder"),n=o((t=>{s.push(0,t)}),"skipBorder");e.includes("t")?(c.debug("add top border"),i(r)):n(r),e.includes("r")?(c.debug("add right border"),i(a)):n(a),e.includes("b")?(c.debug("add bottom border"),i(r)):n(r),e.includes("l")?(c.debug("add left border"),i(a)):n(a),t.attr("stroke-dasharray",s.join(" "))}o(le,"applyNodePropertyBorders");var ce=o(((t,e)=>{let r;r=e.classes?"node "+e.classes:"node default";const a=t.insert("g").attr("class",r).attr("id",e.domId||e.id),s=a.insert("rect",":first-child"),i=a.insert("line"),n=a.insert("g").attr("class","label"),o=e.labelText.flat?e.labelText.flat():e.labelText;let d="";d="object"==typeof o?o[0]:o,c.info("Label text abc79",d,o,"object"==typeof o);const g=n.node().appendChild(ut(d,e.labelStyle,!0,!0));let y={width:0,height:0};if(h(l().flowchart.htmlLabels)){const t=g.children[0],e=f(g);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}c.info("Text 2",o);const p=o.slice(1,o.length);let u=g.getBBox();const x=n.node().appendChild(ut(p.join?p.join("<br/>"):p,e.labelStyle,!0,!0));if(h(l().flowchart.htmlLabels)){const t=x.children[0],e=f(x);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}const b=e.padding/2;return f(x).attr("transform","translate( "+(y.width>u.width?0:(u.width-y.width)/2)+", "+(u.height+b+5)+")"),f(g).attr("transform","translate( "+(y.width<u.width?0:-(u.width-y.width)/2)+", 0)"),y=n.node().getBBox(),n.attr("transform","translate("+-y.width/2+", "+(-y.height/2-b+3)+")"),s.attr("class","outer title-state").attr("x",-y.width/2-b).attr("y",-y.height/2-b).attr("width",y.width+e.padding).attr("height",y.height+e.padding),i.attr("class","divider").attr("x1",-y.width/2-b).attr("x2",y.width/2+b).attr("y1",-y.height/2-b+u.height+b).attr("y2",-y.height/2-b+u.height+b),Wt(e,s),e.intersect=function(t){return Xt.rect(e,t)},a}),"rectWithTitle"),de=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e,void 0),!0),s=a.height+e.padding,i=a.width+s/4+e.padding,n=r.insert("rect",":first-child").attr("style",e.style).attr("rx",s/2).attr("ry",s/2).attr("x",-i/2).attr("y",-s/2).attr("width",i).attr("height",s);return Wt(e,n),e.intersect=function(t){return Xt.rect(e,t)},r}),"stadium"),he=o((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Ft(t,e,Kt(e,void 0),!0),i=r.insert("circle",":first-child");return i.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+s).attr("width",a.width+e.padding).attr("height",a.height+e.padding),c.info("Circle main"),Wt(e,i),e.intersect=function(t){return c.info("Circle intersect",e,a.width/2+s,t),Xt.circle(e,a.width/2+s,t)},r}),"circle"),ge=o((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Ft(t,e,Kt(e,void 0),!0),i=r.insert("g",":first-child"),n=i.insert("circle"),o=i.insert("circle");return i.attr("class",e.class),n.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+s+5).attr("width",a.width+e.padding+10).attr("height",a.height+e.padding+10),o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+s).attr("width",a.width+e.padding).attr("height",a.height+e.padding),c.info("DoubleCircle main"),Wt(e,n),e.intersect=function(t){return c.info("DoubleCircle intersect",e,a.width/2+s+5,t),Xt.circle(e,a.width/2+s+5,t)},r}),"doublecircle"),ye=o((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Ft(t,e,Kt(e,void 0),!0),s=a.width+e.padding,i=a.height+e.padding,n=[{x:0,y:0},{x:s,y:0},{x:s,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],o=jt(r,s,i,n);return o.attr("style",e.style),Wt(e,o),e.intersect=function(t){return Xt.polygon(e,n,t)},r}),"subroutine"),pe=o(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Wt(e,a),e.intersect=function(t){return Xt.circle(e,7,t)},r}),"start"),ue=o(((t,e,r)=>{const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s=70,i=10;"LR"===r&&(s=10,i=70);const n=a.append("rect").attr("x",-1*s/2).attr("y",-1*i/2).attr("width",s).attr("height",i).attr("class","fork-join");return Wt(e,n),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return Xt.rect(e,t)},a}),"forkJoin"),xe={rhombus:Zt,composite:ne,question:Zt,rect:ie,labelRect:oe,rectWithTitle:ce,choice:qt,circle:he,doublecircle:ge,stadium:de,hexagon:Jt,block_arrow:Gt,rect_left_inv_arrow:Vt,lean_right:Qt,lean_left:te,trapezoid:ee,inv_trapezoid:re,rect_right_inv_arrow:ae,cylinder:se,start:pe,end:o(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child"),s=r.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Wt(e,s),e.intersect=function(t){return Xt.circle(e,7,t)},r}),"end"),note:Ht,subroutine:ye,fork:ue,join:ue,class_box:o(((t,e)=>{const r=e.padding/2;let a;a=e.classes?"node "+e.classes:"node default";const s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),i=s.insert("rect",":first-child"),n=s.insert("line"),o=s.insert("line");let c=0,d=4;const g=s.insert("g").attr("class","label");let y=0;const p=e.classData.annotations?.[0],u=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",x=g.node().appendChild(ut(u,e.labelStyle,!0,!0));let b=x.getBBox();if(h(l().flowchart.htmlLabels)){const t=x.children[0],e=f(x);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}e.classData.annotations[0]&&(d+=b.height+4,c+=b.width);let m=e.classData.label;void 0!==e.classData.type&&""!==e.classData.type&&(l().flowchart.htmlLabels?m+="&lt;"+e.classData.type+"&gt;":m+="<"+e.classData.type+">");const w=g.node().appendChild(ut(m,e.labelStyle,!0,!0));f(w).attr("class","classTitle");let k=w.getBBox();if(h(l().flowchart.htmlLabels)){const t=w.children[0],e=f(w);k=t.getBoundingClientRect(),e.attr("width",k.width),e.attr("height",k.height)}d+=k.height+4,k.width>c&&(c=k.width);const S=[];e.classData.members.forEach((t=>{const r=t.getDisplayDetails();let a=r.displayText;l().flowchart.htmlLabels&&(a=a.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const s=g.node().appendChild(ut(a,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0));let i=s.getBBox();if(h(l().flowchart.htmlLabels)){const t=s.children[0],e=f(s);i=t.getBoundingClientRect(),e.attr("width",i.width),e.attr("height",i.height)}i.width>c&&(c=i.width),d+=i.height+4,S.push(s)})),d+=8;const L=[];if(e.classData.methods.forEach((t=>{const r=t.getDisplayDetails();let a=r.displayText;l().flowchart.htmlLabels&&(a=a.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const s=g.node().appendChild(ut(a,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0));let i=s.getBBox();if(h(l().flowchart.htmlLabels)){const t=s.children[0],e=f(s);i=t.getBoundingClientRect(),e.attr("width",i.width),e.attr("height",i.height)}i.width>c&&(c=i.width),d+=i.height+4,L.push(s)})),d+=8,p){let t=(c-b.width)/2;f(x).attr("transform","translate( "+(-1*c/2+t)+", "+-1*d/2+")"),y=b.height+4}let _=(c-k.width)/2;return f(w).attr("transform","translate( "+(-1*c/2+_)+", "+(-1*d/2+y)+")"),y+=k.height+4,n.attr("class","divider").attr("x1",-c/2-r).attr("x2",c/2+r).attr("y1",-d/2-r+8+y).attr("y2",-d/2-r+8+y),y+=8,S.forEach((t=>{f(t).attr("transform","translate( "+-c/2+", "+(-1*d/2+y+4)+")");const e=t?.getBBox();y+=(e?.height??0)+4})),y+=8,o.attr("class","divider").attr("x1",-c/2-r).attr("x2",c/2+r).attr("y1",-d/2-r+8+y).attr("y2",-d/2-r+8+y),y+=8,L.forEach((t=>{f(t).attr("transform","translate( "+-c/2+", "+(-1*d/2+y)+")");const e=t?.getBBox();y+=(e?.height??0)+4})),i.attr("style",e.style).attr("class","outer title-state").attr("x",-c/2-r).attr("y",-d/2-r).attr("width",c+e.padding).attr("height",d+e.padding),Wt(e,i),e.intersect=function(t){return Xt.rect(e,t)},s}),"class_box")},be={},fe=o((async(t,e,r)=>{let a,s;if(e.link){let i;"sandbox"===l().securityLevel?i="_top":e.linkTarget&&(i=e.linkTarget||"_blank"),a=t.insert("svg:a").attr("xlink:href",e.link).attr("target",i),s=await xe[e.shape](a,e,r)}else s=await xe[e.shape](t,e,r),a=s;return e.tooltip&&s.attr("title",e.tooltip),e.class&&s.attr("class","node default "+e.class),be[e.id]=a,e.haveCallback&&be[e.id].attr("class",be[e.id].attr("class")+" clickable"),a}),"insertNode"),me=o((t=>{const e=be[t.id];c.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r}),"positionNode");function we(t,e,r=!1){const a=t;let i="default";(a?.classes?.length||0)>0&&(i=(a?.classes??[]).join(" ")),i+=" flowchart-label";let n,o=0,l="";switch(a.type){case"round":o=5,l="rect";break;case"composite":o=0,l="composite",n=0;break;case"square":case"group":default:l="rect";break;case"diamond":l="question";break;case"hexagon":l="hexagon";break;case"block_arrow":l="block_arrow";break;case"odd":case"rect_left_inv_arrow":l="rect_left_inv_arrow";break;case"lean_right":l="lean_right";break;case"lean_left":l="lean_left";break;case"trapezoid":l="trapezoid";break;case"inv_trapezoid":l="inv_trapezoid";break;case"circle":l="circle";break;case"ellipse":l="ellipse";break;case"stadium":l="stadium";break;case"subroutine":l="subroutine";break;case"cylinder":l="cylinder";break;case"doublecircle":l="doublecircle"}const c=s(a?.styles??[]),h=a.label,g=a.size??{width:0,height:0,x:0,y:0};return{labelStyle:c.labelStyle,shape:l,labelText:h,rx:o,ry:o,class:i,style:c.style,id:a.id,directions:a.directions,width:g.width,height:g.height,x:g.x,y:g.y,positioned:r,intersect:void 0,type:a.type,padding:n??d()?.block?.padding??0}}async function ke(t,e,r){const a=we(e,0,!1);if("group"===a.type)return;const s=d(),i=await fe(t,a,{config:s}),n=i.node().getBBox(),o=r.getBlock(a.id);o.size={width:n.width,height:n.height,x:0,y:0,node:i},r.setBlock(o),i.remove()}async function Se(t,e,r){const a=we(e,0,!0);if("space"!==r.getBlock(a.id).type){const r=d();await fe(t,a,{config:r}),e.intersect=a?.intersect,me(a)}}async function Le(t,e,r,a){for(const s of e)await a(t,s,r),s.children&&await Le(t,s.children,r,a)}async function _e(t,e,r){await Le(t,e,r,ke)}async function Ee(t,e,r){await Le(t,e,r,Se)}async function ve(t,e,r,a,s){const i=new b({multigraph:!0,compound:!0});i.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const t of r)t.size&&i.setNode(t.id,{width:t.size.width,height:t.size.height,intersect:t.intersect});for(const r of e)if(r.start&&r.end){const e=a.getBlock(r.start),n=a.getBlock(r.end);if(e?.size&&n?.size){const a=e.size,o=n.size,l=[{x:a.x,y:a.y},{x:a.x+(o.x-a.x)/2,y:a.y+(o.y-a.y)/2},{x:o.x,y:o.y}];Dt(t,{v:r.start,w:r.end,name:r.id},{...r,arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:l,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",i,s),r.label&&(await kt(t,{...r,label:r.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:l,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),Lt({...r,x:l[1].x,y:l[1].y},{originalPath:l}))}}}o(we,"getNodeFromBlock"),o(ke,"calculateBlockSize"),o(Se,"insertBlockPositioned"),o(Le,"performOperations"),o(_e,"calculateBlockSizes"),o(Ee,"insertBlocks"),o(ve,"insertEdges");var De=o((function(t,e){return e.db.getClasses()}),"getClasses"),$e={parser:_,db:tt,renderer:{draw:o((async function(t,e,r,a){const{securityLevel:s,block:i}=d(),n=a.db;let o;"sandbox"===s&&(o=f("#i"+e));const l=f("sandbox"===s?o.nodes()[0].contentDocument.body:"body"),h="sandbox"===s?l.select(`[id="${e}"]`):f(`[id="${e}"]`);it(h,["point","circle","cross"],a.type,e);const y=n.getBlocks(),p=n.getBlocksFlat(),u=n.getEdges(),x=h.insert("g").attr("class","block");await _e(x,y,n);const b=gt(n);if(await Ee(x,y,n),await ve(x,u,p,n,e),b){const t=b,e=Math.max(1,Math.round(t.width/t.height*.125)),r=t.height+e+10,a=t.width+10,{useMaxWidth:s}=i;g(h,r,a,!!s),c.debug("Here Bounds",b,t),h.attr("viewBox",`${t.x-5} ${t.y-5} ${t.width+10} ${t.height+10}`)}}),"draw"),getClasses:De},styles:rt};export{$e as diagram};
@@ -1 +0,0 @@
1
- import{drawRect as t,getNoteRect as e}from"./chunk-ASOPGD6M.js";import{wrapLabel as n,calculateTextHeight as a,calculateTextWidth as i}from"./chunk-7DKRZKHE.js";import{__name as s,assignWithDepth_default as r,setAccTitle as l,getAccTitle as o,getAccDescription as h,setAccDescription as d,getConfig2 as u,common_default as p,sanitizeText as y,log as f,configureSvgSize as g}from"./chunk-6DBFFHIP.js";import"../../../../d3-transition/src/selection/index.js";import"../../../../d3-zoom/src/transform.js";import{sanitizeUrl as b}from"../../../../@braintree/sanitize-url/dist/index.js";import m from"../../../../d3-selection/src/select.js";var _=function(){var t=s((function(t,e,n,a){for(n=n||{},a=t.length;a--;n[t[a]]=e);return n}),"o"),e=[1,24],n=[1,25],a=[1,26],i=[1,27],r=[1,28],l=[1,63],o=[1,64],h=[1,65],d=[1,66],u=[1,67],p=[1,68],y=[1,69],f=[1,29],g=[1,30],b=[1,31],m=[1,32],_=[1,33],x=[1,34],E=[1,35],S=[1,36],A=[1,37],C=[1,38],w=[1,39],O=[1,40],k=[1,41],T=[1,42],v=[1,43],R=[1,44],D=[1,45],N=[1,46],P=[1,47],B=[1,48],j=[1,50],M=[1,51],I=[1,52],L=[1,53],Y=[1,54],U=[1,55],F=[1,56],X=[1,57],z=[1,58],W=[1,59],Q=[1,60],$=[14,42],H=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],q=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],V=[1,82],G=[1,83],K=[1,84],J=[1,85],Z=[12,14,42],tt=[12,14,33,42],et=[12,14,33,42,76,77,79,80],nt=[12,33],at=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],it={trace:s((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:s((function(t,e,n,a,i,s,r){var l=s.length-1;switch(i){case 3:a.setDirection("TB");break;case 4:a.setDirection("BT");break;case 5:a.setDirection("RL");break;case 6:a.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:a.setC4Type(s[l-3]);break;case 19:a.setTitle(s[l].substring(6)),this.$=s[l].substring(6);break;case 20:a.setAccDescription(s[l].substring(15)),this.$=s[l].substring(15);break;case 21:this.$=s[l].trim(),a.setTitle(this.$);break;case 22:case 23:this.$=s[l].trim(),a.setAccDescription(this.$);break;case 28:s[l].splice(2,0,"ENTERPRISE"),a.addPersonOrSystemBoundary(...s[l]),this.$=s[l];break;case 29:s[l].splice(2,0,"SYSTEM"),a.addPersonOrSystemBoundary(...s[l]),this.$=s[l];break;case 30:a.addPersonOrSystemBoundary(...s[l]),this.$=s[l];break;case 31:s[l].splice(2,0,"CONTAINER"),a.addContainerBoundary(...s[l]),this.$=s[l];break;case 32:a.addDeploymentNode("node",...s[l]),this.$=s[l];break;case 33:a.addDeploymentNode("nodeL",...s[l]),this.$=s[l];break;case 34:a.addDeploymentNode("nodeR",...s[l]),this.$=s[l];break;case 35:a.popBoundaryParseStack();break;case 39:a.addPersonOrSystem("person",...s[l]),this.$=s[l];break;case 40:a.addPersonOrSystem("external_person",...s[l]),this.$=s[l];break;case 41:a.addPersonOrSystem("system",...s[l]),this.$=s[l];break;case 42:a.addPersonOrSystem("system_db",...s[l]),this.$=s[l];break;case 43:a.addPersonOrSystem("system_queue",...s[l]),this.$=s[l];break;case 44:a.addPersonOrSystem("external_system",...s[l]),this.$=s[l];break;case 45:a.addPersonOrSystem("external_system_db",...s[l]),this.$=s[l];break;case 46:a.addPersonOrSystem("external_system_queue",...s[l]),this.$=s[l];break;case 47:a.addContainer("container",...s[l]),this.$=s[l];break;case 48:a.addContainer("container_db",...s[l]),this.$=s[l];break;case 49:a.addContainer("container_queue",...s[l]),this.$=s[l];break;case 50:a.addContainer("external_container",...s[l]),this.$=s[l];break;case 51:a.addContainer("external_container_db",...s[l]),this.$=s[l];break;case 52:a.addContainer("external_container_queue",...s[l]),this.$=s[l];break;case 53:a.addComponent("component",...s[l]),this.$=s[l];break;case 54:a.addComponent("component_db",...s[l]),this.$=s[l];break;case 55:a.addComponent("component_queue",...s[l]),this.$=s[l];break;case 56:a.addComponent("external_component",...s[l]),this.$=s[l];break;case 57:a.addComponent("external_component_db",...s[l]),this.$=s[l];break;case 58:a.addComponent("external_component_queue",...s[l]),this.$=s[l];break;case 60:a.addRel("rel",...s[l]),this.$=s[l];break;case 61:a.addRel("birel",...s[l]),this.$=s[l];break;case 62:a.addRel("rel_u",...s[l]),this.$=s[l];break;case 63:a.addRel("rel_d",...s[l]),this.$=s[l];break;case 64:a.addRel("rel_l",...s[l]),this.$=s[l];break;case 65:a.addRel("rel_r",...s[l]),this.$=s[l];break;case 66:a.addRel("rel_b",...s[l]),this.$=s[l];break;case 67:s[l].splice(0,1),a.addRel("rel",...s[l]),this.$=s[l];break;case 68:a.updateElStyle("update_el_style",...s[l]),this.$=s[l];break;case 69:a.updateRelStyle("update_rel_style",...s[l]),this.$=s[l];break;case 70:a.updateLayoutConfig("update_layout_config",...s[l]),this.$=s[l];break;case 71:this.$=[s[l]];break;case 72:s[l].unshift(s[l-1]),this.$=s[l];break;case 73:case 75:this.$=s[l].trim();break;case 74:let t={};t[s[l-1].trim()]=s[l].trim(),this.$=t;break;case 76:this.$=""}}),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:n,24:a,26:i,28:r,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:f,45:g,46:b,47:m,48:_,49:x,50:E,51:S,52:A,53:C,54:w,55:O,56:k,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:j,65:M,66:I,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{13:70,19:20,20:21,21:22,22:e,23:n,24:a,26:i,28:r,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:f,45:g,46:b,47:m,48:_,49:x,50:E,51:S,52:A,53:C,54:w,55:O,56:k,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:j,65:M,66:I,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{13:71,19:20,20:21,21:22,22:e,23:n,24:a,26:i,28:r,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:f,45:g,46:b,47:m,48:_,49:x,50:E,51:S,52:A,53:C,54:w,55:O,56:k,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:j,65:M,66:I,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{13:72,19:20,20:21,21:22,22:e,23:n,24:a,26:i,28:r,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:f,45:g,46:b,47:m,48:_,49:x,50:E,51:S,52:A,53:C,54:w,55:O,56:k,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:j,65:M,66:I,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{13:73,19:20,20:21,21:22,22:e,23:n,24:a,26:i,28:r,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:f,45:g,46:b,47:m,48:_,49:x,50:E,51:S,52:A,53:C,54:w,55:O,56:k,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:j,65:M,66:I,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{14:[1,74]},t($,[2,13],{43:23,29:49,30:61,32:62,20:75,34:l,36:o,37:h,38:d,39:u,40:p,41:y,44:f,45:g,46:b,47:m,48:_,49:x,50:E,51:S,52:A,53:C,54:w,55:O,56:k,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:j,65:M,66:I,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q}),t($,[2,14]),t(H,[2,16],{12:[1,76]}),t($,[2,36],{12:[1,77]}),t(q,[2,19]),t(q,[2,20]),{25:[1,78]},{27:[1,79]},t(q,[2,23]),{35:80,75:81,76:V,77:G,79:K,80:J},{35:86,75:81,76:V,77:G,79:K,80:J},{35:87,75:81,76:V,77:G,79:K,80:J},{35:88,75:81,76:V,77:G,79:K,80:J},{35:89,75:81,76:V,77:G,79:K,80:J},{35:90,75:81,76:V,77:G,79:K,80:J},{35:91,75:81,76:V,77:G,79:K,80:J},{35:92,75:81,76:V,77:G,79:K,80:J},{35:93,75:81,76:V,77:G,79:K,80:J},{35:94,75:81,76:V,77:G,79:K,80:J},{35:95,75:81,76:V,77:G,79:K,80:J},{35:96,75:81,76:V,77:G,79:K,80:J},{35:97,75:81,76:V,77:G,79:K,80:J},{35:98,75:81,76:V,77:G,79:K,80:J},{35:99,75:81,76:V,77:G,79:K,80:J},{35:100,75:81,76:V,77:G,79:K,80:J},{35:101,75:81,76:V,77:G,79:K,80:J},{35:102,75:81,76:V,77:G,79:K,80:J},{35:103,75:81,76:V,77:G,79:K,80:J},{35:104,75:81,76:V,77:G,79:K,80:J},t(Z,[2,59]),{35:105,75:81,76:V,77:G,79:K,80:J},{35:106,75:81,76:V,77:G,79:K,80:J},{35:107,75:81,76:V,77:G,79:K,80:J},{35:108,75:81,76:V,77:G,79:K,80:J},{35:109,75:81,76:V,77:G,79:K,80:J},{35:110,75:81,76:V,77:G,79:K,80:J},{35:111,75:81,76:V,77:G,79:K,80:J},{35:112,75:81,76:V,77:G,79:K,80:J},{35:113,75:81,76:V,77:G,79:K,80:J},{35:114,75:81,76:V,77:G,79:K,80:J},{35:115,75:81,76:V,77:G,79:K,80:J},{20:116,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:f,45:g,46:b,47:m,48:_,49:x,50:E,51:S,52:A,53:C,54:w,55:O,56:k,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:j,65:M,66:I,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{12:[1,118],33:[1,117]},{35:119,75:81,76:V,77:G,79:K,80:J},{35:120,75:81,76:V,77:G,79:K,80:J},{35:121,75:81,76:V,77:G,79:K,80:J},{35:122,75:81,76:V,77:G,79:K,80:J},{35:123,75:81,76:V,77:G,79:K,80:J},{35:124,75:81,76:V,77:G,79:K,80:J},{35:125,75:81,76:V,77:G,79:K,80:J},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t($,[2,15]),t(H,[2,17],{21:22,19:130,22:e,23:n,24:a,26:i,28:r}),t($,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:n,24:a,26:i,28:r,34:l,36:o,37:h,38:d,39:u,40:p,41:y,44:f,45:g,46:b,47:m,48:_,49:x,50:E,51:S,52:A,53:C,54:w,55:O,56:k,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:j,65:M,66:I,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q}),t(q,[2,21]),t(q,[2,22]),t(Z,[2,39]),t(tt,[2,71],{75:81,35:132,76:V,77:G,79:K,80:J}),t(et,[2,73]),{78:[1,133]},t(et,[2,75]),t(et,[2,76]),t(Z,[2,40]),t(Z,[2,41]),t(Z,[2,42]),t(Z,[2,43]),t(Z,[2,44]),t(Z,[2,45]),t(Z,[2,46]),t(Z,[2,47]),t(Z,[2,48]),t(Z,[2,49]),t(Z,[2,50]),t(Z,[2,51]),t(Z,[2,52]),t(Z,[2,53]),t(Z,[2,54]),t(Z,[2,55]),t(Z,[2,56]),t(Z,[2,57]),t(Z,[2,58]),t(Z,[2,60]),t(Z,[2,61]),t(Z,[2,62]),t(Z,[2,63]),t(Z,[2,64]),t(Z,[2,65]),t(Z,[2,66]),t(Z,[2,67]),t(Z,[2,68]),t(Z,[2,69]),t(Z,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(nt,[2,28]),t(nt,[2,29]),t(nt,[2,30]),t(nt,[2,31]),t(nt,[2,32]),t(nt,[2,33]),t(nt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(H,[2,18]),t($,[2,38]),t(tt,[2,72]),t(et,[2,74]),t(Z,[2,24]),t(Z,[2,35]),t(at,[2,25]),t(at,[2,26],{12:[1,138]}),t(at,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:s((function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)}),"parseError"),parse:s((function(t){var e=this,n=[0],a=[],i=[null],r=[],l=this.table,o="",c=0,h=0,d=r.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);u.setInput(t,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var f=u.yylloc;r.push(f);var g=u.options&&u.options.ranges;function b(){var t;return"number"!=typeof(t=a.pop()||u.lex()||1)&&(t instanceof Array&&(t=(a=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s((function(t){n.length=n.length-2*t,i.length=i.length-t,r.length=r.length-t}),"popStack"),s(b,"lex");for(var m,_,x,E,S,A,C,w,O={};;){if(_=n[n.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null==m&&(m=b()),x=l[_]&&l[_][m]),void 0===x||!x.length||!x[0]){var k="";for(S in w=[],l[_])this.terminals_[S]&&S>2&&w.push("'"+this.terminals_[S]+"'");k=u.showPosition?"Parse error on line "+(c+1)+":\n"+u.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(k,{text:u.match,token:this.terminals_[m]||m,line:u.yylineno,loc:f,expected:w})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+m);switch(x[0]){case 1:n.push(m),i.push(u.yytext),r.push(u.yylloc),n.push(x[1]),m=null,h=u.yyleng,o=u.yytext,c=u.yylineno,f=u.yylloc;break;case 2:if(A=this.productions_[x[1]][1],O.$=i[i.length-A],O._$={first_line:r[r.length-(A||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(A||1)].first_column,last_column:r[r.length-1].last_column},g&&(O._$.range=[r[r.length-(A||1)].range[0],r[r.length-1].range[1]]),void 0!==(E=this.performAction.apply(O,[o,h,c,p.yy,x[1],i,r].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),r=r.slice(0,-1*A)),n.push(this.productions_[x[1]][0]),i.push(O.$),r.push(O._$),C=l[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}),"parse")},st=function(){return{EOF:1,parseError:s((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:s((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:s((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:s((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===a.length?this.yylloc.first_column:0)+a[a.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:s((function(){return this._more=!0,this}),"more"),reject:s((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})}),"reject"),less:s((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:s((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:s((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:s((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:s((function(t,e){var n,a,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in i)this[s]=i[s];return!1}return!1}),"test_match"),next:s((function(){if(this.done)return this.EOF;var t,e,n,a;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length;s++)if((n=this._input.match(this.rules[i[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,a=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:s((function(){var t=this.next();return t||this.lex()}),"lex"),begin:s((function(t){this.conditionStack.push(t)}),"begin"),popState:s((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:s((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:s((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:s((function(t){this.begin(t)}),"pushState"),stateStackSize:s((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:s((function(t,e,n,a){switch(n){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}}),"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}}}();function rt(){this.yy={}}return it.lexer=st,s(rt,"Parser"),rt.prototype=it,it.Parser=rt,new rt}();_.parser=_;var x,E=_,S=[],A=[""],C="global",w="",O=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],k=[],T="",v=!1,R=4,D=2,N=s((function(){return x}),"getC4Type"),P=s((function(t){let e=y(t,u());x=e}),"setC4Type"),B=s((function(t,e,n,a,i,s,r,l,o){if(null==t||null==e||null==n||null==a)return;let c={};const h=k.find((t=>t.from===e&&t.to===n));if(h?c=h:k.push(c),c.type=t,c.from=e,c.to=n,c.label={text:a},null==i)c.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.techn={text:i};if(null==s)c.descr={text:""};else if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]={text:e}}else c.descr={text:s};if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]=e}else c.sprite=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];c[t]=e}else c.tags=l;if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.link=o;c.wrap=at()}),"addRel"),j=s((function(t,e,n,a,i,s,r){if(null===e||null===n)return;let l={};const o=S.find((t=>t.alias===e));if(o&&e===o.alias?l=o:(l.alias=e,S.push(l)),l.label=null==n?{text:""}:{text:n},null==a)l.descr={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];l[t]={text:e}}else l.descr={text:a};if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]=e}else l.sprite=i;if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=e}else l.tags=s;if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]=e}else l.link=r;l.typeC4Shape={text:t},l.parentBoundary=C,l.wrap=at()}),"addPersonOrSystem"),M=s((function(t,e,n,a,i,s,r,l){if(null===e||null===n)return;let o={};const c=S.find((t=>t.alias===e));if(c&&e===c.alias?o=c:(o.alias=e,S.push(o)),o.label=null==n?{text:""}:{text:n},null==a)o.techn={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]={text:e}}else o.techn={text:a};if(null==i)o.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else o.descr={text:i};if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=e}else o.sprite=s;if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.tags=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.wrap=at(),o.typeC4Shape={text:t},o.parentBoundary=C}),"addContainer"),I=s((function(t,e,n,a,i,s,r,l){if(null===e||null===n)return;let o={};const c=S.find((t=>t.alias===e));if(c&&e===c.alias?o=c:(o.alias=e,S.push(o)),o.label=null==n?{text:""}:{text:n},null==a)o.techn={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]={text:e}}else o.techn={text:a};if(null==i)o.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else o.descr={text:i};if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=e}else o.sprite=s;if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.tags=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.wrap=at(),o.typeC4Shape={text:t},o.parentBoundary=C}),"addComponent"),L=s((function(t,e,n,a,i){if(null===t||null===e)return;let s={};const r=O.find((e=>e.alias===t));if(r&&t===r.alias?s=r:(s.alias=t,O.push(s)),s.label=null==e?{text:""}:{text:e},null==n)s.type={text:"system"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];s[t]={text:e}}else s.type={text:n};if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]=e}else s.tags=a;if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]=e}else s.link=i;s.parentBoundary=C,s.wrap=at(),w=C,C=t,A.push(w)}),"addPersonOrSystemBoundary"),Y=s((function(t,e,n,a,i){if(null===t||null===e)return;let s={};const r=O.find((e=>e.alias===t));if(r&&t===r.alias?s=r:(s.alias=t,O.push(s)),s.label=null==e?{text:""}:{text:e},null==n)s.type={text:"container"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];s[t]={text:e}}else s.type={text:n};if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]=e}else s.tags=a;if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]=e}else s.link=i;s.parentBoundary=C,s.wrap=at(),w=C,C=t,A.push(w)}),"addContainerBoundary"),U=s((function(t,e,n,a,i,s,r,l){if(null===e||null===n)return;let o={};const c=O.find((t=>t.alias===e));if(c&&e===c.alias?o=c:(o.alias=e,O.push(o)),o.label=null==n?{text:""}:{text:n},null==a)o.type={text:"node"};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]={text:e}}else o.type={text:a};if(null==i)o.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else o.descr={text:i};if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.tags=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.nodeType=t,o.parentBoundary=C,o.wrap=at(),w=C,C=e,A.push(w)}),"addDeploymentNode"),F=s((function(){C=w,A.pop(),w=A.pop(),A.push(w)}),"popBoundaryParseStack"),X=s((function(t,e,n,a,i,s,r,l,o,c,h){let d=S.find((t=>t.alias===e));if(void 0!==d||(d=O.find((t=>t.alias===e)),void 0!==d)){if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];d[t]=e}else d.bgColor=n;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];d[t]=e}else d.fontColor=a;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];d[t]=e}else d.borderColor=i;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];d[t]=e}else d.shadowing=s;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];d[t]=e}else d.shape=r;if(null!=l)if("object"==typeof l){let[t,e]=Object.entries(l)[0];d[t]=e}else d.sprite=l;if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];d[t]=e}else d.techn=o;if(null!=c)if("object"==typeof c){let[t,e]=Object.entries(c)[0];d[t]=e}else d.legendText=c;if(null!=h)if("object"==typeof h){let[t,e]=Object.entries(h)[0];d[t]=e}else d.legendSprite=h}}),"updateElStyle"),z=s((function(t,e,n,a,i,s,r){const l=k.find((t=>t.from===e&&t.to===n));if(void 0!==l){if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];l[t]=e}else l.textColor=a;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]=e}else l.lineColor=i;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=parseInt(e)}else l.offsetX=parseInt(s);if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]=parseInt(e)}else l.offsetY=parseInt(r)}}),"updateRelStyle"),W=s((function(t,e,n){let a=R,i=D;if("object"==typeof e){const t=Object.values(e)[0];a=parseInt(t)}else a=parseInt(e);if("object"==typeof n){const t=Object.values(n)[0];i=parseInt(t)}else i=parseInt(n);a>=1&&(R=a),i>=1&&(D=i)}),"updateLayoutConfig"),Q=s((function(){return R}),"getC4ShapeInRow"),$=s((function(){return D}),"getC4BoundaryInRow"),H=s((function(){return C}),"getCurrentBoundaryParse"),q=s((function(){return w}),"getParentBoundaryParse"),V=s((function(t){return null==t?S:S.filter((e=>e.parentBoundary===t))}),"getC4ShapeArray"),G=s((function(t){return S.find((e=>e.alias===t))}),"getC4Shape"),K=s((function(t){return Object.keys(V(t))}),"getC4ShapeKeys"),J=s((function(t){return null==t?O:O.filter((e=>e.parentBoundary===t))}),"getBoundaries"),Z=J,tt=s((function(){return k}),"getRels"),et=s((function(){return T}),"getTitle"),nt=s((function(t){v=t}),"setWrap"),at=s((function(){return v}),"autoWrap"),it=s((function(){S=[],O=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],w="",C="global",A=[""],k=[],A=[""],T="",v=!1,R=4,D=2}),"clear"),st=s((function(t){let e=y(t,u());T=e}),"setTitle"),rt={addPersonOrSystem:j,addPersonOrSystemBoundary:L,addContainer:M,addContainerBoundary:Y,addComponent:I,addDeploymentNode:U,popBoundaryParseStack:F,addRel:B,updateElStyle:X,updateRelStyle:z,updateLayoutConfig:W,autoWrap:at,setWrap:nt,getC4ShapeArray:V,getC4Shape:G,getC4ShapeKeys:K,getBoundaries:J,getBoundarys:Z,getCurrentBoundaryParse:H,getParentBoundaryParse:q,getRels:tt,getTitle:et,getC4Type:N,getC4ShapeInRow:Q,getC4BoundaryInRow:$,setAccTitle:l,getAccTitle:o,getAccDescription:h,setAccDescription:d,getConfig:s((()=>u().c4),"getConfig"),clear:it,LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:st,setC4Type:P},lt=s((function(e,n){return t(e,n)}),"drawRect"),ot=s((function(t,e,n,a,i,s){const r=t.append("image");r.attr("width",e),r.attr("height",n),r.attr("x",a),r.attr("y",i);let l=s.startsWith("data:image/png;base64")?s:b(s);r.attr("xlink:href",l)}),"drawImage"),ct=s(((t,e,n)=>{const a=t.append("g");let i=0;for(let t of e){let e=t.textColor?t.textColor:"#444444",s=t.lineColor?t.lineColor:"#444444",r=t.offsetX?parseInt(t.offsetX):0,l=t.offsetY?parseInt(t.offsetY):0,o="";if(0===i){let e=a.append("line");e.attr("x1",t.startPoint.x),e.attr("y1",t.startPoint.y),e.attr("x2",t.endPoint.x),e.attr("y2",t.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",s),e.style("fill","none"),"rel_b"!==t.type&&e.attr("marker-end","url("+o+"#arrowhead)"),"birel"!==t.type&&"rel_b"!==t.type||e.attr("marker-start","url("+o+"#arrowend)"),i=-1}else{let e=a.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",s).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",t.startPoint.x).replaceAll("starty",t.startPoint.y).replaceAll("controlx",t.startPoint.x+(t.endPoint.x-t.startPoint.x)/2-(t.endPoint.x-t.startPoint.x)/4).replaceAll("controly",t.startPoint.y+(t.endPoint.y-t.startPoint.y)/2).replaceAll("stopx",t.endPoint.x).replaceAll("stopy",t.endPoint.y)),"rel_b"!==t.type&&e.attr("marker-end","url("+o+"#arrowhead)"),"birel"!==t.type&&"rel_b"!==t.type||e.attr("marker-start","url("+o+"#arrowend)")}let c=n.messageFont();Et(n)(t.label.text,a,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+r,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+l,t.label.width,t.label.height,{fill:e},c),t.techn&&""!==t.techn.text&&(c=n.messageFont(),Et(n)("["+t.techn.text+"]",a,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+r,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+n.messageFontSize+5+l,Math.max(t.label.width,t.techn.width),t.techn.height,{fill:e,"font-style":"italic"},c))}}),"drawRels"),ht=s((function(t,e,n){const a=t.append("g");let i=e.bgColor?e.bgColor:"none",s=e.borderColor?e.borderColor:"#444444",r=e.fontColor?e.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(l={"stroke-width":1});let o={x:e.x,y:e.y,fill:i,stroke:s,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l};lt(a,o);let c=n.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=r,Et(n)(e.label.text,a,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},c),e.type&&""!==e.type.text&&(c=n.boundaryFont(),c.fontColor=r,Et(n)(e.type.text,a,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},c)),e.descr&&""!==e.descr.text&&(c=n.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=r,Et(n)(e.descr.text,a,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},c))}),"drawBoundary"),dt=s((function(t,n,a){let i=n.bgColor?n.bgColor:a[n.typeC4Shape.text+"_bg_color"],s=n.borderColor?n.borderColor:a[n.typeC4Shape.text+"_border_color"],r=n.fontColor?n.fontColor:"#FFFFFF",l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(n.typeC4Shape.text){case"person":l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}const o=t.append("g");o.attr("class","person-man");const c=e();switch(n.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":c.x=n.x,c.y=n.y,c.fill=i,c.width=n.width,c.height=n.height,c.stroke=s,c.rx=2.5,c.ry=2.5,c.attrs={"stroke-width":.5},lt(o,c);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":o.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",n.x).replaceAll("starty",n.y).replaceAll("half",n.width/2).replaceAll("height",n.height)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",n.x).replaceAll("starty",n.y).replaceAll("half",n.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":o.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",n.x).replaceAll("starty",n.y).replaceAll("width",n.width).replaceAll("half",n.height/2)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",n.x+n.width).replaceAll("starty",n.y).replaceAll("half",n.height/2))}let h=xt(a,n.typeC4Shape.text);switch(o.append("text").attr("fill",r).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",n.typeC4Shape.width).attr("x",n.x+n.width/2-n.typeC4Shape.width/2).attr("y",n.y+n.typeC4Shape.Y).text("<<"+n.typeC4Shape.text+">>"),n.typeC4Shape.text){case"person":case"external_person":ot(o,48,48,n.x+n.width/2-24,n.y+n.image.Y,l)}let d=a[n.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=r,Et(a)(n.label.text,o,n.x,n.y+n.label.Y,n.width,n.height,{fill:r},d),d=a[n.typeC4Shape.text+"Font"](),d.fontColor=r,n.techn&&""!==n.techn?.text?Et(a)(n.techn.text,o,n.x,n.y+n.techn.Y,n.width,n.height,{fill:r,"font-style":"italic"},d):n.type&&""!==n.type.text&&Et(a)(n.type.text,o,n.x,n.y+n.type.Y,n.width,n.height,{fill:r,"font-style":"italic"},d),n.descr&&""!==n.descr.text&&(d=a.personFont(),d.fontColor=r,Et(a)(n.descr.text,o,n.x,n.y+n.descr.Y,n.width,n.height,{fill:r},d)),n.height}),"drawC4Shape"),ut=s((function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}),"insertDatabaseIcon"),pt=s((function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")}),"insertComputerIcon"),yt=s((function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}),"insertClockIcon"),ft=s((function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).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")}),"insertArrowHead"),gt=s((function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}),"insertArrowEnd"),bt=s((function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).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")}),"insertArrowFilledHead"),mt=s((function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)}),"insertDynamicNumber"),_t=s((function(t){const e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}),"insertArrowCrossHead"),xt=s(((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]})),"getC4ShapeFont"),Et=function(){function t(t,e,n,i,s,r,l){a(e.append("text").attr("x",n+s/2).attr("y",i+r/2+5).style("text-anchor","middle").text(t),l)}function e(t,e,n,i,s,r,l,o){const{fontSize:c,fontFamily:h,fontWeight:d}=o,u=t.split(p.lineBreakRegex);for(let t=0;t<u.length;t++){const r=t*c-c*(u.length-1)/2,o=e.append("text").attr("x",n+s/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",d).style("font-family",h);o.append("tspan").attr("dy",r).text(u[t]).attr("alignment-baseline","mathematical"),a(o,l)}}function n(t,n,i,s,r,l,o,c){const h=n.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",s).attr("width",r).attr("height",l).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,i,s,r,0,o,c),a(d,o)}function a(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return s(t,"byText"),s(e,"byTspan"),s(n,"byFo"),s(a,"_setTextAttrs"),function(a){return"fo"===a.textPlacement?n:"old"===a.textPlacement?t:e}}(),St={drawRect:lt,drawBoundary:ht,drawC4Shape:dt,drawRels:ct,drawImage:ot,insertArrowHead:ft,insertArrowEnd:gt,insertArrowFilledHead:bt,insertDynamicNumber:mt,insertArrowCrossHead:_t,insertDatabaseIcon:ut,insertComputerIcon:pt,insertClockIcon:yt},At=0,Ct=0,wt=4,Ot=2;_.yy=rt;var kt={},Tt=class{static{s(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,vt(t.db.getConfig())}setData(t,e,n,a){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=a}updateVal(t,e,n,a){void 0===t[e]?t[e]=n:t[e]=a(n,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,n=e+t.width,a=this.nextData.starty+2*t.margin,i=a+t.height;(e>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>wt)&&(e=this.nextData.startx+t.margin+kt.nextLinePaddingX,a=this.nextData.stopy+2*t.margin,this.nextData.stopx=n=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=a+t.height,this.nextData.cnt=1),t.x=e,t.y=a,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",a,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",a,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},vt(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},vt=s((function(t){r(kt,t),t.fontFamily&&(kt.personFontFamily=kt.systemFontFamily=kt.messageFontFamily=t.fontFamily),t.fontSize&&(kt.personFontSize=kt.systemFontSize=kt.messageFontSize=t.fontSize),t.fontWeight&&(kt.personFontWeight=kt.systemFontWeight=kt.messageFontWeight=t.fontWeight)}),"setConf"),Rt=s(((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]})),"c4ShapeFont"),Dt=s((t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight})),"boundaryFont"),Nt=s((t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight})),"messageFont");function Pt(t,e,s,r,l){if(!e[t].width)if(s)e[t].text=n(e[t].text,l,r),e[t].textLines=e[t].text.split(p.lineBreakRegex).length,e[t].width=l,e[t].height=a(e[t].text,r);else{let n=e[t].text.split(p.lineBreakRegex);e[t].textLines=n.length;let s=0;e[t].height=0,e[t].width=0;for(const l of n)e[t].width=Math.max(i(l,r),e[t].width),s=a(l,r),e[t].height=e[t].height+s}}s(Pt,"calcC4ShapeTextWH");var Bt=s((function(t,e,n){e.x=n.data.startx,e.y=n.data.starty,e.width=n.data.stopx-n.data.startx,e.height=n.data.stopy-n.data.starty,e.label.y=kt.c4ShapeMargin-35;let a=e.wrap&&kt.wrap,s=Dt(kt);s.fontSize=s.fontSize+2,s.fontWeight="bold",Pt("label",e,a,s,i(e.label.text,s)),St.drawBoundary(t,e,kt)}),"drawBoundary"),jt=s((function(t,e,n,a){let s=0;for(const r of a){s=0;const a=n[r];let l=Rt(kt,a.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,a.typeC4Shape.width=i("«"+a.typeC4Shape.text+"»",l),a.typeC4Shape.height=l.fontSize+2,a.typeC4Shape.Y=kt.c4ShapePadding,s=a.typeC4Shape.Y+a.typeC4Shape.height-4,a.image={width:0,height:0,Y:0},a.typeC4Shape.text){case"person":case"external_person":a.image.width=48,a.image.height=48,a.image.Y=s,s=a.image.Y+a.image.height}a.sprite&&(a.image.width=48,a.image.height=48,a.image.Y=s,s=a.image.Y+a.image.height);let o=a.wrap&&kt.wrap,c=kt.width-2*kt.c4ShapePadding,h=Rt(kt,a.typeC4Shape.text);if(h.fontSize=h.fontSize+2,h.fontWeight="bold",Pt("label",a,o,h,c),a.label.Y=s+8,s=a.label.Y+a.label.height,a.type&&""!==a.type.text){a.type.text="["+a.type.text+"]",Pt("type",a,o,Rt(kt,a.typeC4Shape.text),c),a.type.Y=s+5,s=a.type.Y+a.type.height}else if(a.techn&&""!==a.techn.text){a.techn.text="["+a.techn.text+"]",Pt("techn",a,o,Rt(kt,a.techn.text),c),a.techn.Y=s+5,s=a.techn.Y+a.techn.height}let d=s,u=a.label.width;if(a.descr&&""!==a.descr.text){Pt("descr",a,o,Rt(kt,a.typeC4Shape.text),c),a.descr.Y=s+20,s=a.descr.Y+a.descr.height,u=Math.max(a.label.width,a.descr.width),d=s-5*a.descr.textLines}u+=kt.c4ShapePadding,a.width=Math.max(a.width||kt.width,u,kt.width),a.height=Math.max(a.height||kt.height,d,kt.height),a.margin=a.margin||kt.c4ShapeMargin,t.insert(a),St.drawC4Shape(e,a,kt)}t.bumpLastMargin(kt.c4ShapeMargin)}),"drawC4ShapeArray"),Mt=class{static{s(this,"Point")}constructor(t,e){this.x=t,this.y=e}},It=s((function(t,e){let n=t.x,a=t.y,i=e.x,s=e.y,r=n+t.width/2,l=a+t.height/2,o=Math.abs(n-i),c=Math.abs(a-s),h=c/o,d=t.height/t.width,u=null;return a==s&&n<i?u=new Mt(n+t.width,l):a==s&&n>i?u=new Mt(n,l):n==i&&a<s?u=new Mt(r,a+t.height):n==i&&a>s&&(u=new Mt(r,a)),n>i&&a<s?u=d>=h?new Mt(n,l+h*t.width/2):new Mt(r-o/c*t.height/2,a+t.height):n<i&&a<s?u=d>=h?new Mt(n+t.width,l+h*t.width/2):new Mt(r+o/c*t.height/2,a+t.height):n<i&&a>s?u=d>=h?new Mt(n+t.width,l-h*t.width/2):new Mt(r+t.height/2*o/c,a):n>i&&a>s&&(u=d>=h?new Mt(n,l-t.width/2*h):new Mt(r-t.height/2*o/c,a)),u}),"getIntersectPoint"),Lt=s((function(t,e){let n={x:0,y:0};n.x=e.x+e.width/2,n.y=e.y+e.height/2;let a=It(t,n);return n.x=t.x+t.width/2,n.y=t.y+t.height/2,{startPoint:a,endPoint:It(e,n)}}),"getIntersectPoints"),Yt=s((function(t,e,n,a){let s=0;for(let t of e){s+=1;let e=t.wrap&&kt.wrap,r=Nt(kt);"C4Dynamic"===a.db.getC4Type()&&(t.label.text=s+": "+t.label.text);let l=i(t.label.text,r);Pt("label",t,e,r,l),t.techn&&""!==t.techn.text&&(l=i(t.techn.text,r),Pt("techn",t,e,r,l)),t.descr&&""!==t.descr.text&&(l=i(t.descr.text,r),Pt("descr",t,e,r,l));let o=n(t.from),c=n(t.to),h=Lt(o,c);t.startPoint=h.startPoint,t.endPoint=h.endPoint}St.drawRels(t,e,kt)}),"drawRels");function Ut(t,e,n,a,i){let s=new Tt(i);s.data.widthLimit=n.data.widthLimit/Math.min(Ot,a.length);for(let[r,l]of a.entries()){let a=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=a,a=l.image.Y+l.image.height);let o=l.wrap&&kt.wrap,c=Dt(kt);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",Pt("label",l,o,c,s.data.widthLimit),l.label.Y=a+8,a=l.label.Y+l.label.height,l.type&&""!==l.type.text){l.type.text="["+l.type.text+"]",Pt("type",l,o,Dt(kt),s.data.widthLimit),l.type.Y=a+5,a=l.type.Y+l.type.height}if(l.descr&&""!==l.descr.text){let t=Dt(kt);t.fontSize=t.fontSize-2,Pt("descr",l,o,t,s.data.widthLimit),l.descr.Y=a+20,a=l.descr.Y+l.descr.height}if(0==r||r%Ot==0){let t=n.data.startx+kt.diagramMarginX,e=n.data.stopy+kt.diagramMarginY+a;s.setData(t,t,e,e)}else{let t=s.data.stopx!==s.data.startx?s.data.stopx+kt.diagramMarginX:s.data.startx,e=s.data.starty;s.setData(t,t,e,e)}s.name=l.alias;let h=i.db.getC4ShapeArray(l.alias),d=i.db.getC4ShapeKeys(l.alias);d.length>0&&jt(s,t,h,d),e=l.alias;let u=i.db.getBoundarys(e);u.length>0&&Ut(t,e,s,u,i),"global"!==l.alias&&Bt(t,l,s),n.data.stopy=Math.max(s.data.stopy+kt.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(s.data.stopx+kt.c4ShapeMargin,n.data.stopx),At=Math.max(At,n.data.stopx),Ct=Math.max(Ct,n.data.stopy)}}s(Ut,"drawInsideBoundary");var Ft={drawPersonOrSystemArray:jt,drawBoundary:Bt,setConf:vt,draw:s((function(t,e,n,a){kt=u().c4;const i=u().securityLevel;let s;"sandbox"===i&&(s=m("#i"+e));const r=m("sandbox"===i?s.nodes()[0].contentDocument.body:"body");let l=a.db;a.db.setWrap(kt.wrap),wt=l.getC4ShapeInRow(),Ot=l.getC4BoundaryInRow(),f.debug(`C:${JSON.stringify(kt,null,2)}`);const o="sandbox"===i?r.select(`[id="${e}"]`):m(`[id="${e}"]`);St.insertComputerIcon(o),St.insertDatabaseIcon(o),St.insertClockIcon(o);let c=new Tt(a);c.setData(kt.diagramMarginX,kt.diagramMarginX,kt.diagramMarginY,kt.diagramMarginY),c.data.widthLimit=screen.availWidth,At=kt.diagramMarginX,Ct=kt.diagramMarginY;const h=a.db.getTitle();Ut(o,"",c,a.db.getBoundarys(""),a),St.insertArrowHead(o),St.insertArrowEnd(o),St.insertArrowCrossHead(o),St.insertArrowFilledHead(o),Yt(o,a.db.getRels(),a.db.getC4Shape,a),c.data.stopx=At,c.data.stopy=Ct;const d=c.data;let p=d.stopy-d.starty+2*kt.diagramMarginY;const y=d.stopx-d.startx+2*kt.diagramMarginX;h&&o.append("text").text(h).attr("x",(d.stopx-d.startx)/2-4*kt.diagramMarginX).attr("y",d.starty+kt.diagramMarginY),g(o,p,y,kt.useMaxWidth);const b=h?60:0;o.attr("viewBox",d.startx-kt.diagramMarginX+" -"+(kt.diagramMarginY+b)+" "+y+" "+(p+b)),f.debug("models:",d)}),"draw")},Xt={parser:E,db:rt,renderer:Ft,styles:s((t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`),"getStyles"),init:s((({c4:t,wrap:e})=>{Ft.setConf(t),rt.setWrap(e)}),"init")};export{Xt as diagram};
@@ -1 +0,0 @@
1
- import{__name as t}from"./chunk-6DBFFHIP.js";var a={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function e(t,a){if(void 0===t||void 0===a)return{angle:0,deltaX:0,deltaY:0};t=n(t),a=n(a);const[e,r]=[t.x,t.y],[o,l]=[a.x,a.y],h=o-e,s=l-r;return{angle:Math.atan(s/h),deltaX:h,deltaY:s}}t(e,"calculateDeltaAndAngle");var n=t((t=>Array.isArray(t)?{x:t[0],y:t[1]}:t),"pointTransformer"),r=t((r=>({x:t((function(t,o,l){let h=0;const s=n(l[0]).x<n(l[l.length-1]).x?"left":"right";if(0===o&&Object.hasOwn(a,r.arrowTypeStart)){const{angle:t,deltaX:n}=e(l[0],l[1]);h=a[r.arrowTypeStart]*Math.cos(t)*(n>=0?1:-1)}else if(o===l.length-1&&Object.hasOwn(a,r.arrowTypeEnd)){const{angle:t,deltaX:n}=e(l[l.length-1],l[l.length-2]);h=a[r.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}const i=Math.abs(n(t).x-n(l[l.length-1]).x),y=Math.abs(n(t).y-n(l[l.length-1]).y),g=Math.abs(n(t).x-n(l[0]).x),c=Math.abs(n(t).y-n(l[0]).y),p=a[r.arrowTypeStart],d=a[r.arrowTypeEnd];if(i<d&&i>0&&y<d){let t=d+1-i;t*="right"===s?-1:1,h-=t}if(g<p&&g>0&&c<p){let t=p+1-g;t*="right"===s?-1:1,h+=t}return n(t).x+h}),"x"),y:t((function(t,o,l){let h=0;const s=n(l[0]).y<n(l[l.length-1]).y?"down":"up";if(0===o&&Object.hasOwn(a,r.arrowTypeStart)){const{angle:t,deltaY:n}=e(l[0],l[1]);h=a[r.arrowTypeStart]*Math.abs(Math.sin(t))*(n>=0?1:-1)}else if(o===l.length-1&&Object.hasOwn(a,r.arrowTypeEnd)){const{angle:t,deltaY:n}=e(l[l.length-1],l[l.length-2]);h=a[r.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}const i=Math.abs(n(t).y-n(l[l.length-1]).y),y=Math.abs(n(t).x-n(l[l.length-1]).x),g=Math.abs(n(t).y-n(l[0]).y),c=Math.abs(n(t).x-n(l[0]).x),p=a[r.arrowTypeStart],d=a[r.arrowTypeEnd];if(i<d&&i>0&&y<d){let t=d+1-i;t*="up"===s?-1:1,h-=t}if(g<p&&g>0&&c<p){let t=p+1-g;t*="up"===s?-1:1,h+=t}return n(t).y+h}),"y")})),"getLineFunctionsWithOffset");export{r as getLineFunctionsWithOffset};
@@ -1 +0,0 @@
1
- import{__name as r}from"./chunk-6DBFFHIP.js";var t=r((({flowchart:r})=>{const t=r?.subGraphTitleMargin?.top??0,a=r?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:t+a}}),"getSubGraphTitleMargins");export{t as getSubGraphTitleMargins};
@@ -1 +0,0 @@
1
- import{__name as t,configureSvgSize as e,log as o}from"./chunk-6DBFFHIP.js";import"../../../../d3-transition/src/selection/index.js";import"../../../../d3-zoom/src/transform.js";import i from"../../../../d3-selection/src/select.js";var n=t(((t,e)=>{let o;"sandbox"===e&&(o=i("#i"+t));return i("sandbox"===e?o.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`)}),"getDiagramElement"),r=t(((t,i,n,r)=>{t.attr("class",n);const{width:c,height:a,x:h,y:m}=s(t,i);e(t,a,c,r);const x=d(h,m,c,a,i);t.attr("viewBox",x),o.debug(`viewBox configured: ${x} with padding: ${i}`)}),"setupViewPortForSVG"),s=t(((t,e)=>{const o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+2*e,height:o.height+2*e,x:o.x,y:o.y}}),"calculateDimensionsWithPadding"),d=t(((t,e,o,i,n)=>`${t-n} ${e-n} ${o} ${i}`),"createViewBox");export{n as getDiagramElement,r as setupViewPortForSVG};