@windrun-huaiin/third-ui 7.6.1 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (577) hide show
  1. package/dist/_virtual/advancedFormat.js +1 -1
  2. package/dist/_virtual/advancedFormat.mjs +1 -1
  3. package/dist/_virtual/customParseFormat.js +1 -1
  4. package/dist/_virtual/customParseFormat.mjs +1 -1
  5. package/dist/_virtual/dayjs.min.js +1 -1
  6. package/dist/_virtual/dayjs.min.mjs +1 -1
  7. package/dist/_virtual/isoWeek.js +1 -1
  8. package/dist/_virtual/isoWeek.mjs +1 -1
  9. package/dist/clerk/clerk-organization.js +1 -1
  10. package/dist/clerk/clerk-organization.mjs +1 -1
  11. package/dist/clerk/{clerk-page-generator-client.js → clerk-page-context-generator.js} +2 -2
  12. package/dist/clerk/{clerk-page-generator-client.mjs → clerk-page-context-generator.mjs} +2 -2
  13. package/dist/clerk/clerk-page-generator.js +3 -3
  14. package/dist/clerk/clerk-page-generator.mjs +3 -3
  15. package/dist/clerk/clerk-user-client.js +4 -3
  16. package/dist/clerk/clerk-user-client.mjs +4 -3
  17. package/dist/clerk/clerk-user.js +1 -1
  18. package/dist/clerk/clerk-user.mjs +1 -1
  19. package/dist/clerk/fingerprint/fingerprint-client.js +1 -1
  20. package/dist/clerk/fingerprint/fingerprint-client.mjs +1 -1
  21. package/dist/clerk/fingerprint/fingerprint-provider.js +147 -56
  22. package/dist/clerk/fingerprint/fingerprint-provider.mjs +148 -57
  23. package/dist/clerk/fingerprint/fingerprint-server.d.ts +16 -0
  24. package/dist/clerk/fingerprint/fingerprint-server.js +18 -0
  25. package/dist/clerk/fingerprint/fingerprint-server.mjs +18 -1
  26. package/dist/clerk/fingerprint/server.js +1 -0
  27. package/dist/clerk/fingerprint/server.mjs +1 -1
  28. package/dist/clerk/fingerprint/types.d.ts +13 -2
  29. package/dist/clerk/fingerprint/use-fingerprint.js +1 -1
  30. package/dist/clerk/fingerprint/use-fingerprint.mjs +1 -1
  31. package/dist/clerk/index.d.ts +2 -1
  32. package/dist/clerk/index.js +5 -3
  33. package/dist/clerk/index.mjs +2 -1
  34. package/dist/clerk/signin-with-fingerprint-client.js +4 -11
  35. package/dist/clerk/signin-with-fingerprint-client.mjs +4 -11
  36. package/dist/clerk/signup-button-with-fingerprint-client.d.ts +6 -0
  37. package/dist/clerk/signup-button-with-fingerprint-client.js +56 -0
  38. package/dist/clerk/signup-button-with-fingerprint-client.mjs +54 -0
  39. package/dist/clerk/signup-with-fingerprint-client.js +4 -11
  40. package/dist/clerk/signup-with-fingerprint-client.mjs +4 -11
  41. package/dist/fuma/base/custom-header.d.ts +38 -0
  42. package/dist/fuma/base/custom-header.js +163 -0
  43. package/dist/fuma/base/custom-header.mjs +161 -0
  44. package/dist/fuma/base/custom-home-layout.d.ts +68 -0
  45. package/dist/fuma/base/custom-home-layout.js +48 -0
  46. package/dist/fuma/base/custom-home-layout.mjs +46 -0
  47. package/dist/fuma/base/index.d.ts +2 -0
  48. package/dist/fuma/base/index.js +9 -0
  49. package/dist/fuma/base/index.mjs +2 -0
  50. package/dist/fuma/fuma-banner-suit.d.ts +2 -1
  51. package/dist/fuma/fuma-banner-suit.js +9 -3
  52. package/dist/fuma/fuma-banner-suit.mjs +9 -3
  53. package/dist/fuma/fuma-page-genarator.d.ts +4 -1
  54. package/dist/fuma/fuma-page-genarator.js +15 -6
  55. package/dist/fuma/fuma-page-genarator.mjs +15 -6
  56. package/dist/fuma/fuma-translate-util.d.ts +2 -0
  57. package/dist/fuma/fuma-translate-util.js +40 -0
  58. package/dist/fuma/fuma-translate-util.mjs +38 -0
  59. package/dist/fuma/llm-copy-handler.js +9 -8
  60. package/dist/fuma/llm-copy-handler.mjs +9 -8
  61. package/dist/fuma/mdx/banner.d.ts +7 -1
  62. package/dist/fuma/mdx/banner.js +15 -15
  63. package/dist/fuma/mdx/banner.mjs +15 -15
  64. package/dist/fuma/mdx/fuma-github-info.js +1 -1
  65. package/dist/fuma/mdx/fuma-github-info.mjs +1 -1
  66. package/dist/fuma/mdx/gradient-button.js +29 -18
  67. package/dist/fuma/mdx/gradient-button.mjs +29 -18
  68. package/dist/fuma/mdx/image-zoom.js +2 -2
  69. package/dist/fuma/mdx/image-zoom.mjs +2 -2
  70. package/dist/fuma/mdx/mermaid.js +3 -3
  71. package/dist/fuma/mdx/mermaid.mjs +3 -3
  72. package/dist/fuma/mdx/toc-base.js +9 -4
  73. package/dist/fuma/mdx/toc-base.mjs +9 -4
  74. package/dist/fuma/mdx/zia-card.js +3 -3
  75. package/dist/fuma/mdx/zia-card.mjs +3 -3
  76. package/dist/fuma/mdx/zia-file.js +1 -1
  77. package/dist/fuma/mdx/zia-file.mjs +1 -1
  78. package/dist/fuma/server.d.ts +1 -0
  79. package/dist/fuma/server.js +2 -0
  80. package/dist/fuma/server.mjs +1 -0
  81. package/dist/fuma/site-x.js +1 -1
  82. package/dist/fuma/site-x.mjs +1 -1
  83. package/dist/lib/fuma-schema-check-util.d.ts +4 -57
  84. package/dist/lib/fuma-schema-check-util.js +10 -31
  85. package/dist/lib/fuma-schema-check-util.mjs +11 -29
  86. package/dist/lib/server.d.ts +0 -1
  87. package/dist/lib/server.js +0 -5
  88. package/dist/lib/server.mjs +1 -2
  89. package/dist/main/ai-prompt-textarea.js +1 -1
  90. package/dist/main/ai-prompt-textarea.mjs +1 -1
  91. package/dist/main/credit/credit-nav-button.d.ts +21 -0
  92. package/dist/main/credit/credit-nav-button.js +117 -0
  93. package/dist/main/credit/credit-nav-button.mjs +114 -0
  94. package/dist/main/credit/credit-overview-client.d.ts +26 -0
  95. package/dist/main/credit/credit-overview-client.js +269 -0
  96. package/dist/main/credit/credit-overview-client.mjs +267 -0
  97. package/dist/main/credit/credit-overview.d.ts +8 -0
  98. package/dist/main/credit/credit-overview.js +34 -0
  99. package/dist/main/credit/credit-overview.mjs +32 -0
  100. package/dist/main/credit/types.d.ts +68 -0
  101. package/dist/main/cta.js +3 -2
  102. package/dist/main/cta.mjs +3 -2
  103. package/dist/main/faq.js +5 -4
  104. package/dist/main/faq.mjs +5 -4
  105. package/dist/main/features.js +3 -2
  106. package/dist/main/features.mjs +3 -2
  107. package/dist/main/footer.js +2 -2
  108. package/dist/main/footer.mjs +2 -2
  109. package/dist/main/gallery/gallery-desktop-grid.d.ts +6 -0
  110. package/dist/main/gallery/gallery-desktop-grid.js +10 -0
  111. package/dist/main/gallery/gallery-desktop-grid.mjs +8 -0
  112. package/dist/main/gallery/gallery-interactive.d.ts +4 -0
  113. package/dist/main/gallery/gallery-interactive.js +128 -0
  114. package/dist/main/gallery/gallery-interactive.mjs +126 -0
  115. package/dist/main/gallery/gallery-mobile-swiper.d.ts +6 -0
  116. package/dist/main/gallery/gallery-mobile-swiper.js +13 -0
  117. package/dist/main/gallery/gallery-mobile-swiper.mjs +11 -0
  118. package/dist/main/gallery/gallery-server.d.ts +2 -0
  119. package/dist/main/gallery/gallery-server.js +44 -0
  120. package/dist/main/gallery/gallery-server.mjs +42 -0
  121. package/dist/main/gallery/gallery-types.d.ts +19 -0
  122. package/dist/main/gallery-interactive.js +1 -1
  123. package/dist/main/gallery-interactive.mjs +1 -1
  124. package/dist/main/gallery.js +6 -5
  125. package/dist/main/gallery.mjs +6 -5
  126. package/dist/main/go-to-top.js +1 -1
  127. package/dist/main/go-to-top.mjs +1 -1
  128. package/dist/main/index.d.ts +3 -1
  129. package/dist/main/index.js +5 -1
  130. package/dist/main/index.mjs +3 -1
  131. package/dist/main/money-price/customer-portal.d.ts +7 -0
  132. package/dist/main/money-price/customer-portal.js +54 -0
  133. package/dist/main/money-price/customer-portal.mjs +52 -0
  134. package/dist/main/money-price/money-price-button.d.ts +1 -1
  135. package/dist/main/money-price/money-price-button.js +162 -42
  136. package/dist/main/money-price/money-price-button.mjs +162 -42
  137. package/dist/main/money-price/money-price-config-util.d.ts +50 -2
  138. package/dist/main/money-price/money-price-config-util.js +177 -4
  139. package/dist/main/money-price/money-price-config-util.mjs +175 -4
  140. package/dist/main/money-price/money-price-data.d.ts +8 -0
  141. package/dist/main/money-price/money-price-data.js +28 -0
  142. package/dist/main/money-price/money-price-data.mjs +26 -0
  143. package/dist/main/money-price/money-price-interactive.d.ts +1 -1
  144. package/dist/main/money-price/money-price-interactive.js +251 -288
  145. package/dist/main/money-price/money-price-interactive.mjs +253 -290
  146. package/dist/main/money-price/money-price-types.d.ts +69 -20
  147. package/dist/main/money-price/money-price.d.ts +1 -1
  148. package/dist/main/money-price/money-price.js +9 -62
  149. package/dist/main/money-price/money-price.mjs +10 -63
  150. package/dist/main/price-plan.js +6 -6
  151. package/dist/main/price-plan.mjs +6 -6
  152. package/dist/main/section-layout.d.ts +1 -0
  153. package/dist/main/section-layout.js +7 -0
  154. package/dist/main/section-layout.mjs +5 -0
  155. package/dist/main/seo-content.js +3 -2
  156. package/dist/main/seo-content.mjs +3 -2
  157. package/dist/main/server.d.ts +6 -3
  158. package/dist/main/server.js +9 -4
  159. package/dist/main/server.mjs +4 -2
  160. package/dist/main/tips.js +3 -2
  161. package/dist/main/tips.mjs +3 -2
  162. package/dist/main/usage.js +4 -3
  163. package/dist/main/usage.mjs +4 -3
  164. package/dist/main/x-button.js +6 -6
  165. package/dist/main/x-button.mjs +6 -6
  166. package/dist/node_modules/.pnpm/@fingerprintjs_fingerprintjs@4.6.2/node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.js +1 -1
  167. package/dist/node_modules/.pnpm/@fingerprintjs_fingerprintjs@4.6.2/node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.mjs +1 -1
  168. package/dist/node_modules/.pnpm/{@iconify_utils@2.3.0 → @iconify_utils@3.0.2}/node_modules/@iconify/utils/lib/customisations/defaults.js +7 -6
  169. package/dist/node_modules/.pnpm/{@iconify_utils@2.3.0 → @iconify_utils@3.0.2}/node_modules/@iconify/utils/lib/customisations/defaults.mjs +7 -6
  170. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon/defaults.js +39 -0
  171. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon/defaults.mjs +34 -0
  172. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon/merge.js +20 -0
  173. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon/merge.mjs +18 -0
  174. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon/name.js +60 -0
  175. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon/name.mjs +57 -0
  176. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon/transformations.js +15 -0
  177. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon/transformations.mjs +13 -0
  178. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon-set/get-icon.js +30 -0
  179. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +27 -0
  180. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon-set/tree.js +26 -0
  181. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/icon-set/tree.mjs +24 -0
  182. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/svg/build.js +118 -0
  183. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/svg/build.mjs +115 -0
  184. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/svg/defs.js +36 -0
  185. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/svg/defs.mjs +32 -0
  186. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/svg/html.js +12 -0
  187. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/svg/html.mjs +10 -0
  188. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/svg/id.js +48 -0
  189. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/svg/id.mjs +46 -0
  190. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/svg/size.js +30 -0
  191. package/dist/node_modules/.pnpm/@iconify_utils@3.0.2/node_modules/@iconify/utils/lib/svg/size.mjs +28 -0
  192. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-U656AL7Q.js +9 -0
  193. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-O4VJ6CD3.mjs → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-U656AL7Q.mjs} +2 -2
  194. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KMC2YHZD.js → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-76Q3JFCE.js} +8 -8
  195. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KMC2YHZD.mjs → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-76Q3JFCE.mjs} +1 -1
  196. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4KMFLZZN.js → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FPAJGGOC.js} +1 -1
  197. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4KMFLZZN.mjs → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FPAJGGOC.mjs} +1 -1
  198. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XRWGC2XP.js → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FWNWRKHM.js} +13 -13
  199. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XRWGC2XP.mjs → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FWNWRKHM.mjs} +1 -1
  200. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-T44TD3VJ.js → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LBM3YZW2.js} +8 -8
  201. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-T44TD3VJ.mjs → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LBM3YZW2.mjs} +1 -1
  202. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WFRQ32O7.js → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LHMN2FUI.js} +8 -8
  203. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WFRQ32O7.mjs → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LHMN2FUI.mjs} +1 -1
  204. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-JEIROHC2.js → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-O7ZBX7Z2.js} +10 -10
  205. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-JEIROHC2.mjs → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-O7ZBX7Z2.mjs} +1 -1
  206. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BN7GFLIU.js → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-S6J4BHB3.js} +8 -8
  207. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BN7GFLIU.mjs → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-S6J4BHB3.mjs} +1 -1
  208. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WFWHJNB7.js → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-T53DSG4Q.js} +10 -10
  209. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WFWHJNB7.mjs → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-T53DSG4Q.mjs} +1 -1
  210. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-F6HP7TQM.js +9 -0
  211. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-ZV4HHKMB.mjs → @mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-F6HP7TQM.mjs} +2 -2
  212. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-NVLQJR56.js +9 -0
  213. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-NVLQJR56.mjs +2 -0
  214. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-BFZMPI3H.js +9 -0
  215. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-BFZMPI3H.mjs +2 -0
  216. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-7BOR55EZ.js +9 -0
  217. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-7BOR55EZ.mjs +2 -0
  218. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-NHE76QYJ.js +9 -0
  219. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-NHE76QYJ.mjs +2 -0
  220. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-KMMF4GRG.js +9 -0
  221. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-KMMF4GRG.mjs +2 -0
  222. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +129 -0
  223. package/dist/node_modules/.pnpm/{@mermaid-js_parser@0.6.2 → @mermaid-js_parser@0.6.3}/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +16 -16
  224. package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +0 -3
  225. package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/cross-count.mjs +0 -3
  226. package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/position/bk.js +24 -4
  227. package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/position/bk.mjs +24 -4
  228. package/dist/node_modules/.pnpm/{dompurify@3.2.6 → dompurify@3.3.0}/node_modules/dompurify/dist/purify.es.js +59 -25
  229. package/dist/node_modules/.pnpm/{dompurify@3.2.6 → dompurify@3.3.0}/node_modules/dompurify/dist/purify.es.mjs +59 -25
  230. package/dist/node_modules/.pnpm/{katex@0.16.22 → katex@0.16.25}/node_modules/katex/dist/katex.js +26 -34
  231. package/dist/node_modules/.pnpm/{katex@0.16.22 → katex@0.16.25}/node_modules/katex/dist/katex.mjs +26 -34
  232. package/dist/node_modules/.pnpm/marked@16.4.2/node_modules/marked/lib/marked.esm.js +84 -0
  233. package/dist/node_modules/.pnpm/marked@16.4.2/node_modules/marked/lib/marked.esm.mjs +74 -0
  234. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-SUXI7LT5.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js} +373 -351
  235. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-SUXI7LT5.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.mjs} +320 -298
  236. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-6J76NXCF.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js} +393 -380
  237. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-6J76NXCF.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.mjs} +162 -149
  238. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-6F6E4RAY.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.js} +126 -125
  239. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-6F6E4RAY.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.mjs} +10 -9
  240. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-353BL4L5.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js} +2 -2
  241. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-353BL4L5.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.mjs} +1 -1
  242. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BFAMUDN2.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js} +2 -2
  243. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BFAMUDN2.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.mjs} +1 -1
  244. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RKKUNAVE.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6MN3ZHY7.js} +15 -15
  245. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RKKUNAVE.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6MN3ZHY7.mjs} +15 -15
  246. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3XYRH5AP.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js} +142 -203
  247. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3XYRH5AP.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.mjs} +27 -85
  248. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +81 -0
  249. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.mjs +76 -0
  250. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-UWXLY5YG.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js} +30 -11
  251. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-UWXLY5YG.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.mjs} +22 -3
  252. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-SZ463SBG.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-B4BG7PRW.js} +207 -205
  253. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-SZ463SBG.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-B4BG7PRW.mjs} +132 -130
  254. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AC5SNWB5.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js} +2 -2
  255. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AC5SNWB5.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.mjs} +1 -1
  256. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OW32GOEJ.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js} +98 -97
  257. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OW32GOEJ.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.mjs} +10 -9
  258. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-P3VETL53.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js} +4 -3
  259. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-P3VETL53.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.mjs} +2 -1
  260. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-E2GYISFI.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js} +2 -2
  261. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-E2GYISFI.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.mjs} +1 -1
  262. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MXNHSMXR.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js} +17 -9
  263. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MXNHSMXR.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.mjs} +11 -5
  264. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QESNASVV.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js} +51 -50
  265. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QESNASVV.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.mjs} +23 -22
  266. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JW4RIYDF.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js} +731 -440
  267. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JW4RIYDF.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.mjs} +404 -113
  268. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-L5ZGVLVO.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js} +139 -139
  269. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-L5ZGVLVO.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.mjs} +5 -5
  270. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-IWUHOULB.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js} +29 -22
  271. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-IWUHOULB.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.mjs} +13 -6
  272. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-SKB7J2MH.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js} +7 -6
  273. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-SKB7J2MH.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.mjs} +2 -1
  274. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-M6DAPIYF.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js} +211 -85
  275. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-M6DAPIYF.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.mjs} +142 -16
  276. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AACKK3MU.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js} +2 -2
  277. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AACKK3MU.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.mjs} +1 -1
  278. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55PJQP7W.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js} +61 -49
  279. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55PJQP7W.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.mjs} +13 -1
  280. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-67H74DCK.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js} +10 -9
  281. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-67H74DCK.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.mjs} +2 -1
  282. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +31 -0
  283. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-M3E45YP4.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.mjs} +9 -8
  284. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +31 -0
  285. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-YAWTLIQI.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.mjs} +9 -8
  286. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +302 -0
  287. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.mjs +300 -0
  288. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/dagre-JOIXM2OF.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js} +123 -122
  289. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/dagre-JOIXM2OF.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.mjs} +12 -11
  290. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-VMROVX33.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js} +46 -45
  291. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-VMROVX33.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.mjs} +8 -7
  292. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-ZTM2IBQH.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js} +45 -44
  293. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-ZTM2IBQH.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.mjs} +6 -5
  294. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5UYTHUR4.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js} +68 -57
  295. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5UYTHUR4.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.mjs} +56 -45
  296. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-3M52JZNH.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q2GNP2WA.js} +70 -69
  297. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-3M52JZNH.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q2GNP2WA.mjs} +14 -13
  298. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-KYDEHFYC.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-NV44I4VS.js} +97 -93
  299. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-KYDEHFYC.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-NV44I4VS.mjs} +20 -16
  300. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-EK5VF46D.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-LVOFAZNH.js} +134 -125
  301. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-EK5VF46D.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-LVOFAZNH.mjs} +27 -18
  302. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-GW3U2K7C.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-NY62KEGX.js} +116 -115
  303. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-GW3U2K7C.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-NY62KEGX.mjs} +6 -5
  304. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-ER5ION4S.js +42 -0
  305. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-LHK5PUON.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-ER5ION4S.mjs} +5 -4
  306. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-EWQZEKCU.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js} +100 -99
  307. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-EWQZEKCU.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.mjs} +10 -9
  308. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-ZSS6B67P.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.js} +79 -78
  309. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-ZSS6B67P.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.mjs} +12 -11
  310. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-6CBA2TL7.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.js} +277 -379
  311. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-6CBA2TL7.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.mjs} +234 -336
  312. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-NIOCPIFQ.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js} +58 -56
  313. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-NIOCPIFQ.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.mjs} +30 -28
  314. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-2OG54O6I.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-AYHSOK5B.js} +96 -95
  315. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-2OG54O6I.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-AYHSOK5B.mjs} +6 -5
  316. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-QOLK2EJ7.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-UZGBJVZJ.js} +64 -63
  317. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-QOLK2EJ7.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-UZGBJVZJ.mjs} +14 -13
  318. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-4UZDY2LN.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js} +73 -69
  319. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-4UZDY2LN.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.mjs} +17 -13
  320. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SKLFT4DO.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js} +839 -376
  321. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SKLFT4DO.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.mjs} +591 -128
  322. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-MI5ZYTHO.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js} +94 -93
  323. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-MI5ZYTHO.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.mjs} +12 -11
  324. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +31 -0
  325. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-5AN5P6BG.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.mjs} +9 -8
  326. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-MYPXXCX6.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js} +93 -92
  327. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-MYPXXCX6.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.mjs} +8 -7
  328. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-H2YORKM3.js → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js} +136 -133
  329. package/dist/node_modules/.pnpm/{mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-H2YORKM3.mjs → mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.mjs} +43 -40
  330. package/dist/node_modules/.pnpm/{mermaid@11.9.0 → mermaid@11.12.1}/node_modules/mermaid/dist/mermaid.core.js +226 -225
  331. package/dist/node_modules/.pnpm/{mermaid@11.9.0 → mermaid@11.12.1}/node_modules/mermaid/dist/mermaid.core.mjs +43 -42
  332. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.3.0_react-dom@19.1.0_react@19.1.0__react@19.1.0 → react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-medium-image-zoom/dist/index.js +16 -12
  333. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.3.0_react-dom@19.1.0_react@19.1.0__react@19.1.0 → react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-medium-image-zoom/dist/index.mjs +16 -12
  334. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.js +461 -0
  335. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.mjs +459 -0
  336. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/classes-to-selector.js +8 -0
  337. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/classes-to-selector.mjs +6 -0
  338. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/create-element-if-not-defined.js +23 -0
  339. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/create-element-if-not-defined.mjs +21 -0
  340. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/ssr-window.esm.js +143 -0
  341. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/ssr-window.esm.mjs +140 -0
  342. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/swiper-core.js +3874 -0
  343. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/swiper-core.mjs +3871 -0
  344. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/update-on-virtual-data.js +129 -0
  345. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/update-on-virtual-data.mjs +124 -0
  346. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/update-swiper.js +226 -0
  347. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/update-swiper.mjs +216 -0
  348. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/utils.js +310 -0
  349. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/utils.mjs +288 -0
  350. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/swiper-react.js +390 -0
  351. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/swiper-react.mjs +387 -0
  352. package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/native.js +6 -0
  353. package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/native.mjs +4 -0
  354. package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.js +15 -0
  355. package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.mjs +13 -0
  356. package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
  357. package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.mjs +28 -0
  358. package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js +21 -0
  359. package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
  360. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/errors.js +52 -0
  361. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/errors.mjs +50 -0
  362. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/iso.js +44 -0
  363. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/iso.mjs +35 -0
  364. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.js +31 -0
  365. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.mjs +18 -0
  366. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.js +492 -0
  367. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.mjs +439 -0
  368. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.js +434 -0
  369. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.mjs +388 -0
  370. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js +245 -0
  371. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.mjs +232 -0
  372. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.js +68 -0
  373. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.mjs +62 -0
  374. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js +80 -0
  375. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.mjs +75 -0
  376. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js +101 -0
  377. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.mjs +86 -0
  378. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.js +102 -0
  379. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.mjs +76 -0
  380. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.js +56 -0
  381. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.mjs +52 -0
  382. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js +952 -0
  383. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.mjs +909 -0
  384. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.js +182 -0
  385. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.mjs +163 -0
  386. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.js +9 -0
  387. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.mjs +7 -0
  388. package/package.json +27 -21
  389. package/src/clerk/{clerk-page-generator-client.tsx → clerk-page-context-generator.tsx} +2 -2
  390. package/src/clerk/clerk-page-generator.tsx +3 -3
  391. package/src/clerk/clerk-user-client.tsx +7 -12
  392. package/src/clerk/fingerprint/fingerprint-provider.tsx +311 -112
  393. package/src/clerk/fingerprint/fingerprint-server.ts +33 -5
  394. package/src/clerk/fingerprint/types.ts +16 -2
  395. package/src/clerk/fingerprint/use-fingerprint.ts +1 -1
  396. package/src/clerk/index.ts +2 -1
  397. package/src/clerk/signin-with-fingerprint-client.tsx +3 -11
  398. package/src/clerk/signup-button-with-fingerprint-client.tsx +87 -0
  399. package/src/clerk/signup-with-fingerprint-client.tsx +3 -11
  400. package/src/fuma/base/custom-header.tsx +574 -0
  401. package/src/fuma/base/custom-home-layout.tsx +146 -0
  402. package/src/fuma/base/index.ts +2 -0
  403. package/src/fuma/fuma-banner-suit.tsx +22 -5
  404. package/src/fuma/fuma-page-genarator.tsx +29 -9
  405. package/src/fuma/fuma-translate-util.ts +44 -0
  406. package/src/fuma/llm-copy-handler.ts +8 -7
  407. package/src/fuma/mdx/airtical-card.tsx +1 -1
  408. package/src/fuma/mdx/banner.tsx +25 -7
  409. package/src/fuma/mdx/gradient-button.tsx +43 -26
  410. package/src/fuma/mdx/mermaid.tsx +2 -2
  411. package/src/fuma/mdx/toc-base.tsx +9 -4
  412. package/src/fuma/mdx/zia-card.tsx +6 -6
  413. package/src/fuma/server.ts +1 -0
  414. package/src/lib/fuma-schema-check-util.ts +11 -40
  415. package/src/lib/server.ts +0 -1
  416. package/src/main/ai-prompt-textarea.tsx +1 -1
  417. package/src/main/credit/credit-nav-button.tsx +283 -0
  418. package/src/main/credit/credit-overview-client.tsx +552 -0
  419. package/src/main/credit/credit-overview.tsx +53 -0
  420. package/src/main/credit/types.ts +89 -0
  421. package/src/main/cta.tsx +9 -8
  422. package/src/main/faq.tsx +4 -3
  423. package/src/main/features.tsx +3 -3
  424. package/src/main/footer.tsx +1 -1
  425. package/src/main/gallery/gallery-desktop-grid.tsx +41 -0
  426. package/src/main/gallery/gallery-interactive.tsx +153 -0
  427. package/src/main/gallery/gallery-mobile-swiper.tsx +65 -0
  428. package/src/main/gallery/gallery-server.tsx +46 -0
  429. package/src/main/gallery/gallery-types.ts +22 -0
  430. package/src/main/go-to-top.tsx +1 -1
  431. package/src/main/index.ts +5 -3
  432. package/src/main/money-price/customer-portal.ts +63 -0
  433. package/src/main/money-price/money-price-button.tsx +211 -56
  434. package/src/main/money-price/money-price-config-util.ts +222 -5
  435. package/src/main/money-price/money-price-data.ts +49 -0
  436. package/src/main/money-price/money-price-interactive.tsx +479 -356
  437. package/src/main/money-price/money-price-types.ts +76 -22
  438. package/src/main/money-price/money-price.tsx +28 -267
  439. package/src/main/price-plan.tsx +3 -3
  440. package/src/main/section-layout.ts +5 -0
  441. package/src/main/seo-content.tsx +2 -2
  442. package/src/main/server.ts +15 -4
  443. package/src/main/tips.tsx +2 -2
  444. package/src/main/usage.tsx +4 -4
  445. package/src/main/x-button.tsx +13 -13
  446. package/src/styles/fuma.css +38 -13
  447. package/src/styles/third-ui.css +37 -2
  448. package/dist/lib/fuma-search-util.d.ts +0 -2
  449. package/dist/lib/fuma-search-util.js +0 -8
  450. package/dist/lib/fuma-search-util.mjs +0 -6
  451. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.js +0 -29
  452. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.mjs +0 -24
  453. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.js +0 -22
  454. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.mjs +0 -20
  455. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/name.js +0 -55
  456. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/name.mjs +0 -52
  457. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.js +0 -18
  458. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.mjs +0 -16
  459. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -29
  460. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +0 -26
  461. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -25
  462. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.mjs +0 -23
  463. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.js +0 -122
  464. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.mjs +0 -119
  465. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.js +0 -34
  466. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.mjs +0 -30
  467. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/html.js +0 -11
  468. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/html.mjs +0 -9
  469. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/id.js +0 -30
  470. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/id.mjs +0 -28
  471. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.js +0 -42
  472. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.mjs +0 -40
  473. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-O4VJ6CD3.js +0 -9
  474. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-ZV4HHKMB.js +0 -9
  475. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-63CPKGFF.js +0 -9
  476. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-63CPKGFF.mjs +0 -2
  477. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-HUATNLJX.js +0 -9
  478. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-HUATNLJX.mjs +0 -2
  479. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WTHONI2E.js +0 -9
  480. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WTHONI2E.mjs +0 -2
  481. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-NJJJXTRR.js +0 -9
  482. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-NJJJXTRR.mjs +0 -2
  483. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-75Q7IDZK.js +0 -9
  484. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-75Q7IDZK.mjs +0 -2
  485. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.6.2/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +0 -129
  486. package/dist/node_modules/.pnpm/marked@16.1.2/node_modules/marked/lib/marked.esm.js +0 -83
  487. package/dist/node_modules/.pnpm/marked@16.1.2/node_modules/marked/lib/marked.esm.mjs +0 -73
  488. package/dist/node_modules/.pnpm/mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-M3E45YP4.js +0 -30
  489. package/dist/node_modules/.pnpm/mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-YAWTLIQI.js +0 -30
  490. package/dist/node_modules/.pnpm/mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-LHK5PUON.js +0 -41
  491. package/dist/node_modules/.pnpm/mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-5AN5P6BG.js +0 -30
  492. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js +0 -135
  493. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.mjs +0 -132
  494. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js +0 -11
  495. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.mjs +0 -8
  496. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js +0 -8
  497. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.mjs +0 -8
  498. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js +0 -122
  499. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.mjs +0 -111
  500. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js +0 -138
  501. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.mjs +0 -135
  502. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js +0 -113
  503. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.mjs +0 -111
  504. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js +0 -3339
  505. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.mjs +0 -3297
  506. package/src/lib/fuma-search-util.ts +0 -6
  507. package/src/main/gallery-interactive.tsx +0 -171
  508. package/src/main/gallery.tsx +0 -98
  509. /package/dist/clerk/{clerk-page-generator-client.d.ts → clerk-page-context-generator.d.ts} +0 -0
  510. /package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.2 → @rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.3}/node_modules/tslib/tslib.es6.js +0 -0
  511. /package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.2 → @rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.3}/node_modules/tslib/tslib.es6.mjs +0 -0
  512. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/acyclic.js +0 -0
  513. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/acyclic.mjs +0 -0
  514. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +0 -0
  515. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/add-border-segments.mjs +0 -0
  516. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +0 -0
  517. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/coordinate-system.mjs +0 -0
  518. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/data/list.js +0 -0
  519. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/data/list.mjs +0 -0
  520. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +0 -0
  521. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/greedy-fas.mjs +0 -0
  522. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/layout.js +0 -0
  523. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/layout.mjs +0 -0
  524. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +0 -0
  525. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/nesting-graph.mjs +0 -0
  526. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/normalize.js +0 -0
  527. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/normalize.mjs +0 -0
  528. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +0 -0
  529. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.mjs +0 -0
  530. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +0 -0
  531. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/barycenter.mjs +0 -0
  532. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +0 -0
  533. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.mjs +0 -0
  534. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/index.js +0 -0
  535. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/index.mjs +0 -0
  536. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/init-order.js +0 -0
  537. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/init-order.mjs +0 -0
  538. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +0 -0
  539. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.mjs +0 -0
  540. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +0 -0
  541. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.mjs +0 -0
  542. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/sort.js +0 -0
  543. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/order/sort.mjs +0 -0
  544. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +0 -0
  545. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.mjs +0 -0
  546. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/position/index.js +0 -0
  547. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/position/index.mjs +0 -0
  548. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +0 -0
  549. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.mjs +0 -0
  550. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/rank/index.js +0 -0
  551. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/rank/index.mjs +0 -0
  552. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +0 -0
  553. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.mjs +0 -0
  554. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/rank/util.js +0 -0
  555. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/rank/util.mjs +0 -0
  556. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/util.js +0 -0
  557. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/dagre/util.mjs +0 -0
  558. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +0 -0
  559. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/alg/dfs.mjs +0 -0
  560. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +0 -0
  561. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/alg/postorder.mjs +0 -0
  562. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +0 -0
  563. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/alg/preorder.mjs +0 -0
  564. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +0 -0
  565. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/alg/topsort.mjs +0 -0
  566. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/graph.js +0 -0
  567. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/graph.mjs +0 -0
  568. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/json.js +0 -0
  569. /package/dist/node_modules/.pnpm/{dagre-d3-es@7.0.11 → dagre-d3-es@7.0.13}/node_modules/dagre-d3-es/src/graphlib/json.mjs +0 -0
  570. /package/dist/node_modules/.pnpm/{dayjs@1.11.13 → dayjs@1.11.19}/node_modules/dayjs/dayjs.min.js +0 -0
  571. /package/dist/node_modules/.pnpm/{dayjs@1.11.13 → dayjs@1.11.19}/node_modules/dayjs/dayjs.min.mjs +0 -0
  572. /package/dist/node_modules/.pnpm/{dayjs@1.11.13 → dayjs@1.11.19}/node_modules/dayjs/plugin/advancedFormat.js +0 -0
  573. /package/dist/node_modules/.pnpm/{dayjs@1.11.13 → dayjs@1.11.19}/node_modules/dayjs/plugin/advancedFormat.mjs +0 -0
  574. /package/dist/node_modules/.pnpm/{dayjs@1.11.13 → dayjs@1.11.19}/node_modules/dayjs/plugin/customParseFormat.js +0 -0
  575. /package/dist/node_modules/.pnpm/{dayjs@1.11.13 → dayjs@1.11.19}/node_modules/dayjs/plugin/customParseFormat.mjs +0 -0
  576. /package/dist/node_modules/.pnpm/{dayjs@1.11.13 → dayjs@1.11.19}/node_modules/dayjs/plugin/isoWeek.js +0 -0
  577. /package/dist/node_modules/.pnpm/{dayjs@1.11.13 → dayjs@1.11.19}/node_modules/dayjs/plugin/isoWeek.mjs +0 -0
@@ -1,34 +1,35 @@
1
1
  'use strict';
2
2
 
3
- var chunkAC5SNWB5 = require('./chunk-AC5SNWB5.js');
4
- var chunkUWXLY5YG = require('./chunk-UWXLY5YG.js');
5
- var chunkQESNASVV = require('./chunk-QESNASVV.js');
6
- var chunk55PJQP7W = require('./chunk-55PJQP7W.js');
7
- var chunk3XYRH5AP = require('./chunk-3XYRH5AP.js');
3
+ var chunkCVBHYZKI = require('./chunk-CVBHYZKI.js');
4
+ var chunkATLVNIR6 = require('./chunk-ATLVNIR6.js');
5
+ var chunkJA3XYJ7Z = require('./chunk-JA3XYJ7Z.js');
6
+ var chunkS3R3BYOJ = require('./chunk-S3R3BYOJ.js');
7
+ var chunkABZYJK2D = require('./chunk-ABZYJK2D.js');
8
+ var chunkAGHRB4JF = require('./chunk-AGHRB4JF.js');
8
9
  require('../../../../../../d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.js');
9
10
  require('../../../../../../d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.js');
10
11
  var rough_esm = require('../../../../../../roughjs@4.6.6/node_modules/roughjs/bundled/rough.esm.js');
11
12
  var select = require('../../../../../../d3-selection@3.0.0/node_modules/d3-selection/src/select.js');
12
13
 
13
- var labelHelper = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node, _classes) => {
14
+ var labelHelper = /* @__PURE__ */ chunkAGHRB4JF.__name(async (parent, node, _classes) => {
14
15
  let cssClasses;
15
- const useHtmlLabels = node.useHtmlLabels || chunk3XYRH5AP.evaluate(chunk3XYRH5AP.getConfig2()?.htmlLabels);
16
+ const useHtmlLabels = node.useHtmlLabels || chunkABZYJK2D.evaluate(chunkABZYJK2D.getConfig2()?.htmlLabels);
16
17
  if (!_classes) {
17
18
  cssClasses = "node default";
18
19
  } else {
19
20
  cssClasses = _classes;
20
21
  }
21
22
  const shapeSvg = parent.insert("g").attr("class", cssClasses).attr("id", node.domId || node.id);
22
- const labelEl = shapeSvg.insert("g").attr("class", "label").attr("style", chunk55PJQP7W.handleUndefinedAttr(node.labelStyle));
23
+ const labelEl = shapeSvg.insert("g").attr("class", "label").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(node.labelStyle));
23
24
  let label;
24
25
  if (node.label === void 0) {
25
26
  label = "";
26
27
  } else {
27
28
  label = typeof node.label === "string" ? node.label : node.label[0];
28
29
  }
29
- const text2 = await chunkQESNASVV.createText(labelEl, chunk3XYRH5AP.sanitizeText(chunk55PJQP7W.decodeEntities(label), chunk3XYRH5AP.getConfig2()), {
30
+ const text2 = await chunkJA3XYJ7Z.createText(labelEl, chunkABZYJK2D.sanitizeText(chunkS3R3BYOJ.decodeEntities(label), chunkABZYJK2D.getConfig2()), {
30
31
  useHtmlLabels,
31
- width: node.width || chunk3XYRH5AP.getConfig2().flowchart?.wrappingWidth,
32
+ width: node.width || chunkABZYJK2D.getConfig2().flowchart?.wrappingWidth,
32
33
  // @ts-expect-error -- This is currently not used. Should this be `classes` instead?
33
34
  cssClasses: "markdown-node-label",
34
35
  style: node.labelStyle,
@@ -49,9 +50,9 @@ var labelHelper = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node, _cla
49
50
  img.style.display = "flex";
50
51
  img.style.flexDirection = "column";
51
52
  if (noImgText) {
52
- const bodyFontSize = chunk3XYRH5AP.getConfig2().fontSize ? chunk3XYRH5AP.getConfig2().fontSize : window.getComputedStyle(document.body).fontSize;
53
+ const bodyFontSize = chunkABZYJK2D.getConfig2().fontSize ? chunkABZYJK2D.getConfig2().fontSize : window.getComputedStyle(document.body).fontSize;
53
54
  const enlargingFactor = 5;
54
- const [parsedBodyFontSize = chunk3XYRH5AP.defaultConfig_default.fontSize] = chunk55PJQP7W.parseFontSize(bodyFontSize);
55
+ const [parsedBodyFontSize = chunkABZYJK2D.defaultConfig_default.fontSize] = chunkS3R3BYOJ.parseFontSize(bodyFontSize);
55
56
  const width = parsedBodyFontSize * enlargingFactor + "px";
56
57
  img.style.minWidth = width;
57
58
  img.style.maxWidth = width;
@@ -60,7 +61,7 @@ var labelHelper = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node, _cla
60
61
  }
61
62
  res(img);
62
63
  }
63
- chunk3XYRH5AP.__name(setupImage, "setupImage");
64
+ chunkAGHRB4JF.__name(setupImage, "setupImage");
64
65
  setTimeout(() => {
65
66
  if (img.complete) {
66
67
  setupImage();
@@ -87,18 +88,18 @@ var labelHelper = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node, _cla
87
88
  labelEl.insert("rect", ":first-child");
88
89
  return { shapeSvg, bbox, halfPadding, label: labelEl };
89
90
  }, "labelHelper");
90
- var insertLabel = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, label, options) => {
91
- const useHtmlLabels = options.useHtmlLabels || chunk3XYRH5AP.evaluate(chunk3XYRH5AP.getConfig2()?.flowchart?.htmlLabels);
91
+ var insertLabel = /* @__PURE__ */ chunkAGHRB4JF.__name(async (parent, label, options) => {
92
+ const useHtmlLabels = options.useHtmlLabels || chunkABZYJK2D.evaluate(chunkABZYJK2D.getConfig2()?.flowchart?.htmlLabels);
92
93
  const labelEl = parent.insert("g").attr("class", "label").attr("style", options.labelStyle || "");
93
- const text2 = await chunkQESNASVV.createText(labelEl, chunk3XYRH5AP.sanitizeText(chunk55PJQP7W.decodeEntities(label), chunk3XYRH5AP.getConfig2()), {
94
+ const text2 = await chunkJA3XYJ7Z.createText(labelEl, chunkABZYJK2D.sanitizeText(chunkS3R3BYOJ.decodeEntities(label), chunkABZYJK2D.getConfig2()), {
94
95
  useHtmlLabels,
95
- width: options.width || chunk3XYRH5AP.getConfig2()?.flowchart?.wrappingWidth,
96
+ width: options.width || chunkABZYJK2D.getConfig2()?.flowchart?.wrappingWidth,
96
97
  style: options.labelStyle,
97
98
  addSvgBackground: !!options.icon || !!options.img
98
99
  });
99
100
  let bbox = text2.getBBox();
100
101
  const halfPadding = options.padding / 2;
101
- if (chunk3XYRH5AP.evaluate(chunk3XYRH5AP.getConfig2()?.flowchart?.htmlLabels)) {
102
+ if (chunkABZYJK2D.evaluate(chunkABZYJK2D.getConfig2()?.flowchart?.htmlLabels)) {
102
103
  const div = text2.children[0];
103
104
  const dv = select(text2);
104
105
  bbox = div.getBoundingClientRect();
@@ -116,18 +117,18 @@ var insertLabel = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, label, opt
116
117
  labelEl.insert("rect", ":first-child");
117
118
  return { shapeSvg: parent, bbox, halfPadding, label: labelEl };
118
119
  }, "insertLabel");
119
- var updateNodeBounds = /* @__PURE__ */ chunk3XYRH5AP.__name((node, element) => {
120
+ var updateNodeBounds = /* @__PURE__ */ chunkAGHRB4JF.__name((node, element) => {
120
121
  const bbox = element.node().getBBox();
121
122
  node.width = bbox.width;
122
123
  node.height = bbox.height;
123
124
  }, "updateNodeBounds");
124
- var getNodeClasses = /* @__PURE__ */ chunk3XYRH5AP.__name((node, extra) => (node.look === "handDrawn" ? "rough-node" : "node") + " " + node.cssClasses + " " + (extra || ""), "getNodeClasses");
125
+ var getNodeClasses = /* @__PURE__ */ chunkAGHRB4JF.__name((node, extra) => (node.look === "handDrawn" ? "rough-node" : "node") + " " + node.cssClasses + " " + (extra || ""), "getNodeClasses");
125
126
  function createPathFromPoints(points) {
126
127
  const pointStrings = points.map((p, i) => `${i === 0 ? "M" : "L"}${p.x},${p.y}`);
127
128
  pointStrings.push("Z");
128
129
  return pointStrings.join(" ");
129
130
  }
130
- chunk3XYRH5AP.__name(createPathFromPoints, "createPathFromPoints");
131
+ chunkAGHRB4JF.__name(createPathFromPoints, "createPathFromPoints");
131
132
  function generateFullSineWavePoints(x1, y1, x2, y2, amplitude, numCycles) {
132
133
  const points = [];
133
134
  const steps = 50;
@@ -144,7 +145,7 @@ function generateFullSineWavePoints(x1, y1, x2, y2, amplitude, numCycles) {
144
145
  }
145
146
  return points;
146
147
  }
147
- chunk3XYRH5AP.__name(generateFullSineWavePoints, "generateFullSineWavePoints");
148
+ chunkAGHRB4JF.__name(generateFullSineWavePoints, "generateFullSineWavePoints");
148
149
  function generateCirclePoints(centerX, centerY, radius, numPoints, startAngle, endAngle) {
149
150
  const points = [];
150
151
  const startAngleRad = startAngle * Math.PI / 180;
@@ -159,10 +160,10 @@ function generateCirclePoints(centerX, centerY, radius, numPoints, startAngle, e
159
160
  }
160
161
  return points;
161
162
  }
162
- chunk3XYRH5AP.__name(generateCirclePoints, "generateCirclePoints");
163
+ chunkAGHRB4JF.__name(generateCirclePoints, "generateCirclePoints");
163
164
 
164
165
  // src/rendering-util/rendering-elements/intersect/intersect-rect.js
165
- var intersectRect = /* @__PURE__ */ chunk3XYRH5AP.__name((node, point) => {
166
+ var intersectRect = /* @__PURE__ */ chunkAGHRB4JF.__name((node, point) => {
166
167
  var x = node.x;
167
168
  var y = node.y;
168
169
  var dx = point.x - x;
@@ -191,19 +192,19 @@ function applyStyle(dom, styleFn) {
191
192
  dom.attr("style", styleFn);
192
193
  }
193
194
  }
194
- chunk3XYRH5AP.__name(applyStyle, "applyStyle");
195
+ chunkAGHRB4JF.__name(applyStyle, "applyStyle");
195
196
  async function addHtmlLabel(node) {
196
197
  const fo = select(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject"));
197
198
  const div = fo.append("xhtml:div");
199
+ const config = chunkABZYJK2D.getConfig2();
198
200
  let label = node.label;
199
- if (node.label && chunk3XYRH5AP.hasKatex(node.label)) {
200
- label = await chunk3XYRH5AP.renderKatex(node.label.replace(chunk3XYRH5AP.common_default.lineBreakRegex, "\n"), chunk3XYRH5AP.getConfig2());
201
+ if (node.label && chunkABZYJK2D.hasKatex(node.label)) {
202
+ label = await chunkABZYJK2D.renderKatexSanitized(node.label.replace(chunkABZYJK2D.common_default.lineBreakRegex, "\n"), config);
201
203
  }
202
204
  const labelClass = node.isNode ? "nodeLabel" : "edgeLabel";
203
- div.html(
204
- '<span class="' + labelClass + '" ' + (node.labelStyle ? 'style="' + node.labelStyle + '"' : "") + // codeql [js/html-constructed-from-input] : false positive
205
- ">" + label + "</span>"
206
- );
205
+ const labelSpan = '<span class="' + labelClass + '" ' + (node.labelStyle ? 'style="' + node.labelStyle + '"' : "") + // codeql [js/html-constructed-from-input] : false positive
206
+ ">" + label + "</span>";
207
+ div.html(chunkABZYJK2D.sanitizeText(labelSpan, config));
207
208
  applyStyle(div, node.labelStyle);
208
209
  div.style("display", "inline-block");
209
210
  div.style("padding-right", "1px");
@@ -211,18 +212,18 @@ async function addHtmlLabel(node) {
211
212
  div.attr("xmlns", "http://www.w3.org/1999/xhtml");
212
213
  return fo.node();
213
214
  }
214
- chunk3XYRH5AP.__name(addHtmlLabel, "addHtmlLabel");
215
- var createLabel = /* @__PURE__ */ chunk3XYRH5AP.__name(async (_vertexText, style, isTitle, isNode) => {
215
+ chunkAGHRB4JF.__name(addHtmlLabel, "addHtmlLabel");
216
+ var createLabel = /* @__PURE__ */ chunkAGHRB4JF.__name(async (_vertexText, style, isTitle, isNode) => {
216
217
  let vertexText = _vertexText || "";
217
218
  if (typeof vertexText === "object") {
218
219
  vertexText = vertexText[0];
219
220
  }
220
- if (chunk3XYRH5AP.evaluate(chunk3XYRH5AP.getConfig2().flowchart.htmlLabels)) {
221
+ if (chunkABZYJK2D.evaluate(chunkABZYJK2D.getConfig2().flowchart.htmlLabels)) {
221
222
  vertexText = vertexText.replace(/\\n|\n/g, "<br />");
222
- chunk3XYRH5AP.log.info("vertexText" + vertexText);
223
+ chunkAGHRB4JF.log.info("vertexText" + vertexText);
223
224
  const node = {
224
225
  isNode,
225
- label: chunk55PJQP7W.decodeEntities(vertexText).replace(
226
+ label: chunkS3R3BYOJ.decodeEntities(vertexText).replace(
226
227
  /fa[blrs]?:fa-[\w-]+/g,
227
228
  (s) => `<i class='${s.replace(":", " ")}'></i>`
228
229
  ),
@@ -260,7 +261,7 @@ var createLabel = /* @__PURE__ */ chunk3XYRH5AP.__name(async (_vertexText, style
260
261
  var createLabel_default = createLabel;
261
262
 
262
263
  // src/rendering-util/rendering-elements/shapes/roundedRectPath.ts
263
- var createRoundedRectPathD = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, totalWidth, totalHeight, radius) => [
264
+ var createRoundedRectPathD = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, totalWidth, totalHeight, radius) => [
264
265
  "M",
265
266
  x + radius,
266
267
  y,
@@ -318,22 +319,22 @@ var createRoundedRectPathD = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, totalWi
318
319
  ].join(" "), "createRoundedRectPathD");
319
320
 
320
321
  // src/rendering-util/rendering-elements/clusters.js
321
- var rect = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) => {
322
- chunk3XYRH5AP.log.info("Creating subgraph rect for ", node.id, node);
323
- const siteConfig = chunk3XYRH5AP.getConfig2();
322
+ var rect = /* @__PURE__ */ chunkAGHRB4JF.__name(async (parent, node) => {
323
+ chunkAGHRB4JF.log.info("Creating subgraph rect for ", node.id, node);
324
+ const siteConfig = chunkABZYJK2D.getConfig2();
324
325
  const { themeVariables, handDrawnSeed } = siteConfig;
325
326
  const { clusterBkg, clusterBorder } = themeVariables;
326
- const { labelStyles, nodeStyles, borderStyles, backgroundStyles } = chunkUWXLY5YG.styles2String(node);
327
+ const { labelStyles, nodeStyles, borderStyles, backgroundStyles } = chunkATLVNIR6.styles2String(node);
327
328
  const shapeSvg = parent.insert("g").attr("class", "cluster " + node.cssClasses).attr("id", node.id).attr("data-look", node.look);
328
- const useHtmlLabels = chunk3XYRH5AP.evaluate(siteConfig.flowchart.htmlLabels);
329
+ const useHtmlLabels = chunkABZYJK2D.evaluate(siteConfig.flowchart.htmlLabels);
329
330
  const labelEl = shapeSvg.insert("g").attr("class", "cluster-label ");
330
- const text2 = await chunkQESNASVV.createText(labelEl, node.label, {
331
+ const text2 = await chunkJA3XYJ7Z.createText(labelEl, node.label, {
331
332
  style: node.labelStyle,
332
333
  useHtmlLabels,
333
334
  isNode: true
334
335
  });
335
336
  let bbox = text2.getBBox();
336
- if (chunk3XYRH5AP.evaluate(siteConfig.flowchart.htmlLabels)) {
337
+ if (chunkABZYJK2D.evaluate(siteConfig.flowchart.htmlLabels)) {
337
338
  const div = text2.children[0];
338
339
  const dv = select(text2);
339
340
  bbox = div.getBoundingClientRect();
@@ -349,11 +350,11 @@ var rect = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) => {
349
350
  const height = node.height;
350
351
  const x = node.x - width / 2;
351
352
  const y = node.y - height / 2;
352
- chunk3XYRH5AP.log.trace("Data ", node, JSON.stringify(node));
353
+ chunkAGHRB4JF.log.trace("Data ", node, JSON.stringify(node));
353
354
  let rect2;
354
355
  if (node.look === "handDrawn") {
355
356
  const rc = rough_esm.svg(shapeSvg);
356
- const options = chunkUWXLY5YG.userNodeOverrides(node, {
357
+ const options = chunkATLVNIR6.userNodeOverrides(node, {
357
358
  roughness: 0.7,
358
359
  fill: clusterBkg,
359
360
  // fill: 'red',
@@ -363,7 +364,7 @@ var rect = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) => {
363
364
  });
364
365
  const roughNode = rc.path(createRoundedRectPathD(x, y, width, height, 0), options);
365
366
  rect2 = shapeSvg.insert(() => {
366
- chunk3XYRH5AP.log.debug("Rough node insert CXC", roughNode);
367
+ chunkAGHRB4JF.log.debug("Rough node insert CXC", roughNode);
367
368
  return roughNode;
368
369
  }, ":first-child");
369
370
  rect2.select("path:nth-child(2)").attr("style", borderStyles.join(";"));
@@ -372,7 +373,7 @@ var rect = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) => {
372
373
  rect2 = shapeSvg.insert("rect", ":first-child");
373
374
  rect2.attr("style", nodeStyles).attr("rx", node.rx).attr("ry", node.ry).attr("x", x).attr("y", y).attr("width", width).attr("height", height);
374
375
  }
375
- const { subGraphTitleTopMargin } = chunkAC5SNWB5.getSubGraphTitleMargins(siteConfig);
376
+ const { subGraphTitleTopMargin } = chunkCVBHYZKI.getSubGraphTitleMargins(siteConfig);
376
377
  labelEl.attr(
377
378
  "transform",
378
379
  // This puts the label on top of the box instead of inside it
@@ -394,7 +395,7 @@ var rect = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) => {
394
395
  };
395
396
  return { cluster: shapeSvg, labelBBox: bbox };
396
397
  }, "rect");
397
- var noteGroup = /* @__PURE__ */ chunk3XYRH5AP.__name((parent, node) => {
398
+ var noteGroup = /* @__PURE__ */ chunkAGHRB4JF.__name((parent, node) => {
398
399
  const shapeSvg = parent.insert("g").attr("class", "note-cluster").attr("id", node.id);
399
400
  const rect2 = shapeSvg.insert("rect", ":first-child");
400
401
  const padding = 0 * node.padding;
@@ -408,8 +409,8 @@ var noteGroup = /* @__PURE__ */ chunk3XYRH5AP.__name((parent, node) => {
408
409
  };
409
410
  return { cluster: shapeSvg, labelBBox: { width: 0, height: 0 } };
410
411
  }, "noteGroup");
411
- var roundedWithTitle = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) => {
412
- const siteConfig = chunk3XYRH5AP.getConfig2();
412
+ var roundedWithTitle = /* @__PURE__ */ chunkAGHRB4JF.__name(async (parent, node) => {
413
+ const siteConfig = chunkABZYJK2D.getConfig2();
413
414
  const { themeVariables, handDrawnSeed } = siteConfig;
414
415
  const { altBackground, compositeBackground, compositeTitleBackground, nodeBorder } = themeVariables;
415
416
  const shapeSvg = parent.insert("g").attr("class", node.cssClasses).attr("id", node.id).attr("data-id", node.id).attr("data-look", node.look);
@@ -418,7 +419,7 @@ var roundedWithTitle = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node)
418
419
  let innerRect = shapeSvg.append("rect");
419
420
  const text2 = label.node().appendChild(await createLabel_default(node.label, node.labelStyle, void 0, true));
420
421
  let bbox = text2.getBBox();
421
- if (chunk3XYRH5AP.evaluate(siteConfig.flowchart.htmlLabels)) {
422
+ if (chunkABZYJK2D.evaluate(siteConfig.flowchart.htmlLabels)) {
422
423
  const div = text2.children[0];
423
424
  const dv = select(text2);
424
425
  bbox = div.getBoundingClientRect();
@@ -467,7 +468,7 @@ var roundedWithTitle = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node)
467
468
  }
468
469
  label.attr(
469
470
  "transform",
470
- `translate(${node.x - bbox.width / 2}, ${y + 1 - (chunk3XYRH5AP.evaluate(siteConfig.flowchart.htmlLabels) ? 0 : 3)})`
471
+ `translate(${node.x - bbox.width / 2}, ${y + 1 - (chunkABZYJK2D.evaluate(siteConfig.flowchart.htmlLabels) ? 0 : 3)})`
471
472
  );
472
473
  const rectBox = rect2.node().getBBox();
473
474
  node.height = rectBox.height;
@@ -479,23 +480,23 @@ var roundedWithTitle = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node)
479
480
  };
480
481
  return { cluster: shapeSvg, labelBBox: bbox };
481
482
  }, "roundedWithTitle");
482
- var kanbanSection = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) => {
483
- chunk3XYRH5AP.log.info("Creating subgraph rect for ", node.id, node);
484
- const siteConfig = chunk3XYRH5AP.getConfig2();
483
+ var kanbanSection = /* @__PURE__ */ chunkAGHRB4JF.__name(async (parent, node) => {
484
+ chunkAGHRB4JF.log.info("Creating subgraph rect for ", node.id, node);
485
+ const siteConfig = chunkABZYJK2D.getConfig2();
485
486
  const { themeVariables, handDrawnSeed } = siteConfig;
486
487
  const { clusterBkg, clusterBorder } = themeVariables;
487
- const { labelStyles, nodeStyles, borderStyles, backgroundStyles } = chunkUWXLY5YG.styles2String(node);
488
+ const { labelStyles, nodeStyles, borderStyles, backgroundStyles } = chunkATLVNIR6.styles2String(node);
488
489
  const shapeSvg = parent.insert("g").attr("class", "cluster " + node.cssClasses).attr("id", node.id).attr("data-look", node.look);
489
- const useHtmlLabels = chunk3XYRH5AP.evaluate(siteConfig.flowchart.htmlLabels);
490
+ const useHtmlLabels = chunkABZYJK2D.evaluate(siteConfig.flowchart.htmlLabels);
490
491
  const labelEl = shapeSvg.insert("g").attr("class", "cluster-label ");
491
- const text2 = await chunkQESNASVV.createText(labelEl, node.label, {
492
+ const text2 = await chunkJA3XYJ7Z.createText(labelEl, node.label, {
492
493
  style: node.labelStyle,
493
494
  useHtmlLabels,
494
495
  isNode: true,
495
496
  width: node.width
496
497
  });
497
498
  let bbox = text2.getBBox();
498
- if (chunk3XYRH5AP.evaluate(siteConfig.flowchart.htmlLabels)) {
499
+ if (chunkABZYJK2D.evaluate(siteConfig.flowchart.htmlLabels)) {
499
500
  const div = text2.children[0];
500
501
  const dv = select(text2);
501
502
  bbox = div.getBoundingClientRect();
@@ -511,11 +512,11 @@ var kanbanSection = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) =>
511
512
  const height = node.height;
512
513
  const x = node.x - width / 2;
513
514
  const y = node.y - height / 2;
514
- chunk3XYRH5AP.log.trace("Data ", node, JSON.stringify(node));
515
+ chunkAGHRB4JF.log.trace("Data ", node, JSON.stringify(node));
515
516
  let rect2;
516
517
  if (node.look === "handDrawn") {
517
518
  const rc = rough_esm.svg(shapeSvg);
518
- const options = chunkUWXLY5YG.userNodeOverrides(node, {
519
+ const options = chunkATLVNIR6.userNodeOverrides(node, {
519
520
  roughness: 0.7,
520
521
  fill: clusterBkg,
521
522
  // fill: 'red',
@@ -525,7 +526,7 @@ var kanbanSection = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) =>
525
526
  });
526
527
  const roughNode = rc.path(createRoundedRectPathD(x, y, width, height, node.rx), options);
527
528
  rect2 = shapeSvg.insert(() => {
528
- chunk3XYRH5AP.log.debug("Rough node insert CXC", roughNode);
529
+ chunkAGHRB4JF.log.debug("Rough node insert CXC", roughNode);
529
530
  return roughNode;
530
531
  }, ":first-child");
531
532
  rect2.select("path:nth-child(2)").attr("style", borderStyles.join(";"));
@@ -534,7 +535,7 @@ var kanbanSection = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) =>
534
535
  rect2 = shapeSvg.insert("rect", ":first-child");
535
536
  rect2.attr("style", nodeStyles).attr("rx", node.rx).attr("ry", node.ry).attr("x", x).attr("y", y).attr("width", width).attr("height", height);
536
537
  }
537
- const { subGraphTitleTopMargin } = chunkAC5SNWB5.getSubGraphTitleMargins(siteConfig);
538
+ const { subGraphTitleTopMargin } = chunkCVBHYZKI.getSubGraphTitleMargins(siteConfig);
538
539
  labelEl.attr(
539
540
  "transform",
540
541
  // This puts the label on top of the box instead of inside it
@@ -556,8 +557,8 @@ var kanbanSection = /* @__PURE__ */ chunk3XYRH5AP.__name(async (parent, node) =>
556
557
  };
557
558
  return { cluster: shapeSvg, labelBBox: bbox };
558
559
  }, "kanbanSection");
559
- var divider = /* @__PURE__ */ chunk3XYRH5AP.__name((parent, node) => {
560
- const siteConfig = chunk3XYRH5AP.getConfig2();
560
+ var divider = /* @__PURE__ */ chunkAGHRB4JF.__name((parent, node) => {
561
+ const siteConfig = chunkABZYJK2D.getConfig2();
561
562
  const { themeVariables, handDrawnSeed } = siteConfig;
562
563
  const { nodeBorder } = themeVariables;
563
564
  const shapeSvg = parent.insert("g").attr("class", node.cssClasses).attr("id", node.id).attr("data-look", node.look);
@@ -604,13 +605,13 @@ var shapes = {
604
605
  kanbanSection
605
606
  };
606
607
  var clusterElems = /* @__PURE__ */ new Map();
607
- var insertCluster = /* @__PURE__ */ chunk3XYRH5AP.__name(async (elem, node) => {
608
+ var insertCluster = /* @__PURE__ */ chunkAGHRB4JF.__name(async (elem, node) => {
608
609
  const shape = node.shape || "rect";
609
610
  const cluster = await shapes[shape](elem, node);
610
611
  clusterElems.set(node.id, cluster);
611
612
  return cluster;
612
613
  }, "insertCluster");
613
- var clear = /* @__PURE__ */ chunk3XYRH5AP.__name(() => {
614
+ var clear = /* @__PURE__ */ chunkAGHRB4JF.__name(() => {
614
615
  clusterElems = /* @__PURE__ */ new Map();
615
616
  }, "clear");
616
617
 
@@ -618,7 +619,7 @@ var clear = /* @__PURE__ */ chunk3XYRH5AP.__name(() => {
618
619
  function intersectNode(node, point) {
619
620
  return node.intersect(point);
620
621
  }
621
- chunk3XYRH5AP.__name(intersectNode, "intersectNode");
622
+ chunkAGHRB4JF.__name(intersectNode, "intersectNode");
622
623
  var intersect_node_default = intersectNode;
623
624
 
624
625
  // src/rendering-util/rendering-elements/intersect/intersect-ellipse.js
@@ -638,54 +639,53 @@ function intersectEllipse(node, rx, ry, point) {
638
639
  }
639
640
  return { x: cx + dx, y: cy + dy };
640
641
  }
641
- chunk3XYRH5AP.__name(intersectEllipse, "intersectEllipse");
642
+ chunkAGHRB4JF.__name(intersectEllipse, "intersectEllipse");
642
643
  var intersect_ellipse_default = intersectEllipse;
643
644
 
644
645
  // src/rendering-util/rendering-elements/intersect/intersect-circle.js
645
646
  function intersectCircle(node, rx, point) {
646
647
  return intersect_ellipse_default(node, rx, rx, point);
647
648
  }
648
- chunk3XYRH5AP.__name(intersectCircle, "intersectCircle");
649
+ chunkAGHRB4JF.__name(intersectCircle, "intersectCircle");
649
650
  var intersect_circle_default = intersectCircle;
650
651
 
651
652
  // src/rendering-util/rendering-elements/intersect/intersect-line.js
652
653
  function intersectLine(p1, p2, q1, q2) {
653
- var a1, a2, b1, b2, c1, c2;
654
- var r1, r2, r3, r4;
655
- var denom, offset, num;
656
- var x, y;
657
- a1 = p2.y - p1.y;
658
- b1 = p1.x - p2.x;
659
- c1 = p2.x * p1.y - p1.x * p2.y;
660
- r3 = a1 * q1.x + b1 * q1.y + c1;
661
- r4 = a1 * q2.x + b1 * q2.y + c1;
662
- if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {
663
- return;
664
- }
665
- a2 = q2.y - q1.y;
666
- b2 = q1.x - q2.x;
667
- c2 = q2.x * q1.y - q1.x * q2.y;
668
- r1 = a2 * p1.x + b2 * p1.y + c2;
669
- r2 = a2 * p2.x + b2 * p2.y + c2;
670
- if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {
671
- return;
672
- }
673
- denom = a1 * b2 - a2 * b1;
674
- if (denom === 0) {
675
- return;
676
- }
677
- offset = Math.abs(denom / 2);
678
- num = b1 * c2 - b2 * c1;
679
- x = num < 0 ? (num - offset) / denom : (num + offset) / denom;
680
- num = a2 * c1 - a1 * c2;
681
- y = num < 0 ? (num - offset) / denom : (num + offset) / denom;
682
- return { x, y };
654
+ {
655
+ const a1 = p2.y - p1.y;
656
+ const b1 = p1.x - p2.x;
657
+ const c1 = p2.x * p1.y - p1.x * p2.y;
658
+ const r3 = a1 * q1.x + b1 * q1.y + c1;
659
+ const r4 = a1 * q2.x + b1 * q2.y + c1;
660
+ const epsilon = 1e-6;
661
+ if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {
662
+ return;
663
+ }
664
+ const a2 = q2.y - q1.y;
665
+ const b2 = q1.x - q2.x;
666
+ const c2 = q2.x * q1.y - q1.x * q2.y;
667
+ const r1 = a2 * p1.x + b2 * p1.y + c2;
668
+ const r2 = a2 * p2.x + b2 * p2.y + c2;
669
+ if (Math.abs(r1) < epsilon && Math.abs(r2) < epsilon && sameSign(r1, r2)) {
670
+ return;
671
+ }
672
+ const denom = a1 * b2 - a2 * b1;
673
+ if (denom === 0) {
674
+ return;
675
+ }
676
+ const offset = Math.abs(denom / 2);
677
+ let num = b1 * c2 - b2 * c1;
678
+ const x = num < 0 ? (num - offset) / denom : (num + offset) / denom;
679
+ num = a2 * c1 - a1 * c2;
680
+ const y = num < 0 ? (num - offset) / denom : (num + offset) / denom;
681
+ return { x, y };
682
+ }
683
683
  }
684
- chunk3XYRH5AP.__name(intersectLine, "intersectLine");
684
+ chunkAGHRB4JF.__name(intersectLine, "intersectLine");
685
685
  function sameSign(r1, r2) {
686
686
  return r1 * r2 > 0;
687
687
  }
688
- chunk3XYRH5AP.__name(sameSign, "sameSign");
688
+ chunkAGHRB4JF.__name(sameSign, "sameSign");
689
689
  var intersect_line_default = intersectLine;
690
690
 
691
691
  // src/rendering-util/rendering-elements/intersect/intersect-polygon.js
@@ -735,7 +735,7 @@ function intersectPolygon(node, polyPoints, point) {
735
735
  }
736
736
  return intersections[0];
737
737
  }
738
- chunk3XYRH5AP.__name(intersectPolygon, "intersectPolygon");
738
+ chunkAGHRB4JF.__name(intersectPolygon, "intersectPolygon");
739
739
  var intersect_polygon_default = intersectPolygon;
740
740
 
741
741
  // src/rendering-util/rendering-elements/intersect/index.js
@@ -747,7 +747,7 @@ var intersect_default = {
747
747
  rect: intersect_rect_default
748
748
  };
749
749
  function anchor(parent, node) {
750
- const { labelStyles } = chunkUWXLY5YG.styles2String(node);
750
+ const { labelStyles } = chunkATLVNIR6.styles2String(node);
751
751
  node.labelStyle = labelStyles;
752
752
  const classes = getNodeClasses(node);
753
753
  let cssClasses = classes;
@@ -758,21 +758,21 @@ function anchor(parent, node) {
758
758
  const radius = 1;
759
759
  const { cssStyles } = node;
760
760
  const rc = rough_esm.svg(shapeSvg);
761
- const options = chunkUWXLY5YG.userNodeOverrides(node, { fill: "black", stroke: "none", fillStyle: "solid" });
761
+ const options = chunkATLVNIR6.userNodeOverrides(node, { fill: "black", stroke: "none", fillStyle: "solid" });
762
762
  if (node.look !== "handDrawn") {
763
763
  options.roughness = 0;
764
764
  }
765
765
  const roughNode = rc.circle(0, 0, radius * 2, options);
766
766
  const circleElem = shapeSvg.insert(() => roughNode, ":first-child");
767
- circleElem.attr("class", "anchor").attr("style", chunk55PJQP7W.handleUndefinedAttr(cssStyles));
767
+ circleElem.attr("class", "anchor").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles));
768
768
  updateNodeBounds(node, circleElem);
769
769
  node.intersect = function(point) {
770
- chunk3XYRH5AP.log.info("Circle intersect", node, radius, point);
770
+ chunkAGHRB4JF.log.info("Circle intersect", node, radius, point);
771
771
  return intersect_default.circle(node, radius, point);
772
772
  };
773
773
  return shapeSvg;
774
774
  }
775
- chunk3XYRH5AP.__name(anchor, "anchor");
775
+ chunkAGHRB4JF.__name(anchor, "anchor");
776
776
  function generateArcPoints(x1, y1, x2, y2, rx, ry, clockwise) {
777
777
  const numPoints = 20;
778
778
  const midX = (x1 + x2) / 2;
@@ -808,9 +808,9 @@ function generateArcPoints(x1, y1, x2, y2, rx, ry, clockwise) {
808
808
  }
809
809
  return points;
810
810
  }
811
- chunk3XYRH5AP.__name(generateArcPoints, "generateArcPoints");
811
+ chunkAGHRB4JF.__name(generateArcPoints, "generateArcPoints");
812
812
  async function bowTieRect(parent, node) {
813
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
813
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
814
814
  node.labelStyle = labelStyles;
815
815
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
816
816
  const w = bbox.width + node.padding + 20;
@@ -826,7 +826,7 @@ async function bowTieRect(parent, node) {
826
826
  ...generateArcPoints(w / 2, h / 2, w / 2, -h / 2, rx, ry, true)
827
827
  ];
828
828
  const rc = rough_esm.svg(shapeSvg);
829
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
829
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
830
830
  if (node.look !== "handDrawn") {
831
831
  options.roughness = 0;
832
832
  options.fillStyle = "solid";
@@ -849,7 +849,7 @@ async function bowTieRect(parent, node) {
849
849
  };
850
850
  return shapeSvg;
851
851
  }
852
- chunk3XYRH5AP.__name(bowTieRect, "bowTieRect");
852
+ chunkAGHRB4JF.__name(bowTieRect, "bowTieRect");
853
853
 
854
854
  // src/rendering-util/rendering-elements/shapes/insertPolygonShape.ts
855
855
  function insertPolygonShape(parent, w, h, points) {
@@ -860,11 +860,11 @@ function insertPolygonShape(parent, w, h, points) {
860
860
  }).join(" ")
861
861
  ).attr("class", "label-container").attr("transform", "translate(" + -w / 2 + "," + h / 2 + ")");
862
862
  }
863
- chunk3XYRH5AP.__name(insertPolygonShape, "insertPolygonShape");
863
+ chunkAGHRB4JF.__name(insertPolygonShape, "insertPolygonShape");
864
864
 
865
865
  // src/rendering-util/rendering-elements/shapes/card.ts
866
866
  async function card(parent, node) {
867
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
867
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
868
868
  node.labelStyle = labelStyles;
869
869
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
870
870
  const h = bbox.height + node.padding;
@@ -886,7 +886,7 @@ async function card(parent, node) {
886
886
  const { cssStyles } = node;
887
887
  if (node.look === "handDrawn") {
888
888
  const rc = rough_esm.svg(shapeSvg);
889
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
889
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
890
890
  const pathData = createPathFromPoints(points);
891
891
  const roughNode = rc.path(pathData, options);
892
892
  polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-w / 2}, ${h / 2})`);
@@ -905,9 +905,9 @@ async function card(parent, node) {
905
905
  };
906
906
  return shapeSvg;
907
907
  }
908
- chunk3XYRH5AP.__name(card, "card");
908
+ chunkAGHRB4JF.__name(card, "card");
909
909
  function choice(parent, node) {
910
- const { nodeStyles } = chunkUWXLY5YG.styles2String(node);
910
+ const { nodeStyles } = chunkATLVNIR6.styles2String(node);
911
911
  node.label = "";
912
912
  const shapeSvg = parent.insert("g").attr("class", getNodeClasses(node)).attr("id", node.domId ?? node.id);
913
913
  const { cssStyles } = node;
@@ -919,7 +919,7 @@ function choice(parent, node) {
919
919
  { x: -s / 2, y: 0 }
920
920
  ];
921
921
  const rc = rough_esm.svg(shapeSvg);
922
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
922
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
923
923
  if (node.look !== "handDrawn") {
924
924
  options.roughness = 0;
925
925
  options.fillStyle = "solid";
@@ -940,31 +940,36 @@ function choice(parent, node) {
940
940
  };
941
941
  return shapeSvg;
942
942
  }
943
- chunk3XYRH5AP.__name(choice, "choice");
944
- async function circle(parent, node) {
945
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
943
+ chunkAGHRB4JF.__name(choice, "choice");
944
+ async function circle(parent, node, options) {
945
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
946
946
  node.labelStyle = labelStyles;
947
947
  const { shapeSvg, bbox, halfPadding } = await labelHelper(parent, node, getNodeClasses(node));
948
- const radius = bbox.width / 2 + halfPadding;
948
+ const padding = options?.padding ?? halfPadding;
949
+ const radius = bbox.width / 2 + padding;
949
950
  let circleElem;
950
951
  const { cssStyles } = node;
951
952
  if (node.look === "handDrawn") {
952
953
  const rc = rough_esm.svg(shapeSvg);
953
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
954
- const roughNode = rc.circle(0, 0, radius * 2, options);
954
+ const options2 = chunkATLVNIR6.userNodeOverrides(node, {});
955
+ const roughNode = rc.circle(0, 0, radius * 2, options2);
955
956
  circleElem = shapeSvg.insert(() => roughNode, ":first-child");
956
- circleElem.attr("class", "basic label-container").attr("style", chunk55PJQP7W.handleUndefinedAttr(cssStyles));
957
+ circleElem.attr("class", "basic label-container").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles));
957
958
  } else {
958
959
  circleElem = shapeSvg.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", nodeStyles).attr("r", radius).attr("cx", 0).attr("cy", 0);
959
960
  }
960
961
  updateNodeBounds(node, circleElem);
962
+ node.calcIntersect = function(bounds, point) {
963
+ const radius2 = bounds.width / 2;
964
+ return intersect_default.circle(bounds, radius2, point);
965
+ };
961
966
  node.intersect = function(point) {
962
- chunk3XYRH5AP.log.info("Circle intersect", node, radius, point);
967
+ chunkAGHRB4JF.log.info("Circle intersect", node, radius, point);
963
968
  return intersect_default.circle(node, radius, point);
964
969
  };
965
970
  return shapeSvg;
966
971
  }
967
- chunk3XYRH5AP.__name(circle, "circle");
972
+ chunkAGHRB4JF.__name(circle, "circle");
968
973
  function createLine(r) {
969
974
  const xAxis45 = Math.cos(Math.PI / 4);
970
975
  const yAxis45 = Math.sin(Math.PI / 4);
@@ -976,16 +981,16 @@ function createLine(r) {
976
981
  return `M ${pointQ2.x},${pointQ2.y} L ${pointQ4.x},${pointQ4.y}
977
982
  M ${pointQ1.x},${pointQ1.y} L ${pointQ3.x},${pointQ3.y}`;
978
983
  }
979
- chunk3XYRH5AP.__name(createLine, "createLine");
984
+ chunkAGHRB4JF.__name(createLine, "createLine");
980
985
  function crossedCircle(parent, node) {
981
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
986
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
982
987
  node.labelStyle = labelStyles;
983
988
  node.label = "";
984
989
  const shapeSvg = parent.insert("g").attr("class", getNodeClasses(node)).attr("id", node.domId ?? node.id);
985
990
  const radius = Math.max(30, node?.width ?? 0);
986
991
  const { cssStyles } = node;
987
992
  const rc = rough_esm.svg(shapeSvg);
988
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
993
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
989
994
  if (node.look !== "handDrawn") {
990
995
  options.roughness = 0;
991
996
  options.fillStyle = "solid";
@@ -1003,13 +1008,13 @@ function crossedCircle(parent, node) {
1003
1008
  }
1004
1009
  updateNodeBounds(node, crossedCircle2);
1005
1010
  node.intersect = function(point) {
1006
- chunk3XYRH5AP.log.info("crossedCircle intersect", node, { radius, point });
1011
+ chunkAGHRB4JF.log.info("crossedCircle intersect", node, { radius, point });
1007
1012
  const pos = intersect_default.circle(node, radius, point);
1008
1013
  return pos;
1009
1014
  };
1010
1015
  return shapeSvg;
1011
1016
  }
1012
- chunk3XYRH5AP.__name(crossedCircle, "crossedCircle");
1017
+ chunkAGHRB4JF.__name(crossedCircle, "crossedCircle");
1013
1018
  function generateCirclePoints2(centerX, centerY, radius, numPoints = 100, startAngle = 0, endAngle = 180) {
1014
1019
  const points = [];
1015
1020
  const startAngleRad = startAngle * Math.PI / 180;
@@ -1024,9 +1029,9 @@ function generateCirclePoints2(centerX, centerY, radius, numPoints = 100, startA
1024
1029
  }
1025
1030
  return points;
1026
1031
  }
1027
- chunk3XYRH5AP.__name(generateCirclePoints2, "generateCirclePoints");
1032
+ chunkAGHRB4JF.__name(generateCirclePoints2, "generateCirclePoints");
1028
1033
  async function curlyBraceLeft(parent, node) {
1029
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1034
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1030
1035
  node.labelStyle = labelStyles;
1031
1036
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
1032
1037
  const w = bbox.width + (node.padding ?? 0);
@@ -1054,7 +1059,7 @@ async function curlyBraceLeft(parent, node) {
1054
1059
  { x: w / 2, y: h / 2 + radius }
1055
1060
  ];
1056
1061
  const rc = rough_esm.svg(shapeSvg);
1057
- const options = chunkUWXLY5YG.userNodeOverrides(node, { fill: "none" });
1062
+ const options = chunkATLVNIR6.userNodeOverrides(node, { fill: "none" });
1058
1063
  if (node.look !== "handDrawn") {
1059
1064
  options.roughness = 0;
1060
1065
  options.fillStyle = "solid";
@@ -1086,7 +1091,7 @@ async function curlyBraceLeft(parent, node) {
1086
1091
  };
1087
1092
  return shapeSvg;
1088
1093
  }
1089
- chunk3XYRH5AP.__name(curlyBraceLeft, "curlyBraceLeft");
1094
+ chunkAGHRB4JF.__name(curlyBraceLeft, "curlyBraceLeft");
1090
1095
  function generateCirclePoints3(centerX, centerY, radius, numPoints = 100, startAngle = 0, endAngle = 180) {
1091
1096
  const points = [];
1092
1097
  const startAngleRad = startAngle * Math.PI / 180;
@@ -1101,9 +1106,9 @@ function generateCirclePoints3(centerX, centerY, radius, numPoints = 100, startA
1101
1106
  }
1102
1107
  return points;
1103
1108
  }
1104
- chunk3XYRH5AP.__name(generateCirclePoints3, "generateCirclePoints");
1109
+ chunkAGHRB4JF.__name(generateCirclePoints3, "generateCirclePoints");
1105
1110
  async function curlyBraceRight(parent, node) {
1106
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1111
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1107
1112
  node.labelStyle = labelStyles;
1108
1113
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
1109
1114
  const w = bbox.width + (node.padding ?? 0);
@@ -1131,7 +1136,7 @@ async function curlyBraceRight(parent, node) {
1131
1136
  { x: -w / 2, y: h / 2 + radius }
1132
1137
  ];
1133
1138
  const rc = rough_esm.svg(shapeSvg);
1134
- const options = chunkUWXLY5YG.userNodeOverrides(node, { fill: "none" });
1139
+ const options = chunkATLVNIR6.userNodeOverrides(node, { fill: "none" });
1135
1140
  if (node.look !== "handDrawn") {
1136
1141
  options.roughness = 0;
1137
1142
  options.fillStyle = "solid";
@@ -1163,7 +1168,7 @@ async function curlyBraceRight(parent, node) {
1163
1168
  };
1164
1169
  return shapeSvg;
1165
1170
  }
1166
- chunk3XYRH5AP.__name(curlyBraceRight, "curlyBraceRight");
1171
+ chunkAGHRB4JF.__name(curlyBraceRight, "curlyBraceRight");
1167
1172
  function generateCirclePoints4(centerX, centerY, radius, numPoints = 100, startAngle = 0, endAngle = 180) {
1168
1173
  const points = [];
1169
1174
  const startAngleRad = startAngle * Math.PI / 180;
@@ -1178,9 +1183,9 @@ function generateCirclePoints4(centerX, centerY, radius, numPoints = 100, startA
1178
1183
  }
1179
1184
  return points;
1180
1185
  }
1181
- chunk3XYRH5AP.__name(generateCirclePoints4, "generateCirclePoints");
1186
+ chunkAGHRB4JF.__name(generateCirclePoints4, "generateCirclePoints");
1182
1187
  async function curlyBraces(parent, node) {
1183
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1188
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1184
1189
  node.labelStyle = labelStyles;
1185
1190
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
1186
1191
  const w = bbox.width + (node.padding ?? 0);
@@ -1222,7 +1227,7 @@ async function curlyBraces(parent, node) {
1222
1227
  ...generateCirclePoints4(-w / 2 + radius + radius / 2, h / 2, radius, 30, -180, -270)
1223
1228
  ];
1224
1229
  const rc = rough_esm.svg(shapeSvg);
1225
- const options = chunkUWXLY5YG.userNodeOverrides(node, { fill: "none" });
1230
+ const options = chunkATLVNIR6.userNodeOverrides(node, { fill: "none" });
1226
1231
  if (node.look !== "handDrawn") {
1227
1232
  options.roughness = 0;
1228
1233
  options.fillStyle = "solid";
@@ -1258,9 +1263,9 @@ async function curlyBraces(parent, node) {
1258
1263
  };
1259
1264
  return shapeSvg;
1260
1265
  }
1261
- chunk3XYRH5AP.__name(curlyBraces, "curlyBraces");
1266
+ chunkAGHRB4JF.__name(curlyBraces, "curlyBraces");
1262
1267
  async function curvedTrapezoid(parent, node) {
1263
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1268
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1264
1269
  node.labelStyle = labelStyles;
1265
1270
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
1266
1271
  const minWidth = 80, minHeight = 20;
@@ -1269,7 +1274,7 @@ async function curvedTrapezoid(parent, node) {
1269
1274
  const radius = h / 2;
1270
1275
  const { cssStyles } = node;
1271
1276
  const rc = rough_esm.svg(shapeSvg);
1272
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
1277
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
1273
1278
  if (node.look !== "handDrawn") {
1274
1279
  options.roughness = 0;
1275
1280
  options.fillStyle = "solid";
@@ -1303,8 +1308,8 @@ async function curvedTrapezoid(parent, node) {
1303
1308
  };
1304
1309
  return shapeSvg;
1305
1310
  }
1306
- chunk3XYRH5AP.__name(curvedTrapezoid, "curvedTrapezoid");
1307
- var createCylinderPathD = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, height, rx, ry) => {
1311
+ chunkAGHRB4JF.__name(curvedTrapezoid, "curvedTrapezoid");
1312
+ var createCylinderPathD = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, width, height, rx, ry) => {
1308
1313
  return [
1309
1314
  `M${x},${y + ry}`,
1310
1315
  `a${rx},${ry} 0,0,0 ${width},0`,
@@ -1314,7 +1319,7 @@ var createCylinderPathD = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, hei
1314
1319
  `l0,${-height}`
1315
1320
  ].join(" ");
1316
1321
  }, "createCylinderPathD");
1317
- var createOuterCylinderPathD = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, height, rx, ry) => {
1322
+ var createOuterCylinderPathD = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, width, height, rx, ry) => {
1318
1323
  return [
1319
1324
  `M${x},${y + ry}`,
1320
1325
  `M${x + width},${y + ry}`,
@@ -1324,11 +1329,11 @@ var createOuterCylinderPathD = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width
1324
1329
  `l0,${-height}`
1325
1330
  ].join(" ");
1326
1331
  }, "createOuterCylinderPathD");
1327
- var createInnerCylinderPathD = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, height, rx, ry) => {
1332
+ var createInnerCylinderPathD = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, width, height, rx, ry) => {
1328
1333
  return [`M${x - width / 2},${-height / 2}`, `a${rx},${ry} 0,0,0 ${width},0`].join(" ");
1329
1334
  }, "createInnerCylinderPathD");
1330
1335
  async function cylinder(parent, node) {
1331
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1336
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1332
1337
  node.labelStyle = labelStyles;
1333
1338
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
1334
1339
  const w = Math.max(bbox.width + node.padding, node.width ?? 0);
@@ -1341,8 +1346,8 @@ async function cylinder(parent, node) {
1341
1346
  const rc = rough_esm.svg(shapeSvg);
1342
1347
  const outerPathData = createOuterCylinderPathD(0, 0, w, h, rx, ry);
1343
1348
  const innerPathData = createInnerCylinderPathD(0, ry, w, h, rx, ry);
1344
- const outerNode = rc.path(outerPathData, chunkUWXLY5YG.userNodeOverrides(node, {}));
1345
- const innerLine = rc.path(innerPathData, chunkUWXLY5YG.userNodeOverrides(node, { fill: "none" }));
1349
+ const outerNode = rc.path(outerPathData, chunkATLVNIR6.userNodeOverrides(node, {}));
1350
+ const innerLine = rc.path(innerPathData, chunkATLVNIR6.userNodeOverrides(node, { fill: "none" }));
1346
1351
  cylinder2 = shapeSvg.insert(() => innerLine, ":first-child");
1347
1352
  cylinder2 = shapeSvg.insert(() => outerNode, ":first-child");
1348
1353
  cylinder2.attr("class", "basic label-container");
@@ -1351,7 +1356,7 @@ async function cylinder(parent, node) {
1351
1356
  }
1352
1357
  } else {
1353
1358
  const pathData = createCylinderPathD(0, 0, w, h, rx, ry);
1354
- cylinder2 = shapeSvg.insert("path", ":first-child").attr("d", pathData).attr("class", "basic label-container").attr("style", chunk55PJQP7W.handleUndefinedAttr(cssStyles)).attr("style", nodeStyles);
1359
+ cylinder2 = shapeSvg.insert("path", ":first-child").attr("d", pathData).attr("class", "basic label-container").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles)).attr("style", nodeStyles);
1355
1360
  }
1356
1361
  cylinder2.attr("label-offset-y", ry);
1357
1362
  cylinder2.attr("transform", `translate(${-w / 2}, ${-(h / 2 + ry)})`);
@@ -1378,9 +1383,9 @@ async function cylinder(parent, node) {
1378
1383
  };
1379
1384
  return shapeSvg;
1380
1385
  }
1381
- chunk3XYRH5AP.__name(cylinder, "cylinder");
1386
+ chunkAGHRB4JF.__name(cylinder, "cylinder");
1382
1387
  async function dividedRectangle(parent, node) {
1383
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1388
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1384
1389
  node.labelStyle = labelStyles;
1385
1390
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
1386
1391
  const w = bbox.width + node.padding;
@@ -1390,7 +1395,7 @@ async function dividedRectangle(parent, node) {
1390
1395
  const y = -h / 2 - rectOffset / 2;
1391
1396
  const { cssStyles } = node;
1392
1397
  const rc = rough_esm.svg(shapeSvg);
1393
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
1398
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
1394
1399
  if (node.look !== "handDrawn") {
1395
1400
  options.roughness = 0;
1396
1401
  options.fillStyle = "solid";
@@ -1427,9 +1432,9 @@ async function dividedRectangle(parent, node) {
1427
1432
  };
1428
1433
  return shapeSvg;
1429
1434
  }
1430
- chunk3XYRH5AP.__name(dividedRectangle, "dividedRectangle");
1435
+ chunkAGHRB4JF.__name(dividedRectangle, "dividedRectangle");
1431
1436
  async function doublecircle(parent, node) {
1432
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1437
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1433
1438
  node.labelStyle = labelStyles;
1434
1439
  const { shapeSvg, bbox, halfPadding } = await labelHelper(parent, node, getNodeClasses(node));
1435
1440
  const gap = 5;
@@ -1439,12 +1444,12 @@ async function doublecircle(parent, node) {
1439
1444
  const { cssStyles } = node;
1440
1445
  if (node.look === "handDrawn") {
1441
1446
  const rc = rough_esm.svg(shapeSvg);
1442
- const outerOptions = chunkUWXLY5YG.userNodeOverrides(node, { roughness: 0.2, strokeWidth: 2.5 });
1443
- const innerOptions = chunkUWXLY5YG.userNodeOverrides(node, { roughness: 0.2, strokeWidth: 1.5 });
1447
+ const outerOptions = chunkATLVNIR6.userNodeOverrides(node, { roughness: 0.2, strokeWidth: 2.5 });
1448
+ const innerOptions = chunkATLVNIR6.userNodeOverrides(node, { roughness: 0.2, strokeWidth: 1.5 });
1444
1449
  const outerRoughNode = rc.circle(0, 0, outerRadius * 2, outerOptions);
1445
1450
  const innerRoughNode = rc.circle(0, 0, innerRadius * 2, innerOptions);
1446
1451
  circleGroup = shapeSvg.insert("g", ":first-child");
1447
- circleGroup.attr("class", chunk55PJQP7W.handleUndefinedAttr(node.cssClasses)).attr("style", chunk55PJQP7W.handleUndefinedAttr(cssStyles));
1452
+ circleGroup.attr("class", chunkS3R3BYOJ.handleUndefinedAttr(node.cssClasses)).attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles));
1448
1453
  circleGroup.node()?.appendChild(outerRoughNode);
1449
1454
  circleGroup.node()?.appendChild(innerRoughNode);
1450
1455
  } else {
@@ -1457,14 +1462,14 @@ async function doublecircle(parent, node) {
1457
1462
  }
1458
1463
  updateNodeBounds(node, circleGroup);
1459
1464
  node.intersect = function(point) {
1460
- chunk3XYRH5AP.log.info("DoubleCircle intersect", node, outerRadius, point);
1465
+ chunkAGHRB4JF.log.info("DoubleCircle intersect", node, outerRadius, point);
1461
1466
  return intersect_default.circle(node, outerRadius, point);
1462
1467
  };
1463
1468
  return shapeSvg;
1464
1469
  }
1465
- chunk3XYRH5AP.__name(doublecircle, "doublecircle");
1470
+ chunkAGHRB4JF.__name(doublecircle, "doublecircle");
1466
1471
  function filledCircle(parent, node, { config: { themeVariables } }) {
1467
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1472
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1468
1473
  node.label = "";
1469
1474
  node.labelStyle = labelStyles;
1470
1475
  const shapeSvg = parent.insert("g").attr("class", getNodeClasses(node)).attr("id", node.domId ?? node.id);
@@ -1472,7 +1477,7 @@ function filledCircle(parent, node, { config: { themeVariables } }) {
1472
1477
  const { cssStyles } = node;
1473
1478
  const rc = rough_esm.svg(shapeSvg);
1474
1479
  const { nodeBorder } = themeVariables;
1475
- const options = chunkUWXLY5YG.userNodeOverrides(node, { fillStyle: "solid" });
1480
+ const options = chunkATLVNIR6.userNodeOverrides(node, { fillStyle: "solid" });
1476
1481
  if (node.look !== "handDrawn") {
1477
1482
  options.roughness = 0;
1478
1483
  }
@@ -1487,15 +1492,15 @@ function filledCircle(parent, node, { config: { themeVariables } }) {
1487
1492
  }
1488
1493
  updateNodeBounds(node, filledCircle2);
1489
1494
  node.intersect = function(point) {
1490
- chunk3XYRH5AP.log.info("filledCircle intersect", node, { radius, point });
1495
+ chunkAGHRB4JF.log.info("filledCircle intersect", node, { radius, point });
1491
1496
  const pos = intersect_default.circle(node, radius, point);
1492
1497
  return pos;
1493
1498
  };
1494
1499
  return shapeSvg;
1495
1500
  }
1496
- chunk3XYRH5AP.__name(filledCircle, "filledCircle");
1501
+ chunkAGHRB4JF.__name(filledCircle, "filledCircle");
1497
1502
  async function flippedTriangle(parent, node) {
1498
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1503
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1499
1504
  node.labelStyle = labelStyles;
1500
1505
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
1501
1506
  const w = bbox.width + (node.padding ?? 0);
@@ -1508,7 +1513,7 @@ async function flippedTriangle(parent, node) {
1508
1513
  ];
1509
1514
  const { cssStyles } = node;
1510
1515
  const rc = rough_esm.svg(shapeSvg);
1511
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
1516
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
1512
1517
  if (node.look !== "handDrawn") {
1513
1518
  options.roughness = 0;
1514
1519
  options.fillStyle = "solid";
@@ -1530,14 +1535,14 @@ async function flippedTriangle(parent, node) {
1530
1535
  `translate(${-bbox.width / 2 - (bbox.x - (bbox.left ?? 0))}, ${-h / 2 + (node.padding ?? 0) / 2 + (bbox.y - (bbox.top ?? 0))})`
1531
1536
  );
1532
1537
  node.intersect = function(point) {
1533
- chunk3XYRH5AP.log.info("Triangle intersect", node, points, point);
1538
+ chunkAGHRB4JF.log.info("Triangle intersect", node, points, point);
1534
1539
  return intersect_default.polygon(node, points, point);
1535
1540
  };
1536
1541
  return shapeSvg;
1537
1542
  }
1538
- chunk3XYRH5AP.__name(flippedTriangle, "flippedTriangle");
1543
+ chunkAGHRB4JF.__name(flippedTriangle, "flippedTriangle");
1539
1544
  function forkJoin(parent, node, { dir, config: { state: state2, themeVariables } }) {
1540
- const { nodeStyles } = chunkUWXLY5YG.styles2String(node);
1545
+ const { nodeStyles } = chunkATLVNIR6.styles2String(node);
1541
1546
  node.label = "";
1542
1547
  const shapeSvg = parent.insert("g").attr("class", getNodeClasses(node)).attr("id", node.domId ?? node.id);
1543
1548
  const { cssStyles } = node;
@@ -1550,7 +1555,7 @@ function forkJoin(parent, node, { dir, config: { state: state2, themeVariables }
1550
1555
  const x = -1 * width / 2;
1551
1556
  const y = -1 * height / 2;
1552
1557
  const rc = rough_esm.svg(shapeSvg);
1553
- const options = chunkUWXLY5YG.userNodeOverrides(node, {
1558
+ const options = chunkATLVNIR6.userNodeOverrides(node, {
1554
1559
  stroke: themeVariables.lineColor,
1555
1560
  fill: themeVariables.lineColor
1556
1561
  });
@@ -1577,9 +1582,9 @@ function forkJoin(parent, node, { dir, config: { state: state2, themeVariables }
1577
1582
  };
1578
1583
  return shapeSvg;
1579
1584
  }
1580
- chunk3XYRH5AP.__name(forkJoin, "forkJoin");
1585
+ chunkAGHRB4JF.__name(forkJoin, "forkJoin");
1581
1586
  async function halfRoundedRectangle(parent, node) {
1582
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1587
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1583
1588
  node.labelStyle = labelStyles;
1584
1589
  const minWidth = 80, minHeight = 50;
1585
1590
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
@@ -1588,7 +1593,7 @@ async function halfRoundedRectangle(parent, node) {
1588
1593
  const radius = h / 2;
1589
1594
  const { cssStyles } = node;
1590
1595
  const rc = rough_esm.svg(shapeSvg);
1591
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
1596
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
1592
1597
  if (node.look !== "handDrawn") {
1593
1598
  options.roughness = 0;
1594
1599
  options.fillStyle = "solid";
@@ -1612,56 +1617,51 @@ async function halfRoundedRectangle(parent, node) {
1612
1617
  }
1613
1618
  updateNodeBounds(node, polygon);
1614
1619
  node.intersect = function(point) {
1615
- chunk3XYRH5AP.log.info("Pill intersect", node, { radius, point });
1620
+ chunkAGHRB4JF.log.info("Pill intersect", node, { radius, point });
1616
1621
  const pos = intersect_default.polygon(node, points, point);
1617
1622
  return pos;
1618
1623
  };
1619
1624
  return shapeSvg;
1620
1625
  }
1621
- chunk3XYRH5AP.__name(halfRoundedRectangle, "halfRoundedRectangle");
1622
- var createHexagonPathD = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, height, m) => {
1623
- return [
1624
- `M${x + m},${y}`,
1625
- `L${x + width - m},${y}`,
1626
- `L${x + width},${y - height / 2}`,
1627
- `L${x + width - m},${y - height}`,
1628
- `L${x + m},${y - height}`,
1629
- `L${x},${y - height / 2}`,
1630
- "Z"
1631
- ].join(" ");
1632
- }, "createHexagonPathD");
1626
+ chunkAGHRB4JF.__name(halfRoundedRectangle, "halfRoundedRectangle");
1633
1627
  async function hexagon(parent, node) {
1634
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1628
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1635
1629
  node.labelStyle = labelStyles;
1636
1630
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
1637
- const f = 4;
1638
- const h = bbox.height + node.padding;
1639
- const m = h / f;
1640
- const w = bbox.width + 2 * m + node.padding;
1631
+ const h = bbox.height + (node.padding ?? 0);
1632
+ const w = bbox.width + (node.padding ?? 0) * 2.5;
1633
+ const { cssStyles } = node;
1634
+ const rc = rough_esm.svg(shapeSvg);
1635
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
1636
+ if (node.look !== "handDrawn") {
1637
+ options.roughness = 0;
1638
+ options.fillStyle = "solid";
1639
+ }
1640
+ let halfWidth = w / 2;
1641
+ const m = halfWidth / 6;
1642
+ halfWidth = halfWidth + m;
1643
+ const halfHeight = h / 2;
1644
+ const fixedLength = halfHeight / 2;
1645
+ const deducedWidth = halfWidth - fixedLength;
1641
1646
  const points = [
1642
- { x: m, y: 0 },
1643
- { x: w - m, y: 0 },
1644
- { x: w, y: -h / 2 },
1645
- { x: w - m, y: -h },
1646
- { x: m, y: -h },
1647
- { x: 0, y: -h / 2 }
1647
+ { x: -deducedWidth, y: -halfHeight },
1648
+ { x: 0, y: -halfHeight },
1649
+ { x: deducedWidth, y: -halfHeight },
1650
+ { x: halfWidth, y: 0 },
1651
+ { x: deducedWidth, y: halfHeight },
1652
+ { x: 0, y: halfHeight },
1653
+ { x: -deducedWidth, y: halfHeight },
1654
+ { x: -halfWidth, y: 0 }
1648
1655
  ];
1649
- let polygon;
1650
- const { cssStyles } = node;
1651
- if (node.look === "handDrawn") {
1652
- const rc = rough_esm.svg(shapeSvg);
1653
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
1654
- const pathData = createHexagonPathD(0, 0, w, h, m);
1655
- const roughNode = rc.path(pathData, options);
1656
- polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-w / 2}, ${h / 2})`);
1657
- if (cssStyles) {
1658
- polygon.attr("style", cssStyles);
1659
- }
1660
- } else {
1661
- polygon = insertPolygonShape(shapeSvg, w, h, points);
1656
+ const pathData = createPathFromPoints(points);
1657
+ const shapeNode = rc.path(pathData, options);
1658
+ const polygon = shapeSvg.insert(() => shapeNode, ":first-child");
1659
+ polygon.attr("class", "basic label-container");
1660
+ if (cssStyles && node.look !== "handDrawn") {
1661
+ polygon.selectChildren("path").attr("style", cssStyles);
1662
1662
  }
1663
- if (nodeStyles) {
1664
- polygon.attr("style", nodeStyles);
1663
+ if (nodeStyles && node.look !== "handDrawn") {
1664
+ polygon.selectChildren("path").attr("style", nodeStyles);
1665
1665
  }
1666
1666
  node.width = w;
1667
1667
  node.height = h;
@@ -1671,9 +1671,9 @@ async function hexagon(parent, node) {
1671
1671
  };
1672
1672
  return shapeSvg;
1673
1673
  }
1674
- chunk3XYRH5AP.__name(hexagon, "hexagon");
1674
+ chunkAGHRB4JF.__name(hexagon, "hexagon");
1675
1675
  async function hourglass(parent, node) {
1676
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
1676
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
1677
1677
  node.label = "";
1678
1678
  node.labelStyle = labelStyles;
1679
1679
  const { shapeSvg } = await labelHelper(parent, node, getNodeClasses(node));
@@ -1681,7 +1681,7 @@ async function hourglass(parent, node) {
1681
1681
  const h = Math.max(30, node?.height ?? 0);
1682
1682
  const { cssStyles } = node;
1683
1683
  const rc = rough_esm.svg(shapeSvg);
1684
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
1684
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
1685
1685
  if (node.look !== "handDrawn") {
1686
1686
  options.roughness = 0;
1687
1687
  options.fillStyle = "solid";
@@ -1705,15 +1705,15 @@ async function hourglass(parent, node) {
1705
1705
  polygon.attr("transform", `translate(${-w / 2}, ${-h / 2})`);
1706
1706
  updateNodeBounds(node, polygon);
1707
1707
  node.intersect = function(point) {
1708
- chunk3XYRH5AP.log.info("Pill intersect", node, { points });
1708
+ chunkAGHRB4JF.log.info("Pill intersect", node, { points });
1709
1709
  const pos = intersect_default.polygon(node, points, point);
1710
1710
  return pos;
1711
1711
  };
1712
1712
  return shapeSvg;
1713
1713
  }
1714
- chunk3XYRH5AP.__name(hourglass, "hourglass");
1714
+ chunkAGHRB4JF.__name(hourglass, "hourglass");
1715
1715
  async function icon(parent, node, { config: { themeVariables, flowchart } }) {
1716
- const { labelStyles } = chunkUWXLY5YG.styles2String(node);
1716
+ const { labelStyles } = chunkATLVNIR6.styles2String(node);
1717
1717
  node.labelStyle = labelStyles;
1718
1718
  const assetHeight = node.assetHeight ?? 48;
1719
1719
  const assetWidth = node.assetWidth ?? 48;
@@ -1725,12 +1725,12 @@ async function icon(parent, node, { config: { themeVariables, flowchart } }) {
1725
1725
  const height = iconSize;
1726
1726
  const width = iconSize;
1727
1727
  const { nodeBorder } = themeVariables;
1728
- const { stylesMap } = chunkUWXLY5YG.compileStyles(node);
1728
+ const { stylesMap } = chunkATLVNIR6.compileStyles(node);
1729
1729
  const x = -width / 2;
1730
1730
  const y = -height / 2;
1731
1731
  const labelPadding = node.label ? 8 : 0;
1732
1732
  const rc = rough_esm.svg(shapeSvg);
1733
- const options = chunkUWXLY5YG.userNodeOverrides(node, { stroke: "none", fill: "none" });
1733
+ const options = chunkATLVNIR6.userNodeOverrides(node, { stroke: "none", fill: "none" });
1734
1734
  if (node.look !== "handDrawn") {
1735
1735
  options.roughness = 0;
1736
1736
  options.fillStyle = "solid";
@@ -1748,7 +1748,7 @@ async function icon(parent, node, { config: { themeVariables, flowchart } }) {
1748
1748
  if (node.icon) {
1749
1749
  const iconElem = shapeSvg.append("g");
1750
1750
  iconElem.html(
1751
- `<g>${await chunkQESNASVV.getIconSVG(node.icon, {
1751
+ `<g>${await chunkJA3XYJ7Z.getIconSVG(node.icon, {
1752
1752
  height: iconSize,
1753
1753
  width: iconSize,
1754
1754
  fallbackPrefix: ""
@@ -1775,7 +1775,7 @@ async function icon(parent, node, { config: { themeVariables, flowchart } }) {
1775
1775
  );
1776
1776
  updateNodeBounds(node, outerShape);
1777
1777
  node.intersect = function(point) {
1778
- chunk3XYRH5AP.log.info("iconSquare intersect", node, point);
1778
+ chunkAGHRB4JF.log.info("iconSquare intersect", node, point);
1779
1779
  if (!node.label) {
1780
1780
  return intersect_default.rect(node, point);
1781
1781
  }
@@ -1811,9 +1811,9 @@ async function icon(parent, node, { config: { themeVariables, flowchart } }) {
1811
1811
  };
1812
1812
  return shapeSvg;
1813
1813
  }
1814
- chunk3XYRH5AP.__name(icon, "icon");
1814
+ chunkAGHRB4JF.__name(icon, "icon");
1815
1815
  async function iconCircle(parent, node, { config: { themeVariables, flowchart } }) {
1816
- const { labelStyles } = chunkUWXLY5YG.styles2String(node);
1816
+ const { labelStyles } = chunkATLVNIR6.styles2String(node);
1817
1817
  node.labelStyle = labelStyles;
1818
1818
  const assetHeight = node.assetHeight ?? 48;
1819
1819
  const assetWidth = node.assetWidth ?? 48;
@@ -1825,9 +1825,9 @@ async function iconCircle(parent, node, { config: { themeVariables, flowchart }
1825
1825
  const labelPadding = node.label ? 8 : 0;
1826
1826
  const topLabel = node.pos === "t";
1827
1827
  const { nodeBorder, mainBkg } = themeVariables;
1828
- const { stylesMap } = chunkUWXLY5YG.compileStyles(node);
1828
+ const { stylesMap } = chunkATLVNIR6.compileStyles(node);
1829
1829
  const rc = rough_esm.svg(shapeSvg);
1830
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
1830
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
1831
1831
  if (node.look !== "handDrawn") {
1832
1832
  options.roughness = 0;
1833
1833
  options.fillStyle = "solid";
@@ -1837,7 +1837,7 @@ async function iconCircle(parent, node, { config: { themeVariables, flowchart }
1837
1837
  const iconElem = shapeSvg.append("g");
1838
1838
  if (node.icon) {
1839
1839
  iconElem.html(
1840
- `<g>${await chunkQESNASVV.getIconSVG(node.icon, {
1840
+ `<g>${await chunkJA3XYJ7Z.getIconSVG(node.icon, {
1841
1841
  height: iconSize,
1842
1842
  width: iconSize,
1843
1843
  fallbackPrefix: ""
@@ -1875,15 +1875,15 @@ async function iconCircle(parent, node, { config: { themeVariables, flowchart }
1875
1875
  );
1876
1876
  updateNodeBounds(node, outerShape);
1877
1877
  node.intersect = function(point) {
1878
- chunk3XYRH5AP.log.info("iconSquare intersect", node, point);
1878
+ chunkAGHRB4JF.log.info("iconSquare intersect", node, point);
1879
1879
  const pos = intersect_default.rect(node, point);
1880
1880
  return pos;
1881
1881
  };
1882
1882
  return shapeSvg;
1883
1883
  }
1884
- chunk3XYRH5AP.__name(iconCircle, "iconCircle");
1884
+ chunkAGHRB4JF.__name(iconCircle, "iconCircle");
1885
1885
  async function iconRounded(parent, node, { config: { themeVariables, flowchart } }) {
1886
- const { labelStyles } = chunkUWXLY5YG.styles2String(node);
1886
+ const { labelStyles } = chunkATLVNIR6.styles2String(node);
1887
1887
  node.labelStyle = labelStyles;
1888
1888
  const assetHeight = node.assetHeight ?? 48;
1889
1889
  const assetWidth = node.assetWidth ?? 48;
@@ -1899,12 +1899,12 @@ async function iconRounded(parent, node, { config: { themeVariables, flowchart }
1899
1899
  const height = iconSize + halfPadding * 2;
1900
1900
  const width = iconSize + halfPadding * 2;
1901
1901
  const { nodeBorder, mainBkg } = themeVariables;
1902
- const { stylesMap } = chunkUWXLY5YG.compileStyles(node);
1902
+ const { stylesMap } = chunkATLVNIR6.compileStyles(node);
1903
1903
  const x = -width / 2;
1904
1904
  const y = -height / 2;
1905
1905
  const labelPadding = node.label ? 8 : 0;
1906
1906
  const rc = rough_esm.svg(shapeSvg);
1907
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
1907
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
1908
1908
  if (node.look !== "handDrawn") {
1909
1909
  options.roughness = 0;
1910
1910
  options.fillStyle = "solid";
@@ -1924,7 +1924,7 @@ async function iconRounded(parent, node, { config: { themeVariables, flowchart }
1924
1924
  if (node.icon) {
1925
1925
  const iconElem = shapeSvg.append("g");
1926
1926
  iconElem.html(
1927
- `<g>${await chunkQESNASVV.getIconSVG(node.icon, {
1927
+ `<g>${await chunkJA3XYJ7Z.getIconSVG(node.icon, {
1928
1928
  height: iconSize,
1929
1929
  width: iconSize,
1930
1930
  fallbackPrefix: ""
@@ -1951,7 +1951,7 @@ async function iconRounded(parent, node, { config: { themeVariables, flowchart }
1951
1951
  );
1952
1952
  updateNodeBounds(node, outerShape);
1953
1953
  node.intersect = function(point) {
1954
- chunk3XYRH5AP.log.info("iconSquare intersect", node, point);
1954
+ chunkAGHRB4JF.log.info("iconSquare intersect", node, point);
1955
1955
  if (!node.label) {
1956
1956
  return intersect_default.rect(node, point);
1957
1957
  }
@@ -1987,9 +1987,9 @@ async function iconRounded(parent, node, { config: { themeVariables, flowchart }
1987
1987
  };
1988
1988
  return shapeSvg;
1989
1989
  }
1990
- chunk3XYRH5AP.__name(iconRounded, "iconRounded");
1990
+ chunkAGHRB4JF.__name(iconRounded, "iconRounded");
1991
1991
  async function iconSquare(parent, node, { config: { themeVariables, flowchart } }) {
1992
- const { labelStyles } = chunkUWXLY5YG.styles2String(node);
1992
+ const { labelStyles } = chunkATLVNIR6.styles2String(node);
1993
1993
  node.labelStyle = labelStyles;
1994
1994
  const assetHeight = node.assetHeight ?? 48;
1995
1995
  const assetWidth = node.assetWidth ?? 48;
@@ -2005,12 +2005,12 @@ async function iconSquare(parent, node, { config: { themeVariables, flowchart }
2005
2005
  const height = iconSize + halfPadding * 2;
2006
2006
  const width = iconSize + halfPadding * 2;
2007
2007
  const { nodeBorder, mainBkg } = themeVariables;
2008
- const { stylesMap } = chunkUWXLY5YG.compileStyles(node);
2008
+ const { stylesMap } = chunkATLVNIR6.compileStyles(node);
2009
2009
  const x = -width / 2;
2010
2010
  const y = -height / 2;
2011
2011
  const labelPadding = node.label ? 8 : 0;
2012
2012
  const rc = rough_esm.svg(shapeSvg);
2013
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2013
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2014
2014
  if (node.look !== "handDrawn") {
2015
2015
  options.roughness = 0;
2016
2016
  options.fillStyle = "solid";
@@ -2030,7 +2030,7 @@ async function iconSquare(parent, node, { config: { themeVariables, flowchart }
2030
2030
  if (node.icon) {
2031
2031
  const iconElem = shapeSvg.append("g");
2032
2032
  iconElem.html(
2033
- `<g>${await chunkQESNASVV.getIconSVG(node.icon, {
2033
+ `<g>${await chunkJA3XYJ7Z.getIconSVG(node.icon, {
2034
2034
  height: iconSize,
2035
2035
  width: iconSize,
2036
2036
  fallbackPrefix: ""
@@ -2057,7 +2057,7 @@ async function iconSquare(parent, node, { config: { themeVariables, flowchart }
2057
2057
  );
2058
2058
  updateNodeBounds(node, outerShape);
2059
2059
  node.intersect = function(point) {
2060
- chunk3XYRH5AP.log.info("iconSquare intersect", node, point);
2060
+ chunkAGHRB4JF.log.info("iconSquare intersect", node, point);
2061
2061
  if (!node.label) {
2062
2062
  return intersect_default.rect(node, point);
2063
2063
  }
@@ -2093,7 +2093,7 @@ async function iconSquare(parent, node, { config: { themeVariables, flowchart }
2093
2093
  };
2094
2094
  return shapeSvg;
2095
2095
  }
2096
- chunk3XYRH5AP.__name(iconSquare, "iconSquare");
2096
+ chunkAGHRB4JF.__name(iconSquare, "iconSquare");
2097
2097
  async function imageSquare(parent, node, { config: { flowchart } }) {
2098
2098
  const img = new Image();
2099
2099
  img.src = node?.img ?? "";
@@ -2101,7 +2101,7 @@ async function imageSquare(parent, node, { config: { flowchart } }) {
2101
2101
  const imageNaturalWidth = Number(img.naturalWidth.toString().replace("px", ""));
2102
2102
  const imageNaturalHeight = Number(img.naturalHeight.toString().replace("px", ""));
2103
2103
  node.imageAspectRatio = imageNaturalWidth / imageNaturalHeight;
2104
- const { labelStyles } = chunkUWXLY5YG.styles2String(node);
2104
+ const { labelStyles } = chunkATLVNIR6.styles2String(node);
2105
2105
  node.labelStyle = labelStyles;
2106
2106
  const defaultWidth = flowchart?.wrappingWidth;
2107
2107
  node.defaultWidth = flowchart?.wrappingWidth;
@@ -2118,7 +2118,7 @@ async function imageSquare(parent, node, { config: { flowchart } }) {
2118
2118
  const y = -imageHeight / 2;
2119
2119
  const labelPadding = node.label ? 8 : 0;
2120
2120
  const rc = rough_esm.svg(shapeSvg);
2121
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2121
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2122
2122
  if (node.look !== "handDrawn") {
2123
2123
  options.roughness = 0;
2124
2124
  options.fillStyle = "solid";
@@ -2154,7 +2154,7 @@ async function imageSquare(parent, node, { config: { flowchart } }) {
2154
2154
  );
2155
2155
  updateNodeBounds(node, outerShape);
2156
2156
  node.intersect = function(point) {
2157
- chunk3XYRH5AP.log.info("iconSquare intersect", node, point);
2157
+ chunkAGHRB4JF.log.info("iconSquare intersect", node, point);
2158
2158
  if (!node.label) {
2159
2159
  return intersect_default.rect(node, point);
2160
2160
  }
@@ -2190,9 +2190,9 @@ async function imageSquare(parent, node, { config: { flowchart } }) {
2190
2190
  };
2191
2191
  return shapeSvg;
2192
2192
  }
2193
- chunk3XYRH5AP.__name(imageSquare, "imageSquare");
2193
+ chunkAGHRB4JF.__name(imageSquare, "imageSquare");
2194
2194
  async function inv_trapezoid(parent, node) {
2195
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2195
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2196
2196
  node.labelStyle = labelStyles;
2197
2197
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
2198
2198
  const w = Math.max(bbox.width + (node.padding ?? 0) * 2, node?.width ?? 0);
@@ -2207,7 +2207,7 @@ async function inv_trapezoid(parent, node) {
2207
2207
  const { cssStyles } = node;
2208
2208
  if (node.look === "handDrawn") {
2209
2209
  const rc = rough_esm.svg(shapeSvg);
2210
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2210
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2211
2211
  const pathData = createPathFromPoints(points);
2212
2212
  const roughNode = rc.path(pathData, options);
2213
2213
  polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-w / 2}, ${h / 2})`);
@@ -2228,9 +2228,9 @@ async function inv_trapezoid(parent, node) {
2228
2228
  };
2229
2229
  return shapeSvg;
2230
2230
  }
2231
- chunk3XYRH5AP.__name(inv_trapezoid, "inv_trapezoid");
2231
+ chunkAGHRB4JF.__name(inv_trapezoid, "inv_trapezoid");
2232
2232
  async function drawRect(parent, node, options) {
2233
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2233
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2234
2234
  node.labelStyle = labelStyles;
2235
2235
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
2236
2236
  const totalWidth = Math.max(bbox.width + options.labelPaddingX * 2, node?.width || 0);
@@ -2246,21 +2246,24 @@ async function drawRect(parent, node, options) {
2246
2246
  }
2247
2247
  if (node.look === "handDrawn") {
2248
2248
  const rc = rough_esm.svg(shapeSvg);
2249
- const options2 = chunkUWXLY5YG.userNodeOverrides(node, {});
2249
+ const options2 = chunkATLVNIR6.userNodeOverrides(node, {});
2250
2250
  const roughNode = rx || ry ? rc.path(createRoundedRectPathD(x, y, totalWidth, totalHeight, rx || 0), options2) : rc.rectangle(x, y, totalWidth, totalHeight, options2);
2251
2251
  rect2 = shapeSvg.insert(() => roughNode, ":first-child");
2252
- rect2.attr("class", "basic label-container").attr("style", chunk55PJQP7W.handleUndefinedAttr(cssStyles));
2252
+ rect2.attr("class", "basic label-container").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles));
2253
2253
  } else {
2254
2254
  rect2 = shapeSvg.insert("rect", ":first-child");
2255
- rect2.attr("class", "basic label-container").attr("style", nodeStyles).attr("rx", chunk55PJQP7W.handleUndefinedAttr(rx)).attr("ry", chunk55PJQP7W.handleUndefinedAttr(ry)).attr("x", x).attr("y", y).attr("width", totalWidth).attr("height", totalHeight);
2255
+ rect2.attr("class", "basic label-container").attr("style", nodeStyles).attr("rx", chunkS3R3BYOJ.handleUndefinedAttr(rx)).attr("ry", chunkS3R3BYOJ.handleUndefinedAttr(ry)).attr("x", x).attr("y", y).attr("width", totalWidth).attr("height", totalHeight);
2256
2256
  }
2257
2257
  updateNodeBounds(node, rect2);
2258
+ node.calcIntersect = function(bounds, point) {
2259
+ return intersect_default.rect(bounds, point);
2260
+ };
2258
2261
  node.intersect = function(point) {
2259
2262
  return intersect_default.rect(node, point);
2260
2263
  };
2261
2264
  return shapeSvg;
2262
2265
  }
2263
- chunk3XYRH5AP.__name(drawRect, "drawRect");
2266
+ chunkAGHRB4JF.__name(drawRect, "drawRect");
2264
2267
 
2265
2268
  // src/rendering-util/rendering-elements/shapes/labelRect.ts
2266
2269
  async function labelRect(parent, node) {
@@ -2280,9 +2283,9 @@ async function labelRect(parent, node) {
2280
2283
  };
2281
2284
  return shapeSvg;
2282
2285
  }
2283
- chunk3XYRH5AP.__name(labelRect, "labelRect");
2286
+ chunkAGHRB4JF.__name(labelRect, "labelRect");
2284
2287
  async function lean_left(parent, node) {
2285
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2288
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2286
2289
  node.labelStyle = labelStyles;
2287
2290
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
2288
2291
  const w = Math.max(bbox.width + (node.padding ?? 0), node?.width ?? 0);
@@ -2297,7 +2300,7 @@ async function lean_left(parent, node) {
2297
2300
  const { cssStyles } = node;
2298
2301
  if (node.look === "handDrawn") {
2299
2302
  const rc = rough_esm.svg(shapeSvg);
2300
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2303
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2301
2304
  const pathData = createPathFromPoints(points);
2302
2305
  const roughNode = rc.path(pathData, options);
2303
2306
  polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-w / 2}, ${h / 2})`);
@@ -2318,9 +2321,9 @@ async function lean_left(parent, node) {
2318
2321
  };
2319
2322
  return shapeSvg;
2320
2323
  }
2321
- chunk3XYRH5AP.__name(lean_left, "lean_left");
2324
+ chunkAGHRB4JF.__name(lean_left, "lean_left");
2322
2325
  async function lean_right(parent, node) {
2323
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2326
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2324
2327
  node.labelStyle = labelStyles;
2325
2328
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
2326
2329
  const w = Math.max(bbox.width + (node.padding ?? 0), node?.width ?? 0);
@@ -2335,7 +2338,7 @@ async function lean_right(parent, node) {
2335
2338
  const { cssStyles } = node;
2336
2339
  if (node.look === "handDrawn") {
2337
2340
  const rc = rough_esm.svg(shapeSvg);
2338
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2341
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2339
2342
  const pathData = createPathFromPoints(points);
2340
2343
  const roughNode = rc.path(pathData, options);
2341
2344
  polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-w / 2}, ${h / 2})`);
@@ -2356,9 +2359,9 @@ async function lean_right(parent, node) {
2356
2359
  };
2357
2360
  return shapeSvg;
2358
2361
  }
2359
- chunk3XYRH5AP.__name(lean_right, "lean_right");
2362
+ chunkAGHRB4JF.__name(lean_right, "lean_right");
2360
2363
  function lightningBolt(parent, node) {
2361
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2364
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2362
2365
  node.label = "";
2363
2366
  node.labelStyle = labelStyles;
2364
2367
  const shapeSvg = parent.insert("g").attr("class", getNodeClasses(node)).attr("id", node.domId ?? node.id);
@@ -2375,7 +2378,7 @@ function lightningBolt(parent, node) {
2375
2378
  { x: 2 * gap, y: height - gap / 2 }
2376
2379
  ];
2377
2380
  const rc = rough_esm.svg(shapeSvg);
2378
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2381
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2379
2382
  if (node.look !== "handDrawn") {
2380
2383
  options.roughness = 0;
2381
2384
  options.fillStyle = "solid";
@@ -2392,14 +2395,14 @@ function lightningBolt(parent, node) {
2392
2395
  lightningBolt2.attr("transform", `translate(-${width / 2},${-height})`);
2393
2396
  updateNodeBounds(node, lightningBolt2);
2394
2397
  node.intersect = function(point) {
2395
- chunk3XYRH5AP.log.info("lightningBolt intersect", node, point);
2398
+ chunkAGHRB4JF.log.info("lightningBolt intersect", node, point);
2396
2399
  const pos = intersect_default.polygon(node, points, point);
2397
2400
  return pos;
2398
2401
  };
2399
2402
  return shapeSvg;
2400
2403
  }
2401
- chunk3XYRH5AP.__name(lightningBolt, "lightningBolt");
2402
- var createCylinderPathD2 = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, height, rx, ry, outerOffset) => {
2404
+ chunkAGHRB4JF.__name(lightningBolt, "lightningBolt");
2405
+ var createCylinderPathD2 = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, width, height, rx, ry, outerOffset) => {
2403
2406
  return [
2404
2407
  `M${x},${y + ry}`,
2405
2408
  `a${rx},${ry} 0,0,0 ${width},0`,
@@ -2411,7 +2414,7 @@ var createCylinderPathD2 = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, he
2411
2414
  `a${rx},${ry} 0,0,0 ${width},0`
2412
2415
  ].join(" ");
2413
2416
  }, "createCylinderPathD");
2414
- var createOuterCylinderPathD2 = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, height, rx, ry, outerOffset) => {
2417
+ var createOuterCylinderPathD2 = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, width, height, rx, ry, outerOffset) => {
2415
2418
  return [
2416
2419
  `M${x},${y + ry}`,
2417
2420
  `M${x + width},${y + ry}`,
@@ -2423,11 +2426,11 @@ var createOuterCylinderPathD2 = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, widt
2423
2426
  `a${rx},${ry} 0,0,0 ${width},0`
2424
2427
  ].join(" ");
2425
2428
  }, "createOuterCylinderPathD");
2426
- var createInnerCylinderPathD2 = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, height, rx, ry) => {
2429
+ var createInnerCylinderPathD2 = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, width, height, rx, ry) => {
2427
2430
  return [`M${x - width / 2},${-height / 2}`, `a${rx},${ry} 0,0,0 ${width},0`].join(" ");
2428
2431
  }, "createInnerCylinderPathD");
2429
2432
  async function linedCylinder(parent, node) {
2430
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2433
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2431
2434
  node.labelStyle = labelStyles;
2432
2435
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
2433
2436
  const w = Math.max(bbox.width + (node.padding ?? 0), node.width ?? 0);
@@ -2441,7 +2444,7 @@ async function linedCylinder(parent, node) {
2441
2444
  const rc = rough_esm.svg(shapeSvg);
2442
2445
  const outerPathData = createOuterCylinderPathD2(0, 0, w, h, rx, ry, outerOffset);
2443
2446
  const innerPathData = createInnerCylinderPathD2(0, ry, w, h, rx, ry);
2444
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2447
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2445
2448
  const outerNode = rc.path(outerPathData, options);
2446
2449
  const innerLine = rc.path(innerPathData, options);
2447
2450
  const innerLineEl = shapeSvg.insert(() => innerLine, ":first-child");
@@ -2453,7 +2456,7 @@ async function linedCylinder(parent, node) {
2453
2456
  }
2454
2457
  } else {
2455
2458
  const pathData = createCylinderPathD2(0, 0, w, h, rx, ry, outerOffset);
2456
- cylinder2 = shapeSvg.insert("path", ":first-child").attr("d", pathData).attr("class", "basic label-container").attr("style", chunk55PJQP7W.handleUndefinedAttr(cssStyles)).attr("style", nodeStyles);
2459
+ cylinder2 = shapeSvg.insert("path", ":first-child").attr("d", pathData).attr("class", "basic label-container").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles)).attr("style", nodeStyles);
2457
2460
  }
2458
2461
  cylinder2.attr("label-offset-y", ry);
2459
2462
  cylinder2.attr("transform", `translate(${-w / 2}, ${-(h / 2 + ry)})`);
@@ -2480,9 +2483,9 @@ async function linedCylinder(parent, node) {
2480
2483
  };
2481
2484
  return shapeSvg;
2482
2485
  }
2483
- chunk3XYRH5AP.__name(linedCylinder, "linedCylinder");
2486
+ chunkAGHRB4JF.__name(linedCylinder, "linedCylinder");
2484
2487
  async function linedWaveEdgedRect(parent, node) {
2485
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2488
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2486
2489
  node.labelStyle = labelStyles;
2487
2490
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
2488
2491
  const w = Math.max(bbox.width + (node.padding ?? 0) * 2, node?.width ?? 0);
@@ -2491,7 +2494,7 @@ async function linedWaveEdgedRect(parent, node) {
2491
2494
  const finalH = h + waveAmplitude;
2492
2495
  const { cssStyles } = node;
2493
2496
  const rc = rough_esm.svg(shapeSvg);
2494
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2497
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2495
2498
  if (node.look !== "handDrawn") {
2496
2499
  options.roughness = 0;
2497
2500
  options.fillStyle = "solid";
@@ -2537,9 +2540,9 @@ async function linedWaveEdgedRect(parent, node) {
2537
2540
  };
2538
2541
  return shapeSvg;
2539
2542
  }
2540
- chunk3XYRH5AP.__name(linedWaveEdgedRect, "linedWaveEdgedRect");
2543
+ chunkAGHRB4JF.__name(linedWaveEdgedRect, "linedWaveEdgedRect");
2541
2544
  async function multiRect(parent, node) {
2542
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2545
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2543
2546
  node.labelStyle = labelStyles;
2544
2547
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
2545
2548
  const w = Math.max(bbox.width + (node.padding ?? 0) * 2, node?.width ?? 0);
@@ -2549,7 +2552,7 @@ async function multiRect(parent, node) {
2549
2552
  const y = -h / 2;
2550
2553
  const { cssStyles } = node;
2551
2554
  const rc = rough_esm.svg(shapeSvg);
2552
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2555
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2553
2556
  const outerPathPoints = [
2554
2557
  { x: x - rectOffset, y: y + rectOffset },
2555
2558
  { x: x - rectOffset, y: y + h + rectOffset },
@@ -2600,9 +2603,9 @@ async function multiRect(parent, node) {
2600
2603
  };
2601
2604
  return shapeSvg;
2602
2605
  }
2603
- chunk3XYRH5AP.__name(multiRect, "multiRect");
2606
+ chunkAGHRB4JF.__name(multiRect, "multiRect");
2604
2607
  async function multiWaveEdgedRectangle(parent, node) {
2605
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2608
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2606
2609
  node.labelStyle = labelStyles;
2607
2610
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
2608
2611
  const w = Math.max(bbox.width + (node.padding ?? 0) * 2, node?.width ?? 0);
@@ -2645,7 +2648,7 @@ async function multiWaveEdgedRectangle(parent, node) {
2645
2648
  { x, y }
2646
2649
  ];
2647
2650
  const rc = rough_esm.svg(shapeSvg);
2648
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2651
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2649
2652
  if (node.look !== "handDrawn") {
2650
2653
  options.roughness = 0;
2651
2654
  options.fillStyle = "solid";
@@ -2675,11 +2678,11 @@ async function multiWaveEdgedRectangle(parent, node) {
2675
2678
  };
2676
2679
  return shapeSvg;
2677
2680
  }
2678
- chunk3XYRH5AP.__name(multiWaveEdgedRectangle, "multiWaveEdgedRectangle");
2681
+ chunkAGHRB4JF.__name(multiWaveEdgedRectangle, "multiWaveEdgedRectangle");
2679
2682
  async function note(parent, node, { config: { themeVariables } }) {
2680
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2683
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2681
2684
  node.labelStyle = labelStyles;
2682
- const useHtmlLabels = node.useHtmlLabels || chunk3XYRH5AP.getConfig().flowchart?.htmlLabels !== false;
2685
+ const useHtmlLabels = node.useHtmlLabels || chunkABZYJK2D.getConfig().flowchart?.htmlLabels !== false;
2683
2686
  if (!useHtmlLabels) {
2684
2687
  node.centerLabel = true;
2685
2688
  }
@@ -2690,7 +2693,7 @@ async function note(parent, node, { config: { themeVariables } }) {
2690
2693
  const y = -totalHeight / 2;
2691
2694
  const { cssStyles } = node;
2692
2695
  const rc = rough_esm.svg(shapeSvg);
2693
- const options = chunkUWXLY5YG.userNodeOverrides(node, {
2696
+ const options = chunkATLVNIR6.userNodeOverrides(node, {
2694
2697
  fill: themeVariables.noteBkgColor,
2695
2698
  stroke: themeVariables.noteBorderColor
2696
2699
  });
@@ -2717,8 +2720,8 @@ async function note(parent, node, { config: { themeVariables } }) {
2717
2720
  };
2718
2721
  return shapeSvg;
2719
2722
  }
2720
- chunk3XYRH5AP.__name(note, "note");
2721
- var createDecisionBoxPathD = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, size) => {
2723
+ chunkAGHRB4JF.__name(note, "note");
2724
+ var createDecisionBoxPathD = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, size) => {
2722
2725
  return [
2723
2726
  `M${x + size / 2},${y}`,
2724
2727
  `L${x + size},${y - size / 2}`,
@@ -2728,12 +2731,13 @@ var createDecisionBoxPathD = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, size) =
2728
2731
  ].join(" ");
2729
2732
  }, "createDecisionBoxPathD");
2730
2733
  async function question(parent, node) {
2731
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2734
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2732
2735
  node.labelStyle = labelStyles;
2733
2736
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
2734
2737
  const w = bbox.width + node.padding;
2735
2738
  const h = bbox.height + node.padding;
2736
2739
  const s = w + h;
2740
+ const adjustment = 0.5;
2737
2741
  const points = [
2738
2742
  { x: s / 2, y: 0 },
2739
2743
  { x: s, y: -s / 2 },
@@ -2744,36 +2748,40 @@ async function question(parent, node) {
2744
2748
  const { cssStyles } = node;
2745
2749
  if (node.look === "handDrawn") {
2746
2750
  const rc = rough_esm.svg(shapeSvg);
2747
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2751
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2748
2752
  const pathData = createDecisionBoxPathD(0, 0, s);
2749
2753
  const roughNode = rc.path(pathData, options);
2750
- polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-s / 2}, ${s / 2})`);
2754
+ polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-s / 2 + adjustment}, ${s / 2})`);
2751
2755
  if (cssStyles) {
2752
2756
  polygon.attr("style", cssStyles);
2753
2757
  }
2754
2758
  } else {
2755
2759
  polygon = insertPolygonShape(shapeSvg, s, s, points);
2760
+ polygon.attr("transform", `translate(${-s / 2 + adjustment}, ${s / 2})`);
2756
2761
  }
2757
2762
  if (nodeStyles) {
2758
2763
  polygon.attr("style", nodeStyles);
2759
2764
  }
2760
2765
  updateNodeBounds(node, polygon);
2766
+ node.calcIntersect = function(bounds, point) {
2767
+ const s2 = bounds.width;
2768
+ const points2 = [
2769
+ { x: s2 / 2, y: 0 },
2770
+ { x: s2, y: -s2 / 2 },
2771
+ { x: s2 / 2, y: -s2 },
2772
+ { x: 0, y: -s2 / 2 }
2773
+ ];
2774
+ const res = intersect_default.polygon(bounds, points2, point);
2775
+ return { x: res.x - 0.5, y: res.y - 0.5 };
2776
+ };
2761
2777
  node.intersect = function(point) {
2762
- chunk3XYRH5AP.log.debug(
2763
- "APA12 Intersect called SPLIT\npoint:",
2764
- point,
2765
- "\nnode:\n",
2766
- node,
2767
- "\nres:",
2768
- intersect_default.polygon(node, points, point)
2769
- );
2770
- return intersect_default.polygon(node, points, point);
2778
+ return this.calcIntersect(node, point);
2771
2779
  };
2772
2780
  return shapeSvg;
2773
2781
  }
2774
- chunk3XYRH5AP.__name(question, "question");
2782
+ chunkAGHRB4JF.__name(question, "question");
2775
2783
  async function rect_left_inv_arrow(parent, node) {
2776
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2784
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2777
2785
  node.labelStyle = labelStyles;
2778
2786
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
2779
2787
  const w = Math.max(bbox.width + (node.padding ?? 0), node?.width ?? 0);
@@ -2790,7 +2798,7 @@ async function rect_left_inv_arrow(parent, node) {
2790
2798
  ];
2791
2799
  const { cssStyles } = node;
2792
2800
  const rc = rough_esm.svg(shapeSvg);
2793
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2801
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2794
2802
  if (node.look !== "handDrawn") {
2795
2803
  options.roughness = 0;
2796
2804
  options.fillStyle = "solid";
@@ -2816,9 +2824,9 @@ async function rect_left_inv_arrow(parent, node) {
2816
2824
  };
2817
2825
  return shapeSvg;
2818
2826
  }
2819
- chunk3XYRH5AP.__name(rect_left_inv_arrow, "rect_left_inv_arrow");
2827
+ chunkAGHRB4JF.__name(rect_left_inv_arrow, "rect_left_inv_arrow");
2820
2828
  async function rectWithTitle(parent, node) {
2821
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
2829
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2822
2830
  node.labelStyle = labelStyles;
2823
2831
  let classes;
2824
2832
  if (!node.cssClasses) {
@@ -2833,14 +2841,14 @@ async function rectWithTitle(parent, node) {
2833
2841
  const title = node.label;
2834
2842
  const text2 = label.node().appendChild(await createLabel_default(title, node.labelStyle, true, true));
2835
2843
  let bbox = { width: 0, height: 0 };
2836
- if (chunk3XYRH5AP.evaluate(chunk3XYRH5AP.getConfig2()?.flowchart?.htmlLabels)) {
2844
+ if (chunkABZYJK2D.evaluate(chunkABZYJK2D.getConfig2()?.flowchart?.htmlLabels)) {
2837
2845
  const div2 = text2.children[0];
2838
2846
  const dv2 = select(text2);
2839
2847
  bbox = div2.getBoundingClientRect();
2840
2848
  dv2.attr("width", bbox.width);
2841
2849
  dv2.attr("height", bbox.height);
2842
2850
  }
2843
- chunk3XYRH5AP.log.info("Text 2", description);
2851
+ chunkAGHRB4JF.log.info("Text 2", description);
2844
2852
  const textRows = description || [];
2845
2853
  const titleBox = text2.getBBox();
2846
2854
  const descr = label.node().appendChild(
@@ -2878,7 +2886,7 @@ async function rectWithTitle(parent, node) {
2878
2886
  let innerLine;
2879
2887
  if (node.look === "handDrawn") {
2880
2888
  const rc = rough_esm.svg(shapeSvg);
2881
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
2889
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2882
2890
  const roughNode = rc.path(
2883
2891
  createRoundedRectPathD(x, y, totalWidth, totalHeight, node.rx || 0),
2884
2892
  options
@@ -2891,11 +2899,11 @@ async function rectWithTitle(parent, node) {
2891
2899
  options
2892
2900
  );
2893
2901
  innerLine = shapeSvg.insert(() => {
2894
- chunk3XYRH5AP.log.debug("Rough node insert CXC", roughNode);
2902
+ chunkAGHRB4JF.log.debug("Rough node insert CXC", roughNode);
2895
2903
  return roughLine;
2896
2904
  }, ":first-child");
2897
2905
  rect2 = shapeSvg.insert(() => {
2898
- chunk3XYRH5AP.log.debug("Rough node insert CXC", roughNode);
2906
+ chunkAGHRB4JF.log.debug("Rough node insert CXC", roughNode);
2899
2907
  return roughNode;
2900
2908
  }, ":first-child");
2901
2909
  } else {
@@ -2910,21 +2918,113 @@ async function rectWithTitle(parent, node) {
2910
2918
  };
2911
2919
  return shapeSvg;
2912
2920
  }
2913
- chunk3XYRH5AP.__name(rectWithTitle, "rectWithTitle");
2914
-
2915
- // src/rendering-util/rendering-elements/shapes/roundedRect.ts
2921
+ chunkAGHRB4JF.__name(rectWithTitle, "rectWithTitle");
2922
+ function generateArcPoints2(x1, y1, x2, y2, rx, ry, clockwise) {
2923
+ const numPoints = 20;
2924
+ const midX = (x1 + x2) / 2;
2925
+ const midY = (y1 + y2) / 2;
2926
+ const angle = Math.atan2(y2 - y1, x2 - x1);
2927
+ const dx = (x2 - x1) / 2;
2928
+ const dy = (y2 - y1) / 2;
2929
+ const transformedX = dx / rx;
2930
+ const transformedY = dy / ry;
2931
+ const distance = Math.sqrt(transformedX ** 2 + transformedY ** 2);
2932
+ if (distance > 1) {
2933
+ throw new Error("The given radii are too small to create an arc between the points.");
2934
+ }
2935
+ const scaledCenterDistance = Math.sqrt(1 - distance ** 2);
2936
+ const centerX = midX + scaledCenterDistance * ry * Math.sin(angle) * (clockwise ? -1 : 1);
2937
+ const centerY = midY - scaledCenterDistance * rx * Math.cos(angle) * (clockwise ? -1 : 1);
2938
+ const startAngle = Math.atan2((y1 - centerY) / ry, (x1 - centerX) / rx);
2939
+ const endAngle = Math.atan2((y2 - centerY) / ry, (x2 - centerX) / rx);
2940
+ let angleRange = endAngle - startAngle;
2941
+ if (clockwise && angleRange < 0) {
2942
+ angleRange += 2 * Math.PI;
2943
+ }
2944
+ if (!clockwise && angleRange > 0) {
2945
+ angleRange -= 2 * Math.PI;
2946
+ }
2947
+ const points = [];
2948
+ for (let i = 0; i < numPoints; i++) {
2949
+ const t = i / (numPoints - 1);
2950
+ const angle2 = startAngle + t * angleRange;
2951
+ const x = centerX + rx * Math.cos(angle2);
2952
+ const y = centerY + ry * Math.sin(angle2);
2953
+ points.push({ x, y });
2954
+ }
2955
+ return points;
2956
+ }
2957
+ chunkAGHRB4JF.__name(generateArcPoints2, "generateArcPoints");
2916
2958
  async function roundedRect(parent, node) {
2917
- const options = {
2918
- rx: 5,
2919
- ry: 5,
2920
- labelPaddingX: (node?.padding || 0) * 1,
2921
- labelPaddingY: (node?.padding || 0) * 1
2959
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2960
+ node.labelStyle = labelStyles;
2961
+ const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
2962
+ const labelPaddingX = node?.padding ?? 0;
2963
+ const labelPaddingY = node?.padding ?? 0;
2964
+ const w = (node?.width ? node?.width : bbox.width) + labelPaddingX * 2;
2965
+ const h = (node?.height ? node?.height : bbox.height) + labelPaddingY * 2;
2966
+ const radius = node.radius || 5;
2967
+ const taper = node.taper || 5;
2968
+ const { cssStyles } = node;
2969
+ const rc = rough_esm.svg(shapeSvg);
2970
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2971
+ if (node.stroke) {
2972
+ options.stroke = node.stroke;
2973
+ }
2974
+ if (node.look !== "handDrawn") {
2975
+ options.roughness = 0;
2976
+ options.fillStyle = "solid";
2977
+ }
2978
+ const points = [
2979
+ // Top edge (left to right)
2980
+ { x: -w / 2 + taper, y: -h / 2 },
2981
+ // Top-left corner start (1)
2982
+ { x: w / 2 - taper, y: -h / 2 },
2983
+ // Top-right corner start (2)
2984
+ ...generateArcPoints2(w / 2 - taper, -h / 2, w / 2, -h / 2 + taper, radius, radius, true),
2985
+ // Top-left arc (2 to 3)
2986
+ // Right edge (top to bottom)
2987
+ { x: w / 2, y: -h / 2 + taper },
2988
+ // Top-right taper point (3)
2989
+ { x: w / 2, y: h / 2 - taper },
2990
+ // Bottom-right taper point (4)
2991
+ ...generateArcPoints2(w / 2, h / 2 - taper, w / 2 - taper, h / 2, radius, radius, true),
2992
+ // Top-left arc (4 to 5)
2993
+ // Bottom edge (right to left)
2994
+ { x: w / 2 - taper, y: h / 2 },
2995
+ // Bottom-right corner start (5)
2996
+ { x: -w / 2 + taper, y: h / 2 },
2997
+ // Bottom-left corner start (6)
2998
+ ...generateArcPoints2(-w / 2 + taper, h / 2, -w / 2, h / 2 - taper, radius, radius, true),
2999
+ // Top-left arc (4 to 5)
3000
+ // Left edge (bottom to top)
3001
+ { x: -w / 2, y: h / 2 - taper },
3002
+ // Bottom-left taper point (7)
3003
+ { x: -w / 2, y: -h / 2 + taper },
3004
+ // Top-left taper point (8)
3005
+ ...generateArcPoints2(-w / 2, -h / 2 + taper, -w / 2 + taper, -h / 2, radius, radius, true)
3006
+ // Top-left arc (4 to 5)
3007
+ ];
3008
+ const pathData = createPathFromPoints(points);
3009
+ const shapeNode = rc.path(pathData, options);
3010
+ const polygon = shapeSvg.insert(() => shapeNode, ":first-child");
3011
+ polygon.attr("class", "basic label-container outer-path");
3012
+ if (cssStyles && node.look !== "handDrawn") {
3013
+ polygon.selectChildren("path").attr("style", cssStyles);
3014
+ }
3015
+ if (nodeStyles && node.look !== "handDrawn") {
3016
+ polygon.selectChildren("path").attr("style", nodeStyles);
3017
+ }
3018
+ updateNodeBounds(node, polygon);
3019
+ node.intersect = function(point) {
3020
+ const pos = intersect_default.polygon(node, points, point);
3021
+ return pos;
2922
3022
  };
2923
- return drawRect(parent, node, options);
3023
+ return shapeSvg;
2924
3024
  }
2925
- chunk3XYRH5AP.__name(roundedRect, "roundedRect");
3025
+ chunkAGHRB4JF.__name(roundedRect, "roundedRect");
2926
3026
  async function shadedProcess(parent, node) {
2927
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3027
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2928
3028
  node.labelStyle = labelStyles;
2929
3029
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
2930
3030
  const halfPadding = node?.padding ?? 0;
@@ -2934,7 +3034,7 @@ async function shadedProcess(parent, node) {
2934
3034
  const y = -bbox.height / 2 - halfPadding;
2935
3035
  const { cssStyles } = node;
2936
3036
  const rc = rough_esm.svg(shapeSvg);
2937
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3037
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2938
3038
  if (node.look !== "handDrawn") {
2939
3039
  options.roughness = 0;
2940
3040
  options.fillStyle = "solid";
@@ -2953,7 +3053,7 @@ async function shadedProcess(parent, node) {
2953
3053
  options
2954
3054
  );
2955
3055
  const rect2 = shapeSvg.insert(() => roughNode, ":first-child");
2956
- rect2.attr("class", "basic label-container").attr("style", chunk55PJQP7W.handleUndefinedAttr(cssStyles));
3056
+ rect2.attr("class", "basic label-container").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles));
2957
3057
  if (nodeStyles && node.look !== "handDrawn") {
2958
3058
  rect2.selectAll("path").attr("style", nodeStyles);
2959
3059
  }
@@ -2970,9 +3070,9 @@ async function shadedProcess(parent, node) {
2970
3070
  };
2971
3071
  return shapeSvg;
2972
3072
  }
2973
- chunk3XYRH5AP.__name(shadedProcess, "shadedProcess");
3073
+ chunkAGHRB4JF.__name(shadedProcess, "shadedProcess");
2974
3074
  async function slopedRect(parent, node) {
2975
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3075
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
2976
3076
  node.labelStyle = labelStyles;
2977
3077
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
2978
3078
  const w = Math.max(bbox.width + (node.padding ?? 0) * 2, node?.width ?? 0);
@@ -2981,7 +3081,7 @@ async function slopedRect(parent, node) {
2981
3081
  const y = -h / 2;
2982
3082
  const { cssStyles } = node;
2983
3083
  const rc = rough_esm.svg(shapeSvg);
2984
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3084
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
2985
3085
  if (node.look !== "handDrawn") {
2986
3086
  options.roughness = 0;
2987
3087
  options.fillStyle = "solid";
@@ -3014,45 +3114,58 @@ async function slopedRect(parent, node) {
3014
3114
  };
3015
3115
  return shapeSvg;
3016
3116
  }
3017
- chunk3XYRH5AP.__name(slopedRect, "slopedRect");
3117
+ chunkAGHRB4JF.__name(slopedRect, "slopedRect");
3018
3118
 
3019
3119
  // src/rendering-util/rendering-elements/shapes/squareRect.ts
3020
3120
  async function squareRect2(parent, node) {
3021
3121
  const options = {
3022
3122
  rx: 0,
3023
3123
  ry: 0,
3024
- labelPaddingX: (node?.padding || 0) * 2,
3124
+ labelPaddingX: node.labelPaddingX ?? (node?.padding || 0) * 2,
3025
3125
  labelPaddingY: (node?.padding || 0) * 1
3026
3126
  };
3027
3127
  return drawRect(parent, node, options);
3028
3128
  }
3029
- chunk3XYRH5AP.__name(squareRect2, "squareRect");
3129
+ chunkAGHRB4JF.__name(squareRect2, "squareRect");
3030
3130
  async function stadium(parent, node) {
3031
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3131
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3032
3132
  node.labelStyle = labelStyles;
3033
3133
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
3034
3134
  const h = bbox.height + node.padding;
3035
3135
  const w = bbox.width + h / 4 + node.padding;
3036
- let rect2;
3136
+ const radius = h / 2;
3037
3137
  const { cssStyles } = node;
3038
- if (node.look === "handDrawn") {
3039
- const rc = rough_esm.svg(shapeSvg);
3040
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3041
- const pathData = createRoundedRectPathD(-w / 2, -h / 2, w, h, h / 2);
3042
- const roughNode = rc.path(pathData, options);
3043
- rect2 = shapeSvg.insert(() => roughNode, ":first-child");
3044
- rect2.attr("class", "basic label-container").attr("style", chunk55PJQP7W.handleUndefinedAttr(cssStyles));
3045
- } else {
3046
- rect2 = shapeSvg.insert("rect", ":first-child");
3047
- rect2.attr("class", "basic label-container").attr("style", nodeStyles).attr("rx", h / 2).attr("ry", h / 2).attr("x", -w / 2).attr("y", -h / 2).attr("width", w).attr("height", h);
3138
+ const rc = rough_esm.svg(shapeSvg);
3139
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3140
+ if (node.look !== "handDrawn") {
3141
+ options.roughness = 0;
3142
+ options.fillStyle = "solid";
3048
3143
  }
3049
- updateNodeBounds(node, rect2);
3144
+ const points = [
3145
+ { x: -w / 2 + radius, y: -h / 2 },
3146
+ { x: w / 2 - radius, y: -h / 2 },
3147
+ ...generateCirclePoints(-w / 2 + radius, 0, radius, 50, 90, 270),
3148
+ { x: w / 2 - radius, y: h / 2 },
3149
+ ...generateCirclePoints(w / 2 - radius, 0, radius, 50, 270, 450)
3150
+ ];
3151
+ const pathData = createPathFromPoints(points);
3152
+ const shapeNode = rc.path(pathData, options);
3153
+ const polygon = shapeSvg.insert(() => shapeNode, ":first-child");
3154
+ polygon.attr("class", "basic label-container outer-path");
3155
+ if (cssStyles && node.look !== "handDrawn") {
3156
+ polygon.selectChildren("path").attr("style", cssStyles);
3157
+ }
3158
+ if (nodeStyles && node.look !== "handDrawn") {
3159
+ polygon.selectChildren("path").attr("style", nodeStyles);
3160
+ }
3161
+ updateNodeBounds(node, polygon);
3050
3162
  node.intersect = function(point) {
3051
- return intersect_default.rect(node, point);
3163
+ const pos = intersect_default.polygon(node, points, point);
3164
+ return pos;
3052
3165
  };
3053
3166
  return shapeSvg;
3054
3167
  }
3055
- chunk3XYRH5AP.__name(stadium, "stadium");
3168
+ chunkAGHRB4JF.__name(stadium, "stadium");
3056
3169
 
3057
3170
  // src/rendering-util/rendering-elements/shapes/state.ts
3058
3171
  async function state(parent, node) {
@@ -3061,15 +3174,15 @@ async function state(parent, node) {
3061
3174
  ry: 5};
3062
3175
  return drawRect(parent, node, options);
3063
3176
  }
3064
- chunk3XYRH5AP.__name(state, "state");
3177
+ chunkAGHRB4JF.__name(state, "state");
3065
3178
  function stateEnd(parent, node, { config: { themeVariables } }) {
3066
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3179
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3067
3180
  node.labelStyle = labelStyles;
3068
3181
  const { cssStyles } = node;
3069
3182
  const { lineColor, stateBorder, nodeBorder } = themeVariables;
3070
3183
  const shapeSvg = parent.insert("g").attr("class", "node default").attr("id", node.domId || node.id);
3071
3184
  const rc = rough_esm.svg(shapeSvg);
3072
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3185
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3073
3186
  if (node.look !== "handDrawn") {
3074
3187
  options.roughness = 0;
3075
3188
  options.fillStyle = "solid";
@@ -3101,14 +3214,14 @@ function stateEnd(parent, node, { config: { themeVariables } }) {
3101
3214
  };
3102
3215
  return shapeSvg;
3103
3216
  }
3104
- chunk3XYRH5AP.__name(stateEnd, "stateEnd");
3217
+ chunkAGHRB4JF.__name(stateEnd, "stateEnd");
3105
3218
  function stateStart(parent, node, { config: { themeVariables } }) {
3106
3219
  const { lineColor } = themeVariables;
3107
3220
  const shapeSvg = parent.insert("g").attr("class", "node default").attr("id", node.domId || node.id);
3108
3221
  let circle2;
3109
3222
  if (node.look === "handDrawn") {
3110
3223
  const rc = rough_esm.svg(shapeSvg);
3111
- const roughNode = rc.circle(0, 0, 14, chunkUWXLY5YG.solidStateFill(lineColor));
3224
+ const roughNode = rc.circle(0, 0, 14, chunkATLVNIR6.solidStateFill(lineColor));
3112
3225
  circle2 = shapeSvg.insert(() => roughNode);
3113
3226
  circle2.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14);
3114
3227
  } else {
@@ -3121,9 +3234,9 @@ function stateStart(parent, node, { config: { themeVariables } }) {
3121
3234
  };
3122
3235
  return shapeSvg;
3123
3236
  }
3124
- chunk3XYRH5AP.__name(stateStart, "stateStart");
3237
+ chunkAGHRB4JF.__name(stateStart, "stateStart");
3125
3238
  async function subroutine(parent, node) {
3126
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3239
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3127
3240
  node.labelStyle = labelStyles;
3128
3241
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
3129
3242
  const halfPadding = (node?.padding || 0) / 2;
@@ -3145,7 +3258,7 @@ async function subroutine(parent, node) {
3145
3258
  ];
3146
3259
  if (node.look === "handDrawn") {
3147
3260
  const rc = rough_esm.svg(shapeSvg);
3148
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3261
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3149
3262
  const roughNode = rc.rectangle(x - 8, y, w + 16, h, options);
3150
3263
  const l1 = rc.line(x, y, x, y + h, options);
3151
3264
  const l2 = rc.line(x + w, y, x + w, y + h, options);
@@ -3153,7 +3266,7 @@ async function subroutine(parent, node) {
3153
3266
  shapeSvg.insert(() => l2, ":first-child");
3154
3267
  const rect2 = shapeSvg.insert(() => roughNode, ":first-child");
3155
3268
  const { cssStyles } = node;
3156
- rect2.attr("class", "basic label-container").attr("style", chunk55PJQP7W.handleUndefinedAttr(cssStyles));
3269
+ rect2.attr("class", "basic label-container").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles));
3157
3270
  updateNodeBounds(node, rect2);
3158
3271
  } else {
3159
3272
  const el = insertPolygonShape(shapeSvg, w, h, points);
@@ -3167,9 +3280,9 @@ async function subroutine(parent, node) {
3167
3280
  };
3168
3281
  return shapeSvg;
3169
3282
  }
3170
- chunk3XYRH5AP.__name(subroutine, "subroutine");
3283
+ chunkAGHRB4JF.__name(subroutine, "subroutine");
3171
3284
  async function taggedRect(parent, node) {
3172
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3285
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3173
3286
  node.labelStyle = labelStyles;
3174
3287
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
3175
3288
  const w = Math.max(bbox.width + (node.padding ?? 0) * 2, node?.width ?? 0);
@@ -3180,7 +3293,7 @@ async function taggedRect(parent, node) {
3180
3293
  const tagHeight = 0.2 * h;
3181
3294
  const { cssStyles } = node;
3182
3295
  const rc = rough_esm.svg(shapeSvg);
3183
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3296
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3184
3297
  const rectPoints = [
3185
3298
  { x: x - tagWidth / 2, y },
3186
3299
  { x: x + w + tagWidth / 2, y },
@@ -3216,9 +3329,9 @@ async function taggedRect(parent, node) {
3216
3329
  };
3217
3330
  return shapeSvg;
3218
3331
  }
3219
- chunk3XYRH5AP.__name(taggedRect, "taggedRect");
3332
+ chunkAGHRB4JF.__name(taggedRect, "taggedRect");
3220
3333
  async function taggedWaveEdgedRectangle(parent, node) {
3221
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3334
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3222
3335
  node.labelStyle = labelStyles;
3223
3336
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
3224
3337
  const w = Math.max(bbox.width + (node.padding ?? 0) * 2, node?.width ?? 0);
@@ -3229,7 +3342,7 @@ async function taggedWaveEdgedRectangle(parent, node) {
3229
3342
  const finalH = h + waveAmplitude;
3230
3343
  const { cssStyles } = node;
3231
3344
  const rc = rough_esm.svg(shapeSvg);
3232
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3345
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3233
3346
  if (node.look !== "handDrawn") {
3234
3347
  options.roughness = 0;
3235
3348
  options.fillStyle = "solid";
@@ -3290,11 +3403,11 @@ async function taggedWaveEdgedRectangle(parent, node) {
3290
3403
  };
3291
3404
  return shapeSvg;
3292
3405
  }
3293
- chunk3XYRH5AP.__name(taggedWaveEdgedRectangle, "taggedWaveEdgedRectangle");
3406
+ chunkAGHRB4JF.__name(taggedWaveEdgedRectangle, "taggedWaveEdgedRectangle");
3294
3407
 
3295
3408
  // src/rendering-util/rendering-elements/shapes/text.ts
3296
3409
  async function text(parent, node) {
3297
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3410
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3298
3411
  node.labelStyle = labelStyles;
3299
3412
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
3300
3413
  const totalWidth = Math.max(bbox.width + node.padding, node?.width || 0);
@@ -3309,8 +3422,8 @@ async function text(parent, node) {
3309
3422
  };
3310
3423
  return shapeSvg;
3311
3424
  }
3312
- chunk3XYRH5AP.__name(text, "text");
3313
- var createCylinderPathD3 = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, height, rx, ry) => {
3425
+ chunkAGHRB4JF.__name(text, "text");
3426
+ var createCylinderPathD3 = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, width, height, rx, ry) => {
3314
3427
  return `M${x},${y}
3315
3428
  a${rx},${ry} 0,0,1 ${0},${-height}
3316
3429
  l${width},${0}
@@ -3319,7 +3432,7 @@ var createCylinderPathD3 = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, he
3319
3432
  a${rx},${ry} 0,0,0 ${0},${height}
3320
3433
  l${-width},${0}`;
3321
3434
  }, "createCylinderPathD");
3322
- var createOuterCylinderPathD3 = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, height, rx, ry) => {
3435
+ var createOuterCylinderPathD3 = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, width, height, rx, ry) => {
3323
3436
  return [
3324
3437
  `M${x},${y}`,
3325
3438
  `M${x + width},${y}`,
@@ -3329,11 +3442,11 @@ var createOuterCylinderPathD3 = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, widt
3329
3442
  `l${width},0`
3330
3443
  ].join(" ");
3331
3444
  }, "createOuterCylinderPathD");
3332
- var createInnerCylinderPathD3 = /* @__PURE__ */ chunk3XYRH5AP.__name((x, y, width, height, rx, ry) => {
3445
+ var createInnerCylinderPathD3 = /* @__PURE__ */ chunkAGHRB4JF.__name((x, y, width, height, rx, ry) => {
3333
3446
  return [`M${x + width / 2},${-height / 2}`, `a${rx},${ry} 0,0,0 0,${height}`].join(" ");
3334
3447
  }, "createInnerCylinderPathD");
3335
3448
  async function tiltedCylinder(parent, node) {
3336
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3449
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3337
3450
  node.labelStyle = labelStyles;
3338
3451
  const { shapeSvg, bbox, label, halfPadding } = await labelHelper(
3339
3452
  parent,
@@ -3351,8 +3464,8 @@ async function tiltedCylinder(parent, node) {
3351
3464
  const rc = rough_esm.svg(shapeSvg);
3352
3465
  const outerPathData = createOuterCylinderPathD3(0, 0, w, h, rx, ry);
3353
3466
  const innerPathData = createInnerCylinderPathD3(0, 0, w, h, rx, ry);
3354
- const outerNode = rc.path(outerPathData, chunkUWXLY5YG.userNodeOverrides(node, {}));
3355
- const innerLine = rc.path(innerPathData, chunkUWXLY5YG.userNodeOverrides(node, { fill: "none" }));
3467
+ const outerNode = rc.path(outerPathData, chunkATLVNIR6.userNodeOverrides(node, {}));
3468
+ const innerLine = rc.path(innerPathData, chunkATLVNIR6.userNodeOverrides(node, { fill: "none" }));
3356
3469
  cylinder2 = shapeSvg.insert(() => innerLine, ":first-child");
3357
3470
  cylinder2 = shapeSvg.insert(() => outerNode, ":first-child");
3358
3471
  cylinder2.attr("class", "basic label-container");
@@ -3361,7 +3474,7 @@ async function tiltedCylinder(parent, node) {
3361
3474
  }
3362
3475
  } else {
3363
3476
  const pathData = createCylinderPathD3(0, 0, w, h, rx, ry);
3364
- cylinder2 = shapeSvg.insert("path", ":first-child").attr("d", pathData).attr("class", "basic label-container").attr("style", chunk55PJQP7W.handleUndefinedAttr(cssStyles)).attr("style", nodeStyles);
3477
+ cylinder2 = shapeSvg.insert("path", ":first-child").attr("d", pathData).attr("class", "basic label-container").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles)).attr("style", nodeStyles);
3365
3478
  cylinder2.attr("class", "basic label-container");
3366
3479
  if (cssStyles) {
3367
3480
  cylinder2.selectAll("path").attr("style", cssStyles);
@@ -3395,9 +3508,9 @@ async function tiltedCylinder(parent, node) {
3395
3508
  };
3396
3509
  return shapeSvg;
3397
3510
  }
3398
- chunk3XYRH5AP.__name(tiltedCylinder, "tiltedCylinder");
3511
+ chunkAGHRB4JF.__name(tiltedCylinder, "tiltedCylinder");
3399
3512
  async function trapezoid(parent, node) {
3400
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3513
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3401
3514
  node.labelStyle = labelStyles;
3402
3515
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
3403
3516
  const w = bbox.width + node.padding;
@@ -3412,7 +3525,7 @@ async function trapezoid(parent, node) {
3412
3525
  const { cssStyles } = node;
3413
3526
  if (node.look === "handDrawn") {
3414
3527
  const rc = rough_esm.svg(shapeSvg);
3415
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3528
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3416
3529
  const pathData = createPathFromPoints(points);
3417
3530
  const roughNode = rc.path(pathData, options);
3418
3531
  polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-w / 2}, ${h / 2})`);
@@ -3433,9 +3546,9 @@ async function trapezoid(parent, node) {
3433
3546
  };
3434
3547
  return shapeSvg;
3435
3548
  }
3436
- chunk3XYRH5AP.__name(trapezoid, "trapezoid");
3549
+ chunkAGHRB4JF.__name(trapezoid, "trapezoid");
3437
3550
  async function trapezoidalPentagon(parent, node) {
3438
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3551
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3439
3552
  node.labelStyle = labelStyles;
3440
3553
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
3441
3554
  const minWidth = 60, minHeight = 20;
@@ -3443,7 +3556,7 @@ async function trapezoidalPentagon(parent, node) {
3443
3556
  const h = Math.max(minHeight, bbox.height + (node.padding ?? 0) * 2, node?.height ?? 0);
3444
3557
  const { cssStyles } = node;
3445
3558
  const rc = rough_esm.svg(shapeSvg);
3446
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3559
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3447
3560
  if (node.look !== "handDrawn") {
3448
3561
  options.roughness = 0;
3449
3562
  options.fillStyle = "solid";
@@ -3473,12 +3586,12 @@ async function trapezoidalPentagon(parent, node) {
3473
3586
  };
3474
3587
  return shapeSvg;
3475
3588
  }
3476
- chunk3XYRH5AP.__name(trapezoidalPentagon, "trapezoidalPentagon");
3589
+ chunkAGHRB4JF.__name(trapezoidalPentagon, "trapezoidalPentagon");
3477
3590
  async function triangle(parent, node) {
3478
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3591
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3479
3592
  node.labelStyle = labelStyles;
3480
3593
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
3481
- const useHtmlLabels = chunk3XYRH5AP.evaluate(chunk3XYRH5AP.getConfig2().flowchart?.htmlLabels);
3594
+ const useHtmlLabels = chunkABZYJK2D.evaluate(chunkABZYJK2D.getConfig2().flowchart?.htmlLabels);
3482
3595
  const w = bbox.width + (node.padding ?? 0);
3483
3596
  const h = w + bbox.height;
3484
3597
  const tw = w + bbox.height;
@@ -3489,7 +3602,7 @@ async function triangle(parent, node) {
3489
3602
  ];
3490
3603
  const { cssStyles } = node;
3491
3604
  const rc = rough_esm.svg(shapeSvg);
3492
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3605
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3493
3606
  if (node.look !== "handDrawn") {
3494
3607
  options.roughness = 0;
3495
3608
  options.fillStyle = "solid";
@@ -3511,14 +3624,14 @@ async function triangle(parent, node) {
3511
3624
  `translate(${-bbox.width / 2 - (bbox.x - (bbox.left ?? 0))}, ${h / 2 - (bbox.height + (node.padding ?? 0) / (useHtmlLabels ? 2 : 1) - (bbox.y - (bbox.top ?? 0)))})`
3512
3625
  );
3513
3626
  node.intersect = function(point) {
3514
- chunk3XYRH5AP.log.info("Triangle intersect", node, points, point);
3627
+ chunkAGHRB4JF.log.info("Triangle intersect", node, points, point);
3515
3628
  return intersect_default.polygon(node, points, point);
3516
3629
  };
3517
3630
  return shapeSvg;
3518
3631
  }
3519
- chunk3XYRH5AP.__name(triangle, "triangle");
3632
+ chunkAGHRB4JF.__name(triangle, "triangle");
3520
3633
  async function waveEdgedRectangle(parent, node) {
3521
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3634
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3522
3635
  node.labelStyle = labelStyles;
3523
3636
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
3524
3637
  const w = Math.max(bbox.width + (node.padding ?? 0) * 2, node?.width ?? 0);
@@ -3530,7 +3643,7 @@ async function waveEdgedRectangle(parent, node) {
3530
3643
  const widthDif = minWidth - w;
3531
3644
  const extraW = widthDif > 0 ? widthDif / 2 : 0;
3532
3645
  const rc = rough_esm.svg(shapeSvg);
3533
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3646
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3534
3647
  if (node.look !== "handDrawn") {
3535
3648
  options.roughness = 0;
3536
3649
  options.fillStyle = "solid";
@@ -3570,9 +3683,9 @@ async function waveEdgedRectangle(parent, node) {
3570
3683
  };
3571
3684
  return shapeSvg;
3572
3685
  }
3573
- chunk3XYRH5AP.__name(waveEdgedRectangle, "waveEdgedRectangle");
3686
+ chunkAGHRB4JF.__name(waveEdgedRectangle, "waveEdgedRectangle");
3574
3687
  async function waveRectangle(parent, node) {
3575
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3688
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3576
3689
  node.labelStyle = labelStyles;
3577
3690
  const { shapeSvg, bbox } = await labelHelper(parent, node, getNodeClasses(node));
3578
3691
  const minWidth = 100;
@@ -3593,7 +3706,7 @@ async function waveRectangle(parent, node) {
3593
3706
  const finalH = h + waveAmplitude * 2;
3594
3707
  const { cssStyles } = node;
3595
3708
  const rc = rough_esm.svg(shapeSvg);
3596
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3709
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3597
3710
  if (node.look !== "handDrawn") {
3598
3711
  options.roughness = 0;
3599
3712
  options.fillStyle = "solid";
@@ -3621,9 +3734,9 @@ async function waveRectangle(parent, node) {
3621
3734
  };
3622
3735
  return shapeSvg;
3623
3736
  }
3624
- chunk3XYRH5AP.__name(waveRectangle, "waveRectangle");
3737
+ chunkAGHRB4JF.__name(waveRectangle, "waveRectangle");
3625
3738
  async function windowPane(parent, node) {
3626
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3739
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3627
3740
  node.labelStyle = labelStyles;
3628
3741
  const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
3629
3742
  const w = Math.max(bbox.width + (node.padding ?? 0) * 2, node?.width ?? 0);
@@ -3633,7 +3746,7 @@ async function windowPane(parent, node) {
3633
3746
  const y = -h / 2;
3634
3747
  const { cssStyles } = node;
3635
3748
  const rc = rough_esm.svg(shapeSvg);
3636
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3749
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3637
3750
  const outerPathPoints = [
3638
3751
  { x: x - rectOffset, y: y - rectOffset },
3639
3752
  { x: x - rectOffset, y: y + h },
@@ -3668,14 +3781,14 @@ async function windowPane(parent, node) {
3668
3781
  };
3669
3782
  return shapeSvg;
3670
3783
  }
3671
- chunk3XYRH5AP.__name(windowPane, "windowPane");
3784
+ chunkAGHRB4JF.__name(windowPane, "windowPane");
3672
3785
  async function erBox(parent, node) {
3673
3786
  const entityNode = node;
3674
3787
  if (entityNode.alias) {
3675
3788
  node.label = entityNode.alias;
3676
3789
  }
3677
3790
  if (node.look === "handDrawn") {
3678
- const { themeVariables: themeVariables2 } = chunk3XYRH5AP.getConfig();
3791
+ const { themeVariables: themeVariables2 } = chunkABZYJK2D.getConfig();
3679
3792
  const { background } = themeVariables2;
3680
3793
  const backgroundNode = {
3681
3794
  ...node,
@@ -3685,23 +3798,23 @@ async function erBox(parent, node) {
3685
3798
  };
3686
3799
  await erBox(parent, backgroundNode);
3687
3800
  }
3688
- const config = chunk3XYRH5AP.getConfig();
3801
+ const config = chunkABZYJK2D.getConfig();
3689
3802
  node.useHtmlLabels = config.htmlLabels;
3690
3803
  let PADDING = config.er?.diagramPadding ?? 10;
3691
3804
  let TEXT_PADDING = config.er?.entityPadding ?? 6;
3692
3805
  const { cssStyles } = node;
3693
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
3806
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
3694
3807
  if (entityNode.attributes.length === 0 && node.label) {
3695
3808
  const options2 = {
3696
3809
  rx: 0,
3697
3810
  ry: 0,
3698
3811
  labelPaddingX: PADDING,
3699
3812
  labelPaddingY: PADDING * 1.5};
3700
- if (chunk55PJQP7W.calculateTextWidth(node.label, config) + options2.labelPaddingX * 2 < config.er.minEntityWidth) {
3813
+ if (chunkS3R3BYOJ.calculateTextWidth(node.label, config) + options2.labelPaddingX * 2 < config.er.minEntityWidth) {
3701
3814
  node.width = config.er.minEntityWidth;
3702
3815
  }
3703
3816
  const shapeSvg2 = await drawRect(parent, node, options2);
3704
- if (!chunk3XYRH5AP.evaluate(config.htmlLabels)) {
3817
+ if (!chunkABZYJK2D.evaluate(config.htmlLabels)) {
3705
3818
  const textElement = shapeSvg2.select("text");
3706
3819
  const bbox = textElement.node()?.getBBox();
3707
3820
  textElement.attr("transform", `translate(${-bbox.width / 2}, 0)`);
@@ -3798,7 +3911,7 @@ async function erBox(parent, node) {
3798
3911
  }
3799
3912
  const maxWidth = maxTypeWidth + maxNameWidth + maxKeysWidth + maxCommentWidth;
3800
3913
  const rc = rough_esm.svg(shapeSvg);
3801
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
3914
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
3802
3915
  if (node.look !== "handDrawn") {
3803
3916
  options.roughness = 0;
3804
3917
  options.fillStyle = "solid";
@@ -3839,7 +3952,7 @@ async function erBox(parent, node) {
3839
3952
  shapeSvg.select(".name").attr("transform", "translate(" + -nameBBox.width / 2 + ", " + (y + TEXT_PADDING / 2) + ")");
3840
3953
  const roughRect = rc.rectangle(x, y, w, h, options);
3841
3954
  const rect2 = shapeSvg.insert(() => roughRect, ":first-child").attr("style", cssStyles.join(""));
3842
- const { themeVariables } = chunk3XYRH5AP.getConfig();
3955
+ const { themeVariables } = chunkABZYJK2D.getConfig();
3843
3956
  const { rowEven, rowOdd, nodeBorder } = themeVariables;
3844
3957
  yOffsets.push(0);
3845
3958
  for (const [i, row] of rows.entries()) {
@@ -3900,19 +4013,19 @@ async function erBox(parent, node) {
3900
4013
  };
3901
4014
  return shapeSvg;
3902
4015
  }
3903
- chunk3XYRH5AP.__name(erBox, "erBox");
4016
+ chunkAGHRB4JF.__name(erBox, "erBox");
3904
4017
  async function addText(shapeSvg, labelText, config, translateX = 0, translateY = 0, classes = [], style = "") {
3905
4018
  const label = shapeSvg.insert("g").attr("class", `label ${classes.join(" ")}`).attr("transform", `translate(${translateX}, ${translateY})`).attr("style", style);
3906
- if (labelText !== chunk3XYRH5AP.parseGenericTypes(labelText)) {
3907
- labelText = chunk3XYRH5AP.parseGenericTypes(labelText);
4019
+ if (labelText !== chunkABZYJK2D.parseGenericTypes(labelText)) {
4020
+ labelText = chunkABZYJK2D.parseGenericTypes(labelText);
3908
4021
  labelText = labelText.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
3909
4022
  }
3910
4023
  const text2 = label.node().appendChild(
3911
- await chunkQESNASVV.createText(
4024
+ await chunkJA3XYJ7Z.createText(
3912
4025
  label,
3913
4026
  labelText,
3914
4027
  {
3915
- width: chunk55PJQP7W.calculateTextWidth(labelText, config) + 100,
4028
+ width: chunkS3R3BYOJ.calculateTextWidth(labelText, config) + 100,
3916
4029
  style,
3917
4030
  useHtmlLabels: config.htmlLabels
3918
4031
  },
@@ -3928,7 +4041,7 @@ async function addText(shapeSvg, labelText, config, translateX = 0, translateY =
3928
4041
  }
3929
4042
  }
3930
4043
  let bbox = text2.getBBox();
3931
- if (chunk3XYRH5AP.evaluate(config.htmlLabels)) {
4044
+ if (chunkABZYJK2D.evaluate(config.htmlLabels)) {
3932
4045
  const div = text2.children[0];
3933
4046
  div.style.textAlign = "start";
3934
4047
  const dv = select(text2);
@@ -3938,7 +4051,7 @@ async function addText(shapeSvg, labelText, config, translateX = 0, translateY =
3938
4051
  }
3939
4052
  return bbox;
3940
4053
  }
3941
- chunk3XYRH5AP.__name(addText, "addText");
4054
+ chunkAGHRB4JF.__name(addText, "addText");
3942
4055
  async function textHelper(parent, node, config, useHtmlLabels, GAP = config.class.padding ?? 12) {
3943
4056
  const TEXT_PADDING = !useHtmlLabels ? 3 : 0;
3944
4057
  const shapeSvg = parent.insert("g").attr("class", getNodeClasses(node)).attr("id", node.domId || node.id);
@@ -3995,11 +4108,11 @@ async function textHelper(parent, node, config, useHtmlLabels, GAP = config.clas
3995
4108
  bbox = shapeSvg.node().getBBox();
3996
4109
  return { shapeSvg, bbox };
3997
4110
  }
3998
- chunk3XYRH5AP.__name(textHelper, "textHelper");
4111
+ chunkAGHRB4JF.__name(textHelper, "textHelper");
3999
4112
  async function addText2(parentGroup, node, yOffset, styles = []) {
4000
4113
  const textEl = parentGroup.insert("g").attr("class", "label").attr("style", styles.join("; "));
4001
- const config = chunk3XYRH5AP.getConfig();
4002
- let useHtmlLabels = "useHtmlLabels" in node ? node.useHtmlLabels : chunk3XYRH5AP.evaluate(config.htmlLabels) ?? true;
4114
+ const config = chunkABZYJK2D.getConfig();
4115
+ let useHtmlLabels = "useHtmlLabels" in node ? node.useHtmlLabels : chunkABZYJK2D.evaluate(config.htmlLabels) ?? true;
4003
4116
  let textContent = "";
4004
4117
  if ("text" in node) {
4005
4118
  textContent = node.text;
@@ -4009,14 +4122,14 @@ async function addText2(parentGroup, node, yOffset, styles = []) {
4009
4122
  if (!useHtmlLabels && textContent.startsWith("\\")) {
4010
4123
  textContent = textContent.substring(1);
4011
4124
  }
4012
- if (chunk3XYRH5AP.hasKatex(textContent)) {
4125
+ if (chunkABZYJK2D.hasKatex(textContent)) {
4013
4126
  useHtmlLabels = true;
4014
4127
  }
4015
- const text2 = await chunkQESNASVV.createText(
4128
+ const text2 = await chunkJA3XYJ7Z.createText(
4016
4129
  textEl,
4017
- chunk3XYRH5AP.sanitizeText2(chunk55PJQP7W.decodeEntities(textContent)),
4130
+ chunkABZYJK2D.sanitizeText2(chunkS3R3BYOJ.decodeEntities(textContent)),
4018
4131
  {
4019
- width: chunk55PJQP7W.calculateTextWidth(textContent, config) + 50,
4132
+ width: chunkS3R3BYOJ.calculateTextWidth(textContent, config) + 50,
4020
4133
  // Add room for error when splitting text into multiple lines
4021
4134
  classes: "markdown-node-label",
4022
4135
  useHtmlLabels
@@ -4069,7 +4182,7 @@ async function addText2(parentGroup, node, yOffset, styles = []) {
4069
4182
  }
4070
4183
  res(img);
4071
4184
  }
4072
- chunk3XYRH5AP.__name(setupImage, "setupImage");
4185
+ chunkAGHRB4JF.__name(setupImage, "setupImage");
4073
4186
  setTimeout(() => {
4074
4187
  if (img.complete) {
4075
4188
  setupImage();
@@ -4088,20 +4201,20 @@ async function addText2(parentGroup, node, yOffset, styles = []) {
4088
4201
  textEl.attr("transform", "translate(0," + (-bbox.height / (2 * numberOfLines) + yOffset) + ")");
4089
4202
  return bbox.height;
4090
4203
  }
4091
- chunk3XYRH5AP.__name(addText2, "addText");
4204
+ chunkAGHRB4JF.__name(addText2, "addText");
4092
4205
 
4093
4206
  // src/rendering-util/rendering-elements/shapes/classBox.ts
4094
4207
  async function classBox(parent, node) {
4095
- const config = chunk3XYRH5AP.getConfig2();
4208
+ const config = chunkABZYJK2D.getConfig2();
4096
4209
  const PADDING = config.class.padding ?? 12;
4097
4210
  const GAP = PADDING;
4098
- const useHtmlLabels = node.useHtmlLabels ?? chunk3XYRH5AP.evaluate(config.htmlLabels) ?? true;
4211
+ const useHtmlLabels = node.useHtmlLabels ?? chunkABZYJK2D.evaluate(config.htmlLabels) ?? true;
4099
4212
  const classNode = node;
4100
4213
  classNode.annotations = classNode.annotations ?? [];
4101
4214
  classNode.members = classNode.members ?? [];
4102
4215
  classNode.methods = classNode.methods ?? [];
4103
4216
  const { shapeSvg, bbox } = await textHelper(parent, node, config, useHtmlLabels, GAP);
4104
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
4217
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
4105
4218
  node.labelStyle = labelStyles;
4106
4219
  node.cssStyles = classNode.styles || "";
4107
4220
  const styles = classNode.styles?.join(";") || nodeStyles || "";
@@ -4110,7 +4223,7 @@ async function classBox(parent, node) {
4110
4223
  }
4111
4224
  const renderExtraBox = classNode.members.length === 0 && classNode.methods.length === 0 && !config.class?.hideEmptyMembersBox;
4112
4225
  const rc = rough_esm.svg(shapeSvg);
4113
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
4226
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
4114
4227
  if (node.look !== "handDrawn") {
4115
4228
  options.roughness = 0;
4116
4229
  options.fillStyle = "solid";
@@ -4215,9 +4328,9 @@ async function classBox(parent, node) {
4215
4328
  };
4216
4329
  return shapeSvg;
4217
4330
  }
4218
- chunk3XYRH5AP.__name(classBox, "classBox");
4331
+ chunkAGHRB4JF.__name(classBox, "classBox");
4219
4332
  async function requirementBox(parent, node) {
4220
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(node);
4333
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
4221
4334
  node.labelStyle = labelStyles;
4222
4335
  const requirementNode = node;
4223
4336
  const elementNode = node;
@@ -4248,7 +4361,7 @@ async function requirementBox(parent, node) {
4248
4361
  if (isRequirementNode) {
4249
4362
  const idHeight = await addText3(
4250
4363
  shapeSvg,
4251
- `${requirementNode.requirementId ? `id: ${requirementNode.requirementId}` : ""}`,
4364
+ `${requirementNode.requirementId ? `ID: ${requirementNode.requirementId}` : ""}`,
4252
4365
  accumulativeHeight,
4253
4366
  node.labelStyle
4254
4367
  );
@@ -4293,7 +4406,7 @@ async function requirementBox(parent, node) {
4293
4406
  const x = -totalWidth / 2;
4294
4407
  const y = -totalHeight / 2;
4295
4408
  const rc = rough_esm.svg(shapeSvg);
4296
- const options = chunkUWXLY5YG.userNodeOverrides(node, {});
4409
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
4297
4410
  if (node.look !== "handDrawn") {
4298
4411
  options.roughness = 0;
4299
4412
  options.fillStyle = "solid";
@@ -4338,19 +4451,19 @@ async function requirementBox(parent, node) {
4338
4451
  };
4339
4452
  return shapeSvg;
4340
4453
  }
4341
- chunk3XYRH5AP.__name(requirementBox, "requirementBox");
4454
+ chunkAGHRB4JF.__name(requirementBox, "requirementBox");
4342
4455
  async function addText3(parentGroup, inputText, yOffset, style = "") {
4343
4456
  if (inputText === "") {
4344
4457
  return 0;
4345
4458
  }
4346
4459
  const textEl = parentGroup.insert("g").attr("class", "label").attr("style", style);
4347
- const config = chunk3XYRH5AP.getConfig2();
4460
+ const config = chunkABZYJK2D.getConfig2();
4348
4461
  const useHtmlLabels = config.htmlLabels ?? true;
4349
- const text2 = await chunkQESNASVV.createText(
4462
+ const text2 = await chunkJA3XYJ7Z.createText(
4350
4463
  textEl,
4351
- chunk3XYRH5AP.sanitizeText2(chunk55PJQP7W.decodeEntities(inputText)),
4464
+ chunkABZYJK2D.sanitizeText2(chunkS3R3BYOJ.decodeEntities(inputText)),
4352
4465
  {
4353
- width: chunk55PJQP7W.calculateTextWidth(inputText, config) + 50,
4466
+ width: chunkS3R3BYOJ.calculateTextWidth(inputText, config) + 50,
4354
4467
  // Add room for error when splitting text into multiple lines
4355
4468
  classes: "markdown-node-label",
4356
4469
  useHtmlLabels,
@@ -4379,8 +4492,8 @@ async function addText3(parentGroup, inputText, yOffset, style = "") {
4379
4492
  textEl.attr("transform", `translate(${-bbox.width / 2},${-bbox.height / 2 + yOffset})`);
4380
4493
  return bbox.height;
4381
4494
  }
4382
- chunk3XYRH5AP.__name(addText3, "addText");
4383
- var colorFromPriority = /* @__PURE__ */ chunk3XYRH5AP.__name((priority) => {
4495
+ chunkAGHRB4JF.__name(addText3, "addText");
4496
+ var colorFromPriority = /* @__PURE__ */ chunkAGHRB4JF.__name((priority) => {
4384
4497
  switch (priority) {
4385
4498
  case "Very High":
4386
4499
  return "red";
@@ -4396,7 +4509,7 @@ var colorFromPriority = /* @__PURE__ */ chunk3XYRH5AP.__name((priority) => {
4396
4509
  }
4397
4510
  }, "colorFromPriority");
4398
4511
  async function kanbanItem(parent, kanbanNode, { config }) {
4399
- const { labelStyles, nodeStyles } = chunkUWXLY5YG.styles2String(kanbanNode);
4512
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(kanbanNode);
4400
4513
  kanbanNode.labelStyle = labelStyles || "";
4401
4514
  const labelPaddingX = 10;
4402
4515
  const orgWidth = kanbanNode.width;
@@ -4464,7 +4577,7 @@ async function kanbanItem(parent, kanbanNode, { config }) {
4464
4577
  const { cssStyles } = kanbanNode;
4465
4578
  if (kanbanNode.look === "handDrawn") {
4466
4579
  const rc = rough_esm.svg(shapeSvg);
4467
- const options2 = chunkUWXLY5YG.userNodeOverrides(kanbanNode, {});
4580
+ const options2 = chunkATLVNIR6.userNodeOverrides(kanbanNode, {});
4468
4581
  const roughNode = rx || ry ? rc.path(createRoundedRectPathD(x, y, totalWidth, totalHeight, rx || 0), options2) : rc.rectangle(x, y, totalWidth, totalHeight, options2);
4469
4582
  rect2 = shapeSvg.insert(() => roughNode, ":first-child");
4470
4583
  rect2.attr("class", "basic label-container").attr("style", cssStyles ? cssStyles : null);
@@ -4487,7 +4600,166 @@ async function kanbanItem(parent, kanbanNode, { config }) {
4487
4600
  };
4488
4601
  return shapeSvg;
4489
4602
  }
4490
- chunk3XYRH5AP.__name(kanbanItem, "kanbanItem");
4603
+ chunkAGHRB4JF.__name(kanbanItem, "kanbanItem");
4604
+ async function bang(parent, node) {
4605
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
4606
+ node.labelStyle = labelStyles;
4607
+ const { shapeSvg, bbox, halfPadding, label } = await labelHelper(
4608
+ parent,
4609
+ node,
4610
+ getNodeClasses(node)
4611
+ );
4612
+ const w = bbox.width + 10 * halfPadding;
4613
+ const h = bbox.height + 8 * halfPadding;
4614
+ const r = 0.15 * w;
4615
+ const { cssStyles } = node;
4616
+ const minWidth = bbox.width + 20;
4617
+ const minHeight = bbox.height + 20;
4618
+ const effectiveWidth = Math.max(w, minWidth);
4619
+ const effectiveHeight = Math.max(h, minHeight);
4620
+ label.attr("transform", `translate(${-bbox.width / 2}, ${-bbox.height / 2})`);
4621
+ let bangElem;
4622
+ const path = `M0 0
4623
+ a${r},${r} 1 0,0 ${effectiveWidth * 0.25},${ -1 * effectiveHeight * 0.1}
4624
+ a${r},${r} 1 0,0 ${effectiveWidth * 0.25},${0}
4625
+ a${r},${r} 1 0,0 ${effectiveWidth * 0.25},${0}
4626
+ a${r},${r} 1 0,0 ${effectiveWidth * 0.25},${effectiveHeight * 0.1}
4627
+
4628
+ a${r},${r} 1 0,0 ${effectiveWidth * 0.15},${effectiveHeight * 0.33}
4629
+ a${r * 0.8},${r * 0.8} 1 0,0 0,${effectiveHeight * 0.34}
4630
+ a${r},${r} 1 0,0 ${ -1 * effectiveWidth * 0.15},${effectiveHeight * 0.33}
4631
+
4632
+ a${r},${r} 1 0,0 ${ -1 * effectiveWidth * 0.25},${effectiveHeight * 0.15}
4633
+ a${r},${r} 1 0,0 ${ -1 * effectiveWidth * 0.25},0
4634
+ a${r},${r} 1 0,0 ${ -1 * effectiveWidth * 0.25},0
4635
+ a${r},${r} 1 0,0 ${ -1 * effectiveWidth * 0.25},${ -1 * effectiveHeight * 0.15}
4636
+
4637
+ a${r},${r} 1 0,0 ${ -1 * effectiveWidth * 0.1},${ -1 * effectiveHeight * 0.33}
4638
+ a${r * 0.8},${r * 0.8} 1 0,0 0,${ -1 * effectiveHeight * 0.34}
4639
+ a${r},${r} 1 0,0 ${effectiveWidth * 0.1},${ -1 * effectiveHeight * 0.33}
4640
+ H0 V0 Z`;
4641
+ if (node.look === "handDrawn") {
4642
+ const rc = rough_esm.svg(shapeSvg);
4643
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
4644
+ const roughNode = rc.path(path, options);
4645
+ bangElem = shapeSvg.insert(() => roughNode, ":first-child");
4646
+ bangElem.attr("class", "basic label-container").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles));
4647
+ } else {
4648
+ bangElem = shapeSvg.insert("path", ":first-child").attr("class", "basic label-container").attr("style", nodeStyles).attr("d", path);
4649
+ }
4650
+ bangElem.attr("transform", `translate(${-effectiveWidth / 2}, ${-effectiveHeight / 2})`);
4651
+ updateNodeBounds(node, bangElem);
4652
+ node.calcIntersect = function(bounds, point) {
4653
+ return intersect_default.rect(bounds, point);
4654
+ };
4655
+ node.intersect = function(point) {
4656
+ chunkAGHRB4JF.log.info("Bang intersect", node, point);
4657
+ return intersect_default.rect(node, point);
4658
+ };
4659
+ return shapeSvg;
4660
+ }
4661
+ chunkAGHRB4JF.__name(bang, "bang");
4662
+ async function cloud(parent, node) {
4663
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
4664
+ node.labelStyle = labelStyles;
4665
+ const { shapeSvg, bbox, halfPadding, label } = await labelHelper(
4666
+ parent,
4667
+ node,
4668
+ getNodeClasses(node)
4669
+ );
4670
+ const w = bbox.width + 2 * halfPadding;
4671
+ const h = bbox.height + 2 * halfPadding;
4672
+ const r1 = 0.15 * w;
4673
+ const r2 = 0.25 * w;
4674
+ const r3 = 0.35 * w;
4675
+ const r4 = 0.2 * w;
4676
+ const { cssStyles } = node;
4677
+ let cloudElem;
4678
+ const path = `M0 0
4679
+ a${r1},${r1} 0 0,1 ${w * 0.25},${ -1 * w * 0.1}
4680
+ a${r3},${r3} 1 0,1 ${w * 0.4},${ -1 * w * 0.1}
4681
+ a${r2},${r2} 1 0,1 ${w * 0.35},${w * 0.2}
4682
+
4683
+ a${r1},${r1} 1 0,1 ${w * 0.15},${h * 0.35}
4684
+ a${r4},${r4} 1 0,1 ${ -1 * w * 0.15},${h * 0.65}
4685
+
4686
+ a${r2},${r1} 1 0,1 ${ -1 * w * 0.25},${w * 0.15}
4687
+ a${r3},${r3} 1 0,1 ${ -1 * w * 0.5},0
4688
+ a${r1},${r1} 1 0,1 ${ -1 * w * 0.25},${ -1 * w * 0.15}
4689
+
4690
+ a${r1},${r1} 1 0,1 ${ -1 * w * 0.1},${ -1 * h * 0.35}
4691
+ a${r4},${r4} 1 0,1 ${w * 0.1},${ -1 * h * 0.65}
4692
+ H0 V0 Z`;
4693
+ if (node.look === "handDrawn") {
4694
+ const rc = rough_esm.svg(shapeSvg);
4695
+ const options = chunkATLVNIR6.userNodeOverrides(node, {});
4696
+ const roughNode = rc.path(path, options);
4697
+ cloudElem = shapeSvg.insert(() => roughNode, ":first-child");
4698
+ cloudElem.attr("class", "basic label-container").attr("style", chunkS3R3BYOJ.handleUndefinedAttr(cssStyles));
4699
+ } else {
4700
+ cloudElem = shapeSvg.insert("path", ":first-child").attr("class", "basic label-container").attr("style", nodeStyles).attr("d", path);
4701
+ }
4702
+ label.attr("transform", `translate(${-bbox.width / 2}, ${-bbox.height / 2})`);
4703
+ cloudElem.attr("transform", `translate(${-w / 2}, ${-h / 2})`);
4704
+ updateNodeBounds(node, cloudElem);
4705
+ node.calcIntersect = function(bounds, point) {
4706
+ return intersect_default.rect(bounds, point);
4707
+ };
4708
+ node.intersect = function(point) {
4709
+ chunkAGHRB4JF.log.info("Cloud intersect", node, point);
4710
+ return intersect_default.rect(node, point);
4711
+ };
4712
+ return shapeSvg;
4713
+ }
4714
+ chunkAGHRB4JF.__name(cloud, "cloud");
4715
+
4716
+ // src/rendering-util/rendering-elements/shapes/defaultMindmapNode.ts
4717
+ async function defaultMindmapNode(parent, node) {
4718
+ const { labelStyles, nodeStyles } = chunkATLVNIR6.styles2String(node);
4719
+ node.labelStyle = labelStyles;
4720
+ const { shapeSvg, bbox, halfPadding, label } = await labelHelper(
4721
+ parent,
4722
+ node,
4723
+ getNodeClasses(node)
4724
+ );
4725
+ const w = bbox.width + 8 * halfPadding;
4726
+ const h = bbox.height + 2 * halfPadding;
4727
+ const rd = 5;
4728
+ const rectPath = `
4729
+ M${-w / 2} ${h / 2 - rd}
4730
+ v${-h + 2 * rd}
4731
+ q0,-${rd} ${rd},-${rd}
4732
+ h${w - 2 * rd}
4733
+ q${rd},0 ${rd},${rd}
4734
+ v${h - 2 * rd}
4735
+ q0,${rd} -${rd},${rd}
4736
+ h${-w + 2 * rd}
4737
+ q-${rd},0 -${rd},-${rd}
4738
+ Z
4739
+ `;
4740
+ const bg = shapeSvg.append("path").attr("id", "node-" + node.id).attr("class", "node-bkg node-" + node.type).attr("style", nodeStyles).attr("d", rectPath);
4741
+ shapeSvg.append("line").attr("class", "node-line-").attr("x1", -w / 2).attr("y1", h / 2).attr("x2", w / 2).attr("y2", h / 2);
4742
+ label.attr("transform", `translate(${-bbox.width / 2}, ${-bbox.height / 2})`);
4743
+ shapeSvg.append(() => label.node());
4744
+ updateNodeBounds(node, bg);
4745
+ node.calcIntersect = function(bounds, point) {
4746
+ return intersect_default.rect(bounds, point);
4747
+ };
4748
+ node.intersect = function(point) {
4749
+ return intersect_default.rect(node, point);
4750
+ };
4751
+ return shapeSvg;
4752
+ }
4753
+ chunkAGHRB4JF.__name(defaultMindmapNode, "defaultMindmapNode");
4754
+
4755
+ // src/rendering-util/rendering-elements/shapes/mindmapCircle.ts
4756
+ async function mindmapCircle(parent, node) {
4757
+ const options = {
4758
+ padding: node.padding ?? 0
4759
+ };
4760
+ return circle(parent, node, options);
4761
+ }
4762
+ chunkAGHRB4JF.__name(mindmapCircle, "mindmapCircle");
4491
4763
 
4492
4764
  // src/rendering-util/rendering-elements/shapes.ts
4493
4765
  var shapesDefs = [
@@ -4541,6 +4813,22 @@ var shapesDefs = [
4541
4813
  aliases: ["circ"],
4542
4814
  handler: circle
4543
4815
  },
4816
+ {
4817
+ semanticName: "Bang",
4818
+ name: "Bang",
4819
+ shortName: "bang",
4820
+ description: "Bang",
4821
+ aliases: ["bang"],
4822
+ handler: bang
4823
+ },
4824
+ {
4825
+ semanticName: "Cloud",
4826
+ name: "Cloud",
4827
+ shortName: "cloud",
4828
+ description: "cloud",
4829
+ aliases: ["cloud"],
4830
+ handler: cloud
4831
+ },
4544
4832
  {
4545
4833
  semanticName: "Decision",
4546
4834
  name: "Diamond",
@@ -4858,7 +5146,7 @@ var shapesDefs = [
4858
5146
  handler: linedWaveEdgedRect
4859
5147
  }
4860
5148
  ];
4861
- var generateShapeMap = /* @__PURE__ */ chunk3XYRH5AP.__name(() => {
5149
+ var generateShapeMap = /* @__PURE__ */ chunkAGHRB4JF.__name(() => {
4862
5150
  const undocumentedShapes = {
4863
5151
  // States
4864
5152
  state,
@@ -4876,6 +5164,9 @@ var generateShapeMap = /* @__PURE__ */ chunk3XYRH5AP.__name(() => {
4876
5164
  anchor,
4877
5165
  // Kanban diagram
4878
5166
  kanbanItem,
5167
+ //Mindmap diagram
5168
+ mindmapCircle,
5169
+ defaultMindmapNode,
4879
5170
  // class diagram
4880
5171
  classBox,
4881
5172
  // er diagram
@@ -4900,7 +5191,7 @@ var shapes2 = generateShapeMap();
4900
5191
  function isValidShape(shape) {
4901
5192
  return shape in shapes2;
4902
5193
  }
4903
- chunk3XYRH5AP.__name(isValidShape, "isValidShape");
5194
+ chunkAGHRB4JF.__name(isValidShape, "isValidShape");
4904
5195
 
4905
5196
  // src/rendering-util/rendering-elements/nodes.ts
4906
5197
  var nodeElems = /* @__PURE__ */ new Map();
@@ -4940,16 +5231,16 @@ async function insertNode(elem, node, renderOptions) {
4940
5231
  }
4941
5232
  return newEl;
4942
5233
  }
4943
- chunk3XYRH5AP.__name(insertNode, "insertNode");
4944
- var setNodeElem = /* @__PURE__ */ chunk3XYRH5AP.__name((elem, node) => {
5234
+ chunkAGHRB4JF.__name(insertNode, "insertNode");
5235
+ var setNodeElem = /* @__PURE__ */ chunkAGHRB4JF.__name((elem, node) => {
4945
5236
  nodeElems.set(node.id, elem);
4946
5237
  }, "setNodeElem");
4947
- var clear2 = /* @__PURE__ */ chunk3XYRH5AP.__name(() => {
5238
+ var clear2 = /* @__PURE__ */ chunkAGHRB4JF.__name(() => {
4948
5239
  nodeElems.clear();
4949
5240
  }, "clear");
4950
- var positionNode = /* @__PURE__ */ chunk3XYRH5AP.__name((node) => {
5241
+ var positionNode = /* @__PURE__ */ chunkAGHRB4JF.__name((node) => {
4951
5242
  const el = nodeElems.get(node.id);
4952
- chunk3XYRH5AP.log.trace(
5243
+ chunkAGHRB4JF.log.trace(
4953
5244
  "Transforming node",
4954
5245
  node.diff,
4955
5246
  node,