@zythum02/fello-server 0.1.28

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 (369) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +213 -0
  3. package/out/renderer/assets/_baseUniq-C01H-TTl.js +660 -0
  4. package/out/renderer/assets/abap-B7h4dtBh.js +7 -0
  5. package/out/renderer/assets/actionscript-3-DtnkuHN2.js +7 -0
  6. package/out/renderer/assets/ada-BZS802Se.js +7 -0
  7. package/out/renderer/assets/andromeeda-C847lm7Z.js +4 -0
  8. package/out/renderer/assets/angular-html-BYG42TJr.js +42 -0
  9. package/out/renderer/assets/angular-ts-BftcHvZ6.js +29 -0
  10. package/out/renderer/assets/apache-D4roVlsU.js +7 -0
  11. package/out/renderer/assets/apex-B-mI3Md2.js +7 -0
  12. package/out/renderer/assets/apl-CGZawg-A.js +18 -0
  13. package/out/renderer/assets/applescript-C43Knf0G.js +7 -0
  14. package/out/renderer/assets/ara-DRBH84ND.js +7 -0
  15. package/out/renderer/assets/arc-BXqrFYj-.js +131 -0
  16. package/out/renderer/assets/architectureDiagram-Q4EWVU46-DlFz_4yO.js +8718 -0
  17. package/out/renderer/assets/asciidoc-CT8_dLUs.js +7 -0
  18. package/out/renderer/assets/asm-3tg4MVib.js +7 -0
  19. package/out/renderer/assets/astro-BxdWOZvM.js +19 -0
  20. package/out/renderer/assets/aurora-x-wJ4-eM2h.js +4 -0
  21. package/out/renderer/assets/awk-ChreaG-G.js +7 -0
  22. package/out/renderer/assets/ayu-dark-rtpbXCNg.js +4 -0
  23. package/out/renderer/assets/ayu-light-BCZDSyV8.js +4 -0
  24. package/out/renderer/assets/ayu-mirage-BVoH71sA.js +4 -0
  25. package/out/renderer/assets/ballerina-B0yt0TYU.js +7 -0
  26. package/out/renderer/assets/bat-BzNgQIA7.js +7 -0
  27. package/out/renderer/assets/beancount-aZWrE5WV.js +7 -0
  28. package/out/renderer/assets/berry--Qc8OslH.js +7 -0
  29. package/out/renderer/assets/bibtex-BLeFwAes.js +7 -0
  30. package/out/renderer/assets/bicep-DbBeGdXQ.js +7 -0
  31. package/out/renderer/assets/bird2-aXhIUHPg.js +7 -0
  32. package/out/renderer/assets/blade-BbH7YAUi.js +22 -0
  33. package/out/renderer/assets/blockDiagram-DXYQGD6D-B_jYpKkP.js +3637 -0
  34. package/out/renderer/assets/bsl-DwPS0BId.js +9 -0
  35. package/out/renderer/assets/c-C4VtT7JA.js +7 -0
  36. package/out/renderer/assets/c3-CWHczQMq.js +7 -0
  37. package/out/renderer/assets/c4Diagram-AHTNJAMY-DWRXz6-S.js +2482 -0
  38. package/out/renderer/assets/cadence-S_NtR5Dy.js +7 -0
  39. package/out/renderer/assets/cairo-BtYx2aM5.js +9 -0
  40. package/out/renderer/assets/catppuccin-frappe-C21OPQfC.js +4 -0
  41. package/out/renderer/assets/catppuccin-latte-0ZtXlsrX.js +4 -0
  42. package/out/renderer/assets/catppuccin-macchiato-BD_FR4sl.js +4 -0
  43. package/out/renderer/assets/catppuccin-mocha-C653csR5.js +4 -0
  44. package/out/renderer/assets/channel-iMh-jYBg.js +7 -0
  45. package/out/renderer/assets/chunk-4BX2VUAB-CDXuLHIo.js +16 -0
  46. package/out/renderer/assets/chunk-4TB4RGXK-Bs-z-5kA.js +1920 -0
  47. package/out/renderer/assets/chunk-55IACEB6-DBmLw2WJ.js +13 -0
  48. package/out/renderer/assets/chunk-EDXVE4YY-BhsDT27O.js +24 -0
  49. package/out/renderer/assets/chunk-FMBD7UC4-C_qJYK5q.js +19 -0
  50. package/out/renderer/assets/chunk-OYMX7WX6-DIh7s3uw.js +1939 -0
  51. package/out/renderer/assets/chunk-QZHKN3VN-CYa45CSJ.js +19 -0
  52. package/out/renderer/assets/chunk-YZCP3GAM-BeF07Xv_.js +116 -0
  53. package/out/renderer/assets/clarity-D2ViJC0i.js +7 -0
  54. package/out/renderer/assets/classDiagram-6PBFFD2Q-B12_6ldG.js +23 -0
  55. package/out/renderer/assets/classDiagram-v2-HSJHXN6E-B12_6ldG.js +23 -0
  56. package/out/renderer/assets/clojure-C_G4_w5x.js +7 -0
  57. package/out/renderer/assets/clone-1GZJZPn3.js +8 -0
  58. package/out/renderer/assets/cmake-CDfQILeU.js +7 -0
  59. package/out/renderer/assets/cobol-B8r1pfPr.js +13 -0
  60. package/out/renderer/assets/codeowners-awy7PWCD.js +7 -0
  61. package/out/renderer/assets/codeql-lfK8ppuq.js +7 -0
  62. package/out/renderer/assets/coffee-XLjtuEYs.js +9 -0
  63. package/out/renderer/assets/common-lisp-DAq1kaby.js +7 -0
  64. package/out/renderer/assets/coq-l_JvzFJl.js +7 -0
  65. package/out/renderer/assets/cose-bilkent-S5V4N54A-CuSnz9Ro.js +4942 -0
  66. package/out/renderer/assets/cpp-zh2ePAE_.js +22 -0
  67. package/out/renderer/assets/crystal-BqBRy7Ec.js +19 -0
  68. package/out/renderer/assets/csharp-DxX_6tHh.js +7 -0
  69. package/out/renderer/assets/css-BtVcDqlU.js +7 -0
  70. package/out/renderer/assets/csv-Ba84L8e5.js +7 -0
  71. package/out/renderer/assets/cue-BFSVLV6N.js +7 -0
  72. package/out/renderer/assets/cypher-DbUmWIxC.js +7 -0
  73. package/out/renderer/assets/cytoscape.esm-Bm8DJGmZ.js +30239 -0
  74. package/out/renderer/assets/d-9qSZPw74.js +7 -0
  75. package/out/renderer/assets/dagre-KV5264BT-LHPLEy9g.js +694 -0
  76. package/out/renderer/assets/dark-plus-DmZ1Dzd4.js +4 -0
  77. package/out/renderer/assets/dart-CCSsOg9l.js +7 -0
  78. package/out/renderer/assets/dax-CvsmLV-B.js +7 -0
  79. package/out/renderer/assets/defaultLocale-B2RvLBDe.js +206 -0
  80. package/out/renderer/assets/desktop-_xiGZ9X1.js +7 -0
  81. package/out/renderer/assets/diagram-5BDNPKRD-DWjP3Jzr.js +171 -0
  82. package/out/renderer/assets/diagram-G4DWMVQ6-CM3uASto.js +853 -0
  83. package/out/renderer/assets/diagram-MMDJMWI5-X5oh5RON.js +303 -0
  84. package/out/renderer/assets/diagram-TYMM5635-iO4Xohj9.js +214 -0
  85. package/out/renderer/assets/diff-BEdzuHlE.js +7 -0
  86. package/out/renderer/assets/docker-CUaLOm2I.js +7 -0
  87. package/out/renderer/assets/dotenv-Bb4iNxXK.js +7 -0
  88. package/out/renderer/assets/dracula-B8-AVrwI.js +4 -0
  89. package/out/renderer/assets/dracula-soft-BHeefow7.js +4 -0
  90. package/out/renderer/assets/dream-maker-CNLQpoF-.js +7 -0
  91. package/out/renderer/assets/edge-CnHxQ_FD.js +15 -0
  92. package/out/renderer/assets/elixir-B_LIBv5J.js +11 -0
  93. package/out/renderer/assets/elm-BlO7pcFp.js +10 -0
  94. package/out/renderer/assets/emacs-lisp-4gdXY_g3.js +7 -0
  95. package/out/renderer/assets/erDiagram-SMLLAGMA-4xwE7Ysd.js +1227 -0
  96. package/out/renderer/assets/erb-Bzn22wO6.js +28 -0
  97. package/out/renderer/assets/erlang-Ch5kuXHm.js +9 -0
  98. package/out/renderer/assets/everforest-dark-Cg1xdODP.js +4 -0
  99. package/out/renderer/assets/everforest-light-BmTD3bxe.js +4 -0
  100. package/out/renderer/assets/fennel-BTELNkeT.js +7 -0
  101. package/out/renderer/assets/fish-kGF2-4SL.js +7 -0
  102. package/out/renderer/assets/flowDiagram-DWJPFMVM-DoIqEJWm.js +2332 -0
  103. package/out/renderer/assets/fluent-YyC28MRr.js +7 -0
  104. package/out/renderer/assets/fortran-fixed-form-CpmOyvS5.js +9 -0
  105. package/out/renderer/assets/fortran-free-form-5X94ETMi.js +7 -0
  106. package/out/renderer/assets/fsharp-5vtGqRR9.js +9 -0
  107. package/out/renderer/assets/ganttDiagram-T4ZO3ILL-C48vXSUK.js +3714 -0
  108. package/out/renderer/assets/gdresource-B5TLWiFO.js +11 -0
  109. package/out/renderer/assets/gdscript-CNW3Aj-d.js +7 -0
  110. package/out/renderer/assets/gdshader-BEzE4j_3.js +7 -0
  111. package/out/renderer/assets/genie-BvhtM5Ga.js +7 -0
  112. package/out/renderer/assets/gherkin-xCNF9gh8.js +7 -0
  113. package/out/renderer/assets/git-commit-PP9xCApN.js +9 -0
  114. package/out/renderer/assets/git-rebase-D-XQSvDj.js +9 -0
  115. package/out/renderer/assets/gitGraphDiagram-UUTBAWPF-D3YiiEhK.js +1375 -0
  116. package/out/renderer/assets/github-dark-O22yVQaY.js +4 -0
  117. package/out/renderer/assets/github-dark-default-DB2Hkvqn.js +4 -0
  118. package/out/renderer/assets/github-dark-dimmed-CMZ_OfqC.js +4 -0
  119. package/out/renderer/assets/github-dark-high-contrast-DmxWVmCU.js +4 -0
  120. package/out/renderer/assets/github-light-BTbR9xVK.js +4 -0
  121. package/out/renderer/assets/github-light-default-DWEonwFe.js +4 -0
  122. package/out/renderer/assets/github-light-high-contrast-WJ_cPDts.js +4 -0
  123. package/out/renderer/assets/gleam-LmNxrMsN.js +7 -0
  124. package/out/renderer/assets/glimmer-js-h2QNNiD7.js +15 -0
  125. package/out/renderer/assets/glimmer-ts-Bk3uX6Ae.js +15 -0
  126. package/out/renderer/assets/glsl-CGsiYPcu.js +9 -0
  127. package/out/renderer/assets/gn-OUMx7fqt.js +7 -0
  128. package/out/renderer/assets/gnuplot-tV8vezdE.js +7 -0
  129. package/out/renderer/assets/go-DRMr3iML.js +7 -0
  130. package/out/renderer/assets/graph-CYPfPCZi.js +953 -0
  131. package/out/renderer/assets/graphql-CwmtR1ib.js +15 -0
  132. package/out/renderer/assets/groovy-Bn4MhXgW.js +7 -0
  133. package/out/renderer/assets/gruvbox-dark-hard-DVsRsETr.js +4 -0
  134. package/out/renderer/assets/gruvbox-dark-medium-B5JBrQdg.js +4 -0
  135. package/out/renderer/assets/gruvbox-dark-soft-Db-YOqRx.js +4 -0
  136. package/out/renderer/assets/gruvbox-light-hard-CXzJt7DI.js +4 -0
  137. package/out/renderer/assets/gruvbox-light-medium-B89RAI1Y.js +4 -0
  138. package/out/renderer/assets/gruvbox-light-soft-Cs0hTZYv.js +4 -0
  139. package/out/renderer/assets/hack-BTX3ICIE.js +13 -0
  140. package/out/renderer/assets/haml-DrIklt7F.js +11 -0
  141. package/out/renderer/assets/handlebars-yWFGGD2R.js +15 -0
  142. package/out/renderer/assets/haskell-CzPS7wjM.js +7 -0
  143. package/out/renderer/assets/haxe-BpobLYM9.js +7 -0
  144. package/out/renderer/assets/hcl-axoq0Ycu.js +7 -0
  145. package/out/renderer/assets/highlighted-body-OFNGDK62-B6M-kMLU.js +17 -0
  146. package/out/renderer/assets/hjson-I7LcauIB.js +7 -0
  147. package/out/renderer/assets/hlsl-TRzjajlb.js +7 -0
  148. package/out/renderer/assets/horizon-DWzh3z5C.js +4 -0
  149. package/out/renderer/assets/horizon-bright-C1AFkPsv.js +4 -0
  150. package/out/renderer/assets/houston-CF_ws8Cq.js +4 -0
  151. package/out/renderer/assets/html-GC16tDh9.js +11 -0
  152. package/out/renderer/assets/html-derivative-HU9p64q4.js +11 -0
  153. package/out/renderer/assets/http-DjsOm9E4.js +20 -0
  154. package/out/renderer/assets/hurl-Am2cDU4f.js +18 -0
  155. package/out/renderer/assets/hxml-Jle7oGdm.js +9 -0
  156. package/out/renderer/assets/hy-B1k9U6S8.js +7 -0
  157. package/out/renderer/assets/imba-C4923lSV.js +7 -0
  158. package/out/renderer/assets/index-D8H7Q_md.css +382 -0
  159. package/out/renderer/assets/index-Dabo17L1.js +236275 -0
  160. package/out/renderer/assets/infoDiagram-42DDH7IO-ur7rRidE.js +33 -0
  161. package/out/renderer/assets/ini-B84Ha1bx.js +7 -0
  162. package/out/renderer/assets/init-ZxktEp_H.js +16 -0
  163. package/out/renderer/assets/ishikawaDiagram-UXIWVN3A-fJSipMV8.js +967 -0
  164. package/out/renderer/assets/java-BfXh-0uJ.js +7 -0
  165. package/out/renderer/assets/javascript-BsAkV7mL.js +7 -0
  166. package/out/renderer/assets/jinja-FkIlHBgj.js +16 -0
  167. package/out/renderer/assets/jison-BkdOIOd4.js +9 -0
  168. package/out/renderer/assets/journeyDiagram-VCZTEJTY-TxjKxXBo.js +1255 -0
  169. package/out/renderer/assets/json-TjWBGEk1.js +7 -0
  170. package/out/renderer/assets/json5-DCGCKrmX.js +7 -0
  171. package/out/renderer/assets/jsonc-DLVLp8id.js +7 -0
  172. package/out/renderer/assets/jsonl-B-R_pDGg.js +7 -0
  173. package/out/renderer/assets/jsonnet-Cs8BnnC6.js +7 -0
  174. package/out/renderer/assets/jssm-DDuANZ2u.js +7 -0
  175. package/out/renderer/assets/jsx-BPmvoin2.js +7 -0
  176. package/out/renderer/assets/julia-CU_UwNb8.js +20 -0
  177. package/out/renderer/assets/just-tGFryTtU.js +34 -0
  178. package/out/renderer/assets/kanagawa-dragon-DU8n2NNT.js +4 -0
  179. package/out/renderer/assets/kanagawa-lotus-Byd0CDet.js +4 -0
  180. package/out/renderer/assets/kanagawa-wave-DExoagcR.js +4 -0
  181. package/out/renderer/assets/kanban-definition-6JOO6SKY-DJwjRjlE.js +1052 -0
  182. package/out/renderer/assets/kdl-DzNQTDs7.js +7 -0
  183. package/out/renderer/assets/kotlin-BM2ZNTMh.js +7 -0
  184. package/out/renderer/assets/kusto-dtpuxMFE.js +7 -0
  185. package/out/renderer/assets/laserwave-DF03wMlf.js +4 -0
  186. package/out/renderer/assets/latex-B0gTO9uZ.js +10 -0
  187. package/out/renderer/assets/layout-BT1ASsLg.js +2217 -0
  188. package/out/renderer/assets/lean-CTow-IzD.js +7 -0
  189. package/out/renderer/assets/less-BAzLMJNR.js +7 -0
  190. package/out/renderer/assets/light-plus-DS08Xg5J.js +4 -0
  191. package/out/renderer/assets/linear-ecuEcPGt.js +340 -0
  192. package/out/renderer/assets/liquid-QmJ_LYTW.js +15 -0
  193. package/out/renderer/assets/llvm-CTKcAHbb.js +7 -0
  194. package/out/renderer/assets/log-BF22rfM9.js +7 -0
  195. package/out/renderer/assets/logo-D9l7oEJ8.js +7 -0
  196. package/out/renderer/assets/lua-BVbbqwZC.js +9 -0
  197. package/out/renderer/assets/luau-CdZ6BoEa.js +7 -0
  198. package/out/renderer/assets/make-DLtqaK4D.js +7 -0
  199. package/out/renderer/assets/markdown-F_EULe_G.js +7 -0
  200. package/out/renderer/assets/marko-BAWrmNIa.js +15 -0
  201. package/out/renderer/assets/material-theme-B8B2U48Q.js +4 -0
  202. package/out/renderer/assets/material-theme-darker-BV0iY_T3.js +4 -0
  203. package/out/renderer/assets/material-theme-lighter-DrzybSTF.js +4 -0
  204. package/out/renderer/assets/material-theme-ocean-BRPLVReX.js +4 -0
  205. package/out/renderer/assets/material-theme-palenight-DSJwsR_D.js +4 -0
  206. package/out/renderer/assets/matlab-7XHduepk.js +7 -0
  207. package/out/renderer/assets/mdc-Ca0ft0PS.js +16 -0
  208. package/out/renderer/assets/mdx-D5wExp-O.js +7 -0
  209. package/out/renderer/assets/mermaid-z_1ejSlp.js +7 -0
  210. package/out/renderer/assets/min-BYCDJeWK.js +41 -0
  211. package/out/renderer/assets/min-dark-BNaN9fWk.js +4 -0
  212. package/out/renderer/assets/min-light-CMrjentn.js +4 -0
  213. package/out/renderer/assets/mindmap-definition-QFDTVHPH-D2MxZmzw.js +1186 -0
  214. package/out/renderer/assets/mipsasm-BQyyUrpa.js +7 -0
  215. package/out/renderer/assets/mojo-ByCRDvCf.js +7 -0
  216. package/out/renderer/assets/monokai-DelygWXa.js +4 -0
  217. package/out/renderer/assets/moonbit-CqjK87KZ.js +7 -0
  218. package/out/renderer/assets/move-DhTNmxqC.js +7 -0
  219. package/out/renderer/assets/narrat-CLjGcbCy.js +7 -0
  220. package/out/renderer/assets/nextflow-B166B-y1.js +9 -0
  221. package/out/renderer/assets/nextflow-groovy-BOO9s0iq.js +7 -0
  222. package/out/renderer/assets/nginx-BFAkI5_-.js +10 -0
  223. package/out/renderer/assets/night-owl-DSS199ra.js +4 -0
  224. package/out/renderer/assets/night-owl-light-gC6E-Eh2.js +4 -0
  225. package/out/renderer/assets/nim-B3PAIZ4D.js +22 -0
  226. package/out/renderer/assets/nix-ByWcmvXF.js +12 -0
  227. package/out/renderer/assets/nord-CvDbBq5M.js +4 -0
  228. package/out/renderer/assets/nushell-DB8ZUEbK.js +7 -0
  229. package/out/renderer/assets/objective-c-BRoNQF42.js +7 -0
  230. package/out/renderer/assets/objective-cpp-DEoN9Fe5.js +7 -0
  231. package/out/renderer/assets/ocaml-B1kfGk9Y.js +7 -0
  232. package/out/renderer/assets/odin-CNQ56Ay2.js +7 -0
  233. package/out/renderer/assets/one-dark-pro-CsMf0BoJ.js +4 -0
  234. package/out/renderer/assets/one-light-B0cTzZyr.js +4 -0
  235. package/out/renderer/assets/openscad-C_m7ehZF.js +7 -0
  236. package/out/renderer/assets/ordinal-CxptdPJm.js +76 -0
  237. package/out/renderer/assets/pascal-CU8Kjkr_.js +7 -0
  238. package/out/renderer/assets/pdf-worker-wrapper-Do-ikGHl.js +46762 -0
  239. package/out/renderer/assets/perl-HITCDkgu.js +18 -0
  240. package/out/renderer/assets/php-C2HieitX.js +20 -0
  241. package/out/renderer/assets/pieDiagram-DEJITSTG-Cew7QWxE.js +248 -0
  242. package/out/renderer/assets/pierre-dark-C-Drv5KU.js +4 -0
  243. package/out/renderer/assets/pierre-dark-soft-Cd74uQaL.js +4 -0
  244. package/out/renderer/assets/pierre-light-CfQnmt6J.js +4 -0
  245. package/out/renderer/assets/pierre-light-soft-DMVdU74b.js +4 -0
  246. package/out/renderer/assets/pkl-BsByaYax.js +7 -0
  247. package/out/renderer/assets/plastic-BjwMpBc0.js +4 -0
  248. package/out/renderer/assets/plsql-B3Na24V4.js +7 -0
  249. package/out/renderer/assets/po-BajfNjc5.js +7 -0
  250. package/out/renderer/assets/poimandres-ChWyhPrn.js +4 -0
  251. package/out/renderer/assets/polar-BB-dlxnO.js +7 -0
  252. package/out/renderer/assets/postcss-kj1IbjVd.js +7 -0
  253. package/out/renderer/assets/powerquery-B-e1fO-k.js +7 -0
  254. package/out/renderer/assets/powershell-BcMVbGpk.js +7 -0
  255. package/out/renderer/assets/prisma-bmxcSDxq.js +7 -0
  256. package/out/renderer/assets/prolog-BT9GCzqD.js +7 -0
  257. package/out/renderer/assets/proto-Ds-m32NR.js +7 -0
  258. package/out/renderer/assets/pug-BwQB43qN.js +13 -0
  259. package/out/renderer/assets/puppet-N15G4Usj.js +7 -0
  260. package/out/renderer/assets/purescript-DrwsEYNH.js +7 -0
  261. package/out/renderer/assets/python-CrdIx4PZ.js +7 -0
  262. package/out/renderer/assets/qml-jtL8okyu.js +9 -0
  263. package/out/renderer/assets/qmldir-DuMSk0Oz.js +7 -0
  264. package/out/renderer/assets/qss-BFrB6p4y.js +7 -0
  265. package/out/renderer/assets/quadrantDiagram-34T5L4WZ-CrZCtVJh.js +1342 -0
  266. package/out/renderer/assets/r-Dpdc-Kyk.js +7 -0
  267. package/out/renderer/assets/racket-DbA06HL7.js +7 -0
  268. package/out/renderer/assets/raku-6v-Y17bs.js +7 -0
  269. package/out/renderer/assets/razor-gBXW6YBJ.js +13 -0
  270. package/out/renderer/assets/red-DByOl5N0.js +4 -0
  271. package/out/renderer/assets/reg-CULnG2WX.js +7 -0
  272. package/out/renderer/assets/regexp-BxWeO75u.js +7 -0
  273. package/out/renderer/assets/rel-CHRwzjd4.js +7 -0
  274. package/out/renderer/assets/requirementDiagram-MS252O5E-C69IGxW8.js +1204 -0
  275. package/out/renderer/assets/riscv-BNQ9cVpw.js +7 -0
  276. package/out/renderer/assets/ron-CUEPaFZU.js +7 -0
  277. package/out/renderer/assets/rose-pine-B-kZ4Z9q.js +4 -0
  278. package/out/renderer/assets/rose-pine-dawn-efeVGdSI.js +4 -0
  279. package/out/renderer/assets/rose-pine-moon-DmodZNzl.js +4 -0
  280. package/out/renderer/assets/rosmsg-Bfahr6vb.js +7 -0
  281. package/out/renderer/assets/rst-by6KAwTb.js +37 -0
  282. package/out/renderer/assets/ruby-C13Bjepi.js +37 -0
  283. package/out/renderer/assets/rust-CMNYZh5a.js +7 -0
  284. package/out/renderer/assets/sankeyDiagram-XADWPNL6-B2tuS_nG.js +1205 -0
  285. package/out/renderer/assets/sas-BLBgC3TA.js +9 -0
  286. package/out/renderer/assets/sass-BheygBdF.js +7 -0
  287. package/out/renderer/assets/scala-B-_7vFVn.js +7 -0
  288. package/out/renderer/assets/scheme-BSHdPinv.js +7 -0
  289. package/out/renderer/assets/scss-Dq-LbI_c.js +9 -0
  290. package/out/renderer/assets/sdbl-BBUhycGU.js +7 -0
  291. package/out/renderer/assets/sequenceDiagram-FGHM5R23-Dv_lOZN1.js +4502 -0
  292. package/out/renderer/assets/shaderlab-C07uO3dL.js +9 -0
  293. package/out/renderer/assets/shellscript-CQ8MXh-D.js +7 -0
  294. package/out/renderer/assets/shellsession-CkeTp4M1.js +9 -0
  295. package/out/renderer/assets/slack-dark-BEe10hxO.js +4 -0
  296. package/out/renderer/assets/slack-ochin-BKmu9pBc.js +4 -0
  297. package/out/renderer/assets/smalltalk-qxcGy4fT.js +7 -0
  298. package/out/renderer/assets/snazzy-light-Dcvd-ZyI.js +4 -0
  299. package/out/renderer/assets/solarized-dark-BBl5y5sR.js +4 -0
  300. package/out/renderer/assets/solarized-light-DW9b_AY8.js +4 -0
  301. package/out/renderer/assets/solidity-CSTQ0FCC.js +7 -0
  302. package/out/renderer/assets/soy-BHaHgMUy.js +11 -0
  303. package/out/renderer/assets/sparql-DswowMAp.js +9 -0
  304. package/out/renderer/assets/splunk-DcGJXIDa.js +7 -0
  305. package/out/renderer/assets/sql-DzUuSofg.js +7 -0
  306. package/out/renderer/assets/ssh-config-Bk_I5wDR.js +7 -0
  307. package/out/renderer/assets/stata-Dl7wDdBE.js +9 -0
  308. package/out/renderer/assets/stateDiagram-FHFEXIEX-D9dJAqtV.js +452 -0
  309. package/out/renderer/assets/stateDiagram-v2-QKLJ7IA2-CQXoaDY1.js +21 -0
  310. package/out/renderer/assets/stylus-DXFa_2Jl.js +7 -0
  311. package/out/renderer/assets/surrealql-Bs3vUeKA.js +9 -0
  312. package/out/renderer/assets/svelte-fC0HkEkx.js +15 -0
  313. package/out/renderer/assets/swift-Cohr-WZC.js +7 -0
  314. package/out/renderer/assets/synthwave-84-CoUef9sh.js +4 -0
  315. package/out/renderer/assets/system-verilog-BcESSvRn.js +7 -0
  316. package/out/renderer/assets/systemd-DJPFjU02.js +7 -0
  317. package/out/renderer/assets/talonscript-CEEMXJTH.js +7 -0
  318. package/out/renderer/assets/tasl-DfOr2qHi.js +7 -0
  319. package/out/renderer/assets/tcl-CTsc4-t7.js +7 -0
  320. package/out/renderer/assets/templ-CSEiQwNm.js +13 -0
  321. package/out/renderer/assets/terraform-CeztUfUr.js +7 -0
  322. package/out/renderer/assets/tex-CGVqF8nD.js +9 -0
  323. package/out/renderer/assets/timeline-definition-GMOUNBTQ-DnnX0Ml0.js +1596 -0
  324. package/out/renderer/assets/tokyo-night-DjtLpAEY.js +4 -0
  325. package/out/renderer/assets/toml-vHPzWDj6.js +7 -0
  326. package/out/renderer/assets/ts-tags-cG2hZuda.js +54 -0
  327. package/out/renderer/assets/tsv-ChRVFvMy.js +7 -0
  328. package/out/renderer/assets/tsx-CmGGo4Hm.js +7 -0
  329. package/out/renderer/assets/turtle-BnC7StHY.js +7 -0
  330. package/out/renderer/assets/twig-CwEEYIBf.js +36 -0
  331. package/out/renderer/assets/typescript-CP6ECzON.js +7 -0
  332. package/out/renderer/assets/typespec-CkDVVIcK.js +7 -0
  333. package/out/renderer/assets/typst-XYLFxYau.js +7 -0
  334. package/out/renderer/assets/v-BSYXvR4g.js +7 -0
  335. package/out/renderer/assets/vala-qJa5rry9.js +7 -0
  336. package/out/renderer/assets/vb-Bzg9rspf.js +7 -0
  337. package/out/renderer/assets/vennDiagram-DHZGUBPP-BCIC8HTk.js +2486 -0
  338. package/out/renderer/assets/verilog-CCb_iTfF.js +7 -0
  339. package/out/renderer/assets/vesper-4Q1cEwPL.js +4 -0
  340. package/out/renderer/assets/vhdl-DMqk4T2s.js +7 -0
  341. package/out/renderer/assets/viml--FINbfoq.js +7 -0
  342. package/out/renderer/assets/vitesse-black-BqNLki8b.js +4 -0
  343. package/out/renderer/assets/vitesse-dark-jJ32WhwH.js +4 -0
  344. package/out/renderer/assets/vitesse-light-476zM4e6.js +4 -0
  345. package/out/renderer/assets/vue-K-7Ga-y8.js +40 -0
  346. package/out/renderer/assets/vue-html-DhreShjd.js +9 -0
  347. package/out/renderer/assets/vue-vine-rMIwOpFf.js +19 -0
  348. package/out/renderer/assets/vyper-DP4whl13.js +7 -0
  349. package/out/renderer/assets/wardley-RL74JXVD-B35jxdMa.js +27371 -0
  350. package/out/renderer/assets/wardleyDiagram-NUSXRM2D-D3rjXear.js +901 -0
  351. package/out/renderer/assets/wasm-BBh6f151.js +7 -0
  352. package/out/renderer/assets/wasm-DDgzZJey.js +10 -0
  353. package/out/renderer/assets/wenyan-BdqozpMZ.js +7 -0
  354. package/out/renderer/assets/wgsl-Vo-hHVWH.js +7 -0
  355. package/out/renderer/assets/wikitext-BDjE6pmL.js +7 -0
  356. package/out/renderer/assets/wit-C_nQzOkY.js +7 -0
  357. package/out/renderer/assets/wolfram-CRmjUoI4.js +7 -0
  358. package/out/renderer/assets/xml-BMzZeaqs.js +9 -0
  359. package/out/renderer/assets/xsl-CnwVr_6q.js +10 -0
  360. package/out/renderer/assets/xychartDiagram-5P7HB3ND-095YR9W9.js +1932 -0
  361. package/out/renderer/assets/yaml-B_vW5iTY.js +7 -0
  362. package/out/renderer/assets/zenscript-DFINJL6j.js +7 -0
  363. package/out/renderer/assets/zig-CS4FMAZp.js +7 -0
  364. package/out/renderer/index.html +13 -0
  365. package/out/scripts/electron-preload/preload.mjs +35 -0
  366. package/out/scripts/mcp-ask-user/server.mjs +126 -0
  367. package/out/scripts/mcp-skills/server.mjs +163 -0
  368. package/out/server/main.js +7000 -0
  369. package/package.json +44 -0
@@ -0,0 +1,1255 @@
1
+ import { g as getIconStyles } from "./chunk-FMBD7UC4-C_qJYK5q.js";
2
+ import { a as drawBackgroundRect, g as getNoteRect, h as drawText, d as drawRect } from "./chunk-YZCP3GAM-BeF07Xv_.js";
3
+ import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, v as getDiagramTitle, t as setDiagramTitle, _ as __name, c as getConfig2, d as select, e as configureSvgSize, C as clear } from "./index-Dabo17L1.js";
4
+ import { d as d3arc } from "./arc-BXqrFYj-.js";
5
+ var parser = (function() {
6
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
7
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
8
+ return o2;
9
+ }, "o"), $V0 = [6, 8, 10, 11, 12, 14, 16, 17, 18], $V1 = [1, 9], $V2 = [1, 10], $V3 = [1, 11], $V4 = [1, 12], $V5 = [1, 13], $V6 = [1, 14];
10
+ var parser2 = {
11
+ trace: /* @__PURE__ */ __name(function trace() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { "error": 2, "start": 3, "journey": 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, "taskName": 18, "taskData": 19, "$accept": 0, "$end": 1 },
15
+ terminals_: { 2: "error", 4: "journey", 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", 18: "taskName", 19: "taskData" },
16
+ 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, 2]],
17
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
18
+ var $0 = $$.length - 1;
19
+ switch (yystate) {
20
+ case 1:
21
+ return $$[$0 - 1];
22
+ case 2:
23
+ this.$ = [];
24
+ break;
25
+ case 3:
26
+ $$[$0 - 1].push($$[$0]);
27
+ this.$ = $$[$0 - 1];
28
+ break;
29
+ case 4:
30
+ case 5:
31
+ this.$ = $$[$0];
32
+ break;
33
+ case 6:
34
+ case 7:
35
+ this.$ = [];
36
+ break;
37
+ case 8:
38
+ yy.setDiagramTitle($$[$0].substr(6));
39
+ this.$ = $$[$0].substr(6);
40
+ break;
41
+ case 9:
42
+ this.$ = $$[$0].trim();
43
+ yy.setAccTitle(this.$);
44
+ break;
45
+ case 10:
46
+ case 11:
47
+ this.$ = $$[$0].trim();
48
+ yy.setAccDescription(this.$);
49
+ break;
50
+ case 12:
51
+ yy.addSection($$[$0].substr(8));
52
+ this.$ = $$[$0].substr(8);
53
+ break;
54
+ case 13:
55
+ yy.addTask($$[$0 - 1], $$[$0]);
56
+ this.$ = "task";
57
+ break;
58
+ }
59
+ }, "anonymous"),
60
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, o($V0, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: $V1, 12: $V2, 14: $V3, 16: $V4, 17: $V5, 18: $V6 }, o($V0, [2, 7], { 1: [2, 1] }), o($V0, [2, 3]), { 9: 15, 11: $V1, 12: $V2, 14: $V3, 16: $V4, 17: $V5, 18: $V6 }, o($V0, [2, 5]), o($V0, [2, 6]), o($V0, [2, 8]), { 13: [1, 16] }, { 15: [1, 17] }, o($V0, [2, 11]), o($V0, [2, 12]), { 19: [1, 18] }, o($V0, [2, 4]), o($V0, [2, 9]), o($V0, [2, 10]), o($V0, [2, 13])],
61
+ defaultActions: {},
62
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
63
+ if (hash.recoverable) {
64
+ this.trace(str);
65
+ } else {
66
+ var error = new Error(str);
67
+ error.hash = hash;
68
+ throw error;
69
+ }
70
+ }, "parseError"),
71
+ parse: /* @__PURE__ */ __name(function parse(input) {
72
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
73
+ var args = lstack.slice.call(arguments, 1);
74
+ var lexer2 = Object.create(this.lexer);
75
+ var sharedState = { yy: {} };
76
+ for (var k in this.yy) {
77
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
78
+ sharedState.yy[k] = this.yy[k];
79
+ }
80
+ }
81
+ lexer2.setInput(input, sharedState.yy);
82
+ sharedState.yy.lexer = lexer2;
83
+ sharedState.yy.parser = this;
84
+ if (typeof lexer2.yylloc == "undefined") {
85
+ lexer2.yylloc = {};
86
+ }
87
+ var yyloc = lexer2.yylloc;
88
+ lstack.push(yyloc);
89
+ var ranges = lexer2.options && lexer2.options.ranges;
90
+ if (typeof sharedState.yy.parseError === "function") {
91
+ this.parseError = sharedState.yy.parseError;
92
+ } else {
93
+ this.parseError = Object.getPrototypeOf(this).parseError;
94
+ }
95
+ function popStack(n) {
96
+ stack.length = stack.length - 2 * n;
97
+ vstack.length = vstack.length - n;
98
+ lstack.length = lstack.length - n;
99
+ }
100
+ __name(popStack, "popStack");
101
+ function lex() {
102
+ var token;
103
+ token = tstack.pop() || lexer2.lex() || EOF;
104
+ if (typeof token !== "number") {
105
+ if (token instanceof Array) {
106
+ tstack = token;
107
+ token = tstack.pop();
108
+ }
109
+ token = self.symbols_[token] || token;
110
+ }
111
+ return token;
112
+ }
113
+ __name(lex, "lex");
114
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
115
+ while (true) {
116
+ state = stack[stack.length - 1];
117
+ if (this.defaultActions[state]) {
118
+ action = this.defaultActions[state];
119
+ } else {
120
+ if (symbol === null || typeof symbol == "undefined") {
121
+ symbol = lex();
122
+ }
123
+ action = table[state] && table[state][symbol];
124
+ }
125
+ if (typeof action === "undefined" || !action.length || !action[0]) {
126
+ var errStr = "";
127
+ expected = [];
128
+ for (p in table[state]) {
129
+ if (this.terminals_[p] && p > TERROR) {
130
+ expected.push("'" + this.terminals_[p] + "'");
131
+ }
132
+ }
133
+ if (lexer2.showPosition) {
134
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
135
+ } else {
136
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
137
+ }
138
+ this.parseError(errStr, {
139
+ text: lexer2.match,
140
+ token: this.terminals_[symbol] || symbol,
141
+ line: lexer2.yylineno,
142
+ loc: yyloc,
143
+ expected
144
+ });
145
+ }
146
+ if (action[0] instanceof Array && action.length > 1) {
147
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
148
+ }
149
+ switch (action[0]) {
150
+ case 1:
151
+ stack.push(symbol);
152
+ vstack.push(lexer2.yytext);
153
+ lstack.push(lexer2.yylloc);
154
+ stack.push(action[1]);
155
+ symbol = null;
156
+ {
157
+ yyleng = lexer2.yyleng;
158
+ yytext = lexer2.yytext;
159
+ yylineno = lexer2.yylineno;
160
+ yyloc = lexer2.yylloc;
161
+ }
162
+ break;
163
+ case 2:
164
+ len = this.productions_[action[1]][1];
165
+ yyval.$ = vstack[vstack.length - len];
166
+ yyval._$ = {
167
+ first_line: lstack[lstack.length - (len || 1)].first_line,
168
+ last_line: lstack[lstack.length - 1].last_line,
169
+ first_column: lstack[lstack.length - (len || 1)].first_column,
170
+ last_column: lstack[lstack.length - 1].last_column
171
+ };
172
+ if (ranges) {
173
+ yyval._$.range = [
174
+ lstack[lstack.length - (len || 1)].range[0],
175
+ lstack[lstack.length - 1].range[1]
176
+ ];
177
+ }
178
+ r = this.performAction.apply(yyval, [
179
+ yytext,
180
+ yyleng,
181
+ yylineno,
182
+ sharedState.yy,
183
+ action[1],
184
+ vstack,
185
+ lstack
186
+ ].concat(args));
187
+ if (typeof r !== "undefined") {
188
+ return r;
189
+ }
190
+ if (len) {
191
+ stack = stack.slice(0, -1 * len * 2);
192
+ vstack = vstack.slice(0, -1 * len);
193
+ lstack = lstack.slice(0, -1 * len);
194
+ }
195
+ stack.push(this.productions_[action[1]][0]);
196
+ vstack.push(yyval.$);
197
+ lstack.push(yyval._$);
198
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
199
+ stack.push(newState);
200
+ break;
201
+ case 3:
202
+ return true;
203
+ }
204
+ }
205
+ return true;
206
+ }, "parse")
207
+ };
208
+ var lexer = /* @__PURE__ */ (function() {
209
+ var lexer2 = {
210
+ EOF: 1,
211
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
212
+ if (this.yy.parser) {
213
+ this.yy.parser.parseError(str, hash);
214
+ } else {
215
+ throw new Error(str);
216
+ }
217
+ }, "parseError"),
218
+ // resets the lexer, sets new input
219
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
220
+ this.yy = yy || this.yy || {};
221
+ this._input = input;
222
+ this._more = this._backtrack = this.done = false;
223
+ this.yylineno = this.yyleng = 0;
224
+ this.yytext = this.matched = this.match = "";
225
+ this.conditionStack = ["INITIAL"];
226
+ this.yylloc = {
227
+ first_line: 1,
228
+ first_column: 0,
229
+ last_line: 1,
230
+ last_column: 0
231
+ };
232
+ if (this.options.ranges) {
233
+ this.yylloc.range = [0, 0];
234
+ }
235
+ this.offset = 0;
236
+ return this;
237
+ }, "setInput"),
238
+ // consumes and returns one char from the input
239
+ input: /* @__PURE__ */ __name(function() {
240
+ var ch = this._input[0];
241
+ this.yytext += ch;
242
+ this.yyleng++;
243
+ this.offset++;
244
+ this.match += ch;
245
+ this.matched += ch;
246
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
247
+ if (lines) {
248
+ this.yylineno++;
249
+ this.yylloc.last_line++;
250
+ } else {
251
+ this.yylloc.last_column++;
252
+ }
253
+ if (this.options.ranges) {
254
+ this.yylloc.range[1]++;
255
+ }
256
+ this._input = this._input.slice(1);
257
+ return ch;
258
+ }, "input"),
259
+ // unshifts one char (or a string) into the input
260
+ unput: /* @__PURE__ */ __name(function(ch) {
261
+ var len = ch.length;
262
+ var lines = ch.split(/(?:\r\n?|\n)/g);
263
+ this._input = ch + this._input;
264
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
265
+ this.offset -= len;
266
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
267
+ this.match = this.match.substr(0, this.match.length - 1);
268
+ this.matched = this.matched.substr(0, this.matched.length - 1);
269
+ if (lines.length - 1) {
270
+ this.yylineno -= lines.length - 1;
271
+ }
272
+ var r = this.yylloc.range;
273
+ this.yylloc = {
274
+ first_line: this.yylloc.first_line,
275
+ last_line: this.yylineno + 1,
276
+ first_column: this.yylloc.first_column,
277
+ 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
278
+ };
279
+ if (this.options.ranges) {
280
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
281
+ }
282
+ this.yyleng = this.yytext.length;
283
+ return this;
284
+ }, "unput"),
285
+ // When called from action, caches matched text and appends it on next action
286
+ more: /* @__PURE__ */ __name(function() {
287
+ this._more = true;
288
+ return this;
289
+ }, "more"),
290
+ // 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.
291
+ reject: /* @__PURE__ */ __name(function() {
292
+ if (this.options.backtrack_lexer) {
293
+ this._backtrack = true;
294
+ } else {
295
+ 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(), {
296
+ text: "",
297
+ token: null,
298
+ line: this.yylineno
299
+ });
300
+ }
301
+ return this;
302
+ }, "reject"),
303
+ // retain first n characters of the match
304
+ less: /* @__PURE__ */ __name(function(n) {
305
+ this.unput(this.match.slice(n));
306
+ }, "less"),
307
+ // displays already matched input, i.e. for error messages
308
+ pastInput: /* @__PURE__ */ __name(function() {
309
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
310
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
311
+ }, "pastInput"),
312
+ // displays upcoming input, i.e. for error messages
313
+ upcomingInput: /* @__PURE__ */ __name(function() {
314
+ var next = this.match;
315
+ if (next.length < 20) {
316
+ next += this._input.substr(0, 20 - next.length);
317
+ }
318
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
319
+ }, "upcomingInput"),
320
+ // displays the character position where the lexing error occurred, i.e. for error messages
321
+ showPosition: /* @__PURE__ */ __name(function() {
322
+ var pre = this.pastInput();
323
+ var c = new Array(pre.length + 1).join("-");
324
+ return pre + this.upcomingInput() + "\n" + c + "^";
325
+ }, "showPosition"),
326
+ // test the lexed token: return FALSE when not a match, otherwise return token
327
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
328
+ var token, lines, backup;
329
+ if (this.options.backtrack_lexer) {
330
+ backup = {
331
+ yylineno: this.yylineno,
332
+ yylloc: {
333
+ first_line: this.yylloc.first_line,
334
+ last_line: this.last_line,
335
+ first_column: this.yylloc.first_column,
336
+ last_column: this.yylloc.last_column
337
+ },
338
+ yytext: this.yytext,
339
+ match: this.match,
340
+ matches: this.matches,
341
+ matched: this.matched,
342
+ yyleng: this.yyleng,
343
+ offset: this.offset,
344
+ _more: this._more,
345
+ _input: this._input,
346
+ yy: this.yy,
347
+ conditionStack: this.conditionStack.slice(0),
348
+ done: this.done
349
+ };
350
+ if (this.options.ranges) {
351
+ backup.yylloc.range = this.yylloc.range.slice(0);
352
+ }
353
+ }
354
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
355
+ if (lines) {
356
+ this.yylineno += lines.length;
357
+ }
358
+ this.yylloc = {
359
+ first_line: this.yylloc.last_line,
360
+ last_line: this.yylineno + 1,
361
+ first_column: this.yylloc.last_column,
362
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
363
+ };
364
+ this.yytext += match[0];
365
+ this.match += match[0];
366
+ this.matches = match;
367
+ this.yyleng = this.yytext.length;
368
+ if (this.options.ranges) {
369
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
370
+ }
371
+ this._more = false;
372
+ this._backtrack = false;
373
+ this._input = this._input.slice(match[0].length);
374
+ this.matched += match[0];
375
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
376
+ if (this.done && this._input) {
377
+ this.done = false;
378
+ }
379
+ if (token) {
380
+ return token;
381
+ } else if (this._backtrack) {
382
+ for (var k in backup) {
383
+ this[k] = backup[k];
384
+ }
385
+ return false;
386
+ }
387
+ return false;
388
+ }, "test_match"),
389
+ // return next match in input
390
+ next: /* @__PURE__ */ __name(function() {
391
+ if (this.done) {
392
+ return this.EOF;
393
+ }
394
+ if (!this._input) {
395
+ this.done = true;
396
+ }
397
+ var token, match, tempMatch, index;
398
+ if (!this._more) {
399
+ this.yytext = "";
400
+ this.match = "";
401
+ }
402
+ var rules = this._currentRules();
403
+ for (var i = 0; i < rules.length; i++) {
404
+ tempMatch = this._input.match(this.rules[rules[i]]);
405
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
406
+ match = tempMatch;
407
+ index = i;
408
+ if (this.options.backtrack_lexer) {
409
+ token = this.test_match(tempMatch, rules[i]);
410
+ if (token !== false) {
411
+ return token;
412
+ } else if (this._backtrack) {
413
+ match = false;
414
+ continue;
415
+ } else {
416
+ return false;
417
+ }
418
+ } else if (!this.options.flex) {
419
+ break;
420
+ }
421
+ }
422
+ }
423
+ if (match) {
424
+ token = this.test_match(match, rules[index]);
425
+ if (token !== false) {
426
+ return token;
427
+ }
428
+ return false;
429
+ }
430
+ if (this._input === "") {
431
+ return this.EOF;
432
+ } else {
433
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
434
+ text: "",
435
+ token: null,
436
+ line: this.yylineno
437
+ });
438
+ }
439
+ }, "next"),
440
+ // return next match that has a token
441
+ lex: /* @__PURE__ */ __name(function lex() {
442
+ var r = this.next();
443
+ if (r) {
444
+ return r;
445
+ } else {
446
+ return this.lex();
447
+ }
448
+ }, "lex"),
449
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
450
+ begin: /* @__PURE__ */ __name(function begin(condition) {
451
+ this.conditionStack.push(condition);
452
+ }, "begin"),
453
+ // pop the previously active lexer condition state off the condition stack
454
+ popState: /* @__PURE__ */ __name(function popState() {
455
+ var n = this.conditionStack.length - 1;
456
+ if (n > 0) {
457
+ return this.conditionStack.pop();
458
+ } else {
459
+ return this.conditionStack[0];
460
+ }
461
+ }, "popState"),
462
+ // produce the lexer rule set which is active for the currently active lexer condition state
463
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
464
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
465
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
466
+ } else {
467
+ return this.conditions["INITIAL"].rules;
468
+ }
469
+ }, "_currentRules"),
470
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
471
+ topState: /* @__PURE__ */ __name(function topState(n) {
472
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
473
+ if (n >= 0) {
474
+ return this.conditionStack[n];
475
+ } else {
476
+ return "INITIAL";
477
+ }
478
+ }, "topState"),
479
+ // alias for begin(condition)
480
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
481
+ this.begin(condition);
482
+ }, "pushState"),
483
+ // return the number of states currently on the stack
484
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
485
+ return this.conditionStack.length;
486
+ }, "stateStackSize"),
487
+ options: { "case-insensitive": true },
488
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
489
+ switch ($avoiding_name_collisions) {
490
+ case 0:
491
+ break;
492
+ case 1:
493
+ break;
494
+ case 2:
495
+ return 10;
496
+ case 3:
497
+ break;
498
+ case 4:
499
+ break;
500
+ case 5:
501
+ return 4;
502
+ case 6:
503
+ return 11;
504
+ case 7:
505
+ this.begin("acc_title");
506
+ return 12;
507
+ case 8:
508
+ this.popState();
509
+ return "acc_title_value";
510
+ case 9:
511
+ this.begin("acc_descr");
512
+ return 14;
513
+ case 10:
514
+ this.popState();
515
+ return "acc_descr_value";
516
+ case 11:
517
+ this.begin("acc_descr_multiline");
518
+ break;
519
+ case 12:
520
+ this.popState();
521
+ break;
522
+ case 13:
523
+ return "acc_descr_multiline_value";
524
+ case 14:
525
+ return 17;
526
+ case 15:
527
+ return 18;
528
+ case 16:
529
+ return 19;
530
+ case 17:
531
+ return ":";
532
+ case 18:
533
+ return 6;
534
+ case 19:
535
+ return "INVALID";
536
+ }
537
+ }, "anonymous"),
538
+ rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:journey\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, /^(?:[^#:\n;]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
539
+ conditions: { "acc_descr_multiline": { "rules": [12, 13], "inclusive": false }, "acc_descr": { "rules": [10], "inclusive": false }, "acc_title": { "rules": [8], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19], "inclusive": true } }
540
+ };
541
+ return lexer2;
542
+ })();
543
+ parser2.lexer = lexer;
544
+ function Parser() {
545
+ this.yy = {};
546
+ }
547
+ __name(Parser, "Parser");
548
+ Parser.prototype = parser2;
549
+ parser2.Parser = Parser;
550
+ return new Parser();
551
+ })();
552
+ parser.parser = parser;
553
+ var journey_default = parser;
554
+ var currentSection = "";
555
+ var sections = [];
556
+ var tasks = [];
557
+ var rawTasks = [];
558
+ var clear2 = /* @__PURE__ */ __name(function() {
559
+ sections.length = 0;
560
+ tasks.length = 0;
561
+ currentSection = "";
562
+ rawTasks.length = 0;
563
+ clear();
564
+ }, "clear");
565
+ var addSection = /* @__PURE__ */ __name(function(txt) {
566
+ currentSection = txt;
567
+ sections.push(txt);
568
+ }, "addSection");
569
+ var getSections = /* @__PURE__ */ __name(function() {
570
+ return sections;
571
+ }, "getSections");
572
+ var getTasks = /* @__PURE__ */ __name(function() {
573
+ let allItemsProcessed = compileTasks();
574
+ const maxDepth = 100;
575
+ let iterationCount = 0;
576
+ while (!allItemsProcessed && iterationCount < maxDepth) {
577
+ allItemsProcessed = compileTasks();
578
+ iterationCount++;
579
+ }
580
+ tasks.push(...rawTasks);
581
+ return tasks;
582
+ }, "getTasks");
583
+ var updateActors = /* @__PURE__ */ __name(function() {
584
+ const tempActors = [];
585
+ tasks.forEach((task) => {
586
+ if (task.people) {
587
+ tempActors.push(...task.people);
588
+ }
589
+ });
590
+ const unique = new Set(tempActors);
591
+ return [...unique].sort();
592
+ }, "updateActors");
593
+ var addTask = /* @__PURE__ */ __name(function(descr, taskData) {
594
+ const pieces = taskData.substr(1).split(":");
595
+ let score = 0;
596
+ let peeps = [];
597
+ if (pieces.length === 1) {
598
+ score = Number(pieces[0]);
599
+ peeps = [];
600
+ } else {
601
+ score = Number(pieces[0]);
602
+ peeps = pieces[1].split(",");
603
+ }
604
+ const peopleList = peeps.map((s) => s.trim());
605
+ const rawTask = {
606
+ section: currentSection,
607
+ type: currentSection,
608
+ people: peopleList,
609
+ task: descr,
610
+ score
611
+ };
612
+ rawTasks.push(rawTask);
613
+ }, "addTask");
614
+ var addTaskOrg = /* @__PURE__ */ __name(function(descr) {
615
+ const newTask = {
616
+ section: currentSection,
617
+ type: currentSection,
618
+ description: descr,
619
+ task: descr,
620
+ classes: []
621
+ };
622
+ tasks.push(newTask);
623
+ }, "addTaskOrg");
624
+ var compileTasks = /* @__PURE__ */ __name(function() {
625
+ const compileTask = /* @__PURE__ */ __name(function(pos) {
626
+ return rawTasks[pos].processed;
627
+ }, "compileTask");
628
+ let allProcessed = true;
629
+ for (const [i, rawTask] of rawTasks.entries()) {
630
+ compileTask(i);
631
+ allProcessed = allProcessed && rawTask.processed;
632
+ }
633
+ return allProcessed;
634
+ }, "compileTasks");
635
+ var getActors = /* @__PURE__ */ __name(function() {
636
+ return updateActors();
637
+ }, "getActors");
638
+ var journeyDb_default = {
639
+ getConfig: /* @__PURE__ */ __name(() => getConfig2().journey, "getConfig"),
640
+ clear: clear2,
641
+ setDiagramTitle,
642
+ getDiagramTitle,
643
+ setAccTitle,
644
+ getAccTitle,
645
+ setAccDescription,
646
+ getAccDescription,
647
+ addSection,
648
+ getSections,
649
+ getTasks,
650
+ addTask,
651
+ addTaskOrg,
652
+ getActors
653
+ };
654
+ var getStyles = /* @__PURE__ */ __name((options) => `.label {
655
+ font-family: ${options.fontFamily};
656
+ color: ${options.textColor};
657
+ }
658
+ .mouth {
659
+ stroke: #666;
660
+ }
661
+
662
+ line {
663
+ stroke: ${options.textColor}
664
+ }
665
+
666
+ .legend {
667
+ fill: ${options.textColor};
668
+ font-family: ${options.fontFamily};
669
+ }
670
+
671
+ .label text {
672
+ fill: #333;
673
+ }
674
+ .label {
675
+ color: ${options.textColor}
676
+ }
677
+
678
+ .face {
679
+ ${options.faceColor ? `fill: ${options.faceColor}` : "fill: #FFF8DC"};
680
+ stroke: #999;
681
+ }
682
+
683
+ .node rect,
684
+ .node circle,
685
+ .node ellipse,
686
+ .node polygon,
687
+ .node path {
688
+ fill: ${options.mainBkg};
689
+ stroke: ${options.nodeBorder};
690
+ stroke-width: 1px;
691
+ }
692
+
693
+ .node .label {
694
+ text-align: center;
695
+ }
696
+ .node.clickable {
697
+ cursor: pointer;
698
+ }
699
+
700
+ .arrowheadPath {
701
+ fill: ${options.arrowheadColor};
702
+ }
703
+
704
+ .edgePath .path {
705
+ stroke: ${options.lineColor};
706
+ stroke-width: 1.5px;
707
+ }
708
+
709
+ .flowchart-link {
710
+ stroke: ${options.lineColor};
711
+ fill: none;
712
+ }
713
+
714
+ .edgeLabel {
715
+ background-color: ${options.edgeLabelBackground};
716
+ rect {
717
+ opacity: 0.5;
718
+ }
719
+ text-align: center;
720
+ }
721
+
722
+ .cluster rect {
723
+ }
724
+
725
+ .cluster text {
726
+ fill: ${options.titleColor};
727
+ }
728
+
729
+ div.mermaidTooltip {
730
+ position: absolute;
731
+ text-align: center;
732
+ max-width: 200px;
733
+ padding: 2px;
734
+ font-family: ${options.fontFamily};
735
+ font-size: 12px;
736
+ background: ${options.tertiaryColor};
737
+ border: 1px solid ${options.border2};
738
+ border-radius: 2px;
739
+ pointer-events: none;
740
+ z-index: 100;
741
+ }
742
+
743
+ .task-type-0, .section-type-0 {
744
+ ${options.fillType0 ? `fill: ${options.fillType0}` : ""};
745
+ }
746
+ .task-type-1, .section-type-1 {
747
+ ${options.fillType0 ? `fill: ${options.fillType1}` : ""};
748
+ }
749
+ .task-type-2, .section-type-2 {
750
+ ${options.fillType0 ? `fill: ${options.fillType2}` : ""};
751
+ }
752
+ .task-type-3, .section-type-3 {
753
+ ${options.fillType0 ? `fill: ${options.fillType3}` : ""};
754
+ }
755
+ .task-type-4, .section-type-4 {
756
+ ${options.fillType0 ? `fill: ${options.fillType4}` : ""};
757
+ }
758
+ .task-type-5, .section-type-5 {
759
+ ${options.fillType0 ? `fill: ${options.fillType5}` : ""};
760
+ }
761
+ .task-type-6, .section-type-6 {
762
+ ${options.fillType0 ? `fill: ${options.fillType6}` : ""};
763
+ }
764
+ .task-type-7, .section-type-7 {
765
+ ${options.fillType0 ? `fill: ${options.fillType7}` : ""};
766
+ }
767
+
768
+ .actor-0 {
769
+ ${options.actor0 ? `fill: ${options.actor0}` : ""};
770
+ }
771
+ .actor-1 {
772
+ ${options.actor1 ? `fill: ${options.actor1}` : ""};
773
+ }
774
+ .actor-2 {
775
+ ${options.actor2 ? `fill: ${options.actor2}` : ""};
776
+ }
777
+ .actor-3 {
778
+ ${options.actor3 ? `fill: ${options.actor3}` : ""};
779
+ }
780
+ .actor-4 {
781
+ ${options.actor4 ? `fill: ${options.actor4}` : ""};
782
+ }
783
+ .actor-5 {
784
+ ${options.actor5 ? `fill: ${options.actor5}` : ""};
785
+ }
786
+ ${getIconStyles()}
787
+ `, "getStyles");
788
+ var styles_default = getStyles;
789
+ var drawRect2 = /* @__PURE__ */ __name(function(elem, rectData) {
790
+ return drawRect(elem, rectData);
791
+ }, "drawRect");
792
+ var drawFace = /* @__PURE__ */ __name(function(element, faceData) {
793
+ const radius = 15;
794
+ const circleElement = element.append("circle").attr("cx", faceData.cx).attr("cy", faceData.cy).attr("class", "face").attr("r", radius).attr("stroke-width", 2).attr("overflow", "visible");
795
+ const face = element.append("g");
796
+ face.append("circle").attr("cx", faceData.cx - radius / 3).attr("cy", faceData.cy - radius / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
797
+ face.append("circle").attr("cx", faceData.cx + radius / 3).attr("cy", faceData.cy - radius / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
798
+ function smile(face2) {
799
+ const arc = d3arc().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2);
800
+ face2.append("path").attr("class", "mouth").attr("d", arc).attr("transform", "translate(" + faceData.cx + "," + (faceData.cy + 2) + ")");
801
+ }
802
+ __name(smile, "smile");
803
+ function sad(face2) {
804
+ const arc = d3arc().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2);
805
+ face2.append("path").attr("class", "mouth").attr("d", arc).attr("transform", "translate(" + faceData.cx + "," + (faceData.cy + 7) + ")");
806
+ }
807
+ __name(sad, "sad");
808
+ function ambivalent(face2) {
809
+ face2.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", faceData.cx - 5).attr("y1", faceData.cy + 7).attr("x2", faceData.cx + 5).attr("y2", faceData.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
810
+ }
811
+ __name(ambivalent, "ambivalent");
812
+ if (faceData.score > 3) {
813
+ smile(face);
814
+ } else if (faceData.score < 3) {
815
+ sad(face);
816
+ } else {
817
+ ambivalent(face);
818
+ }
819
+ return circleElement;
820
+ }, "drawFace");
821
+ var drawCircle = /* @__PURE__ */ __name(function(element, circleData) {
822
+ const circleElement = element.append("circle");
823
+ circleElement.attr("cx", circleData.cx);
824
+ circleElement.attr("cy", circleData.cy);
825
+ circleElement.attr("class", "actor-" + circleData.pos);
826
+ circleElement.attr("fill", circleData.fill);
827
+ circleElement.attr("stroke", circleData.stroke);
828
+ circleElement.attr("r", circleData.r);
829
+ if (circleElement.class !== void 0) {
830
+ circleElement.attr("class", circleElement.class);
831
+ }
832
+ if (circleData.title !== void 0) {
833
+ circleElement.append("title").text(circleData.title);
834
+ }
835
+ return circleElement;
836
+ }, "drawCircle");
837
+ var drawText2 = /* @__PURE__ */ __name(function(elem, textData) {
838
+ return drawText(elem, textData);
839
+ }, "drawText");
840
+ var drawLabel = /* @__PURE__ */ __name(function(elem, txtObject) {
841
+ function genPoints(x, y, width, height, cut) {
842
+ return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
843
+ }
844
+ __name(genPoints, "genPoints");
845
+ const polygon = elem.append("polygon");
846
+ polygon.attr("points", genPoints(txtObject.x, txtObject.y, 50, 20, 7));
847
+ polygon.attr("class", "labelBox");
848
+ txtObject.y = txtObject.y + txtObject.labelMargin;
849
+ txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;
850
+ drawText2(elem, txtObject);
851
+ }, "drawLabel");
852
+ var drawSection = /* @__PURE__ */ __name(function(elem, section, conf2) {
853
+ const g = elem.append("g");
854
+ const rect = getNoteRect();
855
+ rect.x = section.x;
856
+ rect.y = section.y;
857
+ rect.fill = section.fill;
858
+ rect.width = conf2.width * section.taskCount + // width of the tasks
859
+ conf2.diagramMarginX * (section.taskCount - 1);
860
+ rect.height = conf2.height;
861
+ rect.class = "journey-section section-type-" + section.num;
862
+ rect.rx = 3;
863
+ rect.ry = 3;
864
+ drawRect2(g, rect);
865
+ _drawTextCandidateFunc(conf2)(
866
+ section.text,
867
+ g,
868
+ rect.x,
869
+ rect.y,
870
+ rect.width,
871
+ rect.height,
872
+ { class: "journey-section section-type-" + section.num },
873
+ conf2,
874
+ section.colour
875
+ );
876
+ }, "drawSection");
877
+ var taskCount = -1;
878
+ var drawTask = /* @__PURE__ */ __name(function(elem, task, conf2, diagramId) {
879
+ const center = task.x + conf2.width / 2;
880
+ const g = elem.append("g");
881
+ taskCount++;
882
+ const maxHeight = 300 + 5 * 30;
883
+ g.append("line").attr("id", diagramId + "-task" + taskCount).attr("x1", center).attr("y1", task.y).attr("x2", center).attr("y2", maxHeight).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666");
884
+ drawFace(g, {
885
+ cx: center,
886
+ cy: 300 + (5 - task.score) * 30,
887
+ score: task.score
888
+ });
889
+ const rect = getNoteRect();
890
+ rect.x = task.x;
891
+ rect.y = task.y;
892
+ rect.fill = task.fill;
893
+ rect.width = conf2.width;
894
+ rect.height = conf2.height;
895
+ rect.class = "task task-type-" + task.num;
896
+ rect.rx = 3;
897
+ rect.ry = 3;
898
+ drawRect2(g, rect);
899
+ let xPos = task.x + 14;
900
+ task.people.forEach((person) => {
901
+ const colour = task.actors[person].color;
902
+ const circle = {
903
+ cx: xPos,
904
+ cy: task.y,
905
+ r: 7,
906
+ fill: colour,
907
+ stroke: "#000",
908
+ title: person,
909
+ pos: task.actors[person].position
910
+ };
911
+ drawCircle(g, circle);
912
+ xPos += 10;
913
+ });
914
+ _drawTextCandidateFunc(conf2)(
915
+ task.task,
916
+ g,
917
+ rect.x,
918
+ rect.y,
919
+ rect.width,
920
+ rect.height,
921
+ { class: "task" },
922
+ conf2,
923
+ task.colour
924
+ );
925
+ }, "drawTask");
926
+ var drawBackgroundRect2 = /* @__PURE__ */ __name(function(elem, bounds2) {
927
+ drawBackgroundRect(elem, bounds2);
928
+ }, "drawBackgroundRect");
929
+ var _drawTextCandidateFunc = /* @__PURE__ */ (function() {
930
+ function byText(content, g, x, y, width, height, textAttrs, colour) {
931
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("font-color", colour).style("text-anchor", "middle").text(content);
932
+ _setTextAttrs(text, textAttrs);
933
+ }
934
+ __name(byText, "byText");
935
+ function byTspan(content, g, x, y, width, height, textAttrs, conf2, colour) {
936
+ const { taskFontSize, taskFontFamily } = conf2;
937
+ const lines = content.split(/<br\s*\/?>/gi);
938
+ for (let i = 0; i < lines.length; i++) {
939
+ const dy = i * taskFontSize - taskFontSize * (lines.length - 1) / 2;
940
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y).attr("fill", colour).style("text-anchor", "middle").style("font-size", taskFontSize).style("font-family", taskFontFamily);
941
+ text.append("tspan").attr("x", x + width / 2).attr("dy", dy).text(lines[i]);
942
+ text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
943
+ _setTextAttrs(text, textAttrs);
944
+ }
945
+ }
946
+ __name(byTspan, "byTspan");
947
+ function byFo(content, g, x, y, width, height, textAttrs, conf2) {
948
+ const body = g.append("switch");
949
+ const f = body.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height).attr("position", "fixed");
950
+ const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
951
+ text.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
952
+ byTspan(content, body, x, y, width, height, textAttrs, conf2);
953
+ _setTextAttrs(text, textAttrs);
954
+ }
955
+ __name(byFo, "byFo");
956
+ function _setTextAttrs(toText, fromTextAttrsDict) {
957
+ for (const key in fromTextAttrsDict) {
958
+ if (key in fromTextAttrsDict) {
959
+ toText.attr(key, fromTextAttrsDict[key]);
960
+ }
961
+ }
962
+ }
963
+ __name(_setTextAttrs, "_setTextAttrs");
964
+ return function(conf2) {
965
+ return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
966
+ };
967
+ })();
968
+ var initGraphics = /* @__PURE__ */ __name(function(graphics, id) {
969
+ taskCount = -1;
970
+ graphics.append("defs").append("marker").attr("id", 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");
971
+ }, "initGraphics");
972
+ var svgDraw_default = {
973
+ drawRect: drawRect2,
974
+ drawCircle,
975
+ drawSection,
976
+ drawText: drawText2,
977
+ drawLabel,
978
+ drawTask,
979
+ drawBackgroundRect: drawBackgroundRect2,
980
+ initGraphics
981
+ };
982
+ var setConf = /* @__PURE__ */ __name(function(cnf) {
983
+ const keys = Object.keys(cnf);
984
+ keys.forEach(function(key) {
985
+ conf[key] = cnf[key];
986
+ });
987
+ }, "setConf");
988
+ var actors = {};
989
+ var maxWidth = 0;
990
+ function drawActorLegend(diagram2) {
991
+ const conf2 = getConfig2().journey;
992
+ const maxLabelWidth = conf2.maxLabelWidth;
993
+ maxWidth = 0;
994
+ let yPos = 60;
995
+ Object.keys(actors).forEach((person) => {
996
+ const colour = actors[person].color;
997
+ const circleData = {
998
+ cx: 20,
999
+ cy: yPos,
1000
+ r: 7,
1001
+ fill: colour,
1002
+ stroke: "#000",
1003
+ pos: actors[person].position
1004
+ };
1005
+ svgDraw_default.drawCircle(diagram2, circleData);
1006
+ let measureText = diagram2.append("text").attr("visibility", "hidden").text(person);
1007
+ const fullTextWidth = measureText.node().getBoundingClientRect().width;
1008
+ measureText.remove();
1009
+ let lines = [];
1010
+ if (fullTextWidth <= maxLabelWidth) {
1011
+ lines = [person];
1012
+ } else {
1013
+ const words = person.split(" ");
1014
+ let currentLine = "";
1015
+ measureText = diagram2.append("text").attr("visibility", "hidden");
1016
+ words.forEach((word) => {
1017
+ const testLine = currentLine ? `${currentLine} ${word}` : word;
1018
+ measureText.text(testLine);
1019
+ const textWidth = measureText.node().getBoundingClientRect().width;
1020
+ if (textWidth > maxLabelWidth) {
1021
+ if (currentLine) {
1022
+ lines.push(currentLine);
1023
+ }
1024
+ currentLine = word;
1025
+ measureText.text(word);
1026
+ if (measureText.node().getBoundingClientRect().width > maxLabelWidth) {
1027
+ let brokenWord = "";
1028
+ for (const char of word) {
1029
+ brokenWord += char;
1030
+ measureText.text(brokenWord + "-");
1031
+ if (measureText.node().getBoundingClientRect().width > maxLabelWidth) {
1032
+ lines.push(brokenWord.slice(0, -1) + "-");
1033
+ brokenWord = char;
1034
+ }
1035
+ }
1036
+ currentLine = brokenWord;
1037
+ }
1038
+ } else {
1039
+ currentLine = testLine;
1040
+ }
1041
+ });
1042
+ if (currentLine) {
1043
+ lines.push(currentLine);
1044
+ }
1045
+ measureText.remove();
1046
+ }
1047
+ lines.forEach((line, index) => {
1048
+ const labelData = {
1049
+ x: 40,
1050
+ y: yPos + 7 + index * 20,
1051
+ fill: "#666",
1052
+ text: line,
1053
+ textMargin: conf2.boxTextMargin ?? 5
1054
+ };
1055
+ const textElement = svgDraw_default.drawText(diagram2, labelData);
1056
+ const lineWidth = textElement.node().getBoundingClientRect().width;
1057
+ if (lineWidth > maxWidth && lineWidth > conf2.leftMargin - lineWidth) {
1058
+ maxWidth = lineWidth;
1059
+ }
1060
+ });
1061
+ yPos += Math.max(20, lines.length * 20);
1062
+ });
1063
+ }
1064
+ __name(drawActorLegend, "drawActorLegend");
1065
+ var conf = getConfig2().journey;
1066
+ var leftMargin = 0;
1067
+ var draw = /* @__PURE__ */ __name(function(text, id, version, diagObj) {
1068
+ const configObject = getConfig2();
1069
+ const titleColor = configObject.journey.titleColor;
1070
+ const titleFontSize = configObject.journey.titleFontSize;
1071
+ const titleFontFamily = configObject.journey.titleFontFamily;
1072
+ const securityLevel = configObject.securityLevel;
1073
+ let sandboxElement;
1074
+ if (securityLevel === "sandbox") {
1075
+ sandboxElement = select("#i" + id);
1076
+ }
1077
+ const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
1078
+ bounds.init();
1079
+ const diagram2 = root.select("#" + id);
1080
+ svgDraw_default.initGraphics(diagram2, id);
1081
+ const tasks2 = diagObj.db.getTasks();
1082
+ const title = diagObj.db.getDiagramTitle();
1083
+ const actorNames = diagObj.db.getActors();
1084
+ for (const member in actors) {
1085
+ delete actors[member];
1086
+ }
1087
+ let actorPos = 0;
1088
+ actorNames.forEach((actorName) => {
1089
+ actors[actorName] = {
1090
+ color: conf.actorColours[actorPos % conf.actorColours.length],
1091
+ position: actorPos
1092
+ };
1093
+ actorPos++;
1094
+ });
1095
+ drawActorLegend(diagram2);
1096
+ leftMargin = conf.leftMargin + maxWidth;
1097
+ bounds.insert(0, 0, leftMargin, Object.keys(actors).length * 50);
1098
+ drawTasks(diagram2, tasks2, 0, id);
1099
+ const box = bounds.getBounds();
1100
+ if (title) {
1101
+ diagram2.append("text").text(title).attr("x", leftMargin).attr("font-size", titleFontSize).attr("font-weight", "bold").attr("y", 25).attr("fill", titleColor).attr("font-family", titleFontFamily);
1102
+ }
1103
+ const height = box.stopy - box.starty + 2 * conf.diagramMarginY;
1104
+ const width = leftMargin + box.stopx + 2 * conf.diagramMarginX;
1105
+ configureSvgSize(diagram2, height, width, conf.useMaxWidth);
1106
+ diagram2.append("line").attr("x1", leftMargin).attr("y1", conf.height * 4).attr("x2", width - leftMargin - 4).attr("y2", conf.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#" + id + "-arrowhead)");
1107
+ const extraVertForTitle = title ? 70 : 0;
1108
+ diagram2.attr("viewBox", `${box.startx} -25 ${width} ${height + extraVertForTitle}`);
1109
+ diagram2.attr("preserveAspectRatio", "xMinYMin meet");
1110
+ diagram2.attr("height", height + extraVertForTitle + 25);
1111
+ }, "draw");
1112
+ var bounds = {
1113
+ data: {
1114
+ startx: void 0,
1115
+ stopx: void 0,
1116
+ starty: void 0,
1117
+ stopy: void 0
1118
+ },
1119
+ verticalPos: 0,
1120
+ sequenceItems: [],
1121
+ init: /* @__PURE__ */ __name(function() {
1122
+ this.sequenceItems = [];
1123
+ this.data = {
1124
+ startx: void 0,
1125
+ stopx: void 0,
1126
+ starty: void 0,
1127
+ stopy: void 0
1128
+ };
1129
+ this.verticalPos = 0;
1130
+ }, "init"),
1131
+ updateVal: /* @__PURE__ */ __name(function(obj, key, val, fun) {
1132
+ if (obj[key] === void 0) {
1133
+ obj[key] = val;
1134
+ } else {
1135
+ obj[key] = fun(val, obj[key]);
1136
+ }
1137
+ }, "updateVal"),
1138
+ updateBounds: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
1139
+ const conf2 = getConfig2().journey;
1140
+ const _self = this;
1141
+ let cnt = 0;
1142
+ function updateFn(type) {
1143
+ return /* @__PURE__ */ __name(function updateItemBounds(item) {
1144
+ cnt++;
1145
+ const n = _self.sequenceItems.length - cnt + 1;
1146
+ _self.updateVal(item, "starty", starty - n * conf2.boxMargin, Math.min);
1147
+ _self.updateVal(item, "stopy", stopy + n * conf2.boxMargin, Math.max);
1148
+ _self.updateVal(bounds.data, "startx", startx - n * conf2.boxMargin, Math.min);
1149
+ _self.updateVal(bounds.data, "stopx", stopx + n * conf2.boxMargin, Math.max);
1150
+ if (!(type === "activation")) {
1151
+ _self.updateVal(item, "startx", startx - n * conf2.boxMargin, Math.min);
1152
+ _self.updateVal(item, "stopx", stopx + n * conf2.boxMargin, Math.max);
1153
+ _self.updateVal(bounds.data, "starty", starty - n * conf2.boxMargin, Math.min);
1154
+ _self.updateVal(bounds.data, "stopy", stopy + n * conf2.boxMargin, Math.max);
1155
+ }
1156
+ }, "updateItemBounds");
1157
+ }
1158
+ __name(updateFn, "updateFn");
1159
+ this.sequenceItems.forEach(updateFn());
1160
+ }, "updateBounds"),
1161
+ insert: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
1162
+ const _startx = Math.min(startx, stopx);
1163
+ const _stopx = Math.max(startx, stopx);
1164
+ const _starty = Math.min(starty, stopy);
1165
+ const _stopy = Math.max(starty, stopy);
1166
+ this.updateVal(bounds.data, "startx", _startx, Math.min);
1167
+ this.updateVal(bounds.data, "starty", _starty, Math.min);
1168
+ this.updateVal(bounds.data, "stopx", _stopx, Math.max);
1169
+ this.updateVal(bounds.data, "stopy", _stopy, Math.max);
1170
+ this.updateBounds(_startx, _starty, _stopx, _stopy);
1171
+ }, "insert"),
1172
+ bumpVerticalPos: /* @__PURE__ */ __name(function(bump) {
1173
+ this.verticalPos = this.verticalPos + bump;
1174
+ this.data.stopy = this.verticalPos;
1175
+ }, "bumpVerticalPos"),
1176
+ getVerticalPos: /* @__PURE__ */ __name(function() {
1177
+ return this.verticalPos;
1178
+ }, "getVerticalPos"),
1179
+ getBounds: /* @__PURE__ */ __name(function() {
1180
+ return this.data;
1181
+ }, "getBounds")
1182
+ };
1183
+ var fills = conf.sectionFills;
1184
+ var textColours = conf.sectionColours;
1185
+ var drawTasks = /* @__PURE__ */ __name(function(diagram2, tasks2, verticalPos, diagramId) {
1186
+ const conf2 = getConfig2().journey;
1187
+ let lastSection = "";
1188
+ const sectionVHeight = conf2.height * 2 + conf2.diagramMarginY;
1189
+ const taskPos = verticalPos + sectionVHeight;
1190
+ let sectionNumber = 0;
1191
+ let fill = "#CCC";
1192
+ let colour = "black";
1193
+ let num = 0;
1194
+ for (const [i, task] of tasks2.entries()) {
1195
+ if (lastSection !== task.section) {
1196
+ fill = fills[sectionNumber % fills.length];
1197
+ num = sectionNumber % fills.length;
1198
+ colour = textColours[sectionNumber % textColours.length];
1199
+ let taskInSectionCount = 0;
1200
+ const currentSection2 = task.section;
1201
+ for (let taskIndex = i; taskIndex < tasks2.length; taskIndex++) {
1202
+ if (tasks2[taskIndex].section == currentSection2) {
1203
+ taskInSectionCount = taskInSectionCount + 1;
1204
+ } else {
1205
+ break;
1206
+ }
1207
+ }
1208
+ const section = {
1209
+ x: i * conf2.taskMargin + i * conf2.width + leftMargin,
1210
+ y: 50,
1211
+ text: task.section,
1212
+ fill,
1213
+ num,
1214
+ colour,
1215
+ taskCount: taskInSectionCount
1216
+ };
1217
+ svgDraw_default.drawSection(diagram2, section, conf2);
1218
+ lastSection = task.section;
1219
+ sectionNumber++;
1220
+ }
1221
+ const taskActors = task.people.reduce((acc, actorName) => {
1222
+ if (actors[actorName]) {
1223
+ acc[actorName] = actors[actorName];
1224
+ }
1225
+ return acc;
1226
+ }, {});
1227
+ task.x = i * conf2.taskMargin + i * conf2.width + leftMargin;
1228
+ task.y = taskPos;
1229
+ task.width = conf2.diagramMarginX;
1230
+ task.height = conf2.diagramMarginY;
1231
+ task.colour = colour;
1232
+ task.fill = fill;
1233
+ task.num = num;
1234
+ task.actors = taskActors;
1235
+ svgDraw_default.drawTask(diagram2, task, conf2, diagramId);
1236
+ bounds.insert(task.x, task.y, task.x + task.width + conf2.taskMargin, 300 + 5 * 30);
1237
+ }
1238
+ }, "drawTasks");
1239
+ var journeyRenderer_default = {
1240
+ setConf,
1241
+ draw
1242
+ };
1243
+ var diagram = {
1244
+ parser: journey_default,
1245
+ db: journeyDb_default,
1246
+ renderer: journeyRenderer_default,
1247
+ styles: styles_default,
1248
+ init: /* @__PURE__ */ __name((cnf) => {
1249
+ journeyRenderer_default.setConf(cnf.journey);
1250
+ journeyDb_default.clear();
1251
+ }, "init")
1252
+ };
1253
+ export {
1254
+ diagram
1255
+ };