markdown-flow-ui 0.3.2-dev.2 → 0.3.3

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 (478) hide show
  1. package/README.md +0 -13
  2. package/dist/_virtual/index.es6.js +5 -3
  3. package/dist/_virtual/index.es6.js.map +1 -1
  4. package/dist/_virtual/index.es7.js +3 -5
  5. package/dist/_virtual/index.es7.js.map +1 -1
  6. package/dist/_virtual/index6.cjs +1 -1
  7. package/dist/_virtual/index7.cjs +1 -1
  8. package/dist/assets/markdown-flow-ui.css +1 -10
  9. package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
  10. package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
  11. package/dist/components/ContentRender/utils/video-markdown-run.cjs.map +1 -1
  12. package/dist/components/ContentRender/utils/video-markdown-run.es.js.map +1 -1
  13. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs.map +1 -1
  14. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js.map +1 -1
  15. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -1
  16. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js.map +1 -1
  17. package/dist/components/MarkdownFlow/useScrollToBottom.cjs.map +1 -1
  18. package/dist/components/MarkdownFlow/useScrollToBottom.es.js.map +1 -1
  19. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
  20. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
  21. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +2 -2
  22. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +323 -562
  23. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  24. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
  25. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  26. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +0 -8
  27. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +64 -107
  28. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
  29. package/dist/components/MarkdownFlowEditor/editor-context.cjs +1 -1
  30. package/dist/components/MarkdownFlowEditor/editor-context.cjs.map +1 -1
  31. package/dist/components/MarkdownFlowEditor/editor-context.es.js +4 -10
  32. package/dist/components/MarkdownFlowEditor/editor-context.es.js.map +1 -1
  33. package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +0 -308
  34. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +1 -1
  35. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +1 -15
  36. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +87 -115
  37. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -1
  38. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.cjs +1 -1
  39. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.d.ts +1 -15
  40. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js +88 -116
  41. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js.map +1 -1
  42. package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
  43. package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +1 -15
  44. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +88 -116
  45. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
  46. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.cjs +1 -1
  47. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.d.ts +1 -15
  48. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js +80 -108
  49. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js.map +1 -1
  50. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.cjs +1 -1
  51. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.d.ts +1 -15
  52. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js +82 -110
  53. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js.map +1 -1
  54. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
  55. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +1 -15
  56. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +86 -114
  57. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
  58. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.cjs +1 -1
  59. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.d.ts +1 -15
  60. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js +88 -116
  61. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js.map +1 -1
  62. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +1 -1
  63. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +1 -15
  64. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +85 -113
  65. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -1
  66. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.cjs +1 -1
  67. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.d.ts +1 -15
  68. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js +94 -122
  69. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js.map +1 -1
  70. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.cjs +1 -1
  71. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.d.ts +1 -15
  72. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js +74 -102
  73. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js.map +1 -1
  74. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
  75. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +1 -15
  76. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +72 -100
  77. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
  78. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
  79. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
  80. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.d.ts +2 -1
  81. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +59 -51
  82. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
  83. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.cjs.map +1 -1
  84. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.d.ts +1 -1
  85. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.es.js.map +1 -1
  86. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
  87. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
  88. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.d.ts +1 -5
  89. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +156 -160
  90. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
  91. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
  92. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
  93. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.d.ts +2 -1
  94. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +51 -41
  95. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
  96. package/dist/components/MarkdownFlowEditor/types.cjs +1 -1
  97. package/dist/components/MarkdownFlowEditor/types.cjs.map +1 -1
  98. package/dist/components/MarkdownFlowEditor/types.d.ts +1 -11
  99. package/dist/components/MarkdownFlowEditor/types.es.js +2 -2
  100. package/dist/components/MarkdownFlowEditor/types.es.js.map +1 -1
  101. package/dist/components/MarkdownFlowEditor/utils.cjs +1 -1
  102. package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
  103. package/dist/components/MarkdownFlowEditor/utils.d.ts +5 -11
  104. package/dist/components/MarkdownFlowEditor/utils.es.js +43 -58
  105. package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
  106. package/dist/components/Slide/MarkdownSlideScaling.cjs.map +1 -1
  107. package/dist/components/Slide/MarkdownSlideScaling.es.js.map +1 -1
  108. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +16 -16
  109. package/dist/components/Slide/Player.cjs.map +1 -1
  110. package/dist/components/Slide/Player.es.js.map +1 -1
  111. package/dist/components/Slide/Slide.cjs.map +1 -1
  112. package/dist/components/Slide/Slide.es.js.map +1 -1
  113. package/dist/components/Slide/SubtitleOverlay.cjs.map +1 -1
  114. package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
  115. package/dist/components/Slide/slideI18n.cjs.map +1 -1
  116. package/dist/components/Slide/slideI18n.es.js.map +1 -1
  117. package/dist/components/Slide/useSlide.cjs.map +1 -1
  118. package/dist/components/Slide/useSlide.es.js.map +1 -1
  119. package/dist/components/Slide/utils/streamingNavigation.cjs.map +1 -1
  120. package/dist/components/Slide/utils/streamingNavigation.es.js.map +1 -1
  121. package/dist/components/ui/dialog.cjs +1 -1
  122. package/dist/components/ui/dialog.cjs.map +1 -1
  123. package/dist/components/ui/dialog.es.js +27 -27
  124. package/dist/components/ui/dialog.es.js.map +1 -1
  125. package/dist/lib/interaction-defaults.cjs.map +1 -1
  126. package/dist/lib/interaction-defaults.es.js.map +1 -1
  127. package/dist/markdown-flow-ui-lib.css +1 -1
  128. package/dist/markdown-flow-ui.css +1 -10
  129. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOHPRMQF.cjs +2 -14
  130. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOHPRMQF.cjs.map +1 -1
  131. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOHPRMQF.es.js +6 -26
  132. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOHPRMQF.es.js.map +1 -1
  133. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.cjs +1 -1
  134. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.cjs.map +1 -1
  135. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.es.js +2 -6
  136. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.es.js.map +1 -1
  137. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  138. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  139. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +34 -49
  140. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  141. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +1 -5
  142. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  143. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +206 -220
  144. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
  145. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs +2 -0
  146. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
  147. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js +50 -0
  148. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
  149. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  150. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  151. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +34 -0
  152. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  153. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs +2 -0
  154. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  155. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js +82 -0
  156. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
  157. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
  158. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
  159. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +216 -0
  160. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
  161. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs +2 -0
  162. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -0
  163. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js +15 -0
  164. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -0
  165. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
  166. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
  167. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js +18 -0
  168. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
  169. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs +2 -0
  170. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -0
  171. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js +104 -0
  172. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -0
  173. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  174. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  175. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js +39 -0
  176. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  177. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  178. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  179. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +13 -0
  180. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  181. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
  182. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
  183. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +70 -0
  184. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
  185. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs +2 -0
  186. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +1 -0
  187. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js +20 -0
  188. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +1 -0
  189. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +2 -0
  190. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -0
  191. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +7 -0
  192. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -0
  193. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +1 -1
  194. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -1
  195. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +18 -9
  196. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.js.map +1 -1
  197. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  198. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  199. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +148 -100
  200. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
  201. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  202. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  203. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +34 -0
  204. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  205. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  206. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  207. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js +39 -0
  208. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  209. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  210. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  211. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +13 -0
  212. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  213. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -1
  214. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  215. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +8 -8
  216. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
  217. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  218. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  219. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +2 -2
  220. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
  221. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  222. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  223. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js +50 -0
  224. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  225. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  226. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  227. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +80 -41
  228. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  229. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  230. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  231. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +34 -0
  232. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  233. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  234. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  235. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +1 -1
  236. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  237. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  238. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +12 -0
  239. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  240. package/dist/node_modules/classnames/index.cjs +1 -5
  241. package/dist/node_modules/classnames/index.cjs.map +1 -1
  242. package/dist/node_modules/classnames/index.es.js +0 -5
  243. package/dist/node_modules/classnames/index.es.js.map +1 -1
  244. package/dist/node_modules/cytoscape/dist/cytoscape.esm.cjs +3 -13
  245. package/dist/node_modules/cytoscape/dist/cytoscape.esm.cjs.map +1 -1
  246. package/dist/node_modules/cytoscape/dist/cytoscape.esm.es.js +15 -46
  247. package/dist/node_modules/cytoscape/dist/cytoscape.esm.es.js.map +1 -1
  248. package/dist/node_modules/d3-scale/src/ordinal.es.js +1 -1
  249. package/dist/node_modules/d3-scale/src/ordinal.es.js.map +1 -1
  250. package/dist/node_modules/dompurify/dist/purify.es.cjs +2 -2
  251. package/dist/node_modules/dompurify/dist/purify.es.cjs.map +1 -1
  252. package/dist/node_modules/dompurify/dist/purify.es.es.js +0 -2
  253. package/dist/node_modules/dompurify/dist/purify.es.es.js.map +1 -1
  254. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
  255. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
  256. package/dist/node_modules/highlight.js/lib/core.es.js +1 -1
  257. package/dist/node_modules/highlight.js/lib/core.es.js.map +1 -1
  258. package/dist/node_modules/katex/dist/katex.cjs +18 -18
  259. package/dist/node_modules/katex/dist/katex.cjs.map +1 -1
  260. package/dist/node_modules/katex/dist/katex.es.js +2716 -3120
  261. package/dist/node_modules/katex/dist/katex.es.js.map +1 -1
  262. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +1 -6
  263. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -1
  264. package/dist/node_modules/lucide-react/dist/esm/Icon.es.js +0 -6
  265. package/dist/node_modules/lucide-react/dist/esm/Icon.es.js.map +1 -1
  266. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +1 -6
  267. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -1
  268. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.es.js +0 -6
  269. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.es.js.map +1 -1
  270. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +1 -6
  271. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +1 -1
  272. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.es.js +0 -6
  273. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.es.js.map +1 -1
  274. package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.cjs +1 -6
  275. package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.cjs.map +1 -1
  276. package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.es.js +0 -6
  277. package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.es.js.map +1 -1
  278. package/dist/node_modules/lucide-react/dist/esm/icons/captions.cjs +1 -6
  279. package/dist/node_modules/lucide-react/dist/esm/icons/captions.cjs.map +1 -1
  280. package/dist/node_modules/lucide-react/dist/esm/icons/captions.es.js +0 -6
  281. package/dist/node_modules/lucide-react/dist/esm/icons/captions.es.js.map +1 -1
  282. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +1 -6
  283. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -1
  284. package/dist/node_modules/lucide-react/dist/esm/icons/check.es.js +0 -6
  285. package/dist/node_modules/lucide-react/dist/esm/icons/check.es.js.map +1 -1
  286. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.cjs +1 -6
  287. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.cjs.map +1 -1
  288. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.es.js +0 -6
  289. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.es.js.map +1 -1
  290. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs +1 -6
  291. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs.map +1 -1
  292. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js +0 -6
  293. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js.map +1 -1
  294. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.cjs +1 -6
  295. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.cjs.map +1 -1
  296. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.es.js +0 -6
  297. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.es.js.map +1 -1
  298. package/dist/node_modules/lucide-react/dist/esm/icons/copy.cjs +1 -6
  299. package/dist/node_modules/lucide-react/dist/esm/icons/copy.cjs.map +1 -1
  300. package/dist/node_modules/lucide-react/dist/esm/icons/copy.es.js +0 -6
  301. package/dist/node_modules/lucide-react/dist/esm/icons/copy.es.js.map +1 -1
  302. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.cjs +1 -6
  303. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.cjs.map +1 -1
  304. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js +0 -6
  305. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js.map +1 -1
  306. package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.cjs +1 -6
  307. package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.cjs.map +1 -1
  308. package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.es.js +0 -6
  309. package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.es.js.map +1 -1
  310. package/dist/node_modules/lucide-react/dist/esm/icons/file-type.cjs +1 -6
  311. package/dist/node_modules/lucide-react/dist/esm/icons/file-type.cjs.map +1 -1
  312. package/dist/node_modules/lucide-react/dist/esm/icons/file-type.es.js +0 -6
  313. package/dist/node_modules/lucide-react/dist/esm/icons/file-type.es.js.map +1 -1
  314. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.cjs +1 -6
  315. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.cjs.map +1 -1
  316. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js +0 -6
  317. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js.map +1 -1
  318. package/dist/node_modules/lucide-react/dist/esm/icons/image.cjs +1 -6
  319. package/dist/node_modules/lucide-react/dist/esm/icons/image.cjs.map +1 -1
  320. package/dist/node_modules/lucide-react/dist/esm/icons/image.es.js +0 -6
  321. package/dist/node_modules/lucide-react/dist/esm/icons/image.es.js.map +1 -1
  322. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.cjs +1 -6
  323. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.cjs.map +1 -1
  324. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.es.js +0 -6
  325. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.es.js.map +1 -1
  326. package/dist/node_modules/lucide-react/dist/esm/icons/maximize.cjs +1 -6
  327. package/dist/node_modules/lucide-react/dist/esm/icons/maximize.cjs.map +1 -1
  328. package/dist/node_modules/lucide-react/dist/esm/icons/maximize.es.js +0 -6
  329. package/dist/node_modules/lucide-react/dist/esm/icons/maximize.es.js.map +1 -1
  330. package/dist/node_modules/lucide-react/dist/esm/icons/rewind.cjs +1 -6
  331. package/dist/node_modules/lucide-react/dist/esm/icons/rewind.cjs.map +1 -1
  332. package/dist/node_modules/lucide-react/dist/esm/icons/rewind.es.js +0 -6
  333. package/dist/node_modules/lucide-react/dist/esm/icons/rewind.es.js.map +1 -1
  334. package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.cjs +1 -6
  335. package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.cjs.map +1 -1
  336. package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.es.js +0 -6
  337. package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.es.js.map +1 -1
  338. package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.cjs +1 -6
  339. package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.cjs.map +1 -1
  340. package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.es.js +0 -6
  341. package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.es.js.map +1 -1
  342. package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.cjs +1 -6
  343. package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.cjs.map +1 -1
  344. package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.es.js +0 -6
  345. package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.es.js.map +1 -1
  346. package/dist/node_modules/lucide-react/dist/esm/icons/square-check.cjs +1 -6
  347. package/dist/node_modules/lucide-react/dist/esm/icons/square-check.cjs.map +1 -1
  348. package/dist/node_modules/lucide-react/dist/esm/icons/square-check.es.js +0 -6
  349. package/dist/node_modules/lucide-react/dist/esm/icons/square-check.es.js.map +1 -1
  350. package/dist/node_modules/lucide-react/dist/esm/icons/square-play.cjs +1 -6
  351. package/dist/node_modules/lucide-react/dist/esm/icons/square-play.cjs.map +1 -1
  352. package/dist/node_modules/lucide-react/dist/esm/icons/square-play.es.js +0 -6
  353. package/dist/node_modules/lucide-react/dist/esm/icons/square-play.es.js.map +1 -1
  354. package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.cjs +1 -6
  355. package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.cjs.map +1 -1
  356. package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.es.js +0 -6
  357. package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.es.js.map +1 -1
  358. package/dist/node_modules/lucide-react/dist/esm/icons/upload.cjs +1 -6
  359. package/dist/node_modules/lucide-react/dist/esm/icons/upload.cjs.map +1 -1
  360. package/dist/node_modules/lucide-react/dist/esm/icons/upload.es.js +0 -6
  361. package/dist/node_modules/lucide-react/dist/esm/icons/upload.es.js.map +1 -1
  362. package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.cjs +1 -6
  363. package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.cjs.map +1 -1
  364. package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.es.js +0 -6
  365. package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.es.js.map +1 -1
  366. package/dist/node_modules/lucide-react/dist/esm/icons/x.cjs +1 -6
  367. package/dist/node_modules/lucide-react/dist/esm/icons/x.cjs.map +1 -1
  368. package/dist/node_modules/lucide-react/dist/esm/icons/x.es.js +0 -6
  369. package/dist/node_modules/lucide-react/dist/esm/icons/x.es.js.map +1 -1
  370. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +1 -6
  371. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +1 -1
  372. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.es.js +0 -6
  373. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.es.js.map +1 -1
  374. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.cjs +1 -1
  375. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.cjs.map +1 -1
  376. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.es.js +1 -6
  377. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.es.js.map +1 -1
  378. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
  379. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
  380. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
  381. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
  382. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
  383. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
  384. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
  385. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
  386. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
  387. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
  388. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VZM6K2ZE.cjs +1 -1
  389. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VZM6K2ZE.cjs.map +1 -1
  390. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VZM6K2ZE.es.js +0 -3
  391. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VZM6K2ZE.es.js.map +1 -1
  392. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.cjs +1 -1
  393. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.cjs.map +1 -1
  394. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.es.js +0 -2
  395. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.es.js.map +1 -1
  396. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
  397. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +1 -1
  398. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
  399. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +1 -1
  400. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-7S7Q4E2Y.cjs +1 -1
  401. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-7S7Q4E2Y.cjs.map +1 -1
  402. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-7S7Q4E2Y.es.js +0 -1
  403. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-7S7Q4E2Y.es.js.map +1 -1
  404. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
  405. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
  406. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
  407. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
  408. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
  409. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
  410. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
  411. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
  412. package/dist/node_modules/mermaid/dist/mermaid.core.cjs +1 -3
  413. package/dist/node_modules/mermaid/dist/mermaid.core.cjs.map +1 -1
  414. package/dist/node_modules/mermaid/dist/mermaid.core.es.js +0 -4
  415. package/dist/node_modules/mermaid/dist/mermaid.core.es.js.map +1 -1
  416. package/dist/node_modules/rc-util/es/React/isFragment.es.js +1 -1
  417. package/dist/node_modules/rc-util/es/React/isFragment.es.js.map +1 -1
  418. package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.cjs +1 -9
  419. package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.cjs.map +1 -1
  420. package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.es.js +2 -11
  421. package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.es.js.map +1 -1
  422. package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.cjs +1 -9
  423. package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.cjs.map +1 -1
  424. package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.es.js +2 -11
  425. package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.es.js.map +1 -1
  426. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +2 -2
  427. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -1
  428. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +75 -72
  429. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js.map +1 -1
  430. package/dist/node_modules/style-mod/src/style-mod.es.js +1 -1
  431. package/dist/node_modules/style-mod/src/style-mod.es.js.map +1 -1
  432. package/package.json +30 -29
  433. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs +0 -2
  434. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs.map +0 -1
  435. package/dist/components/MarkdownFlowEditor/components/CustomPopover.d.ts +0 -17
  436. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js +0 -46
  437. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js.map +0 -1
  438. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs +0 -2
  439. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs.map +0 -1
  440. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.d.ts +0 -18
  441. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js +0 -184
  442. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js.map +0 -1
  443. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +0 -2
  444. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +0 -1
  445. package/dist/components/MarkdownFlowEditor/components/VariableSelect.d.ts +0 -11
  446. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +0 -172
  447. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +0 -1
  448. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs +0 -2
  449. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs.map +0 -1
  450. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.d.ts +0 -3
  451. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js +0 -32
  452. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js.map +0 -1
  453. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs +0 -3
  454. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs.map +0 -1
  455. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.d.ts +0 -9
  456. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js +0 -53
  457. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js.map +0 -1
  458. package/dist/components/ui/popover.cjs +0 -2
  459. package/dist/components/ui/popover.cjs.map +0 -1
  460. package/dist/components/ui/popover.es.js +0 -24
  461. package/dist/components/ui/popover.es.js.map +0 -1
  462. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +0 -2
  463. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +0 -1
  464. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js +0 -241
  465. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js.map +0 -1
  466. package/dist/node_modules/lucide-react/dist/esm/icons/braces.cjs +0 -7
  467. package/dist/node_modules/lucide-react/dist/esm/icons/braces.cjs.map +0 -1
  468. package/dist/node_modules/lucide-react/dist/esm/icons/braces.es.js +0 -25
  469. package/dist/node_modules/lucide-react/dist/esm/icons/braces.es.js.map +0 -1
  470. package/dist/node_modules/lucide-react/dist/esm/icons/plus.cjs +0 -7
  471. package/dist/node_modules/lucide-react/dist/esm/icons/plus.cjs.map +0 -1
  472. package/dist/node_modules/lucide-react/dist/esm/icons/plus.es.js +0 -16
  473. package/dist/node_modules/lucide-react/dist/esm/icons/plus.es.js.map +0 -1
  474. package/dist/node_modules/lucide-react/dist/esm/icons/search.cjs +0 -7
  475. package/dist/node_modules/lucide-react/dist/esm/icons/search.cjs.map +0 -1
  476. package/dist/node_modules/lucide-react/dist/esm/icons/search.es.js +0 -16
  477. package/dist/node_modules/lucide-react/dist/esm/icons/search.es.js.map +0 -1
  478. /package/dist/components/MarkdownFlowEditor/plugins/{VariablePlaceholder.test.d.ts → MediaPlaceholder.variables.test.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const fe=require("./chunk-2GRJ4B5K.cjs"),q=require("./chunk-NSK5VX7P.cjs"),B=require("./chunk-I66GZJ75.cjs"),ue=require("./chunk-X3CZISLH.cjs"),p=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const Oe=require("../../../../../_virtual/index6.cjs"),jt=require("../../../../d3-selection/src/select.cjs");var Ft=(function(){var a=p.__name(function(xt,b,v,E){for(v=v||{},E=xt.length;E--;v[xt[E]]=b);return v},"o"),t=[1,24],r=[1,25],o=[1,26],s=[1,27],l=[1,28],e=[1,63],i=[1,64],n=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],x=[1,29],O=[1,30],S=[1,31],P=[1,32],L=[1,33],F=[1,34],G=[1,35],K=[1,36],J=[1,37],Z=[1,38],$=[1,39],tt=[1,40],et=[1,41],at=[1,42],nt=[1,43],it=[1,44],rt=[1,45],st=[1,46],lt=[1,47],ot=[1,48],ct=[1,50],ht=[1,51],ut=[1,52],dt=[1,53],_t=[1,54],ft=[1,55],pt=[1,56],yt=[1,57],gt=[1,58],mt=[1,59],bt=[1,60],Tt=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Dt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],C=[1,83],k=[1,84],w=[1,85],T=[12,14,42],se=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],At=[12,33],qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ht={trace:p.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:p.__name(function(b,v,E,g,R,h,Pt){var _=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[_-3]);break;case 19:g.setTitle(h[_].substring(6)),this.$=h[_].substring(6);break;case 20:g.setAccDescription(h[_].substring(15)),this.$=h[_].substring(15);break;case 21:this.$=h[_].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[_].trim(),g.setAccDescription(this.$);break;case 28:h[_].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 29:h[_].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 30:g.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 31:h[_].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[_]),this.$=h[_];break;case 32:g.addDeploymentNode("node",...h[_]),this.$=h[_];break;case 33:g.addDeploymentNode("nodeL",...h[_]),this.$=h[_];break;case 34:g.addDeploymentNode("nodeR",...h[_]),this.$=h[_];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[_]),this.$=h[_];break;case 40:g.addPersonOrSystem("external_person",...h[_]),this.$=h[_];break;case 41:g.addPersonOrSystem("system",...h[_]),this.$=h[_];break;case 42:g.addPersonOrSystem("system_db",...h[_]),this.$=h[_];break;case 43:g.addPersonOrSystem("system_queue",...h[_]),this.$=h[_];break;case 44:g.addPersonOrSystem("external_system",...h[_]),this.$=h[_];break;case 45:g.addPersonOrSystem("external_system_db",...h[_]),this.$=h[_];break;case 46:g.addPersonOrSystem("external_system_queue",...h[_]),this.$=h[_];break;case 47:g.addContainer("container",...h[_]),this.$=h[_];break;case 48:g.addContainer("container_db",...h[_]),this.$=h[_];break;case 49:g.addContainer("container_queue",...h[_]),this.$=h[_];break;case 50:g.addContainer("external_container",...h[_]),this.$=h[_];break;case 51:g.addContainer("external_container_db",...h[_]),this.$=h[_];break;case 52:g.addContainer("external_container_queue",...h[_]),this.$=h[_];break;case 53:g.addComponent("component",...h[_]),this.$=h[_];break;case 54:g.addComponent("component_db",...h[_]),this.$=h[_];break;case 55:g.addComponent("component_queue",...h[_]),this.$=h[_];break;case 56:g.addComponent("external_component",...h[_]),this.$=h[_];break;case 57:g.addComponent("external_component_db",...h[_]),this.$=h[_];break;case 58:g.addComponent("external_component_queue",...h[_]),this.$=h[_];break;case 60:g.addRel("rel",...h[_]),this.$=h[_];break;case 61:g.addRel("birel",...h[_]),this.$=h[_];break;case 62:g.addRel("rel_u",...h[_]),this.$=h[_];break;case 63:g.addRel("rel_d",...h[_]),this.$=h[_];break;case 64:g.addRel("rel_l",...h[_]),this.$=h[_];break;case 65:g.addRel("rel_r",...h[_]),this.$=h[_];break;case 66:g.addRel("rel_b",...h[_]),this.$=h[_];break;case 67:h[_].splice(0,1),g.addRel("rel",...h[_]),this.$=h[_];break;case 68:g.updateElStyle("update_el_style",...h[_]),this.$=h[_];break;case 69:g.updateRelStyle("update_rel_style",...h[_]),this.$=h[_];break;case 70:g.updateLayoutConfig("update_layout_config",...h[_]),this.$=h[_];break;case 71:this.$=[h[_]];break;case 72:h[_].unshift(h[_-1]),this.$=h[_];break;case 73:case 75:this.$=h[_].trim();break;case 74:let Ct={};Ct[h[_-1].trim()]=h[_].trim(),this.$=Ct;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:o,26:s,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:r,24:o,26:s,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:r,24:o,26:s,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:r,24:o,26:s,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:r,24:o,26:s,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{14:[1,74]},a(Tt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:e,36:i,37:n,38:u,39:d,40:f,41:y,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt}),a(Tt,[2,14]),a(Qt,[2,16],{12:[1,76]}),a(Tt,[2,36],{12:[1,77]}),a(Dt,[2,19]),a(Dt,[2,20]),{25:[1,78]},{27:[1,79]},a(Dt,[2,23]),{35:80,75:81,76:A,77:C,79:k,80:w},{35:86,75:81,76:A,77:C,79:k,80:w},{35:87,75:81,76:A,77:C,79:k,80:w},{35:88,75:81,76:A,77:C,79:k,80:w},{35:89,75:81,76:A,77:C,79:k,80:w},{35:90,75:81,76:A,77:C,79:k,80:w},{35:91,75:81,76:A,77:C,79:k,80:w},{35:92,75:81,76:A,77:C,79:k,80:w},{35:93,75:81,76:A,77:C,79:k,80:w},{35:94,75:81,76:A,77:C,79:k,80:w},{35:95,75:81,76:A,77:C,79:k,80:w},{35:96,75:81,76:A,77:C,79:k,80:w},{35:97,75:81,76:A,77:C,79:k,80:w},{35:98,75:81,76:A,77:C,79:k,80:w},{35:99,75:81,76:A,77:C,79:k,80:w},{35:100,75:81,76:A,77:C,79:k,80:w},{35:101,75:81,76:A,77:C,79:k,80:w},{35:102,75:81,76:A,77:C,79:k,80:w},{35:103,75:81,76:A,77:C,79:k,80:w},{35:104,75:81,76:A,77:C,79:k,80:w},a(T,[2,59]),{35:105,75:81,76:A,77:C,79:k,80:w},{35:106,75:81,76:A,77:C,79:k,80:w},{35:107,75:81,76:A,77:C,79:k,80:w},{35:108,75:81,76:A,77:C,79:k,80:w},{35:109,75:81,76:A,77:C,79:k,80:w},{35:110,75:81,76:A,77:C,79:k,80:w},{35:111,75:81,76:A,77:C,79:k,80:w},{35:112,75:81,76:A,77:C,79:k,80:w},{35:113,75:81,76:A,77:C,79:k,80:w},{35:114,75:81,76:A,77:C,79:k,80:w},{35:115,75:81,76:A,77:C,79:k,80:w},{20:116,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:C,79:k,80:w},{35:120,75:81,76:A,77:C,79:k,80:w},{35:121,75:81,76:A,77:C,79:k,80:w},{35:122,75:81,76:A,77:C,79:k,80:w},{35:123,75:81,76:A,77:C,79:k,80:w},{35:124,75:81,76:A,77:C,79:k,80:w},{35:125,75:81,76:A,77:C,79:k,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},a(Tt,[2,15]),a(Qt,[2,17],{21:22,19:130,22:t,23:r,24:o,26:s,28:l}),a(Tt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:o,26:s,28:l,34:e,36:i,37:n,38:u,39:d,40:f,41:y,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt}),a(Dt,[2,21]),a(Dt,[2,22]),a(T,[2,39]),a(se,[2,71],{75:81,35:132,76:A,77:C,79:k,80:w}),a(Mt,[2,73]),{78:[1,133]},a(Mt,[2,75]),a(Mt,[2,76]),a(T,[2,40]),a(T,[2,41]),a(T,[2,42]),a(T,[2,43]),a(T,[2,44]),a(T,[2,45]),a(T,[2,46]),a(T,[2,47]),a(T,[2,48]),a(T,[2,49]),a(T,[2,50]),a(T,[2,51]),a(T,[2,52]),a(T,[2,53]),a(T,[2,54]),a(T,[2,55]),a(T,[2,56]),a(T,[2,57]),a(T,[2,58]),a(T,[2,60]),a(T,[2,61]),a(T,[2,62]),a(T,[2,63]),a(T,[2,64]),a(T,[2,65]),a(T,[2,66]),a(T,[2,67]),a(T,[2,68]),a(T,[2,69]),a(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},a(At,[2,28]),a(At,[2,29]),a(At,[2,30]),a(At,[2,31]),a(At,[2,32]),a(At,[2,33]),a(At,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},a(Qt,[2,18]),a(Tt,[2,38]),a(se,[2,72]),a(Mt,[2,74]),a(T,[2,24]),a(T,[2,35]),a(qt,[2,25]),a(qt,[2,26],{12:[1,138]}),a(qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:p.__name(function(b,v){if(v.recoverable)this.trace(b);else{var E=new Error(b);throw E.hash=v,E}},"parseError"),parse:p.__name(function(b){var v=this,E=[0],g=[],R=[null],h=[],Pt=this.table,_="",Ct=0,le=0,Ce=2,oe=1,ke=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(b,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var we=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(N){E.length=E.length-2*N,R.length=R.length-N,h.length=h.length-N}p.__name(Te,"popStack");function ce(){var N;return N=g.pop()||D.lex()||oe,typeof N!="number"&&(N instanceof Array&&(g=N,N=g.pop()),N=v.symbols_[N]||N),N}p.__name(ce,"lex");for(var M,wt,Y,Jt,Ot={},Nt,Q,he,Yt;;){if(wt=E[E.length-1],this.defaultActions[wt]?Y=this.defaultActions[wt]:((M===null||typeof M>"u")&&(M=ce()),Y=Pt[wt]&&Pt[wt][M]),typeof Y>"u"||!Y.length||!Y[0]){var Zt="";Yt=[];for(Nt in Pt[wt])this.terminals_[Nt]&&Nt>Ce&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Ct+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const fe=require("./chunk-2GRJ4B5K.cjs"),q=require("./chunk-NSK5VX7P.cjs"),B=require("./chunk-I66GZJ75.cjs"),ue=require("./chunk-X3CZISLH.cjs"),p=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const Oe=require("../../../../../_virtual/index7.cjs"),jt=require("../../../../d3-selection/src/select.cjs");var Ft=(function(){var a=p.__name(function(xt,b,v,E){for(v=v||{},E=xt.length;E--;v[xt[E]]=b);return v},"o"),t=[1,24],r=[1,25],o=[1,26],s=[1,27],l=[1,28],e=[1,63],i=[1,64],n=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],x=[1,29],O=[1,30],S=[1,31],P=[1,32],L=[1,33],F=[1,34],G=[1,35],K=[1,36],J=[1,37],Z=[1,38],$=[1,39],tt=[1,40],et=[1,41],at=[1,42],nt=[1,43],it=[1,44],rt=[1,45],st=[1,46],lt=[1,47],ot=[1,48],ct=[1,50],ht=[1,51],ut=[1,52],dt=[1,53],_t=[1,54],ft=[1,55],pt=[1,56],yt=[1,57],gt=[1,58],mt=[1,59],bt=[1,60],Tt=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Dt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],C=[1,83],k=[1,84],w=[1,85],T=[12,14,42],se=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],At=[12,33],qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ht={trace:p.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:p.__name(function(b,v,E,g,R,h,Pt){var _=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[_-3]);break;case 19:g.setTitle(h[_].substring(6)),this.$=h[_].substring(6);break;case 20:g.setAccDescription(h[_].substring(15)),this.$=h[_].substring(15);break;case 21:this.$=h[_].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[_].trim(),g.setAccDescription(this.$);break;case 28:h[_].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 29:h[_].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 30:g.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 31:h[_].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[_]),this.$=h[_];break;case 32:g.addDeploymentNode("node",...h[_]),this.$=h[_];break;case 33:g.addDeploymentNode("nodeL",...h[_]),this.$=h[_];break;case 34:g.addDeploymentNode("nodeR",...h[_]),this.$=h[_];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[_]),this.$=h[_];break;case 40:g.addPersonOrSystem("external_person",...h[_]),this.$=h[_];break;case 41:g.addPersonOrSystem("system",...h[_]),this.$=h[_];break;case 42:g.addPersonOrSystem("system_db",...h[_]),this.$=h[_];break;case 43:g.addPersonOrSystem("system_queue",...h[_]),this.$=h[_];break;case 44:g.addPersonOrSystem("external_system",...h[_]),this.$=h[_];break;case 45:g.addPersonOrSystem("external_system_db",...h[_]),this.$=h[_];break;case 46:g.addPersonOrSystem("external_system_queue",...h[_]),this.$=h[_];break;case 47:g.addContainer("container",...h[_]),this.$=h[_];break;case 48:g.addContainer("container_db",...h[_]),this.$=h[_];break;case 49:g.addContainer("container_queue",...h[_]),this.$=h[_];break;case 50:g.addContainer("external_container",...h[_]),this.$=h[_];break;case 51:g.addContainer("external_container_db",...h[_]),this.$=h[_];break;case 52:g.addContainer("external_container_queue",...h[_]),this.$=h[_];break;case 53:g.addComponent("component",...h[_]),this.$=h[_];break;case 54:g.addComponent("component_db",...h[_]),this.$=h[_];break;case 55:g.addComponent("component_queue",...h[_]),this.$=h[_];break;case 56:g.addComponent("external_component",...h[_]),this.$=h[_];break;case 57:g.addComponent("external_component_db",...h[_]),this.$=h[_];break;case 58:g.addComponent("external_component_queue",...h[_]),this.$=h[_];break;case 60:g.addRel("rel",...h[_]),this.$=h[_];break;case 61:g.addRel("birel",...h[_]),this.$=h[_];break;case 62:g.addRel("rel_u",...h[_]),this.$=h[_];break;case 63:g.addRel("rel_d",...h[_]),this.$=h[_];break;case 64:g.addRel("rel_l",...h[_]),this.$=h[_];break;case 65:g.addRel("rel_r",...h[_]),this.$=h[_];break;case 66:g.addRel("rel_b",...h[_]),this.$=h[_];break;case 67:h[_].splice(0,1),g.addRel("rel",...h[_]),this.$=h[_];break;case 68:g.updateElStyle("update_el_style",...h[_]),this.$=h[_];break;case 69:g.updateRelStyle("update_rel_style",...h[_]),this.$=h[_];break;case 70:g.updateLayoutConfig("update_layout_config",...h[_]),this.$=h[_];break;case 71:this.$=[h[_]];break;case 72:h[_].unshift(h[_-1]),this.$=h[_];break;case 73:case 75:this.$=h[_].trim();break;case 74:let Ct={};Ct[h[_-1].trim()]=h[_].trim(),this.$=Ct;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:o,26:s,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:r,24:o,26:s,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:r,24:o,26:s,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:r,24:o,26:s,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:r,24:o,26:s,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{14:[1,74]},a(Tt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:e,36:i,37:n,38:u,39:d,40:f,41:y,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt}),a(Tt,[2,14]),a(Qt,[2,16],{12:[1,76]}),a(Tt,[2,36],{12:[1,77]}),a(Dt,[2,19]),a(Dt,[2,20]),{25:[1,78]},{27:[1,79]},a(Dt,[2,23]),{35:80,75:81,76:A,77:C,79:k,80:w},{35:86,75:81,76:A,77:C,79:k,80:w},{35:87,75:81,76:A,77:C,79:k,80:w},{35:88,75:81,76:A,77:C,79:k,80:w},{35:89,75:81,76:A,77:C,79:k,80:w},{35:90,75:81,76:A,77:C,79:k,80:w},{35:91,75:81,76:A,77:C,79:k,80:w},{35:92,75:81,76:A,77:C,79:k,80:w},{35:93,75:81,76:A,77:C,79:k,80:w},{35:94,75:81,76:A,77:C,79:k,80:w},{35:95,75:81,76:A,77:C,79:k,80:w},{35:96,75:81,76:A,77:C,79:k,80:w},{35:97,75:81,76:A,77:C,79:k,80:w},{35:98,75:81,76:A,77:C,79:k,80:w},{35:99,75:81,76:A,77:C,79:k,80:w},{35:100,75:81,76:A,77:C,79:k,80:w},{35:101,75:81,76:A,77:C,79:k,80:w},{35:102,75:81,76:A,77:C,79:k,80:w},{35:103,75:81,76:A,77:C,79:k,80:w},{35:104,75:81,76:A,77:C,79:k,80:w},a(T,[2,59]),{35:105,75:81,76:A,77:C,79:k,80:w},{35:106,75:81,76:A,77:C,79:k,80:w},{35:107,75:81,76:A,77:C,79:k,80:w},{35:108,75:81,76:A,77:C,79:k,80:w},{35:109,75:81,76:A,77:C,79:k,80:w},{35:110,75:81,76:A,77:C,79:k,80:w},{35:111,75:81,76:A,77:C,79:k,80:w},{35:112,75:81,76:A,77:C,79:k,80:w},{35:113,75:81,76:A,77:C,79:k,80:w},{35:114,75:81,76:A,77:C,79:k,80:w},{35:115,75:81,76:A,77:C,79:k,80:w},{20:116,29:49,30:61,32:62,34:e,36:i,37:n,38:u,39:d,40:f,41:y,43:23,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:C,79:k,80:w},{35:120,75:81,76:A,77:C,79:k,80:w},{35:121,75:81,76:A,77:C,79:k,80:w},{35:122,75:81,76:A,77:C,79:k,80:w},{35:123,75:81,76:A,77:C,79:k,80:w},{35:124,75:81,76:A,77:C,79:k,80:w},{35:125,75:81,76:A,77:C,79:k,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},a(Tt,[2,15]),a(Qt,[2,17],{21:22,19:130,22:t,23:r,24:o,26:s,28:l}),a(Tt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:o,26:s,28:l,34:e,36:i,37:n,38:u,39:d,40:f,41:y,44:x,45:O,46:S,47:P,48:L,49:F,50:G,51:K,52:J,53:Z,54:$,55:tt,56:et,57:at,58:nt,59:it,60:rt,61:st,62:lt,63:ot,64:ct,65:ht,66:ut,67:dt,68:_t,69:ft,70:pt,71:yt,72:gt,73:mt,74:bt}),a(Dt,[2,21]),a(Dt,[2,22]),a(T,[2,39]),a(se,[2,71],{75:81,35:132,76:A,77:C,79:k,80:w}),a(Mt,[2,73]),{78:[1,133]},a(Mt,[2,75]),a(Mt,[2,76]),a(T,[2,40]),a(T,[2,41]),a(T,[2,42]),a(T,[2,43]),a(T,[2,44]),a(T,[2,45]),a(T,[2,46]),a(T,[2,47]),a(T,[2,48]),a(T,[2,49]),a(T,[2,50]),a(T,[2,51]),a(T,[2,52]),a(T,[2,53]),a(T,[2,54]),a(T,[2,55]),a(T,[2,56]),a(T,[2,57]),a(T,[2,58]),a(T,[2,60]),a(T,[2,61]),a(T,[2,62]),a(T,[2,63]),a(T,[2,64]),a(T,[2,65]),a(T,[2,66]),a(T,[2,67]),a(T,[2,68]),a(T,[2,69]),a(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},a(At,[2,28]),a(At,[2,29]),a(At,[2,30]),a(At,[2,31]),a(At,[2,32]),a(At,[2,33]),a(At,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},a(Qt,[2,18]),a(Tt,[2,38]),a(se,[2,72]),a(Mt,[2,74]),a(T,[2,24]),a(T,[2,35]),a(qt,[2,25]),a(qt,[2,26],{12:[1,138]}),a(qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:p.__name(function(b,v){if(v.recoverable)this.trace(b);else{var E=new Error(b);throw E.hash=v,E}},"parseError"),parse:p.__name(function(b){var v=this,E=[0],g=[],R=[null],h=[],Pt=this.table,_="",Ct=0,le=0,Ce=2,oe=1,ke=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(b,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var we=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(N){E.length=E.length-2*N,R.length=R.length-N,h.length=h.length-N}p.__name(Te,"popStack");function ce(){var N;return N=g.pop()||D.lex()||oe,typeof N!="number"&&(N instanceof Array&&(g=N,N=g.pop()),N=v.symbols_[N]||N),N}p.__name(ce,"lex");for(var M,wt,Y,Jt,Ot={},Nt,Q,he,Yt;;){if(wt=E[E.length-1],this.defaultActions[wt]?Y=this.defaultActions[wt]:((M===null||typeof M>"u")&&(M=ce()),Y=Pt[wt]&&Pt[wt][M]),typeof Y>"u"||!Y.length||!Y[0]){var Zt="";Yt=[];for(Nt in Pt[wt])this.terminals_[Nt]&&Nt>Ce&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Ct+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+Yt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Zt="Parse error on line "+(Ct+1)+": Unexpected "+(M==oe?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Kt,expected:Yt})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+wt+", token: "+M);switch(Y[0]){case 1:E.push(M),R.push(D.yytext),h.push(D.yylloc),E.push(Y[1]),M=null,le=D.yyleng,_=D.yytext,Ct=D.yylineno,Kt=D.yylloc;break;case 2:if(Q=this.productions_[Y[1]][1],Ot.$=R[R.length-Q],Ot._$={first_line:h[h.length-(Q||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(Q||1)].first_column,last_column:h[h.length-1].last_column},we&&(Ot._$.range=[h[h.length-(Q||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(Ot,[_,le,Ct,kt.yy,Y[1],R,h].concat(ke)),typeof Jt<"u")return Jt;Q&&(E=E.slice(0,-1*Q*2),R=R.slice(0,-1*Q),h=h.slice(0,-1*Q)),E.push(this.productions_[Y[1]][0]),R.push(Ot.$),h.push(Ot._$),he=Pt[E[E.length-2]][E[E.length-1]],E.push(he);break;case 3:return!0}}return!0},"parse")},Ae=(function(){var xt={EOF:1,parseError:p.__name(function(v,E){if(this.yy.parser)this.yy.parser.parseError(v,E);else throw new Error(v)},"parseError"),setInput:p.__name(function(b,v){return this.yy=v||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:p.__name(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var v=b.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:p.__name(function(b){var v=b.length,E=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===g.length?this.yylloc.first_column:0)+g[g.length-E.length].length-E[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:p.__name(function(){return this._more=!0,this},"more"),reject:p.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else 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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p.__name(function(b){this.unput(this.match.slice(b))},"less"),pastInput:p.__name(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p.__name(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p.__name(function(){var b=this.pastInput(),v=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
@@ -5,7 +5,7 @@ import { log as fe } from "./chunk-X3CZISLH.es.js";
5
5
  import { __name as y } from "./chunk-Y2CYZVJY.es.js";
6
6
  import "../../../../d3-transition/src/selection/index.es.js";
7
7
  import "../../../../d3-zoom/src/transform.es.js";
8
- import { d as je } from "../../../../../_virtual/index.es6.js";
8
+ import { d as je } from "../../../../../_virtual/index.es7.js";
9
9
  import jt from "../../../../d3-selection/src/select.es.js";
10
10
  var Ft = (function() {
11
11
  var i = /* @__PURE__ */ y(function(_t, x, v, E) {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./chunk-I66GZJ75.cjs"),n=require("./chunk-Y2CYZVJY.cjs"),o=require("../../../../../_virtual/index6.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const l=require("../../../../d3-selection/src/select.cjs");var d=n.__name((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)e.attr(a,t.attrs[a]);return t.class&&e.attr("class",t.class),e},"drawRect"),x=n.__name((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};d(r,e).lower()},"drawBackgroundRect"),m=n.__name((r,t)=>{const e=t.text.replace(c.lineBreakRegex," "),a=r.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),a},"drawText"),p=n.__name((r,t,e,a)=>{const s=r.append("image");s.attr("x",t),s.attr("y",e);const i=o.distExports.sanitizeUrl(a);s.attr("xlink:href",i)},"drawImage"),y=n.__name((r,t,e,a)=>{const s=r.append("use");s.attr("x",t),s.attr("y",e);const i=o.distExports.sanitizeUrl(a);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),g=n.__name(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),h=n.__name(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),f=n.__name(()=>{let r=l.default(".mermaidTooltip");return r.empty()&&(r=l.default("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");exports.createTooltip=f;exports.drawBackgroundRect=x;exports.drawEmbeddedImage=y;exports.drawImage=p;exports.drawRect=d;exports.drawText=m;exports.getNoteRect=g;exports.getTextObj=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./chunk-I66GZJ75.cjs"),n=require("./chunk-Y2CYZVJY.cjs"),o=require("../../../../../_virtual/index7.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const l=require("../../../../d3-selection/src/select.cjs");var d=n.__name((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)e.attr(a,t.attrs[a]);return t.class&&e.attr("class",t.class),e},"drawRect"),x=n.__name((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};d(r,e).lower()},"drawBackgroundRect"),m=n.__name((r,t)=>{const e=t.text.replace(c.lineBreakRegex," "),a=r.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),a},"drawText"),p=n.__name((r,t,e,a)=>{const s=r.append("image");s.attr("x",t),s.attr("y",e);const i=o.distExports.sanitizeUrl(a);s.attr("xlink:href",i)},"drawImage"),y=n.__name((r,t,e,a)=>{const s=r.append("use");s.attr("x",t),s.attr("y",e);const i=o.distExports.sanitizeUrl(a);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),g=n.__name(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),h=n.__name(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),f=n.__name(()=>{let r=l.default(".mermaidTooltip");return r.empty()&&(r=l.default("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");exports.createTooltip=f;exports.drawBackgroundRect=x;exports.drawEmbeddedImage=y;exports.drawImage=p;exports.drawRect=d;exports.drawText=m;exports.getNoteRect=g;exports.getTextObj=h;
2
2
  //# sourceMappingURL=chunk-2GRJ4B5K.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { lineBreakRegex as d } from "./chunk-I66GZJ75.es.js";
2
2
  import { __name as a } from "./chunk-Y2CYZVJY.es.js";
3
- import { d as l } from "../../../../../_virtual/index.es6.js";
3
+ import { d as l } from "../../../../../_virtual/index.es7.js";
4
4
  import "../../../../d3-transition/src/selection/index.es.js";
5
5
  import "../../../../d3-zoom/src/transform.es.js";
6
6
  import o from "../../../../d3-selection/src/select.es.js";
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./chunk-I66GZJ75.cjs"),_=require("./chunk-X3CZISLH.cjs"),s=require("./chunk-Y2CYZVJY.cjs"),K=require("../../../../../_virtual/index6.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const S=require("../../../../es-toolkit/dist/compat/function/memoize.cjs"),Q=require("../../../../es-toolkit/dist/compat/object/merge.cjs"),$=require("../../../../d3-shape/src/curve/step.cjs"),ee=require("../../../../d3-shape/src/curve/natural.cjs"),L=require("../../../../d3-shape/src/curve/monotone.cjs"),te=require("../../../../d3-shape/src/curve/linearClosed.cjs"),ne=require("../../../../d3-shape/src/curve/linear.cjs"),re=require("../../../../d3-shape/src/curve/catmullRom.cjs"),ie=require("../../../../d3-shape/src/curve/catmullRomOpen.cjs"),ae=require("../../../../d3-shape/src/curve/catmullRomClosed.cjs"),oe=require("../../../../d3-shape/src/curve/cardinal.cjs"),se=require("../../../../d3-shape/src/curve/cardinalOpen.cjs"),ce=require("../../../../d3-shape/src/curve/cardinalClosed.cjs"),le=require("../../../../d3-shape/src/curve/bundle.cjs"),F=require("../../../../d3-shape/src/curve/bump.cjs"),ue=require("../../../../d3-shape/src/curve/basisOpen.cjs"),de=require("../../../../d3-shape/src/curve/basisClosed.cjs"),he=require("../../../../d3-shape/src/curve/basis.cjs"),fe=require("../../../../d3-selection/src/select.cjs");var D="​",me={curveBasis:he.default,curveBasisClosed:de.default,curveBasisOpen:ue.default,curveBumpX:F.bumpX,curveBumpY:F.bumpY,curveBundle:le.default,curveCardinalClosed:ce.default,curveCardinalOpen:se.default,curveCardinal:oe.default,curveCatmullRomClosed:ae.default,curveCatmullRomOpen:ie.default,curveCatmullRom:re.default,curveLinear:ne.default,curveLinearClosed:te.default,curveMonotoneX:L.monotoneX,curveMonotoneY:L.monotoneY,curveNatural:ee.default,curveStep:$.default,curveStepAfter:$.stepAfter,curveStepBefore:$.stepBefore},ge=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ve=s.__name(function(t,e){const r=O(t,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const o=r.map(l=>l.args);u.sanitizeDirective(o),n=u.assignWithDepth_default(n,[...o])}else n=r.args;if(!n)return;let i=u.detectType(t,e);const a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),O=s.__name(function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${ge.source})(?=[}][%]{2}).*
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./chunk-I66GZJ75.cjs"),_=require("./chunk-X3CZISLH.cjs"),s=require("./chunk-Y2CYZVJY.cjs"),K=require("../../../../../_virtual/index7.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const S=require("../../../../es-toolkit/dist/compat/function/memoize.cjs"),Q=require("../../../../es-toolkit/dist/compat/object/merge.cjs"),$=require("../../../../d3-shape/src/curve/step.cjs"),ee=require("../../../../d3-shape/src/curve/natural.cjs"),L=require("../../../../d3-shape/src/curve/monotone.cjs"),te=require("../../../../d3-shape/src/curve/linearClosed.cjs"),ne=require("../../../../d3-shape/src/curve/linear.cjs"),re=require("../../../../d3-shape/src/curve/catmullRom.cjs"),ie=require("../../../../d3-shape/src/curve/catmullRomOpen.cjs"),ae=require("../../../../d3-shape/src/curve/catmullRomClosed.cjs"),oe=require("../../../../d3-shape/src/curve/cardinal.cjs"),se=require("../../../../d3-shape/src/curve/cardinalOpen.cjs"),ce=require("../../../../d3-shape/src/curve/cardinalClosed.cjs"),le=require("../../../../d3-shape/src/curve/bundle.cjs"),F=require("../../../../d3-shape/src/curve/bump.cjs"),ue=require("../../../../d3-shape/src/curve/basisOpen.cjs"),de=require("../../../../d3-shape/src/curve/basisClosed.cjs"),he=require("../../../../d3-shape/src/curve/basis.cjs"),fe=require("../../../../d3-selection/src/select.cjs");var D="​",me={curveBasis:he.default,curveBasisClosed:de.default,curveBasisOpen:ue.default,curveBumpX:F.bumpX,curveBumpY:F.bumpY,curveBundle:le.default,curveCardinalClosed:ce.default,curveCardinalOpen:se.default,curveCardinal:oe.default,curveCatmullRomClosed:ae.default,curveCatmullRomOpen:ie.default,curveCatmullRom:re.default,curveLinear:ne.default,curveLinearClosed:te.default,curveMonotoneX:L.monotoneX,curveMonotoneY:L.monotoneY,curveNatural:ee.default,curveStep:$.default,curveStepAfter:$.stepAfter,curveStepBefore:$.stepBefore},ge=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ve=s.__name(function(t,e){const r=O(t,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const o=r.map(l=>l.args);u.sanitizeDirective(o),n=u.assignWithDepth_default(n,[...o])}else n=r.args;if(!n)return;let i=u.detectType(t,e);const a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),O=s.__name(function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${ge.source})(?=[}][%]{2}).*
2
2
  `,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),_.log.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n;const i=[];for(;(n=u.directiveRegex.exec(t))!==null;)if(n.index===u.directiveRegex.lastIndex&&u.directiveRegex.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){const a=n[1]?n[1]:n[2],o=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:o})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(r){return _.log.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),_e=s.__name(function(t){return t.replace(u.directiveRegex,"")},"removeDirectives"),ye=s.__name(function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");function C(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return me[r]??e}s.__name(C,"interpolateToCurve");function H(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?K.distExports.sanitizeUrl(r):r}s.__name(H,"formatUrl");var xe=s.__name((t,...e)=>{const r=t.split("."),n=r.length-1,i=r[n];let a=window;for(let o=0;o<n;o++)if(a=a[r[o]],!a){_.log.error(`Function name: ${t} not found in window`);return}a[i](...e)},"runFunc");function T(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}s.__name(T,"distance");function N(t){let e,r=0;t.forEach(i=>{r+=T(i,e),e=i});const n=r/2;return E(t,n)}s.__name(N,"traverseEdge");function z(t){return t.length===1?t[0]:N(t)}s.__name(z,"calcLabelPosition");var A=s.__name((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),E=s.__name((t,e)=>{let r,n=e;for(const i of t){if(r){const a=T(i,r);if(a===0)return r;if(a<n)n-=a;else{const o=n/a;if(o<=0)return r;if(o>=1)return{x:i.x,y:i.y};if(o>0&&o<1)return{x:A((1-o)*r.x+o*i.x,5),y:A((1-o)*r.y+o*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),pe=s.__name((t,e,r)=>{_.log.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=E(e,25),a=t?10:5,o=Math.atan2(e[0].y-i.y,e[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(o)*a+(e[0].x+i.x)/2,l.y=-Math.cos(o)*a+(e[0].y+i.y)/2,l},"calcCardinalityPosition");function j(t,e,r){const n=structuredClone(r);_.log.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();const i=25+t,a=E(n,i),o=10+t*.5,l=Math.atan2(n[0].y-a.y,n[0].x-a.x),c={x:0,y:0};return e==="start_left"?(c.x=Math.sin(l+Math.PI)*o+(n[0].x+a.x)/2,c.y=-Math.cos(l+Math.PI)*o+(n[0].y+a.y)/2):e==="end_right"?(c.x=Math.sin(l-Math.PI)*o+(n[0].x+a.x)/2-5,c.y=-Math.cos(l-Math.PI)*o+(n[0].y+a.y)/2-5):e==="end_left"?(c.x=Math.sin(l)*o+(n[0].x+a.x)/2-5,c.y=-Math.cos(l)*o+(n[0].y+a.y)/2-5):(c.x=Math.sin(l)*o+(n[0].x+a.x)/2,c.y=-Math.cos(l)*o+(n[0].y+a.y)/2),c}s.__name(j,"calcTerminalLabelPosition");function I(t){let e="",r="";for(const n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}s.__name(I,"getStylesFromArray");var R=0,k=s.__name(()=>(R++,"id-"+Math.random().toString(36).substr(2,12)+"-"+R),"generateId");function U(t){let e="";const r="0123456789abcdef",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}s.__name(U,"makeRandomHex");var Y=s.__name(t=>U(t.length),"random"),be=s.__name(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Me=s.__name(function(t,e){const r=e.text.replace(u.common_default.lineBreakRegex," "),[,n]=w(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);const a=i.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),i},"drawSimpleText"),X=S.memoize((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),u.common_default.lineBreakRegex.test(t)))return t;const n=t.split(" ").filter(Boolean),i=[];let a="";return n.forEach((o,l)=>{const c=g(`${o} `,r),d=g(a,r);if(c>e){const{hyphenatedStrings:v,remainingWord:h}=we(o,e,"-",r);i.push(a,...v),a=h}else d+c>=e?(i.push(a),a=o):a=[a,o].filter(Boolean).join(" ");l+1===n.length&&i.push(a)}),i.filter(o=>o!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),we=S.memoize((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...t],a=[];let o="";return i.forEach((l,c)=>{const d=`${o}${l}`;if(g(d,n)>=e){const x=c+1,v=i.length===x,h=`${d}${r}`;a.push(v?d:h),o=""}else o=d}),{hyphenatedStrings:a,remainingWord:o}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function W(t,e){return M(t,e).height}s.__name(W,"calculateTextHeight");function g(t,e){return M(t,e).width}s.__name(g,"calculateTextWidth");var M=S.memoize((t,e)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,a]=w(r),o=["sans-serif",n],l=t.split(u.common_default.lineBreakRegex),c=[],d=fe.default("body");if(!d.remove)return{width:0,height:0,lineHeight:0};const y=d.append("svg");for(const v of o){let h=0;const f={width:0,height:0,lineHeight:0};for(const V of l){const P=be();P.text=V||D;const q=Me(y,P).style("font-size",a).style("font-weight",i).style("font-family",v),p=(q._groups||q)[0][0].getBBox();if(p.width===0&&p.height===0)throw new Error("svg element not in render tree");f.width=Math.round(Math.max(f.width,p.width)),h=Math.round(p.height),f.height+=h,f.lineHeight=Math.round(Math.max(f.lineHeight,h))}c.push(f)}y.remove();const x=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[x]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),m,$e=(m=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},s.__name(m,"InitIDGenerator"),m),b,Se=s.__name(function(t){return b=b||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),b.innerHTML=t,unescape(b.textContent)},"entityDecode");function Z(t){return"str"in t}s.__name(Z,"isDetailedError");var Ce=s.__name((t,e,r,n)=>{if(!n)return;const i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),w=s.__name(t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function B(t,e){return Q.merge({},t,e)}s.__name(B,"cleanAndMerge");var Te={assignWithDepth:u.assignWithDepth_default,wrapLabel:X,calculateTextHeight:W,calculateTextWidth:g,calculateTextDimensions:M,cleanAndMerge:B,detectInit:ve,detectDirective:O,isSubstringInArray:ye,interpolateToCurve:C,calcLabelPosition:z,calcCardinalityPosition:pe,calcTerminalLabelPosition:j,formatUrl:H,getStylesFromArray:I,generateId:k,random:Y,runFunc:xe,entityDecode:Se,insertTitle:Ce,isLabelCoordinateInPath:G,parseFontSize:w,InitIDGenerator:$e},Ee=s.__name(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),e},"encodeEntities"),Ie=s.__name(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),We=s.__name((t,e,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function J(t){return t??null}s.__name(J,"handleUndefinedAttr");function G(t,e){const r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return i.includes(r.toString())||i.includes(n.toString())}s.__name(G,"isLabelCoordinateInPath");exports.ZERO_WIDTH_SPACE=D;exports.calculateTextDimensions=M;exports.calculateTextHeight=W;exports.calculateTextWidth=g;exports.cleanAndMerge=B;exports.decodeEntities=Ie;exports.encodeEntities=Ee;exports.generateId=k;exports.getEdgeId=We;exports.getStylesFromArray=I;exports.handleUndefinedAttr=J;exports.interpolateToCurve=C;exports.isDetailedError=Z;exports.parseFontSize=w;exports.random=Y;exports.removeDirectives=_e;exports.utils_default=Te;exports.wrapLabel=X;
3
3
  //# sourceMappingURL=chunk-NSK5VX7P.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { common_default as b, assignWithDepth_default as E, directiveRegex as $, sanitizeDirective as X, detectType as Y } from "./chunk-I66GZJ75.es.js";
2
2
  import { log as g } from "./chunk-X3CZISLH.es.js";
3
3
  import { __name as s } from "./chunk-Y2CYZVJY.es.js";
4
- import { d as G } from "../../../../../_virtual/index.es6.js";
4
+ import { d as G } from "../../../../../_virtual/index.es7.js";
5
5
  import "../../../../d3-transition/src/selection/index.es.js";
6
6
  import "../../../../d3-zoom/src/transform.es.js";
7
7
  import { memoize as w } from "../../../../es-toolkit/dist/compat/function/memoize.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-GF5L2VYU.cjs"),i=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index6.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var u={parser:r.classDiagram_default,get db(){return new r.ClassDB},renderer:r.classRenderer_v3_unified_default,styles:r.styles_default,init:i.__name(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-GF5L2VYU.cjs"),i=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var u={parser:r.classDiagram_default,get db(){return new r.ClassDB},renderer:r.classRenderer_v3_unified_default,styles:r.styles_default,init:i.__name(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=u;
2
2
  //# sourceMappingURL=classDiagram-JCYQIIEL.cjs.map
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.es.js";
5
5
  import "./chunk-I66GZJ75.es.js";
6
6
  import "../../../../../_virtual/dayjs.min.es.js";
7
7
  import "./chunk-J7OUQ5F2.es.js";
8
- import "../../../../../_virtual/index.es6.js";
8
+ import "../../../../../_virtual/index.es7.js";
9
9
  import "./chunk-7Z6QIM7H.es.js";
10
10
  import "./chunk-QR6OTTB3.es.js";
11
11
  import "./chunk-7BUUIJ7U.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-GF5L2VYU.cjs"),i=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index6.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var u={parser:r.classDiagram_default,get db(){return new r.ClassDB},renderer:r.classRenderer_v3_unified_default,styles:r.styles_default,init:i.__name(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-GF5L2VYU.cjs"),i=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var u={parser:r.classDiagram_default,get db(){return new r.ClassDB},renderer:r.classRenderer_v3_unified_default,styles:r.styles_default,init:i.__name(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=u;
2
2
  //# sourceMappingURL=classDiagram-v2-OCEON4UE.cjs.map
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.es.js";
5
5
  import "./chunk-I66GZJ75.es.js";
6
6
  import "../../../../../_virtual/dayjs.min.es.js";
7
7
  import "./chunk-J7OUQ5F2.es.js";
8
- import "../../../../../_virtual/index.es6.js";
8
+ import "../../../../../_virtual/index.es7.js";
9
9
  import "./chunk-7Z6QIM7H.es.js";
10
10
  import "./chunk-QR6OTTB3.es.js";
11
11
  import "./chunk-7BUUIJ7U.es.js";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./chunk-RYQCIY6F.cjs"),M=require("./chunk-7Z6QIM7H.cjs"),E=require("./chunk-QR6OTTB3.cjs"),G=require("./chunk-I66GZJ75.cjs"),b=require("./chunk-Y2CYZVJY.cjs");require("./chunk-7BUUIJ7U.cjs");const q=require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");const c=require("./chunk-X3CZISLH.cjs");require("./chunk-NSK5VX7P.cjs");const D=require("../../../../dagre-d3-es/src/graphlib/graph.cjs"),O=require("../../../../dagre-d3-es/src/dagre/layout.cjs");require("../../../../dagre-d3-es/src/dagre/rank/network-simplex.cjs");const R=require("../../../../dagre-d3-es/src/graphlib/json.cjs");var P=b.__name((o,t,f)=>Math.max(t,Math.min(f,o)),"clamp"),k=b.__name((o="TB")=>{switch(o){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),J=b.__name(o=>o==="flowchart"||o==="flowchart-v2"||o==="stateDiagram","shouldMergeSelfLoopSegments"),Y=b.__name((o,t,f,y,a)=>{const r=[],s=new Set;if(f.forEach(({start:i,end:n})=>{i!==y&&s.add(i),n!==y&&s.add(n)}),s.forEach(i=>{const n=o.node(i);typeof n?.x=="number"&&typeof n?.y=="number"&&r.push(n)}),r.length===0&&f.forEach(({edge:i})=>{(i.points??[]).forEach(n=>{typeof n?.x=="number"&&typeof n?.y=="number"&&r.push(n)})}),r.length===0)return k(a);const g=r.reduce((i,n)=>({x:i.x+n.x/r.length,y:i.y+n.y/r.length}),{x:0,y:0}),u=g.x-t.x,l=g.y-t.y;return Math.abs(u)>Math.abs(l)?u>0?"right":"left":Math.abs(l)>0?l>0?"bottom":"top":k(a)},"getSelfLoopSide"),A=b.__name((o,t="top",f=0,y=0)=>{const a=o.x,r=o.y-f,s=o.width/2,g=o.height/2,u=Math.max(36,Math.min(100,o.width*.8)),l=P(Math.max(y,o.width*.35),36,u),i=P(Math.min(o.width,o.height)*.45,24,48);switch(t){case"bottom":{const n=r+g;return[{x:a-l/2,y:n},{x:a-l/2,y:n+i},{x:a+l/2,y:n+i},{x:a+l/2,y:n}]}case"right":{const n=a+s;return[{x:n,y:r-l/2},{x:n+i,y:r-l/2},{x:n+i,y:r+l/2},{x:n,y:r+l/2}]}case"left":{const n=a-s;return[{x:n,y:r-l/2},{x:n-i,y:r-l/2},{x:n-i,y:r+l/2},{x:n,y:r+l/2}]}case"top":default:{const n=r-g;return[{x:a-l/2,y:n},{x:a-l/2,y:n-i},{x:a+l/2,y:n-i},{x:a+l/2,y:n}]}}},"getSelfLoopPoints"),v=b.__name((o,t,f="top",y=0,a={})=>{const s=o.x,g=o.y-y,u=a.width??0,l=a.height??0;switch(f){case"bottom":return{x:s,y:Math.max(...t.map(i=>i.y))+l/2+4};case"right":return{x:Math.max(...t.map(i=>i.x))+u/2+4,y:g};case"left":return{x:Math.min(...t.map(i=>i.x))-u/2-4,y:g};case"top":default:return{x:s,y:Math.min(...t.map(i=>i.y))-l/2-4}}},"getSelfLoopLabelPosition"),C=b.__name((o,t=0,{mergeSelfLoops:f=!0}={})=>{const y=new Map,a=[],r=o.graph()?.rankdir;return o.edges().forEach(s=>{const g=o.edge(s);if(f&&g.selfLoop){const u=g.selfLoop.id;y.has(u)||y.set(u,[]),y.get(u).push({edge:g,start:s.v,end:s.w})}else a.push({edge:g,start:s.v,end:s.w})}),y.forEach(s=>{if(s.length!==3){s.forEach(N=>a.push(N));return}s.sort((N,d)=>N.edge.selfLoop.order-d.edge.selfLoop.order);const[g,u,l]=s,i=g.edge.originalEdge??u.edge.originalEdge??l.edge.originalEdge??u.edge,n=o.node(i.start);if(!n){s.forEach(N=>a.push(N));return}const p={width:u.edge.width,height:u.edge.height},m=Y(o,n,s,i.start,r),L=A(n,m,t,p.width??0),X=v(n,L,m,t,p),S={...u.edge,...i,id:i.id,points:L,start:i.start,end:i.end,x:X.x,y:X.y,width:p.width,height:p.height,labelStyle:u.edge.labelStyle,fromCluster:g.edge.fromCluster??u.edge.fromCluster??l.edge.fromCluster,toCluster:g.edge.toCluster??u.edge.toCluster??l.edge.toCluster};delete S.selfLoop,delete S.originalEdge,a.push({edge:S,start:S.start,end:S.end})}),a},"getEdgesToRender"),T=b.__name(async(o,t,f,y,a,r)=>{c.log.warn("Graph in recursive render:XAX",R.write(t),a);const s=t.graph().rankdir;c.log.trace("Dir in recursive render - dir:",s);const g=o.insert("g").attr("class","root");t.nodes()?c.log.info("Recursive render XXX",t.nodes()):c.log.info("No nodes found for",t),t.edges().length>0&&c.log.info("Recursive edges",t.edge(t.edges()[0]));const u=g.insert("g").attr("class","clusters"),l=g.insert("g").attr("class","edgePaths"),i=g.insert("g").attr("class","edgeLabels"),n=g.insert("g").attr("class","nodes"),p=J(f);await Promise.all(t.nodes().map(async function(d){const e=t.node(d);if(a!==void 0){const h=JSON.parse(JSON.stringify(a.clusterData));c.log.trace(`Setting data for parent cluster XXX
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./chunk-RYQCIY6F.cjs"),M=require("./chunk-7Z6QIM7H.cjs"),E=require("./chunk-QR6OTTB3.cjs"),G=require("./chunk-I66GZJ75.cjs"),b=require("./chunk-Y2CYZVJY.cjs");require("./chunk-7BUUIJ7U.cjs");const q=require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");const c=require("./chunk-X3CZISLH.cjs");require("./chunk-NSK5VX7P.cjs");const D=require("../../../../dagre-d3-es/src/graphlib/graph.cjs"),O=require("../../../../dagre-d3-es/src/dagre/layout.cjs");require("../../../../dagre-d3-es/src/dagre/rank/network-simplex.cjs");const R=require("../../../../dagre-d3-es/src/graphlib/json.cjs");var P=b.__name((o,t,f)=>Math.max(t,Math.min(f,o)),"clamp"),k=b.__name((o="TB")=>{switch(o){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),J=b.__name(o=>o==="flowchart"||o==="flowchart-v2"||o==="stateDiagram","shouldMergeSelfLoopSegments"),Y=b.__name((o,t,f,y,a)=>{const r=[],s=new Set;if(f.forEach(({start:i,end:n})=>{i!==y&&s.add(i),n!==y&&s.add(n)}),s.forEach(i=>{const n=o.node(i);typeof n?.x=="number"&&typeof n?.y=="number"&&r.push(n)}),r.length===0&&f.forEach(({edge:i})=>{(i.points??[]).forEach(n=>{typeof n?.x=="number"&&typeof n?.y=="number"&&r.push(n)})}),r.length===0)return k(a);const g=r.reduce((i,n)=>({x:i.x+n.x/r.length,y:i.y+n.y/r.length}),{x:0,y:0}),u=g.x-t.x,l=g.y-t.y;return Math.abs(u)>Math.abs(l)?u>0?"right":"left":Math.abs(l)>0?l>0?"bottom":"top":k(a)},"getSelfLoopSide"),A=b.__name((o,t="top",f=0,y=0)=>{const a=o.x,r=o.y-f,s=o.width/2,g=o.height/2,u=Math.max(36,Math.min(100,o.width*.8)),l=P(Math.max(y,o.width*.35),36,u),i=P(Math.min(o.width,o.height)*.45,24,48);switch(t){case"bottom":{const n=r+g;return[{x:a-l/2,y:n},{x:a-l/2,y:n+i},{x:a+l/2,y:n+i},{x:a+l/2,y:n}]}case"right":{const n=a+s;return[{x:n,y:r-l/2},{x:n+i,y:r-l/2},{x:n+i,y:r+l/2},{x:n,y:r+l/2}]}case"left":{const n=a-s;return[{x:n,y:r-l/2},{x:n-i,y:r-l/2},{x:n-i,y:r+l/2},{x:n,y:r+l/2}]}default:{const n=r-g;return[{x:a-l/2,y:n},{x:a-l/2,y:n-i},{x:a+l/2,y:n-i},{x:a+l/2,y:n}]}}},"getSelfLoopPoints"),v=b.__name((o,t,f="top",y=0,a={})=>{const s=o.x,g=o.y-y,u=a.width??0,l=a.height??0;switch(f){case"bottom":return{x:s,y:Math.max(...t.map(i=>i.y))+l/2+4};case"right":return{x:Math.max(...t.map(i=>i.x))+u/2+4,y:g};case"left":return{x:Math.min(...t.map(i=>i.x))-u/2-4,y:g};default:return{x:s,y:Math.min(...t.map(i=>i.y))-l/2-4}}},"getSelfLoopLabelPosition"),C=b.__name((o,t=0,{mergeSelfLoops:f=!0}={})=>{const y=new Map,a=[],r=o.graph()?.rankdir;return o.edges().forEach(s=>{const g=o.edge(s);if(f&&g.selfLoop){const u=g.selfLoop.id;y.has(u)||y.set(u,[]),y.get(u).push({edge:g,start:s.v,end:s.w})}else a.push({edge:g,start:s.v,end:s.w})}),y.forEach(s=>{if(s.length!==3){s.forEach(N=>a.push(N));return}s.sort((N,d)=>N.edge.selfLoop.order-d.edge.selfLoop.order);const[g,u,l]=s,i=g.edge.originalEdge??u.edge.originalEdge??l.edge.originalEdge??u.edge,n=o.node(i.start);if(!n){s.forEach(N=>a.push(N));return}const p={width:u.edge.width,height:u.edge.height},m=Y(o,n,s,i.start,r),L=A(n,m,t,p.width??0),X=v(n,L,m,t,p),S={...u.edge,...i,id:i.id,points:L,start:i.start,end:i.end,x:X.x,y:X.y,width:p.width,height:p.height,labelStyle:u.edge.labelStyle,fromCluster:g.edge.fromCluster??u.edge.fromCluster??l.edge.fromCluster,toCluster:g.edge.toCluster??u.edge.toCluster??l.edge.toCluster};delete S.selfLoop,delete S.originalEdge,a.push({edge:S,start:S.start,end:S.end})}),a},"getEdgesToRender"),T=b.__name(async(o,t,f,y,a,r)=>{c.log.warn("Graph in recursive render:XAX",R.write(t),a);const s=t.graph().rankdir;c.log.trace("Dir in recursive render - dir:",s);const g=o.insert("g").attr("class","root");t.nodes()?c.log.info("Recursive render XXX",t.nodes()):c.log.info("No nodes found for",t),t.edges().length>0&&c.log.info("Recursive edges",t.edge(t.edges()[0]));const u=g.insert("g").attr("class","clusters"),l=g.insert("g").attr("class","edgePaths"),i=g.insert("g").attr("class","edgeLabels"),n=g.insert("g").attr("class","nodes"),p=J(f);await Promise.all(t.nodes().map(async function(d){const e=t.node(d);if(a!==void 0){const h=JSON.parse(JSON.stringify(a.clusterData));c.log.trace(`Setting data for parent cluster XXX
2
2
  Node.id = `,d,`
3
3
  data=`,h.height,`
4
4
  Parent cluster`,a.height),t.setNode(a.id,h),t.parent(d)||(c.log.trace("Setting parent",d,a.id),t.setParent(d,a.id,h))}if(c.log.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),e?.clusterNode){c.log.info("Cluster identified XBX",d,e.width,t.node(d));const{ranksep:h,nodesep:x}=t.graph();e.graph.setGraph({...e.graph.graph(),ranksep:h+25,nodesep:x});const I=await T(n,e.graph,f,y,t.node(d),r),_=I.elem;E.updateNodeBounds(e,_),e.diff=I.diff||0,c.log.info("New compound node after recursive render XAX",d,"width",e.width,"height",e.height),E.setNodeElem(_,e)}else t.children(d).length>0?(c.log.trace("Cluster - the non recursive path XBX",d,e.id,e,e.width,"Graph:",t),c.log.trace(w.findNonClusterChild(e.id,t)),w.clusterDb.set(e.id,{id:w.findNonClusterChild(e.id,t),node:e})):(c.log.trace("Node - the non recursive path XAX",d,n,t.node(d),s),await E.insertNode(n,t.node(d),{config:r,dir:s}))})),await b.__name(async()=>{const d=t.edges().map(async function(e){const h=t.edge(e.v,e.w,e.name);if(c.log.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),c.log.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),c.log.info("Fix",w.clusterDb,"ids:",e.v,e.w,"Translating: ",w.clusterDb.get(e.v),w.clusterDb.get(e.w)),p&&h.selfLoop){if(h.selfLoop.order!==1)return;const x=h.id;h.id=h.selfLoop.id,await M.insertEdgeLabel(i,h),h.id=x;return}await M.insertEdgeLabel(i,h)});await Promise.all(d)},"processEdges")(),c.log.info("Graph before layout:",JSON.stringify(R.write(t))),c.log.info("############################################# XXX"),c.log.info("### Layout ### XXX"),c.log.info("############################################# XXX"),O.layout(t),c.log.info("Graph after layout:",JSON.stringify(R.write(t)));let L=0,{subGraphTitleTotalMargin:X}=q.getSubGraphTitleMargins(r);await Promise.all(w.sortNodesByHierarchy(t).map(async function(d){const e=t.node(d);if(c.log.info("Position XBX => "+d+": ("+e.x,","+e.y,") width: ",e.width," height: ",e.height),e?.clusterNode)e.y+=X,c.log.info("A tainted cluster node XBX1",d,e.id,e.width,e.height,e.x,e.y,t.parent(d)),w.clusterDb.get(e.id).node=e,E.positionNode(e);else if(t.children(d).length>0){c.log.info("A pure cluster node XBX1",d,e.id,e.x,e.y,e.width,e.height,t.parent(d)),e.height+=X,t.node(e.parentId);const h=e?.padding/2||0,x=e?.labelBBox?.height||0,I=x-h||0;c.log.debug("OffsetY",I,"labelHeight",x,"halfPadding",h),await E.insertCluster(u,e),w.clusterDb.get(e.id).node=e}else{const h=t.node(e.parentId);e.y+=X/2,c.log.info("A regular node XBX1 - using the padding",e.id,"parent",e.parentId,e.width,e.height,e.x,e.y,"offsetY",e.offsetY,"parent",h,h?.offsetY,e),E.positionNode(e)}}));const S=X/2;return C(t,S,{mergeSelfLoops:p}).forEach(function({edge:d,start:e,end:h}){c.log.info("Edge "+e+" -> "+h+": "+JSON.stringify(d),d),d.points.forEach(B=>B.y+=S);const x=t.node(e),I=t.node(h),_=M.insertEdge(l,d,w.clusterDb,f,x,I,y);M.positionEdgeLabel(d,_)}),t.nodes().forEach(function(d){const e=t.node(d);c.log.info(d,e.type,e.diff),e.isGroup&&(L=e.diff)}),c.log.warn("Returning from recursive render XAX",g,L),{elem:g,diff:L}},"recursiveRender"),H=b.__name(async(o,t)=>{const f=new D.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:o.direction,nodesep:o.config?.nodeSpacing||o.config?.flowchart?.nodeSpacing||o.nodeSpacing,ranksep:o.config?.rankSpacing||o.config?.flowchart?.rankSpacing||o.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),y=t.select("g");M.markers_default(y,o.markers,o.type,o.diagramId),E.clear2(),M.clear(),E.clear(),w.clear(),o.nodes.forEach(r=>{f.setNode(r.id,{...r}),r.parentId&&f.setParent(r.id,r.parentId)}),c.log.debug("Edges:",o.edges),o.edges.forEach(r=>{if(r.start===r.end){const s=r.start,g=s+"---"+s+"---1",u=s+"---"+s+"---2",l=f.node(s);f.setNode(g,{domId:g,id:g,parentId:l.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),f.setParent(g,l.parentId),f.setNode(u,{domId:u,id:u,parentId:l.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),f.setParent(u,l.parentId);const i=structuredClone(r),n=structuredClone(r),p=structuredClone(r),m=structuredClone(r);n.originalEdge=i,n.selfLoop={id:i.id,order:0},p.originalEdge=i,p.selfLoop={id:i.id,order:1},m.originalEdge=i,m.selfLoop={id:i.id,order:2},n.label="",n.arrowTypeEnd="none",n.endLabelLeft="",n.endLabelRight="",n.startLabelLeft="",n.id=s+"-cyclic-special-1",p.startLabelRight="",p.startLabelLeft="",p.endLabelLeft="",p.endLabelRight="",p.arrowTypeStart="none",p.arrowTypeEnd="none",p.id=s+"-cyclic-special-mid",m.label="",m.startLabelRight="",m.startLabelLeft="",m.arrowTypeStart="none",l.isGroup&&(n.fromCluster=s,m.toCluster=s),m.id=s+"-cyclic-special-2",m.arrowTypeStart="none",f.setEdge(s,g,n,s+"-cyclic-special-0"),f.setEdge(g,u,p,s+"-cyclic-special-1"),f.setEdge(u,s,m,s+"-cyclic-special-2")}else f.setEdge(r.start,r.end,{...r},r.id)}),c.log.warn("Graph at first:",JSON.stringify(R.write(f))),w.adjustClustersAndEdges(f),c.log.warn("Graph after XAX:",JSON.stringify(R.write(f)));const a=G.getConfig2();await T(y,f,o.type,o.diagramId,void 0,a)},"render");exports.getEdgesToRender=C;exports.render=H;
@@ -1 +1 @@
1
- {"version":3,"file":"dagre-VZM6K2ZE.cjs","sources":["../../../../../../node_modules/mermaid/dist/chunks/mermaid.core/dagre-VZM6K2ZE.mjs"],"sourcesContent":["import {\n adjustClustersAndEdges,\n clear as clear4,\n clusterDb,\n findNonClusterChild,\n sortNodesByHierarchy\n} from \"./chunk-RYQCIY6F.mjs\";\nimport {\n clear as clear2,\n insertEdge,\n insertEdgeLabel,\n markers_default,\n positionEdgeLabel\n} from \"./chunk-7Z6QIM7H.mjs\";\nimport {\n clear,\n clear2 as clear3,\n insertCluster,\n insertNode,\n positionNode,\n setNodeElem,\n updateNodeBounds\n} from \"./chunk-QR6OTTB3.mjs\";\nimport \"./chunk-W5SLKNZC.mjs\";\nimport \"./chunk-7BUUIJ7U.mjs\";\nimport {\n getSubGraphTitleMargins\n} from \"./chunk-UBXNYLIW.mjs\";\nimport \"./chunk-WRU74C26.mjs\";\nimport \"./chunk-4I5QYGJK.mjs\";\nimport \"./chunk-NSK5VX7P.mjs\";\nimport {\n getConfig2 as getConfig\n} from \"./chunk-I66GZJ75.mjs\";\nimport {\n log\n} from \"./chunk-X3CZISLH.mjs\";\nimport {\n __name\n} from \"./chunk-Y2CYZVJY.mjs\";\n\n// src/rendering-util/layout-algorithms/dagre/index.js\nimport { layout as dagreLayout } from \"dagre-d3-es/src/dagre/index.js\";\nimport * as graphlibJson from \"dagre-d3-es/src/graphlib/json.js\";\nimport * as graphlib from \"dagre-d3-es/src/graphlib/index.js\";\nvar clamp = /* @__PURE__ */ __name((value, min, max) => Math.max(min, Math.min(max, value)), \"clamp\");\nvar getDefaultSelfLoopSide = /* @__PURE__ */ __name((rankdir = \"TB\") => {\n switch (rankdir) {\n case \"BT\":\n return \"bottom\";\n case \"LR\":\n return \"right\";\n case \"RL\":\n return \"left\";\n case \"TB\":\n default:\n return \"top\";\n }\n}, \"getDefaultSelfLoopSide\");\nvar shouldMergeSelfLoopSegments = /* @__PURE__ */ __name((diagramType) => diagramType === \"flowchart\" || diagramType === \"flowchart-v2\" || diagramType === \"stateDiagram\", \"shouldMergeSelfLoopSegments\");\nvar getSelfLoopSide = /* @__PURE__ */ __name((graph, node, segments, originalNodeId, rankdir) => {\n const layoutHints = [];\n const dummyNodeIds = /* @__PURE__ */ new Set();\n segments.forEach(({ start, end }) => {\n if (start !== originalNodeId) {\n dummyNodeIds.add(start);\n }\n if (end !== originalNodeId) {\n dummyNodeIds.add(end);\n }\n });\n dummyNodeIds.forEach((id) => {\n const dummyNode = graph.node(id);\n if (typeof dummyNode?.x === \"number\" && typeof dummyNode?.y === \"number\") {\n layoutHints.push(dummyNode);\n }\n });\n if (layoutHints.length === 0) {\n segments.forEach(({ edge }) => {\n (edge.points ?? []).forEach((point) => {\n if (typeof point?.x === \"number\" && typeof point?.y === \"number\") {\n layoutHints.push(point);\n }\n });\n });\n }\n if (layoutHints.length === 0) {\n return getDefaultSelfLoopSide(rankdir);\n }\n const center = layoutHints.reduce(\n (acc, point) => ({\n x: acc.x + point.x / layoutHints.length,\n y: acc.y + point.y / layoutHints.length\n }),\n { x: 0, y: 0 }\n );\n const dx = center.x - node.x;\n const dy = center.y - node.y;\n if (Math.abs(dx) > Math.abs(dy)) {\n return dx > 0 ? \"right\" : \"left\";\n }\n if (Math.abs(dy) > 0) {\n return dy > 0 ? \"bottom\" : \"top\";\n }\n return getDefaultSelfLoopSide(rankdir);\n}, \"getSelfLoopSide\");\nvar getSelfLoopPoints = /* @__PURE__ */ __name((node, side = \"top\", yOffset = 0, labelWidth = 0) => {\n const x = node.x;\n const y = node.y - yOffset;\n const halfWidth = node.width / 2;\n const halfHeight = node.height / 2;\n const maxSpan = Math.max(36, Math.min(100, node.width * 0.8));\n const span = clamp(Math.max(labelWidth, node.width * 0.35), 36, maxSpan);\n const depth = clamp(Math.min(node.width, node.height) * 0.45, 24, 48);\n switch (side) {\n case \"bottom\": {\n const bottom = y + halfHeight;\n return [\n { x: x - span / 2, y: bottom },\n { x: x - span / 2, y: bottom + depth },\n { x: x + span / 2, y: bottom + depth },\n { x: x + span / 2, y: bottom }\n ];\n }\n case \"right\": {\n const right = x + halfWidth;\n return [\n { x: right, y: y - span / 2 },\n { x: right + depth, y: y - span / 2 },\n { x: right + depth, y: y + span / 2 },\n { x: right, y: y + span / 2 }\n ];\n }\n case \"left\": {\n const left = x - halfWidth;\n return [\n { x: left, y: y - span / 2 },\n { x: left - depth, y: y - span / 2 },\n { x: left - depth, y: y + span / 2 },\n { x: left, y: y + span / 2 }\n ];\n }\n case \"top\":\n default: {\n const top = y - halfHeight;\n return [\n { x: x - span / 2, y: top },\n { x: x - span / 2, y: top - depth },\n { x: x + span / 2, y: top - depth },\n { x: x + span / 2, y: top }\n ];\n }\n }\n}, \"getSelfLoopPoints\");\nvar getSelfLoopLabelPosition = /* @__PURE__ */ __name((node, points, side = \"top\", yOffset = 0, label = {}) => {\n const gap = 4;\n const x = node.x;\n const y = node.y - yOffset;\n const labelWidth = label.width ?? 0;\n const labelHeight = label.height ?? 0;\n switch (side) {\n case \"bottom\":\n return { x, y: Math.max(...points.map((point) => point.y)) + labelHeight / 2 + gap };\n case \"right\":\n return { x: Math.max(...points.map((point) => point.x)) + labelWidth / 2 + gap, y };\n case \"left\":\n return { x: Math.min(...points.map((point) => point.x)) - labelWidth / 2 - gap, y };\n case \"top\":\n default:\n return { x, y: Math.min(...points.map((point) => point.y)) - labelHeight / 2 - gap };\n }\n}, \"getSelfLoopLabelPosition\");\nvar getEdgesToRender = /* @__PURE__ */ __name((graph, yOffset = 0, { mergeSelfLoops = true } = {}) => {\n const selfLoopEdgeGroups = /* @__PURE__ */ new Map();\n const edgesToRender = [];\n const rankdir = graph.graph()?.rankdir;\n graph.edges().forEach((e) => {\n const edge = graph.edge(e);\n if (mergeSelfLoops && edge.selfLoop) {\n const key = edge.selfLoop.id;\n if (!selfLoopEdgeGroups.has(key)) {\n selfLoopEdgeGroups.set(key, []);\n }\n selfLoopEdgeGroups.get(key).push({ edge, start: e.v, end: e.w });\n } else {\n edgesToRender.push({ edge, start: e.v, end: e.w });\n }\n });\n selfLoopEdgeGroups.forEach((segments) => {\n if (segments.length !== 3) {\n segments.forEach((segment) => edgesToRender.push(segment));\n return;\n }\n segments.sort((a, b) => a.edge.selfLoop.order - b.edge.selfLoop.order);\n const [firstSegment, middleSegment, lastSegment] = segments;\n const originalEdge = firstSegment.edge.originalEdge ?? middleSegment.edge.originalEdge ?? lastSegment.edge.originalEdge ?? middleSegment.edge;\n const node = graph.node(originalEdge.start);\n if (!node) {\n segments.forEach((segment) => edgesToRender.push(segment));\n return;\n }\n const label = {\n width: middleSegment.edge.width,\n height: middleSegment.edge.height\n };\n const side = getSelfLoopSide(graph, node, segments, originalEdge.start, rankdir);\n const points = getSelfLoopPoints(node, side, yOffset, label.width ?? 0);\n const labelPosition = getSelfLoopLabelPosition(node, points, side, yOffset, label);\n const mergedEdge = {\n ...middleSegment.edge,\n ...originalEdge,\n id: originalEdge.id,\n points,\n start: originalEdge.start,\n end: originalEdge.end,\n x: labelPosition.x,\n y: labelPosition.y,\n width: label.width,\n height: label.height,\n labelStyle: middleSegment.edge.labelStyle,\n fromCluster: firstSegment.edge.fromCluster ?? middleSegment.edge.fromCluster ?? lastSegment.edge.fromCluster,\n toCluster: firstSegment.edge.toCluster ?? middleSegment.edge.toCluster ?? lastSegment.edge.toCluster\n };\n delete mergedEdge.selfLoop;\n delete mergedEdge.originalEdge;\n edgesToRender.push({ edge: mergedEdge, start: mergedEdge.start, end: mergedEdge.end });\n });\n return edgesToRender;\n}, \"getEdgesToRender\");\nvar recursiveRender = /* @__PURE__ */ __name(async (_elem, graph, diagramType, id, parentCluster, siteConfig) => {\n log.warn(\"Graph in recursive render:XAX\", graphlibJson.write(graph), parentCluster);\n const dir = graph.graph().rankdir;\n log.trace(\"Dir in recursive render - dir:\", dir);\n const elem = _elem.insert(\"g\").attr(\"class\", \"root\");\n if (!graph.nodes()) {\n log.info(\"No nodes found for\", graph);\n } else {\n log.info(\"Recursive render XXX\", graph.nodes());\n }\n if (graph.edges().length > 0) {\n log.info(\"Recursive edges\", graph.edge(graph.edges()[0]));\n }\n const clusters = elem.insert(\"g\").attr(\"class\", \"clusters\");\n const edgePaths = elem.insert(\"g\").attr(\"class\", \"edgePaths\");\n const edgeLabels = elem.insert(\"g\").attr(\"class\", \"edgeLabels\");\n const nodes = elem.insert(\"g\").attr(\"class\", \"nodes\");\n const mergeSelfLoops = shouldMergeSelfLoopSegments(diagramType);\n await Promise.all(\n graph.nodes().map(async function(v) {\n const node = graph.node(v);\n if (parentCluster !== void 0) {\n const data = JSON.parse(JSON.stringify(parentCluster.clusterData));\n log.trace(\n \"Setting data for parent cluster XXX\\n Node.id = \",\n v,\n \"\\n data=\",\n data.height,\n \"\\nParent cluster\",\n parentCluster.height\n );\n graph.setNode(parentCluster.id, data);\n if (!graph.parent(v)) {\n log.trace(\"Setting parent\", v, parentCluster.id);\n graph.setParent(v, parentCluster.id, data);\n }\n }\n log.info(\"(Insert) Node XXX\" + v + \": \" + JSON.stringify(graph.node(v)));\n if (node?.clusterNode) {\n log.info(\"Cluster identified XBX\", v, node.width, graph.node(v));\n const { ranksep, nodesep } = graph.graph();\n node.graph.setGraph({\n ...node.graph.graph(),\n ranksep: ranksep + 25,\n nodesep\n });\n const o = await recursiveRender(\n nodes,\n node.graph,\n diagramType,\n id,\n graph.node(v),\n siteConfig\n );\n const newEl = o.elem;\n updateNodeBounds(node, newEl);\n node.diff = o.diff || 0;\n log.info(\n \"New compound node after recursive render XAX\",\n v,\n \"width\",\n // node,\n node.width,\n \"height\",\n node.height\n // node.x,\n // node.y\n );\n setNodeElem(newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n log.trace(\n \"Cluster - the non recursive path XBX\",\n v,\n node.id,\n node,\n node.width,\n \"Graph:\",\n graph\n );\n log.trace(findNonClusterChild(node.id, graph));\n clusterDb.set(node.id, { id: findNonClusterChild(node.id, graph), node });\n } else {\n log.trace(\"Node - the non recursive path XAX\", v, nodes, graph.node(v), dir);\n await insertNode(nodes, graph.node(v), { config: siteConfig, dir });\n }\n }\n })\n );\n const processEdges = /* @__PURE__ */ __name(async () => {\n const edgePromises = graph.edges().map(async function(e) {\n const edge = graph.edge(e.v, e.w, e.name);\n log.info(\"Edge \" + e.v + \" -> \" + e.w + \": \" + JSON.stringify(e));\n log.info(\"Edge \" + e.v + \" -> \" + e.w + \": \", e, \" \", JSON.stringify(graph.edge(e)));\n log.info(\n \"Fix\",\n clusterDb,\n \"ids:\",\n e.v,\n e.w,\n \"Translating: \",\n clusterDb.get(e.v),\n clusterDb.get(e.w)\n );\n if (mergeSelfLoops && edge.selfLoop) {\n if (edge.selfLoop.order !== 1) {\n return;\n }\n const segmentId = edge.id;\n edge.id = edge.selfLoop.id;\n await insertEdgeLabel(edgeLabels, edge);\n edge.id = segmentId;\n return;\n }\n await insertEdgeLabel(edgeLabels, edge);\n });\n await Promise.all(edgePromises);\n }, \"processEdges\");\n await processEdges();\n log.info(\"Graph before layout:\", JSON.stringify(graphlibJson.write(graph)));\n log.info(\"############################################# XXX\");\n log.info(\"### Layout ### XXX\");\n log.info(\"############################################# XXX\");\n dagreLayout(graph);\n log.info(\"Graph after layout:\", JSON.stringify(graphlibJson.write(graph)));\n let diff = 0;\n let { subGraphTitleTotalMargin } = getSubGraphTitleMargins(siteConfig);\n await Promise.all(\n sortNodesByHierarchy(graph).map(async function(v) {\n const node = graph.node(v);\n log.info(\n \"Position XBX => \" + v + \": (\" + node.x,\n \",\" + node.y,\n \") width: \",\n node.width,\n \" height: \",\n node.height\n );\n if (node?.clusterNode) {\n node.y += subGraphTitleTotalMargin;\n log.info(\n \"A tainted cluster node XBX1\",\n v,\n node.id,\n node.width,\n node.height,\n node.x,\n node.y,\n graph.parent(v)\n );\n clusterDb.get(node.id).node = node;\n positionNode(node);\n } else {\n if (graph.children(v).length > 0) {\n log.info(\n \"A pure cluster node XBX1\",\n v,\n node.id,\n node.x,\n node.y,\n node.width,\n node.height,\n graph.parent(v)\n );\n node.height += subGraphTitleTotalMargin;\n graph.node(node.parentId);\n const halfPadding = node?.padding / 2 || 0;\n const labelHeight = node?.labelBBox?.height || 0;\n const offsetY = labelHeight - halfPadding || 0;\n log.debug(\"OffsetY\", offsetY, \"labelHeight\", labelHeight, \"halfPadding\", halfPadding);\n await insertCluster(clusters, node);\n clusterDb.get(node.id).node = node;\n } else {\n const parent = graph.node(node.parentId);\n node.y += subGraphTitleTotalMargin / 2;\n log.info(\n \"A regular node XBX1 - using the padding\",\n node.id,\n \"parent\",\n node.parentId,\n node.width,\n node.height,\n node.x,\n node.y,\n \"offsetY\",\n node.offsetY,\n \"parent\",\n parent,\n parent?.offsetY,\n node\n );\n positionNode(node);\n }\n }\n })\n );\n const edgeOffsetY = subGraphTitleTotalMargin / 2;\n const edgesToRender = getEdgesToRender(graph, edgeOffsetY, { mergeSelfLoops });\n edgesToRender.forEach(function({ edge, start, end }) {\n log.info(\"Edge \" + start + \" -> \" + end + \": \" + JSON.stringify(edge), edge);\n edge.points.forEach((point) => point.y += edgeOffsetY);\n const startNode = graph.node(start);\n const endNode = graph.node(end);\n const paths = insertEdge(edgePaths, edge, clusterDb, diagramType, startNode, endNode, id);\n positionEdgeLabel(edge, paths);\n });\n graph.nodes().forEach(function(v) {\n const n = graph.node(v);\n log.info(v, n.type, n.diff);\n if (n.isGroup) {\n diff = n.diff;\n }\n });\n log.warn(\"Returning from recursive render XAX\", elem, diff);\n return { elem, diff };\n}, \"recursiveRender\");\nvar render = /* @__PURE__ */ __name(async (data4Layout, svg) => {\n const graph = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: data4Layout.direction,\n nodesep: data4Layout.config?.nodeSpacing || data4Layout.config?.flowchart?.nodeSpacing || data4Layout.nodeSpacing,\n ranksep: data4Layout.config?.rankSpacing || data4Layout.config?.flowchart?.rankSpacing || data4Layout.rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function() {\n return {};\n });\n const element = svg.select(\"g\");\n markers_default(element, data4Layout.markers, data4Layout.type, data4Layout.diagramId);\n clear3();\n clear2();\n clear();\n clear4();\n data4Layout.nodes.forEach((node) => {\n graph.setNode(node.id, { ...node });\n if (node.parentId) {\n graph.setParent(node.id, node.parentId);\n }\n });\n log.debug(\"Edges:\", data4Layout.edges);\n data4Layout.edges.forEach((edge) => {\n if (edge.start === edge.end) {\n const nodeId = edge.start;\n const specialId1 = nodeId + \"---\" + nodeId + \"---1\";\n const specialId2 = nodeId + \"---\" + nodeId + \"---2\";\n const node = graph.node(nodeId);\n graph.setNode(specialId1, {\n domId: specialId1,\n id: specialId1,\n parentId: node.parentId,\n labelStyle: \"\",\n label: \"\",\n padding: 0,\n shape: \"labelRect\",\n // shape: 'rect',\n style: \"\",\n width: 10,\n height: 10\n });\n graph.setParent(specialId1, node.parentId);\n graph.setNode(specialId2, {\n domId: specialId2,\n id: specialId2,\n parentId: node.parentId,\n labelStyle: \"\",\n padding: 0,\n // shape: 'rect',\n shape: \"labelRect\",\n label: \"\",\n style: \"\",\n width: 10,\n height: 10\n });\n graph.setParent(specialId2, node.parentId);\n const originalEdge = structuredClone(edge);\n const edge1 = structuredClone(edge);\n const edgeMid = structuredClone(edge);\n const edge2 = structuredClone(edge);\n edge1.originalEdge = originalEdge;\n edge1.selfLoop = { id: originalEdge.id, order: 0 };\n edgeMid.originalEdge = originalEdge;\n edgeMid.selfLoop = { id: originalEdge.id, order: 1 };\n edge2.originalEdge = originalEdge;\n edge2.selfLoop = { id: originalEdge.id, order: 2 };\n edge1.label = \"\";\n edge1.arrowTypeEnd = \"none\";\n edge1.endLabelLeft = \"\";\n edge1.endLabelRight = \"\";\n edge1.startLabelLeft = \"\";\n edge1.id = nodeId + \"-cyclic-special-1\";\n edgeMid.startLabelRight = \"\";\n edgeMid.startLabelLeft = \"\";\n edgeMid.endLabelLeft = \"\";\n edgeMid.endLabelRight = \"\";\n edgeMid.arrowTypeStart = \"none\";\n edgeMid.arrowTypeEnd = \"none\";\n edgeMid.id = nodeId + \"-cyclic-special-mid\";\n edge2.label = \"\";\n edge2.startLabelRight = \"\";\n edge2.startLabelLeft = \"\";\n edge2.arrowTypeStart = \"none\";\n if (node.isGroup) {\n edge1.fromCluster = nodeId;\n edge2.toCluster = nodeId;\n }\n edge2.id = nodeId + \"-cyclic-special-2\";\n edge2.arrowTypeStart = \"none\";\n graph.setEdge(nodeId, specialId1, edge1, nodeId + \"-cyclic-special-0\");\n graph.setEdge(specialId1, specialId2, edgeMid, nodeId + \"-cyclic-special-1\");\n graph.setEdge(specialId2, nodeId, edge2, nodeId + \"-cyclic-special-2\");\n } else {\n graph.setEdge(edge.start, edge.end, { ...edge }, edge.id);\n }\n });\n log.warn(\"Graph at first:\", JSON.stringify(graphlibJson.write(graph)));\n adjustClustersAndEdges(graph);\n log.warn(\"Graph after XAX:\", JSON.stringify(graphlibJson.write(graph)));\n const siteConfig = getConfig();\n await recursiveRender(\n element,\n graph,\n data4Layout.type,\n data4Layout.diagramId,\n void 0,\n siteConfig\n );\n}, \"render\");\nexport {\n getEdgesToRender,\n render\n};\n"],"names":["clamp","__name","value","min","max","getDefaultSelfLoopSide","rankdir","shouldMergeSelfLoopSegments","diagramType","getSelfLoopSide","graph","node","segments","originalNodeId","layoutHints","dummyNodeIds","start","end","id","dummyNode","edge","point","center","acc","dx","dy","getSelfLoopPoints","side","yOffset","labelWidth","x","y","halfWidth","halfHeight","maxSpan","span","depth","bottom","right","left","top","getSelfLoopLabelPosition","points","label","labelHeight","getEdgesToRender","mergeSelfLoops","selfLoopEdgeGroups","edgesToRender","e","key","segment","a","b","firstSegment","middleSegment","lastSegment","originalEdge","labelPosition","mergedEdge","recursiveRender","_elem","parentCluster","siteConfig","log","graphlibJson.write","dir","elem","clusters","edgePaths","edgeLabels","nodes","v","data","ranksep","nodesep","o","newEl","updateNodeBounds","setNodeElem","findNonClusterChild","clusterDb","insertNode","edgePromises","segmentId","insertEdgeLabel","dagreLayout","diff","subGraphTitleTotalMargin","getSubGraphTitleMargins","sortNodesByHierarchy","positionNode","halfPadding","offsetY","insertCluster","parent","edgeOffsetY","startNode","endNode","paths","insertEdge","positionEdgeLabel","n","render","data4Layout","svg","graphlib.Graph","element","markers_default","clear3","clear2","clear","clear4","nodeId","specialId1","specialId2","edge1","edgeMid","edge2","adjustClustersAndEdges","getConfig"],"mappings":"mrBA6CA,IAAIA,EAAwBC,EAAAA,OAAO,CAACC,EAAOC,EAAKC,IAAQ,KAAK,IAAID,EAAK,KAAK,IAAIC,EAAKF,CAAK,CAAC,EAAG,OAAO,EAChGG,EAAyCJ,EAAAA,OAAO,CAACK,EAAU,OAAS,CACtE,OAAQA,EAAO,CACb,IAAK,KACH,MAAO,SACT,IAAK,KACH,MAAO,QACT,IAAK,KACH,MAAO,OACT,IAAK,KACL,QACE,MAAO,KACb,CACA,EAAG,wBAAwB,EACvBC,EAA8CN,EAAAA,OAAQO,GAAgBA,IAAgB,aAAeA,IAAgB,gBAAkBA,IAAgB,eAAgB,6BAA6B,EACpMC,EAAkCR,EAAAA,OAAO,CAACS,EAAOC,EAAMC,EAAUC,EAA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,QAAQU,EAAK,MAAOA,EAAK,IAAK,CAAE,GAAGA,CAAI,EAAIA,EAAK,EAAE,CAE5D,CAAC,EACD4C,EAAAA,IAAI,KAAK,kBAAmB,KAAK,UAAUC,EAAAA,MAAmBvD,CAAK,CAAC,CAAC,EACrE6G,EAAAA,uBAAuB7G,CAAK,EAC5BsD,EAAAA,IAAI,KAAK,mBAAoB,KAAK,UAAUC,EAAAA,MAAmBvD,CAAK,CAAC,CAAC,EACtE,MAAMqD,EAAayD,EAAAA,WAAS,EAC5B,MAAM5D,EACJ+C,EACAjG,EACA8F,EAAY,KACZA,EAAY,UACZ,OACAzC,CACJ,CACA,EAAG,QAAQ","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"dagre-VZM6K2ZE.cjs","sources":["../../../../../../node_modules/mermaid/dist/chunks/mermaid.core/dagre-VZM6K2ZE.mjs"],"sourcesContent":["import {\n adjustClustersAndEdges,\n clear as clear4,\n clusterDb,\n findNonClusterChild,\n sortNodesByHierarchy\n} from \"./chunk-RYQCIY6F.mjs\";\nimport {\n clear as clear2,\n insertEdge,\n insertEdgeLabel,\n markers_default,\n positionEdgeLabel\n} from \"./chunk-7Z6QIM7H.mjs\";\nimport {\n clear,\n clear2 as clear3,\n insertCluster,\n insertNode,\n positionNode,\n setNodeElem,\n updateNodeBounds\n} from \"./chunk-QR6OTTB3.mjs\";\nimport \"./chunk-W5SLKNZC.mjs\";\nimport \"./chunk-7BUUIJ7U.mjs\";\nimport {\n getSubGraphTitleMargins\n} from \"./chunk-UBXNYLIW.mjs\";\nimport \"./chunk-WRU74C26.mjs\";\nimport \"./chunk-4I5QYGJK.mjs\";\nimport \"./chunk-NSK5VX7P.mjs\";\nimport {\n getConfig2 as getConfig\n} from \"./chunk-I66GZJ75.mjs\";\nimport {\n log\n} from \"./chunk-X3CZISLH.mjs\";\nimport {\n __name\n} from \"./chunk-Y2CYZVJY.mjs\";\n\n// src/rendering-util/layout-algorithms/dagre/index.js\nimport { layout as dagreLayout } from \"dagre-d3-es/src/dagre/index.js\";\nimport * as graphlibJson from \"dagre-d3-es/src/graphlib/json.js\";\nimport * as graphlib from \"dagre-d3-es/src/graphlib/index.js\";\nvar clamp = /* @__PURE__ */ __name((value, min, max) => Math.max(min, Math.min(max, value)), \"clamp\");\nvar getDefaultSelfLoopSide = /* @__PURE__ */ __name((rankdir = \"TB\") => {\n switch (rankdir) {\n case \"BT\":\n return \"bottom\";\n case \"LR\":\n return \"right\";\n case \"RL\":\n return \"left\";\n case \"TB\":\n default:\n return \"top\";\n }\n}, \"getDefaultSelfLoopSide\");\nvar shouldMergeSelfLoopSegments = /* @__PURE__ */ __name((diagramType) => diagramType === \"flowchart\" || diagramType === \"flowchart-v2\" || diagramType === \"stateDiagram\", \"shouldMergeSelfLoopSegments\");\nvar getSelfLoopSide = /* @__PURE__ */ __name((graph, node, segments, originalNodeId, rankdir) => {\n const layoutHints = [];\n const dummyNodeIds = /* @__PURE__ */ new Set();\n segments.forEach(({ start, end }) => {\n if (start !== originalNodeId) {\n dummyNodeIds.add(start);\n }\n if (end !== originalNodeId) {\n dummyNodeIds.add(end);\n }\n });\n dummyNodeIds.forEach((id) => {\n const dummyNode = graph.node(id);\n if (typeof dummyNode?.x === \"number\" && typeof dummyNode?.y === \"number\") {\n layoutHints.push(dummyNode);\n }\n });\n if (layoutHints.length === 0) {\n segments.forEach(({ edge }) => {\n (edge.points ?? []).forEach((point) => {\n if (typeof point?.x === \"number\" && typeof point?.y === \"number\") {\n layoutHints.push(point);\n }\n });\n });\n }\n if (layoutHints.length === 0) {\n return getDefaultSelfLoopSide(rankdir);\n }\n const center = layoutHints.reduce(\n (acc, point) => ({\n x: acc.x + point.x / layoutHints.length,\n y: acc.y + point.y / layoutHints.length\n }),\n { x: 0, y: 0 }\n );\n const dx = center.x - node.x;\n const dy = center.y - node.y;\n if (Math.abs(dx) > Math.abs(dy)) {\n return dx > 0 ? \"right\" : \"left\";\n }\n if (Math.abs(dy) > 0) {\n return dy > 0 ? \"bottom\" : \"top\";\n }\n return getDefaultSelfLoopSide(rankdir);\n}, \"getSelfLoopSide\");\nvar getSelfLoopPoints = /* @__PURE__ */ __name((node, side = \"top\", yOffset = 0, labelWidth = 0) => {\n const x = node.x;\n const y = node.y - yOffset;\n const halfWidth = node.width / 2;\n const halfHeight = node.height / 2;\n const maxSpan = Math.max(36, Math.min(100, node.width * 0.8));\n const span = clamp(Math.max(labelWidth, node.width * 0.35), 36, maxSpan);\n const depth = clamp(Math.min(node.width, node.height) * 0.45, 24, 48);\n switch (side) {\n case \"bottom\": {\n const bottom = y + halfHeight;\n return [\n { x: x - span / 2, y: bottom },\n { x: x - span / 2, y: bottom + depth },\n { x: x + span / 2, y: bottom + depth },\n { x: x + span / 2, y: bottom }\n ];\n }\n case \"right\": {\n const right = x + halfWidth;\n return [\n { x: right, y: y - span / 2 },\n { x: right + depth, y: y - span / 2 },\n { x: right + depth, y: y + span / 2 },\n { x: right, y: y + span / 2 }\n ];\n }\n case \"left\": {\n const left = x - halfWidth;\n return [\n { x: left, y: y - span / 2 },\n { x: left - depth, y: y - span / 2 },\n { x: left - depth, y: y + span / 2 },\n { x: left, y: y + span / 2 }\n ];\n }\n case \"top\":\n default: {\n const top = y - halfHeight;\n return [\n { x: x - span / 2, y: top },\n { x: x - span / 2, y: top - depth },\n { x: x + span / 2, y: top - depth },\n { x: x + span / 2, y: top }\n ];\n }\n }\n}, \"getSelfLoopPoints\");\nvar getSelfLoopLabelPosition = /* @__PURE__ */ __name((node, points, side = \"top\", yOffset = 0, label = {}) => {\n const gap = 4;\n const x = node.x;\n const y = node.y - yOffset;\n const labelWidth = label.width ?? 0;\n const labelHeight = label.height ?? 0;\n switch (side) {\n case \"bottom\":\n return { x, y: Math.max(...points.map((point) => point.y)) + labelHeight / 2 + gap };\n case \"right\":\n return { x: Math.max(...points.map((point) => point.x)) + labelWidth / 2 + gap, y };\n case \"left\":\n return { x: Math.min(...points.map((point) => point.x)) - labelWidth / 2 - gap, y };\n case \"top\":\n default:\n return { x, y: Math.min(...points.map((point) => point.y)) - labelHeight / 2 - gap };\n }\n}, \"getSelfLoopLabelPosition\");\nvar getEdgesToRender = /* @__PURE__ */ __name((graph, yOffset = 0, { mergeSelfLoops = true } = {}) => {\n const selfLoopEdgeGroups = /* @__PURE__ */ new Map();\n const edgesToRender = [];\n const rankdir = graph.graph()?.rankdir;\n graph.edges().forEach((e) => {\n const edge = graph.edge(e);\n if (mergeSelfLoops && edge.selfLoop) {\n const key = edge.selfLoop.id;\n if (!selfLoopEdgeGroups.has(key)) {\n selfLoopEdgeGroups.set(key, []);\n }\n selfLoopEdgeGroups.get(key).push({ edge, start: e.v, end: e.w });\n } else {\n edgesToRender.push({ edge, start: e.v, end: e.w });\n }\n });\n selfLoopEdgeGroups.forEach((segments) => {\n if (segments.length !== 3) {\n segments.forEach((segment) => edgesToRender.push(segment));\n return;\n }\n segments.sort((a, b) => a.edge.selfLoop.order - b.edge.selfLoop.order);\n const [firstSegment, middleSegment, lastSegment] = segments;\n const originalEdge = firstSegment.edge.originalEdge ?? middleSegment.edge.originalEdge ?? lastSegment.edge.originalEdge ?? middleSegment.edge;\n const node = graph.node(originalEdge.start);\n if (!node) {\n segments.forEach((segment) => edgesToRender.push(segment));\n return;\n }\n const label = {\n width: middleSegment.edge.width,\n height: middleSegment.edge.height\n };\n const side = getSelfLoopSide(graph, node, segments, originalEdge.start, rankdir);\n const points = getSelfLoopPoints(node, side, yOffset, label.width ?? 0);\n const labelPosition = getSelfLoopLabelPosition(node, points, side, yOffset, label);\n const mergedEdge = {\n ...middleSegment.edge,\n ...originalEdge,\n id: originalEdge.id,\n points,\n start: originalEdge.start,\n end: originalEdge.end,\n x: labelPosition.x,\n y: labelPosition.y,\n width: label.width,\n height: label.height,\n labelStyle: middleSegment.edge.labelStyle,\n fromCluster: firstSegment.edge.fromCluster ?? middleSegment.edge.fromCluster ?? lastSegment.edge.fromCluster,\n toCluster: firstSegment.edge.toCluster ?? middleSegment.edge.toCluster ?? lastSegment.edge.toCluster\n };\n delete mergedEdge.selfLoop;\n delete mergedEdge.originalEdge;\n edgesToRender.push({ edge: mergedEdge, start: mergedEdge.start, end: mergedEdge.end });\n });\n return edgesToRender;\n}, \"getEdgesToRender\");\nvar recursiveRender = /* @__PURE__ */ __name(async (_elem, graph, diagramType, id, parentCluster, siteConfig) => {\n log.warn(\"Graph in recursive render:XAX\", graphlibJson.write(graph), parentCluster);\n const dir = graph.graph().rankdir;\n log.trace(\"Dir in recursive render - dir:\", dir);\n const elem = _elem.insert(\"g\").attr(\"class\", \"root\");\n if (!graph.nodes()) {\n log.info(\"No nodes found for\", graph);\n } else {\n log.info(\"Recursive render XXX\", graph.nodes());\n }\n if (graph.edges().length > 0) {\n log.info(\"Recursive edges\", graph.edge(graph.edges()[0]));\n }\n const clusters = elem.insert(\"g\").attr(\"class\", \"clusters\");\n const edgePaths = elem.insert(\"g\").attr(\"class\", \"edgePaths\");\n const edgeLabels = elem.insert(\"g\").attr(\"class\", \"edgeLabels\");\n const nodes = elem.insert(\"g\").attr(\"class\", \"nodes\");\n const mergeSelfLoops = shouldMergeSelfLoopSegments(diagramType);\n await Promise.all(\n graph.nodes().map(async function(v) {\n const node = graph.node(v);\n if (parentCluster !== void 0) {\n const data = JSON.parse(JSON.stringify(parentCluster.clusterData));\n log.trace(\n \"Setting data for parent cluster XXX\\n Node.id = \",\n v,\n \"\\n data=\",\n data.height,\n \"\\nParent cluster\",\n parentCluster.height\n );\n graph.setNode(parentCluster.id, data);\n if (!graph.parent(v)) {\n log.trace(\"Setting parent\", v, parentCluster.id);\n graph.setParent(v, parentCluster.id, data);\n }\n }\n log.info(\"(Insert) Node XXX\" + v + \": \" + JSON.stringify(graph.node(v)));\n if (node?.clusterNode) {\n log.info(\"Cluster identified XBX\", v, node.width, graph.node(v));\n const { ranksep, nodesep } = graph.graph();\n node.graph.setGraph({\n ...node.graph.graph(),\n ranksep: ranksep + 25,\n nodesep\n });\n const o = await recursiveRender(\n nodes,\n node.graph,\n diagramType,\n id,\n graph.node(v),\n siteConfig\n );\n const newEl = o.elem;\n updateNodeBounds(node, newEl);\n node.diff = o.diff || 0;\n log.info(\n \"New compound node after recursive render XAX\",\n v,\n \"width\",\n // node,\n node.width,\n \"height\",\n node.height\n // node.x,\n // node.y\n );\n setNodeElem(newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n log.trace(\n \"Cluster - the non recursive path XBX\",\n v,\n node.id,\n node,\n node.width,\n \"Graph:\",\n graph\n );\n log.trace(findNonClusterChild(node.id, graph));\n clusterDb.set(node.id, { id: findNonClusterChild(node.id, graph), node });\n } else {\n log.trace(\"Node - the non recursive path XAX\", v, nodes, graph.node(v), dir);\n await insertNode(nodes, graph.node(v), { config: siteConfig, dir });\n }\n }\n })\n );\n const processEdges = /* @__PURE__ */ __name(async () => {\n const edgePromises = graph.edges().map(async function(e) {\n const edge = graph.edge(e.v, e.w, e.name);\n log.info(\"Edge \" + e.v + \" -> \" + e.w + \": \" + JSON.stringify(e));\n log.info(\"Edge \" + e.v + \" -> \" + e.w + \": \", e, \" \", JSON.stringify(graph.edge(e)));\n log.info(\n \"Fix\",\n clusterDb,\n \"ids:\",\n e.v,\n e.w,\n \"Translating: \",\n clusterDb.get(e.v),\n clusterDb.get(e.w)\n );\n if (mergeSelfLoops && edge.selfLoop) {\n if (edge.selfLoop.order !== 1) {\n return;\n }\n const segmentId = edge.id;\n edge.id = edge.selfLoop.id;\n await insertEdgeLabel(edgeLabels, edge);\n edge.id = segmentId;\n return;\n }\n await insertEdgeLabel(edgeLabels, edge);\n });\n await Promise.all(edgePromises);\n }, \"processEdges\");\n await processEdges();\n log.info(\"Graph before layout:\", JSON.stringify(graphlibJson.write(graph)));\n log.info(\"############################################# XXX\");\n log.info(\"### Layout ### XXX\");\n log.info(\"############################################# XXX\");\n dagreLayout(graph);\n log.info(\"Graph after layout:\", JSON.stringify(graphlibJson.write(graph)));\n let diff = 0;\n let { subGraphTitleTotalMargin } = getSubGraphTitleMargins(siteConfig);\n await Promise.all(\n sortNodesByHierarchy(graph).map(async function(v) {\n const node = graph.node(v);\n log.info(\n \"Position XBX => \" + v + \": (\" + node.x,\n \",\" + node.y,\n \") width: \",\n node.width,\n \" height: \",\n node.height\n );\n if (node?.clusterNode) {\n node.y += subGraphTitleTotalMargin;\n log.info(\n \"A tainted cluster node XBX1\",\n v,\n node.id,\n node.width,\n node.height,\n node.x,\n node.y,\n graph.parent(v)\n );\n clusterDb.get(node.id).node = node;\n positionNode(node);\n } else {\n if (graph.children(v).length > 0) {\n log.info(\n \"A pure cluster node XBX1\",\n v,\n node.id,\n node.x,\n node.y,\n node.width,\n node.height,\n graph.parent(v)\n );\n node.height += subGraphTitleTotalMargin;\n graph.node(node.parentId);\n const halfPadding = node?.padding / 2 || 0;\n const labelHeight = node?.labelBBox?.height || 0;\n const offsetY = labelHeight - halfPadding || 0;\n log.debug(\"OffsetY\", offsetY, \"labelHeight\", labelHeight, \"halfPadding\", halfPadding);\n await insertCluster(clusters, node);\n clusterDb.get(node.id).node = node;\n } else {\n const parent = graph.node(node.parentId);\n node.y += subGraphTitleTotalMargin / 2;\n log.info(\n \"A regular node XBX1 - using the padding\",\n node.id,\n \"parent\",\n node.parentId,\n node.width,\n node.height,\n node.x,\n node.y,\n \"offsetY\",\n node.offsetY,\n \"parent\",\n parent,\n parent?.offsetY,\n node\n );\n positionNode(node);\n }\n }\n })\n );\n const edgeOffsetY = subGraphTitleTotalMargin / 2;\n const edgesToRender = getEdgesToRender(graph, edgeOffsetY, { mergeSelfLoops });\n edgesToRender.forEach(function({ edge, start, end }) {\n log.info(\"Edge \" + start + \" -> \" + end + \": \" + JSON.stringify(edge), edge);\n edge.points.forEach((point) => point.y += edgeOffsetY);\n const startNode = graph.node(start);\n const endNode = graph.node(end);\n const paths = insertEdge(edgePaths, edge, clusterDb, diagramType, startNode, endNode, id);\n positionEdgeLabel(edge, paths);\n });\n graph.nodes().forEach(function(v) {\n const n = graph.node(v);\n log.info(v, n.type, n.diff);\n if (n.isGroup) {\n diff = n.diff;\n }\n });\n log.warn(\"Returning from recursive render XAX\", elem, diff);\n return { elem, diff };\n}, \"recursiveRender\");\nvar render = /* @__PURE__ */ __name(async (data4Layout, svg) => {\n const graph = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: data4Layout.direction,\n nodesep: data4Layout.config?.nodeSpacing || data4Layout.config?.flowchart?.nodeSpacing || data4Layout.nodeSpacing,\n ranksep: data4Layout.config?.rankSpacing || data4Layout.config?.flowchart?.rankSpacing || data4Layout.rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function() {\n return {};\n });\n const element = svg.select(\"g\");\n markers_default(element, data4Layout.markers, data4Layout.type, data4Layout.diagramId);\n clear3();\n clear2();\n clear();\n clear4();\n data4Layout.nodes.forEach((node) => {\n graph.setNode(node.id, { ...node });\n if (node.parentId) {\n graph.setParent(node.id, node.parentId);\n }\n });\n log.debug(\"Edges:\", data4Layout.edges);\n data4Layout.edges.forEach((edge) => {\n if (edge.start === edge.end) {\n const nodeId = edge.start;\n const specialId1 = nodeId + \"---\" + nodeId + \"---1\";\n const specialId2 = nodeId + \"---\" + nodeId + \"---2\";\n const node = graph.node(nodeId);\n graph.setNode(specialId1, {\n domId: specialId1,\n id: specialId1,\n parentId: node.parentId,\n labelStyle: \"\",\n label: \"\",\n padding: 0,\n shape: \"labelRect\",\n // shape: 'rect',\n style: \"\",\n width: 10,\n height: 10\n });\n graph.setParent(specialId1, node.parentId);\n graph.setNode(specialId2, {\n domId: specialId2,\n id: specialId2,\n parentId: node.parentId,\n labelStyle: \"\",\n padding: 0,\n // shape: 'rect',\n shape: \"labelRect\",\n label: \"\",\n style: \"\",\n width: 10,\n height: 10\n });\n graph.setParent(specialId2, node.parentId);\n const originalEdge = structuredClone(edge);\n const edge1 = structuredClone(edge);\n const edgeMid = structuredClone(edge);\n const edge2 = structuredClone(edge);\n edge1.originalEdge = originalEdge;\n edge1.selfLoop = { id: originalEdge.id, order: 0 };\n edgeMid.originalEdge = originalEdge;\n edgeMid.selfLoop = { id: originalEdge.id, order: 1 };\n edge2.originalEdge = originalEdge;\n edge2.selfLoop = { id: originalEdge.id, order: 2 };\n edge1.label = \"\";\n edge1.arrowTypeEnd = \"none\";\n edge1.endLabelLeft = \"\";\n edge1.endLabelRight = \"\";\n edge1.startLabelLeft = \"\";\n edge1.id = nodeId + \"-cyclic-special-1\";\n edgeMid.startLabelRight = \"\";\n edgeMid.startLabelLeft = \"\";\n edgeMid.endLabelLeft = \"\";\n edgeMid.endLabelRight = \"\";\n edgeMid.arrowTypeStart = \"none\";\n edgeMid.arrowTypeEnd = \"none\";\n edgeMid.id = nodeId + \"-cyclic-special-mid\";\n edge2.label = \"\";\n edge2.startLabelRight = \"\";\n edge2.startLabelLeft = \"\";\n edge2.arrowTypeStart = \"none\";\n if (node.isGroup) {\n edge1.fromCluster = nodeId;\n edge2.toCluster = nodeId;\n }\n edge2.id = nodeId + \"-cyclic-special-2\";\n edge2.arrowTypeStart = \"none\";\n graph.setEdge(nodeId, specialId1, edge1, nodeId + \"-cyclic-special-0\");\n graph.setEdge(specialId1, specialId2, edgeMid, nodeId + \"-cyclic-special-1\");\n graph.setEdge(specialId2, nodeId, edge2, nodeId + \"-cyclic-special-2\");\n } else {\n graph.setEdge(edge.start, edge.end, { ...edge }, edge.id);\n }\n });\n log.warn(\"Graph at first:\", JSON.stringify(graphlibJson.write(graph)));\n adjustClustersAndEdges(graph);\n log.warn(\"Graph after XAX:\", JSON.stringify(graphlibJson.write(graph)));\n const siteConfig = getConfig();\n await recursiveRender(\n element,\n graph,\n data4Layout.type,\n data4Layout.diagramId,\n void 0,\n siteConfig\n );\n}, \"render\");\nexport {\n getEdgesToRender,\n render\n};\n"],"names":["clamp","__name","value","min","max","getDefaultSelfLoopSide","rankdir","shouldMergeSelfLoopSegments","diagramType","getSelfLoopSide","graph","node","segments","originalNodeId","layoutHints","dummyNodeIds","start","end","id","dummyNode","edge","point","center","acc","dx","dy","getSelfLoopPoints","side","yOffset","labelWidth","x","y","halfWidth","halfHeight","maxSpan","span","depth","bottom","right","left","top","getSelfLoopLabelPosition","points","label","labelHeight","getEdgesToRender","mergeSelfLoops","selfLoopEdgeGroups","edgesToRender","e","key","segment","a","b","firstSegment","middleSegment","lastSegment","originalEdge","labelPosition","mergedEdge","recursiveRender","_elem","parentCluster","siteConfig","log","graphlibJson.write","dir","elem","clusters","edgePaths","edgeLabels","nodes","v","data","ranksep","nodesep","o","newEl","updateNodeBounds","setNodeElem","findNonClusterChild","clusterDb","insertNode","edgePromises","segmentId","insertEdgeLabel","dagreLayout","diff","subGraphTitleTotalMargin","getSubGraphTitleMargins","sortNodesByHierarchy","positionNode","halfPadding","offsetY","insertCluster","parent","edgeOffsetY","startNode","endNode","paths","insertEdge","positionEdgeLabel","n","render","data4Layout","svg","graphlib.Graph","element","markers_default","clear3","clear2","clear","clear4","nodeId","specialId1","specialId2","edge1","edgeMid","edge2","adjustClustersAndEdges","getConfig"],"mappings":"mrBA6CA,IAAIA,EAAwBC,EAAAA,OAAO,CAACC,EAAOC,EAAKC,IAAQ,KAAK,IAAID,EAAK,KAAK,IAAIC,EAAKF,CAAK,CAAC,EAAG,OAAO,EAChGG,EAAyCJ,EAAAA,OAAO,CAACK,EAAU,OAAS,CACtE,OAAQA,EAAO,CACb,IAAK,KACH,MAAO,SACT,IAAK,KACH,MAAO,QACT,IAAK,KACH,MAAO,OAET,QACE,MAAO,KACb,CACA,EAAG,wBAAwB,EACvBC,EAA8CN,EAAAA,OAAQO,GAAgBA,IAAgB,aAAeA,IAAgB,gBAAkBA,IAAgB,eAAgB,6BAA6B,EACpMC,EAAkCR,EAAAA,OAAO,CAACS,EAAOC,EAAMC,EAAUC,EAAgBP,IAAY,CAC/F,MAAMQ,EAAc,CAAA,EACdC,EAA+B,IAAI,IAwBzC,GAvBAH,EAAS,QAAQ,CAAC,CAAE,MAAAI,EAAO,IAAAC,CAAG,IAAO,CAC/BD,IAAUH,GACZE,EAAa,I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AA,uBAAuB7G,CAAK,EAC5BsD,EAAAA,IAAI,KAAK,mBAAoB,KAAK,UAAUC,EAAAA,MAAmBvD,CAAK,CAAC,CAAC,EACtE,MAAMqD,EAAayD,EAAAA,WAAS,EAC5B,MAAM5D,EACJ+C,EACAjG,EACA8F,EAAY,KACZA,EAAY,UACZ,OACAzC,CACJ,CACA,EAAG,QAAQ","x_google_ignoreList":[0]}
@@ -20,7 +20,6 @@ var G = /* @__PURE__ */ w((n, t, g) => Math.max(t, Math.min(g, n)), "clamp"), B
20
20
  return "right";
21
21
  case "RL":
22
22
  return "left";
23
- case "TB":
24
23
  default:
25
24
  return "top";
26
25
  }
@@ -75,7 +74,6 @@ var G = /* @__PURE__ */ w((n, t, g) => Math.max(t, Math.min(g, n)), "clamp"), B
75
74
  { x: o, y: i + a / 2 }
76
75
  ];
77
76
  }
78
- case "top":
79
77
  default: {
80
78
  const o = i - f;
81
79
  return [
@@ -95,7 +93,6 @@ var G = /* @__PURE__ */ w((n, t, g) => Math.max(t, Math.min(g, n)), "clamp"), B
95
93
  return { x: Math.max(...t.map((r) => r.x)) + h / 2 + 4, y: f };
96
94
  case "left":
97
95
  return { x: Math.min(...t.map((r) => r.x)) - h / 2 - 4, y: f };
98
- case "top":
99
96
  default:
100
97
  return { x: s, y: Math.min(...t.map((r) => r.y)) - a / 2 - 4 };
101
98
  }