@windrun-huaiin/third-ui 13.1.4 → 14.0.0

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