research-copilot 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +190 -0
  3. package/app/build/icon.icns +0 -0
  4. package/app/build/icon.ico +0 -0
  5. package/app/build/icon.png +0 -0
  6. package/app/out/main/index.mjs +6719 -0
  7. package/app/out/preload/index.js +141 -0
  8. package/app/out/renderer/assets/Inter-Variable-Latin-8kRkwJBP.woff2 +0 -0
  9. package/app/out/renderer/assets/Inter-Variable-LatinExt-B_-bZUTo.woff2 +0 -0
  10. package/app/out/renderer/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  11. package/app/out/renderer/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  12. package/app/out/renderer/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  13. package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  14. package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  15. package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  16. package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  17. package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  18. package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  19. package/app/out/renderer/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  20. package/app/out/renderer/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  21. package/app/out/renderer/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  22. package/app/out/renderer/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  23. package/app/out/renderer/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  24. package/app/out/renderer/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  25. package/app/out/renderer/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  26. package/app/out/renderer/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  27. package/app/out/renderer/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  28. package/app/out/renderer/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  29. package/app/out/renderer/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  30. package/app/out/renderer/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  31. package/app/out/renderer/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  32. package/app/out/renderer/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  33. package/app/out/renderer/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  34. package/app/out/renderer/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  35. package/app/out/renderer/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  36. package/app/out/renderer/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  37. package/app/out/renderer/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  38. package/app/out/renderer/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  39. package/app/out/renderer/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  40. package/app/out/renderer/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  41. package/app/out/renderer/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  42. package/app/out/renderer/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  43. package/app/out/renderer/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  44. package/app/out/renderer/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  45. package/app/out/renderer/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  46. package/app/out/renderer/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  47. package/app/out/renderer/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  48. package/app/out/renderer/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  49. package/app/out/renderer/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  50. package/app/out/renderer/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  51. package/app/out/renderer/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  52. package/app/out/renderer/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  53. package/app/out/renderer/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  54. package/app/out/renderer/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  55. package/app/out/renderer/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  56. package/app/out/renderer/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  57. package/app/out/renderer/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  58. package/app/out/renderer/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  59. package/app/out/renderer/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  60. package/app/out/renderer/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  61. package/app/out/renderer/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  62. package/app/out/renderer/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  63. package/app/out/renderer/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  64. package/app/out/renderer/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  65. package/app/out/renderer/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  66. package/app/out/renderer/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  67. package/app/out/renderer/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  68. package/app/out/renderer/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  69. package/app/out/renderer/assets/MilkdownMarkdownEditor-bLPxrCVb.js +89821 -0
  70. package/app/out/renderer/assets/MilkdownMarkdownEditor-tTNRIB2K.css +2555 -0
  71. package/app/out/renderer/assets/Tableau10-BqnYsPR6.js +9 -0
  72. package/app/out/renderer/assets/apl-fqmucPXA.js +140 -0
  73. package/app/out/renderer/assets/arc-J47ePHZ2.js +132 -0
  74. package/app/out/renderer/assets/array-DgktLKBx.js +6 -0
  75. package/app/out/renderer/assets/asciiarmor-DucZyvP0.js +56 -0
  76. package/app/out/renderer/assets/asn1-BnOEsgAm.js +144 -0
  77. package/app/out/renderer/assets/asterisk-QAlztEwS.js +345 -0
  78. package/app/out/renderer/assets/blockDiagram-c4efeb88-5uRQXgQJ.js +1817 -0
  79. package/app/out/renderer/assets/brainfuck-DZVCuF_t.js +53 -0
  80. package/app/out/renderer/assets/c4Diagram-c83219d4-C4iCTPEL.js +2464 -0
  81. package/app/out/renderer/assets/channel-ZAmhHE3g.js +7 -0
  82. package/app/out/renderer/assets/classDiagram-beda092f-7NOZxq_W.js +357 -0
  83. package/app/out/renderer/assets/classDiagram-v2-2358418a-5fPT-cUH.js +291 -0
  84. package/app/out/renderer/assets/clike-xqXYL6ge.js +805 -0
  85. package/app/out/renderer/assets/clojure-BhXMqnxz.js +849 -0
  86. package/app/out/renderer/assets/clone-CsnzsYXQ.js +8 -0
  87. package/app/out/renderer/assets/cmake-BGaNd9E7.js +71 -0
  88. package/app/out/renderer/assets/cobol-4yqQntpt.js +120 -0
  89. package/app/out/renderer/assets/coffeescript-D2dXvhEc.js +308 -0
  90. package/app/out/renderer/assets/commonlisp-CF_VNHQR.js +130 -0
  91. package/app/out/renderer/assets/createText-1719965b-Cji7KN4K.js +4904 -0
  92. package/app/out/renderer/assets/crystal-DyuLTqLs.js +398 -0
  93. package/app/out/renderer/assets/css-c-jst79C.js +1783 -0
  94. package/app/out/renderer/assets/cypher-Dlu_3r4V.js +121 -0
  95. package/app/out/renderer/assets/d-UURgV0Ux.js +179 -0
  96. package/app/out/renderer/assets/diff-B_Bi2Crb.js +25 -0
  97. package/app/out/renderer/assets/dockerfile-Bvk733Ga.js +201 -0
  98. package/app/out/renderer/assets/dtd-Dy74G54E.js +114 -0
  99. package/app/out/renderer/assets/dylan-TSb-Nfix.js +314 -0
  100. package/app/out/renderer/assets/ebnf-DAomQUbD.js +139 -0
  101. package/app/out/renderer/assets/ecl-B59qGGVg.js +178 -0
  102. package/app/out/renderer/assets/edges-96097737-CD0EvAZQ.js +1844 -0
  103. package/app/out/renderer/assets/eiffel-Dze7nlu3.js +134 -0
  104. package/app/out/renderer/assets/elm-DG7jkhNZ.js +176 -0
  105. package/app/out/renderer/assets/erDiagram-0228fc6a-DRYXBpi7.js +1321 -0
  106. package/app/out/renderer/assets/erlang-BO6gOnGA.js +674 -0
  107. package/app/out/renderer/assets/factor-CMxFHDqz.js +65 -0
  108. package/app/out/renderer/assets/fcl-CDDUNjTj.js +141 -0
  109. package/app/out/renderer/assets/flowDb-c6c81e3f-CuoIN-Cy.js +1713 -0
  110. package/app/out/renderer/assets/flowDiagram-50d868cf-CPWPLOml.js +1272 -0
  111. package/app/out/renderer/assets/flowDiagram-v2-4f6560a1-C_R12s4S.js +33 -0
  112. package/app/out/renderer/assets/flowchart-elk-definition-6af322e1-BdKUSFpi.js +92921 -0
  113. package/app/out/renderer/assets/forth-B9D2JCeE.js +116 -0
  114. package/app/out/renderer/assets/fortran-CAG2BFbe.js +467 -0
  115. package/app/out/renderer/assets/ganttDiagram-a2739b55-ygqT5HlG.js +3399 -0
  116. package/app/out/renderer/assets/gas-d3KEcW3x.js +294 -0
  117. package/app/out/renderer/assets/gherkin-DhZlEZiy.js +115 -0
  118. package/app/out/renderer/assets/gitGraphDiagram-82fe8481-D97GT4iA.js +1791 -0
  119. package/app/out/renderer/assets/graph-DpC13d95.js +1237 -0
  120. package/app/out/renderer/assets/groovy-CpwJiBl7.js +223 -0
  121. package/app/out/renderer/assets/haskell-BlGBCCe3.js +459 -0
  122. package/app/out/renderer/assets/haxe-7MlzfeYV.js +514 -0
  123. package/app/out/renderer/assets/http-BqypyemW.js +79 -0
  124. package/app/out/renderer/assets/idl-4HIGJlDI.js +985 -0
  125. package/app/out/renderer/assets/index-4-ziknCv.js +292 -0
  126. package/app/out/renderer/assets/index-5325376f-Bbs7Fbqr.js +663 -0
  127. package/app/out/renderer/assets/index-B2jip-rk.js +2489 -0
  128. package/app/out/renderer/assets/index-BKTVfokE.js +312 -0
  129. package/app/out/renderer/assets/index-BiJbFgVG.js +118 -0
  130. package/app/out/renderer/assets/index-Bn433Fat.js +83 -0
  131. package/app/out/renderer/assets/index-BqDyyRCx.js +39679 -0
  132. package/app/out/renderer/assets/index-BzFMeMPn.js +158 -0
  133. package/app/out/renderer/assets/index-C-_uCjZJ.css +2701 -0
  134. package/app/out/renderer/assets/index-C1ithNW1.js +1765 -0
  135. package/app/out/renderer/assets/index-CAJkRYkO.js +407 -0
  136. package/app/out/renderer/assets/index-CleO0-yj.js +690 -0
  137. package/app/out/renderer/assets/index-Cq4MH3sY.js +1020 -0
  138. package/app/out/renderer/assets/index-CtA0Xj22.js +705 -0
  139. package/app/out/renderer/assets/index-CvAZkqBZ.js +83 -0
  140. package/app/out/renderer/assets/index-D3UDN-5c.js +152 -0
  141. package/app/out/renderer/assets/index-D4F9R5ao.js +179 -0
  142. package/app/out/renderer/assets/index-D6RguhZ5.js +328 -0
  143. package/app/out/renderer/assets/index-DnEowqXv.js +386 -0
  144. package/app/out/renderer/assets/index-K8c8Mqdy.js +98 -0
  145. package/app/out/renderer/assets/index-Kh14gO6K.js +62 -0
  146. package/app/out/renderer/assets/index-WFd2jRnA.js +333 -0
  147. package/app/out/renderer/assets/index-WgMfkRFp.js +313 -0
  148. package/app/out/renderer/assets/index-Y4lKyF6t.js +1042 -0
  149. package/app/out/renderer/assets/index-fx307_f1.js +643 -0
  150. package/app/out/renderer/assets/infoDiagram-8eee0895-ptaVSwzq.js +511 -0
  151. package/app/out/renderer/assets/init-ZxktEp_H.js +16 -0
  152. package/app/out/renderer/assets/javascript-C3MnDRiU.js +994 -0
  153. package/app/out/renderer/assets/journeyDiagram-c64418c1-aloEGOQp.js +1184 -0
  154. package/app/out/renderer/assets/julia-Bs6JJhYG.js +407 -0
  155. package/app/out/renderer/assets/layout-ZeuHE_aY.js +2217 -0
  156. package/app/out/renderer/assets/line-CAgaGl-S.js +45 -0
  157. package/app/out/renderer/assets/linear-DIg7lTe1.js +539 -0
  158. package/app/out/renderer/assets/livescript-DmzgM3Yt.js +296 -0
  159. package/app/out/renderer/assets/lua-8cJgIlqe.js +256 -0
  160. package/app/out/renderer/assets/mathematica-DNLOL9PQ.js +110 -0
  161. package/app/out/renderer/assets/mbox-Ga7d4MMN.js +117 -0
  162. package/app/out/renderer/assets/mindmap-definition-8da855dc-B8XVoUxz.js +36054 -0
  163. package/app/out/renderer/assets/mirc-Dma3B8rS.js +107 -0
  164. package/app/out/renderer/assets/mllike-DHn7xckP.js +334 -0
  165. package/app/out/renderer/assets/modelica-0d55jYY0.js +147 -0
  166. package/app/out/renderer/assets/mscgen-DdqZYINH.js +135 -0
  167. package/app/out/renderer/assets/mumps-Btr8VblO.js +93 -0
  168. package/app/out/renderer/assets/nginx-DTDtBDVN.js +141 -0
  169. package/app/out/renderer/assets/nsis-3zG7tgur.js +62 -0
  170. package/app/out/renderer/assets/ntriples-CvgOYMpL.js +153 -0
  171. package/app/out/renderer/assets/octave-DYBj3-tl.js +200 -0
  172. package/app/out/renderer/assets/ordinal-DSZU4PqD.js +76 -0
  173. package/app/out/renderer/assets/oz-R_e8WMIi.js +231 -0
  174. package/app/out/renderer/assets/pascal-GD8iposT.js +105 -0
  175. package/app/out/renderer/assets/path-Cp2qmpkd.js +109 -0
  176. package/app/out/renderer/assets/perl-DL9mHpoi.js +1105 -0
  177. package/app/out/renderer/assets/pieDiagram-a8764435-DlwoeBU2.js +770 -0
  178. package/app/out/renderer/assets/pig-C_4T4YIV.js +101 -0
  179. package/app/out/renderer/assets/powershell-B0suO7Vd.js +328 -0
  180. package/app/out/renderer/assets/properties-BR-vP1aU.js +58 -0
  181. package/app/out/renderer/assets/protobuf-BxgpyhoW.js +77 -0
  182. package/app/out/renderer/assets/pug-By0kVCfm.js +405 -0
  183. package/app/out/renderer/assets/puppet-Bdao66PW.js +137 -0
  184. package/app/out/renderer/assets/python-CvWbmiX4.js +427 -0
  185. package/app/out/renderer/assets/q-CrbCVq4a.js +131 -0
  186. package/app/out/renderer/assets/quadrantDiagram-1e28029f-BaSi1XB4.js +1200 -0
  187. package/app/out/renderer/assets/r-V7nswm59.js +170 -0
  188. package/app/out/renderer/assets/requirementDiagram-08caed73-D3EFyegZ.js +1092 -0
  189. package/app/out/renderer/assets/rpm-C-DLY-If.js +109 -0
  190. package/app/out/renderer/assets/ruby-JDKLJNK0.js +330 -0
  191. package/app/out/renderer/assets/sankeyDiagram-a04cb91d-Cv44AsnM.js +1174 -0
  192. package/app/out/renderer/assets/sas-D2UG-yhZ.js +207 -0
  193. package/app/out/renderer/assets/scheme-BKzrkGJD.js +222 -0
  194. package/app/out/renderer/assets/sequenceDiagram-c5b8d532-CuUBu-x4.js +3337 -0
  195. package/app/out/renderer/assets/shell-BlsXDxCn.js +222 -0
  196. package/app/out/renderer/assets/sieve-CjwBwOY5.js +135 -0
  197. package/app/out/renderer/assets/simple-mode-DMneyfDu.js +130 -0
  198. package/app/out/renderer/assets/smalltalk-BOIGQuhN.js +121 -0
  199. package/app/out/renderer/assets/solr-CwD7U71z.js +69 -0
  200. package/app/out/renderer/assets/sparql-DYskk2vE.js +249 -0
  201. package/app/out/renderer/assets/spreadsheet-Bgtt3oLP.js +87 -0
  202. package/app/out/renderer/assets/sql-BSrOzCRI.js +354 -0
  203. package/app/out/renderer/assets/stateDiagram-1ecb1508-BOU34Zp4.js +454 -0
  204. package/app/out/renderer/assets/stateDiagram-v2-c2b004d7-BgRoffou.js +326 -0
  205. package/app/out/renderer/assets/stex-B6LNC55o.js +231 -0
  206. package/app/out/renderer/assets/styles-b4e223ce-BMr9TPuj.js +1483 -0
  207. package/app/out/renderer/assets/styles-ca3715f6-DgbNw99p.js +1363 -0
  208. package/app/out/renderer/assets/styles-d45a18b0-DtRYKYKf.js +574 -0
  209. package/app/out/renderer/assets/stylus-BkS-boTH.js +565 -0
  210. package/app/out/renderer/assets/svgDrawCommon-b86b1483-Bein03PD.js +100 -0
  211. package/app/out/renderer/assets/swift-FRZi1uvB.js +291 -0
  212. package/app/out/renderer/assets/tcl-CUcaCdmq.js +114 -0
  213. package/app/out/renderer/assets/textile-BnFpjsrl.js +414 -0
  214. package/app/out/renderer/assets/tiddlywiki-CjprD-Qp.js +218 -0
  215. package/app/out/renderer/assets/tiki-B4EPSQ1G.js +265 -0
  216. package/app/out/renderer/assets/timeline-definition-faaaa080-BlWpLE_4.js +1212 -0
  217. package/app/out/renderer/assets/toml-BOuWGMcf.js +76 -0
  218. package/app/out/renderer/assets/troff-E1bJ0PPL.js +61 -0
  219. package/app/out/renderer/assets/ttcn-cfg-Dc39-fIP.js +133 -0
  220. package/app/out/renderer/assets/ttcn-tKd4HLu4.js +192 -0
  221. package/app/out/renderer/assets/turtle-Dq7-1WAf.js +124 -0
  222. package/app/out/renderer/assets/vb-Dp90gtsv.js +196 -0
  223. package/app/out/renderer/assets/vbscript-CI6_mxxU.js +479 -0
  224. package/app/out/renderer/assets/velocity-BwIZK1TH.js +149 -0
  225. package/app/out/renderer/assets/verilog-DDCYnHN8.js +430 -0
  226. package/app/out/renderer/assets/vhdl-DCkMIyT9.js +158 -0
  227. package/app/out/renderer/assets/webidl-BTLTThCm.js +204 -0
  228. package/app/out/renderer/assets/xquery-BgiOC5Ce.js +525 -0
  229. package/app/out/renderer/assets/xychartDiagram-f5964ef8-Bhga-YXm.js +1799 -0
  230. package/app/out/renderer/assets/yacas-b5lAVEIl.js +130 -0
  231. package/app/out/renderer/assets/z80-BZV19vqv.js +93 -0
  232. package/app/out/renderer/index.html +13 -0
  233. package/app/out/skills/community-builtin/README.md +29 -0
  234. package/app/out/skills/community-builtin/document-docx/SKILL.md +44 -0
  235. package/app/out/skills/community-builtin/document-docx/scripts/docx-to-markdown.sh +20 -0
  236. package/app/out/skills/community-builtin/document-docx/scripts/extract-docx-text.sh +28 -0
  237. package/app/out/skills/community-builtin/document-docx/scripts/init-docx-template.sh +32 -0
  238. package/app/out/skills/community-builtin/document-docx/scripts/setup-docx-tools.sh +10 -0
  239. package/app/out/skills/community-builtin/markitdown/SKILL.md +105 -0
  240. package/app/out/skills/community-builtin/markitdown/scripts/batch-convert.sh +40 -0
  241. package/app/out/skills/community-builtin/markitdown/scripts/convert-file.sh +24 -0
  242. package/app/out/skills/community-builtin/markitdown/scripts/setup-markitdown.sh +10 -0
  243. package/app/out/skills/community-builtin/repo-quick-audit/SKILL.md +27 -0
  244. package/app/out/skills/community-builtin/repo-quick-audit/scripts/audit-basics.sh +19 -0
  245. package/app/out/skills/research-pilot-default-project-skills/README.md +23 -0
  246. package/app/out/skills/research-pilot-default-project-skills/citation-management/SKILL.md +39 -0
  247. package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/doi-to-bibtex.sh +25 -0
  248. package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/normalize-bibtex-keys.sh +51 -0
  249. package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/setup-citation-tools.sh +10 -0
  250. package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/validate-bib.sh +31 -0
  251. package/app/out/skills/research-pilot-default-project-skills/matplotlib/SKILL.md +34 -0
  252. package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/api_reference.md +412 -0
  253. package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/common_issues.md +563 -0
  254. package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/plot_types.md +476 -0
  255. package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/styling_guide.md +589 -0
  256. package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/subagent_quickstart.md +30 -0
  257. package/app/out/skills/research-pilot-default-project-skills/matplotlib/scripts/plot_template.py +401 -0
  258. package/app/out/skills/research-pilot-default-project-skills/matplotlib/scripts/style_configurator.py +409 -0
  259. package/app/out/skills/research-pilot-default-project-skills/research-grants/SKILL.md +38 -0
  260. package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/check-grant-compliance.sh +40 -0
  261. package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/grant-summary-card.sh +32 -0
  262. package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/init-grant-structure.sh +70 -0
  263. package/app/package.json +77 -0
  264. package/bin/cli.mjs +56 -0
  265. package/lib/README.md +145 -0
  266. package/lib/skills/_generated.ts +13 -0
  267. package/lib/skills/builtin/brainstorming-research-ideas/SKILL.md +280 -0
  268. package/lib/skills/builtin/coding/SKILL.md +114 -0
  269. package/lib/skills/builtin/creative-thinking-for-research/SKILL.md +273 -0
  270. package/lib/skills/builtin/matplotlib/SKILL.md +361 -0
  271. package/lib/skills/builtin/matplotlib/references/api_reference.md +412 -0
  272. package/lib/skills/builtin/matplotlib/references/common_issues.md +563 -0
  273. package/lib/skills/builtin/matplotlib/references/plot_types.md +476 -0
  274. package/lib/skills/builtin/matplotlib/references/styling_guide.md +589 -0
  275. package/lib/skills/builtin/matplotlib/scripts/plot_template.py +401 -0
  276. package/lib/skills/builtin/matplotlib/scripts/style_configurator.py +409 -0
  277. package/lib/skills/builtin/paper-writing/SKILL.md +554 -0
  278. package/lib/skills/builtin/paper-writing/references/checklists.md +524 -0
  279. package/lib/skills/builtin/paper-writing/references/citation-workflow.md +562 -0
  280. package/lib/skills/builtin/paper-writing/references/reviewer-guidelines.md +462 -0
  281. package/lib/skills/builtin/paper-writing/references/sources.md +189 -0
  282. package/lib/skills/builtin/paper-writing/references/systems-conferences.md +260 -0
  283. package/lib/skills/builtin/paper-writing/references/writing-guide.md +476 -0
  284. package/lib/skills/builtin/paper-writing/templates/README.md +408 -0
  285. package/lib/skills/builtin/paper-writing/templates/aaai2026/README.md +534 -0
  286. package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026-unified-supp.tex +144 -0
  287. package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026-unified-template.tex +952 -0
  288. package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.bib +111 -0
  289. package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.bst +1493 -0
  290. package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.sty +315 -0
  291. package/lib/skills/builtin/paper-writing/templates/acl/README.md +50 -0
  292. package/lib/skills/builtin/paper-writing/templates/acl/acl.sty +312 -0
  293. package/lib/skills/builtin/paper-writing/templates/acl/acl_latex.tex +377 -0
  294. package/lib/skills/builtin/paper-writing/templates/acl/acl_lualatex.tex +101 -0
  295. package/lib/skills/builtin/paper-writing/templates/acl/acl_natbib.bst +1940 -0
  296. package/lib/skills/builtin/paper-writing/templates/acl/anthology.bib.txt +26 -0
  297. package/lib/skills/builtin/paper-writing/templates/acl/custom.bib +70 -0
  298. package/lib/skills/builtin/paper-writing/templates/acl/formatting.md +326 -0
  299. package/lib/skills/builtin/paper-writing/templates/asplos2027/main.tex +459 -0
  300. package/lib/skills/builtin/paper-writing/templates/asplos2027/references.bib +135 -0
  301. package/lib/skills/builtin/paper-writing/templates/colm2025/README.md +3 -0
  302. package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.bib +11 -0
  303. package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.bst +1440 -0
  304. package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.pdf +0 -0
  305. package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.sty +218 -0
  306. package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.tex +305 -0
  307. package/lib/skills/builtin/paper-writing/templates/colm2025/fancyhdr.sty +485 -0
  308. package/lib/skills/builtin/paper-writing/templates/colm2025/math_commands.tex +508 -0
  309. package/lib/skills/builtin/paper-writing/templates/colm2025/natbib.sty +1246 -0
  310. package/lib/skills/builtin/paper-writing/templates/iclr2026/fancyhdr.sty +485 -0
  311. package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.bib +24 -0
  312. package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.bst +1440 -0
  313. package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.pdf +0 -0
  314. package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.sty +246 -0
  315. package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.tex +414 -0
  316. package/lib/skills/builtin/paper-writing/templates/iclr2026/math_commands.tex +508 -0
  317. package/lib/skills/builtin/paper-writing/templates/iclr2026/natbib.sty +1246 -0
  318. package/lib/skills/builtin/paper-writing/templates/icml2026/algorithm.sty +79 -0
  319. package/lib/skills/builtin/paper-writing/templates/icml2026/algorithmic.sty +201 -0
  320. package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.bib +75 -0
  321. package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.pdf +0 -0
  322. package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.tex +662 -0
  323. package/lib/skills/builtin/paper-writing/templates/icml2026/fancyhdr.sty +864 -0
  324. package/lib/skills/builtin/paper-writing/templates/icml2026/icml2026.bst +1443 -0
  325. package/lib/skills/builtin/paper-writing/templates/icml2026/icml2026.sty +767 -0
  326. package/lib/skills/builtin/paper-writing/templates/icml2026/icml_numpapers.pdf +0 -0
  327. package/lib/skills/builtin/paper-writing/templates/neurips2025/Makefile +36 -0
  328. package/lib/skills/builtin/paper-writing/templates/neurips2025/extra_pkgs.tex +53 -0
  329. package/lib/skills/builtin/paper-writing/templates/neurips2025/main.tex +38 -0
  330. package/lib/skills/builtin/paper-writing/templates/neurips2025/neurips.sty +382 -0
  331. package/lib/skills/builtin/paper-writing/templates/nsdi2027/main.tex +426 -0
  332. package/lib/skills/builtin/paper-writing/templates/nsdi2027/references.bib +151 -0
  333. package/lib/skills/builtin/paper-writing/templates/nsdi2027/usenix-2020-09.sty +83 -0
  334. package/lib/skills/builtin/paper-writing/templates/osdi2026/main.tex +429 -0
  335. package/lib/skills/builtin/paper-writing/templates/osdi2026/references.bib +150 -0
  336. package/lib/skills/builtin/paper-writing/templates/osdi2026/usenix-2020-09.sty +83 -0
  337. package/lib/skills/builtin/paper-writing/templates/sosp2026/main.tex +532 -0
  338. package/lib/skills/builtin/paper-writing/templates/sosp2026/references.bib +148 -0
  339. package/lib/skills/builtin/research-grants/SKILL.md +958 -0
  340. package/lib/skills/builtin/research-grants/assets/budget_justification_template.md +453 -0
  341. package/lib/skills/builtin/research-grants/assets/nih_specific_aims_template.md +166 -0
  342. package/lib/skills/builtin/research-grants/assets/nsf_project_summary_template.md +92 -0
  343. package/lib/skills/builtin/research-grants/references/README.md +285 -0
  344. package/lib/skills/builtin/research-grants/references/broader_impacts.md +392 -0
  345. package/lib/skills/builtin/research-grants/references/darpa_guidelines.md +636 -0
  346. package/lib/skills/builtin/research-grants/references/doe_guidelines.md +586 -0
  347. package/lib/skills/builtin/research-grants/references/nih_guidelines.md +851 -0
  348. package/lib/skills/builtin/research-grants/references/nsf_guidelines.md +570 -0
  349. package/lib/skills/builtin/research-grants/references/nstc_guidelines.md +733 -0
  350. package/lib/skills/builtin/research-grants/references/specific_aims_guide.md +458 -0
  351. package/lib/skills/builtin/rewrite-humanize/SKILL.md +116 -0
  352. package/lib/skills/builtin/rewrite-humanize/references/cs-venue-tone.md +57 -0
  353. package/lib/skills/builtin/rewrite-humanize/references/lexicon.md +50 -0
  354. package/lib/skills/builtin/scholar-evaluation/SKILL.md +300 -0
  355. package/lib/skills/builtin/scholar-evaluation/references/evaluation_framework.md +663 -0
  356. package/lib/skills/builtin/scholar-evaluation/scripts/calculate_scores.py +379 -0
  357. package/lib/skills/builtin/scientific-schematics/SKILL.md +603 -0
  358. package/lib/skills/builtin/scientific-schematics/references/QUICK_REFERENCE.md +182 -0
  359. package/lib/skills/builtin/scientific-schematics/references/README.md +292 -0
  360. package/lib/skills/builtin/scientific-schematics/references/best_practices.md +560 -0
  361. package/lib/skills/builtin/scientific-schematics/scripts/__pycache__/generate_schematic.cpython-312.pyc +0 -0
  362. package/lib/skills/builtin/scientific-schematics/scripts/__pycache__/generate_schematic_ai.cpython-312.pyc +0 -0
  363. package/lib/skills/builtin/scientific-schematics/scripts/example_usage.sh +85 -0
  364. package/lib/skills/builtin/scientific-schematics/scripts/generate_schematic.py +141 -0
  365. package/lib/skills/builtin/scientific-schematics/scripts/generate_schematic_ai.py +910 -0
  366. package/lib/skills/builtin/scientific-visualization/SKILL.md +749 -0
  367. package/lib/skills/builtin/scientific-visualization/assets/color_palettes.py +197 -0
  368. package/lib/skills/builtin/scientific-visualization/assets/nature.mplstyle +63 -0
  369. package/lib/skills/builtin/scientific-visualization/assets/presentation.mplstyle +61 -0
  370. package/lib/skills/builtin/scientific-visualization/assets/publication.mplstyle +68 -0
  371. package/lib/skills/builtin/scientific-visualization/references/color_palettes.md +348 -0
  372. package/lib/skills/builtin/scientific-visualization/references/journal_requirements.md +320 -0
  373. package/lib/skills/builtin/scientific-visualization/references/matplotlib_examples.md +620 -0
  374. package/lib/skills/builtin/scientific-visualization/references/publication_guidelines.md +205 -0
  375. package/lib/skills/builtin/scientific-visualization/scripts/figure_export.py +343 -0
  376. package/lib/skills/builtin/scientific-visualization/scripts/style_presets.py +416 -0
  377. package/lib/skills/builtin/scientific-writing/SKILL.md +745 -0
  378. package/lib/skills/builtin/scientific-writing/assets/REPORT_FORMATTING_GUIDE.md +574 -0
  379. package/lib/skills/builtin/scientific-writing/assets/scientific_report.sty +606 -0
  380. package/lib/skills/builtin/scientific-writing/assets/scientific_report_template.tex +449 -0
  381. package/lib/skills/builtin/scientific-writing/references/citation_styles.md +720 -0
  382. package/lib/skills/builtin/scientific-writing/references/figures_tables.md +806 -0
  383. package/lib/skills/builtin/scientific-writing/references/imrad_structure.md +686 -0
  384. package/lib/skills/builtin/scientific-writing/references/professional_report_formatting.md +664 -0
  385. package/lib/skills/builtin/scientific-writing/references/reporting_guidelines.md +748 -0
  386. package/lib/skills/builtin/scientific-writing/references/writing_principles.md +824 -0
  387. package/lib/skills/builtin/seaborn/SKILL.md +674 -0
  388. package/lib/skills/builtin/seaborn/references/examples.md +822 -0
  389. package/lib/skills/builtin/seaborn/references/function_reference.md +770 -0
  390. package/lib/skills/builtin/seaborn/references/objects_interface.md +964 -0
  391. package/lib/skills/data-analysis/SKILL.md +285 -0
  392. package/lib/skills/generate-skill-content.mjs +58 -0
  393. package/lib/skills/index.ts +34 -0
  394. package/lib/skills/loader.ts +452 -0
  395. package/package.json +62 -0
@@ -0,0 +1,1817 @@
1
+ import { ai as getConfig$1, u as select, w as configureSvgSize, v as log$1, M as clear$1, at as rgba, C as common$1, r as getConfig, al as getStylesFromArray } from "./MilkdownMarkdownEditor-bLPxrCVb.js";
2
+ import { c as clone } from "./clone-CsnzsYXQ.js";
3
+ import { i as insertMarkers$1, a as insertEdge, b as insertEdgeLabel, p as positionEdgeLabel, c as insertNode, d as positionNode } from "./edges-96097737-CD0EvAZQ.js";
4
+ import { G as Graph } from "./graph-DpC13d95.js";
5
+ import { o as ordinal } from "./ordinal-DSZU4PqD.js";
6
+ import { c as channel } from "./channel-ZAmhHE3g.js";
7
+ import { s as schemeTableau10 } from "./Tableau10-BqnYsPR6.js";
8
+ import "./index-BqDyyRCx.js";
9
+ import "./createText-1719965b-Cji7KN4K.js";
10
+ import "./line-CAgaGl-S.js";
11
+ import "./array-DgktLKBx.js";
12
+ import "./path-Cp2qmpkd.js";
13
+ import "./init-ZxktEp_H.js";
14
+ var _a, _b;
15
+ var parser = function() {
16
+ var o = function(k, v, o2, l) {
17
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
18
+ ;
19
+ return o2;
20
+ }, $V0 = [1, 7], $V1 = [1, 13], $V2 = [1, 14], $V3 = [1, 15], $V4 = [1, 19], $V5 = [1, 16], $V6 = [1, 17], $V7 = [1, 18], $V8 = [8, 30], $V9 = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], $Va = [1, 23], $Vb = [1, 24], $Vc = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], $Vd = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], $Ve = [1, 49];
21
+ var parser2 = {
22
+ trace: function trace() {
23
+ },
24
+ yy: {},
25
+ symbols_: { "error": 2, "spaceLines": 3, "SPACELINE": 4, "NL": 5, "separator": 6, "SPACE": 7, "EOF": 8, "start": 9, "BLOCK_DIAGRAM_KEY": 10, "document": 11, "stop": 12, "statement": 13, "link": 14, "LINK": 15, "START_LINK": 16, "LINK_LABEL": 17, "STR": 18, "nodeStatement": 19, "columnsStatement": 20, "SPACE_BLOCK": 21, "blockStatement": 22, "classDefStatement": 23, "cssClassStatement": 24, "styleStatement": 25, "node": 26, "SIZE": 27, "COLUMNS": 28, "id-block": 29, "end": 30, "block": 31, "NODE_ID": 32, "nodeShapeNLabel": 33, "dirList": 34, "DIR": 35, "NODE_DSTART": 36, "NODE_DEND": 37, "BLOCK_ARROW_START": 38, "BLOCK_ARROW_END": 39, "classDef": 40, "CLASSDEF_ID": 41, "CLASSDEF_STYLEOPTS": 42, "DEFAULT": 43, "class": 44, "CLASSENTITY_IDS": 45, "STYLECLASS": 46, "style": 47, "STYLE_ENTITY_IDS": 48, "STYLE_DEFINITION_DATA": 49, "$accept": 0, "$end": 1 },
26
+ terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "block", 32: "NODE_ID", 35: "DIR", 36: "NODE_DSTART", 37: "NODE_DEND", 38: "BLOCK_ARROW_START", 39: "BLOCK_ARROW_END", 40: "classDef", 41: "CLASSDEF_ID", 42: "CLASSDEF_STYLEOPTS", 43: "DEFAULT", 44: "class", 45: "CLASSENTITY_IDS", 46: "STYLECLASS", 47: "style", 48: "STYLE_ENTITY_IDS", 49: "STYLE_DEFINITION_DATA" },
27
+ productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [34, 1], [34, 2], [33, 3], [33, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
28
+ performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
29
+ var $0 = $$.length - 1;
30
+ switch (yystate) {
31
+ case 4:
32
+ yy.getLogger().debug("Rule: separator (NL) ");
33
+ break;
34
+ case 5:
35
+ yy.getLogger().debug("Rule: separator (Space) ");
36
+ break;
37
+ case 6:
38
+ yy.getLogger().debug("Rule: separator (EOF) ");
39
+ break;
40
+ case 7:
41
+ yy.getLogger().debug("Rule: hierarchy: ", $$[$0 - 1]);
42
+ yy.setHierarchy($$[$0 - 1]);
43
+ break;
44
+ case 8:
45
+ yy.getLogger().debug("Stop NL ");
46
+ break;
47
+ case 9:
48
+ yy.getLogger().debug("Stop EOF ");
49
+ break;
50
+ case 10:
51
+ yy.getLogger().debug("Stop NL2 ");
52
+ break;
53
+ case 11:
54
+ yy.getLogger().debug("Stop EOF2 ");
55
+ break;
56
+ case 12:
57
+ yy.getLogger().debug("Rule: statement: ", $$[$0]);
58
+ typeof $$[$0].length === "number" ? this.$ = $$[$0] : this.$ = [$$[$0]];
59
+ break;
60
+ case 13:
61
+ yy.getLogger().debug("Rule: statement #2: ", $$[$0 - 1]);
62
+ this.$ = [$$[$0 - 1]].concat($$[$0]);
63
+ break;
64
+ case 14:
65
+ yy.getLogger().debug("Rule: link: ", $$[$0], yytext);
66
+ this.$ = { edgeTypeStr: $$[$0], label: "" };
67
+ break;
68
+ case 15:
69
+ yy.getLogger().debug("Rule: LABEL link: ", $$[$0 - 3], $$[$0 - 1], $$[$0]);
70
+ this.$ = { edgeTypeStr: $$[$0], label: $$[$0 - 1] };
71
+ break;
72
+ case 18:
73
+ const num = parseInt($$[$0]);
74
+ const spaceId = yy.generateId();
75
+ this.$ = { id: spaceId, type: "space", label: "", width: num, children: [] };
76
+ break;
77
+ case 23:
78
+ yy.getLogger().debug("Rule: (nodeStatement link node) ", $$[$0 - 2], $$[$0 - 1], $$[$0], " typestr: ", $$[$0 - 1].edgeTypeStr);
79
+ const edgeData = yy.edgeStrToEdgeData($$[$0 - 1].edgeTypeStr);
80
+ this.$ = [
81
+ { id: $$[$0 - 2].id, label: $$[$0 - 2].label, type: $$[$0 - 2].type, directions: $$[$0 - 2].directions },
82
+ { id: $$[$0 - 2].id + "-" + $$[$0].id, start: $$[$0 - 2].id, end: $$[$0].id, label: $$[$0 - 1].label, type: "edge", directions: $$[$0].directions, arrowTypeEnd: edgeData, arrowTypeStart: "arrow_open" },
83
+ { id: $$[$0].id, label: $$[$0].label, type: yy.typeStr2Type($$[$0].typeStr), directions: $$[$0].directions }
84
+ ];
85
+ break;
86
+ case 24:
87
+ yy.getLogger().debug("Rule: nodeStatement (abc88 node size) ", $$[$0 - 1], $$[$0]);
88
+ this.$ = { id: $$[$0 - 1].id, label: $$[$0 - 1].label, type: yy.typeStr2Type($$[$0 - 1].typeStr), directions: $$[$0 - 1].directions, widthInColumns: parseInt($$[$0], 10) };
89
+ break;
90
+ case 25:
91
+ yy.getLogger().debug("Rule: nodeStatement (node) ", $$[$0]);
92
+ this.$ = { id: $$[$0].id, label: $$[$0].label, type: yy.typeStr2Type($$[$0].typeStr), directions: $$[$0].directions, widthInColumns: 1 };
93
+ break;
94
+ case 26:
95
+ yy.getLogger().debug("APA123", this ? this : "na");
96
+ yy.getLogger().debug("COLUMNS: ", $$[$0]);
97
+ this.$ = { type: "column-setting", columns: $$[$0] === "auto" ? -1 : parseInt($$[$0]) };
98
+ break;
99
+ case 27:
100
+ yy.getLogger().debug("Rule: id-block statement : ", $$[$0 - 2], $$[$0 - 1]);
101
+ yy.generateId();
102
+ this.$ = { ...$$[$0 - 2], type: "composite", children: $$[$0 - 1] };
103
+ break;
104
+ case 28:
105
+ yy.getLogger().debug("Rule: blockStatement : ", $$[$0 - 2], $$[$0 - 1], $$[$0]);
106
+ const id = yy.generateId();
107
+ this.$ = { id, type: "composite", label: "", children: $$[$0 - 1] };
108
+ break;
109
+ case 29:
110
+ yy.getLogger().debug("Rule: node (NODE_ID separator): ", $$[$0]);
111
+ this.$ = { id: $$[$0] };
112
+ break;
113
+ case 30:
114
+ yy.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", $$[$0 - 1], $$[$0]);
115
+ this.$ = { id: $$[$0 - 1], label: $$[$0].label, typeStr: $$[$0].typeStr, directions: $$[$0].directions };
116
+ break;
117
+ case 31:
118
+ yy.getLogger().debug("Rule: dirList: ", $$[$0]);
119
+ this.$ = [$$[$0]];
120
+ break;
121
+ case 32:
122
+ yy.getLogger().debug("Rule: dirList: ", $$[$0 - 1], $$[$0]);
123
+ this.$ = [$$[$0 - 1]].concat($$[$0]);
124
+ break;
125
+ case 33:
126
+ yy.getLogger().debug("Rule: nodeShapeNLabel: ", $$[$0 - 2], $$[$0 - 1], $$[$0]);
127
+ this.$ = { typeStr: $$[$0 - 2] + $$[$0], label: $$[$0 - 1] };
128
+ break;
129
+ case 34:
130
+ yy.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", $$[$0 - 3], $$[$0 - 2], " #3:", $$[$0 - 1], $$[$0]);
131
+ this.$ = { typeStr: $$[$0 - 3] + $$[$0], label: $$[$0 - 2], directions: $$[$0 - 1] };
132
+ break;
133
+ case 35:
134
+ case 36:
135
+ this.$ = { type: "classDef", id: $$[$0 - 1].trim(), css: $$[$0].trim() };
136
+ break;
137
+ case 37:
138
+ this.$ = { type: "applyClass", id: $$[$0 - 1].trim(), styleClass: $$[$0].trim() };
139
+ break;
140
+ case 38:
141
+ this.$ = { type: "applyStyles", id: $$[$0 - 1].trim(), stylesStr: $$[$0].trim() };
142
+ break;
143
+ }
144
+ },
145
+ table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 8: [1, 20] }, o($V8, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: $V0, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }), o($V9, [2, 16], { 14: 22, 15: $Va, 16: $Vb }), o($V9, [2, 17]), o($V9, [2, 18]), o($V9, [2, 19]), o($V9, [2, 20]), o($V9, [2, 21]), o($V9, [2, 22]), o($Vc, [2, 25], { 27: [1, 25] }), o($V9, [2, 26]), { 19: 26, 26: 12, 32: $V4 }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, o($Vd, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, o($V8, [2, 13]), { 26: 35, 32: $V4 }, { 32: [2, 14] }, { 17: [1, 36] }, o($Vc, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: $Va, 16: $Vb, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, o($Vd, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, o($Vc, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, o($V9, [2, 28]), o($V9, [2, 35]), o($V9, [2, 36]), o($V9, [2, 37]), o($V9, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: $Ve }, { 15: [1, 50] }, o($V9, [2, 27]), o($Vd, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: $Ve, 39: [2, 31] }, { 32: [2, 15] }, o($Vd, [2, 34]), { 39: [2, 32] }],
146
+ defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
147
+ parseError: function parseError(str, hash) {
148
+ if (hash.recoverable) {
149
+ this.trace(str);
150
+ } else {
151
+ var error = new Error(str);
152
+ error.hash = hash;
153
+ throw error;
154
+ }
155
+ },
156
+ parse: function parse(input) {
157
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
158
+ var args = lstack.slice.call(arguments, 1);
159
+ var lexer2 = Object.create(this.lexer);
160
+ var sharedState = { yy: {} };
161
+ for (var k in this.yy) {
162
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
163
+ sharedState.yy[k] = this.yy[k];
164
+ }
165
+ }
166
+ lexer2.setInput(input, sharedState.yy);
167
+ sharedState.yy.lexer = lexer2;
168
+ sharedState.yy.parser = this;
169
+ if (typeof lexer2.yylloc == "undefined") {
170
+ lexer2.yylloc = {};
171
+ }
172
+ var yyloc = lexer2.yylloc;
173
+ lstack.push(yyloc);
174
+ var ranges = lexer2.options && lexer2.options.ranges;
175
+ if (typeof sharedState.yy.parseError === "function") {
176
+ this.parseError = sharedState.yy.parseError;
177
+ } else {
178
+ this.parseError = Object.getPrototypeOf(this).parseError;
179
+ }
180
+ function lex() {
181
+ var token;
182
+ token = tstack.pop() || lexer2.lex() || EOF;
183
+ if (typeof token !== "number") {
184
+ if (token instanceof Array) {
185
+ tstack = token;
186
+ token = tstack.pop();
187
+ }
188
+ token = self.symbols_[token] || token;
189
+ }
190
+ return token;
191
+ }
192
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
193
+ while (true) {
194
+ state = stack[stack.length - 1];
195
+ if (this.defaultActions[state]) {
196
+ action = this.defaultActions[state];
197
+ } else {
198
+ if (symbol === null || typeof symbol == "undefined") {
199
+ symbol = lex();
200
+ }
201
+ action = table[state] && table[state][symbol];
202
+ }
203
+ if (typeof action === "undefined" || !action.length || !action[0]) {
204
+ var errStr = "";
205
+ expected = [];
206
+ for (p in table[state]) {
207
+ if (this.terminals_[p] && p > TERROR) {
208
+ expected.push("'" + this.terminals_[p] + "'");
209
+ }
210
+ }
211
+ if (lexer2.showPosition) {
212
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
213
+ } else {
214
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
215
+ }
216
+ this.parseError(errStr, {
217
+ text: lexer2.match,
218
+ token: this.terminals_[symbol] || symbol,
219
+ line: lexer2.yylineno,
220
+ loc: yyloc,
221
+ expected
222
+ });
223
+ }
224
+ if (action[0] instanceof Array && action.length > 1) {
225
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
226
+ }
227
+ switch (action[0]) {
228
+ case 1:
229
+ stack.push(symbol);
230
+ vstack.push(lexer2.yytext);
231
+ lstack.push(lexer2.yylloc);
232
+ stack.push(action[1]);
233
+ symbol = null;
234
+ {
235
+ yyleng = lexer2.yyleng;
236
+ yytext = lexer2.yytext;
237
+ yylineno = lexer2.yylineno;
238
+ yyloc = lexer2.yylloc;
239
+ }
240
+ break;
241
+ case 2:
242
+ len = this.productions_[action[1]][1];
243
+ yyval.$ = vstack[vstack.length - len];
244
+ yyval._$ = {
245
+ first_line: lstack[lstack.length - (len || 1)].first_line,
246
+ last_line: lstack[lstack.length - 1].last_line,
247
+ first_column: lstack[lstack.length - (len || 1)].first_column,
248
+ last_column: lstack[lstack.length - 1].last_column
249
+ };
250
+ if (ranges) {
251
+ yyval._$.range = [
252
+ lstack[lstack.length - (len || 1)].range[0],
253
+ lstack[lstack.length - 1].range[1]
254
+ ];
255
+ }
256
+ r = this.performAction.apply(yyval, [
257
+ yytext,
258
+ yyleng,
259
+ yylineno,
260
+ sharedState.yy,
261
+ action[1],
262
+ vstack,
263
+ lstack
264
+ ].concat(args));
265
+ if (typeof r !== "undefined") {
266
+ return r;
267
+ }
268
+ if (len) {
269
+ stack = stack.slice(0, -1 * len * 2);
270
+ vstack = vstack.slice(0, -1 * len);
271
+ lstack = lstack.slice(0, -1 * len);
272
+ }
273
+ stack.push(this.productions_[action[1]][0]);
274
+ vstack.push(yyval.$);
275
+ lstack.push(yyval._$);
276
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
277
+ stack.push(newState);
278
+ break;
279
+ case 3:
280
+ return true;
281
+ }
282
+ }
283
+ return true;
284
+ }
285
+ };
286
+ var lexer = /* @__PURE__ */ function() {
287
+ var lexer2 = {
288
+ EOF: 1,
289
+ parseError: function parseError(str, hash) {
290
+ if (this.yy.parser) {
291
+ this.yy.parser.parseError(str, hash);
292
+ } else {
293
+ throw new Error(str);
294
+ }
295
+ },
296
+ // resets the lexer, sets new input
297
+ setInput: function(input, yy) {
298
+ this.yy = yy || this.yy || {};
299
+ this._input = input;
300
+ this._more = this._backtrack = this.done = false;
301
+ this.yylineno = this.yyleng = 0;
302
+ this.yytext = this.matched = this.match = "";
303
+ this.conditionStack = ["INITIAL"];
304
+ this.yylloc = {
305
+ first_line: 1,
306
+ first_column: 0,
307
+ last_line: 1,
308
+ last_column: 0
309
+ };
310
+ if (this.options.ranges) {
311
+ this.yylloc.range = [0, 0];
312
+ }
313
+ this.offset = 0;
314
+ return this;
315
+ },
316
+ // consumes and returns one char from the input
317
+ input: function() {
318
+ var ch = this._input[0];
319
+ this.yytext += ch;
320
+ this.yyleng++;
321
+ this.offset++;
322
+ this.match += ch;
323
+ this.matched += ch;
324
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
325
+ if (lines) {
326
+ this.yylineno++;
327
+ this.yylloc.last_line++;
328
+ } else {
329
+ this.yylloc.last_column++;
330
+ }
331
+ if (this.options.ranges) {
332
+ this.yylloc.range[1]++;
333
+ }
334
+ this._input = this._input.slice(1);
335
+ return ch;
336
+ },
337
+ // unshifts one char (or a string) into the input
338
+ unput: function(ch) {
339
+ var len = ch.length;
340
+ var lines = ch.split(/(?:\r\n?|\n)/g);
341
+ this._input = ch + this._input;
342
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
343
+ this.offset -= len;
344
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
345
+ this.match = this.match.substr(0, this.match.length - 1);
346
+ this.matched = this.matched.substr(0, this.matched.length - 1);
347
+ if (lines.length - 1) {
348
+ this.yylineno -= lines.length - 1;
349
+ }
350
+ var r = this.yylloc.range;
351
+ this.yylloc = {
352
+ first_line: this.yylloc.first_line,
353
+ last_line: this.yylineno + 1,
354
+ first_column: this.yylloc.first_column,
355
+ 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
356
+ };
357
+ if (this.options.ranges) {
358
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
359
+ }
360
+ this.yyleng = this.yytext.length;
361
+ return this;
362
+ },
363
+ // When called from action, caches matched text and appends it on next action
364
+ more: function() {
365
+ this._more = true;
366
+ return this;
367
+ },
368
+ // 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.
369
+ reject: function() {
370
+ if (this.options.backtrack_lexer) {
371
+ this._backtrack = true;
372
+ } else {
373
+ 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(), {
374
+ text: "",
375
+ token: null,
376
+ line: this.yylineno
377
+ });
378
+ }
379
+ return this;
380
+ },
381
+ // retain first n characters of the match
382
+ less: function(n) {
383
+ this.unput(this.match.slice(n));
384
+ },
385
+ // displays already matched input, i.e. for error messages
386
+ pastInput: function() {
387
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
388
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
389
+ },
390
+ // displays upcoming input, i.e. for error messages
391
+ upcomingInput: function() {
392
+ var next = this.match;
393
+ if (next.length < 20) {
394
+ next += this._input.substr(0, 20 - next.length);
395
+ }
396
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
397
+ },
398
+ // displays the character position where the lexing error occurred, i.e. for error messages
399
+ showPosition: function() {
400
+ var pre = this.pastInput();
401
+ var c = new Array(pre.length + 1).join("-");
402
+ return pre + this.upcomingInput() + "\n" + c + "^";
403
+ },
404
+ // test the lexed token: return FALSE when not a match, otherwise return token
405
+ test_match: function(match, indexed_rule) {
406
+ var token, lines, backup;
407
+ if (this.options.backtrack_lexer) {
408
+ backup = {
409
+ yylineno: this.yylineno,
410
+ yylloc: {
411
+ first_line: this.yylloc.first_line,
412
+ last_line: this.last_line,
413
+ first_column: this.yylloc.first_column,
414
+ last_column: this.yylloc.last_column
415
+ },
416
+ yytext: this.yytext,
417
+ match: this.match,
418
+ matches: this.matches,
419
+ matched: this.matched,
420
+ yyleng: this.yyleng,
421
+ offset: this.offset,
422
+ _more: this._more,
423
+ _input: this._input,
424
+ yy: this.yy,
425
+ conditionStack: this.conditionStack.slice(0),
426
+ done: this.done
427
+ };
428
+ if (this.options.ranges) {
429
+ backup.yylloc.range = this.yylloc.range.slice(0);
430
+ }
431
+ }
432
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
433
+ if (lines) {
434
+ this.yylineno += lines.length;
435
+ }
436
+ this.yylloc = {
437
+ first_line: this.yylloc.last_line,
438
+ last_line: this.yylineno + 1,
439
+ first_column: this.yylloc.last_column,
440
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
441
+ };
442
+ this.yytext += match[0];
443
+ this.match += match[0];
444
+ this.matches = match;
445
+ this.yyleng = this.yytext.length;
446
+ if (this.options.ranges) {
447
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
448
+ }
449
+ this._more = false;
450
+ this._backtrack = false;
451
+ this._input = this._input.slice(match[0].length);
452
+ this.matched += match[0];
453
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
454
+ if (this.done && this._input) {
455
+ this.done = false;
456
+ }
457
+ if (token) {
458
+ return token;
459
+ } else if (this._backtrack) {
460
+ for (var k in backup) {
461
+ this[k] = backup[k];
462
+ }
463
+ return false;
464
+ }
465
+ return false;
466
+ },
467
+ // return next match in input
468
+ next: function() {
469
+ if (this.done) {
470
+ return this.EOF;
471
+ }
472
+ if (!this._input) {
473
+ this.done = true;
474
+ }
475
+ var token, match, tempMatch, index;
476
+ if (!this._more) {
477
+ this.yytext = "";
478
+ this.match = "";
479
+ }
480
+ var rules = this._currentRules();
481
+ for (var i = 0; i < rules.length; i++) {
482
+ tempMatch = this._input.match(this.rules[rules[i]]);
483
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
484
+ match = tempMatch;
485
+ index = i;
486
+ if (this.options.backtrack_lexer) {
487
+ token = this.test_match(tempMatch, rules[i]);
488
+ if (token !== false) {
489
+ return token;
490
+ } else if (this._backtrack) {
491
+ match = false;
492
+ continue;
493
+ } else {
494
+ return false;
495
+ }
496
+ } else if (!this.options.flex) {
497
+ break;
498
+ }
499
+ }
500
+ }
501
+ if (match) {
502
+ token = this.test_match(match, rules[index]);
503
+ if (token !== false) {
504
+ return token;
505
+ }
506
+ return false;
507
+ }
508
+ if (this._input === "") {
509
+ return this.EOF;
510
+ } else {
511
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
512
+ text: "",
513
+ token: null,
514
+ line: this.yylineno
515
+ });
516
+ }
517
+ },
518
+ // return next match that has a token
519
+ lex: function lex() {
520
+ var r = this.next();
521
+ if (r) {
522
+ return r;
523
+ } else {
524
+ return this.lex();
525
+ }
526
+ },
527
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
528
+ begin: function begin(condition) {
529
+ this.conditionStack.push(condition);
530
+ },
531
+ // pop the previously active lexer condition state off the condition stack
532
+ popState: function popState() {
533
+ var n = this.conditionStack.length - 1;
534
+ if (n > 0) {
535
+ return this.conditionStack.pop();
536
+ } else {
537
+ return this.conditionStack[0];
538
+ }
539
+ },
540
+ // produce the lexer rule set which is active for the currently active lexer condition state
541
+ _currentRules: function _currentRules() {
542
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
543
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
544
+ } else {
545
+ return this.conditions["INITIAL"].rules;
546
+ }
547
+ },
548
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
549
+ topState: function topState(n) {
550
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
551
+ if (n >= 0) {
552
+ return this.conditionStack[n];
553
+ } else {
554
+ return "INITIAL";
555
+ }
556
+ },
557
+ // alias for begin(condition)
558
+ pushState: function pushState(condition) {
559
+ this.begin(condition);
560
+ },
561
+ // return the number of states currently on the stack
562
+ stateStackSize: function stateStackSize() {
563
+ return this.conditionStack.length;
564
+ },
565
+ options: {},
566
+ performAction: function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
567
+ switch ($avoiding_name_collisions) {
568
+ case 0:
569
+ return 10;
570
+ case 1:
571
+ yy.getLogger().debug("Found space-block");
572
+ return 31;
573
+ case 2:
574
+ yy.getLogger().debug("Found nl-block");
575
+ return 31;
576
+ case 3:
577
+ yy.getLogger().debug("Found space-block");
578
+ return 29;
579
+ case 4:
580
+ yy.getLogger().debug(".", yy_.yytext);
581
+ break;
582
+ case 5:
583
+ yy.getLogger().debug("_", yy_.yytext);
584
+ break;
585
+ case 6:
586
+ return 5;
587
+ case 7:
588
+ yy_.yytext = -1;
589
+ return 28;
590
+ case 8:
591
+ yy_.yytext = yy_.yytext.replace(/columns\s+/, "");
592
+ yy.getLogger().debug("COLUMNS (LEX)", yy_.yytext);
593
+ return 28;
594
+ case 9:
595
+ this.pushState("md_string");
596
+ break;
597
+ case 10:
598
+ return "MD_STR";
599
+ case 11:
600
+ this.popState();
601
+ break;
602
+ case 12:
603
+ this.pushState("string");
604
+ break;
605
+ case 13:
606
+ yy.getLogger().debug("LEX: POPPING STR:", yy_.yytext);
607
+ this.popState();
608
+ break;
609
+ case 14:
610
+ yy.getLogger().debug("LEX: STR end:", yy_.yytext);
611
+ return "STR";
612
+ case 15:
613
+ yy_.yytext = yy_.yytext.replace(/space\:/, "");
614
+ yy.getLogger().debug("SPACE NUM (LEX)", yy_.yytext);
615
+ return 21;
616
+ case 16:
617
+ yy_.yytext = "1";
618
+ yy.getLogger().debug("COLUMNS (LEX)", yy_.yytext);
619
+ return 21;
620
+ case 17:
621
+ return 43;
622
+ case 18:
623
+ return "LINKSTYLE";
624
+ case 19:
625
+ return "INTERPOLATE";
626
+ case 20:
627
+ this.pushState("CLASSDEF");
628
+ return 40;
629
+ case 21:
630
+ this.popState();
631
+ this.pushState("CLASSDEFID");
632
+ return "DEFAULT_CLASSDEF_ID";
633
+ case 22:
634
+ this.popState();
635
+ this.pushState("CLASSDEFID");
636
+ return 41;
637
+ case 23:
638
+ this.popState();
639
+ return 42;
640
+ case 24:
641
+ this.pushState("CLASS");
642
+ return 44;
643
+ case 25:
644
+ this.popState();
645
+ this.pushState("CLASS_STYLE");
646
+ return 45;
647
+ case 26:
648
+ this.popState();
649
+ return 46;
650
+ case 27:
651
+ this.pushState("STYLE_STMNT");
652
+ return 47;
653
+ case 28:
654
+ this.popState();
655
+ this.pushState("STYLE_DEFINITION");
656
+ return 48;
657
+ case 29:
658
+ this.popState();
659
+ return 49;
660
+ case 30:
661
+ this.pushState("acc_title");
662
+ return "acc_title";
663
+ case 31:
664
+ this.popState();
665
+ return "acc_title_value";
666
+ case 32:
667
+ this.pushState("acc_descr");
668
+ return "acc_descr";
669
+ case 33:
670
+ this.popState();
671
+ return "acc_descr_value";
672
+ case 34:
673
+ this.pushState("acc_descr_multiline");
674
+ break;
675
+ case 35:
676
+ this.popState();
677
+ break;
678
+ case 36:
679
+ return "acc_descr_multiline_value";
680
+ case 37:
681
+ return 30;
682
+ case 38:
683
+ this.popState();
684
+ yy.getLogger().debug("Lex: ((");
685
+ return "NODE_DEND";
686
+ case 39:
687
+ this.popState();
688
+ yy.getLogger().debug("Lex: ((");
689
+ return "NODE_DEND";
690
+ case 40:
691
+ this.popState();
692
+ yy.getLogger().debug("Lex: ))");
693
+ return "NODE_DEND";
694
+ case 41:
695
+ this.popState();
696
+ yy.getLogger().debug("Lex: ((");
697
+ return "NODE_DEND";
698
+ case 42:
699
+ this.popState();
700
+ yy.getLogger().debug("Lex: ((");
701
+ return "NODE_DEND";
702
+ case 43:
703
+ this.popState();
704
+ yy.getLogger().debug("Lex: (-");
705
+ return "NODE_DEND";
706
+ case 44:
707
+ this.popState();
708
+ yy.getLogger().debug("Lex: -)");
709
+ return "NODE_DEND";
710
+ case 45:
711
+ this.popState();
712
+ yy.getLogger().debug("Lex: ((");
713
+ return "NODE_DEND";
714
+ case 46:
715
+ this.popState();
716
+ yy.getLogger().debug("Lex: ]]");
717
+ return "NODE_DEND";
718
+ case 47:
719
+ this.popState();
720
+ yy.getLogger().debug("Lex: (");
721
+ return "NODE_DEND";
722
+ case 48:
723
+ this.popState();
724
+ yy.getLogger().debug("Lex: ])");
725
+ return "NODE_DEND";
726
+ case 49:
727
+ this.popState();
728
+ yy.getLogger().debug("Lex: /]");
729
+ return "NODE_DEND";
730
+ case 50:
731
+ this.popState();
732
+ yy.getLogger().debug("Lex: /]");
733
+ return "NODE_DEND";
734
+ case 51:
735
+ this.popState();
736
+ yy.getLogger().debug("Lex: )]");
737
+ return "NODE_DEND";
738
+ case 52:
739
+ this.popState();
740
+ yy.getLogger().debug("Lex: )");
741
+ return "NODE_DEND";
742
+ case 53:
743
+ this.popState();
744
+ yy.getLogger().debug("Lex: ]>");
745
+ return "NODE_DEND";
746
+ case 54:
747
+ this.popState();
748
+ yy.getLogger().debug("Lex: ]");
749
+ return "NODE_DEND";
750
+ case 55:
751
+ yy.getLogger().debug("Lexa: -)");
752
+ this.pushState("NODE");
753
+ return 36;
754
+ case 56:
755
+ yy.getLogger().debug("Lexa: (-");
756
+ this.pushState("NODE");
757
+ return 36;
758
+ case 57:
759
+ yy.getLogger().debug("Lexa: ))");
760
+ this.pushState("NODE");
761
+ return 36;
762
+ case 58:
763
+ yy.getLogger().debug("Lexa: )");
764
+ this.pushState("NODE");
765
+ return 36;
766
+ case 59:
767
+ yy.getLogger().debug("Lex: (((");
768
+ this.pushState("NODE");
769
+ return 36;
770
+ case 60:
771
+ yy.getLogger().debug("Lexa: )");
772
+ this.pushState("NODE");
773
+ return 36;
774
+ case 61:
775
+ yy.getLogger().debug("Lexa: )");
776
+ this.pushState("NODE");
777
+ return 36;
778
+ case 62:
779
+ yy.getLogger().debug("Lexa: )");
780
+ this.pushState("NODE");
781
+ return 36;
782
+ case 63:
783
+ yy.getLogger().debug("Lexc: >");
784
+ this.pushState("NODE");
785
+ return 36;
786
+ case 64:
787
+ yy.getLogger().debug("Lexa: ([");
788
+ this.pushState("NODE");
789
+ return 36;
790
+ case 65:
791
+ yy.getLogger().debug("Lexa: )");
792
+ this.pushState("NODE");
793
+ return 36;
794
+ case 66:
795
+ this.pushState("NODE");
796
+ return 36;
797
+ case 67:
798
+ this.pushState("NODE");
799
+ return 36;
800
+ case 68:
801
+ this.pushState("NODE");
802
+ return 36;
803
+ case 69:
804
+ this.pushState("NODE");
805
+ return 36;
806
+ case 70:
807
+ this.pushState("NODE");
808
+ return 36;
809
+ case 71:
810
+ this.pushState("NODE");
811
+ return 36;
812
+ case 72:
813
+ this.pushState("NODE");
814
+ return 36;
815
+ case 73:
816
+ yy.getLogger().debug("Lexa: [");
817
+ this.pushState("NODE");
818
+ return 36;
819
+ case 74:
820
+ this.pushState("BLOCK_ARROW");
821
+ yy.getLogger().debug("LEX ARR START");
822
+ return 38;
823
+ case 75:
824
+ yy.getLogger().debug("Lex: NODE_ID", yy_.yytext);
825
+ return 32;
826
+ case 76:
827
+ yy.getLogger().debug("Lex: EOF", yy_.yytext);
828
+ return 8;
829
+ case 77:
830
+ this.pushState("md_string");
831
+ break;
832
+ case 78:
833
+ this.pushState("md_string");
834
+ break;
835
+ case 79:
836
+ return "NODE_DESCR";
837
+ case 80:
838
+ this.popState();
839
+ break;
840
+ case 81:
841
+ yy.getLogger().debug("Lex: Starting string");
842
+ this.pushState("string");
843
+ break;
844
+ case 82:
845
+ yy.getLogger().debug("LEX ARR: Starting string");
846
+ this.pushState("string");
847
+ break;
848
+ case 83:
849
+ yy.getLogger().debug("LEX: NODE_DESCR:", yy_.yytext);
850
+ return "NODE_DESCR";
851
+ case 84:
852
+ yy.getLogger().debug("LEX POPPING");
853
+ this.popState();
854
+ break;
855
+ case 85:
856
+ yy.getLogger().debug("Lex: =>BAE");
857
+ this.pushState("ARROW_DIR");
858
+ break;
859
+ case 86:
860
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
861
+ yy.getLogger().debug("Lex (right): dir:", yy_.yytext);
862
+ return "DIR";
863
+ case 87:
864
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
865
+ yy.getLogger().debug("Lex (left):", yy_.yytext);
866
+ return "DIR";
867
+ case 88:
868
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
869
+ yy.getLogger().debug("Lex (x):", yy_.yytext);
870
+ return "DIR";
871
+ case 89:
872
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
873
+ yy.getLogger().debug("Lex (y):", yy_.yytext);
874
+ return "DIR";
875
+ case 90:
876
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
877
+ yy.getLogger().debug("Lex (up):", yy_.yytext);
878
+ return "DIR";
879
+ case 91:
880
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
881
+ yy.getLogger().debug("Lex (down):", yy_.yytext);
882
+ return "DIR";
883
+ case 92:
884
+ yy_.yytext = "]>";
885
+ yy.getLogger().debug("Lex (ARROW_DIR end):", yy_.yytext);
886
+ this.popState();
887
+ this.popState();
888
+ return "BLOCK_ARROW_END";
889
+ case 93:
890
+ yy.getLogger().debug("Lex: LINK", "#" + yy_.yytext + "#");
891
+ return 15;
892
+ case 94:
893
+ yy.getLogger().debug("Lex: LINK", yy_.yytext);
894
+ return 15;
895
+ case 95:
896
+ yy.getLogger().debug("Lex: LINK", yy_.yytext);
897
+ return 15;
898
+ case 96:
899
+ yy.getLogger().debug("Lex: LINK", yy_.yytext);
900
+ return 15;
901
+ case 97:
902
+ yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
903
+ this.pushState("LLABEL");
904
+ return 16;
905
+ case 98:
906
+ yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
907
+ this.pushState("LLABEL");
908
+ return 16;
909
+ case 99:
910
+ yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
911
+ this.pushState("LLABEL");
912
+ return 16;
913
+ case 100:
914
+ this.pushState("md_string");
915
+ break;
916
+ case 101:
917
+ yy.getLogger().debug("Lex: Starting string");
918
+ this.pushState("string");
919
+ return "LINK_LABEL";
920
+ case 102:
921
+ this.popState();
922
+ yy.getLogger().debug("Lex: LINK", "#" + yy_.yytext + "#");
923
+ return 15;
924
+ case 103:
925
+ this.popState();
926
+ yy.getLogger().debug("Lex: LINK", yy_.yytext);
927
+ return 15;
928
+ case 104:
929
+ this.popState();
930
+ yy.getLogger().debug("Lex: LINK", yy_.yytext);
931
+ return 15;
932
+ case 105:
933
+ yy.getLogger().debug("Lex: COLON", yy_.yytext);
934
+ yy_.yytext = yy_.yytext.slice(1);
935
+ return 27;
936
+ }
937
+ },
938
+ rules: [/^(?:block-beta\b)/, /^(?:block\s+)/, /^(?:block\n+)/, /^(?:block:)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/],
939
+ conditions: { "STYLE_DEFINITION": { "rules": [29], "inclusive": false }, "STYLE_STMNT": { "rules": [28], "inclusive": false }, "CLASSDEFID": { "rules": [23], "inclusive": false }, "CLASSDEF": { "rules": [21, 22], "inclusive": false }, "CLASS_STYLE": { "rules": [26], "inclusive": false }, "CLASS": { "rules": [25], "inclusive": false }, "LLABEL": { "rules": [100, 101, 102, 103, 104], "inclusive": false }, "ARROW_DIR": { "rules": [86, 87, 88, 89, 90, 91, 92], "inclusive": false }, "BLOCK_ARROW": { "rules": [77, 82, 85], "inclusive": false }, "NODE": { "rules": [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 78, 81], "inclusive": false }, "md_string": { "rules": [10, 11, 79, 80], "inclusive": false }, "space": { "rules": [], "inclusive": false }, "string": { "rules": [13, 14, 83, 84], "inclusive": false }, "acc_descr_multiline": { "rules": [35, 36], "inclusive": false }, "acc_descr": { "rules": [33], "inclusive": false }, "acc_title": { "rules": [31], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 15, 16, 17, 18, 19, 20, 24, 27, 30, 32, 34, 37, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 93, 94, 95, 96, 97, 98, 99, 105], "inclusive": true } }
940
+ };
941
+ return lexer2;
942
+ }();
943
+ parser2.lexer = lexer;
944
+ function Parser() {
945
+ this.yy = {};
946
+ }
947
+ Parser.prototype = parser2;
948
+ parser2.Parser = Parser;
949
+ return new Parser();
950
+ }();
951
+ parser.parser = parser;
952
+ const parser$1 = parser;
953
+ let blockDatabase = {};
954
+ let edgeList = [];
955
+ let edgeCount = {};
956
+ const COLOR_KEYWORD = "color";
957
+ const FILL_KEYWORD = "fill";
958
+ const BG_FILL = "bgFill";
959
+ const STYLECLASS_SEP = ",";
960
+ const config = getConfig();
961
+ let classes = {};
962
+ const sanitizeText = (txt) => common$1.sanitizeText(txt, config);
963
+ const addStyleClass = function(id, styleAttributes = "") {
964
+ if (classes[id] === void 0) {
965
+ classes[id] = { id, styles: [], textStyles: [] };
966
+ }
967
+ const foundClass = classes[id];
968
+ if (styleAttributes !== void 0 && styleAttributes !== null) {
969
+ styleAttributes.split(STYLECLASS_SEP).forEach((attrib) => {
970
+ const fixedAttrib = attrib.replace(/([^;]*);/, "$1").trim();
971
+ if (attrib.match(COLOR_KEYWORD)) {
972
+ const newStyle1 = fixedAttrib.replace(FILL_KEYWORD, BG_FILL);
973
+ const newStyle2 = newStyle1.replace(COLOR_KEYWORD, FILL_KEYWORD);
974
+ foundClass.textStyles.push(newStyle2);
975
+ }
976
+ foundClass.styles.push(fixedAttrib);
977
+ });
978
+ }
979
+ };
980
+ const addStyle2Node = function(id, styles = "") {
981
+ const foundBlock = blockDatabase[id];
982
+ if (styles !== void 0 && styles !== null) {
983
+ foundBlock.styles = styles.split(STYLECLASS_SEP);
984
+ }
985
+ };
986
+ const setCssClass = function(itemIds, cssClassName) {
987
+ itemIds.split(",").forEach(function(id) {
988
+ let foundBlock = blockDatabase[id];
989
+ if (foundBlock === void 0) {
990
+ const trimmedId = id.trim();
991
+ blockDatabase[trimmedId] = { id: trimmedId, type: "na", children: [] };
992
+ foundBlock = blockDatabase[trimmedId];
993
+ }
994
+ if (!foundBlock.classes) {
995
+ foundBlock.classes = [];
996
+ }
997
+ foundBlock.classes.push(cssClassName);
998
+ });
999
+ };
1000
+ const populateBlockDatabase = (_blockList, parent) => {
1001
+ const blockList = _blockList.flat();
1002
+ const children = [];
1003
+ for (const block of blockList) {
1004
+ if (block.label) {
1005
+ block.label = sanitizeText(block.label);
1006
+ }
1007
+ if (block.type === "classDef") {
1008
+ addStyleClass(block.id, block.css);
1009
+ continue;
1010
+ }
1011
+ if (block.type === "applyClass") {
1012
+ setCssClass(block.id, (block == null ? void 0 : block.styleClass) || "");
1013
+ continue;
1014
+ }
1015
+ if (block.type === "applyStyles") {
1016
+ if (block == null ? void 0 : block.stylesStr) {
1017
+ addStyle2Node(block.id, block == null ? void 0 : block.stylesStr);
1018
+ }
1019
+ continue;
1020
+ }
1021
+ if (block.type === "column-setting") {
1022
+ parent.columns = block.columns || -1;
1023
+ } else if (block.type === "edge") {
1024
+ if (edgeCount[block.id]) {
1025
+ edgeCount[block.id]++;
1026
+ } else {
1027
+ edgeCount[block.id] = 1;
1028
+ }
1029
+ block.id = edgeCount[block.id] + "-" + block.id;
1030
+ edgeList.push(block);
1031
+ } else {
1032
+ if (!block.label) {
1033
+ if (block.type === "composite") {
1034
+ block.label = "";
1035
+ } else {
1036
+ block.label = block.id;
1037
+ }
1038
+ }
1039
+ const newBlock = !blockDatabase[block.id];
1040
+ if (newBlock) {
1041
+ blockDatabase[block.id] = block;
1042
+ } else {
1043
+ if (block.type !== "na") {
1044
+ blockDatabase[block.id].type = block.type;
1045
+ }
1046
+ if (block.label !== block.id) {
1047
+ blockDatabase[block.id].label = block.label;
1048
+ }
1049
+ }
1050
+ if (block.children) {
1051
+ populateBlockDatabase(block.children, block);
1052
+ }
1053
+ if (block.type === "space") {
1054
+ const w = block.width || 1;
1055
+ for (let j = 0; j < w; j++) {
1056
+ const newBlock2 = clone(block);
1057
+ newBlock2.id = newBlock2.id + "-" + j;
1058
+ blockDatabase[newBlock2.id] = newBlock2;
1059
+ children.push(newBlock2);
1060
+ }
1061
+ } else if (newBlock) {
1062
+ children.push(block);
1063
+ }
1064
+ }
1065
+ }
1066
+ parent.children = children;
1067
+ };
1068
+ let blocks = [];
1069
+ let rootBlock = { id: "root", type: "composite", children: [], columns: -1 };
1070
+ const clear = () => {
1071
+ log$1.debug("Clear called");
1072
+ clear$1();
1073
+ rootBlock = { id: "root", type: "composite", children: [], columns: -1 };
1074
+ blockDatabase = { root: rootBlock };
1075
+ blocks = [];
1076
+ classes = {};
1077
+ edgeList = [];
1078
+ edgeCount = {};
1079
+ };
1080
+ function typeStr2Type(typeStr) {
1081
+ log$1.debug("typeStr2Type", typeStr);
1082
+ switch (typeStr) {
1083
+ case "[]":
1084
+ return "square";
1085
+ case "()":
1086
+ log$1.debug("we have a round");
1087
+ return "round";
1088
+ case "(())":
1089
+ return "circle";
1090
+ case ">]":
1091
+ return "rect_left_inv_arrow";
1092
+ case "{}":
1093
+ return "diamond";
1094
+ case "{{}}":
1095
+ return "hexagon";
1096
+ case "([])":
1097
+ return "stadium";
1098
+ case "[[]]":
1099
+ return "subroutine";
1100
+ case "[()]":
1101
+ return "cylinder";
1102
+ case "((()))":
1103
+ return "doublecircle";
1104
+ case "[//]":
1105
+ return "lean_right";
1106
+ case "[\\\\]":
1107
+ return "lean_left";
1108
+ case "[/\\]":
1109
+ return "trapezoid";
1110
+ case "[\\/]":
1111
+ return "inv_trapezoid";
1112
+ case "<[]>":
1113
+ return "block_arrow";
1114
+ default:
1115
+ return "na";
1116
+ }
1117
+ }
1118
+ function edgeTypeStr2Type(typeStr) {
1119
+ log$1.debug("typeStr2Type", typeStr);
1120
+ switch (typeStr) {
1121
+ case "==":
1122
+ return "thick";
1123
+ default:
1124
+ return "normal";
1125
+ }
1126
+ }
1127
+ function edgeStrToEdgeData(typeStr) {
1128
+ switch (typeStr.trim()) {
1129
+ case "--x":
1130
+ return "arrow_cross";
1131
+ case "--o":
1132
+ return "arrow_circle";
1133
+ default:
1134
+ return "arrow_point";
1135
+ }
1136
+ }
1137
+ let cnt = 0;
1138
+ const generateId = () => {
1139
+ cnt++;
1140
+ return "id-" + Math.random().toString(36).substr(2, 12) + "-" + cnt;
1141
+ };
1142
+ const setHierarchy = (block) => {
1143
+ rootBlock.children = block;
1144
+ populateBlockDatabase(block, rootBlock);
1145
+ blocks = rootBlock.children;
1146
+ };
1147
+ const getColumns = (blockId) => {
1148
+ const block = blockDatabase[blockId];
1149
+ if (!block) {
1150
+ return -1;
1151
+ }
1152
+ if (block.columns) {
1153
+ return block.columns;
1154
+ }
1155
+ if (!block.children) {
1156
+ return -1;
1157
+ }
1158
+ return block.children.length;
1159
+ };
1160
+ const getBlocksFlat = () => {
1161
+ return [...Object.values(blockDatabase)];
1162
+ };
1163
+ const getBlocks = () => {
1164
+ return blocks || [];
1165
+ };
1166
+ const getEdges = () => {
1167
+ return edgeList;
1168
+ };
1169
+ const getBlock = (id) => {
1170
+ return blockDatabase[id];
1171
+ };
1172
+ const setBlock = (block) => {
1173
+ blockDatabase[block.id] = block;
1174
+ };
1175
+ const getLogger = () => console;
1176
+ const getClasses$1 = function() {
1177
+ return classes;
1178
+ };
1179
+ const db = {
1180
+ getConfig: () => getConfig$1().block,
1181
+ typeStr2Type,
1182
+ edgeTypeStr2Type,
1183
+ edgeStrToEdgeData,
1184
+ getLogger,
1185
+ getBlocksFlat,
1186
+ getBlocks,
1187
+ getEdges,
1188
+ setHierarchy,
1189
+ getBlock,
1190
+ setBlock,
1191
+ getColumns,
1192
+ getClasses: getClasses$1,
1193
+ clear,
1194
+ generateId
1195
+ };
1196
+ const db$1 = db;
1197
+ const fade = (color, opacity) => {
1198
+ const channel$1 = channel;
1199
+ const r = channel$1(color, "r");
1200
+ const g = channel$1(color, "g");
1201
+ const b = channel$1(color, "b");
1202
+ return rgba(r, g, b, opacity);
1203
+ };
1204
+ const getStyles = (options) => `.label {
1205
+ font-family: ${options.fontFamily};
1206
+ color: ${options.nodeTextColor || options.textColor};
1207
+ }
1208
+ .cluster-label text {
1209
+ fill: ${options.titleColor};
1210
+ }
1211
+ .cluster-label span,p {
1212
+ color: ${options.titleColor};
1213
+ }
1214
+
1215
+
1216
+
1217
+ .label text,span,p {
1218
+ fill: ${options.nodeTextColor || options.textColor};
1219
+ color: ${options.nodeTextColor || options.textColor};
1220
+ }
1221
+
1222
+ .node rect,
1223
+ .node circle,
1224
+ .node ellipse,
1225
+ .node polygon,
1226
+ .node path {
1227
+ fill: ${options.mainBkg};
1228
+ stroke: ${options.nodeBorder};
1229
+ stroke-width: 1px;
1230
+ }
1231
+ .flowchart-label text {
1232
+ text-anchor: middle;
1233
+ }
1234
+ // .flowchart-label .text-outer-tspan {
1235
+ // text-anchor: middle;
1236
+ // }
1237
+ // .flowchart-label .text-inner-tspan {
1238
+ // text-anchor: start;
1239
+ // }
1240
+
1241
+ .node .label {
1242
+ text-align: center;
1243
+ }
1244
+ .node.clickable {
1245
+ cursor: pointer;
1246
+ }
1247
+
1248
+ .arrowheadPath {
1249
+ fill: ${options.arrowheadColor};
1250
+ }
1251
+
1252
+ .edgePath .path {
1253
+ stroke: ${options.lineColor};
1254
+ stroke-width: 2.0px;
1255
+ }
1256
+
1257
+ .flowchart-link {
1258
+ stroke: ${options.lineColor};
1259
+ fill: none;
1260
+ }
1261
+
1262
+ .edgeLabel {
1263
+ background-color: ${options.edgeLabelBackground};
1264
+ rect {
1265
+ opacity: 0.5;
1266
+ background-color: ${options.edgeLabelBackground};
1267
+ fill: ${options.edgeLabelBackground};
1268
+ }
1269
+ text-align: center;
1270
+ }
1271
+
1272
+ /* For html labels only */
1273
+ .labelBkg {
1274
+ background-color: ${fade(options.edgeLabelBackground, 0.5)};
1275
+ // background-color:
1276
+ }
1277
+
1278
+ .node .cluster {
1279
+ // fill: ${fade(options.mainBkg, 0.5)};
1280
+ fill: ${fade(options.clusterBkg, 0.5)};
1281
+ stroke: ${fade(options.clusterBorder, 0.2)};
1282
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1283
+ stroke-width: 1px;
1284
+ }
1285
+
1286
+ .cluster text {
1287
+ fill: ${options.titleColor};
1288
+ }
1289
+
1290
+ .cluster span,p {
1291
+ color: ${options.titleColor};
1292
+ }
1293
+ /* .cluster div {
1294
+ color: ${options.titleColor};
1295
+ } */
1296
+
1297
+ div.mermaidTooltip {
1298
+ position: absolute;
1299
+ text-align: center;
1300
+ max-width: 200px;
1301
+ padding: 2px;
1302
+ font-family: ${options.fontFamily};
1303
+ font-size: 12px;
1304
+ background: ${options.tertiaryColor};
1305
+ border: 1px solid ${options.border2};
1306
+ border-radius: 2px;
1307
+ pointer-events: none;
1308
+ z-index: 100;
1309
+ }
1310
+
1311
+ .flowchartTitleText {
1312
+ text-anchor: middle;
1313
+ font-size: 18px;
1314
+ fill: ${options.textColor};
1315
+ }
1316
+ `;
1317
+ const flowStyles = getStyles;
1318
+ function getNodeFromBlock(block, db2, positioned = false) {
1319
+ var _a2, _b2, _c;
1320
+ const vertex = block;
1321
+ let classStr = "default";
1322
+ if ((((_a2 = vertex == null ? void 0 : vertex.classes) == null ? void 0 : _a2.length) || 0) > 0) {
1323
+ classStr = ((vertex == null ? void 0 : vertex.classes) || []).join(" ");
1324
+ }
1325
+ classStr = classStr + " flowchart-label";
1326
+ let radius = 0;
1327
+ let shape = "";
1328
+ let padding2;
1329
+ switch (vertex.type) {
1330
+ case "round":
1331
+ radius = 5;
1332
+ shape = "rect";
1333
+ break;
1334
+ case "composite":
1335
+ radius = 0;
1336
+ shape = "composite";
1337
+ padding2 = 0;
1338
+ break;
1339
+ case "square":
1340
+ shape = "rect";
1341
+ break;
1342
+ case "diamond":
1343
+ shape = "question";
1344
+ break;
1345
+ case "hexagon":
1346
+ shape = "hexagon";
1347
+ break;
1348
+ case "block_arrow":
1349
+ shape = "block_arrow";
1350
+ break;
1351
+ case "odd":
1352
+ shape = "rect_left_inv_arrow";
1353
+ break;
1354
+ case "lean_right":
1355
+ shape = "lean_right";
1356
+ break;
1357
+ case "lean_left":
1358
+ shape = "lean_left";
1359
+ break;
1360
+ case "trapezoid":
1361
+ shape = "trapezoid";
1362
+ break;
1363
+ case "inv_trapezoid":
1364
+ shape = "inv_trapezoid";
1365
+ break;
1366
+ case "rect_left_inv_arrow":
1367
+ shape = "rect_left_inv_arrow";
1368
+ break;
1369
+ case "circle":
1370
+ shape = "circle";
1371
+ break;
1372
+ case "ellipse":
1373
+ shape = "ellipse";
1374
+ break;
1375
+ case "stadium":
1376
+ shape = "stadium";
1377
+ break;
1378
+ case "subroutine":
1379
+ shape = "subroutine";
1380
+ break;
1381
+ case "cylinder":
1382
+ shape = "cylinder";
1383
+ break;
1384
+ case "group":
1385
+ shape = "rect";
1386
+ break;
1387
+ case "doublecircle":
1388
+ shape = "doublecircle";
1389
+ break;
1390
+ default:
1391
+ shape = "rect";
1392
+ }
1393
+ const styles = getStylesFromArray((vertex == null ? void 0 : vertex.styles) || []);
1394
+ const vertexText = vertex.label;
1395
+ const bounds = vertex.size || { width: 0, height: 0, x: 0, y: 0 };
1396
+ const node = {
1397
+ labelStyle: styles.labelStyle,
1398
+ shape,
1399
+ labelText: vertexText,
1400
+ rx: radius,
1401
+ ry: radius,
1402
+ class: classStr,
1403
+ style: styles.style,
1404
+ id: vertex.id,
1405
+ directions: vertex.directions,
1406
+ width: bounds.width,
1407
+ height: bounds.height,
1408
+ x: bounds.x,
1409
+ y: bounds.y,
1410
+ positioned,
1411
+ intersect: void 0,
1412
+ type: vertex.type,
1413
+ padding: padding2 ?? (((_c = (_b2 = getConfig$1()) == null ? void 0 : _b2.block) == null ? void 0 : _c.padding) || 0)
1414
+ };
1415
+ return node;
1416
+ }
1417
+ async function calculateBlockSize(elem, block, db2) {
1418
+ const node = getNodeFromBlock(block, db2, false);
1419
+ if (node.type === "group") {
1420
+ return;
1421
+ }
1422
+ const nodeEl = await insertNode(elem, node);
1423
+ const boundingBox = nodeEl.node().getBBox();
1424
+ const obj = db2.getBlock(node.id);
1425
+ obj.size = { width: boundingBox.width, height: boundingBox.height, x: 0, y: 0, node: nodeEl };
1426
+ db2.setBlock(obj);
1427
+ nodeEl.remove();
1428
+ }
1429
+ async function insertBlockPositioned(elem, block, db2) {
1430
+ const node = getNodeFromBlock(block, db2, true);
1431
+ const obj = db2.getBlock(node.id);
1432
+ if (obj.type !== "space") {
1433
+ await insertNode(elem, node);
1434
+ block.intersect = node == null ? void 0 : node.intersect;
1435
+ positionNode(node);
1436
+ }
1437
+ }
1438
+ async function performOperations(elem, blocks2, db2, operation) {
1439
+ for (const block of blocks2) {
1440
+ await operation(elem, block, db2);
1441
+ if (block.children) {
1442
+ await performOperations(elem, block.children, db2, operation);
1443
+ }
1444
+ }
1445
+ }
1446
+ async function calculateBlockSizes(elem, blocks2, db2) {
1447
+ await performOperations(elem, blocks2, db2, calculateBlockSize);
1448
+ }
1449
+ async function insertBlocks(elem, blocks2, db2) {
1450
+ await performOperations(elem, blocks2, db2, insertBlockPositioned);
1451
+ }
1452
+ async function insertEdges(elem, edges, blocks2, db2, id) {
1453
+ const g = new Graph({
1454
+ multigraph: true,
1455
+ compound: true
1456
+ });
1457
+ g.setGraph({
1458
+ rankdir: "TB",
1459
+ nodesep: 10,
1460
+ ranksep: 10,
1461
+ marginx: 8,
1462
+ marginy: 8
1463
+ });
1464
+ for (const block of blocks2) {
1465
+ if (block.size) {
1466
+ g.setNode(block.id, {
1467
+ width: block.size.width,
1468
+ height: block.size.height,
1469
+ intersect: block.intersect
1470
+ });
1471
+ }
1472
+ }
1473
+ for (const edge of edges) {
1474
+ if (edge.start && edge.end) {
1475
+ const startBlock = db2.getBlock(edge.start);
1476
+ const endBlock = db2.getBlock(edge.end);
1477
+ if ((startBlock == null ? void 0 : startBlock.size) && (endBlock == null ? void 0 : endBlock.size)) {
1478
+ const start = startBlock.size;
1479
+ const end = endBlock.size;
1480
+ const points = [
1481
+ { x: start.x, y: start.y },
1482
+ { x: start.x + (end.x - start.x) / 2, y: start.y + (end.y - start.y) / 2 },
1483
+ { x: end.x, y: end.y }
1484
+ ];
1485
+ await insertEdge(
1486
+ elem,
1487
+ { v: edge.start, w: edge.end, name: edge.id },
1488
+ {
1489
+ ...edge,
1490
+ arrowTypeEnd: edge.arrowTypeEnd,
1491
+ arrowTypeStart: edge.arrowTypeStart,
1492
+ points,
1493
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
1494
+ },
1495
+ void 0,
1496
+ "block",
1497
+ g,
1498
+ id
1499
+ );
1500
+ if (edge.label) {
1501
+ await insertEdgeLabel(elem, {
1502
+ ...edge,
1503
+ label: edge.label,
1504
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
1505
+ arrowTypeEnd: edge.arrowTypeEnd,
1506
+ arrowTypeStart: edge.arrowTypeStart
1507
+ });
1508
+ await positionEdgeLabel(
1509
+ { ...edge, x: points[1].x, y: points[1].y },
1510
+ {
1511
+ originalPath: points
1512
+ }
1513
+ );
1514
+ }
1515
+ }
1516
+ }
1517
+ }
1518
+ }
1519
+ const padding = ((_b = (_a = getConfig()) == null ? void 0 : _a.block) == null ? void 0 : _b.padding) || 8;
1520
+ function calculateBlockPosition(columns, position) {
1521
+ if (columns === 0 || !Number.isInteger(columns)) {
1522
+ throw new Error("Columns must be an integer !== 0.");
1523
+ }
1524
+ if (position < 0 || !Number.isInteger(position)) {
1525
+ throw new Error("Position must be a non-negative integer." + position);
1526
+ }
1527
+ if (columns < 0) {
1528
+ return { px: position, py: 0 };
1529
+ }
1530
+ if (columns === 1) {
1531
+ return { px: 0, py: position };
1532
+ }
1533
+ const px = position % columns;
1534
+ const py = Math.floor(position / columns);
1535
+ return { px, py };
1536
+ }
1537
+ const getMaxChildSize = (block) => {
1538
+ let maxWidth = 0;
1539
+ let maxHeight = 0;
1540
+ for (const child of block.children) {
1541
+ const { width, height, x, y } = child.size || { width: 0, height: 0, x: 0, y: 0 };
1542
+ log$1.debug(
1543
+ "getMaxChildSize abc95 child:",
1544
+ child.id,
1545
+ "width:",
1546
+ width,
1547
+ "height:",
1548
+ height,
1549
+ "x:",
1550
+ x,
1551
+ "y:",
1552
+ y,
1553
+ child.type
1554
+ );
1555
+ if (child.type === "space") {
1556
+ continue;
1557
+ }
1558
+ if (width > maxWidth) {
1559
+ maxWidth = width / (block.widthInColumns || 1);
1560
+ }
1561
+ if (height > maxHeight) {
1562
+ maxHeight = height;
1563
+ }
1564
+ }
1565
+ return { width: maxWidth, height: maxHeight };
1566
+ };
1567
+ function setBlockSizes(block, db2, siblingWidth = 0, siblingHeight = 0) {
1568
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k;
1569
+ log$1.debug(
1570
+ "setBlockSizes abc95 (start)",
1571
+ block.id,
1572
+ (_a2 = block == null ? void 0 : block.size) == null ? void 0 : _a2.x,
1573
+ "block width =",
1574
+ block == null ? void 0 : block.size,
1575
+ "sieblingWidth",
1576
+ siblingWidth
1577
+ );
1578
+ if (!((_b2 = block == null ? void 0 : block.size) == null ? void 0 : _b2.width)) {
1579
+ block.size = {
1580
+ width: siblingWidth,
1581
+ height: siblingHeight,
1582
+ x: 0,
1583
+ y: 0
1584
+ };
1585
+ }
1586
+ let maxWidth = 0;
1587
+ let maxHeight = 0;
1588
+ if (((_c = block.children) == null ? void 0 : _c.length) > 0) {
1589
+ for (const child of block.children) {
1590
+ setBlockSizes(child, db2);
1591
+ }
1592
+ const childSize = getMaxChildSize(block);
1593
+ maxWidth = childSize.width;
1594
+ maxHeight = childSize.height;
1595
+ log$1.debug("setBlockSizes abc95 maxWidth of", block.id, ":s children is ", maxWidth, maxHeight);
1596
+ for (const child of block.children) {
1597
+ if (child.size) {
1598
+ log$1.debug(
1599
+ `abc95 Setting size of children of ${block.id} id=${child.id} ${maxWidth} ${maxHeight} ${child.size}`
1600
+ );
1601
+ child.size.width = maxWidth * (child.widthInColumns || 1) + padding * ((child.widthInColumns || 1) - 1);
1602
+ child.size.height = maxHeight;
1603
+ child.size.x = 0;
1604
+ child.size.y = 0;
1605
+ log$1.debug(
1606
+ `abc95 updating size of ${block.id} children child:${child.id} maxWidth:${maxWidth} maxHeight:${maxHeight}`
1607
+ );
1608
+ }
1609
+ }
1610
+ for (const child of block.children) {
1611
+ setBlockSizes(child, db2, maxWidth, maxHeight);
1612
+ }
1613
+ const columns = block.columns || -1;
1614
+ let numItems = 0;
1615
+ for (const child of block.children) {
1616
+ numItems += child.widthInColumns || 1;
1617
+ }
1618
+ let xSize = block.children.length;
1619
+ if (columns > 0 && columns < numItems) {
1620
+ xSize = columns;
1621
+ }
1622
+ block.widthInColumns || 1;
1623
+ const ySize = Math.ceil(numItems / xSize);
1624
+ let width = xSize * (maxWidth + padding) + padding;
1625
+ let height = ySize * (maxHeight + padding) + padding;
1626
+ if (width < siblingWidth) {
1627
+ log$1.debug(
1628
+ `Detected to small siebling: abc95 ${block.id} sieblingWidth ${siblingWidth} sieblingHeight ${siblingHeight} width ${width}`
1629
+ );
1630
+ width = siblingWidth;
1631
+ height = siblingHeight;
1632
+ const childWidth = (siblingWidth - xSize * padding - padding) / xSize;
1633
+ const childHeight = (siblingHeight - ySize * padding - padding) / ySize;
1634
+ log$1.debug("Size indata abc88", block.id, "childWidth", childWidth, "maxWidth", maxWidth);
1635
+ log$1.debug("Size indata abc88", block.id, "childHeight", childHeight, "maxHeight", maxHeight);
1636
+ log$1.debug("Size indata abc88 xSize", xSize, "padding", padding);
1637
+ for (const child of block.children) {
1638
+ if (child.size) {
1639
+ child.size.width = childWidth;
1640
+ child.size.height = childHeight;
1641
+ child.size.x = 0;
1642
+ child.size.y = 0;
1643
+ }
1644
+ }
1645
+ }
1646
+ log$1.debug(
1647
+ `abc95 (finale calc) ${block.id} xSize ${xSize} ySize ${ySize} columns ${columns}${block.children.length} width=${Math.max(width, ((_d = block.size) == null ? void 0 : _d.width) || 0)}`
1648
+ );
1649
+ if (width < (((_e = block == null ? void 0 : block.size) == null ? void 0 : _e.width) || 0)) {
1650
+ width = ((_f = block == null ? void 0 : block.size) == null ? void 0 : _f.width) || 0;
1651
+ const num = columns > 0 ? Math.min(block.children.length, columns) : block.children.length;
1652
+ if (num > 0) {
1653
+ const childWidth = (width - num * padding - padding) / num;
1654
+ log$1.debug("abc95 (growing to fit) width", block.id, width, (_g = block.size) == null ? void 0 : _g.width, childWidth);
1655
+ for (const child of block.children) {
1656
+ if (child.size) {
1657
+ child.size.width = childWidth;
1658
+ }
1659
+ }
1660
+ }
1661
+ }
1662
+ block.size = {
1663
+ width,
1664
+ height,
1665
+ x: 0,
1666
+ y: 0
1667
+ };
1668
+ }
1669
+ log$1.debug(
1670
+ "setBlockSizes abc94 (done)",
1671
+ block.id,
1672
+ (_h = block == null ? void 0 : block.size) == null ? void 0 : _h.x,
1673
+ (_i = block == null ? void 0 : block.size) == null ? void 0 : _i.width,
1674
+ (_j = block == null ? void 0 : block.size) == null ? void 0 : _j.y,
1675
+ (_k = block == null ? void 0 : block.size) == null ? void 0 : _k.height
1676
+ );
1677
+ }
1678
+ function layoutBlocks(block, db2) {
1679
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
1680
+ log$1.debug(
1681
+ `abc85 layout blocks (=>layoutBlocks) ${block.id} x: ${(_a2 = block == null ? void 0 : block.size) == null ? void 0 : _a2.x} y: ${(_b2 = block == null ? void 0 : block.size) == null ? void 0 : _b2.y} width: ${(_c = block == null ? void 0 : block.size) == null ? void 0 : _c.width}`
1682
+ );
1683
+ const columns = block.columns || -1;
1684
+ log$1.debug("layoutBlocks columns abc95", block.id, "=>", columns, block);
1685
+ if (block.children && // find max width of children
1686
+ block.children.length > 0) {
1687
+ const width = ((_e = (_d = block == null ? void 0 : block.children[0]) == null ? void 0 : _d.size) == null ? void 0 : _e.width) || 0;
1688
+ const widthOfChildren = block.children.length * width + (block.children.length - 1) * padding;
1689
+ log$1.debug("widthOfChildren 88", widthOfChildren, "posX");
1690
+ let columnPos = 0;
1691
+ log$1.debug("abc91 block?.size?.x", block.id, (_f = block == null ? void 0 : block.size) == null ? void 0 : _f.x);
1692
+ let startingPosX = ((_g = block == null ? void 0 : block.size) == null ? void 0 : _g.x) ? ((_h = block == null ? void 0 : block.size) == null ? void 0 : _h.x) + (-((_i = block == null ? void 0 : block.size) == null ? void 0 : _i.width) / 2 || 0) : -padding;
1693
+ let rowPos = 0;
1694
+ for (const child of block.children) {
1695
+ const parent = block;
1696
+ if (!child.size) {
1697
+ continue;
1698
+ }
1699
+ const { width: width2, height } = child.size;
1700
+ const { px, py } = calculateBlockPosition(columns, columnPos);
1701
+ if (py != rowPos) {
1702
+ rowPos = py;
1703
+ startingPosX = ((_j = block == null ? void 0 : block.size) == null ? void 0 : _j.x) ? ((_k = block == null ? void 0 : block.size) == null ? void 0 : _k.x) + (-((_l = block == null ? void 0 : block.size) == null ? void 0 : _l.width) / 2 || 0) : -padding;
1704
+ log$1.debug("New row in layout for block", block.id, " and child ", child.id, rowPos);
1705
+ }
1706
+ log$1.debug(
1707
+ `abc89 layout blocks (child) id: ${child.id} Pos: ${columnPos} (px, py) ${px},${py} (${(_m = parent == null ? void 0 : parent.size) == null ? void 0 : _m.x},${(_n = parent == null ? void 0 : parent.size) == null ? void 0 : _n.y}) parent: ${parent.id} width: ${width2}${padding}`
1708
+ );
1709
+ if (parent.size) {
1710
+ const halfWidth = width2 / 2;
1711
+ child.size.x = startingPosX + padding + halfWidth;
1712
+ log$1.debug(
1713
+ `abc91 layout blocks (calc) px, pyid:${child.id} startingPos=X${startingPosX} new startingPosX${child.size.x} ${halfWidth} padding=${padding} width=${width2} halfWidth=${halfWidth} => x:${child.size.x} y:${child.size.y} ${child.widthInColumns} (width * (child?.w || 1)) / 2 ${width2 * ((child == null ? void 0 : child.widthInColumns) || 1) / 2}`
1714
+ );
1715
+ startingPosX = child.size.x + halfWidth;
1716
+ child.size.y = parent.size.y - parent.size.height / 2 + py * (height + padding) + height / 2 + padding;
1717
+ log$1.debug(
1718
+ `abc88 layout blocks (calc) px, pyid:${child.id}startingPosX${startingPosX}${padding}${halfWidth}=>x:${child.size.x}y:${child.size.y}${child.widthInColumns}(width * (child?.w || 1)) / 2${width2 * ((child == null ? void 0 : child.widthInColumns) || 1) / 2}`
1719
+ );
1720
+ }
1721
+ if (child.children) {
1722
+ layoutBlocks(child);
1723
+ }
1724
+ columnPos += (child == null ? void 0 : child.widthInColumns) || 1;
1725
+ log$1.debug("abc88 columnsPos", child, columnPos);
1726
+ }
1727
+ }
1728
+ log$1.debug(
1729
+ `layout blocks (<==layoutBlocks) ${block.id} x: ${(_o = block == null ? void 0 : block.size) == null ? void 0 : _o.x} y: ${(_p = block == null ? void 0 : block.size) == null ? void 0 : _p.y} width: ${(_q = block == null ? void 0 : block.size) == null ? void 0 : _q.width}`
1730
+ );
1731
+ }
1732
+ function findBounds(block, { minX, minY, maxX, maxY } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1733
+ if (block.size && block.id !== "root") {
1734
+ const { x, y, width, height } = block.size;
1735
+ if (x - width / 2 < minX) {
1736
+ minX = x - width / 2;
1737
+ }
1738
+ if (y - height / 2 < minY) {
1739
+ minY = y - height / 2;
1740
+ }
1741
+ if (x + width / 2 > maxX) {
1742
+ maxX = x + width / 2;
1743
+ }
1744
+ if (y + height / 2 > maxY) {
1745
+ maxY = y + height / 2;
1746
+ }
1747
+ }
1748
+ if (block.children) {
1749
+ for (const child of block.children) {
1750
+ ({ minX, minY, maxX, maxY } = findBounds(child, { minX, minY, maxX, maxY }));
1751
+ }
1752
+ }
1753
+ return { minX, minY, maxX, maxY };
1754
+ }
1755
+ function layout(db2) {
1756
+ const root = db2.getBlock("root");
1757
+ if (!root) {
1758
+ return;
1759
+ }
1760
+ setBlockSizes(root, db2, 0, 0);
1761
+ layoutBlocks(root);
1762
+ log$1.debug("getBlocks", JSON.stringify(root, null, 2));
1763
+ const { minX, minY, maxX, maxY } = findBounds(root);
1764
+ const height = maxY - minY;
1765
+ const width = maxX - minX;
1766
+ return { x: minX, y: minY, width, height };
1767
+ }
1768
+ const getClasses = function(text, diagObj) {
1769
+ return diagObj.db.getClasses();
1770
+ };
1771
+ const draw = async function(text, id, _version, diagObj) {
1772
+ const { securityLevel, block: conf } = getConfig$1();
1773
+ const db2 = diagObj.db;
1774
+ let sandboxElement;
1775
+ if (securityLevel === "sandbox") {
1776
+ sandboxElement = select("#i" + id);
1777
+ }
1778
+ const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
1779
+ const svg = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
1780
+ const markers = ["point", "circle", "cross"];
1781
+ insertMarkers$1(svg, markers, diagObj.type, id);
1782
+ const bl = db2.getBlocks();
1783
+ const blArr = db2.getBlocksFlat();
1784
+ const edges = db2.getEdges();
1785
+ const nodes = svg.insert("g").attr("class", "block");
1786
+ await calculateBlockSizes(nodes, bl, db2);
1787
+ const bounds = layout(db2);
1788
+ await insertBlocks(nodes, bl, db2);
1789
+ await insertEdges(nodes, edges, blArr, db2, id);
1790
+ if (bounds) {
1791
+ const bounds2 = bounds;
1792
+ const magicFactor = Math.max(1, Math.round(0.125 * (bounds2.width / bounds2.height)));
1793
+ const height = bounds2.height + magicFactor + 10;
1794
+ const width = bounds2.width + 10;
1795
+ const { useMaxWidth } = conf;
1796
+ configureSvgSize(svg, height, width, !!useMaxWidth);
1797
+ log$1.debug("Here Bounds", bounds, bounds2);
1798
+ svg.attr(
1799
+ "viewBox",
1800
+ `${bounds2.x - 5} ${bounds2.y - 5} ${bounds2.width + 10} ${bounds2.height + 10}`
1801
+ );
1802
+ }
1803
+ ordinal(schemeTableau10);
1804
+ };
1805
+ const renderer = {
1806
+ draw,
1807
+ getClasses
1808
+ };
1809
+ const diagram = {
1810
+ parser: parser$1,
1811
+ db: db$1,
1812
+ renderer,
1813
+ styles: flowStyles
1814
+ };
1815
+ export {
1816
+ diagram
1817
+ };