@vunk/plus 1.6.11 → 1.7.1

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 (411) hide show
  1. package/components/_baseUniq-BXtq6_NW.mjs +239 -0
  2. package/components/abap-B7h4dtBh.mjs +6 -0
  3. package/components/actionscript-3-Bmm7RA3Y.mjs +6 -0
  4. package/components/ada-BZS802Se.mjs +6 -0
  5. package/components/agent-chat-provider/index.mjs +74 -39
  6. package/components/andromeeda-CrngpmZk.mjs +3 -0
  7. package/components/apache-D4roVlsU.mjs +6 -0
  8. package/components/apex-D6mfw0H5.mjs +6 -0
  9. package/components/apl-DDK-VObo.mjs +18 -0
  10. package/components/applescript-C43Knf0G.mjs +6 -0
  11. package/components/ara-DRBH84ND.mjs +6 -0
  12. package/components/arc-Js_tyW10.mjs +131 -0
  13. package/components/architecture-O4VJ6CD3-ZoZ2IAk2.mjs +13 -0
  14. package/components/architectureDiagram-SUXI7LT5-kyYGGrHN.mjs +8676 -0
  15. package/components/asm-3tg4MVib.mjs +6 -0
  16. package/components/astro-v4FYbRud.mjs +19 -0
  17. package/components/aurora-x-wJ4-eM2h.mjs +3 -0
  18. package/components/awk-ChreaG-G.mjs +6 -0
  19. package/components/ayu-dark-BEKp3oqs.mjs +3 -0
  20. package/components/ballerina-B0yt0TYU.mjs +6 -0
  21. package/components/batch-Ce_EX3Sx.mjs +14 -0
  22. package/components/beancount-BRIsdQEB.mjs +6 -0
  23. package/components/berry-Brv4WWdL.mjs +14 -0
  24. package/components/bibtex-BLeFwAes.mjs +6 -0
  25. package/components/bicep-BVrgfErX.mjs +6 -0
  26. package/components/blade-By3Sw_Ex.mjs +22 -0
  27. package/components/blockDiagram-6J76NXCF-IAr4zDV3.mjs +3608 -0
  28. package/components/bubble-list/index.css +22 -0
  29. package/components/bubble-list/index.mjs +7 -134
  30. package/components/bubble-templates/index.mjs +11438 -101
  31. package/components/c-C4VtT7JA.mjs +6 -0
  32. package/components/c4Diagram-6F6E4RAY-Dv27rXcJ.mjs +2490 -0
  33. package/components/catppuccin-frappe-zLMNRRUx.mjs +3 -0
  34. package/components/catppuccin-latte-CdF5jC3c.mjs +3 -0
  35. package/components/catppuccin-macchiato-DyjXeyRt.mjs +3 -0
  36. package/components/catppuccin-mocha-66IdYxR8.mjs +3 -0
  37. package/components/cdc-30ktANo3.mjs +14 -0
  38. package/components/channel-BBZy6zOT.mjs +7 -0
  39. package/components/chat-independent/index.mjs +4 -4
  40. package/components/chunk-353BL4L5-Dn_Y_Yna.mjs +17 -0
  41. package/components/chunk-67H74DCK-Br5U8bfD.mjs +102 -0
  42. package/components/chunk-AACKK3MU-DH_MKxca.mjs +17 -0
  43. package/components/chunk-BFAMUDN2-DHLCoYMN.mjs +13 -0
  44. package/components/chunk-E2GYISFI-DQPHyyga.mjs +19 -0
  45. package/components/chunk-OW32GOEJ-CQOSE6Bn.mjs +1924 -0
  46. package/components/chunk-SKB7J2MH-BlwHRDiW.mjs +25 -0
  47. package/components/chunk-SZ463SBG-DEp8buKJ.mjs +1823 -0
  48. package/components/clarity-6uBl6Vpb.mjs +6 -0
  49. package/components/classDiagram-M3E45YP4-D0ySDe-v.mjs +30 -0
  50. package/components/classDiagram-v2-YAWTLIQI-D0ySDe-v.mjs +30 -0
  51. package/components/clojure-COBRmwo8.mjs +14 -0
  52. package/components/clone-CEJtuQzg.mjs +8 -0
  53. package/components/cmake-CDfQILeU.mjs +6 -0
  54. package/components/cobol-BOOIiISO.mjs +13 -0
  55. package/components/coffee-DO_RGoZp.mjs +9 -0
  56. package/components/cpp-DAK8ktHO.mjs +25 -0
  57. package/components/crystal-CBGbbyVp.mjs +19 -0
  58. package/components/cs-h3ksD6-P.mjs +14 -0
  59. package/components/css-BtVcDqlU.mjs +6 -0
  60. package/components/cue-BFSVLV6N.mjs +6 -0
  61. package/components/cypher-Dl2CXoXF.mjs +14 -0
  62. package/components/cytoscape.esm-BojS1z60.mjs +30216 -0
  63. package/components/d-9qSZPw74.mjs +6 -0
  64. package/components/dagre-JOIXM2OF-5zx0JY2T.mjs +705 -0
  65. package/components/dark-plus-DmZ1Dzd4.mjs +3 -0
  66. package/components/dart-CCSsOg9l.mjs +6 -0
  67. package/components/dax-CvsmLV-B.mjs +6 -0
  68. package/components/defaultLocale-DVr69WTU.mjs +202 -0
  69. package/components/diagram-5UYTHUR4-C19nyAKc.mjs +213 -0
  70. package/components/diagram-VMROVX33-DkGwo-hj.mjs +859 -0
  71. package/components/diagram-ZTM2IBQH-CBgHCu9L.mjs +315 -0
  72. package/components/diff-BEdzuHlE.mjs +6 -0
  73. package/components/dockerfile-B3DP334t.mjs +14 -0
  74. package/components/dracula-B8-AVrwI.mjs +3 -0
  75. package/components/dracula-soft-BHeefow7.mjs +3 -0
  76. package/components/dream-maker-CNLQpoF-.mjs +6 -0
  77. package/components/elixir-0rTCSSfp.mjs +11 -0
  78. package/components/elm-BhwiZPvf.mjs +10 -0
  79. package/components/erDiagram-3M52JZNH-cttdAJXW.mjs +1167 -0
  80. package/components/erb-Lra8TlYM.mjs +27 -0
  81. package/components/erlang-D2NNgvtR.mjs +17 -0
  82. package/components/everforest-dark-Cg1xdODP.mjs +3 -0
  83. package/components/everforest-light-BmTD3bxe.mjs +3 -0
  84. package/components/fish-BU5HSdZy.mjs +6 -0
  85. package/components/flowDiagram-KYDEHFYC-9HpsqDdB.mjs +2343 -0
  86. package/components/fs-CdBSddpF.mjs +17 -0
  87. package/components/ganttDiagram-EK5VF46D-8QB3ofs6.mjs +3495 -0
  88. package/components/gdresource-CAbkn6H_.mjs +11 -0
  89. package/components/gdscript-Be_cubqt.mjs +6 -0
  90. package/components/gdshader-BEzE4j_3.mjs +6 -0
  91. package/components/gherkin-xCNF9gh8.mjs +6 -0
  92. package/components/git-commit-PP9xCApN.mjs +9 -0
  93. package/components/git-rebase-DqdGofLo.mjs +9 -0
  94. package/components/gitGraph-ZV4HHKMB-BSmtVGRu.mjs +13 -0
  95. package/components/gitGraphDiagram-GW3U2K7C-DNzc0Vx_.mjs +1225 -0
  96. package/components/github-dark-O22yVQaY.mjs +3 -0
  97. package/components/github-dark-default-DB2Hkvqn.mjs +3 -0
  98. package/components/github-dark-dimmed-CMZ_OfqC.mjs +3 -0
  99. package/components/github-dark-high-contrast-DmxWVmCU.mjs +3 -0
  100. package/components/github-light-BTbR9xVK.mjs +3 -0
  101. package/components/github-light-default-DWEonwFe.mjs +3 -0
  102. package/components/github-light-high-contrast-WJ_cPDts.mjs +3 -0
  103. package/components/glimmer-js-BkPYTyD4.mjs +23 -0
  104. package/components/glsl-CGsiYPcu.mjs +9 -0
  105. package/components/gnuplot-tV8vezdE.mjs +6 -0
  106. package/components/go-CBmVHZBz.mjs +6 -0
  107. package/components/graph-3zJxsO-i.mjs +425 -0
  108. package/components/graphql-D4pgneW3.mjs +15 -0
  109. package/components/groovy-Bn4MhXgW.mjs +6 -0
  110. package/components/gruvbox-dark-hard-C89wZ4s3.mjs +3 -0
  111. package/components/gruvbox-dark-medium-swz85q_b.mjs +3 -0
  112. package/components/gruvbox-dark-soft-BYHBHQJW.mjs +3 -0
  113. package/components/gruvbox-light-hard-DEF_ZxYZ.mjs +3 -0
  114. package/components/gruvbox-light-medium-ziUMnHJx.mjs +3 -0
  115. package/components/gruvbox-light-soft-Cuwp0tsB.mjs +3 -0
  116. package/components/gts-d3WsqAZM.mjs +23 -0
  117. package/components/hack-CwaBuF5l.mjs +13 -0
  118. package/components/haml-gLijj4rW.mjs +11 -0
  119. package/components/hbs-CFi5SpI3.mjs +23 -0
  120. package/components/hcl-axoq0Ycu.mjs +6 -0
  121. package/components/hjson-I7LcauIB.mjs +6 -0
  122. package/components/hlsl-TRzjajlb.mjs +6 -0
  123. package/components/houston-CF_ws8Cq.mjs +3 -0
  124. package/components/hs-DXSGqUFF.mjs +14 -0
  125. package/components/html-CLq-n30c.mjs +11 -0
  126. package/components/html-derivative-C8POX8SL.mjs +9 -0
  127. package/components/http-BYUKZ6kX.mjs +20 -0
  128. package/components/imba-C4923lSV.mjs +6 -0
  129. package/components/index3.mjs +79528 -0
  130. package/components/info-63CPKGFF-C8sYWczU.mjs +13 -0
  131. package/components/infoDiagram-LHK5PUON-C-vFFPTf.mjs +42 -0
  132. package/components/init-ZxktEp_H.mjs +15 -0
  133. package/components/java-BfXh-0uJ.mjs +6 -0
  134. package/components/jinja-html-BmW4v_vu.mjs +11 -0
  135. package/components/jison-C9kAT_Oj.mjs +9 -0
  136. package/components/journeyDiagram-EWQZEKCU-BJrw4-AG.mjs +1262 -0
  137. package/components/js-CN_xSsjU.mjs +14 -0
  138. package/components/json-TjWBGEk1.mjs +6 -0
  139. package/components/json5-DCGCKrmX.mjs +6 -0
  140. package/components/jsonc-DLVLp8id.mjs +6 -0
  141. package/components/jsonl-B-R_pDGg.mjs +6 -0
  142. package/components/jsonnet-Cs8BnnC6.mjs +6 -0
  143. package/components/jssm-D_YBQ_cM.mjs +14 -0
  144. package/components/jsx-BPmvoin2.mjs +6 -0
  145. package/components/julia-C-JjBobP.mjs +19 -0
  146. package/components/kanagawa-dragon-DU8n2NNT.mjs +3 -0
  147. package/components/kanagawa-lotus-Byd0CDet.mjs +3 -0
  148. package/components/kanagawa-wave-DExoagcR.mjs +3 -0
  149. package/components/kanban-definition-ZSS6B67P-BptAnqU-.mjs +1057 -0
  150. package/components/kotlin-BM2ZNTMh.mjs +6 -0
  151. package/components/kusto-D9MF7CZf.mjs +14 -0
  152. package/components/laserwave-DF03wMlf.mjs +3 -0
  153. package/components/latex-BsqkLZB_.mjs +10 -0
  154. package/components/layout-sGZIJplX.mjs +2043 -0
  155. package/components/less-BAzLMJNR.mjs +6 -0
  156. package/components/light-plus-DS08Xg5J.mjs +3 -0
  157. package/components/linear-DqgVh5FN.mjs +336 -0
  158. package/components/liquid-f2VHt0dg.mjs +15 -0
  159. package/components/lisp-DAq1kaby.mjs +6 -0
  160. package/components/logo-D9l7oEJ8.mjs +6 -0
  161. package/components/lua-CH3ttzl_.mjs +9 -0
  162. package/components/makefile-D2qLe7q0.mjs +14 -0
  163. package/components/marko-DwRyI_--.mjs +15 -0
  164. package/components/material-theme-B8B2U48Q.mjs +3 -0
  165. package/components/material-theme-darker-BV0iY_T3.mjs +3 -0
  166. package/components/material-theme-lighter-DrzybSTF.mjs +3 -0
  167. package/components/material-theme-ocean-BRPLVReX.mjs +3 -0
  168. package/components/material-theme-palenight-DSJwsR_D.mjs +3 -0
  169. package/components/matlab-7XHduepk.mjs +6 -0
  170. package/components/md-BIvDPr-W.mjs +14 -0
  171. package/components/mdc-Rx6hWSHn.mjs +16 -0
  172. package/components/mdx-D5wExp-O.mjs +6 -0
  173. package/components/mermaid-CUjtoYEe.mjs +6 -0
  174. package/components/mermaid-parser.core-CH9ryA1K.mjs +16987 -0
  175. package/components/mermaid.core-CAqkCmS1.mjs +20975 -0
  176. package/components/min-BngCxx8g.mjs +109 -0
  177. package/components/min-dark-BNaN9fWk.mjs +3 -0
  178. package/components/min-light-CMrjentn.mjs +3 -0
  179. package/components/mindmap-definition-6CBA2TL7-Cp_EeEsh.mjs +5854 -0
  180. package/components/mojo-CrbF881p.mjs +6 -0
  181. package/components/monokai-DelygWXa.mjs +3 -0
  182. package/components/narrat-DOwkIbBe.mjs +14 -0
  183. package/components/nf-DHfvJ2gH.mjs +14 -0
  184. package/components/nginx-B_jWsywZ.mjs +10 -0
  185. package/components/night-owl-DSS199ra.mjs +3 -0
  186. package/components/nim-yzbnZKJd.mjs +22 -0
  187. package/components/nix--3K2gyjg.mjs +6 -0
  188. package/components/nord-CvDbBq5M.mjs +3 -0
  189. package/components/objective-c-DkOBZg1J.mjs +14 -0
  190. package/components/objective-cpp-DEoN9Fe5.mjs +6 -0
  191. package/components/ocaml-B1kfGk9Y.mjs +6 -0
  192. package/components/one-dark-pro-CsMf0BoJ.mjs +3 -0
  193. package/components/one-light-BwwAsfsj.mjs +3 -0
  194. package/components/ordinal-DSZU4PqD.mjs +76 -0
  195. package/components/packet-HUATNLJX-bfFWFja0.mjs +13 -0
  196. package/components/pascal-CU8Kjkr_.mjs +6 -0
  197. package/components/perl-FH6su6vZ.mjs +18 -0
  198. package/components/php-Dnl1TfYH.mjs +20 -0
  199. package/components/pie-WTHONI2E-QPrWs3SR.mjs +13 -0
  200. package/components/pieDiagram-NIOCPIFQ-C46Y_4C6.mjs +248 -0
  201. package/components/plastic-BjwMpBc0.mjs +3 -0
  202. package/components/plsql-B3Na24V4.mjs +6 -0
  203. package/components/poimandres-ChWyhPrn.mjs +3 -0
  204. package/components/postcss-kj1IbjVd.mjs +6 -0
  205. package/components/powerquery-B-e1fO-k.mjs +6 -0
  206. package/components/prisma-bmxcSDxq.mjs +6 -0
  207. package/components/prolog-BT9GCzqD.mjs +6 -0
  208. package/components/properties-D6yKO1eW.mjs +14 -0
  209. package/components/proto-BIXM0k1a.mjs +6 -0
  210. package/components/ps1-aFyNx8UH.mjs +18 -0
  211. package/components/pug-BrOx0bSt.mjs +21 -0
  212. package/components/puppet-N15G4Usj.mjs +6 -0
  213. package/components/purescript-DrwsEYNH.mjs +6 -0
  214. package/components/python-D2s92fRP.mjs +14 -0
  215. package/components/ql-DTm-NCRo.mjs +14 -0
  216. package/components/quadrantDiagram-2OG54O6I-Dgf6d6F_.mjs +1347 -0
  217. package/components/r-oprfD2-9.mjs +6 -0
  218. package/components/radar-NJJJXTRR-BnUCJhQL.mjs +13 -0
  219. package/components/raku-xArQd_rF.mjs +14 -0
  220. package/components/razor-BoXCAbWQ.mjs +13 -0
  221. package/components/red-DByOl5N0.mjs +3 -0
  222. package/components/reg-CULnG2WX.mjs +6 -0
  223. package/components/rel-CHRwzjd4.mjs +6 -0
  224. package/components/requirementDiagram-QOLK2EJ7-CSF6N7HA.mjs +1171 -0
  225. package/components/riscv-BNQ9cVpw.mjs +6 -0
  226. package/components/rose-pine-LL9gXmP2.mjs +3 -0
  227. package/components/rose-pine-dawn-CH9zdisO.mjs +3 -0
  228. package/components/rose-pine-moon-B1oKSfEJ.mjs +3 -0
  229. package/components/rst-bEtD1v7N.mjs +36 -0
  230. package/components/ruby-BmfBy6EV.mjs +44 -0
  231. package/components/rust-Bf_fdNdL.mjs +14 -0
  232. package/components/sankeyDiagram-4UZDY2LN-BAHB7dMS.mjs +1199 -0
  233. package/components/sas-BLBgC3TA.mjs +9 -0
  234. package/components/sass-BheygBdF.mjs +6 -0
  235. package/components/scala-B-_7vFVn.mjs +6 -0
  236. package/components/scheme-BSHdPinv.mjs +6 -0
  237. package/components/scss-Dq-LbI_c.mjs +9 -0
  238. package/components/sequenceDiagram-SKLFT4DO-10gLJ50N.mjs +3422 -0
  239. package/components/shaderlab-BOQRTiQi.mjs +17 -0
  240. package/components/shellsession-Cu3c0QAc.mjs +17 -0
  241. package/components/slack-dark-BEe10hxO.mjs +3 -0
  242. package/components/slack-ochin-BKmu9pBc.mjs +3 -0
  243. package/components/smalltalk-qxcGy4fT.mjs +6 -0
  244. package/components/snazzy-light-Dcvd-ZyI.mjs +3 -0
  245. package/components/solarized-dark-BBl5y5sR.mjs +3 -0
  246. package/components/solarized-light-DW9b_AY8.mjs +3 -0
  247. package/components/solidity-CewKZgp-.mjs +6 -0
  248. package/components/sparql-DswowMAp.mjs +9 -0
  249. package/components/splunk-gK6Iw_P9.mjs +14 -0
  250. package/components/sql-DzUuSofg.mjs +6 -0
  251. package/components/ssh-config-Bk_I5wDR.mjs +6 -0
  252. package/components/stata-Dl7wDdBE.mjs +9 -0
  253. package/components/stateDiagram-MI5ZYTHO-D6p6nCaj.mjs +459 -0
  254. package/components/stateDiagram-v2-5AN5P6BG-DaN5hC-t.mjs +29 -0
  255. package/components/stylus-qRNkxrFU.mjs +14 -0
  256. package/components/svelte-B9qv3vkS.mjs +15 -0
  257. package/components/swift-BRQRsam8.mjs +6 -0
  258. package/components/synthwave-84-CoUef9sh.mjs +3 -0
  259. package/components/system-verilog-BcESSvRn.mjs +6 -0
  260. package/components/tasl-DfOr2qHi.mjs +6 -0
  261. package/components/tcl-CTsc4-t7.mjs +6 -0
  262. package/components/tex-CumJx1zu.mjs +9 -0
  263. package/components/timeline-definition-MYPXXCX6-gLqnWxDu.mjs +1234 -0
  264. package/components/tokyo-night-DjtLpAEY.mjs +3 -0
  265. package/components/toml-vHPzWDj6.mjs +6 -0
  266. package/components/treemap-75Q7IDZK-B2atdfMH.mjs +13 -0
  267. package/components/tsx-CmGGo4Hm.mjs +6 -0
  268. package/components/turtle-BnC7StHY.mjs +6 -0
  269. package/components/twig-0XKNpXN1.mjs +35 -0
  270. package/components/typescript-CgxwwAuC.mjs +14 -0
  271. package/components/v-Bmdjo9cy.mjs +6 -0
  272. package/components/vb-DuF6ZenW.mjs +14 -0
  273. package/components/verilog-CCb_iTfF.mjs +6 -0
  274. package/components/vesper-4Q1cEwPL.mjs +3 -0
  275. package/components/vhdl-DMqk4T2s.mjs +6 -0
  276. package/components/vimscript-aKp9YbYm.mjs +18 -0
  277. package/components/vitesse-black-BqNLki8b.mjs +3 -0
  278. package/components/vitesse-dark-jJ32WhwH.mjs +3 -0
  279. package/components/vitesse-light-476zM4e6.mjs +3 -0
  280. package/components/vue-DVNNTw2l.mjs +40 -0
  281. package/components/vue-html-Cr5wciIP.mjs +16 -0
  282. package/components/vyper-DYedWgAE.mjs +14 -0
  283. package/components/wasm-BBh6f151.mjs +6 -0
  284. package/components/wasm-DDgzZJey.mjs +7 -0
  285. package/components/wenyan-BdqozpMZ.mjs +6 -0
  286. package/components/wgsl-Vo-hHVWH.mjs +6 -0
  287. package/components/wolfram-CRmjUoI4.mjs +6 -0
  288. package/components/xml-BMzZeaqs.mjs +9 -0
  289. package/components/xsl-CAhvzxWv.mjs +10 -0
  290. package/components/xychartDiagram-H2YORKM3-Whqa4ezL.mjs +1893 -0
  291. package/components/yml-BhSrWWMS.mjs +14 -0
  292. package/components/zenscript-DFINJL6j.mjs +6 -0
  293. package/components/zig-CS4FMAZp.mjs +6 -0
  294. package/components/zsh-hcK4TBd7.mjs +26 -0
  295. package/index.css +23 -0
  296. package/package.json +4 -1
  297. package/components/agent-chat-provider/index.d.ts +0 -7
  298. package/components/agent-chat-provider/src/api.d.ts +0 -3
  299. package/components/agent-chat-provider/src/const-roles.d.ts +0 -8
  300. package/components/agent-chat-provider/src/const.d.ts +0 -1
  301. package/components/agent-chat-provider/src/index.vue.d.ts +0 -22
  302. package/components/agent-chat-provider/src/types.d.ts +0 -50
  303. package/components/agent-chat-provider/src/use.d.ts +0 -5
  304. package/components/avatar/index.d.ts +0 -4
  305. package/components/avatar/src/ctx.d.ts +0 -6
  306. package/components/avatar/src/index.vue.d.ts +0 -180
  307. package/components/avatar/src/types.d.ts +0 -1
  308. package/components/broadcasting-markdown/index.d.ts +0 -7
  309. package/components/broadcasting-markdown/src/const.d.ts +0 -13
  310. package/components/broadcasting-markdown/src/ctx.d.ts +0 -129
  311. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +0 -104
  312. package/components/broadcasting-markdown/src/index.vue.d.ts +0 -439
  313. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +0 -79
  314. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +0 -67
  315. package/components/broadcasting-markdown/src/types.d.ts +0 -26
  316. package/components/broadcasting-markdown/src/use.d.ts +0 -21
  317. package/components/bubble-list/index.d.ts +0 -5
  318. package/components/bubble-list/src/ctx.d.ts +0 -32
  319. package/components/bubble-list/src/index.vue.d.ts +0 -810
  320. package/components/bubble-list/src/types.d.ts +0 -4
  321. package/components/bubble-templates/index.d.ts +0 -4
  322. package/components/bubble-templates/src/index.vue.d.ts +0 -595
  323. package/components/bubble-templates/src/types.d.ts +0 -40
  324. package/components/chat-independent/index.d.ts +0 -4
  325. package/components/chat-independent/src/const.d.ts +0 -13
  326. package/components/chat-independent/src/ctx.d.ts +0 -21
  327. package/components/chat-independent/src/index.vue.d.ts +0 -2429
  328. package/components/chat-independent/src/types.d.ts +0 -13
  329. package/components/index.d.ts +0 -0
  330. package/components/lottie-animation/index.d.ts +0 -4
  331. package/components/lottie-animation/src/ctx.d.ts +0 -10
  332. package/components/lottie-animation/src/index.vue.d.ts +0 -21
  333. package/components/lottie-animation/src/types.d.ts +0 -4
  334. package/components/metahuman-broadcasting/index.d.ts +0 -5
  335. package/components/metahuman-broadcasting/src/ctx.d.ts +0 -57
  336. package/components/metahuman-broadcasting/src/index.vue.d.ts +0 -885
  337. package/components/metahuman-broadcasting/src/types.d.ts +0 -1
  338. package/components/monaco-editor/index.d.ts +0 -5
  339. package/components/monaco-editor/src/ctx.d.ts +0 -23
  340. package/components/monaco-editor/src/index.vue.d.ts +0 -40
  341. package/components/monaco-editor/src/types.d.ts +0 -1
  342. package/components/monaco-environment/index.d.ts +0 -4
  343. package/components/monaco-environment/src/ctx.d.ts +0 -8
  344. package/components/monaco-environment/src/index.vue.d.ts +0 -2
  345. package/components/monaco-environment/src/types.d.ts +0 -1
  346. package/components/pixi-frame/index.d.ts +0 -11
  347. package/components/pixi-frame/src/apng.vue.d.ts +0 -161
  348. package/components/pixi-frame/src/bitmap.vue.d.ts +0 -158
  349. package/components/pixi-frame/src/core.vue.d.ts +0 -173
  350. package/components/pixi-frame/src/ctx.d.ts +0 -55
  351. package/components/pixi-frame/src/index.vue.d.ts +0 -591
  352. package/components/pixi-frame/src/provider.vue.d.ts +0 -2
  353. package/components/pixi-frame/src/types.d.ts +0 -17
  354. package/components/pixi-frame/src/use.d.ts +0 -16
  355. package/components/pixi-frame/src/useSprite.d.ts +0 -12
  356. package/components/pixi-frame/src/video.vue.d.ts +0 -159
  357. package/components/pixi-frame/src/view.vue.d.ts +0 -29
  358. package/components/recorder-button/index.d.ts +0 -4
  359. package/components/recorder-button/src/ctx.d.ts +0 -41
  360. package/components/recorder-button/src/index.vue.d.ts +0 -333
  361. package/components/recorder-button/src/speech-to-text.d.ts +0 -1
  362. package/components/recorder-button/src/types.d.ts +0 -7
  363. package/components/routes-menu-content/index.d.ts +0 -4
  364. package/components/routes-menu-content/src/ctx.d.ts +0 -17
  365. package/components/routes-menu-content/src/index.vue.d.ts +0 -350
  366. package/components/routes-menu-content/src/item/core/ctx.d.ts +0 -18
  367. package/components/routes-menu-content/src/item/core/index.vue.d.ts +0 -185
  368. package/components/routes-menu-content/src/item/ctx.d.ts +0 -14
  369. package/components/routes-menu-content/src/item/index.vue.d.ts +0 -316
  370. package/components/routes-menu-content/src/types.d.ts +0 -1
  371. package/components/sender/index.d.ts +0 -4
  372. package/components/sender/src/SenderHeader.vue.d.ts +0 -270
  373. package/components/sender/src/ctx.d.ts +0 -64
  374. package/components/sender/src/index.vue.d.ts +0 -779
  375. package/components/sender/src/types.d.ts +0 -1
  376. package/components/speech-button/index.d.ts +0 -4
  377. package/components/speech-button/src/LoadingIcon.vue.d.ts +0 -2
  378. package/components/speech-button/src/RecordingIcon.vue.d.ts +0 -2
  379. package/components/speech-button/src/ctx.d.ts +0 -10
  380. package/components/speech-button/src/index.vue.d.ts +0 -22
  381. package/components/speech-button/src/types.d.ts +0 -1
  382. package/components/table-columns/index.d.ts +0 -5
  383. package/components/table-columns/src/ctx.d.ts +0 -59
  384. package/components/table-columns/src/el-ctx.d.ts +0 -57
  385. package/components/table-columns/src/index.vue.d.ts +0 -266
  386. package/components/table-columns/src/types.d.ts +0 -21
  387. package/components/tables-v1/index.d.ts +0 -5
  388. package/components/tables-v1/src/ctx.d.ts +0 -280
  389. package/components/tables-v1/src/el-ctx.d.ts +0 -262
  390. package/components/tables-v1/src/index.vue.d.ts +0 -3054
  391. package/components/tables-v1/src/types.d.ts +0 -3
  392. package/components/tables-v1-checkbox/index.d.ts +0 -5
  393. package/components/tables-v1-checkbox/src/ctx.d.ts +0 -313
  394. package/components/tables-v1-checkbox/src/index.vue.d.ts +0 -3831
  395. package/components/tables-v1-checkbox/src/types.d.ts +0 -1
  396. package/components/text/index.d.ts +0 -4
  397. package/components/text/src/ctx.d.ts +0 -341
  398. package/components/text/src/index.vue.d.ts +0 -4593
  399. package/components/text/src/types.d.ts +0 -1
  400. package/components/typing-markdown/index.d.ts +0 -4
  401. package/components/typing-markdown/src/core.d.ts +0 -2
  402. package/components/typing-markdown/src/ctx.d.ts +0 -41
  403. package/components/typing-markdown/src/index.vue.d.ts +0 -75
  404. package/components/typing-markdown/src/types.d.ts +0 -1
  405. package/components/vditor/index.d.ts +0 -5
  406. package/components/vditor/src/ctx.d.ts +0 -38
  407. package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
  408. package/components/vditor/src/handle-value.vue.d.ts +0 -18
  409. package/components/vditor/src/index.vue.d.ts +0 -143
  410. package/components/vditor/src/types.d.ts +0 -9
  411. package/components/vditor/src/use.d.ts +0 -4
@@ -0,0 +1,1057 @@
1
+ import { g as getIconStyles } from './chunk-E2GYISFI-DQPHyyga.mjs';
2
+ import { _ as __name, l as log, c as getConfig2, K as selectSvgElement, ah as insertCluster, ai as insertNode, aj as positionNode, ac as setupGraphViewbox, H as defaultConfig_default, i as sanitizeText, v as load, J as JSON_SCHEMA, ad as isDark, ae as lighten, af as darken } from './mermaid.core-CAqkCmS1.mjs';
3
+ import './index3.mjs';
4
+ import 'vue';
5
+ import '@vunk/plus/components/bubble-templates';
6
+ import '@vunk/core/components/spread-to';
7
+ import 'element-plus';
8
+ import '@vunk/shared/function';
9
+ import './_plugin-vue_export-helper.mjs';
10
+ import '@vunk/plus/components/agent-chat-provider';
11
+
12
+ var parser = function() {
13
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
14
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
15
+ return o2;
16
+ }, "o"), $V0 = [1, 4], $V1 = [1, 13], $V2 = [1, 12], $V3 = [1, 15], $V4 = [1, 16], $V5 = [1, 20], $V6 = [1, 19], $V7 = [6, 7, 8], $V8 = [1, 26], $V9 = [1, 24], $Va = [1, 25], $Vb = [6, 7, 11], $Vc = [1, 31], $Vd = [6, 7, 11, 24], $Ve = [1, 6, 13, 16, 17, 20, 23], $Vf = [1, 35], $Vg = [1, 36], $Vh = [1, 6, 7, 11, 13, 16, 17, 20, 23], $Vi = [1, 38];
17
+ var parser2 = {
18
+ trace: /* @__PURE__ */ __name(function trace() {
19
+ }, "trace"),
20
+ yy: {},
21
+ symbols_: { "error": 2, "start": 3, "mindMap": 4, "spaceLines": 5, "SPACELINE": 6, "NL": 7, "KANBAN": 8, "document": 9, "stop": 10, "EOF": 11, "statement": 12, "SPACELIST": 13, "node": 14, "shapeData": 15, "ICON": 16, "CLASS": 17, "nodeWithId": 18, "nodeWithoutId": 19, "NODE_DSTART": 20, "NODE_DESCR": 21, "NODE_DEND": 22, "NODE_ID": 23, "SHAPE_DATA": 24, "$accept": 0, "$end": 1 },
22
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
23
+ productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
24
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
25
+ var $0 = $$.length - 1;
26
+ switch (yystate) {
27
+ case 6:
28
+ case 7:
29
+ return yy;
30
+ case 8:
31
+ yy.getLogger().trace("Stop NL ");
32
+ break;
33
+ case 9:
34
+ yy.getLogger().trace("Stop EOF ");
35
+ break;
36
+ case 11:
37
+ yy.getLogger().trace("Stop NL2 ");
38
+ break;
39
+ case 12:
40
+ yy.getLogger().trace("Stop EOF2 ");
41
+ break;
42
+ case 15:
43
+ yy.getLogger().info("Node: ", $$[$0 - 1].id);
44
+ yy.addNode($$[$0 - 2].length, $$[$0 - 1].id, $$[$0 - 1].descr, $$[$0 - 1].type, $$[$0]);
45
+ break;
46
+ case 16:
47
+ yy.getLogger().info("Node: ", $$[$0].id);
48
+ yy.addNode($$[$0 - 1].length, $$[$0].id, $$[$0].descr, $$[$0].type);
49
+ break;
50
+ case 17:
51
+ yy.getLogger().trace("Icon: ", $$[$0]);
52
+ yy.decorateNode({ icon: $$[$0] });
53
+ break;
54
+ case 18:
55
+ case 23:
56
+ yy.decorateNode({ class: $$[$0] });
57
+ break;
58
+ case 19:
59
+ yy.getLogger().trace("SPACELIST");
60
+ break;
61
+ case 20:
62
+ yy.getLogger().trace("Node: ", $$[$0 - 1].id);
63
+ yy.addNode(0, $$[$0 - 1].id, $$[$0 - 1].descr, $$[$0 - 1].type, $$[$0]);
64
+ break;
65
+ case 21:
66
+ yy.getLogger().trace("Node: ", $$[$0].id);
67
+ yy.addNode(0, $$[$0].id, $$[$0].descr, $$[$0].type);
68
+ break;
69
+ case 22:
70
+ yy.decorateNode({ icon: $$[$0] });
71
+ break;
72
+ case 27:
73
+ yy.getLogger().trace("node found ..", $$[$0 - 2]);
74
+ this.$ = { id: $$[$0 - 1], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
75
+ break;
76
+ case 28:
77
+ this.$ = { id: $$[$0], descr: $$[$0], type: 0 };
78
+ break;
79
+ case 29:
80
+ yy.getLogger().trace("node found ..", $$[$0 - 3]);
81
+ this.$ = { id: $$[$0 - 3], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
82
+ break;
83
+ case 30:
84
+ this.$ = $$[$0 - 1] + $$[$0];
85
+ break;
86
+ case 31:
87
+ this.$ = $$[$0];
88
+ break;
89
+ }
90
+ }, "anonymous"),
91
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: $V0 }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: $V0 }, { 6: $V1, 7: [1, 10], 9: 9, 12: 11, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, o($V7, [2, 3]), { 1: [2, 2] }, o($V7, [2, 4]), o($V7, [2, 5]), { 1: [2, 6], 6: $V1, 12: 21, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, { 6: $V1, 9: 22, 12: 11, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, { 6: $V8, 7: $V9, 10: 23, 11: $Va }, o($Vb, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: $V5, 23: $V6 }), o($Vb, [2, 19]), o($Vb, [2, 21], { 15: 30, 24: $Vc }), o($Vb, [2, 22]), o($Vb, [2, 23]), o($Vd, [2, 25]), o($Vd, [2, 26]), o($Vd, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: $V8, 7: $V9, 10: 34, 11: $Va }, { 1: [2, 7], 6: $V1, 12: 21, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, o($Ve, [2, 14], { 7: $Vf, 11: $Vg }), o($Vh, [2, 8]), o($Vh, [2, 9]), o($Vh, [2, 10]), o($Vb, [2, 16], { 15: 37, 24: $Vc }), o($Vb, [2, 17]), o($Vb, [2, 18]), o($Vb, [2, 20], { 24: $Vi }), o($Vd, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, o($Ve, [2, 13], { 7: $Vf, 11: $Vg }), o($Vh, [2, 11]), o($Vh, [2, 12]), o($Vb, [2, 15], { 24: $Vi }), o($Vd, [2, 30]), { 22: [1, 41] }, o($Vd, [2, 27]), o($Vd, [2, 29])],
92
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
93
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
94
+ if (hash.recoverable) {
95
+ this.trace(str);
96
+ } else {
97
+ var error = new Error(str);
98
+ error.hash = hash;
99
+ throw error;
100
+ }
101
+ }, "parseError"),
102
+ parse: /* @__PURE__ */ __name(function parse(input) {
103
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
104
+ var args = lstack.slice.call(arguments, 1);
105
+ var lexer2 = Object.create(this.lexer);
106
+ var sharedState = { yy: {} };
107
+ for (var k in this.yy) {
108
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
109
+ sharedState.yy[k] = this.yy[k];
110
+ }
111
+ }
112
+ lexer2.setInput(input, sharedState.yy);
113
+ sharedState.yy.lexer = lexer2;
114
+ sharedState.yy.parser = this;
115
+ if (typeof lexer2.yylloc == "undefined") {
116
+ lexer2.yylloc = {};
117
+ }
118
+ var yyloc = lexer2.yylloc;
119
+ lstack.push(yyloc);
120
+ var ranges = lexer2.options && lexer2.options.ranges;
121
+ if (typeof sharedState.yy.parseError === "function") {
122
+ this.parseError = sharedState.yy.parseError;
123
+ } else {
124
+ this.parseError = Object.getPrototypeOf(this).parseError;
125
+ }
126
+ function popStack(n) {
127
+ stack.length = stack.length - 2 * n;
128
+ vstack.length = vstack.length - n;
129
+ lstack.length = lstack.length - n;
130
+ }
131
+ __name(popStack, "popStack");
132
+ function lex() {
133
+ var token;
134
+ token = tstack.pop() || lexer2.lex() || EOF;
135
+ if (typeof token !== "number") {
136
+ if (token instanceof Array) {
137
+ tstack = token;
138
+ token = tstack.pop();
139
+ }
140
+ token = self.symbols_[token] || token;
141
+ }
142
+ return token;
143
+ }
144
+ __name(lex, "lex");
145
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
146
+ while (true) {
147
+ state = stack[stack.length - 1];
148
+ if (this.defaultActions[state]) {
149
+ action = this.defaultActions[state];
150
+ } else {
151
+ if (symbol === null || typeof symbol == "undefined") {
152
+ symbol = lex();
153
+ }
154
+ action = table[state] && table[state][symbol];
155
+ }
156
+ if (typeof action === "undefined" || !action.length || !action[0]) {
157
+ var errStr = "";
158
+ expected = [];
159
+ for (p in table[state]) {
160
+ if (this.terminals_[p] && p > TERROR) {
161
+ expected.push("'" + this.terminals_[p] + "'");
162
+ }
163
+ }
164
+ if (lexer2.showPosition) {
165
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
166
+ } else {
167
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
168
+ }
169
+ this.parseError(errStr, {
170
+ text: lexer2.match,
171
+ token: this.terminals_[symbol] || symbol,
172
+ line: lexer2.yylineno,
173
+ loc: yyloc,
174
+ expected
175
+ });
176
+ }
177
+ if (action[0] instanceof Array && action.length > 1) {
178
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
179
+ }
180
+ switch (action[0]) {
181
+ case 1:
182
+ stack.push(symbol);
183
+ vstack.push(lexer2.yytext);
184
+ lstack.push(lexer2.yylloc);
185
+ stack.push(action[1]);
186
+ symbol = null;
187
+ {
188
+ yyleng = lexer2.yyleng;
189
+ yytext = lexer2.yytext;
190
+ yylineno = lexer2.yylineno;
191
+ yyloc = lexer2.yylloc;
192
+ }
193
+ break;
194
+ case 2:
195
+ len = this.productions_[action[1]][1];
196
+ yyval.$ = vstack[vstack.length - len];
197
+ yyval._$ = {
198
+ first_line: lstack[lstack.length - (len || 1)].first_line,
199
+ last_line: lstack[lstack.length - 1].last_line,
200
+ first_column: lstack[lstack.length - (len || 1)].first_column,
201
+ last_column: lstack[lstack.length - 1].last_column
202
+ };
203
+ if (ranges) {
204
+ yyval._$.range = [
205
+ lstack[lstack.length - (len || 1)].range[0],
206
+ lstack[lstack.length - 1].range[1]
207
+ ];
208
+ }
209
+ r = this.performAction.apply(yyval, [
210
+ yytext,
211
+ yyleng,
212
+ yylineno,
213
+ sharedState.yy,
214
+ action[1],
215
+ vstack,
216
+ lstack
217
+ ].concat(args));
218
+ if (typeof r !== "undefined") {
219
+ return r;
220
+ }
221
+ if (len) {
222
+ stack = stack.slice(0, -1 * len * 2);
223
+ vstack = vstack.slice(0, -1 * len);
224
+ lstack = lstack.slice(0, -1 * len);
225
+ }
226
+ stack.push(this.productions_[action[1]][0]);
227
+ vstack.push(yyval.$);
228
+ lstack.push(yyval._$);
229
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
230
+ stack.push(newState);
231
+ break;
232
+ case 3:
233
+ return true;
234
+ }
235
+ }
236
+ return true;
237
+ }, "parse")
238
+ };
239
+ var lexer = /* @__PURE__ */ function() {
240
+ var lexer2 = {
241
+ EOF: 1,
242
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
243
+ if (this.yy.parser) {
244
+ this.yy.parser.parseError(str, hash);
245
+ } else {
246
+ throw new Error(str);
247
+ }
248
+ }, "parseError"),
249
+ // resets the lexer, sets new input
250
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
251
+ this.yy = yy || this.yy || {};
252
+ this._input = input;
253
+ this._more = this._backtrack = this.done = false;
254
+ this.yylineno = this.yyleng = 0;
255
+ this.yytext = this.matched = this.match = "";
256
+ this.conditionStack = ["INITIAL"];
257
+ this.yylloc = {
258
+ first_line: 1,
259
+ first_column: 0,
260
+ last_line: 1,
261
+ last_column: 0
262
+ };
263
+ if (this.options.ranges) {
264
+ this.yylloc.range = [0, 0];
265
+ }
266
+ this.offset = 0;
267
+ return this;
268
+ }, "setInput"),
269
+ // consumes and returns one char from the input
270
+ input: /* @__PURE__ */ __name(function() {
271
+ var ch = this._input[0];
272
+ this.yytext += ch;
273
+ this.yyleng++;
274
+ this.offset++;
275
+ this.match += ch;
276
+ this.matched += ch;
277
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
278
+ if (lines) {
279
+ this.yylineno++;
280
+ this.yylloc.last_line++;
281
+ } else {
282
+ this.yylloc.last_column++;
283
+ }
284
+ if (this.options.ranges) {
285
+ this.yylloc.range[1]++;
286
+ }
287
+ this._input = this._input.slice(1);
288
+ return ch;
289
+ }, "input"),
290
+ // unshifts one char (or a string) into the input
291
+ unput: /* @__PURE__ */ __name(function(ch) {
292
+ var len = ch.length;
293
+ var lines = ch.split(/(?:\r\n?|\n)/g);
294
+ this._input = ch + this._input;
295
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
296
+ this.offset -= len;
297
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
298
+ this.match = this.match.substr(0, this.match.length - 1);
299
+ this.matched = this.matched.substr(0, this.matched.length - 1);
300
+ if (lines.length - 1) {
301
+ this.yylineno -= lines.length - 1;
302
+ }
303
+ var r = this.yylloc.range;
304
+ this.yylloc = {
305
+ first_line: this.yylloc.first_line,
306
+ last_line: this.yylineno + 1,
307
+ first_column: this.yylloc.first_column,
308
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
309
+ };
310
+ if (this.options.ranges) {
311
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
312
+ }
313
+ this.yyleng = this.yytext.length;
314
+ return this;
315
+ }, "unput"),
316
+ // When called from action, caches matched text and appends it on next action
317
+ more: /* @__PURE__ */ __name(function() {
318
+ this._more = true;
319
+ return this;
320
+ }, "more"),
321
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
322
+ reject: /* @__PURE__ */ __name(function() {
323
+ if (this.options.backtrack_lexer) {
324
+ this._backtrack = true;
325
+ } else {
326
+ 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(), {
327
+ text: "",
328
+ token: null,
329
+ line: this.yylineno
330
+ });
331
+ }
332
+ return this;
333
+ }, "reject"),
334
+ // retain first n characters of the match
335
+ less: /* @__PURE__ */ __name(function(n) {
336
+ this.unput(this.match.slice(n));
337
+ }, "less"),
338
+ // displays already matched input, i.e. for error messages
339
+ pastInput: /* @__PURE__ */ __name(function() {
340
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
341
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
342
+ }, "pastInput"),
343
+ // displays upcoming input, i.e. for error messages
344
+ upcomingInput: /* @__PURE__ */ __name(function() {
345
+ var next = this.match;
346
+ if (next.length < 20) {
347
+ next += this._input.substr(0, 20 - next.length);
348
+ }
349
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
350
+ }, "upcomingInput"),
351
+ // displays the character position where the lexing error occurred, i.e. for error messages
352
+ showPosition: /* @__PURE__ */ __name(function() {
353
+ var pre = this.pastInput();
354
+ var c = new Array(pre.length + 1).join("-");
355
+ return pre + this.upcomingInput() + "\n" + c + "^";
356
+ }, "showPosition"),
357
+ // test the lexed token: return FALSE when not a match, otherwise return token
358
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
359
+ var token, lines, backup;
360
+ if (this.options.backtrack_lexer) {
361
+ backup = {
362
+ yylineno: this.yylineno,
363
+ yylloc: {
364
+ first_line: this.yylloc.first_line,
365
+ last_line: this.last_line,
366
+ first_column: this.yylloc.first_column,
367
+ last_column: this.yylloc.last_column
368
+ },
369
+ yytext: this.yytext,
370
+ match: this.match,
371
+ matches: this.matches,
372
+ matched: this.matched,
373
+ yyleng: this.yyleng,
374
+ offset: this.offset,
375
+ _more: this._more,
376
+ _input: this._input,
377
+ yy: this.yy,
378
+ conditionStack: this.conditionStack.slice(0),
379
+ done: this.done
380
+ };
381
+ if (this.options.ranges) {
382
+ backup.yylloc.range = this.yylloc.range.slice(0);
383
+ }
384
+ }
385
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
386
+ if (lines) {
387
+ this.yylineno += lines.length;
388
+ }
389
+ this.yylloc = {
390
+ first_line: this.yylloc.last_line,
391
+ last_line: this.yylineno + 1,
392
+ first_column: this.yylloc.last_column,
393
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
394
+ };
395
+ this.yytext += match[0];
396
+ this.match += match[0];
397
+ this.matches = match;
398
+ this.yyleng = this.yytext.length;
399
+ if (this.options.ranges) {
400
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
401
+ }
402
+ this._more = false;
403
+ this._backtrack = false;
404
+ this._input = this._input.slice(match[0].length);
405
+ this.matched += match[0];
406
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
407
+ if (this.done && this._input) {
408
+ this.done = false;
409
+ }
410
+ if (token) {
411
+ return token;
412
+ } else if (this._backtrack) {
413
+ for (var k in backup) {
414
+ this[k] = backup[k];
415
+ }
416
+ return false;
417
+ }
418
+ return false;
419
+ }, "test_match"),
420
+ // return next match in input
421
+ next: /* @__PURE__ */ __name(function() {
422
+ if (this.done) {
423
+ return this.EOF;
424
+ }
425
+ if (!this._input) {
426
+ this.done = true;
427
+ }
428
+ var token, match, tempMatch, index;
429
+ if (!this._more) {
430
+ this.yytext = "";
431
+ this.match = "";
432
+ }
433
+ var rules = this._currentRules();
434
+ for (var i = 0; i < rules.length; i++) {
435
+ tempMatch = this._input.match(this.rules[rules[i]]);
436
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
437
+ match = tempMatch;
438
+ index = i;
439
+ if (this.options.backtrack_lexer) {
440
+ token = this.test_match(tempMatch, rules[i]);
441
+ if (token !== false) {
442
+ return token;
443
+ } else if (this._backtrack) {
444
+ match = false;
445
+ continue;
446
+ } else {
447
+ return false;
448
+ }
449
+ } else if (!this.options.flex) {
450
+ break;
451
+ }
452
+ }
453
+ }
454
+ if (match) {
455
+ token = this.test_match(match, rules[index]);
456
+ if (token !== false) {
457
+ return token;
458
+ }
459
+ return false;
460
+ }
461
+ if (this._input === "") {
462
+ return this.EOF;
463
+ } else {
464
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
465
+ text: "",
466
+ token: null,
467
+ line: this.yylineno
468
+ });
469
+ }
470
+ }, "next"),
471
+ // return next match that has a token
472
+ lex: /* @__PURE__ */ __name(function lex() {
473
+ var r = this.next();
474
+ if (r) {
475
+ return r;
476
+ } else {
477
+ return this.lex();
478
+ }
479
+ }, "lex"),
480
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
481
+ begin: /* @__PURE__ */ __name(function begin(condition) {
482
+ this.conditionStack.push(condition);
483
+ }, "begin"),
484
+ // pop the previously active lexer condition state off the condition stack
485
+ popState: /* @__PURE__ */ __name(function popState() {
486
+ var n = this.conditionStack.length - 1;
487
+ if (n > 0) {
488
+ return this.conditionStack.pop();
489
+ } else {
490
+ return this.conditionStack[0];
491
+ }
492
+ }, "popState"),
493
+ // produce the lexer rule set which is active for the currently active lexer condition state
494
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
495
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
496
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
497
+ } else {
498
+ return this.conditions["INITIAL"].rules;
499
+ }
500
+ }, "_currentRules"),
501
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
502
+ topState: /* @__PURE__ */ __name(function topState(n) {
503
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
504
+ if (n >= 0) {
505
+ return this.conditionStack[n];
506
+ } else {
507
+ return "INITIAL";
508
+ }
509
+ }, "topState"),
510
+ // alias for begin(condition)
511
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
512
+ this.begin(condition);
513
+ }, "pushState"),
514
+ // return the number of states currently on the stack
515
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
516
+ return this.conditionStack.length;
517
+ }, "stateStackSize"),
518
+ options: { "case-insensitive": true },
519
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
520
+ switch ($avoiding_name_collisions) {
521
+ case 0:
522
+ this.pushState("shapeData");
523
+ yy_.yytext = "";
524
+ return 24;
525
+ case 1:
526
+ this.pushState("shapeDataStr");
527
+ return 24;
528
+ case 2:
529
+ this.popState();
530
+ return 24;
531
+ case 3:
532
+ const re = /\n\s*/g;
533
+ yy_.yytext = yy_.yytext.replace(re, "<br/>");
534
+ return 24;
535
+ case 4:
536
+ return 24;
537
+ case 5:
538
+ this.popState();
539
+ break;
540
+ case 6:
541
+ yy.getLogger().trace("Found comment", yy_.yytext);
542
+ return 6;
543
+ case 7:
544
+ return 8;
545
+ case 8:
546
+ this.begin("CLASS");
547
+ break;
548
+ case 9:
549
+ this.popState();
550
+ return 17;
551
+ case 10:
552
+ this.popState();
553
+ break;
554
+ case 11:
555
+ yy.getLogger().trace("Begin icon");
556
+ this.begin("ICON");
557
+ break;
558
+ case 12:
559
+ yy.getLogger().trace("SPACELINE");
560
+ return 6;
561
+ case 13:
562
+ return 7;
563
+ case 14:
564
+ return 16;
565
+ case 15:
566
+ yy.getLogger().trace("end icon");
567
+ this.popState();
568
+ break;
569
+ case 16:
570
+ yy.getLogger().trace("Exploding node");
571
+ this.begin("NODE");
572
+ return 20;
573
+ case 17:
574
+ yy.getLogger().trace("Cloud");
575
+ this.begin("NODE");
576
+ return 20;
577
+ case 18:
578
+ yy.getLogger().trace("Explosion Bang");
579
+ this.begin("NODE");
580
+ return 20;
581
+ case 19:
582
+ yy.getLogger().trace("Cloud Bang");
583
+ this.begin("NODE");
584
+ return 20;
585
+ case 20:
586
+ this.begin("NODE");
587
+ return 20;
588
+ case 21:
589
+ this.begin("NODE");
590
+ return 20;
591
+ case 22:
592
+ this.begin("NODE");
593
+ return 20;
594
+ case 23:
595
+ this.begin("NODE");
596
+ return 20;
597
+ case 24:
598
+ return 13;
599
+ case 25:
600
+ return 23;
601
+ case 26:
602
+ return 11;
603
+ case 27:
604
+ this.begin("NSTR2");
605
+ break;
606
+ case 28:
607
+ return "NODE_DESCR";
608
+ case 29:
609
+ this.popState();
610
+ break;
611
+ case 30:
612
+ yy.getLogger().trace("Starting NSTR");
613
+ this.begin("NSTR");
614
+ break;
615
+ case 31:
616
+ yy.getLogger().trace("description:", yy_.yytext);
617
+ return "NODE_DESCR";
618
+ case 32:
619
+ this.popState();
620
+ break;
621
+ case 33:
622
+ this.popState();
623
+ yy.getLogger().trace("node end ))");
624
+ return "NODE_DEND";
625
+ case 34:
626
+ this.popState();
627
+ yy.getLogger().trace("node end )");
628
+ return "NODE_DEND";
629
+ case 35:
630
+ this.popState();
631
+ yy.getLogger().trace("node end ...", yy_.yytext);
632
+ return "NODE_DEND";
633
+ case 36:
634
+ this.popState();
635
+ yy.getLogger().trace("node end ((");
636
+ return "NODE_DEND";
637
+ case 37:
638
+ this.popState();
639
+ yy.getLogger().trace("node end (-");
640
+ return "NODE_DEND";
641
+ case 38:
642
+ this.popState();
643
+ yy.getLogger().trace("node end (-");
644
+ return "NODE_DEND";
645
+ case 39:
646
+ this.popState();
647
+ yy.getLogger().trace("node end ((");
648
+ return "NODE_DEND";
649
+ case 40:
650
+ this.popState();
651
+ yy.getLogger().trace("node end ((");
652
+ return "NODE_DEND";
653
+ case 41:
654
+ yy.getLogger().trace("Long description:", yy_.yytext);
655
+ return 21;
656
+ case 42:
657
+ yy.getLogger().trace("Long description:", yy_.yytext);
658
+ return 21;
659
+ }
660
+ }, "anonymous"),
661
+ rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}@]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
662
+ conditions: { "shapeDataEndBracket": { "rules": [], "inclusive": false }, "shapeDataStr": { "rules": [2, 3], "inclusive": false }, "shapeData": { "rules": [1, 4, 5], "inclusive": false }, "CLASS": { "rules": [9, 10], "inclusive": false }, "ICON": { "rules": [14, 15], "inclusive": false }, "NSTR2": { "rules": [28, 29], "inclusive": false }, "NSTR": { "rules": [31, 32], "inclusive": false }, "NODE": { "rules": [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], "inclusive": false }, "INITIAL": { "rules": [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], "inclusive": true } }
663
+ };
664
+ return lexer2;
665
+ }();
666
+ parser2.lexer = lexer;
667
+ function Parser() {
668
+ this.yy = {};
669
+ }
670
+ __name(Parser, "Parser");
671
+ Parser.prototype = parser2;
672
+ parser2.Parser = Parser;
673
+ return new Parser();
674
+ }();
675
+ parser.parser = parser;
676
+ var kanban_default = parser;
677
+ var nodes = [];
678
+ var sections = [];
679
+ var cnt = 0;
680
+ var elements = {};
681
+ var clear = /* @__PURE__ */ __name(() => {
682
+ nodes = [];
683
+ sections = [];
684
+ cnt = 0;
685
+ elements = {};
686
+ }, "clear");
687
+ var getSection = /* @__PURE__ */ __name((level) => {
688
+ if (nodes.length === 0) {
689
+ return null;
690
+ }
691
+ const sectionLevel = nodes[0].level;
692
+ let lastSection = null;
693
+ for (let i = nodes.length - 1; i >= 0; i--) {
694
+ if (nodes[i].level === sectionLevel && !lastSection) {
695
+ lastSection = nodes[i];
696
+ }
697
+ if (nodes[i].level < sectionLevel) {
698
+ throw new Error('Items without section detected, found section ("' + nodes[i].label + '")');
699
+ }
700
+ }
701
+ if (level === (lastSection == null ? void 0 : lastSection.level)) {
702
+ return null;
703
+ }
704
+ return lastSection;
705
+ }, "getSection");
706
+ var getSections = /* @__PURE__ */ __name(function() {
707
+ return sections;
708
+ }, "getSections");
709
+ var getData = /* @__PURE__ */ __name(function() {
710
+ const edges = [];
711
+ const _nodes = [];
712
+ const sections2 = getSections();
713
+ const conf = getConfig2();
714
+ for (const section of sections2) {
715
+ const node = {
716
+ id: section.id,
717
+ label: sanitizeText(section.label ?? "", conf),
718
+ isGroup: true,
719
+ ticket: section.ticket,
720
+ shape: "kanbanSection",
721
+ level: section.level,
722
+ look: conf.look
723
+ };
724
+ _nodes.push(node);
725
+ const children = nodes.filter((n) => n.parentId === section.id);
726
+ for (const item of children) {
727
+ const childNode = {
728
+ id: item.id,
729
+ parentId: section.id,
730
+ label: sanitizeText(item.label ?? "", conf),
731
+ isGroup: false,
732
+ ticket: item == null ? void 0 : item.ticket,
733
+ priority: item == null ? void 0 : item.priority,
734
+ assigned: item == null ? void 0 : item.assigned,
735
+ icon: item == null ? void 0 : item.icon,
736
+ shape: "kanbanItem",
737
+ level: item.level,
738
+ rx: 5,
739
+ ry: 5,
740
+ cssStyles: ["text-align: left"]
741
+ };
742
+ _nodes.push(childNode);
743
+ }
744
+ }
745
+ return { nodes: _nodes, edges, other: {}, config: getConfig2() };
746
+ }, "getData");
747
+ var addNode = /* @__PURE__ */ __name((level, id, descr, type, shapeData) => {
748
+ var _a, _b;
749
+ const conf = getConfig2();
750
+ let padding = ((_a = conf.mindmap) == null ? void 0 : _a.padding) ?? defaultConfig_default.mindmap.padding;
751
+ switch (type) {
752
+ case nodeType.ROUNDED_RECT:
753
+ case nodeType.RECT:
754
+ case nodeType.HEXAGON:
755
+ padding *= 2;
756
+ }
757
+ const node = {
758
+ id: sanitizeText(id, conf) || "kbn" + cnt++,
759
+ level,
760
+ label: sanitizeText(descr, conf),
761
+ width: ((_b = conf.mindmap) == null ? void 0 : _b.maxNodeWidth) ?? defaultConfig_default.mindmap.maxNodeWidth,
762
+ padding,
763
+ isGroup: false
764
+ };
765
+ if (shapeData !== void 0) {
766
+ let yamlData;
767
+ if (!shapeData.includes("\n")) {
768
+ yamlData = "{\n" + shapeData + "\n}";
769
+ } else {
770
+ yamlData = shapeData + "\n";
771
+ }
772
+ const doc = load(yamlData, { schema: JSON_SCHEMA });
773
+ if (doc.shape && (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes("_"))) {
774
+ throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
775
+ }
776
+ if ((doc == null ? void 0 : doc.shape) && doc.shape === "kanbanItem") {
777
+ node.shape = doc == null ? void 0 : doc.shape;
778
+ }
779
+ if (doc == null ? void 0 : doc.label) {
780
+ node.label = doc == null ? void 0 : doc.label;
781
+ }
782
+ if (doc == null ? void 0 : doc.icon) {
783
+ node.icon = doc == null ? void 0 : doc.icon.toString();
784
+ }
785
+ if (doc == null ? void 0 : doc.assigned) {
786
+ node.assigned = doc == null ? void 0 : doc.assigned.toString();
787
+ }
788
+ if (doc == null ? void 0 : doc.ticket) {
789
+ node.ticket = doc == null ? void 0 : doc.ticket.toString();
790
+ }
791
+ if (doc == null ? void 0 : doc.priority) {
792
+ node.priority = doc == null ? void 0 : doc.priority;
793
+ }
794
+ }
795
+ const section = getSection(level);
796
+ if (section) {
797
+ node.parentId = section.id || "kbn" + cnt++;
798
+ } else {
799
+ sections.push(node);
800
+ }
801
+ nodes.push(node);
802
+ }, "addNode");
803
+ var nodeType = {
804
+ DEFAULT: 0,
805
+ NO_BORDER: 0,
806
+ ROUNDED_RECT: 1,
807
+ RECT: 2,
808
+ CIRCLE: 3,
809
+ CLOUD: 4,
810
+ BANG: 5,
811
+ HEXAGON: 6
812
+ };
813
+ var getType = /* @__PURE__ */ __name((startStr, endStr) => {
814
+ log.debug("In get type", startStr, endStr);
815
+ switch (startStr) {
816
+ case "[":
817
+ return nodeType.RECT;
818
+ case "(":
819
+ return endStr === ")" ? nodeType.ROUNDED_RECT : nodeType.CLOUD;
820
+ case "((":
821
+ return nodeType.CIRCLE;
822
+ case ")":
823
+ return nodeType.CLOUD;
824
+ case "))":
825
+ return nodeType.BANG;
826
+ case "{{":
827
+ return nodeType.HEXAGON;
828
+ default:
829
+ return nodeType.DEFAULT;
830
+ }
831
+ }, "getType");
832
+ var setElementForId = /* @__PURE__ */ __name((id, element) => {
833
+ elements[id] = element;
834
+ }, "setElementForId");
835
+ var decorateNode = /* @__PURE__ */ __name((decoration) => {
836
+ if (!decoration) {
837
+ return;
838
+ }
839
+ const config = getConfig2();
840
+ const node = nodes[nodes.length - 1];
841
+ if (decoration.icon) {
842
+ node.icon = sanitizeText(decoration.icon, config);
843
+ }
844
+ if (decoration.class) {
845
+ node.cssClasses = sanitizeText(decoration.class, config);
846
+ }
847
+ }, "decorateNode");
848
+ var type2Str = /* @__PURE__ */ __name((type) => {
849
+ switch (type) {
850
+ case nodeType.DEFAULT:
851
+ return "no-border";
852
+ case nodeType.RECT:
853
+ return "rect";
854
+ case nodeType.ROUNDED_RECT:
855
+ return "rounded-rect";
856
+ case nodeType.CIRCLE:
857
+ return "circle";
858
+ case nodeType.CLOUD:
859
+ return "cloud";
860
+ case nodeType.BANG:
861
+ return "bang";
862
+ case nodeType.HEXAGON:
863
+ return "hexgon";
864
+ // cspell: disable-line
865
+ default:
866
+ return "no-border";
867
+ }
868
+ }, "type2Str");
869
+ var getLogger = /* @__PURE__ */ __name(() => log, "getLogger");
870
+ var getElementById = /* @__PURE__ */ __name((id) => elements[id], "getElementById");
871
+ var db = {
872
+ clear,
873
+ addNode,
874
+ getSections,
875
+ getData,
876
+ nodeType,
877
+ getType,
878
+ setElementForId,
879
+ decorateNode,
880
+ type2Str,
881
+ getLogger,
882
+ getElementById
883
+ };
884
+ var kanbanDb_default = db;
885
+ var draw = /* @__PURE__ */ __name(async (text, id, _version, diagObj) => {
886
+ var _a, _b, _c, _d, _e;
887
+ log.debug("Rendering kanban diagram\n" + text);
888
+ const db2 = diagObj.db;
889
+ const data4Layout = db2.getData();
890
+ const conf = getConfig2();
891
+ conf.htmlLabels = false;
892
+ const svg = selectSvgElement(id);
893
+ const sectionsElem = svg.append("g");
894
+ sectionsElem.attr("class", "sections");
895
+ const nodesElem = svg.append("g");
896
+ nodesElem.attr("class", "items");
897
+ const sections2 = data4Layout.nodes.filter(
898
+ // TODO: TypeScript 5.5 will infer this predicate automatically
899
+ (node) => node.isGroup
900
+ );
901
+ let cnt2 = 0;
902
+ const padding = 10;
903
+ const sectionObjects = [];
904
+ let maxLabelHeight = 25;
905
+ for (const section of sections2) {
906
+ const WIDTH = ((_a = conf == null ? void 0 : conf.kanban) == null ? void 0 : _a.sectionWidth) || 200;
907
+ cnt2 = cnt2 + 1;
908
+ section.x = WIDTH * cnt2 + (cnt2 - 1) * padding / 2;
909
+ section.width = WIDTH;
910
+ section.y = 0;
911
+ section.height = WIDTH * 3;
912
+ section.rx = 5;
913
+ section.ry = 5;
914
+ section.cssClasses = section.cssClasses + " section-" + cnt2;
915
+ const sectionObj = await insertCluster(sectionsElem, section);
916
+ maxLabelHeight = Math.max(maxLabelHeight, (_b = sectionObj == null ? void 0 : sectionObj.labelBBox) == null ? void 0 : _b.height);
917
+ sectionObjects.push(sectionObj);
918
+ }
919
+ let i = 0;
920
+ for (const section of sections2) {
921
+ const sectionObj = sectionObjects[i];
922
+ i = i + 1;
923
+ const WIDTH = ((_c = conf == null ? void 0 : conf.kanban) == null ? void 0 : _c.sectionWidth) || 200;
924
+ const top = -WIDTH * 3 / 2 + maxLabelHeight;
925
+ let y = top;
926
+ const sectionItems = data4Layout.nodes.filter((node) => node.parentId === section.id);
927
+ for (const item of sectionItems) {
928
+ if (item.isGroup) {
929
+ throw new Error("Groups within groups are not allowed in Kanban diagrams");
930
+ }
931
+ item.x = section.x;
932
+ item.width = WIDTH - 1.5 * padding;
933
+ const nodeEl = await insertNode(nodesElem, item, { config: conf });
934
+ const bbox = nodeEl.node().getBBox();
935
+ item.y = y + bbox.height / 2;
936
+ await positionNode(item);
937
+ y = item.y + bbox.height / 2 + padding / 2;
938
+ }
939
+ const rect = sectionObj.cluster.select("rect");
940
+ const height = Math.max(y - top + 3 * padding, 50) + (maxLabelHeight - 25);
941
+ rect.attr("height", height);
942
+ }
943
+ setupGraphViewbox(
944
+ void 0,
945
+ svg,
946
+ ((_d = conf.mindmap) == null ? void 0 : _d.padding) ?? defaultConfig_default.kanban.padding,
947
+ ((_e = conf.mindmap) == null ? void 0 : _e.useMaxWidth) ?? defaultConfig_default.kanban.useMaxWidth
948
+ );
949
+ }, "draw");
950
+ var kanbanRenderer_default = {
951
+ draw
952
+ };
953
+ var genSections = /* @__PURE__ */ __name((options) => {
954
+ let sections2 = "";
955
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
956
+ options["lineColor" + i] = options["lineColor" + i] || options["cScaleInv" + i];
957
+ if (isDark(options["lineColor" + i])) {
958
+ options["lineColor" + i] = lighten(options["lineColor" + i], 20);
959
+ } else {
960
+ options["lineColor" + i] = darken(options["lineColor" + i], 20);
961
+ }
962
+ }
963
+ const adjuster = /* @__PURE__ */ __name((color, level) => options.darkMode ? darken(color, level) : lighten(color, level), "adjuster");
964
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
965
+ const sw = "" + (17 - 3 * i);
966
+ sections2 += `
967
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
968
+ fill: ${adjuster(options["cScale" + i], 10)};
969
+ stroke: ${adjuster(options["cScale" + i], 10)};
970
+
971
+ }
972
+ .section-${i - 1} text {
973
+ fill: ${options["cScaleLabel" + i]};
974
+ }
975
+ .node-icon-${i - 1} {
976
+ font-size: 40px;
977
+ color: ${options["cScaleLabel" + i]};
978
+ }
979
+ .section-edge-${i - 1}{
980
+ stroke: ${options["cScale" + i]};
981
+ }
982
+ .edge-depth-${i - 1}{
983
+ stroke-width: ${sw};
984
+ }
985
+ .section-${i - 1} line {
986
+ stroke: ${options["cScaleInv" + i]} ;
987
+ stroke-width: 3;
988
+ }
989
+
990
+ .disabled, .disabled circle, .disabled text {
991
+ fill: lightgray;
992
+ }
993
+ .disabled text {
994
+ fill: #efefef;
995
+ }
996
+
997
+ .node rect,
998
+ .node circle,
999
+ .node ellipse,
1000
+ .node polygon,
1001
+ .node path {
1002
+ fill: ${options.background};
1003
+ stroke: ${options.nodeBorder};
1004
+ stroke-width: 1px;
1005
+ }
1006
+
1007
+ .kanban-ticket-link {
1008
+ fill: ${options.background};
1009
+ stroke: ${options.nodeBorder};
1010
+ text-decoration: underline;
1011
+ }
1012
+ `;
1013
+ }
1014
+ return sections2;
1015
+ }, "genSections");
1016
+ var getStyles = /* @__PURE__ */ __name((options) => `
1017
+ .edge {
1018
+ stroke-width: 3;
1019
+ }
1020
+ ${genSections(options)}
1021
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
1022
+ fill: ${options.git0};
1023
+ }
1024
+ .section-root text {
1025
+ fill: ${options.gitBranchLabel0};
1026
+ }
1027
+ .icon-container {
1028
+ height:100%;
1029
+ display: flex;
1030
+ justify-content: center;
1031
+ align-items: center;
1032
+ }
1033
+ .edge {
1034
+ fill: none;
1035
+ }
1036
+ .cluster-label, .label {
1037
+ color: ${options.textColor};
1038
+ fill: ${options.textColor};
1039
+ }
1040
+ .kanban-label {
1041
+ dy: 1em;
1042
+ alignment-baseline: middle;
1043
+ text-anchor: middle;
1044
+ dominant-baseline: middle;
1045
+ text-align: center;
1046
+ }
1047
+ ${getIconStyles()}
1048
+ `, "getStyles");
1049
+ var styles_default = getStyles;
1050
+ var diagram = {
1051
+ db: kanbanDb_default,
1052
+ renderer: kanbanRenderer_default,
1053
+ parser: kanban_default,
1054
+ styles: styles_default
1055
+ };
1056
+
1057
+ export { diagram };