@automattic/agenttic-ui 0.1.11 → 0.1.12

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 (343) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +2037 -41
  5. package/package.json +2 -5
  6. package/dist/_basePickBy-Co6w2C-t.js +0 -151
  7. package/dist/_baseUniq-BbhifY2s.js +0 -614
  8. package/dist/abap-Y8Dl9g_6.js +0 -6
  9. package/dist/actionscript-3-DZzbMeqX.js +0 -6
  10. package/dist/ada-vP6ak0IW.js +0 -6
  11. package/dist/andromeeda-uXNdzNpk.js +0 -4
  12. package/dist/angular-html-BmadGEgW.js +0 -32
  13. package/dist/angular-ts-D-QQnnGT.js +0 -21
  14. package/dist/apache-BUjz-sD2.js +0 -6
  15. package/dist/apex-D_wPycVx.js +0 -6
  16. package/dist/apl-sitt7C8I.js +0 -16
  17. package/dist/applescript-BPx7YFFu.js +0 -6
  18. package/dist/ara-Z2fSOxSw.js +0 -6
  19. package/dist/arc-DMQNivgh.js +0 -83
  20. package/dist/architecture-O4VJ6CD3-CrsUkgBe.js +0 -5
  21. package/dist/architectureDiagram-KFL7JDKH-BCeU_Tkj.js +0 -4665
  22. package/dist/asciidoc-B-pCoB3G.js +0 -6
  23. package/dist/asm-BTWLY5ym.js +0 -6
  24. package/dist/astro-DHnp0xIo.js +0 -18
  25. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  26. package/dist/awk-Fb0P9dkn.js +0 -6
  27. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  28. package/dist/ballerina-oZK-YekG.js +0 -6
  29. package/dist/bat-0FvbqU9S.js +0 -6
  30. package/dist/beancount-DEfTbbFX.js +0 -6
  31. package/dist/berry-PwsHPR_K.js +0 -6
  32. package/dist/bibtex-EULQRLY5.js +0 -6
  33. package/dist/bicep-DFU2oTl7.js +0 -6
  34. package/dist/blade-OPzGcV14.js +0 -20
  35. package/dist/blockDiagram-ZYB65J3Q-eNfG2owp.js +0 -2265
  36. package/dist/bsl-NkNNwerW.js +0 -8
  37. package/dist/c-eeMepfLm.js +0 -6
  38. package/dist/c4Diagram-AAMF2YG6-CEVcZg_d.js +0 -1581
  39. package/dist/cadence-DMRWHJp4.js +0 -6
  40. package/dist/cairo-DM6WF2e3.js +0 -8
  41. package/dist/catppuccin-frappe-DlGpEc12.js +0 -4
  42. package/dist/catppuccin-latte-DDI4I_Rd.js +0 -4
  43. package/dist/catppuccin-macchiato-BBzuZG5U.js +0 -4
  44. package/dist/catppuccin-mocha-CwrFPXRy.js +0 -4
  45. package/dist/channel-DwkBtswx.js +0 -5
  46. package/dist/chunk-ANTBXLJU-DjsG4Faa.js +0 -9
  47. package/dist/chunk-FHKO5MBM-DvgpKHah.js +0 -15
  48. package/dist/chunk-GLLZNHP4-BS9MWsNn.js +0 -19
  49. package/dist/chunk-JBRWN2VN-BB1oFn95.js +0 -1376
  50. package/dist/chunk-LXBSTHXV-DoWWvL-R.js +0 -1382
  51. package/dist/chunk-NRVI72HA-CN8BG5Yn.js +0 -20
  52. package/dist/chunk-OMD6QJNC-D7UKmZm8.js +0 -64
  53. package/dist/chunk-WVR4S24B-D3bw0yi4.js +0 -8
  54. package/dist/clarity-BseSxcHx.js +0 -6
  55. package/dist/classDiagram-3BZAVTQC-DhpbenB7.js +0 -16
  56. package/dist/classDiagram-v2-QTMF73CY-DhpbenB7.js +0 -16
  57. package/dist/clojure-CXJfHrL3.js +0 -6
  58. package/dist/clone-DmrWxu_i.js +0 -8
  59. package/dist/cmake-BJz8BOTU.js +0 -6
  60. package/dist/cobol-4A8XjHhj.js +0 -10
  61. package/dist/codeowners-Bt9yU6NX.js +0 -6
  62. package/dist/codeql-DHkodjjI.js +0 -6
  63. package/dist/coffee-Dl27lzbd.js +0 -8
  64. package/dist/common-lisp-EVqT9Zhp.js +0 -6
  65. package/dist/coq-B0L9upzn.js +0 -6
  66. package/dist/cpp-Cj177cuW.js +0 -18
  67. package/dist/crystal-ymVvJzbZ.js +0 -18
  68. package/dist/csharp-DmxfTLWR.js +0 -6
  69. package/dist/css-CECN5uSL.js +0 -6
  70. package/dist/csv-CmYOceLb.js +0 -6
  71. package/dist/cue-ZzumE7IT.js +0 -6
  72. package/dist/cypher-jpdmjtA6.js +0 -6
  73. package/dist/cytoscape.esm-ZmItrg9y.js +0 -18731
  74. package/dist/d-CBagWSwH.js +0 -6
  75. package/dist/dagre-2BBEFEWP-DWbEdWsD.js +0 -447
  76. package/dist/dark-plus-pUHDTVV0.js +0 -4
  77. package/dist/dart-6ObCrKr9.js +0 -6
  78. package/dist/dax-CcDT-8dH.js +0 -6
  79. package/dist/defaultLocale-D7EN2tov.js +0 -171
  80. package/dist/desktop-B93p9R9O.js +0 -6
  81. package/dist/diagram-4IRLE6MV-Q8q6qm5n.js +0 -534
  82. package/dist/diagram-GUPCWM2R-B8VhFieT.js +0 -143
  83. package/dist/diagram-RP2FKANI-CYWUKKLB.js +0 -221
  84. package/dist/diff-BxzP2J8R.js +0 -6
  85. package/dist/docker-CsHqm9tx.js +0 -6
  86. package/dist/dotenv-BMjVjUL1.js +0 -6
  87. package/dist/dracula-BtZx2Kac.js +0 -4
  88. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  89. package/dist/dream-maker-PAx17jaB.js +0 -6
  90. package/dist/edge-_LvgTcmu.js +0 -12
  91. package/dist/elixir-BTCUAmQk.js +0 -8
  92. package/dist/elm-BtNbw_Cd.js +0 -8
  93. package/dist/emacs-lisp-Cfxdx5D-.js +0 -6
  94. package/dist/erDiagram-HZWUO2LU-CC0RhTpv.js +0 -842
  95. package/dist/erb-D0PIpZCP.js +0 -10
  96. package/dist/erlang-xM7DPKQj.js +0 -8
  97. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  98. package/dist/everforest-light-BbXl82Em.js +0 -4
  99. package/dist/fennel-N4WcXuKx.js +0 -6
  100. package/dist/fish-B6QqlqeT.js +0 -6
  101. package/dist/flowDiagram-THRYKUMA-B00E_hY6.js +0 -1627
  102. package/dist/fluent-BMXUxfv1.js +0 -6
  103. package/dist/fortran-fixed-form-DUsA-VGo.js +0 -8
  104. package/dist/fortran-free-form-DPIT_jbP.js +0 -6
  105. package/dist/fsharp-BTdsmEUN.js +0 -8
  106. package/dist/ganttDiagram-WV7ZQ7D5-Cv2vsghm.js +0 -2499
  107. package/dist/gdresource-DLfsylRW.js +0 -10
  108. package/dist/gdscript-9lm8qppb.js +0 -6
  109. package/dist/gdshader-Bk8fF6yr.js +0 -6
  110. package/dist/genie-DzUvd7U9.js +0 -6
  111. package/dist/gherkin-DHRaV0YP.js +0 -6
  112. package/dist/git-commit-Bd32YZ0K.js +0 -8
  113. package/dist/git-rebase-ZWUFO_T4.js +0 -8
  114. package/dist/gitGraph-ZV4HHKMB-Bj31zYat.js +0 -5
  115. package/dist/gitGraphDiagram-OJR772UL-BGrYC5q0.js +0 -712
  116. package/dist/github-dark-DenFmJkN.js +0 -4
  117. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  118. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  119. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  120. package/dist/github-light-JYsPkUQd.js +0 -4
  121. package/dist/github-light-default-D99KPAby.js +0 -4
  122. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  123. package/dist/gleam-Bv284lvN.js +0 -6
  124. package/dist/glimmer-js-CkxRszZZ.js +0 -14
  125. package/dist/glimmer-ts-Bi6BYQCn.js +0 -14
  126. package/dist/glsl-CkUcVZNK.js +0 -8
  127. package/dist/gnuplot-yPG9-sE_.js +0 -6
  128. package/dist/go-ChxJuLYK.js +0 -6
  129. package/dist/graph-DaSuptw6.js +0 -247
  130. package/dist/graphql-BLaPX4fU.js +0 -14
  131. package/dist/groovy-CJQTphOW.js +0 -6
  132. package/dist/gruvbox-dark-hard-C2ND4cMr.js +0 -4
  133. package/dist/gruvbox-dark-medium-C8k4c8au.js +0 -4
  134. package/dist/gruvbox-dark-soft-xx9Q6FaG.js +0 -4
  135. package/dist/gruvbox-light-hard-BpUXv5in.js +0 -4
  136. package/dist/gruvbox-light-medium-D3XFCoU1.js +0 -4
  137. package/dist/gruvbox-light-soft-u7hpfz6Z.js +0 -4
  138. package/dist/hack-Bx1jMtBC.js +0 -10
  139. package/dist/haml-6FagfhCM.js +0 -10
  140. package/dist/handlebars-Bd5Y4M6I.js +0 -14
  141. package/dist/haskell-WeIwNIP6.js +0 -6
  142. package/dist/haxe-TztHsm5T.js +0 -6
  143. package/dist/hcl-D438OF-I.js +0 -6
  144. package/dist/hjson-DYBUbqOl.js +0 -6
  145. package/dist/hlsl-Bk8TCZNL.js +0 -6
  146. package/dist/houston-BDYrDoDW.js +0 -4
  147. package/dist/html-7XVNRwN7.js +0 -10
  148. package/dist/html-derivative-BNxZ5Yf6.js +0 -8
  149. package/dist/http-WC357zBG.js +0 -14
  150. package/dist/hxml-GbqSQCLa.js +0 -8
  151. package/dist/hy-Brt5EZ7-.js +0 -6
  152. package/dist/imba-CimUv-Uh.js +0 -6
  153. package/dist/index-DR9mkSeU.js +0 -29474
  154. package/dist/info-63CPKGFF-DnZM8nKQ.js +0 -5
  155. package/dist/infoDiagram-DDUCL6P7-ClQolrbt.js +0 -24
  156. package/dist/ini-BZIuRIvJ.js +0 -6
  157. package/dist/init-DjUOC4st.js +0 -16
  158. package/dist/java-DY6VlHhP.js +0 -6
  159. package/dist/javascript-Dp1Jmi5H.js +0 -6
  160. package/dist/jinja-WEhOU5ES.js +0 -11
  161. package/dist/jison-c2JI40PB.js +0 -8
  162. package/dist/journeyDiagram-FFXJYRFH-P_IVMTj2.js +0 -836
  163. package/dist/json-DxJze_jm.js +0 -6
  164. package/dist/json5-BT4Fjg39.js +0 -6
  165. package/dist/jsonc-CHjZD8gR.js +0 -6
  166. package/dist/jsonl-BGuvDmy9.js +0 -6
  167. package/dist/jsonnet-Bx2cfsXg.js +0 -6
  168. package/dist/jssm-BcADi6EI.js +0 -6
  169. package/dist/jsx-BtKADgXT.js +0 -6
  170. package/dist/julia-DcoDQokW.js +0 -16
  171. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  172. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  173. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  174. package/dist/kanban-definition-KOZQBZVT-Uk8JKe_b.js +0 -720
  175. package/dist/kotlin-ByBMgTeR.js +0 -6
  176. package/dist/kusto-VWFLl2T0.js +0 -6
  177. package/dist/laserwave-6a00oqik.js +0 -4
  178. package/dist/latex-MZCpjnva.js +0 -8
  179. package/dist/layout-BHKAMNdk.js +0 -1324
  180. package/dist/lean-DXqEE_d1.js +0 -6
  181. package/dist/less-B1GLI2Di.js +0 -6
  182. package/dist/light-plus-CZuVqSLX.js +0 -4
  183. package/dist/linear-UAzexi4b.js +0 -255
  184. package/dist/liquid-3HHuHOZ2.js +0 -14
  185. package/dist/llvm-6RQLId6G.js +0 -6
  186. package/dist/log-Al8wyEFV.js +0 -6
  187. package/dist/logo-DBa4JDzV.js +0 -6
  188. package/dist/lua-kX5WP_P5.js +0 -8
  189. package/dist/luau-BeoZWRh5.js +0 -6
  190. package/dist/make-CsMclxtr.js +0 -6
  191. package/dist/markdown-CiI2E98D.js +0 -6
  192. package/dist/marko-L-KhXzqZ.js +0 -14
  193. package/dist/material-theme-D6KBX41T.js +0 -4
  194. package/dist/material-theme-darker-CkRroheE.js +0 -4
  195. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  196. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  197. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  198. package/dist/matlab-BOAaUVP0.js +0 -6
  199. package/dist/mdc-DPBWa7dN.js +0 -12
  200. package/dist/mdx-BOhZZUJ8.js +0 -6
  201. package/dist/mermaid-B0ixDHKN.js +0 -6
  202. package/dist/mermaid-parser.core-FuzJzmL7.js +0 -12921
  203. package/dist/mermaid.core-D7qBd055.js +0 -14002
  204. package/dist/min-dark-C7ak0t6c.js +0 -4
  205. package/dist/min-light-CKFxVcPp.js +0 -4
  206. package/dist/mindmap-definition-LNHGMQRG-D1C2-kkn.js +0 -3229
  207. package/dist/mipsasm-CTx18fBl.js +0 -6
  208. package/dist/mojo-BD611d7o.js +0 -6
  209. package/dist/monokai-C1KBYcO0.js +0 -4
  210. package/dist/move-653S600C.js +0 -6
  211. package/dist/narrat-DmhDCBs-.js +0 -6
  212. package/dist/nextflow-D1Zd9cNl.js +0 -6
  213. package/dist/nginx-5vhPAEw3.js +0 -8
  214. package/dist/night-owl-Bm2rzalh.js +0 -4
  215. package/dist/nim-Fi8wNe6i.js +0 -20
  216. package/dist/nix-ceY58Dty.js +0 -6
  217. package/dist/nord-CC5OiUXg.js +0 -4
  218. package/dist/nushell-Be2rueDv.js +0 -6
  219. package/dist/objective-c-Itk8tzmv.js +0 -6
  220. package/dist/objective-cpp-DGt5UKRO.js +0 -6
  221. package/dist/ocaml-eSVK32Eg.js +0 -6
  222. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  223. package/dist/one-light-D9sNaUtq.js +0 -4
  224. package/dist/ordinal-DfAQgscy.js +0 -61
  225. package/dist/packet-HUATNLJX-B5EJOyma.js +0 -5
  226. package/dist/pascal-xy8pJNns.js +0 -6
  227. package/dist/perl-BoEn6HmT.js +0 -16
  228. package/dist/php-BRU9zhoN.js +0 -18
  229. package/dist/pie-WTHONI2E-Bl1BKqE7.js +0 -5
  230. package/dist/pieDiagram-DBDJKBY4-BkVTsR1n.js +0 -161
  231. package/dist/plastic-CSTz3KZp.js +0 -4
  232. package/dist/plsql-pVbGZfOv.js +0 -6
  233. package/dist/po-BNfHvqmm.js +0 -6
  234. package/dist/poimandres-C-VADXHD.js +0 -4
  235. package/dist/polar-CAZahv3u.js +0 -6
  236. package/dist/postcss-05aHdL-n.js +0 -6
  237. package/dist/powerquery-DI9HkTvs.js +0 -6
  238. package/dist/powershell-Clc4ydu-.js +0 -6
  239. package/dist/prisma-FZjmVtSl.js +0 -6
  240. package/dist/prolog-C5-yg4TO.js +0 -6
  241. package/dist/proto-MmCPeFAD.js +0 -6
  242. package/dist/pug-CJWI-qSo.js +0 -12
  243. package/dist/puppet-CUJHmnxV.js +0 -6
  244. package/dist/purescript-rUfGld-4.js +0 -6
  245. package/dist/python-BFNSHbwJ.js +0 -6
  246. package/dist/qml-D3ATcgGh.js +0 -8
  247. package/dist/qmldir-BInDYbpo.js +0 -6
  248. package/dist/qss-AeJTysr_.js +0 -6
  249. package/dist/quadrantDiagram-YPSRARAO-D1el8UE7.js +0 -1024
  250. package/dist/r-Bm0uF0U2.js +0 -6
  251. package/dist/racket-B83wSAja.js +0 -6
  252. package/dist/radar-NJJJXTRR-Ba8Estdw.js +0 -5
  253. package/dist/raku-nEQ4ZJJ7.js +0 -6
  254. package/dist/razor-BPFYEoc9.js +0 -10
  255. package/dist/red-7y8PH7HH.js +0 -4
  256. package/dist/reg-m_s_Kiip.js +0 -6
  257. package/dist/regexp-BazyLpPg.js +0 -6
  258. package/dist/rel-BcRfyd6Q.js +0 -6
  259. package/dist/requirementDiagram-EGVEC5DT-DL1bEAjs.js +0 -852
  260. package/dist/riscv-Ce8MAQLP.js +0 -6
  261. package/dist/rose-pine-Cr4kwgAY.js +0 -4
  262. package/dist/rose-pine-dawn-ClRRUdXX.js +0 -4
  263. package/dist/rose-pine-moon-ucNn3Gm8.js +0 -4
  264. package/dist/rst-B6mPMsKo.js +0 -22
  265. package/dist/ruby-DInklMmU.js +0 -30
  266. package/dist/rust-CLzF9zIN.js +0 -6
  267. package/dist/sankeyDiagram-HRAUVNP4-Dyr3TqRu.js +0 -810
  268. package/dist/sas-fpEvgATw.js +0 -8
  269. package/dist/sass-DxHp5rTx.js +0 -6
  270. package/dist/scala-D4grkFkl.js +0 -6
  271. package/dist/scheme-BCRWuEm4.js +0 -6
  272. package/dist/scss-B1FaCqwR.js +0 -8
  273. package/dist/sdbl-B7T8abf4.js +0 -6
  274. package/dist/sequenceDiagram-4MX5Z3NR-CaMVkEvG.js +0 -2283
  275. package/dist/shaderlab-Cr62-Wb4.js +0 -8
  276. package/dist/shellscript-InADTalH.js +0 -6
  277. package/dist/shellsession-DiDJNQdy.js +0 -8
  278. package/dist/slack-dark-i7wN4OET.js +0 -4
  279. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  280. package/dist/smalltalk-BlI1_OkM.js +0 -6
  281. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  282. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  283. package/dist/solarized-light-BheCkDPT.js +0 -4
  284. package/dist/solidity-CneOhxmR.js +0 -6
  285. package/dist/soy-LybuU3Y_.js +0 -8
  286. package/dist/sparql-B0KWFEri.js +0 -8
  287. package/dist/splunk-CRXR8A9s.js +0 -6
  288. package/dist/sql-Cn_v3PB0.js +0 -6
  289. package/dist/ssh-config-DP-hNVbF.js +0 -6
  290. package/dist/stata-B8c5fTjX.js +0 -8
  291. package/dist/stateDiagram-UUKSUZ4H-D-xTiq6H.js +0 -263
  292. package/dist/stateDiagram-v2-EYPG3UTE-BK5bFTpp.js +0 -16
  293. package/dist/stylus-CyKEU1Ej.js +0 -6
  294. package/dist/svelte-BjDUPxZ1.js +0 -14
  295. package/dist/swift-_uF_96_m.js +0 -6
  296. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  297. package/dist/system-verilog-BCm7smPJ.js +0 -6
  298. package/dist/systemd-C-4qm6XH.js +0 -6
  299. package/dist/talonscript-CFF3LF_O.js +0 -6
  300. package/dist/tasl-Cg_WBUAe.js +0 -6
  301. package/dist/tcl-DN7buRTF.js +0 -6
  302. package/dist/templ-Brj2RH7A.js +0 -12
  303. package/dist/terraform-DGvcn9zM.js +0 -6
  304. package/dist/tex-CmrLTxbG.js +0 -8
  305. package/dist/timeline-definition-3HZDQTIS-DbCuAY-N.js +0 -801
  306. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  307. package/dist/toml-DY62mUL_.js +0 -6
  308. package/dist/treemap-75Q7IDZK-RcudvwLc.js +0 -5
  309. package/dist/ts-tags-CZMzuZh-.js +0 -41
  310. package/dist/tsv-BtvSkaG0.js +0 -6
  311. package/dist/tsx-B8rCNbgL.js +0 -6
  312. package/dist/turtle-_H59FV7D.js +0 -6
  313. package/dist/twig-GjIxYqCX.js +0 -18
  314. package/dist/typescript-mg6ATTE8.js +0 -6
  315. package/dist/typespec-Djmco60m.js +0 -6
  316. package/dist/typst-D_1QKWns.js +0 -6
  317. package/dist/v-BW14IZv7.js +0 -6
  318. package/dist/vala-uxaPR7d1.js +0 -6
  319. package/dist/vb-D8_c5-KN.js +0 -6
  320. package/dist/verilog-B-bybjPF.js +0 -6
  321. package/dist/vesper-BckBta1U.js +0 -4
  322. package/dist/vhdl-CUlNa8ac.js +0 -6
  323. package/dist/viml-DsfA-sWm.js +0 -6
  324. package/dist/vitesse-black-BoGvW84i.js +0 -4
  325. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  326. package/dist/vitesse-light-CcmG315c.js +0 -4
  327. package/dist/vue-D-ba2-Rx.js +0 -31
  328. package/dist/vue-html-Dn2ZoOSz.js +0 -10
  329. package/dist/vue-vine-Jmfkm6lF.js +0 -20
  330. package/dist/vyper-CPQuu50u.js +0 -6
  331. package/dist/wasm-BBXxrAl7.js +0 -6
  332. package/dist/wasm-DQxwEHae.js +0 -7
  333. package/dist/wenyan-pbVjoM9_.js +0 -6
  334. package/dist/wgsl-DY4iK1q1.js +0 -6
  335. package/dist/wikitext-Z-MoUasO.js +0 -6
  336. package/dist/wit-CQMQOlTg.js +0 -6
  337. package/dist/wolfram-Dz4KXISs.js +0 -6
  338. package/dist/xml-C2J0sS9M.js +0 -8
  339. package/dist/xsl-BmSZphgC.js +0 -8
  340. package/dist/xychartDiagram-FDP5SA34-NGeBTA9Y.js +0 -1340
  341. package/dist/yaml-DaO7k5B1.js +0 -6
  342. package/dist/zenscript-CxBjpf9c.js +0 -6
  343. package/dist/zig-Vm0PO9wB.js +0 -6
@@ -1,801 +0,0 @@
1
- import { _ as s, c as xt, l as E, d as q, ac as kt, ad as vt, ae as _t, af as bt, D as wt, ag as St, z as Et } from "./mermaid.core-D7qBd055.js";
2
- import { d as nt } from "./arc-DMQNivgh.js";
3
- var X = function() {
4
- var n = /* @__PURE__ */ s(function(f, r, a, h) {
5
- for (a = a || {}, h = f.length; h--; a[f[h]] = r) ;
6
- return a;
7
- }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], i = [1, 11], d = [1, 12], c = [1, 13], g = [1, 16], m = [1, 17], p = {
8
- trace: /* @__PURE__ */ s(function() {
9
- }, "trace"),
10
- yy: {},
11
- symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
12
- terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
13
- productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
14
- performAction: /* @__PURE__ */ s(function(r, a, h, u, y, o, S) {
15
- var k = o.length - 1;
16
- switch (y) {
17
- case 1:
18
- return o[k - 1];
19
- case 2:
20
- this.$ = [];
21
- break;
22
- case 3:
23
- o[k - 1].push(o[k]), this.$ = o[k - 1];
24
- break;
25
- case 4:
26
- case 5:
27
- this.$ = o[k];
28
- break;
29
- case 6:
30
- case 7:
31
- this.$ = [];
32
- break;
33
- case 8:
34
- u.getCommonDb().setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
35
- break;
36
- case 9:
37
- this.$ = o[k].trim(), u.getCommonDb().setAccTitle(this.$);
38
- break;
39
- case 10:
40
- case 11:
41
- this.$ = o[k].trim(), u.getCommonDb().setAccDescription(this.$);
42
- break;
43
- case 12:
44
- u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
45
- break;
46
- case 15:
47
- u.addTask(o[k], 0, ""), this.$ = o[k];
48
- break;
49
- case 16:
50
- u.addEvent(o[k].substr(2)), this.$ = o[k];
51
- break;
52
- }
53
- }, "anonymous"),
54
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: i, 16: d, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: i, 16: d, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
55
- defaultActions: {},
56
- parseError: /* @__PURE__ */ s(function(r, a) {
57
- if (a.recoverable)
58
- this.trace(r);
59
- else {
60
- var h = new Error(r);
61
- throw h.hash = a, h;
62
- }
63
- }, "parseError"),
64
- parse: /* @__PURE__ */ s(function(r) {
65
- var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2, J = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
66
- for (var L in this.yy)
67
- Object.prototype.hasOwnProperty.call(this.yy, L) && (N.yy[L] = this.yy[L]);
68
- v.setInput(r, N.yy), N.yy.lexer = v, N.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
69
- var b = v.yylloc;
70
- o.push(b);
71
- var $ = v.options && v.options.ranges;
72
- typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
- function R(T) {
74
- h.length = h.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
75
- }
76
- s(R, "popStack");
77
- function A() {
78
- var T;
79
- return T = u.pop() || v.lex() || J, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
80
- }
81
- s(A, "lex");
82
- for (var w, H, I, K, F = {}, j, P, et, G; ; ) {
83
- if (H = h[h.length - 1], this.defaultActions[H] ? I = this.defaultActions[H] : ((w === null || typeof w > "u") && (w = A()), I = S[H] && S[H][w]), typeof I > "u" || !I.length || !I[0]) {
84
- var Q = "";
85
- G = [];
86
- for (j in S[H])
87
- this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
88
- v.showPosition ? Q = "Parse error on line " + (M + 1) + `:
89
- ` + v.showPosition() + `
90
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (M + 1) + ": Unexpected " + (w == J ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
91
- text: v.match,
92
- token: this.terminals_[w] || w,
93
- line: v.yylineno,
94
- loc: b,
95
- expected: G
96
- });
97
- }
98
- if (I[0] instanceof Array && I.length > 1)
99
- throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + w);
100
- switch (I[0]) {
101
- case 1:
102
- h.push(w), y.push(v.yytext), o.push(v.yylloc), h.push(I[1]), w = null, C = v.yyleng, k = v.yytext, M = v.yylineno, b = v.yylloc;
103
- break;
104
- case 2:
105
- if (P = this.productions_[I[1]][1], F.$ = y[y.length - P], F._$ = {
106
- first_line: o[o.length - (P || 1)].first_line,
107
- last_line: o[o.length - 1].last_line,
108
- first_column: o[o.length - (P || 1)].first_column,
109
- last_column: o[o.length - 1].last_column
110
- }, $ && (F._$.range = [
111
- o[o.length - (P || 1)].range[0],
112
- o[o.length - 1].range[1]
113
- ]), K = this.performAction.apply(F, [
114
- k,
115
- C,
116
- M,
117
- N.yy,
118
- I[1],
119
- y,
120
- o
121
- ].concat(O)), typeof K < "u")
122
- return K;
123
- P && (h = h.slice(0, -1 * P * 2), y = y.slice(0, -1 * P), o = o.slice(0, -1 * P)), h.push(this.productions_[I[1]][0]), y.push(F.$), o.push(F._$), et = S[h[h.length - 2]][h[h.length - 1]], h.push(et);
124
- break;
125
- case 3:
126
- return !0;
127
- }
128
- }
129
- return !0;
130
- }, "parse")
131
- }, x = /* @__PURE__ */ function() {
132
- var f = {
133
- EOF: 1,
134
- parseError: /* @__PURE__ */ s(function(a, h) {
135
- if (this.yy.parser)
136
- this.yy.parser.parseError(a, h);
137
- else
138
- throw new Error(a);
139
- }, "parseError"),
140
- // resets the lexer, sets new input
141
- setInput: /* @__PURE__ */ s(function(r, a) {
142
- return this.yy = a || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
143
- first_line: 1,
144
- first_column: 0,
145
- last_line: 1,
146
- last_column: 0
147
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
148
- }, "setInput"),
149
- // consumes and returns one char from the input
150
- input: /* @__PURE__ */ s(function() {
151
- var r = this._input[0];
152
- this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
153
- var a = r.match(/(?:\r\n?|\n).*/g);
154
- return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
155
- }, "input"),
156
- // unshifts one char (or a string) into the input
157
- unput: /* @__PURE__ */ s(function(r) {
158
- var a = r.length, h = r.split(/(?:\r\n?|\n)/g);
159
- this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
160
- var u = this.match.split(/(?:\r\n?|\n)/g);
161
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
162
- var y = this.yylloc.range;
163
- return this.yylloc = {
164
- first_line: this.yylloc.first_line,
165
- last_line: this.yylineno + 1,
166
- first_column: this.yylloc.first_column,
167
- last_column: h ? (h.length === u.length ? this.yylloc.first_column : 0) + u[u.length - h.length].length - h[0].length : this.yylloc.first_column - a
168
- }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
169
- }, "unput"),
170
- // When called from action, caches matched text and appends it on next action
171
- more: /* @__PURE__ */ s(function() {
172
- return this._more = !0, this;
173
- }, "more"),
174
- // 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.
175
- reject: /* @__PURE__ */ s(function() {
176
- if (this.options.backtrack_lexer)
177
- this._backtrack = !0;
178
- else
179
- 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).
180
- ` + this.showPosition(), {
181
- text: "",
182
- token: null,
183
- line: this.yylineno
184
- });
185
- return this;
186
- }, "reject"),
187
- // retain first n characters of the match
188
- less: /* @__PURE__ */ s(function(r) {
189
- this.unput(this.match.slice(r));
190
- }, "less"),
191
- // displays already matched input, i.e. for error messages
192
- pastInput: /* @__PURE__ */ s(function() {
193
- var r = this.matched.substr(0, this.matched.length - this.match.length);
194
- return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
195
- }, "pastInput"),
196
- // displays upcoming input, i.e. for error messages
197
- upcomingInput: /* @__PURE__ */ s(function() {
198
- var r = this.match;
199
- return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
200
- }, "upcomingInput"),
201
- // displays the character position where the lexing error occurred, i.e. for error messages
202
- showPosition: /* @__PURE__ */ s(function() {
203
- var r = this.pastInput(), a = new Array(r.length + 1).join("-");
204
- return r + this.upcomingInput() + `
205
- ` + a + "^";
206
- }, "showPosition"),
207
- // test the lexed token: return FALSE when not a match, otherwise return token
208
- test_match: /* @__PURE__ */ s(function(r, a) {
209
- var h, u, y;
210
- if (this.options.backtrack_lexer && (y = {
211
- yylineno: this.yylineno,
212
- yylloc: {
213
- first_line: this.yylloc.first_line,
214
- last_line: this.last_line,
215
- first_column: this.yylloc.first_column,
216
- last_column: this.yylloc.last_column
217
- },
218
- yytext: this.yytext,
219
- match: this.match,
220
- matches: this.matches,
221
- matched: this.matched,
222
- yyleng: this.yyleng,
223
- offset: this.offset,
224
- _more: this._more,
225
- _input: this._input,
226
- yy: this.yy,
227
- conditionStack: this.conditionStack.slice(0),
228
- done: this.done
229
- }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = r[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
230
- first_line: this.yylloc.last_line,
231
- last_line: this.yylineno + 1,
232
- first_column: this.yylloc.last_column,
233
- last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
234
- }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], h = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h)
235
- return h;
236
- if (this._backtrack) {
237
- for (var o in y)
238
- this[o] = y[o];
239
- return !1;
240
- }
241
- return !1;
242
- }, "test_match"),
243
- // return next match in input
244
- next: /* @__PURE__ */ s(function() {
245
- if (this.done)
246
- return this.EOF;
247
- this._input || (this.done = !0);
248
- var r, a, h, u;
249
- this._more || (this.yytext = "", this.match = "");
250
- for (var y = this._currentRules(), o = 0; o < y.length; o++)
251
- if (h = this._input.match(this.rules[y[o]]), h && (!a || h[0].length > a[0].length)) {
252
- if (a = h, u = o, this.options.backtrack_lexer) {
253
- if (r = this.test_match(h, y[o]), r !== !1)
254
- return r;
255
- if (this._backtrack) {
256
- a = !1;
257
- continue;
258
- } else
259
- return !1;
260
- } else if (!this.options.flex)
261
- break;
262
- }
263
- return a ? (r = this.test_match(a, y[u]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
264
- ` + this.showPosition(), {
265
- text: "",
266
- token: null,
267
- line: this.yylineno
268
- });
269
- }, "next"),
270
- // return next match that has a token
271
- lex: /* @__PURE__ */ s(function() {
272
- var a = this.next();
273
- return a || this.lex();
274
- }, "lex"),
275
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
276
- begin: /* @__PURE__ */ s(function(a) {
277
- this.conditionStack.push(a);
278
- }, "begin"),
279
- // pop the previously active lexer condition state off the condition stack
280
- popState: /* @__PURE__ */ s(function() {
281
- var a = this.conditionStack.length - 1;
282
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
283
- }, "popState"),
284
- // produce the lexer rule set which is active for the currently active lexer condition state
285
- _currentRules: /* @__PURE__ */ s(function() {
286
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
287
- }, "_currentRules"),
288
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
289
- topState: /* @__PURE__ */ s(function(a) {
290
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
291
- }, "topState"),
292
- // alias for begin(condition)
293
- pushState: /* @__PURE__ */ s(function(a) {
294
- this.begin(a);
295
- }, "pushState"),
296
- // return the number of states currently on the stack
297
- stateStackSize: /* @__PURE__ */ s(function() {
298
- return this.conditionStack.length;
299
- }, "stateStackSize"),
300
- options: { "case-insensitive": !0 },
301
- performAction: /* @__PURE__ */ s(function(a, h, u, y) {
302
- switch (u) {
303
- case 0:
304
- break;
305
- case 1:
306
- break;
307
- case 2:
308
- return 10;
309
- case 3:
310
- break;
311
- case 4:
312
- break;
313
- case 5:
314
- return 4;
315
- case 6:
316
- return 11;
317
- case 7:
318
- return this.begin("acc_title"), 12;
319
- case 8:
320
- return this.popState(), "acc_title_value";
321
- case 9:
322
- return this.begin("acc_descr"), 14;
323
- case 10:
324
- return this.popState(), "acc_descr_value";
325
- case 11:
326
- this.begin("acc_descr_multiline");
327
- break;
328
- case 12:
329
- this.popState();
330
- break;
331
- case 13:
332
- return "acc_descr_multiline_value";
333
- case 14:
334
- return 17;
335
- case 15:
336
- return 21;
337
- case 16:
338
- return 20;
339
- case 17:
340
- return 6;
341
- case 18:
342
- return "INVALID";
343
- }
344
- }, "anonymous"),
345
- rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s(?:[^:\n]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
346
- conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
347
- };
348
- return f;
349
- }();
350
- p.lexer = x;
351
- function _() {
352
- this.yy = {};
353
- }
354
- return s(_, "Parser"), _.prototype = p, p.Parser = _, new _();
355
- }();
356
- X.parser = X;
357
- var Tt = X, at = {};
358
- wt(at, {
359
- addEvent: () => yt,
360
- addSection: () => ht,
361
- addTask: () => pt,
362
- addTaskOrg: () => gt,
363
- clear: () => ct,
364
- default: () => It,
365
- getCommonDb: () => ot,
366
- getSections: () => dt,
367
- getTasks: () => ut
368
- });
369
- var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
370
- Y.length = 0, U.length = 0, V = "", W.length = 0, Et();
371
- }, "clear"), ht = /* @__PURE__ */ s(function(n) {
372
- V = n, Y.push(n);
373
- }, "addSection"), dt = /* @__PURE__ */ s(function() {
374
- return Y;
375
- }, "getSections"), ut = /* @__PURE__ */ s(function() {
376
- let n = it();
377
- const t = 100;
378
- let e = 0;
379
- for (; !n && e < t; )
380
- n = it(), e++;
381
- return U.push(...W), U;
382
- }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
383
- const l = {
384
- id: lt++,
385
- section: V,
386
- type: V,
387
- task: n,
388
- score: t || 0,
389
- //if event is defined, then add it the events array
390
- events: e ? [e] : []
391
- };
392
- W.push(l);
393
- }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
394
- W.find((e) => e.id === lt - 1).events.push(n);
395
- }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
396
- const t = {
397
- section: V,
398
- type: V,
399
- description: n,
400
- task: n,
401
- classes: []
402
- };
403
- U.push(t);
404
- }, "addTaskOrg"), it = /* @__PURE__ */ s(function() {
405
- const n = /* @__PURE__ */ s(function(e) {
406
- return W[e].processed;
407
- }, "compileTask");
408
- let t = !0;
409
- for (const [e, l] of W.entries())
410
- n(e), t = t && l.processed;
411
- return t;
412
- }, "compileTasks"), It = {
413
- clear: ct,
414
- getCommonDb: ot,
415
- addSection: ht,
416
- getSections: dt,
417
- getTasks: ut,
418
- addTask: pt,
419
- addTaskOrg: gt,
420
- addEvent: yt
421
- }, Nt = 12, Z = /* @__PURE__ */ s(function(n, t) {
422
- const e = n.append("rect");
423
- return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
424
- }, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
425
- const l = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = n.append("g");
426
- i.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
427
- function d(m) {
428
- const p = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
429
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
430
- }
431
- s(d, "smile");
432
- function c(m) {
433
- const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
434
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
435
- }
436
- s(c, "sad");
437
- function g(m) {
438
- m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
439
- }
440
- return s(g, "ambivalent"), t.score > 3 ? d(i) : t.score < 3 ? c(i) : g(i), l;
441
- }, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
442
- const e = n.append("circle");
443
- return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
444
- }, "drawCircle"), ft = /* @__PURE__ */ s(function(n, t) {
445
- const e = t.text.replace(/<br\s*\/?>/gi, " "), l = n.append("text");
446
- l.attr("x", t.x), l.attr("y", t.y), l.attr("class", "legend"), l.style("text-anchor", t.anchor), t.class !== void 0 && l.attr("class", t.class);
447
- const i = l.append("tspan");
448
- return i.attr("x", t.x + t.textMargin * 2), i.text(e), l;
449
- }, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
450
- function e(i, d, c, g, m) {
451
- return i + "," + d + " " + (i + c) + "," + d + " " + (i + c) + "," + (d + g - m) + " " + (i + c - m * 1.2) + "," + (d + g) + " " + i + "," + (d + g);
452
- }
453
- s(e, "genPoints");
454
- const l = n.append("polygon");
455
- l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
456
- }, "drawLabel"), Ht = /* @__PURE__ */ s(function(n, t, e) {
457
- const l = n.append("g"), i = D();
458
- i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, Z(l, i), mt(e)(
459
- t.text,
460
- l,
461
- i.x,
462
- i.y,
463
- i.width,
464
- i.height,
465
- { class: "journey-section section-type-" + t.num },
466
- e,
467
- t.colour
468
- );
469
- }, "drawSection"), rt = -1, Pt = /* @__PURE__ */ s(function(n, t, e) {
470
- const l = t.x + e.width / 2, i = n.append("g");
471
- rt++;
472
- const d = 300 + 5 * 30;
473
- i.append("line").attr("id", "task" + rt).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", d).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(i, {
474
- cx: l,
475
- cy: 300 + (5 - t.score) * 30,
476
- score: t.score
477
- });
478
- const c = D();
479
- c.x = t.x, c.y = t.y, c.fill = t.fill, c.width = e.width, c.height = e.height, c.class = "task task-type-" + t.num, c.rx = 3, c.ry = 3, Z(i, c), mt(e)(
480
- t.task,
481
- i,
482
- c.x,
483
- c.y,
484
- c.width,
485
- c.height,
486
- { class: "task" },
487
- e,
488
- t.colour
489
- );
490
- }, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
491
- Z(n, {
492
- x: t.startx,
493
- y: t.starty,
494
- width: t.stopx - t.startx,
495
- height: t.stopy - t.starty,
496
- fill: t.fill,
497
- class: "rect"
498
- }).lower();
499
- }, "drawBackgroundRect"), Ct = /* @__PURE__ */ s(function() {
500
- return {
501
- x: 0,
502
- y: 0,
503
- fill: void 0,
504
- "text-anchor": "start",
505
- width: 100,
506
- height: 100,
507
- textMargin: 0,
508
- rx: 0,
509
- ry: 0
510
- };
511
- }, "getTextObj"), D = /* @__PURE__ */ s(function() {
512
- return {
513
- x: 0,
514
- y: 0,
515
- width: 100,
516
- anchor: "start",
517
- height: 100,
518
- rx: 0,
519
- ry: 0
520
- };
521
- }, "getNoteRect"), mt = /* @__PURE__ */ function() {
522
- function n(i, d, c, g, m, p, x, _) {
523
- const f = d.append("text").attr("x", c + m / 2).attr("y", g + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(i);
524
- l(f, x);
525
- }
526
- s(n, "byText");
527
- function t(i, d, c, g, m, p, x, _, f) {
528
- const { taskFontSize: r, taskFontFamily: a } = _, h = i.split(/<br\s*\/?>/gi);
529
- for (let u = 0; u < h.length; u++) {
530
- const y = u * r - r * (h.length - 1) / 2, o = d.append("text").attr("x", c + m / 2).attr("y", g).attr("fill", f).style("text-anchor", "middle").style("font-size", r).style("font-family", a);
531
- o.append("tspan").attr("x", c + m / 2).attr("dy", y).text(h[u]), o.attr("y", g + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, x);
532
- }
533
- }
534
- s(t, "byTspan");
535
- function e(i, d, c, g, m, p, x, _) {
536
- const f = d.append("switch"), a = f.append("foreignObject").attr("x", c).attr("y", g).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
537
- a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, f, c, g, m, p, x, _), l(a, x);
538
- }
539
- s(e, "byFo");
540
- function l(i, d) {
541
- for (const c in d)
542
- c in d && i.attr(c, d[c]);
543
- }
544
- return s(l, "_setTextAttrs"), function(i) {
545
- return i.textPlacement === "fo" ? e : i.textPlacement === "old" ? n : t;
546
- };
547
- }(), Rt = /* @__PURE__ */ s(function(n) {
548
- n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
549
- }, "initGraphics");
550
- function tt(n, t) {
551
- n.each(function() {
552
- var e = q(this), l = e.text().split(/(\s+|<br>)/).reverse(), i, d = [], c = 1.1, g = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", g).attr("dy", m + "em");
553
- for (let x = 0; x < l.length; x++)
554
- i = l[l.length - 1 - x], d.push(i), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || i === "<br>") && (d.pop(), p.text(d.join(" ").trim()), i === "<br>" ? d = [""] : d = [i], p = e.append("tspan").attr("x", 0).attr("y", g).attr("dy", c + "em").text(i));
555
- });
556
- }
557
- s(tt, "wrap");
558
- var zt = /* @__PURE__ */ s(function(n, t, e, l) {
559
- var _;
560
- const i = e % Nt - 1, d = n.append("g");
561
- t.section = i, d.attr(
562
- "class",
563
- (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i)
564
- );
565
- const c = d.append("g"), g = d.append("g"), p = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), x = (_ = l.fontSize) != null && _.replace ? l.fontSize.replace("px", "") : l.fontSize;
566
- return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(c, t, i, l), t;
567
- }, "drawNode"), Ft = /* @__PURE__ */ s(function(n, t, e) {
568
- var g;
569
- const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), c = (g = e.fontSize) != null && g.replace ? e.fontSize.replace("px", "") : e.fontSize;
570
- return l.remove(), d.height + c * 1.1 * 0.5 + t.padding;
571
- }, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
572
- n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
573
- "d",
574
- `M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
575
- ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
576
- }, "defaultBkg"), z = {
577
- drawRect: Z,
578
- drawCircle: Mt,
579
- drawSection: Ht,
580
- drawText: ft,
581
- drawLabel: $t,
582
- drawTask: Pt,
583
- drawBackgroundRect: At,
584
- getTextObj: Ct,
585
- getNoteRect: D,
586
- initGraphics: Rt,
587
- drawNode: zt,
588
- getVirtualNodeHeight: Ft
589
- }, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
590
- var O, v, N;
591
- const i = xt(), d = ((O = i.timeline) == null ? void 0 : O.leftMargin) ?? 50;
592
- E.debug("timeline", l.db);
593
- const c = i.securityLevel;
594
- let g;
595
- c === "sandbox" && (g = q("#i" + t));
596
- const p = (c === "sandbox" ? q(g.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
597
- p.append("g");
598
- const x = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
599
- E.debug("task", x), z.initGraphics(p);
600
- const f = l.db.getSections();
601
- E.debug("sections", f);
602
- let r = 0, a = 0, h = 0, u = 0, y = 50 + d, o = 50;
603
- u = 50;
604
- let S = 0, k = !0;
605
- f.forEach(function(L) {
606
- const b = {
607
- number: S,
608
- descr: L,
609
- section: S,
610
- width: 150,
611
- padding: 20,
612
- maxHeight: r
613
- }, $ = z.getVirtualNodeHeight(p, b, i);
614
- E.debug("sectionHeight before draw", $), r = Math.max(r, $ + 20);
615
- });
616
- let M = 0, C = 0;
617
- E.debug("tasks.length", x.length);
618
- for (const [L, b] of x.entries()) {
619
- const $ = {
620
- number: L,
621
- descr: b,
622
- section: b.section,
623
- width: 150,
624
- padding: 20,
625
- maxHeight: a
626
- }, R = z.getVirtualNodeHeight(p, $, i);
627
- E.debug("taskHeight before draw", R), a = Math.max(a, R + 20), M = Math.max(M, b.events.length);
628
- let A = 0;
629
- for (const w of b.events) {
630
- const H = {
631
- descr: w,
632
- section: b.section,
633
- number: b.section,
634
- width: 150,
635
- padding: 20,
636
- maxHeight: 50
637
- };
638
- A += z.getVirtualNodeHeight(p, H, i);
639
- }
640
- b.events.length > 0 && (A += (b.events.length - 1) * 10), C = Math.max(C, A);
641
- }
642
- E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((L) => {
643
- const b = x.filter((w) => w.section === L), $ = {
644
- number: S,
645
- descr: L,
646
- section: S,
647
- width: 200 * Math.max(b.length, 1) - 50,
648
- padding: 20,
649
- maxHeight: r
650
- };
651
- E.debug("sectionNode", $);
652
- const R = p.append("g"), A = z.drawNode(R, $, S, i);
653
- E.debug("sectionNode output", A), R.attr("transform", `translate(${y}, ${u})`), o += r + 50, b.length > 0 && st(
654
- p,
655
- b,
656
- S,
657
- y,
658
- o,
659
- a,
660
- i,
661
- M,
662
- C,
663
- r,
664
- !1
665
- ), y += 200 * Math.max(b.length, 1), o = u, S++;
666
- }) : (k = !1, st(
667
- p,
668
- x,
669
- S,
670
- y,
671
- o,
672
- a,
673
- i,
674
- M,
675
- C,
676
- r,
677
- !0
678
- ));
679
- const B = p.node().getBBox();
680
- E.debug("bounds", B), _ && p.append("text").text(_).attr("x", B.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), h = k ? r + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", h).attr("x2", B.width + 3 * d).attr("y2", h).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), kt(
681
- void 0,
682
- p,
683
- ((v = i.timeline) == null ? void 0 : v.padding) ?? 50,
684
- ((N = i.timeline) == null ? void 0 : N.useMaxWidth) ?? !1
685
- );
686
- }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, i, d, c, g, m, p, x) {
687
- var _;
688
- for (const f of t) {
689
- const r = {
690
- descr: f.task,
691
- section: e,
692
- number: e,
693
- width: 150,
694
- padding: 20,
695
- maxHeight: d
696
- };
697
- E.debug("taskNode", r);
698
- const a = n.append("g").attr("class", "taskWrapper"), u = z.drawNode(a, r, e, c).height;
699
- if (E.debug("taskHeight after draw", u), a.attr("transform", `translate(${l}, ${i})`), d = Math.max(d, u), f.events) {
700
- const y = n.append("g").attr("class", "lineWrapper");
701
- let o = d;
702
- i += 100, o = o + Bt(n, f.events, e, l, i, c), i -= 100, y.append("line").attr("x1", l + 190 / 2).attr("y1", i + d).attr("x2", l + 190 / 2).attr("y2", i + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
703
- }
704
- l = l + 200, x && !((_ = c.timeline) != null && _.disableMulticolor) && e++;
705
- }
706
- i = i - 10;
707
- }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, i, d) {
708
- let c = 0;
709
- const g = i;
710
- i = i + 100;
711
- for (const m of t) {
712
- const p = {
713
- descr: m,
714
- section: e,
715
- number: e,
716
- width: 150,
717
- padding: 20,
718
- maxHeight: 50
719
- };
720
- E.debug("eventNode", p);
721
- const x = n.append("g").attr("class", "eventWrapper"), f = z.drawNode(x, p, e, d).height;
722
- c = c + f, x.attr("transform", `translate(${l}, ${i})`), i = i + 10 + f;
723
- }
724
- return i = g, c;
725
- }, "drawEvents"), Ot = {
726
- setConf: /* @__PURE__ */ s(() => {
727
- }, "setConf"),
728
- draw: Wt
729
- }, jt = /* @__PURE__ */ s((n) => {
730
- let t = "";
731
- for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
732
- n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], vt(n["lineColor" + e]) ? n["lineColor" + e] = _t(n["lineColor" + e], 20) : n["lineColor" + e] = bt(n["lineColor" + e], 20);
733
- for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
734
- const l = "" + (17 - 3 * e);
735
- t += `
736
- .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
737
- fill: ${n["cScale" + e]};
738
- }
739
- .section-${e - 1} text {
740
- fill: ${n["cScaleLabel" + e]};
741
- }
742
- .node-icon-${e - 1} {
743
- font-size: 40px;
744
- color: ${n["cScaleLabel" + e]};
745
- }
746
- .section-edge-${e - 1}{
747
- stroke: ${n["cScale" + e]};
748
- }
749
- .edge-depth-${e - 1}{
750
- stroke-width: ${l};
751
- }
752
- .section-${e - 1} line {
753
- stroke: ${n["cScaleInv" + e]} ;
754
- stroke-width: 3;
755
- }
756
-
757
- .lineWrapper line{
758
- stroke: ${n["cScaleLabel" + e]} ;
759
- }
760
-
761
- .disabled, .disabled circle, .disabled text {
762
- fill: lightgray;
763
- }
764
- .disabled text {
765
- fill: #efefef;
766
- }
767
- `;
768
- }
769
- return t;
770
- }, "genSections"), Gt = /* @__PURE__ */ s((n) => `
771
- .edge {
772
- stroke-width: 3;
773
- }
774
- ${jt(n)}
775
- .section-root rect, .section-root path, .section-root circle {
776
- fill: ${n.git0};
777
- }
778
- .section-root text {
779
- fill: ${n.gitBranchLabel0};
780
- }
781
- .icon-container {
782
- height:100%;
783
- display: flex;
784
- justify-content: center;
785
- align-items: center;
786
- }
787
- .edge {
788
- fill: none;
789
- }
790
- .eventWrapper {
791
- filter: brightness(120%);
792
- }
793
- `, "getStyles"), qt = Gt, Jt = {
794
- db: at,
795
- renderer: Ot,
796
- parser: Tt,
797
- styles: qt
798
- };
799
- export {
800
- Jt as diagram
801
- };