docmedown 0.1.7 → 0.9.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 (304) hide show
  1. package/LICENSE +201 -21
  2. package/README.md +86 -37
  3. package/dist/architecture-7GRP2DOG-B8Xs9IfY.mjs +2 -0
  4. package/dist/architecture-7GRP2DOG-Vdsw7WC7.js +1 -0
  5. package/dist/cli.js +672 -1294
  6. package/dist/cynefin-OW5HDTMX-DU6kwwck.js +1 -0
  7. package/dist/cynefin-OW5HDTMX-F0P2M_lQ.mjs +2 -0
  8. package/dist/docmedown-compiler.js +228 -0
  9. package/dist/docmedown-mermaid.js +3588 -0
  10. package/dist/docmedown.cjs +7264 -80
  11. package/dist/docmedown.iife.js +7624 -424
  12. package/dist/docmedown.mjs +15531 -15009
  13. package/dist/docmedown.web.js +7628 -0
  14. package/dist/eventmodeling-NTZA5JFV-D58ICByZ.js +1 -0
  15. package/dist/eventmodeling-NTZA5JFV-SxxTo5cJ.mjs +2 -0
  16. package/dist/gitGraph-4MIJSDKK-C_R2a4aQ.mjs +2 -0
  17. package/dist/gitGraph-4MIJSDKK-CdMj8HJ8.js +1 -0
  18. package/dist/info-A6RAGUB7-CG4UBCfn.js +1 -0
  19. package/dist/info-A6RAGUB7-DmjQlHTj.mjs +2 -0
  20. package/dist/mermaid-BvOI3ZSW.js +3334 -0
  21. package/dist/mermaid-Cx9uSfoz.mjs +116948 -0
  22. package/dist/packet-AYTQ26CC-CMuoEJn0.js +1 -0
  23. package/dist/packet-AYTQ26CC-tdMo_iPL.mjs +2 -0
  24. package/dist/pie-WAS4IAKB-C1hjX8y0.js +1 -0
  25. package/dist/pie-WAS4IAKB-DG2Bio1G.mjs +2 -0
  26. package/dist/prism-CeBRmKvl.js +2 -0
  27. package/dist/prism-CummdiZX.mjs +1588 -0
  28. package/dist/radar-RG4KPBEZ-DHxYOB0f.mjs +2 -0
  29. package/dist/radar-RG4KPBEZ-Dvyo3gdA.js +1 -0
  30. package/dist/railroad-74A4TZTK-1sb9Z_QQ.js +1 -0
  31. package/dist/railroad-74A4TZTK-CwztrSkE.mjs +2 -0
  32. package/dist/railroad-abnf-HS5TGJTU-4264fZjH.js +1 -0
  33. package/dist/railroad-abnf-HS5TGJTU-BKCsR9iC.mjs +2 -0
  34. package/dist/railroad-ebnf-LZEXJU2U-BXErl5kO.js +1 -0
  35. package/dist/railroad-ebnf-LZEXJU2U-DzDOfuxK.mjs +2 -0
  36. package/dist/railroad-peg-WCYAUIDC-B6gNHamV.mjs +2 -0
  37. package/dist/railroad-peg-WCYAUIDC-D7pSwRGa.js +1 -0
  38. package/dist/rolldown-runtime-B0aSnxlc.mjs +20 -0
  39. package/dist/rolldown-runtime-DF3sbh8G.js +1 -0
  40. package/dist/svelte-compiler-loader-Deqbdbvf.js +1 -0
  41. package/dist/svelte-compiler-loader-DtYQgEKV.mjs +50 -0
  42. package/dist/svelte-runtime-Brc440dp.js +5 -0
  43. package/dist/svelte-runtime-CgCk_bw1.mjs +40 -0
  44. package/dist/treeView-Q6P3EWNA-DArM8kFH.mjs +2 -0
  45. package/dist/treeView-Q6P3EWNA-JstiGzov.js +1 -0
  46. package/dist/treemap-WGGIJYW6-CMIcmEVN.mjs +2 -0
  47. package/dist/treemap-WGGIJYW6-Dq6fFckz.js +1 -0
  48. package/dist/ts-compiler-BMDmcNn5.mjs +93 -0
  49. package/dist/ts-compiler-U7pTMJjY.js +3 -0
  50. package/dist/types/runtime/bridges/dynamic-component.d.ts +43 -0
  51. package/dist/types/runtime/bridges/element-bridge.d.ts +24 -0
  52. package/dist/types/runtime/bridges/index.d.ts +3 -0
  53. package/dist/types/runtime/bridges/react-bridge.d.ts +35 -0
  54. package/dist/types/runtime/compiler-cache.d.ts +18 -0
  55. package/dist/types/runtime/config-schema.d.ts +2 -0
  56. package/dist/types/runtime/favicons.d.ts +28 -0
  57. package/dist/types/runtime/loader/local-loader.d.ts +13 -0
  58. package/dist/types/runtime/markdown/component-body.d.ts +7 -0
  59. package/dist/types/runtime/markdown/escape.d.ts +1 -0
  60. package/dist/types/runtime/markdown/highlighter.d.ts +32 -6
  61. package/dist/types/runtime/markdown/katex.d.ts +5 -0
  62. package/dist/types/runtime/markdown/mermaid-engine.d.ts +1 -0
  63. package/dist/types/runtime/markdown/mermaid-loader.d.ts +19 -0
  64. package/dist/types/runtime/markdown/mermaid.d.ts +6 -0
  65. package/dist/types/runtime/markdown/tables.d.ts +68 -0
  66. package/dist/types/runtime/media.d.ts +30 -0
  67. package/dist/types/runtime/motion.d.ts +134 -0
  68. package/dist/types/runtime/offline-export.d.ts +9 -2
  69. package/dist/types/runtime/router.d.ts +40 -2
  70. package/dist/types/runtime/splash.d.ts +90 -0
  71. package/dist/types/runtime/svelte-compiler-engine.d.ts +1 -0
  72. package/dist/types/runtime/svelte-compiler-loader.d.ts +14 -0
  73. package/dist/types/runtime/svelte-runtime.d.ts +29 -0
  74. package/dist/types/runtime/svelte-tag.d.ts +7 -0
  75. package/dist/types/runtime/ts-compiler.d.ts +24 -0
  76. package/dist/types/runtime/types.d.ts +1 -0
  77. package/dist/types/ui/doc-context.svelte.d.ts +198 -0
  78. package/dist/types/ui/index.d.ts +33 -0
  79. package/dist/types/ui/registry.d.ts +52 -0
  80. package/dist/types/ui/theme.svelte.d.ts +32 -0
  81. package/dist/wardley-WFR3VGLG-BK9BA6h6.mjs +2 -0
  82. package/dist/wardley-WFR3VGLG-Cbs7W-dU.js +1 -0
  83. package/package.json +61 -48
  84. package/schemas/docs.schema.json +186 -181
  85. package/templates/.dmd/CounterWidget.svelte +29 -0
  86. package/templates/README.md +2 -2
  87. package/templates/favicon.svg +12 -0
  88. package/templates/favicons/favicon-book.svg +11 -0
  89. package/templates/favicons/favicon-markdown.svg +11 -0
  90. package/templates/favicons/favicon-minimal.svg +15 -0
  91. package/templates/favicons/favicon-terminal.svg +14 -0
  92. package/templates/favicons/favicon.svg +12 -0
  93. package/templates/guides/custom-components.md +82 -22
  94. package/templates/index.html +6 -3
  95. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +0 -89
  96. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +0 -1
  97. package/dist/arc-DgPKXEdT.mjs +0 -82
  98. package/dist/arc-n7TW7Bis.js +0 -1
  99. package/dist/architecture-7GRP2DOG-B7myQ46f.js +0 -1
  100. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +0 -3
  101. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +0 -36
  102. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +0 -4154
  103. package/dist/array-CApNbSU9.mjs +0 -6
  104. package/dist/array-DZSRzHA_.js +0 -1
  105. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +0 -129
  106. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +0 -1922
  107. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +0 -38
  108. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +0 -3010
  109. package/dist/channel-LgHproiI.mjs +0 -5
  110. package/dist/channel-yqu0m4cl.js +0 -1
  111. package/dist/chunk-2E4U76K2-BOyeRQsI.js +0 -1
  112. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +0 -348
  113. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +0 -15
  114. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +0 -1
  115. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +0 -62
  116. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +0 -4188
  117. package/dist/chunk-5VM5RSS4-GINalzIv.js +0 -15
  118. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +0 -5
  119. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +0 -2
  120. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +0 -1330
  121. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +0 -1
  122. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +0 -14
  123. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +0 -3836
  124. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +0 -127
  125. package/dist/chunk-F27PBJKO-8jvY_jJK.js +0 -1
  126. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +0 -61
  127. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +0 -21456
  128. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +0 -161
  129. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +0 -1863
  130. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +0 -72
  131. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +0 -37
  132. package/dist/chunk-GVQU2GXP-CdJIWN41.js +0 -1
  133. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +0 -2042
  134. package/dist/chunk-IMKFNOWR-CPJsszGN.js +0 -231
  135. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +0 -8
  136. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +0 -1
  137. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +0 -1
  138. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +0 -245
  139. package/dist/chunk-LNGE3PJU-BQX75wkM.js +0 -34
  140. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +0 -1521
  141. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +0 -672
  142. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +0 -10
  143. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +0 -67
  144. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +0 -1
  145. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +0 -26
  146. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +0 -1
  147. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +0 -275
  148. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +0 -1
  149. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +0 -4183
  150. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +0 -168
  151. package/dist/chunk-SVP7TREG-BFMd615E.js +0 -88
  152. package/dist/chunk-SVP7TREG-CynckzeF.mjs +0 -490
  153. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +0 -3357
  154. package/dist/chunk-TICWLB2K-agcyBfUp.js +0 -206
  155. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +0 -59
  156. package/dist/chunk-TLUHSLCS-Drx_a7am.js +0 -1
  157. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +0 -1
  158. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +0 -9
  159. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +0 -1
  160. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +0 -12
  161. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +0 -1
  162. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +0 -30
  163. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +0 -1
  164. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +0 -30
  165. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +0 -1
  166. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +0 -2253
  167. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +0 -3
  168. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +0 -1
  169. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +0 -62
  170. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +0 -355
  171. package/dist/cytoscape.esm-C5TvPYYm.mjs +0 -18148
  172. package/dist/cytoscape.esm-CBmWJr5M.js +0 -321
  173. package/dist/dagre-CZ6P9L_h.js +0 -1
  174. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +0 -4
  175. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +0 -425
  176. package/dist/dagre-J_1oH0eY.mjs +0 -1934
  177. package/dist/defaultLocale-N-0uLSyg.mjs +0 -198
  178. package/dist/defaultLocale-ybN1Vtvg.js +0 -1
  179. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +0 -30
  180. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +0 -301
  181. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +0 -41
  182. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +0 -214
  183. package/dist/diagram-VSXAHHWV-DgVT19mq.js +0 -3
  184. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +0 -432
  185. package/dist/diagram-VX7I27RA-CNw0pOX_.js +0 -24
  186. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +0 -527
  187. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +0 -134
  188. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +0 -24
  189. package/dist/dist-CXWJafG_.js +0 -1
  190. package/dist/dist-DNdLIC8h.mjs +0 -59
  191. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +0 -1
  192. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +0 -100
  193. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +0 -99
  194. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +0 -1966
  195. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +0 -1
  196. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +0 -3
  197. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +0 -1
  198. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +0 -17
  199. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +0 -3072
  200. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +0 -292
  201. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +0 -1
  202. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +0 -3
  203. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +0 -106
  204. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +0 -733
  205. package/dist/graphlib-BaETKKSa.js +0 -1
  206. package/dist/graphlib-XW-Jr8pF.mjs +0 -1267
  207. package/dist/info-A6RAGUB7-ClYskpn6.mjs +0 -3
  208. package/dist/info-A6RAGUB7-DDvvt-fW.js +0 -1
  209. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +0 -20
  210. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +0 -2
  211. package/dist/init-BJdqMO10.js +0 -1
  212. package/dist/init-CsQUQz36.mjs +0 -13
  213. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +0 -70
  214. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +0 -719
  215. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +0 -139
  216. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +0 -884
  217. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +0 -976
  218. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +0 -89
  219. package/dist/line-BEwhHSLl.js +0 -1
  220. package/dist/line-CiXRog8O.mjs +0 -34
  221. package/dist/linear-75tfjrny.js +0 -1
  222. package/dist/linear-Ncx_RuON.mjs +0 -288
  223. package/dist/mermaid-parser.core-BBApyu_y.js +0 -6
  224. package/dist/mermaid-parser.core-BRHibdUE.mjs +0 -638
  225. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +0 -1006
  226. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +0 -96
  227. package/dist/ordinal-B1BNQwUR.mjs +0 -65
  228. package/dist/ordinal-B9aFWmF9.js +0 -1
  229. package/dist/packet-AYTQ26CC-CorIy9Ul.js +0 -1
  230. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +0 -3
  231. package/dist/path-CnWkkRiY.mjs +0 -84
  232. package/dist/path-DIS6ck99.js +0 -1
  233. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +0 -1
  234. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +0 -94
  235. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +0 -3
  236. package/dist/pie-WAS4IAKB-D84xrSoY.js +0 -1
  237. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +0 -39
  238. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +0 -203
  239. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +0 -7
  240. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +0 -2001
  241. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +0 -3
  242. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +0 -1
  243. package/dist/railroad-74A4TZTK-BOZIf6ts.js +0 -1
  244. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +0 -3
  245. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +0 -3
  246. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +0 -1
  247. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +0 -1
  248. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +0 -3
  249. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +0 -3
  250. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +0 -1
  251. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +0 -76
  252. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +0 -1
  253. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +0 -84
  254. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +0 -2224
  255. package/dist/rough.esm-ChRLLRha.js +0 -1
  256. package/dist/rough.esm-DXYGHN3m.mjs +0 -1361
  257. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +0 -972
  258. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +0 -40
  259. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +0 -162
  260. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +0 -4156
  261. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +0 -1
  262. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +0 -46
  263. package/dist/src-B4mN2BMl.js +0 -1
  264. package/dist/src-D_hsMyeP.mjs +0 -2154
  265. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +0 -220
  266. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +0 -1
  267. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +0 -30
  268. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +0 -1
  269. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +0 -4979
  270. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +0 -1
  271. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +0 -8
  272. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +0 -31
  273. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +0 -120
  274. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +0 -1069
  275. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +0 -3
  276. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +0 -1
  277. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +0 -3
  278. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +0 -1
  279. package/dist/types/runtime/app.d.ts +0 -9
  280. package/dist/types/runtime/components/AppearanceMenu.d.ts +0 -2
  281. package/dist/types/runtime/components/Builtins.d.ts +0 -44
  282. package/dist/types/runtime/components/Content.d.ts +0 -2
  283. package/dist/types/runtime/components/DmdRegistry.d.ts +0 -19
  284. package/dist/types/runtime/components/Layout.d.ts +0 -2
  285. package/dist/types/runtime/components/MermaidDiagram.d.ts +0 -16
  286. package/dist/types/runtime/components/Navbar.d.ts +0 -2
  287. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +0 -2
  288. package/dist/types/runtime/components/OfflineNotice.d.ts +0 -6
  289. package/dist/types/runtime/components/Sidebar.d.ts +0 -2
  290. package/dist/types/runtime/components/TableOfContents.d.ts +0 -8
  291. package/dist/types/runtime/index.d.ts +0 -8
  292. package/dist/types/runtime/markdown/renderer.d.ts +0 -7
  293. package/dist/types/runtime/provider/DocProvider.d.ts +0 -40
  294. package/dist/types/runtime/provider/ThemeProvider.d.ts +0 -25
  295. package/dist/types/runtime/search/SearchModal.d.ts +0 -11
  296. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +0 -34
  297. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +0 -1880
  298. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +0 -3
  299. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +0 -1
  300. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +0 -78
  301. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +0 -645
  302. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +0 -7
  303. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +0 -2210
  304. package/templates/.dmd/components.js +0 -25
@@ -1,2001 +0,0 @@
1
- import { m as e, p as t } from "./src-D_hsMyeP.mjs";
2
- import { n } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
- import { D as r, H as i, K as a, U as o, a as s, c, f as l, v as u, w as d, x as f, y as p, z as m } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
- import { t as h } from "./linear-Ncx_RuON.mjs";
5
- //#region node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-AXDQQJYC.mjs
6
- var g = (function() {
7
- var e = /* @__PURE__ */ n(function(e, t, n, r) {
8
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
9
- return n;
10
- }, "o"), t = [1, 3], r = [1, 4], i = [1, 5], a = [1, 6], o = [1, 7], s = [
11
- 1,
12
- 4,
13
- 5,
14
- 10,
15
- 12,
16
- 13,
17
- 14,
18
- 15,
19
- 18,
20
- 25,
21
- 35,
22
- 37,
23
- 39,
24
- 41,
25
- 42,
26
- 48,
27
- 50,
28
- 51,
29
- 52,
30
- 53,
31
- 54,
32
- 55,
33
- 56,
34
- 57,
35
- 60,
36
- 61,
37
- 63,
38
- 64,
39
- 65,
40
- 66,
41
- 67
42
- ], c = [
43
- 1,
44
- 4,
45
- 5,
46
- 10,
47
- 12,
48
- 13,
49
- 14,
50
- 15,
51
- 18,
52
- 25,
53
- 28,
54
- 35,
55
- 37,
56
- 39,
57
- 41,
58
- 42,
59
- 48,
60
- 50,
61
- 51,
62
- 52,
63
- 53,
64
- 54,
65
- 55,
66
- 56,
67
- 57,
68
- 60,
69
- 61,
70
- 63,
71
- 64,
72
- 65,
73
- 66,
74
- 67
75
- ], l = [
76
- 55,
77
- 56,
78
- 57
79
- ], u = [2, 36], d = [1, 37], f = [1, 36], p = [1, 38], m = [1, 35], h = [1, 43], g = [1, 41], _ = [1, 45], v = [1, 14], y = [1, 23], b = [1, 18], x = [1, 19], S = [1, 20], C = [1, 21], w = [1, 22], T = [1, 24], E = [1, 25], D = [1, 26], O = [1, 27], k = [1, 28], A = [1, 29], j = [1, 32], M = [1, 33], N = [1, 34], P = [1, 39], F = [1, 40], I = [1, 42], L = [1, 44], R = [1, 63], z = [1, 62], B = [
80
- 4,
81
- 5,
82
- 8,
83
- 10,
84
- 12,
85
- 13,
86
- 14,
87
- 15,
88
- 18,
89
- 44,
90
- 47,
91
- 49,
92
- 55,
93
- 56,
94
- 57,
95
- 63,
96
- 64,
97
- 65,
98
- 66,
99
- 67
100
- ], ee = [1, 66], te = [1, 67], ne = [1, 68], re = [1, 69], ie = [1, 70], ae = [1, 71], oe = [1, 72], se = [1, 73], ce = [1, 74], le = [1, 75], ue = [1, 76], de = [1, 77], V = [
101
- 4,
102
- 5,
103
- 6,
104
- 7,
105
- 8,
106
- 9,
107
- 10,
108
- 11,
109
- 12,
110
- 13,
111
- 14,
112
- 15,
113
- 18
114
- ], H = [1, 91], U = [1, 92], W = [1, 93], G = [1, 100], K = [1, 94], q = [1, 97], J = [1, 95], Y = [1, 96], X = [1, 98], Z = [1, 99], fe = [1, 103], pe = [
115
- 10,
116
- 55,
117
- 56,
118
- 57
119
- ], Q = [
120
- 4,
121
- 5,
122
- 6,
123
- 8,
124
- 10,
125
- 11,
126
- 13,
127
- 17,
128
- 18,
129
- 19,
130
- 20,
131
- 55,
132
- 56,
133
- 57
134
- ], me = {
135
- trace: /* @__PURE__ */ n(function() {}, "trace"),
136
- yy: {},
137
- symbols_: {
138
- error: 2,
139
- idStringToken: 3,
140
- ALPHA: 4,
141
- NUM: 5,
142
- NODE_STRING: 6,
143
- DOWN: 7,
144
- MINUS: 8,
145
- DEFAULT: 9,
146
- COMMA: 10,
147
- COLON: 11,
148
- AMP: 12,
149
- BRKT: 13,
150
- MULT: 14,
151
- UNICODE_TEXT: 15,
152
- styleComponent: 16,
153
- UNIT: 17,
154
- SPACE: 18,
155
- STYLE: 19,
156
- PCT: 20,
157
- idString: 21,
158
- style: 22,
159
- stylesOpt: 23,
160
- classDefStatement: 24,
161
- CLASSDEF: 25,
162
- start: 26,
163
- eol: 27,
164
- QUADRANT: 28,
165
- document: 29,
166
- line: 30,
167
- statement: 31,
168
- axisDetails: 32,
169
- quadrantDetails: 33,
170
- points: 34,
171
- title: 35,
172
- title_value: 36,
173
- acc_title: 37,
174
- acc_title_value: 38,
175
- acc_descr: 39,
176
- acc_descr_value: 40,
177
- acc_descr_multiline_value: 41,
178
- section: 42,
179
- text: 43,
180
- point_start: 44,
181
- point_x: 45,
182
- point_y: 46,
183
- class_name: 47,
184
- "X-AXIS": 48,
185
- "AXIS-TEXT-DELIMITER": 49,
186
- "Y-AXIS": 50,
187
- QUADRANT_1: 51,
188
- QUADRANT_2: 52,
189
- QUADRANT_3: 53,
190
- QUADRANT_4: 54,
191
- NEWLINE: 55,
192
- SEMI: 56,
193
- EOF: 57,
194
- alphaNumToken: 58,
195
- textNoTagsToken: 59,
196
- STR: 60,
197
- MD_STR: 61,
198
- alphaNum: 62,
199
- PUNCTUATION: 63,
200
- PLUS: 64,
201
- EQUALS: 65,
202
- DOT: 66,
203
- UNDERSCORE: 67,
204
- $accept: 0,
205
- $end: 1
206
- },
207
- terminals_: {
208
- 2: "error",
209
- 4: "ALPHA",
210
- 5: "NUM",
211
- 6: "NODE_STRING",
212
- 7: "DOWN",
213
- 8: "MINUS",
214
- 9: "DEFAULT",
215
- 10: "COMMA",
216
- 11: "COLON",
217
- 12: "AMP",
218
- 13: "BRKT",
219
- 14: "MULT",
220
- 15: "UNICODE_TEXT",
221
- 17: "UNIT",
222
- 18: "SPACE",
223
- 19: "STYLE",
224
- 20: "PCT",
225
- 25: "CLASSDEF",
226
- 28: "QUADRANT",
227
- 35: "title",
228
- 36: "title_value",
229
- 37: "acc_title",
230
- 38: "acc_title_value",
231
- 39: "acc_descr",
232
- 40: "acc_descr_value",
233
- 41: "acc_descr_multiline_value",
234
- 42: "section",
235
- 44: "point_start",
236
- 45: "point_x",
237
- 46: "point_y",
238
- 47: "class_name",
239
- 48: "X-AXIS",
240
- 49: "AXIS-TEXT-DELIMITER",
241
- 50: "Y-AXIS",
242
- 51: "QUADRANT_1",
243
- 52: "QUADRANT_2",
244
- 53: "QUADRANT_3",
245
- 54: "QUADRANT_4",
246
- 55: "NEWLINE",
247
- 56: "SEMI",
248
- 57: "EOF",
249
- 60: "STR",
250
- 61: "MD_STR",
251
- 63: "PUNCTUATION",
252
- 64: "PLUS",
253
- 65: "EQUALS",
254
- 66: "DOT",
255
- 67: "UNDERSCORE"
256
- },
257
- productions_: [
258
- 0,
259
- [3, 1],
260
- [3, 1],
261
- [3, 1],
262
- [3, 1],
263
- [3, 1],
264
- [3, 1],
265
- [3, 1],
266
- [3, 1],
267
- [3, 1],
268
- [3, 1],
269
- [3, 1],
270
- [3, 1],
271
- [16, 1],
272
- [16, 1],
273
- [16, 1],
274
- [16, 1],
275
- [16, 1],
276
- [16, 1],
277
- [16, 1],
278
- [16, 1],
279
- [16, 1],
280
- [16, 1],
281
- [21, 1],
282
- [21, 2],
283
- [22, 1],
284
- [22, 2],
285
- [23, 1],
286
- [23, 3],
287
- [24, 5],
288
- [26, 2],
289
- [26, 2],
290
- [26, 2],
291
- [29, 0],
292
- [29, 2],
293
- [30, 2],
294
- [31, 0],
295
- [31, 1],
296
- [31, 2],
297
- [31, 1],
298
- [31, 1],
299
- [31, 1],
300
- [31, 2],
301
- [31, 2],
302
- [31, 2],
303
- [31, 1],
304
- [31, 1],
305
- [34, 4],
306
- [34, 5],
307
- [34, 5],
308
- [34, 6],
309
- [32, 4],
310
- [32, 3],
311
- [32, 2],
312
- [32, 4],
313
- [32, 3],
314
- [32, 2],
315
- [33, 2],
316
- [33, 2],
317
- [33, 2],
318
- [33, 2],
319
- [27, 1],
320
- [27, 1],
321
- [27, 1],
322
- [43, 1],
323
- [43, 2],
324
- [43, 1],
325
- [43, 1],
326
- [62, 1],
327
- [62, 2],
328
- [58, 1],
329
- [58, 1],
330
- [58, 1],
331
- [58, 1],
332
- [58, 1],
333
- [58, 1],
334
- [58, 1],
335
- [58, 1],
336
- [58, 1],
337
- [58, 1],
338
- [58, 1],
339
- [58, 1],
340
- [59, 1],
341
- [59, 1],
342
- [59, 1]
343
- ],
344
- performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
345
- var s = a.length - 1;
346
- switch (i) {
347
- case 23:
348
- this.$ = a[s];
349
- break;
350
- case 24:
351
- this.$ = a[s - 1] + "" + a[s];
352
- break;
353
- case 26:
354
- this.$ = a[s - 1] + a[s];
355
- break;
356
- case 27:
357
- this.$ = [a[s].trim()];
358
- break;
359
- case 28:
360
- a[s - 2].push(a[s].trim()), this.$ = a[s - 2];
361
- break;
362
- case 29:
363
- this.$ = a[s - 4], r.addClass(a[s - 2], a[s]);
364
- break;
365
- case 37:
366
- this.$ = [];
367
- break;
368
- case 42:
369
- this.$ = a[s].trim(), r.setDiagramTitle(this.$);
370
- break;
371
- case 43:
372
- this.$ = a[s].trim(), r.setAccTitle(this.$);
373
- break;
374
- case 44:
375
- case 45:
376
- this.$ = a[s].trim(), r.setAccDescription(this.$);
377
- break;
378
- case 46:
379
- r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
380
- break;
381
- case 47:
382
- r.addPoint(a[s - 3], "", a[s - 1], a[s], []);
383
- break;
384
- case 48:
385
- r.addPoint(a[s - 4], a[s - 3], a[s - 1], a[s], []);
386
- break;
387
- case 49:
388
- r.addPoint(a[s - 4], "", a[s - 2], a[s - 1], a[s]);
389
- break;
390
- case 50:
391
- r.addPoint(a[s - 5], a[s - 4], a[s - 2], a[s - 1], a[s]);
392
- break;
393
- case 51:
394
- r.setXAxisLeftText(a[s - 2]), r.setXAxisRightText(a[s]);
395
- break;
396
- case 52:
397
- a[s - 1].text += " ⟶ ", r.setXAxisLeftText(a[s - 1]);
398
- break;
399
- case 53:
400
- r.setXAxisLeftText(a[s]);
401
- break;
402
- case 54:
403
- r.setYAxisBottomText(a[s - 2]), r.setYAxisTopText(a[s]);
404
- break;
405
- case 55:
406
- a[s - 1].text += " ⟶ ", r.setYAxisBottomText(a[s - 1]);
407
- break;
408
- case 56:
409
- r.setYAxisBottomText(a[s]);
410
- break;
411
- case 57:
412
- r.setQuadrant1Text(a[s]);
413
- break;
414
- case 58:
415
- r.setQuadrant2Text(a[s]);
416
- break;
417
- case 59:
418
- r.setQuadrant3Text(a[s]);
419
- break;
420
- case 60:
421
- r.setQuadrant4Text(a[s]);
422
- break;
423
- case 64:
424
- this.$ = {
425
- text: a[s],
426
- type: "text"
427
- };
428
- break;
429
- case 65:
430
- this.$ = {
431
- text: a[s - 1].text + "" + a[s],
432
- type: a[s - 1].type
433
- };
434
- break;
435
- case 66:
436
- this.$ = {
437
- text: a[s],
438
- type: "text"
439
- };
440
- break;
441
- case 67:
442
- this.$ = {
443
- text: a[s],
444
- type: "markdown"
445
- };
446
- break;
447
- case 68:
448
- this.$ = a[s];
449
- break;
450
- case 69: this.$ = a[s - 1] + "" + a[s];
451
- }
452
- }, "anonymous"),
453
- table: [
454
- {
455
- 18: t,
456
- 26: 1,
457
- 27: 2,
458
- 28: r,
459
- 55: i,
460
- 56: a,
461
- 57: o
462
- },
463
- { 1: [3] },
464
- {
465
- 18: t,
466
- 26: 8,
467
- 27: 2,
468
- 28: r,
469
- 55: i,
470
- 56: a,
471
- 57: o
472
- },
473
- {
474
- 18: t,
475
- 26: 9,
476
- 27: 2,
477
- 28: r,
478
- 55: i,
479
- 56: a,
480
- 57: o
481
- },
482
- e(s, [2, 33], { 29: 10 }),
483
- e(c, [2, 61]),
484
- e(c, [2, 62]),
485
- e(c, [2, 63]),
486
- { 1: [2, 30] },
487
- { 1: [2, 31] },
488
- e(l, u, {
489
- 30: 11,
490
- 31: 12,
491
- 24: 13,
492
- 32: 15,
493
- 33: 16,
494
- 34: 17,
495
- 43: 30,
496
- 58: 31,
497
- 1: [2, 32],
498
- 4: d,
499
- 5: f,
500
- 10: p,
501
- 12: m,
502
- 13: h,
503
- 14: g,
504
- 15: _,
505
- 18: v,
506
- 25: y,
507
- 35: b,
508
- 37: x,
509
- 39: S,
510
- 41: C,
511
- 42: w,
512
- 48: T,
513
- 50: E,
514
- 51: D,
515
- 52: O,
516
- 53: k,
517
- 54: A,
518
- 60: j,
519
- 61: M,
520
- 63: N,
521
- 64: P,
522
- 65: F,
523
- 66: I,
524
- 67: L
525
- }),
526
- e(s, [2, 34]),
527
- {
528
- 27: 46,
529
- 55: i,
530
- 56: a,
531
- 57: o
532
- },
533
- e(l, [2, 37]),
534
- e(l, u, {
535
- 24: 13,
536
- 32: 15,
537
- 33: 16,
538
- 34: 17,
539
- 43: 30,
540
- 58: 31,
541
- 31: 47,
542
- 4: d,
543
- 5: f,
544
- 10: p,
545
- 12: m,
546
- 13: h,
547
- 14: g,
548
- 15: _,
549
- 18: v,
550
- 25: y,
551
- 35: b,
552
- 37: x,
553
- 39: S,
554
- 41: C,
555
- 42: w,
556
- 48: T,
557
- 50: E,
558
- 51: D,
559
- 52: O,
560
- 53: k,
561
- 54: A,
562
- 60: j,
563
- 61: M,
564
- 63: N,
565
- 64: P,
566
- 65: F,
567
- 66: I,
568
- 67: L
569
- }),
570
- e(l, [2, 39]),
571
- e(l, [2, 40]),
572
- e(l, [2, 41]),
573
- { 36: [1, 48] },
574
- { 38: [1, 49] },
575
- { 40: [1, 50] },
576
- e(l, [2, 45]),
577
- e(l, [2, 46]),
578
- { 18: [1, 51] },
579
- {
580
- 4: d,
581
- 5: f,
582
- 10: p,
583
- 12: m,
584
- 13: h,
585
- 14: g,
586
- 15: _,
587
- 43: 52,
588
- 58: 31,
589
- 60: j,
590
- 61: M,
591
- 63: N,
592
- 64: P,
593
- 65: F,
594
- 66: I,
595
- 67: L
596
- },
597
- {
598
- 4: d,
599
- 5: f,
600
- 10: p,
601
- 12: m,
602
- 13: h,
603
- 14: g,
604
- 15: _,
605
- 43: 53,
606
- 58: 31,
607
- 60: j,
608
- 61: M,
609
- 63: N,
610
- 64: P,
611
- 65: F,
612
- 66: I,
613
- 67: L
614
- },
615
- {
616
- 4: d,
617
- 5: f,
618
- 10: p,
619
- 12: m,
620
- 13: h,
621
- 14: g,
622
- 15: _,
623
- 43: 54,
624
- 58: 31,
625
- 60: j,
626
- 61: M,
627
- 63: N,
628
- 64: P,
629
- 65: F,
630
- 66: I,
631
- 67: L
632
- },
633
- {
634
- 4: d,
635
- 5: f,
636
- 10: p,
637
- 12: m,
638
- 13: h,
639
- 14: g,
640
- 15: _,
641
- 43: 55,
642
- 58: 31,
643
- 60: j,
644
- 61: M,
645
- 63: N,
646
- 64: P,
647
- 65: F,
648
- 66: I,
649
- 67: L
650
- },
651
- {
652
- 4: d,
653
- 5: f,
654
- 10: p,
655
- 12: m,
656
- 13: h,
657
- 14: g,
658
- 15: _,
659
- 43: 56,
660
- 58: 31,
661
- 60: j,
662
- 61: M,
663
- 63: N,
664
- 64: P,
665
- 65: F,
666
- 66: I,
667
- 67: L
668
- },
669
- {
670
- 4: d,
671
- 5: f,
672
- 10: p,
673
- 12: m,
674
- 13: h,
675
- 14: g,
676
- 15: _,
677
- 43: 57,
678
- 58: 31,
679
- 60: j,
680
- 61: M,
681
- 63: N,
682
- 64: P,
683
- 65: F,
684
- 66: I,
685
- 67: L
686
- },
687
- {
688
- 4: d,
689
- 5: f,
690
- 8: R,
691
- 10: p,
692
- 12: m,
693
- 13: h,
694
- 14: g,
695
- 15: _,
696
- 18: z,
697
- 44: [1, 58],
698
- 47: [1, 59],
699
- 58: 61,
700
- 59: 60,
701
- 63: N,
702
- 64: P,
703
- 65: F,
704
- 66: I,
705
- 67: L
706
- },
707
- e(B, [2, 64]),
708
- e(B, [2, 66]),
709
- e(B, [2, 67]),
710
- e(B, [2, 70]),
711
- e(B, [2, 71]),
712
- e(B, [2, 72]),
713
- e(B, [2, 73]),
714
- e(B, [2, 74]),
715
- e(B, [2, 75]),
716
- e(B, [2, 76]),
717
- e(B, [2, 77]),
718
- e(B, [2, 78]),
719
- e(B, [2, 79]),
720
- e(B, [2, 80]),
721
- e(B, [2, 81]),
722
- e(s, [2, 35]),
723
- e(l, [2, 38]),
724
- e(l, [2, 42]),
725
- e(l, [2, 43]),
726
- e(l, [2, 44]),
727
- {
728
- 3: 65,
729
- 4: ee,
730
- 5: te,
731
- 6: ne,
732
- 7: re,
733
- 8: ie,
734
- 9: ae,
735
- 10: oe,
736
- 11: se,
737
- 12: ce,
738
- 13: le,
739
- 14: ue,
740
- 15: de,
741
- 21: 64
742
- },
743
- e(l, [2, 53], {
744
- 59: 60,
745
- 58: 61,
746
- 4: d,
747
- 5: f,
748
- 8: R,
749
- 10: p,
750
- 12: m,
751
- 13: h,
752
- 14: g,
753
- 15: _,
754
- 18: z,
755
- 49: [1, 78],
756
- 63: N,
757
- 64: P,
758
- 65: F,
759
- 66: I,
760
- 67: L
761
- }),
762
- e(l, [2, 56], {
763
- 59: 60,
764
- 58: 61,
765
- 4: d,
766
- 5: f,
767
- 8: R,
768
- 10: p,
769
- 12: m,
770
- 13: h,
771
- 14: g,
772
- 15: _,
773
- 18: z,
774
- 49: [1, 79],
775
- 63: N,
776
- 64: P,
777
- 65: F,
778
- 66: I,
779
- 67: L
780
- }),
781
- e(l, [2, 57], {
782
- 59: 60,
783
- 58: 61,
784
- 4: d,
785
- 5: f,
786
- 8: R,
787
- 10: p,
788
- 12: m,
789
- 13: h,
790
- 14: g,
791
- 15: _,
792
- 18: z,
793
- 63: N,
794
- 64: P,
795
- 65: F,
796
- 66: I,
797
- 67: L
798
- }),
799
- e(l, [2, 58], {
800
- 59: 60,
801
- 58: 61,
802
- 4: d,
803
- 5: f,
804
- 8: R,
805
- 10: p,
806
- 12: m,
807
- 13: h,
808
- 14: g,
809
- 15: _,
810
- 18: z,
811
- 63: N,
812
- 64: P,
813
- 65: F,
814
- 66: I,
815
- 67: L
816
- }),
817
- e(l, [2, 59], {
818
- 59: 60,
819
- 58: 61,
820
- 4: d,
821
- 5: f,
822
- 8: R,
823
- 10: p,
824
- 12: m,
825
- 13: h,
826
- 14: g,
827
- 15: _,
828
- 18: z,
829
- 63: N,
830
- 64: P,
831
- 65: F,
832
- 66: I,
833
- 67: L
834
- }),
835
- e(l, [2, 60], {
836
- 59: 60,
837
- 58: 61,
838
- 4: d,
839
- 5: f,
840
- 8: R,
841
- 10: p,
842
- 12: m,
843
- 13: h,
844
- 14: g,
845
- 15: _,
846
- 18: z,
847
- 63: N,
848
- 64: P,
849
- 65: F,
850
- 66: I,
851
- 67: L
852
- }),
853
- { 45: [1, 80] },
854
- { 44: [1, 81] },
855
- e(B, [2, 65]),
856
- e(B, [2, 82]),
857
- e(B, [2, 83]),
858
- e(B, [2, 84]),
859
- {
860
- 3: 83,
861
- 4: ee,
862
- 5: te,
863
- 6: ne,
864
- 7: re,
865
- 8: ie,
866
- 9: ae,
867
- 10: oe,
868
- 11: se,
869
- 12: ce,
870
- 13: le,
871
- 14: ue,
872
- 15: de,
873
- 18: [1, 82]
874
- },
875
- e(V, [2, 23]),
876
- e(V, [2, 1]),
877
- e(V, [2, 2]),
878
- e(V, [2, 3]),
879
- e(V, [2, 4]),
880
- e(V, [2, 5]),
881
- e(V, [2, 6]),
882
- e(V, [2, 7]),
883
- e(V, [2, 8]),
884
- e(V, [2, 9]),
885
- e(V, [2, 10]),
886
- e(V, [2, 11]),
887
- e(V, [2, 12]),
888
- e(l, [2, 52], {
889
- 58: 31,
890
- 43: 84,
891
- 4: d,
892
- 5: f,
893
- 10: p,
894
- 12: m,
895
- 13: h,
896
- 14: g,
897
- 15: _,
898
- 60: j,
899
- 61: M,
900
- 63: N,
901
- 64: P,
902
- 65: F,
903
- 66: I,
904
- 67: L
905
- }),
906
- e(l, [2, 55], {
907
- 58: 31,
908
- 43: 85,
909
- 4: d,
910
- 5: f,
911
- 10: p,
912
- 12: m,
913
- 13: h,
914
- 14: g,
915
- 15: _,
916
- 60: j,
917
- 61: M,
918
- 63: N,
919
- 64: P,
920
- 65: F,
921
- 66: I,
922
- 67: L
923
- }),
924
- { 46: [1, 86] },
925
- { 45: [1, 87] },
926
- {
927
- 4: H,
928
- 5: U,
929
- 6: W,
930
- 8: G,
931
- 11: K,
932
- 13: q,
933
- 16: 90,
934
- 17: J,
935
- 18: Y,
936
- 19: X,
937
- 20: Z,
938
- 22: 89,
939
- 23: 88
940
- },
941
- e(V, [2, 24]),
942
- e(l, [2, 51], {
943
- 59: 60,
944
- 58: 61,
945
- 4: d,
946
- 5: f,
947
- 8: R,
948
- 10: p,
949
- 12: m,
950
- 13: h,
951
- 14: g,
952
- 15: _,
953
- 18: z,
954
- 63: N,
955
- 64: P,
956
- 65: F,
957
- 66: I,
958
- 67: L
959
- }),
960
- e(l, [2, 54], {
961
- 59: 60,
962
- 58: 61,
963
- 4: d,
964
- 5: f,
965
- 8: R,
966
- 10: p,
967
- 12: m,
968
- 13: h,
969
- 14: g,
970
- 15: _,
971
- 18: z,
972
- 63: N,
973
- 64: P,
974
- 65: F,
975
- 66: I,
976
- 67: L
977
- }),
978
- e(l, [2, 47], {
979
- 22: 89,
980
- 16: 90,
981
- 23: 101,
982
- 4: H,
983
- 5: U,
984
- 6: W,
985
- 8: G,
986
- 11: K,
987
- 13: q,
988
- 17: J,
989
- 18: Y,
990
- 19: X,
991
- 20: Z
992
- }),
993
- { 46: [1, 102] },
994
- e(l, [2, 29], { 10: fe }),
995
- e(pe, [2, 27], {
996
- 16: 104,
997
- 4: H,
998
- 5: U,
999
- 6: W,
1000
- 8: G,
1001
- 11: K,
1002
- 13: q,
1003
- 17: J,
1004
- 18: Y,
1005
- 19: X,
1006
- 20: Z
1007
- }),
1008
- e(Q, [2, 25]),
1009
- e(Q, [2, 13]),
1010
- e(Q, [2, 14]),
1011
- e(Q, [2, 15]),
1012
- e(Q, [2, 16]),
1013
- e(Q, [2, 17]),
1014
- e(Q, [2, 18]),
1015
- e(Q, [2, 19]),
1016
- e(Q, [2, 20]),
1017
- e(Q, [2, 21]),
1018
- e(Q, [2, 22]),
1019
- e(l, [2, 49], { 10: fe }),
1020
- e(l, [2, 48], {
1021
- 22: 89,
1022
- 16: 90,
1023
- 23: 105,
1024
- 4: H,
1025
- 5: U,
1026
- 6: W,
1027
- 8: G,
1028
- 11: K,
1029
- 13: q,
1030
- 17: J,
1031
- 18: Y,
1032
- 19: X,
1033
- 20: Z
1034
- }),
1035
- {
1036
- 4: H,
1037
- 5: U,
1038
- 6: W,
1039
- 8: G,
1040
- 11: K,
1041
- 13: q,
1042
- 16: 90,
1043
- 17: J,
1044
- 18: Y,
1045
- 19: X,
1046
- 20: Z,
1047
- 22: 106
1048
- },
1049
- e(Q, [2, 26]),
1050
- e(l, [2, 50], { 10: fe }),
1051
- e(pe, [2, 28], {
1052
- 16: 104,
1053
- 4: H,
1054
- 5: U,
1055
- 6: W,
1056
- 8: G,
1057
- 11: K,
1058
- 13: q,
1059
- 17: J,
1060
- 18: Y,
1061
- 19: X,
1062
- 20: Z
1063
- })
1064
- ],
1065
- defaultActions: {
1066
- 8: [2, 30],
1067
- 9: [2, 31]
1068
- },
1069
- parseError: /* @__PURE__ */ n(function(e, t) {
1070
- if (t.recoverable) this.trace(e);
1071
- else {
1072
- var n = Error(e);
1073
- throw n.hash = t, n;
1074
- }
1075
- }, "parseError"),
1076
- parse: /* @__PURE__ */ n(function(e) {
1077
- var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1078
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1079
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1080
- var v = h.yylloc;
1081
- o.push(v);
1082
- var y = h.options && h.options.ranges;
1083
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
1084
- function b(e) {
1085
- r.length -= 2 * e, a.length -= e, o.length -= e;
1086
- }
1087
- n(b, "popStack");
1088
- function x() {
1089
- var e = i.pop() || h.lex() || p;
1090
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
1091
- }
1092
- n(x, "lex");
1093
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1094
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1095
- var M = "";
1096
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1097
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
1098
- text: h.match,
1099
- token: this.terminals_[S] || S,
1100
- line: h.yylineno,
1101
- loc: v,
1102
- expected: j
1103
- });
1104
- }
1105
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1106
- switch (T[0]) {
1107
- case 1:
1108
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1109
- break;
1110
- case 2:
1111
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1112
- first_line: o[o.length - (k || 1)].first_line,
1113
- last_line: o[o.length - 1].last_line,
1114
- first_column: o[o.length - (k || 1)].first_column,
1115
- last_column: o[o.length - 1].last_column
1116
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1117
- c,
1118
- u,
1119
- l,
1120
- g.yy,
1121
- T[1],
1122
- a,
1123
- o
1124
- ].concat(m)), E !== void 0) return E;
1125
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
1126
- break;
1127
- case 3: return !0;
1128
- }
1129
- }
1130
- return !0;
1131
- }, "parse")
1132
- };
1133
- me.lexer = /* @__PURE__ */ (function() {
1134
- return {
1135
- EOF: 1,
1136
- parseError: /* @__PURE__ */ n(function(e, t) {
1137
- if (this.yy.parser) this.yy.parser.parseError(e, t);
1138
- else throw Error(e);
1139
- }, "parseError"),
1140
- setInput: /* @__PURE__ */ n(function(e, t) {
1141
- return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1142
- first_line: 1,
1143
- first_column: 0,
1144
- last_line: 1,
1145
- last_column: 0
1146
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1147
- }, "setInput"),
1148
- input: /* @__PURE__ */ n(function() {
1149
- var e = this._input[0];
1150
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1151
- }, "input"),
1152
- unput: /* @__PURE__ */ n(function(e) {
1153
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1154
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1155
- var r = this.match.split(/(?:\r\n?|\n)/g);
1156
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1157
- var i = this.yylloc.range;
1158
- return this.yylloc = {
1159
- first_line: this.yylloc.first_line,
1160
- last_line: this.yylineno + 1,
1161
- first_column: this.yylloc.first_column,
1162
- last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1163
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1164
- }, "unput"),
1165
- more: /* @__PURE__ */ n(function() {
1166
- return this._more = !0, this;
1167
- }, "more"),
1168
- reject: /* @__PURE__ */ n(function() {
1169
- if (this.options.backtrack_lexer) this._backtrack = !0;
1170
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1171
- text: "",
1172
- token: null,
1173
- line: this.yylineno
1174
- });
1175
- return this;
1176
- }, "reject"),
1177
- less: /* @__PURE__ */ n(function(e) {
1178
- this.unput(this.match.slice(e));
1179
- }, "less"),
1180
- pastInput: /* @__PURE__ */ n(function() {
1181
- var e = this.matched.substr(0, this.matched.length - this.match.length);
1182
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1183
- }, "pastInput"),
1184
- upcomingInput: /* @__PURE__ */ n(function() {
1185
- var e = this.match;
1186
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1187
- }, "upcomingInput"),
1188
- showPosition: /* @__PURE__ */ n(function() {
1189
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
1190
- return e + this.upcomingInput() + "\n" + t + "^";
1191
- }, "showPosition"),
1192
- test_match: /* @__PURE__ */ n(function(e, t) {
1193
- var n, r, i;
1194
- if (this.options.backtrack_lexer && (i = {
1195
- yylineno: this.yylineno,
1196
- yylloc: {
1197
- first_line: this.yylloc.first_line,
1198
- last_line: this.last_line,
1199
- first_column: this.yylloc.first_column,
1200
- last_column: this.yylloc.last_column
1201
- },
1202
- yytext: this.yytext,
1203
- match: this.match,
1204
- matches: this.matches,
1205
- matched: this.matched,
1206
- yyleng: this.yyleng,
1207
- offset: this.offset,
1208
- _more: this._more,
1209
- _input: this._input,
1210
- yy: this.yy,
1211
- conditionStack: this.conditionStack.slice(0),
1212
- done: this.done
1213
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
1214
- first_line: this.yylloc.last_line,
1215
- last_line: this.yylineno + 1,
1216
- first_column: this.yylloc.last_column,
1217
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1218
- }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
1219
- if (this._backtrack) {
1220
- for (var a in i) this[a] = i[a];
1221
- return !1;
1222
- }
1223
- return !1;
1224
- }, "test_match"),
1225
- next: /* @__PURE__ */ n(function() {
1226
- if (this.done) return this.EOF;
1227
- this._input || (this.done = !0);
1228
- var e, t, n, r;
1229
- this._more || (this.yytext = "", this.match = "");
1230
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
1231
- if (t = n, r = a, this.options.backtrack_lexer) {
1232
- if (e = this.test_match(n, i[a]), e !== !1) return e;
1233
- if (this._backtrack) {
1234
- t = !1;
1235
- continue;
1236
- }
1237
- return !1;
1238
- }
1239
- if (!this.options.flex) break;
1240
- }
1241
- return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1242
- text: "",
1243
- token: null,
1244
- line: this.yylineno
1245
- });
1246
- }, "next"),
1247
- lex: /* @__PURE__ */ n(function() {
1248
- return this.next() || this.lex();
1249
- }, "lex"),
1250
- begin: /* @__PURE__ */ n(function(e) {
1251
- this.conditionStack.push(e);
1252
- }, "begin"),
1253
- popState: /* @__PURE__ */ n(function() {
1254
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1255
- }, "popState"),
1256
- _currentRules: /* @__PURE__ */ n(function() {
1257
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1258
- }, "_currentRules"),
1259
- topState: /* @__PURE__ */ n(function(e) {
1260
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1261
- }, "topState"),
1262
- pushState: /* @__PURE__ */ n(function(e) {
1263
- this.begin(e);
1264
- }, "pushState"),
1265
- stateStackSize: /* @__PURE__ */ n(function() {
1266
- return this.conditionStack.length;
1267
- }, "stateStackSize"),
1268
- options: { "case-insensitive": !0 },
1269
- performAction: /* @__PURE__ */ n(function(e, t, n, r) {
1270
- switch (n) {
1271
- case 0: break;
1272
- case 1: break;
1273
- case 2: return 55;
1274
- case 3: break;
1275
- case 4: return this.begin("title"), 35;
1276
- case 5: return this.popState(), "title_value";
1277
- case 6: return this.begin("acc_title"), 37;
1278
- case 7: return this.popState(), "acc_title_value";
1279
- case 8: return this.begin("acc_descr"), 39;
1280
- case 9: return this.popState(), "acc_descr_value";
1281
- case 10:
1282
- this.begin("acc_descr_multiline");
1283
- break;
1284
- case 11:
1285
- this.popState();
1286
- break;
1287
- case 12: return "acc_descr_multiline_value";
1288
- case 13: return 48;
1289
- case 14: return 50;
1290
- case 15: return 49;
1291
- case 16: return 51;
1292
- case 17: return 52;
1293
- case 18: return 53;
1294
- case 19: return 54;
1295
- case 20: return 25;
1296
- case 21:
1297
- this.begin("md_string");
1298
- break;
1299
- case 22: return "MD_STR";
1300
- case 23:
1301
- this.popState();
1302
- break;
1303
- case 24:
1304
- this.begin("string");
1305
- break;
1306
- case 25:
1307
- this.popState();
1308
- break;
1309
- case 26: return "STR";
1310
- case 27:
1311
- this.begin("class_name");
1312
- break;
1313
- case 28: return this.popState(), 47;
1314
- case 29: return this.begin("point_start"), 44;
1315
- case 30: return this.begin("point_x"), 45;
1316
- case 31:
1317
- this.popState();
1318
- break;
1319
- case 32:
1320
- this.popState(), this.begin("point_y");
1321
- break;
1322
- case 33: return this.popState(), 46;
1323
- case 34: return 28;
1324
- case 35: return 4;
1325
- case 36: return 15;
1326
- case 37: return 11;
1327
- case 38: return 64;
1328
- case 39: return 10;
1329
- case 40: return 65;
1330
- case 41: return 65;
1331
- case 42: return 14;
1332
- case 43: return 13;
1333
- case 44: return 67;
1334
- case 45: return 66;
1335
- case 46: return 12;
1336
- case 47: return 8;
1337
- case 48: return 5;
1338
- case 49: return 18;
1339
- case 50: return 56;
1340
- case 51: return 63;
1341
- case 52: return 57;
1342
- }
1343
- }, "anonymous"),
1344
- rules: [
1345
- /^(?:%%(?!\{)[^\n]*)/i,
1346
- /^(?:[^\}]%%[^\n]*)/i,
1347
- /^(?:[\n\r]+)/i,
1348
- /^(?:%%[^\n]*)/i,
1349
- /^(?:title\b)/i,
1350
- /^(?:(?!\n||)*[^\n]*)/i,
1351
- /^(?:accTitle\s*:\s*)/i,
1352
- /^(?:(?!\n||)*[^\n]*)/i,
1353
- /^(?:accDescr\s*:\s*)/i,
1354
- /^(?:(?!\n||)*[^\n]*)/i,
1355
- /^(?:accDescr\s*\{\s*)/i,
1356
- /^(?:[\}])/i,
1357
- /^(?:[^\}]*)/i,
1358
- /^(?: *x-axis *)/i,
1359
- /^(?: *y-axis *)/i,
1360
- /^(?: *--+> *)/i,
1361
- /^(?: *quadrant-1 *)/i,
1362
- /^(?: *quadrant-2 *)/i,
1363
- /^(?: *quadrant-3 *)/i,
1364
- /^(?: *quadrant-4 *)/i,
1365
- /^(?:classDef\b)/i,
1366
- /^(?:["][`])/i,
1367
- /^(?:[^`"]+)/i,
1368
- /^(?:[`]["])/i,
1369
- /^(?:["])/i,
1370
- /^(?:["])/i,
1371
- /^(?:[^"]*)/i,
1372
- /^(?::::)/i,
1373
- /^(?:^\w+)/i,
1374
- /^(?:\s*:\s*\[\s*)/i,
1375
- /^(?:(1)|(0(.\d+)?))/i,
1376
- /^(?:\s*\] *)/i,
1377
- /^(?:\s*,\s*)/i,
1378
- /^(?:(1)|(0(.\d+)?))/i,
1379
- /^(?: *quadrantChart *)/i,
1380
- /^(?:[A-Za-z]+)/i,
1381
- /^(?:[^\x00-\x7F]+)/i,
1382
- /^(?::)/i,
1383
- /^(?:\+)/i,
1384
- /^(?:,)/i,
1385
- /^(?:=)/i,
1386
- /^(?:=)/i,
1387
- /^(?:\*)/i,
1388
- /^(?:#)/i,
1389
- /^(?:[\_])/i,
1390
- /^(?:\.)/i,
1391
- /^(?:&)/i,
1392
- /^(?:-)/i,
1393
- /^(?:[0-9]+)/i,
1394
- /^(?:\s)/i,
1395
- /^(?:;)/i,
1396
- /^(?:[!"#$%&'*+,-.`?\\_/])/i,
1397
- /^(?:$)/i
1398
- ],
1399
- conditions: {
1400
- class_name: {
1401
- rules: [28],
1402
- inclusive: !1
1403
- },
1404
- point_y: {
1405
- rules: [33],
1406
- inclusive: !1
1407
- },
1408
- point_x: {
1409
- rules: [32],
1410
- inclusive: !1
1411
- },
1412
- point_start: {
1413
- rules: [30, 31],
1414
- inclusive: !1
1415
- },
1416
- acc_descr_multiline: {
1417
- rules: [11, 12],
1418
- inclusive: !1
1419
- },
1420
- acc_descr: {
1421
- rules: [9],
1422
- inclusive: !1
1423
- },
1424
- acc_title: {
1425
- rules: [7],
1426
- inclusive: !1
1427
- },
1428
- title: {
1429
- rules: [5],
1430
- inclusive: !1
1431
- },
1432
- md_string: {
1433
- rules: [22, 23],
1434
- inclusive: !1
1435
- },
1436
- string: {
1437
- rules: [25, 26],
1438
- inclusive: !1
1439
- },
1440
- INITIAL: {
1441
- rules: [
1442
- 0,
1443
- 1,
1444
- 2,
1445
- 3,
1446
- 4,
1447
- 6,
1448
- 8,
1449
- 10,
1450
- 13,
1451
- 14,
1452
- 15,
1453
- 16,
1454
- 17,
1455
- 18,
1456
- 19,
1457
- 20,
1458
- 21,
1459
- 24,
1460
- 27,
1461
- 29,
1462
- 34,
1463
- 35,
1464
- 36,
1465
- 37,
1466
- 38,
1467
- 39,
1468
- 40,
1469
- 41,
1470
- 42,
1471
- 43,
1472
- 44,
1473
- 45,
1474
- 46,
1475
- 47,
1476
- 48,
1477
- 49,
1478
- 50,
1479
- 51,
1480
- 52
1481
- ],
1482
- inclusive: !0
1483
- }
1484
- }
1485
- };
1486
- })();
1487
- function $() {
1488
- this.yy = {};
1489
- }
1490
- return n($, "Parser"), $.prototype = me, me.Parser = $, new $();
1491
- })();
1492
- g.parser = g;
1493
- var _ = g, v = r(), y = class {
1494
- constructor() {
1495
- this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
1496
- }
1497
- static {
1498
- n(this, "QuadrantBuilder");
1499
- }
1500
- getDefaultData() {
1501
- return {
1502
- titleText: "",
1503
- quadrant1Text: "",
1504
- quadrant2Text: "",
1505
- quadrant3Text: "",
1506
- quadrant4Text: "",
1507
- xAxisLeftText: "",
1508
- xAxisRightText: "",
1509
- yAxisBottomText: "",
1510
- yAxisTopText: "",
1511
- points: []
1512
- };
1513
- }
1514
- getDefaultConfig() {
1515
- return {
1516
- showXAxis: !0,
1517
- showYAxis: !0,
1518
- showTitle: !0,
1519
- chartHeight: l.quadrantChart?.chartWidth || 500,
1520
- chartWidth: l.quadrantChart?.chartHeight || 500,
1521
- titlePadding: l.quadrantChart?.titlePadding || 10,
1522
- titleFontSize: l.quadrantChart?.titleFontSize || 20,
1523
- quadrantPadding: l.quadrantChart?.quadrantPadding || 5,
1524
- xAxisLabelPadding: l.quadrantChart?.xAxisLabelPadding || 5,
1525
- yAxisLabelPadding: l.quadrantChart?.yAxisLabelPadding || 5,
1526
- xAxisLabelFontSize: l.quadrantChart?.xAxisLabelFontSize || 16,
1527
- yAxisLabelFontSize: l.quadrantChart?.yAxisLabelFontSize || 16,
1528
- quadrantLabelFontSize: l.quadrantChart?.quadrantLabelFontSize || 16,
1529
- quadrantTextTopPadding: l.quadrantChart?.quadrantTextTopPadding || 5,
1530
- pointTextPadding: l.quadrantChart?.pointTextPadding || 5,
1531
- pointLabelFontSize: l.quadrantChart?.pointLabelFontSize || 12,
1532
- pointRadius: l.quadrantChart?.pointRadius || 5,
1533
- xAxisPosition: l.quadrantChart?.xAxisPosition || "top",
1534
- yAxisPosition: l.quadrantChart?.yAxisPosition || "left",
1535
- quadrantInternalBorderStrokeWidth: l.quadrantChart?.quadrantInternalBorderStrokeWidth || 1,
1536
- quadrantExternalBorderStrokeWidth: l.quadrantChart?.quadrantExternalBorderStrokeWidth || 2
1537
- };
1538
- }
1539
- getDefaultThemeConfig() {
1540
- return {
1541
- quadrant1Fill: v.quadrant1Fill,
1542
- quadrant2Fill: v.quadrant2Fill,
1543
- quadrant3Fill: v.quadrant3Fill,
1544
- quadrant4Fill: v.quadrant4Fill,
1545
- quadrant1TextFill: v.quadrant1TextFill,
1546
- quadrant2TextFill: v.quadrant2TextFill,
1547
- quadrant3TextFill: v.quadrant3TextFill,
1548
- quadrant4TextFill: v.quadrant4TextFill,
1549
- quadrantPointFill: v.quadrantPointFill,
1550
- quadrantPointTextFill: v.quadrantPointTextFill,
1551
- quadrantXAxisTextFill: v.quadrantXAxisTextFill,
1552
- quadrantYAxisTextFill: v.quadrantYAxisTextFill,
1553
- quadrantTitleFill: v.quadrantTitleFill,
1554
- quadrantInternalBorderStrokeFill: v.quadrantInternalBorderStrokeFill,
1555
- quadrantExternalBorderStrokeFill: v.quadrantExternalBorderStrokeFill
1556
- };
1557
- }
1558
- clear() {
1559
- this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), e.info("clear called");
1560
- }
1561
- setData(e) {
1562
- this.data = {
1563
- ...this.data,
1564
- ...e
1565
- };
1566
- }
1567
- addPoints(e) {
1568
- this.data.points = [...e, ...this.data.points];
1569
- }
1570
- addClass(e, t) {
1571
- this.classes.set(e, t);
1572
- }
1573
- setConfig(t) {
1574
- e.trace("setConfig called with: ", t), this.config = {
1575
- ...this.config,
1576
- ...t
1577
- };
1578
- }
1579
- setThemeConfig(t) {
1580
- e.trace("setThemeConfig called with: ", t), this.themeConfig = {
1581
- ...this.themeConfig,
1582
- ...t
1583
- };
1584
- }
1585
- calculateSpace(e, t, n, r) {
1586
- let i = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, a = {
1587
- top: e === "top" && t ? i : 0,
1588
- bottom: e === "bottom" && t ? i : 0
1589
- }, o = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, s = {
1590
- left: this.config.yAxisPosition === "left" && n ? o : 0,
1591
- right: this.config.yAxisPosition === "right" && n ? o : 0
1592
- }, c = this.config.titleFontSize + this.config.titlePadding * 2, l = { top: r ? c : 0 }, u = this.config.quadrantPadding + s.left, d = this.config.quadrantPadding + a.top + l.top, f = this.config.chartWidth - this.config.quadrantPadding * 2 - s.left - s.right, p = this.config.chartHeight - this.config.quadrantPadding * 2 - a.top - a.bottom - l.top;
1593
- return {
1594
- xAxisSpace: a,
1595
- yAxisSpace: s,
1596
- titleSpace: l,
1597
- quadrantSpace: {
1598
- quadrantLeft: u,
1599
- quadrantTop: d,
1600
- quadrantWidth: f,
1601
- quadrantHalfWidth: f / 2,
1602
- quadrantHeight: p,
1603
- quadrantHalfHeight: p / 2
1604
- }
1605
- };
1606
- }
1607
- getAxisLabels(e, t, n, r) {
1608
- let { quadrantSpace: i, titleSpace: a } = r, { quadrantHalfHeight: o, quadrantHeight: s, quadrantLeft: c, quadrantHalfWidth: l, quadrantTop: u, quadrantWidth: d } = i, f = !!this.data.xAxisRightText, p = !!this.data.yAxisTopText, m = [];
1609
- return this.data.xAxisLeftText && t && m.push({
1610
- text: this.data.xAxisLeftText,
1611
- fill: this.themeConfig.quadrantXAxisTextFill,
1612
- x: c + (f ? l / 2 : 0),
1613
- y: e === "top" ? this.config.xAxisLabelPadding + a.top : this.config.xAxisLabelPadding + u + s + this.config.quadrantPadding,
1614
- fontSize: this.config.xAxisLabelFontSize,
1615
- verticalPos: f ? "center" : "left",
1616
- horizontalPos: "top",
1617
- rotation: 0
1618
- }), this.data.xAxisRightText && t && m.push({
1619
- text: this.data.xAxisRightText,
1620
- fill: this.themeConfig.quadrantXAxisTextFill,
1621
- x: c + l + (f ? l / 2 : 0),
1622
- y: e === "top" ? this.config.xAxisLabelPadding + a.top : this.config.xAxisLabelPadding + u + s + this.config.quadrantPadding,
1623
- fontSize: this.config.xAxisLabelFontSize,
1624
- verticalPos: f ? "center" : "left",
1625
- horizontalPos: "top",
1626
- rotation: 0
1627
- }), this.data.yAxisBottomText && n && m.push({
1628
- text: this.data.yAxisBottomText,
1629
- fill: this.themeConfig.quadrantYAxisTextFill,
1630
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + c + d + this.config.quadrantPadding,
1631
- y: u + s - (p ? o / 2 : 0),
1632
- fontSize: this.config.yAxisLabelFontSize,
1633
- verticalPos: p ? "center" : "left",
1634
- horizontalPos: "top",
1635
- rotation: -90
1636
- }), this.data.yAxisTopText && n && m.push({
1637
- text: this.data.yAxisTopText,
1638
- fill: this.themeConfig.quadrantYAxisTextFill,
1639
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + c + d + this.config.quadrantPadding,
1640
- y: u + o - (p ? o / 2 : 0),
1641
- fontSize: this.config.yAxisLabelFontSize,
1642
- verticalPos: p ? "center" : "left",
1643
- horizontalPos: "top",
1644
- rotation: -90
1645
- }), m;
1646
- }
1647
- getQuadrants(e) {
1648
- let { quadrantSpace: t } = e, { quadrantHalfHeight: n, quadrantLeft: r, quadrantHalfWidth: i, quadrantTop: a } = t, o = [
1649
- {
1650
- text: {
1651
- text: this.data.quadrant1Text,
1652
- fill: this.themeConfig.quadrant1TextFill,
1653
- x: 0,
1654
- y: 0,
1655
- fontSize: this.config.quadrantLabelFontSize,
1656
- verticalPos: "center",
1657
- horizontalPos: "middle",
1658
- rotation: 0
1659
- },
1660
- x: r + i,
1661
- y: a,
1662
- width: i,
1663
- height: n,
1664
- fill: this.themeConfig.quadrant1Fill
1665
- },
1666
- {
1667
- text: {
1668
- text: this.data.quadrant2Text,
1669
- fill: this.themeConfig.quadrant2TextFill,
1670
- x: 0,
1671
- y: 0,
1672
- fontSize: this.config.quadrantLabelFontSize,
1673
- verticalPos: "center",
1674
- horizontalPos: "middle",
1675
- rotation: 0
1676
- },
1677
- x: r,
1678
- y: a,
1679
- width: i,
1680
- height: n,
1681
- fill: this.themeConfig.quadrant2Fill
1682
- },
1683
- {
1684
- text: {
1685
- text: this.data.quadrant3Text,
1686
- fill: this.themeConfig.quadrant3TextFill,
1687
- x: 0,
1688
- y: 0,
1689
- fontSize: this.config.quadrantLabelFontSize,
1690
- verticalPos: "center",
1691
- horizontalPos: "middle",
1692
- rotation: 0
1693
- },
1694
- x: r,
1695
- y: a + n,
1696
- width: i,
1697
- height: n,
1698
- fill: this.themeConfig.quadrant3Fill
1699
- },
1700
- {
1701
- text: {
1702
- text: this.data.quadrant4Text,
1703
- fill: this.themeConfig.quadrant4TextFill,
1704
- x: 0,
1705
- y: 0,
1706
- fontSize: this.config.quadrantLabelFontSize,
1707
- verticalPos: "center",
1708
- horizontalPos: "middle",
1709
- rotation: 0
1710
- },
1711
- x: r + i,
1712
- y: a + n,
1713
- width: i,
1714
- height: n,
1715
- fill: this.themeConfig.quadrant4Fill
1716
- }
1717
- ];
1718
- for (let e of o) e.text.x = e.x + e.width / 2, this.data.points.length === 0 ? (e.text.y = e.y + e.height / 2, e.text.horizontalPos = "middle") : (e.text.y = e.y + this.config.quadrantTextTopPadding, e.text.horizontalPos = "top");
1719
- return o;
1720
- }
1721
- getQuadrantPoints(e) {
1722
- let { quadrantSpace: t } = e, { quadrantHeight: n, quadrantLeft: r, quadrantTop: i, quadrantWidth: a } = t, o = h().domain([0, 1]).range([r, a + r]), s = h().domain([0, 1]).range([n + i, i]);
1723
- return this.data.points.map((e) => {
1724
- let t = this.classes.get(e.className);
1725
- return t && (e = {
1726
- ...t,
1727
- ...e
1728
- }), {
1729
- x: o(e.x),
1730
- y: s(e.y),
1731
- fill: e.color ?? this.themeConfig.quadrantPointFill,
1732
- radius: e.radius ?? this.config.pointRadius,
1733
- text: {
1734
- text: e.text,
1735
- fill: this.themeConfig.quadrantPointTextFill,
1736
- x: o(e.x),
1737
- y: s(e.y) + this.config.pointTextPadding,
1738
- verticalPos: "center",
1739
- horizontalPos: "top",
1740
- fontSize: this.config.pointLabelFontSize,
1741
- rotation: 0
1742
- },
1743
- strokeColor: e.strokeColor ?? this.themeConfig.quadrantPointFill,
1744
- strokeWidth: e.strokeWidth ?? "0px"
1745
- };
1746
- });
1747
- }
1748
- getBorders(e) {
1749
- let t = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: n } = e, { quadrantHalfHeight: r, quadrantHeight: i, quadrantLeft: a, quadrantHalfWidth: o, quadrantTop: s, quadrantWidth: c } = n;
1750
- return [
1751
- {
1752
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1753
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1754
- x1: a - t,
1755
- y1: s,
1756
- x2: a + c + t,
1757
- y2: s
1758
- },
1759
- {
1760
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1761
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1762
- x1: a + c,
1763
- y1: s + t,
1764
- x2: a + c,
1765
- y2: s + i - t
1766
- },
1767
- {
1768
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1769
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1770
- x1: a - t,
1771
- y1: s + i,
1772
- x2: a + c + t,
1773
- y2: s + i
1774
- },
1775
- {
1776
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1777
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1778
- x1: a,
1779
- y1: s + t,
1780
- x2: a,
1781
- y2: s + i - t
1782
- },
1783
- {
1784
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1785
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1786
- x1: a + o,
1787
- y1: s + t,
1788
- x2: a + o,
1789
- y2: s + i - t
1790
- },
1791
- {
1792
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1793
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1794
- x1: a + t,
1795
- y1: s + r,
1796
- x2: a + c - t,
1797
- y2: s + r
1798
- }
1799
- ];
1800
- }
1801
- getTitle(e) {
1802
- if (e) return {
1803
- text: this.data.titleText,
1804
- fill: this.themeConfig.quadrantTitleFill,
1805
- fontSize: this.config.titleFontSize,
1806
- horizontalPos: "top",
1807
- verticalPos: "center",
1808
- rotation: 0,
1809
- y: this.config.titlePadding,
1810
- x: this.config.chartWidth / 2
1811
- };
1812
- }
1813
- build() {
1814
- let e = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), t = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), n = this.config.showTitle && !!this.data.titleText, r = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, i = this.calculateSpace(r, e, t, n);
1815
- return {
1816
- points: this.getQuadrantPoints(i),
1817
- quadrants: this.getQuadrants(i),
1818
- axisLabels: this.getAxisLabels(r, e, t, i),
1819
- borderLines: this.getBorders(i),
1820
- title: this.getTitle(n)
1821
- };
1822
- }
1823
- }, b = class extends Error {
1824
- static {
1825
- n(this, "InvalidStyleError");
1826
- }
1827
- constructor(e, t, n) {
1828
- super(`value for ${e} ${t} is invalid, please use a valid ${n}`), this.name = "InvalidStyleError";
1829
- }
1830
- };
1831
- function x(e) {
1832
- return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e);
1833
- }
1834
- n(x, "validateHexCode");
1835
- function S(e) {
1836
- return !/^\d+$/.test(e);
1837
- }
1838
- n(S, "validateNumber");
1839
- function C(e) {
1840
- return !/^\d+px$/.test(e);
1841
- }
1842
- n(C, "validateSizeInPixels");
1843
- function w(e) {
1844
- return m(e.trim(), f());
1845
- }
1846
- n(w, "textSanitizer");
1847
- var T = new y();
1848
- function E(e) {
1849
- T.setData({ quadrant1Text: w(e.text) });
1850
- }
1851
- n(E, "setQuadrant1Text");
1852
- function D(e) {
1853
- T.setData({ quadrant2Text: w(e.text) });
1854
- }
1855
- n(D, "setQuadrant2Text");
1856
- function O(e) {
1857
- T.setData({ quadrant3Text: w(e.text) });
1858
- }
1859
- n(O, "setQuadrant3Text");
1860
- function k(e) {
1861
- T.setData({ quadrant4Text: w(e.text) });
1862
- }
1863
- n(k, "setQuadrant4Text");
1864
- function A(e) {
1865
- T.setData({ xAxisLeftText: w(e.text) });
1866
- }
1867
- n(A, "setXAxisLeftText");
1868
- function j(e) {
1869
- T.setData({ xAxisRightText: w(e.text) });
1870
- }
1871
- n(j, "setXAxisRightText");
1872
- function M(e) {
1873
- T.setData({ yAxisTopText: w(e.text) });
1874
- }
1875
- n(M, "setYAxisTopText");
1876
- function N(e) {
1877
- T.setData({ yAxisBottomText: w(e.text) });
1878
- }
1879
- n(N, "setYAxisBottomText");
1880
- function P(e) {
1881
- let t = {};
1882
- for (let n of e) {
1883
- let [e, r] = n.trim().split(/\s*:\s*/);
1884
- if (e === "radius") {
1885
- if (S(r)) throw new b(e, r, "number");
1886
- t.radius = parseInt(r);
1887
- } else if (e === "color") {
1888
- if (x(r)) throw new b(e, r, "hex code");
1889
- t.color = r;
1890
- } else if (e === "stroke-color") {
1891
- if (x(r)) throw new b(e, r, "hex code");
1892
- t.strokeColor = r;
1893
- } else if (e === "stroke-width") {
1894
- if (C(r)) throw new b(e, r, "number of pixels (eg. 10px)");
1895
- t.strokeWidth = r;
1896
- } else throw Error(`style named ${e} is not supported.`);
1897
- }
1898
- return t;
1899
- }
1900
- n(P, "parseStyles");
1901
- function F(e, t, n, r, i) {
1902
- let a = P(i);
1903
- T.addPoints([{
1904
- x: n,
1905
- y: r,
1906
- text: w(e.text),
1907
- className: t,
1908
- ...a
1909
- }]);
1910
- }
1911
- n(F, "addPoint");
1912
- function I(e, t) {
1913
- T.addClass(e, P(t));
1914
- }
1915
- n(I, "addClass");
1916
- function L(e) {
1917
- T.setConfig({ chartWidth: e });
1918
- }
1919
- n(L, "setWidth");
1920
- function R(e) {
1921
- T.setConfig({ chartHeight: e });
1922
- }
1923
- n(R, "setHeight");
1924
- function z() {
1925
- let { themeVariables: e, quadrantChart: t } = f();
1926
- return t && T.setConfig(t), T.setThemeConfig({
1927
- quadrant1Fill: e.quadrant1Fill,
1928
- quadrant2Fill: e.quadrant2Fill,
1929
- quadrant3Fill: e.quadrant3Fill,
1930
- quadrant4Fill: e.quadrant4Fill,
1931
- quadrant1TextFill: e.quadrant1TextFill,
1932
- quadrant2TextFill: e.quadrant2TextFill,
1933
- quadrant3TextFill: e.quadrant3TextFill,
1934
- quadrant4TextFill: e.quadrant4TextFill,
1935
- quadrantPointFill: e.quadrantPointFill,
1936
- quadrantPointTextFill: e.quadrantPointTextFill,
1937
- quadrantXAxisTextFill: e.quadrantXAxisTextFill,
1938
- quadrantYAxisTextFill: e.quadrantYAxisTextFill,
1939
- quadrantExternalBorderStrokeFill: e.quadrantExternalBorderStrokeFill,
1940
- quadrantInternalBorderStrokeFill: e.quadrantInternalBorderStrokeFill,
1941
- quadrantTitleFill: e.quadrantTitleFill
1942
- }), T.setData({ titleText: d() }), T.build();
1943
- }
1944
- n(z, "getQuadrantData");
1945
- var B = {
1946
- parser: _,
1947
- db: {
1948
- setWidth: L,
1949
- setHeight: R,
1950
- setQuadrant1Text: E,
1951
- setQuadrant2Text: D,
1952
- setQuadrant3Text: O,
1953
- setQuadrant4Text: k,
1954
- setXAxisLeftText: A,
1955
- setXAxisRightText: j,
1956
- setYAxisTopText: M,
1957
- setYAxisBottomText: N,
1958
- parseStyles: P,
1959
- addPoint: F,
1960
- addClass: I,
1961
- getQuadrantData: z,
1962
- clear: /* @__PURE__ */ n(function() {
1963
- T.clear(), s();
1964
- }, "clear"),
1965
- setAccTitle: o,
1966
- getAccTitle: p,
1967
- setDiagramTitle: a,
1968
- getDiagramTitle: d,
1969
- getAccDescription: u,
1970
- setAccDescription: i
1971
- },
1972
- renderer: { draw: /* @__PURE__ */ n((r, i, a, o) => {
1973
- function s(e) {
1974
- return e === "top" ? "hanging" : "middle";
1975
- }
1976
- n(s, "getDominantBaseLine");
1977
- function l(e) {
1978
- return e === "left" ? "start" : "middle";
1979
- }
1980
- n(l, "getTextAnchor");
1981
- function u(e) {
1982
- return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
1983
- }
1984
- n(u, "getTransformation");
1985
- let d = f();
1986
- e.debug("Rendering quadrant chart\n" + r);
1987
- let p = d.securityLevel, m;
1988
- p === "sandbox" && (m = t("#i" + i));
1989
- let h = t(p === "sandbox" ? m.nodes()[0].contentDocument.body : "body").select(`[id="${i}"]`), g = h.append("g").attr("class", "main"), _ = d.quadrantChart?.chartWidth ?? 500, v = d.quadrantChart?.chartHeight ?? 500;
1990
- c(h, v, _, d.quadrantChart?.useMaxWidth ?? !0), h.attr("viewBox", "0 0 " + _ + " " + v), o.db.setHeight(v), o.db.setWidth(_);
1991
- let y = o.db.getQuadrantData(), b = g.append("g").attr("class", "quadrants"), x = g.append("g").attr("class", "border"), S = g.append("g").attr("class", "data-points"), C = g.append("g").attr("class", "labels"), w = g.append("g").attr("class", "title");
1992
- y.title && w.append("text").attr("x", 0).attr("y", 0).attr("fill", y.title.fill).attr("font-size", y.title.fontSize).attr("dominant-baseline", s(y.title.horizontalPos)).attr("text-anchor", l(y.title.verticalPos)).attr("transform", u(y.title)).text(y.title.text), y.borderLines && x.selectAll("line").data(y.borderLines).enter().append("line").attr("x1", (e) => e.x1).attr("y1", (e) => e.y1).attr("x2", (e) => e.x2).attr("y2", (e) => e.y2).style("stroke", (e) => e.strokeFill).style("stroke-width", (e) => e.strokeWidth);
1993
- let T = b.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class", "quadrant");
1994
- T.append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill), T.append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => s(e.text.horizontalPos)).attr("text-anchor", (e) => l(e.text.verticalPos)).attr("transform", (e) => u(e.text)).text((e) => e.text.text), C.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((e) => e.text).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => s(e.horizontalPos)).attr("text-anchor", (e) => l(e.verticalPos)).attr("transform", (e) => u(e));
1995
- let E = S.selectAll("g.data-point").data(y.points).enter().append("g").attr("class", "data-point");
1996
- E.append("circle").attr("cx", (e) => e.x).attr("cy", (e) => e.y).attr("r", (e) => e.radius).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeColor).attr("stroke-width", (e) => e.strokeWidth), E.append("text").attr("x", 0).attr("y", 0).text((e) => e.text.text).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => s(e.text.horizontalPos)).attr("text-anchor", (e) => l(e.text.verticalPos)).attr("transform", (e) => u(e.text));
1997
- }, "draw") },
1998
- styles: /* @__PURE__ */ n(() => "", "styles")
1999
- };
2000
- //#endregion
2001
- export { B as diagram };