@rafiqui987/markode 0.0.0-stage → 0.3.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 (306) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +480 -2
  3. package/dist/cli.js +2954 -0
  4. package/dist/web/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  5. package/dist/web/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  6. package/dist/web/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  7. package/dist/web/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  8. package/dist/web/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  9. package/dist/web/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  10. package/dist/web/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  11. package/dist/web/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  12. package/dist/web/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  13. package/dist/web/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  14. package/dist/web/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  15. package/dist/web/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  16. package/dist/web/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  17. package/dist/web/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  18. package/dist/web/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  19. package/dist/web/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  20. package/dist/web/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  21. package/dist/web/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  22. package/dist/web/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  23. package/dist/web/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  24. package/dist/web/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  25. package/dist/web/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  26. package/dist/web/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  27. package/dist/web/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  28. package/dist/web/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  29. package/dist/web/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  30. package/dist/web/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  31. package/dist/web/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  32. package/dist/web/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  33. package/dist/web/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  34. package/dist/web/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  35. package/dist/web/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  36. package/dist/web/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  37. package/dist/web/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  38. package/dist/web/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  39. package/dist/web/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  40. package/dist/web/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  41. package/dist/web/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  42. package/dist/web/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  43. package/dist/web/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  44. package/dist/web/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  45. package/dist/web/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  46. package/dist/web/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  47. package/dist/web/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  48. package/dist/web/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  49. package/dist/web/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  50. package/dist/web/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  51. package/dist/web/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  52. package/dist/web/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  53. package/dist/web/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  54. package/dist/web/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  55. package/dist/web/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  56. package/dist/web/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  57. package/dist/web/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  58. package/dist/web/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  59. package/dist/web/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  60. package/dist/web/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  61. package/dist/web/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  62. package/dist/web/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  63. package/dist/web/assets/abnfDiagram-WEYOIA3C-uyv195L6.js +1 -0
  64. package/dist/web/assets/apl-gfMMiTNf.js +1 -0
  65. package/dist/web/assets/arc-CnHtXLAe.js +1 -0
  66. package/dist/web/assets/architecture-WOLXFQ4H-tPJ2P-p7.js +1 -0
  67. package/dist/web/assets/architectureDiagram-ZHVYKT53-C-WCNTHv.js +36 -0
  68. package/dist/web/assets/array-BifhSqXX.js +1 -0
  69. package/dist/web/assets/asciiarmor-C_eisQCp.js +1 -0
  70. package/dist/web/assets/asn1-DCl_8MCW.js +1 -0
  71. package/dist/web/assets/asterisk-BEn0Cwpx.js +1 -0
  72. package/dist/web/assets/blockDiagram-RJAE7QA3-DRgAHQJ9.js +140 -0
  73. package/dist/web/assets/brainfuck-D5EjA2JK.js +1 -0
  74. package/dist/web/assets/c4Diagram-XDPPPE54-DBBsZpdC.js +38 -0
  75. package/dist/web/assets/channel-COq7V7WB.js +1 -0
  76. package/dist/web/assets/chunk-2E7WHVMD-CQSFul1o.js +88 -0
  77. package/dist/web/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  78. package/dist/web/assets/chunk-4EMNKR2T-DHeQ05G5.js +1 -0
  79. package/dist/web/assets/chunk-55XCU76K-C9qNkR8H.js +1 -0
  80. package/dist/web/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  81. package/dist/web/assets/chunk-7S6XSTFO-C_2BTQ4f.js +2 -0
  82. package/dist/web/assets/chunk-AQDTSKZB-DZLt6T8h.js +72 -0
  83. package/dist/web/assets/chunk-DSNLSHJZ-6EnWiUHw.js +129 -0
  84. package/dist/web/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  85. package/dist/web/assets/chunk-HAGFOTED-C4TrjvWC.js +62 -0
  86. package/dist/web/assets/chunk-HNE4Q36P-Bhz3xzgF.js +1 -0
  87. package/dist/web/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  88. package/dist/web/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  89. package/dist/web/assets/chunk-NGNAAXSQ-C2Wy9Xmz.js +136 -0
  90. package/dist/web/assets/chunk-NQOKRVIF-fn9o0p_a.js +213 -0
  91. package/dist/web/assets/chunk-UHW7PFBP-y_Cnbpso.js +1 -0
  92. package/dist/web/assets/chunk-VQ5W62QI-BDGHstYR.js +1 -0
  93. package/dist/web/assets/chunk-WQQL4CDK-DVgns4LS.js +10 -0
  94. package/dist/web/assets/chunk-XXDRQBXY-z-xFeaXQ.js +1 -0
  95. package/dist/web/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  96. package/dist/web/assets/chunk-YZO67HFG-O3X4dDhT.js +1 -0
  97. package/dist/web/assets/chunk-ZAUX2LTX-dMpe16to.js +1 -0
  98. package/dist/web/assets/chunk-ZCHMQSOR-DmywVAUg.js +2 -0
  99. package/dist/web/assets/classDiagram-v2-4MYWR3UA-DNFxIeoH.js +217 -0
  100. package/dist/web/assets/clike-xvONpD0Z.js +1 -0
  101. package/dist/web/assets/clojure-BflJGmDX.js +1 -0
  102. package/dist/web/assets/cmake-84nbDH0I.js +1 -0
  103. package/dist/web/assets/cobol-DHLQUbN7.js +1 -0
  104. package/dist/web/assets/coffeescript-De_zI4J0.js +1 -0
  105. package/dist/web/assets/commonlisp-DgAKBe0r.js +1 -0
  106. package/dist/web/assets/cose-bilkent-JH36ORCC-C78U5xAn.js +1 -0
  107. package/dist/web/assets/crystal-Bsdphhtm.js +1 -0
  108. package/dist/web/assets/css-CnaYoQib.js +1 -0
  109. package/dist/web/assets/cynefin-EF2NZ3EQ-53hzJKH9.js +1 -0
  110. package/dist/web/assets/cynefinDiagram-WF24UDRP-D7qakSAO.js +62 -0
  111. package/dist/web/assets/cypher-p9eYesGn.js +1 -0
  112. package/dist/web/assets/cytoscape.esm-BegBNzOV.js +321 -0
  113. package/dist/web/assets/d-DWkQyNnU.js +1 -0
  114. package/dist/web/assets/dagre-NK4GIZVX-JnnDdmH0.js +4 -0
  115. package/dist/web/assets/defaultLocale-BFoDCU3G.js +1 -0
  116. package/dist/web/assets/diagram-CBK3MWTC-C9dCT7nt.js +24 -0
  117. package/dist/web/assets/diagram-I5XIIV2D-BODrA_Tz.js +24 -0
  118. package/dist/web/assets/diagram-ODIL2UCW-ByZtzdTi.js +30 -0
  119. package/dist/web/assets/diagram-PFBEJUXE-Dc3cgafk.js +3 -0
  120. package/dist/web/assets/diagram-RJA3I4VV-BnTNuzvk.js +41 -0
  121. package/dist/web/assets/diagram-TYUNFSNR-fbw92djE.js +200 -0
  122. package/dist/web/assets/diff-ChtP43wD.js +1 -0
  123. package/dist/web/assets/dist-8bzcdWlP.js +1 -0
  124. package/dist/web/assets/dist-BPKiY16E.js +2 -0
  125. package/dist/web/assets/dist-BeUBXLX5.js +1 -0
  126. package/dist/web/assets/dist-BfedOYsq.js +1 -0
  127. package/dist/web/assets/dist-BruzXrfs.js +1 -0
  128. package/dist/web/assets/dist-BwF8pAVO.js +1 -0
  129. package/dist/web/assets/dist-CAttduN3.js +1 -0
  130. package/dist/web/assets/dist-CC7LN-Hh.js +1 -0
  131. package/dist/web/assets/dist-CFUj2tCy.js +12 -0
  132. package/dist/web/assets/dist-CM1-Tp30.js +1 -0
  133. package/dist/web/assets/dist-CfeLR_Q4.js +1 -0
  134. package/dist/web/assets/dist-CrUcXP5H.js +1 -0
  135. package/dist/web/assets/dist-CubY9gnU.js +1 -0
  136. package/dist/web/assets/dist-D0R-qVeY.js +1 -0
  137. package/dist/web/assets/dist-D5EOvBuF.js +1 -0
  138. package/dist/web/assets/dist-DcGC8X1E.js +11 -0
  139. package/dist/web/assets/dist-EljmWMub.js +9 -0
  140. package/dist/web/assets/dist-ga2OvaLo.js +1 -0
  141. package/dist/web/assets/dist-tv7yScoP.js +1 -0
  142. package/dist/web/assets/dockerfile-DJkHQgkl.js +1 -0
  143. package/dist/web/assets/dtd-DTF72YNO.js +1 -0
  144. package/dist/web/assets/dylan-S7ucR4pR.js +1 -0
  145. package/dist/web/assets/ebnf-D4c0_ac3.js +1 -0
  146. package/dist/web/assets/ebnfDiagram-V4P3TTPT-DPsfv1uf.js +1 -0
  147. package/dist/web/assets/ecl-BVIeWmwY.js +1 -0
  148. package/dist/web/assets/eiffel-BEjRio4Q.js +1 -0
  149. package/dist/web/assets/elk-QONTBCTQ-DoINDZCB.js +27 -0
  150. package/dist/web/assets/elm-Cshzl8qu.js +1 -0
  151. package/dist/web/assets/erDiagram-KYQIGQAA-ChPWyTRi.js +99 -0
  152. package/dist/web/assets/erlang-BV0c4Hdn.js +1 -0
  153. package/dist/web/assets/eventmodeling-K75KTNOO-B1BhcpV6.js +1 -0
  154. package/dist/web/assets/factor-LKH5gN8L.js +1 -0
  155. package/dist/web/assets/fcl-ClOhbFR7.js +1 -0
  156. package/dist/web/assets/flowDiagram-IUGLLWBU-DZzMwlmj.js +1 -0
  157. package/dist/web/assets/forth-D6RzAl64.js +1 -0
  158. package/dist/web/assets/fortran-Bt6PBEDR.js +1 -0
  159. package/dist/web/assets/ganttDiagram-R7GPNTJY-BpChuBNI.js +292 -0
  160. package/dist/web/assets/gas-BHEdbvp9.js +1 -0
  161. package/dist/web/assets/gherkin-oBAE_ms0.js +1 -0
  162. package/dist/web/assets/gitGraph-VSP46ZUC-BhIFPres.js +1 -0
  163. package/dist/web/assets/gitGraphDiagram-PDYL7XHY-CHejLr2o.js +106 -0
  164. package/dist/web/assets/graphlib-DS17s2tU.js +1 -0
  165. package/dist/web/assets/groovy-CUpZ7dEl.js +1 -0
  166. package/dist/web/assets/haskell-BRsoo5mP.js +1 -0
  167. package/dist/web/assets/haxe-DjVOVvNP.js +1 -0
  168. package/dist/web/assets/http-CLVgA2GD.js +1 -0
  169. package/dist/web/assets/idl-BUZw3wgd.js +1 -0
  170. package/dist/web/assets/index-CQGURl2V.css +1 -0
  171. package/dist/web/assets/index-CafleYLD.js +132 -0
  172. package/dist/web/assets/info-OHQRW6UA-p_XOG9kY.js +1 -0
  173. package/dist/web/assets/infoDiagram-MVDRKAX5-BjEI8OE0.js +2 -0
  174. package/dist/web/assets/init-C-OQMol4.js +1 -0
  175. package/dist/web/assets/ishikawaDiagram-HPEHV2GE-B_7LEH0q.js +70 -0
  176. package/dist/web/assets/javascript-Bu8mWwtz.js +1 -0
  177. package/dist/web/assets/journeyDiagram-BOSHW7O7-DprR7PC1.js +139 -0
  178. package/dist/web/assets/julia-CQfgDRfP.js +1 -0
  179. package/dist/web/assets/kanban-definition-FNSA4HC5-Dgn1OKTQ.js +89 -0
  180. package/dist/web/assets/katex-B_JcIwqj.js +257 -0
  181. package/dist/web/assets/katex-DMqEsVPU.js +257 -0
  182. package/dist/web/assets/katex-Ngnvt50Q.css +1 -0
  183. package/dist/web/assets/line-CsP7ezWR.js +1 -0
  184. package/dist/web/assets/linear-DutM4-eX.js +1 -0
  185. package/dist/web/assets/livescript-BXxG0Yva.js +1 -0
  186. package/dist/web/assets/lua-DPCEkfD_.js +1 -0
  187. package/dist/web/assets/mathematica-u8YMmbU0.js +1 -0
  188. package/dist/web/assets/mbox-BEMVcqjs.js +1 -0
  189. package/dist/web/assets/mermaid-parser.core-CRHYFOhU.js +7 -0
  190. package/dist/web/assets/mermaid.core-C-ITLWC9.js +44 -0
  191. package/dist/web/assets/mindmap-definition-6OY57UG3-B3gANyDJ.js +98 -0
  192. package/dist/web/assets/mirc-C9zpzAZU.js +1 -0
  193. package/dist/web/assets/mllike-B45xgp2S.js +1 -0
  194. package/dist/web/assets/modelica-CqHI_q-D.js +1 -0
  195. package/dist/web/assets/mscgen-qgSLujhx.js +1 -0
  196. package/dist/web/assets/mumps-BSzj6Xyz.js +1 -0
  197. package/dist/web/assets/nginx-8H7HVH4w.js +1 -0
  198. package/dist/web/assets/nsis-viPvXFiq.js +1 -0
  199. package/dist/web/assets/ntriples-CzMBulkp.js +1 -0
  200. package/dist/web/assets/octave-D2Q8cUp1.js +1 -0
  201. package/dist/web/assets/ordinal-BDEzSJ7C.js +1 -0
  202. package/dist/web/assets/oz-BwTct_5T.js +1 -0
  203. package/dist/web/assets/packet-JDAUHWVQ-0H1cA20q.js +1 -0
  204. package/dist/web/assets/pascal-Dp_KdFgX.js +1 -0
  205. package/dist/web/assets/path-fybaL0A-.js +1 -0
  206. package/dist/web/assets/pegDiagram-ECIUJNBX-BUxriBaM.js +1 -0
  207. package/dist/web/assets/perl-BkSkiI9m.js +1 -0
  208. package/dist/web/assets/pie-XZMESJXO-CSOHv2zM.js +1 -0
  209. package/dist/web/assets/pieDiagram-GNMPY74T-B7B_ijMh.js +39 -0
  210. package/dist/web/assets/pig-AF4Hwhju.js +1 -0
  211. package/dist/web/assets/powershell-D8WpQPaX.js +1 -0
  212. package/dist/web/assets/properties-C357ku5U.js +1 -0
  213. package/dist/web/assets/protobuf-D1ij_kNL.js +1 -0
  214. package/dist/web/assets/pug-Dwd_FmgJ.js +1 -0
  215. package/dist/web/assets/puppet-BZyAS7I4.js +1 -0
  216. package/dist/web/assets/python-B_1Jd8HM.js +1 -0
  217. package/dist/web/assets/q-B9NhS7L_.js +1 -0
  218. package/dist/web/assets/quadrantDiagram-D57K4MC3-CuDX_hzm.js +7 -0
  219. package/dist/web/assets/r-CxDmU1I4.js +1 -0
  220. package/dist/web/assets/radar-ABXABTNO-Bhdhmyn3.js +1 -0
  221. package/dist/web/assets/railroad-I3PHUGI6-D8J0asfg.js +1 -0
  222. package/dist/web/assets/railroad-abnf-LNEFI6M7-DSkwXAS5.js +1 -0
  223. package/dist/web/assets/railroad-ebnf-DWYD2UWJ-CUA5ZluT.js +1 -0
  224. package/dist/web/assets/railroad-peg-JR7BVNR7-DOmtcJJ_.js +1 -0
  225. package/dist/web/assets/railroadDiagram-Y72NRBL7-Bfa59bDk.js +1 -0
  226. package/dist/web/assets/requirementDiagram-EQYSW5RA-TqWBSttg.js +84 -0
  227. package/dist/web/assets/rough.esm-Dy-Kn_BL.js +1 -0
  228. package/dist/web/assets/rpm-gpDK5sbt.js +1 -0
  229. package/dist/web/assets/ruby-ChfNwlCY.js +1 -0
  230. package/dist/web/assets/sankeyDiagram-SY24JHO5-DXW4vZ49.js +40 -0
  231. package/dist/web/assets/sas-C2OyD2Y6.js +1 -0
  232. package/dist/web/assets/scheme-D9qYN0V5.js +1 -0
  233. package/dist/web/assets/sequenceDiagram-BLEHNHQU-bR6akpDb.js +169 -0
  234. package/dist/web/assets/shell-DwuoZtxw.js +1 -0
  235. package/dist/web/assets/sieve-tLWDfEkZ.js +1 -0
  236. package/dist/web/assets/simple-mode-DXiLM1-G.js +1 -0
  237. package/dist/web/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  238. package/dist/web/assets/smalltalk-BLp5-jwC.js +1 -0
  239. package/dist/web/assets/solr-B78wSQJQ.js +1 -0
  240. package/dist/web/assets/sparql-Dz-mlCAC.js +1 -0
  241. package/dist/web/assets/spreadsheet-CTIncYxj.js +1 -0
  242. package/dist/web/assets/sql-DuQMFDvy.js +1 -0
  243. package/dist/web/assets/src-DWy4o1sh.js +1 -0
  244. package/dist/web/assets/stateDiagram-v2-A6IESKWZ-G-L9fY1U.js +291 -0
  245. package/dist/web/assets/stex-DNzd62Q_.js +1 -0
  246. package/dist/web/assets/stylus-BOVgKnng.js +1 -0
  247. package/dist/web/assets/swift-DKB6_1j6.js +1 -0
  248. package/dist/web/assets/swimlanes-B3ENRKFQ-Bvz0uaIY.js +1 -0
  249. package/dist/web/assets/swimlanesDiagram-AYQRV4AK-D8Xb8aOe.js +8 -0
  250. package/dist/web/assets/tcl-BGfruO1u.js +1 -0
  251. package/dist/web/assets/textile-C4jVoHG1.js +1 -0
  252. package/dist/web/assets/tiddlywiki-VlUiK86J.js +1 -0
  253. package/dist/web/assets/tiki-DTszW0OQ.js +1 -0
  254. package/dist/web/assets/timeline-definition-JXYKGLGB-CLuowMKW.js +120 -0
  255. package/dist/web/assets/toml-BPTmHmyx.js +1 -0
  256. package/dist/web/assets/treeView-D4JQ5SDB-P9KKVCsV.js +1 -0
  257. package/dist/web/assets/treemap-SAJKECNS-CJHxQeBA.js +1 -0
  258. package/dist/web/assets/troff-C2dAgh7P.js +1 -0
  259. package/dist/web/assets/ttcn-PPSTk1ow.js +1 -0
  260. package/dist/web/assets/ttcn-cfg-2b4Gb5sE.js +1 -0
  261. package/dist/web/assets/turtle-Cx3rYX2g.js +1 -0
  262. package/dist/web/assets/usecaseDiagram-WPOLBNNX-Dp-yumhB.js +328 -0
  263. package/dist/web/assets/vb-BthdM_4N.js +1 -0
  264. package/dist/web/assets/vbscript-D9f6rSsU.js +1 -0
  265. package/dist/web/assets/velocity-CqftRsjg.js +1 -0
  266. package/dist/web/assets/vennDiagram-Q3Y3IDCW-WYfAKKah.js +34 -0
  267. package/dist/web/assets/verilog-CjI9Y6RI.js +1 -0
  268. package/dist/web/assets/vhdl-kS471soi.js +1 -0
  269. package/dist/web/assets/wardley-7MLQ67FV-16kL0OjA.js +1 -0
  270. package/dist/web/assets/wardleyDiagram-IVAIDKWA-CKpO66Ll.js +78 -0
  271. package/dist/web/assets/webidl-D5jiJvOU.js +1 -0
  272. package/dist/web/assets/xquery-BKJx4mf9.js +1 -0
  273. package/dist/web/assets/xychartDiagram-4URNHDU4-BAlKKoEI.js +7 -0
  274. package/dist/web/assets/yacas-CXXgtw0p.js +1 -0
  275. package/dist/web/assets/z80-Co3PbHdE.js +1 -0
  276. package/dist/web/index.html +17 -0
  277. package/package.json +83 -3
  278. package/templates/main.md +5 -0
  279. package/templates/method/area/docs/tasks/.gitkeep +0 -0
  280. package/templates/method/area-main.md +9 -0
  281. package/templates/method/root/docs/tasks/_TEMPLATE.md +28 -0
  282. package/templates/method/skills/markode-close-session/SKILL.md +20 -0
  283. package/templates/method/skills/markode-method/SKILL.md +68 -0
  284. package/templates/method/skills/markode-method/templates/architecture-topic.md +12 -0
  285. package/templates/method/skills/markode-method/templates/phase.md +22 -0
  286. package/templates/method/skills/markode-method/templates/project-architecture.md +14 -0
  287. package/templates/method/skills/markode-method/templates/vision.md +22 -0
  288. package/templates/method/skills/markode-new-task/SKILL.md +22 -0
  289. package/templates/method/skills/markode-status/SKILL.md +24 -0
  290. package/templates/proposals/SKILL.md +139 -0
  291. package/templates/rules/ask-before-commit.md +4 -0
  292. package/templates/rules/ask-new-dependencies.md +4 -0
  293. package/templates/rules/ask-when-unclear.md +4 -0
  294. package/templates/rules/match-conventions.md +4 -0
  295. package/templates/rules/minimal-changes.md +4 -0
  296. package/templates/rules/protect-secrets.md +4 -0
  297. package/templates/rules/tests-with-changes.md +4 -0
  298. package/templates/rules/update-docs.md +4 -0
  299. package/templates/rules/verify-before-done.md +4 -0
  300. package/templates/sdd/openspec/openspec/README.md +89 -0
  301. package/templates/sdd/openspec/openspec/changes/archive/.gitkeep +0 -0
  302. package/templates/sdd/openspec/openspec/config.yaml +12 -0
  303. package/templates/sdd/openspec/openspec/specs/.gitkeep +0 -0
  304. package/templates/sdd/speckit/.specify/memory/constitution.md +30 -0
  305. package/templates/sdd/speckit/specs/README.md +82 -0
  306. package/templates/skill/SKILL.md +109 -0
@@ -0,0 +1 @@
1
+ import{c as e,u as t}from"./index-CafleYLD.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var r=e(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(n,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),i=t(r(),1),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:n((...e)=>{},`trace`),debug:n((...e)=>{},`debug`),info:n((...e)=>{},`info`),warn:n((...e)=>{},`warn`),error:n((...e)=>{},`error`),fatal:n((...e)=>{},`fatal`)},s=n(function(e=`fatal`){let t=a.fatal;typeof e==`string`?e.toLowerCase()in a&&(t=a[e]):typeof e==`number`&&(t=e),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,c(`FATAL`))),t<=a.error&&(o.error=console.error?console.error.bind(console,c(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,c(`ERROR`))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,c(`WARN`))),t<=a.info&&(o.info=console.info?console.info.bind(console,c(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,c(`INFO`))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`DEBUG`))),t<=a.trace&&(o.trace=console.debug?console.debug.bind(console,c(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`TRACE`)))},`setLogLevel`),c=n(e=>`%c${(0,i.default)().format(`ss.SSS`)} : ${e} : `,`format`),l={value:()=>{}};function u(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new d(n)}function d(e){this._=e}function f(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}d.prototype=u.prototype={constructor:d,on:function(e,t){var n=this._,r=f(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=p(n[i],e.name)))return i}else{if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=m(n[i],e.name,t);else if(t==null)for(i in n)n[i]=m(n[i],e.name,null);return this}},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new d(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function p(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function m(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=l,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var h={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function g(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),h.hasOwnProperty(t)?{space:h[t],local:e}:e}function _(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function v(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function y(e){var t=g(e);return(t.local?v:_)(t)}function b(){}function x(e){return e==null?b:function(){return this.querySelector(e)}}function S(e){typeof e!=`function`&&(e=x(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new O(r,this._parents)}function C(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function w(){return[]}function T(e){return e==null?w:function(){return this.querySelectorAll(e)}}function E(e){return function(){return C(e.apply(this,arguments))}}function ee(e){e=typeof e==`function`?E(e):T(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new O(r,i)}function te(e){return function(){return this.matches(e)}}function ne(e){return function(t){return t.matches(e)}}var re=Array.prototype.find;function ie(e){return function(){return re.call(this.children,e)}}function ae(){return this.firstElementChild}function oe(e){return this.select(e==null?ae:ie(typeof e==`function`?e:ne(e)))}var se=Array.prototype.filter;function ce(){return Array.from(this.children)}function le(e){return function(){return se.call(this.children,e)}}function ue(e){return this.selectAll(e==null?ce:le(typeof e==`function`?e:ne(e)))}function de(e){typeof e!=`function`&&(e=te(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new O(r,this._parents)}function fe(e){return Array(e.length)}function pe(){return new O(this._enter||this._groups.map(fe),this._parents)}function me(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}me.prototype={constructor:me,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function he(e){return function(){return e}}function ge(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new me(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function _e(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new me(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function ve(e){return e.__data__}function ye(e,t){if(!arguments.length)return Array.from(this,ve);var n=t?_e:ge,r=this._parents,i=this._groups;typeof e!=`function`&&(e=he(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=be(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new O(o,r),o._enter=s,o._exit=c,o}function be(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xe(){return new O(this._exit||this._groups.map(fe),this._parents)}function Se(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ce(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new O(s,this._parents)}function we(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Te(e){e||=Ee;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new O(i,this._parents).order()}function Ee(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function De(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Oe(){return Array.from(this)}function ke(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Ae(){let e=0;for(let t of this)++e;return e}function je(){return!this.node()}function Me(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Ne(e){return function(){this.removeAttribute(e)}}function Pe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Fe(e,t){return function(){this.setAttribute(e,t)}}function Ie(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Le(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Re(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function ze(e,t){var n=g(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Pe:Ne:typeof t==`function`?n.local?Re:Le:n.local?Ie:Fe)(n,t))}function Be(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ve(e){return function(){this.style.removeProperty(e)}}function He(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ue(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function We(e,t,n){return arguments.length>1?this.each((t==null?Ve:typeof t==`function`?Ue:He)(e,t,n??``)):D(this.node(),e)}function D(e,t){return e.style.getPropertyValue(t)||Be(e).getComputedStyle(e,null).getPropertyValue(t)}function Ge(e){return function(){delete this[e]}}function Ke(e,t){return function(){this[e]=t}}function qe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Je(e,t){return arguments.length>1?this.each((t==null?Ge:typeof t==`function`?qe:Ke)(e,t)):this.node()[e]}function Ye(e){return e.trim().split(/^|\s+/)}function Xe(e){return e.classList||new Ze(e)}function Ze(e){this._node=e,this._names=Ye(e.getAttribute(`class`)||``)}Ze.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function Qe(e,t){for(var n=Xe(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function $e(e,t){for(var n=Xe(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function et(e){return function(){Qe(this,e)}}function tt(e){return function(){$e(this,e)}}function nt(e,t){return function(){(t.apply(this,arguments)?Qe:$e)(this,e)}}function rt(e,t){var n=Ye(e+``);if(arguments.length<2){for(var r=Xe(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?nt:t?et:tt)(n,t))}function it(){this.textContent=``}function at(e){return function(){this.textContent=e}}function ot(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function st(e){return arguments.length?this.each(e==null?it:(typeof e==`function`?ot:at)(e)):this.node().textContent}function ct(){this.innerHTML=``}function lt(e){return function(){this.innerHTML=e}}function ut(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function dt(e){return arguments.length?this.each(e==null?ct:(typeof e==`function`?ut:lt)(e)):this.node().innerHTML}function ft(){this.nextSibling&&this.parentNode.appendChild(this)}function pt(){return this.each(ft)}function mt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ht(){return this.each(mt)}function gt(e){var t=typeof e==`function`?e:y(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function _t(){return null}function vt(e,t){var n=typeof e==`function`?e:y(e),r=t==null?_t:typeof t==`function`?t:x(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function yt(){var e=this.parentNode;e&&e.removeChild(this)}function bt(){return this.each(yt)}function xt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function St(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ct(e){return this.select(e?St:xt)}function wt(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Tt(e){return function(t){e.call(this,t,this.__data__)}}function Et(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Dt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Ot(e,t,n){return function(){var r=this.__on,i,a=Tt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function kt(e,t,n){var r=Et(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}}else{for(s=t?Ot:Dt,i=0;i<a;++i)this.each(s(r[i],t,n));return this}}function At(e,t,n){var r=Be(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function jt(e,t){return function(){return At(this,e,t)}}function Mt(e,t){return function(){return At(this,e,t.apply(this,arguments))}}function Nt(e,t){return this.each((typeof t==`function`?Mt:jt)(e,t))}function*Pt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Ft=[null];function O(e,t){this._groups=e,this._parents=t}function k(){return new O([[document.documentElement]],Ft)}function It(){return this}O.prototype=k.prototype={constructor:O,select:S,selectAll:ee,selectChild:oe,selectChildren:ue,filter:de,data:ye,enter:pe,exit:xe,join:Se,merge:Ce,selection:It,order:we,sort:Te,call:De,nodes:Oe,node:ke,size:Ae,empty:je,each:Me,attr:ze,style:We,property:Je,classed:rt,text:st,html:dt,raise:pt,lower:ht,append:gt,insert:vt,remove:bt,clone:Ct,datum:wt,on:kt,dispatch:Nt,[Symbol.iterator]:Pt};function Lt(e){return typeof e==`string`?new O([[document.querySelector(e)]],[document.documentElement]):new O([[e]],Ft)}function Rt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function A(){}var j=.7,M=1/j,N=`\\s*([+-]?\\d+)\\s*`,P=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,F=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Bt=/^#([0-9a-f]{3,8})$/,Vt=RegExp(`^rgb\\(${N},${N},${N}\\)$`),Ht=RegExp(`^rgb\\(${F},${F},${F}\\)$`),Ut=RegExp(`^rgba\\(${N},${N},${N},${P}\\)$`),Wt=RegExp(`^rgba\\(${F},${F},${F},${P}\\)$`),Gt=RegExp(`^hsl\\(${P},${F},${F}\\)$`),Kt=RegExp(`^hsla\\(${P},${F},${F},${P}\\)$`),qt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Rt(A,I,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:Yt,formatHsl:Xt,formatRgb:Zt,toString:Zt});function Jt(){return this.rgb().formatHex()}function Yt(){return this.rgb().formatHex8()}function Xt(){return cn(this).formatHsl()}function Zt(){return this.rgb().formatRgb()}function I(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Bt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Qt(t):n===3?new L(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$t(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$t(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Vt.exec(e))?new L(t[1],t[2],t[3],1):(t=Ht.exec(e))?new L(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ut.exec(e))?$t(t[1],t[2],t[3],t[4]):(t=Wt.exec(e))?$t(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gt.exec(e))?sn(t[1],t[2]/100,t[3]/100,1):(t=Kt.exec(e))?sn(t[1],t[2]/100,t[3]/100,t[4]):qt.hasOwnProperty(e)?Qt(qt[e]):e===`transparent`?new L(NaN,NaN,NaN,0):null}function Qt(e){return new L(e>>16&255,e>>8&255,e&255,1)}function $t(e,t,n,r){return r<=0&&(e=t=n=NaN),new L(e,t,n,r)}function en(e){return e instanceof A||(e=I(e)),e?(e=e.rgb(),new L(e.r,e.g,e.b,e.opacity)):new L}function tn(e,t,n,r){return arguments.length===1?en(e):new L(e,t,n,r??1)}function L(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Rt(L,tn,zt(A,{brighter(e){return e=e==null?M:M**+e,new L(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?j:j**+e,new L(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new L(R(this.r),R(this.g),R(this.b),on(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nn,formatHex:nn,formatHex8:rn,formatRgb:an,toString:an}));function nn(){return`#${z(this.r)}${z(this.g)}${z(this.b)}`}function rn(){return`#${z(this.r)}${z(this.g)}${z(this.b)}${z((isNaN(this.opacity)?1:this.opacity)*255)}`}function an(){let e=on(this.opacity);return`${e===1?`rgb(`:`rgba(`}${R(this.r)}, ${R(this.g)}, ${R(this.b)}${e===1?`)`:`, ${e})`}`}function on(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function R(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function z(e){return e=R(e),(e<16?`0`:``)+e.toString(16)}function sn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new B(e,t,n,r)}function cn(e){if(e instanceof B)return new B(e.h,e.s,e.l,e.opacity);if(e instanceof A||(e=I(e)),!e)return new B;if(e instanceof B)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new B(o,s,c,e.opacity)}function ln(e,t,n,r){return arguments.length===1?cn(e):new B(e,t,n,r??1)}function B(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Rt(B,ln,zt(A,{brighter(e){return e=e==null?M:M**+e,new B(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?j:j**+e,new B(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new L(dn(e>=240?e-240:e+120,i,r),dn(e,i,r),dn(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new B(un(this.h),V(this.s),V(this.l),on(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=on(this.opacity);return`${e===1?`hsl(`:`hsla(`}${un(this.h)}, ${V(this.s)*100}%, ${V(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function un(e){return e=(e||0)%360,e<0?e+360:e}function V(e){return Math.max(0,Math.min(1,e||0))}function dn(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var H=e=>()=>e;function fn(e,t){return function(n){return e+n*t}}function pn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function mn(e,t){var n=t-e;return n?fn(e,n>180||n<-180?n-360*Math.round(n/360):n):H(isNaN(e)?t:e)}function hn(e){return(e=+e)==1?gn:function(t,n){return n-t?pn(t,n,e):H(isNaN(t)?n:t)}}function gn(e,t){var n=t-e;return n?fn(e,n):H(isNaN(e)?t:e)}var _n=(function e(t){var n=hn(t);function r(e,t){var r=n((e=tn(e)).r,(t=tn(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=gn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function U(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var vn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yn=new RegExp(vn.source,`g`);function bn(e){return function(){return e}}function xn(e){return function(t){return e(t)+``}}function Sn(e,t){var n=vn.lastIndex=yn.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=vn.exec(e))&&(i=yn.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:U(r,i)})),n=yn.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?xn(c[0].x):bn(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Cn=180/Math.PI,wn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Tn(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Cn,skewX:Math.atan(c)*Cn,scaleX:o,scaleY:s}}var En;function Dn(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?wn:Tn(t.a,t.b,t.c,t.d,t.e,t.f)}function On(e){return e==null||(En||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),En.setAttribute(`transform`,e),!(e=En.transform.baseVal.consolidate()))?wn:(e=e.matrix,Tn(e.a,e.b,e.c,e.d,e.e,e.f))}function kn(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:U(e,i)},{i:c-2,x:U(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:U(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:U(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:U(e,n)},{i:s-2,x:U(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var An=kn(Dn,`px, `,`px)`,`deg)`),jn=kn(On,`, `,`)`,`)`),W=0,G=0,Mn=0,Nn=1e3,Pn,K,Fn=0,q=0,In=0,J=typeof performance==`object`&&performance.now?performance:Date,Ln=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Rn(){return q||=(Ln(zn),J.now()+In)}function zn(){q=0}function Bn(){this._call=this._time=this._next=null}Bn.prototype=Vn.prototype={constructor:Bn,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Rn():+n)+(t==null?0:+t),!this._next&&K!==this&&(K?K._next=this:Pn=this,K=this),this._call=e,this._time=n,Kn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kn())}};function Vn(e,t,n){var r=new Bn;return r.restart(e,t,n),r}function Hn(){Rn(),++W;for(var e=Pn,t;e;)(t=q-e._time)>=0&&e._call.call(void 0,t),e=e._next;--W}function Un(){q=(Fn=J.now())+In,W=G=0;try{Hn()}finally{W=0,Gn(),q=0}}function Wn(){var e=J.now(),t=e-Fn;t>Nn&&(In-=t,Fn=e)}function Gn(){for(var e,t=Pn,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Pn=n);K=e,Kn(r)}function Kn(e){W||(G&&=clearTimeout(G),e-q>24?(e<1/0&&(G=setTimeout(Un,e-J.now()-In)),Mn&&=clearInterval(Mn)):(Mn||=(Fn=J.now(),setInterval(Wn,Nn)),W=1,Ln(Un)))}function qn(e,t,n){var r=new Bn;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Jn=u(`start`,`end`,`cancel`,`interrupt`),Yn=[];function Xn(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Qn(e,n,{name:t,index:r,group:i,on:Jn,tween:Yn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Zn(e,t){var n=X(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Y(e,t){var n=X(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function X(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Qn(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Vn(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return qn(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(qn(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function $n(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n)(r=n[o]).name===t?(i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]):a=!1;a&&delete e.__transition}}function er(e){return this.each(function(){$n(this,e)})}function tr(e,t){var n,r;return function(){var i=Y(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function nr(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Y(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function rr(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=X(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?tr:nr)(n,e,t))}function ir(e,t,n){var r=e._id;return e.each(function(){var e=Y(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return X(e,r).value[t]}}function ar(e,t){var n;return(typeof t==`number`?U:t instanceof I?_n:(n=I(t))?(t=n,_n):Sn)(e,t)}function or(e){return function(){this.removeAttribute(e)}}function sr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function cr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function lr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function ur(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function dr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function fr(e,t){var n=g(e),r=n===`transform`?jn:ar;return this.attrTween(e,typeof t==`function`?(n.local?dr:ur)(n,r,ir(this,`attr.`+e,t)):t==null?(n.local?sr:or)(n):(n.local?lr:cr)(n,r,t))}function pr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function mr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function hr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&mr(e,i)),n}return i._value=t,i}function gr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&pr(e,i)),n}return i._value=t,i}function _r(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=g(e);return this.tween(n,(r.local?hr:gr)(r,t))}function vr(e,t){return function(){Zn(this,e).delay=+t.apply(this,arguments)}}function yr(e,t){return t=+t,function(){Zn(this,e).delay=t}}function br(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?vr:yr)(t,e)):X(this.node(),t).delay}function xr(e,t){return function(){Y(this,e).duration=+t.apply(this,arguments)}}function Sr(e,t){return t=+t,function(){Y(this,e).duration=t}}function Cr(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?xr:Sr)(t,e)):X(this.node(),t).duration}function wr(e,t){if(typeof t!=`function`)throw Error();return function(){Y(this,e).ease=t}}function Tr(e){var t=this._id;return arguments.length?this.each(wr(t,e)):X(this.node(),t).ease}function Er(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Y(this,e).ease=n}}function Dr(e){if(typeof e!=`function`)throw Error();return this.each(Er(this._id,e))}function Or(e){typeof e!=`function`&&(e=te(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z(r,this._parents,this._name,this._id)}function kr(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Z(o,this._parents,this._name,this._id)}function Ar(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function jr(e,t,n){var r,i,a=Ar(t)?Zn:Y;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Mr(e,t){var n=this._id;return arguments.length<2?X(this.node(),n).on.on(e):this.each(jr(n,e,t))}function Nr(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Pr(){return this.on(`end.remove`,Nr(this._id))}function Fr(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=x(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Xn(l[f],t,n,f,l,X(u,n)));return new Z(a,this._parents,t,n)}function Ir(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=T(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=X(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Xn(p,t,n,h,f,m);a.push(f),o.push(u)}return new Z(a,o,t,n)}var Lr=k.prototype.constructor;function Rr(){return new Lr(this._groups,this._parents)}function zr(e,t){var n,r,i;return function(){var a=D(this,e),o=(this.style.removeProperty(e),D(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Br(e){return function(){this.style.removeProperty(e)}}function Vr(e,t,n){var r,i=n+``,a;return function(){var o=D(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Hr(e,t,n){var r,i,a;return function(){var o=D(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),D(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Ur(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Y(this,e),l=c.on,u=c.value[a]==null?s||=Br(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Wr(e,t,n){var r=(e+=``)==`transform`?An:ar;return t==null?this.styleTween(e,zr(e,r)).on(`end.style.`+e,Br(e)):typeof t==`function`?this.styleTween(e,Hr(e,r,ir(this,`style.`+e,t))).each(Ur(this._id,e)):this.styleTween(e,Vr(e,r,t),n).on(`end.style.`+e,null)}function Gr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Kr(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Gr(e,a,n)),r}return a._value=t,a}function qr(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Kr(e,t,n??``))}function Jr(e){return function(){this.textContent=e}}function Yr(e){return function(){var t=e(this);this.textContent=t??``}}function Xr(e){return this.tween(`text`,typeof e==`function`?Yr(ir(this,`text`,e)):Jr(e==null?``:e+``))}function Zr(e){return function(t){this.textContent=e.call(this,t)}}function Qr(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Zr(r)),t}return r._value=e,r}function $r(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Qr(e))}function ei(){for(var e=this._name,t=this._id,n=ri(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=X(c,t);Xn(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Z(r,this._parents,e,n)}function ti(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Y(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var ni=0;function Z(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ri(){return++ni}var Q=k.prototype;Z.prototype={constructor:Z,select:Fr,selectAll:Ir,selectChild:Q.selectChild,selectChildren:Q.selectChildren,filter:Or,merge:kr,selection:Rr,transition:ei,call:Q.call,nodes:Q.nodes,node:Q.node,size:Q.size,empty:Q.empty,each:Q.each,on:Mr,attr:fr,attrTween:_r,style:Wr,styleTween:qr,text:Xr,textTween:$r,remove:Pr,tween:rr,delay:br,duration:Cr,ease:Tr,easeVarying:Dr,end:ti,[Symbol.iterator]:Q[Symbol.iterator]};function ii(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var ai={time:null,delay:0,duration:250,ease:ii};function oi(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function si(e){var t,n;e instanceof Z?(t=e._id,e=e._name):(t=ri(),(n=ai).time=Rn(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Xn(c,e,t,l,o,n||oi(c,t));return new Z(r,this._parents,e,t)}k.prototype.interrupt=er,k.prototype.transition=si;var{abs:ci,max:li,min:ui}=Math;[`w`,`e`].map(di),[`n`,`s`].map(di),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(di);function di(e){return{type:e}}function $(e,t,n){this.k=e,this.x=t,this.y=n}$.prototype={constructor:$,scale:function(e){return e===1?this:new $(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new $(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var fi=new $(1,0,0);pi.prototype=$.prototype;function pi(e){for(;!e.__zoom;)if(!(e=e.parentNode))return fi;return e.__zoom}export{gn as a,L as c,Rt as d,zt as f,r as g,s as h,mn as i,I as l,o as m,U as n,H as o,Lt as p,_n as r,A as s,Sn as t,en as u};
@@ -0,0 +1,291 @@
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-DWy4o1sh.js";import{C as r,H as i,U as a,_ as o,a as s,b as c,et as l,q as u,s as d,v as f}from"./chunk-DSNLSHJZ-6EnWiUHw.js";import{_ as p,s as m}from"./chunk-7S6XSTFO-C_2BTQ4f.js";import"./chunk-YZO67HFG-O3X4dDhT.js";import"./chunk-AQDTSKZB-DZLt6T8h.js";import"./chunk-UHW7PFBP-y_Cnbpso.js";import{a as h,i as g,o as _,r as v}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-HAGFOTED-C4TrjvWC.js";import"./chunk-ZAUX2LTX-dMpe16to.js";import"./chunk-WQQL4CDK-DVgns4LS.js";import{t as y}from"./chunk-55XCU76K-C9qNkR8H.js";import{t as b}from"./chunk-XXDRQBXY-z-xFeaXQ.js";import{t as x}from"./chunk-VQ5W62QI-BDGHstYR.js";import"./chunk-HNE4Q36P-Bhz3xzgF.js";import{i as S,r as C}from"./mermaid.core-C-ITLWC9.js";var w=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(j,[2,44],{58:[1,56]}),t(j,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:f,57:k},t(A,[2,17]),t(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(j,[2,46]),t(j,[2,47]),t(A,[2,15]),t(A,[2,19]),t(M,a,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(t,n,r,i){function a(){let e=n.yytext.indexOf(`%%`);if(e===0)return!1;if(e>0){let r=n.yytext.slice(0,e),i=n.yytext.slice(e);i&&t.lexer.unput(i),n.yytext=r}return!0}switch(e(a,`processId`),r){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState(`SCALE`),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin(`acc_title`),33;case 17:return this.popState(),`acc_title_value`;case 18:return this.begin(`acc_descr`),35;case 19:return this.popState(),`acc_descr_value`;case 20:this.begin(`acc_descr_multiline`);break;case 21:this.popState();break;case 22:return`acc_descr_multiline_value`;case 23:return this.pushState(`CLASSDEF`),41;case 24:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 25:return this.popState(),this.pushState(`CLASSDEFID`),42;case 26:return this.popState(),43;case 27:return this.pushState(`CLASS`),48;case 28:return this.popState(),this.pushState(`CLASS_STYLE`),49;case 29:return this.popState(),50;case 30:return this.pushState(`STYLE`),45;case 31:return this.popState(),this.pushState(`STYLEDEF_STYLES`),46;case 32:return this.popState(),47;case 33:return this.pushState(`SCALE`),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState(`STATE`);break;case 37:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState(`STATE_STRING`);break;case 48:return this.pushState(`STATE_ID`),`AS`;case 49:return a()?(this.popState(),`ID`):void 0;case 50:this.popState();break;case 51:return`STATE_DESCR`;case 52:throw Error(`Error: State name must be a single word. Found: "`+n.yytext.trim()+`"`);case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState(`struct`),20;case 56:return this.popState(),21;case 57:break;case 58:return this.begin(`NOTE`),29;case 59:return this.popState(),this.pushState(`NOTE_ID`),59;case 60:return this.popState(),this.pushState(`NOTE_ID`),60;case 61:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 62:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 63:break;case 64:return`NOTE_TEXT`;case 65:return a()?(this.popState(),`ID`):void 0;case 66:return a()?(this.popState(),this.pushState(`NOTE_TEXT`),24):void 0;case 67:return this.popState(),n.yytext=n.yytext.substr(2).trim(),31;case 68:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),31;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return a()?24:void 0;case 74:return n.yytext=n.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return`INVALID`}},`anonymous`),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}})();function P(){this.yy={}}return e(P,`Parser`),P.prototype=N,N.Parser=P,new P})();w.parser=w;var T=w,E=`TB`,D=`TB`,O=`dir`,k=`state`,A=`root`,j=`relation`,M=`classDef`,N=`style`,P=`applyClass`,F=`default`,ee=`divider`,te=`fill:none`,ne=`fill: #333`,re=`c`,ie=`markdown`,ae=`normal`,I=`rect`,L=`rectWithTitle`,oe=`stateStart`,se=`stateEnd`,R=`divider`,ce=`roundedWithTitle`,le=`note`,ue=`noteGroup`,z=`statediagram`,de=`${z}-state`,B=`transition`,fe=`note`,pe=`${B} note-edge`,me=`${z}-${fe}`,he=`${z}-cluster`,ge=`${z}-cluster-alt`,V=`parent`,H=`note`,_e=`state`,U=`----`,ve=`${U}${H}`,ye=`${U}${V}`,W=new Map,G=0,be=0,K=new Map,xe=e((e,t,n,r)=>{if(e===R&&n?.id!==void 0&&K.has(n.id)){let e=K.get(n.id);return K.set(t,e),e}let i=be++,a=r?void 0:i;return K.set(t,a),a},`colorSlotFor`);function q(e=``,t=0,n=``,r=U){return`${_e}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}e(q,`stateDomId`);var Se=e((e,n,r,i,a,o,s,l)=>{t.trace(`items`,n),n.forEach(t=>{switch(t.stmt){case k:X(e,t,r,i,a,o,s,l);break;case F:X(e,t,r,i,a,o,s,l);break;case j:{X(e,t.state1,r,i,a,o,s,l),X(e,t.state2,r,i,a,o,s,l);let n=s===`neo`,u={id:`edge`+G,start:t.state1.id,end:t.state2.id,arrowhead:`normal`,arrowTypeEnd:n?`arrow_barb_neo`:`arrow_barb`,style:te,labelStyle:``,label:d.sanitizeText(t.description??``,c()),arrowheadStyle:ne,labelpos:re,labelType:ie,thickness:ae,classes:B,look:s};a.push(u),G++}}})},`setupDoc`),Ce=e((e,t=D)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`);function J(e,t,n){if(!t.id||t.id===`</join></fork>`||t.id===`</choice>`)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}e(J,`insertOrUpdateNode`);function we(e){return e?.classes?.join(` `)??``}e(we,`getClassesFromDbInfo`);function Y(e){return e?.styles??[]}e(Y,`getStylesFromDbInfo`);var X=e((e,n,r,i,a,o,s,l)=>{let u=n.id,f=r.get(u),p=we(f),m=Y(f),h=c(),g=p.trim()!==``||m.length>0;if(t.info(`dataFetcher parsedItem`,n,f,m),u!==`root`){let r=I;n.start===!0?r=oe:n.start===!1&&(r=se),n.type!==F&&(r=n.type),W.get(u)||W.set(u,{id:u,shape:r,description:d.sanitizeText(u,h),cssClasses:`${p} ${de}`,cssStyles:m});let c=W.get(u);n.description&&(Array.isArray(c.description)?(c.shape=L,c.description.push(n.description)):c.description?.length&&c.description.length>0?(c.shape=L,c.description=c.description===u?[n.description]:[c.description,n.description]):(c.shape=I,c.description=n.description),c.description=d.sanitizeTextOrArray(c.description,h)),c.description?.length===1&&c.shape===L&&(c.shape=c.type===`group`?ce:I),!c.type&&n.doc&&(t.info(`Setting cluster for XCX`,u,Ce(n)),c.type=`group`,c.isGroup=!0,c.dir=Ce(n),c.shape=n.type===ee?R:ce,c.colorIndex=xe(c.shape,u,e,g),c.cssClasses=`${c.cssClasses} ${he} ${o?ge:``}`);let f={labelStyle:``,shape:c.shape,label:c.description,cssClasses:c.cssClasses,cssCompiledStyles:[],cssStyles:c.cssStyles,id:u,dir:c.dir,domId:q(u,G),type:c.type,isGroup:c.type===`group`,colorIndex:c.colorIndex,padding:8,rx:10,ry:10,look:s,labelType:`markdown`};if(f.shape===R&&(f.label=``),e&&e.id!==`root`&&(t.trace(`Setting node `,u,` to be child of its parent `,e.id),f.parentId=e.id),f.centerLabel=!0,n.note){let e={labelStyle:``,shape:le,label:n.note.text,labelType:`markdown`,cssClasses:me,cssStyles:[],cssCompiledStyles:[],id:u+ve+`-`+G,domId:q(u,G,H),type:`node`,isGroup:!1,padding:h.flowchart?.padding,look:s,position:n.note.position},t=u+ye,r={labelStyle:``,shape:ue,label:n.note.text,cssClasses:c.cssClasses,cssStyles:[],id:u+ye,domId:q(u,G,V),type:`group`,isGroup:!0,padding:16,look:s,position:n.note.position};G++,r.id=t,e.parentId=t,J(i,r,l),J(i,e,l),J(i,f,l);let o=u,d=e.id;n.note.position===`left of`&&(o=e.id,d=u),a.push({id:o+`-`+d,start:o,end:d,arrowhead:`none`,arrowTypeEnd:``,style:te,labelStyle:``,classes:pe,pattern:`dashed`,arrowheadStyle:ne,labelpos:re,labelType:ie,thickness:ae,look:s})}else J(i,f,l)}n.doc&&(t.trace(`Adding nodes children `),Se(n,n.doc,r,i,a,!o,s,l))},`dataFetcher`),Te=e(()=>{W.clear(),G=0,be=0,K.clear()},`reset`),Ee=e((e,t=D)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),De={getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`),draw:e(async function(e,n,r,i){t.info(`REF0:`),t.info(`Drawing state diagram (v2)`,n);let{securityLevel:a,state:o,layout:s}=c();i.db.extract(i.db.getRootDocV2());let l=i.db.getData(),u=b(n,a);l.type=i.type,l.layoutAlgorithm=C(s),l.nodeSpacing=o?.nodeSpacing||50,l.rankSpacing=o?.rankSpacing||50,l.markers=c().look===`neo`?[`barbNeo`]:[`barb`],l.diagramId=n,await S(l,u);try{(typeof i.db.getLinks==`function`?i.db.getLinks():new Map).forEach((e,n)=>{let r=typeof n==`string`?n:typeof n?.id==`string`?n.id:``,i=l.nodes.find(e=>e.id===r);if(!r){t.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(n));return}let a=u.node()?.querySelectorAll(`g.node, g.rough-node`),o;if(a?.forEach(e=>{let t=e.textContent?.trim();(e.id===i?.domId||t===r)&&(o=e)}),!o){t.warn(`⚠️ Could not find node matching text:`,r);return}let s=o.parentNode;if(!s){t.warn(`⚠️ Node has no parent, cannot wrap:`,r);return}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),d=e.url.replace(/^"+|"+$/g,``);if(c.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,d),c.setAttribute(`target`,`_blank`),e.tooltip){let t=e.tooltip.replace(/^"+|"+$/g,``);c.setAttribute(`title`,t),o.setAttribute(`title`,t)}s.replaceChild(c,o),c.appendChild(o),t.info(`🔗 Wrapped node in <a> tag for:`,r,e.url)})}catch(e){t.error(`❌ Error injecting clickable links:`,e)}p.insertTitle(u,`statediagramTitleText`,o?.titleTopMargin??25,i.db.getDiagramTitle()),x(u,8,z,o?.useMaxWidth??!0)},`draw`),getDir:Ee},Z={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},Oe=e(()=>new Map,`newClassesList`),Q=e(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),$=e(e=>JSON.parse(JSON.stringify(e)),`clone`),ke=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Oe(),this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=f,this.setAccTitle=a,this.getAccDescription=o,this.setAccDescription=i,this.setDiagramTitle=u,this.getDiagramTitle=r,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{e(this,`StateDB`)}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case k:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case j:this.addRelation(t.state1,t.state2,t.description);break;case M:this.addStyleClass(t.id.trim(),t.classes);break;case N:this.handleStyleDef(t);break;case P:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip)}let t=this.getStates(),n=c();Te(),X(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,n.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){if(e.description=e.label.slice(1),e.isGroup&&e.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(e){t.info(`Setting root doc`,e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===j){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===k&&(t.id===Z.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==A&&t.stmt!==k||!t.doc)return;let r=[],i=[];for(let e of t.doc)if(e.type===ee){let t=$(e);t.doc=$(i),r.push(t),i=[]}else i.push(e);if(r.length>0&&i.length>0){let e={stmt:k,id:m(),type:`divider`,doc:$(i)};r.push($(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:A,stmt:A},{id:A,stmt:A,doc:this.rootDoc},!0),{id:A,doc:this.rootDoc}}addState(e,n=F,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,l=void 0){let u=e?.trim();if(!this.currentDocument.states.has(u))t.info(`Adding state `,u,i),this.currentDocument.states.set(u,{stmt:k,id:u,descriptions:[],type:n,doc:r,note:a,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(u);if(!e)throw Error(`State not found: ${u}`);e.doc||=r,e.type||=n}if(i&&(t.info(`Setting state description`,u,i),(Array.isArray(i)?i:[i]).forEach(e=>this.addDescription(u,e.trim()))),a){let e=this.currentDocument.states.get(u);if(!e)throw Error(`State not found: ${u}`);e.note=a,e.note.text=d.sanitizeText(e.note.text,c())}o&&(t.info(`Setting state classes`,u,o),(Array.isArray(o)?o:[o]).forEach(e=>this.setCssClass(u,e.trim()))),s&&(t.info(`Setting state styles`,u,s),(Array.isArray(s)?s:[s]).forEach(e=>this.setStyle(u,e.trim()))),l&&(t.info(`Setting state styles`,u,s),(Array.isArray(l)?l:[l]).forEach(e=>this.setTextStyle(u,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Oe(),e||(this.links=new Map,s())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){t.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,n,r){this.links.set(e,{url:n,tooltip:r}),t.warn(`Adding link`,e,n,r)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===Z.START_NODE?(this.startEndCount++,`${Z.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=F){return e===Z.START_NODE?Z.START_TYPE:t}endIdIfNeeded(e=``){return e===Z.END_NODE?(this.startEndCount++,`${Z.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=F){return e===Z.END_NODE?Z.END_TYPE:t}addRelationObjs(e,t,n=``){let r=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),a=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(r,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(a,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:d.sanitizeText(n,c())})}addRelation(e,t,n){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,n);else if(typeof e==`string`&&typeof t==`string`){let r=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),a=this.endIdIfNeeded(t.trim()),o=this.endTypeIfNeeded(t);this.addState(r,i),this.addState(a,o),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:n?d.sanitizeText(n,c()):void 0})}}addDescription(e,t){let n=this.currentDocument.states.get(e),r=t.startsWith(`:`)?t.replace(`:`,``).trim():t;n?.descriptions?.push(d.sanitizeText(r,c()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(Z.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(Z.COLOR_KEYWORD).exec(e)){let e=t.replace(Z.FILL_KEYWORD,Z.BG_FILL).replace(Z.COLOR_KEYWORD,Z.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setupToolTips(e){let t=y();n(e).select(`svg`).selectAll(`g.node, g.rough-node`).on(`mouseover`,e=>{let r=n(e.currentTarget),i=r.attr(`title`);if(i===null)return;let a=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.style(`left`,window.scrollX+a.left+(a.right-a.left)/2+`px`).style(`top`,window.scrollY+a.bottom+`px`),t.html(l.sanitize(i)),r.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),n(e.currentTarget).classed(`hover`,!1)})}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===O)}getDirection(){return this.getDirectionStatement()?.value??E}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:O,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=c();for(let t of this.nodes)t.wrappingWidth??=e.state?.wrappingWidth,t.isGroup||(t.minWidth??=e.state?.minNodeWidth);return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:Ee(this.getRootDocV2())}}getConfig(){return c().state}},Ae=e(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!g(t,r))return``;let i=_(e.look),a=v(n),o=``;for(let e=0;e<h(r);e++){let t=r[e],s=a?`fill: ${n[e%n.length]};`:``,c=`[data-look="${i}"][data-color-id="color-${e}"]`;o+=`
7
+
8
+ /* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers
9
+ the body, so what stays visible of \`outer\` is the band behind the label. */
10
+ ${c}.statediagram-cluster rect.outer {
11
+ stroke: ${t};
12
+ ${s}
13
+ }
14
+
15
+ ${c}.statediagram-cluster rect.inner {
16
+ stroke: ${t};
17
+ }
18
+
19
+ /* Concurrency regions. Siblings of one composite share a slot, so a divided composite
20
+ reads as one thing split into parts rather than as several composites. */
21
+ ${c}.statediagram-cluster rect.divider {
22
+ stroke: ${t};
23
+ ${s}
24
+ }
25
+
26
+ /* handDrawn draws the same container as roughjs shapes rather than plain rects, so it
27
+ needs its own rules. \`roundedWithTitle\` and \`divider\` name those groups \`outer\`,
28
+ \`inner\` and \`divider\` to match the classic branch, which is what lets these
29
+ discriminate -- a bare \`.statediagram-cluster path\` rule reached the body as well and
30
+ tinted the whole composite, losing \`compositeBackground\` and diverging from what
31
+ classic and neo do.
32
+
33
+ roughjs emits two paths per shape and marks them: the filled shape carries
34
+ \`stroke="none"\` and the sketched outline carries \`fill="none"\`. Splitting on that is
35
+ what keeps \`fill\` off the outline -- a rough outline is open squiggles, not a closed
36
+ region, so filling it produces smears -- and keeps \`stroke\` off the fill shape, which
37
+ would otherwise gain an edge it was drawn without. */
38
+ ${c}.statediagram-cluster .outer path[stroke='none'] {
39
+ ${s}
40
+ }
41
+
42
+ ${c}.statediagram-cluster .outer path[fill='none'] {
43
+ stroke: ${t};
44
+ }
45
+
46
+ /* No \`.inner\` rule on purpose. The body shape is left entirely alone under handDrawn,
47
+ where a rect's \`inner\` counterpart cannot be recoloured safely: roughjs draws a
48
+ hachure fill as *stroked* lines, so its fill paths carry \`fill="none"\` exactly like
49
+ the outline and no selector separates them. An \`.inner\` stroke rule therefore
50
+ repainted the hatching of every alt composite in the palette colour instead of
51
+ leaving it on \`altBackground\`. The container still reads as palette-coloured: the
52
+ \`outer\` shape spans the whole composite, so its outline already frames the body. */
53
+
54
+ /* Regions split the same way, which is why \`divider\` fills solid rather than taking
55
+ roughjs's default hachure -- see the note on that call. Hatched, both of its paths
56
+ carried \`fill="none"\` and these two rules degenerated: the tint matched nothing and
57
+ the border rule repainted the hatching. */
58
+ ${c}.statediagram-cluster .divider path[stroke='none'] {
59
+ ${s}
60
+ }
61
+
62
+ ${c}.statediagram-cluster .divider path[fill='none'] {
63
+ stroke: ${t};
64
+ }
65
+ `}return o},`genColor`),je={parser:T,get db(){return new ke(2)},renderer:De,styles:e(e=>`
66
+ ${Ae(e)}
67
+ defs [id$="-barbEnd"] {
68
+ fill: ${e.transitionColor};
69
+ stroke: ${e.transitionColor};
70
+ }
71
+ g.stateGroup text {
72
+ fill: ${e.nodeBorder};
73
+ stroke: none;
74
+ font-size: 10px;
75
+ }
76
+ g.stateGroup text {
77
+ fill: ${e.textColor};
78
+ stroke: none;
79
+ font-size: 10px;
80
+
81
+ }
82
+ g.stateGroup .state-title {
83
+ font-weight: bolder;
84
+ fill: ${e.stateLabelColor};
85
+ }
86
+
87
+ g.stateGroup rect {
88
+ fill: ${e.mainBkg};
89
+ stroke: ${e.nodeBorder};
90
+ }
91
+
92
+ g.stateGroup line {
93
+ stroke: ${e.lineColor};
94
+ stroke-width: ${e.strokeWidth||1};
95
+ }
96
+
97
+ .transition {
98
+ stroke: ${e.transitionColor};
99
+ stroke-width: ${e.strokeWidth||1};
100
+ fill: none;
101
+ }
102
+
103
+ .stateGroup .composit {
104
+ fill: ${e.background};
105
+ border-bottom: 1px
106
+ }
107
+
108
+ .stateGroup .alt-composit {
109
+ fill: #e0e0e0;
110
+ border-bottom: 1px
111
+ }
112
+
113
+ .state-note {
114
+ stroke: ${e.noteBorderColor};
115
+ fill: ${e.noteBkgColor};
116
+
117
+ text {
118
+ fill: ${e.noteTextColor};
119
+ stroke: none;
120
+ font-size: 10px;
121
+ }
122
+ }
123
+
124
+ .stateLabel .box {
125
+ stroke: none;
126
+ stroke-width: 0;
127
+ fill: ${e.mainBkg};
128
+ opacity: 0.5;
129
+ }
130
+
131
+ .edgeLabel .label rect {
132
+ fill: ${e.labelBackgroundColor};
133
+ opacity: 0.5;
134
+ }
135
+ .edgeLabel {
136
+ background-color: ${e.edgeLabelBackground};
137
+ p {
138
+ background-color: ${e.edgeLabelBackground};
139
+ }
140
+ rect {
141
+ opacity: 0.5;
142
+ background-color: ${e.edgeLabelBackground};
143
+ fill: ${e.edgeLabelBackground};
144
+ }
145
+ text-align: center;
146
+ }
147
+ .edgeLabel .label text {
148
+ fill: ${e.transitionLabelColor||e.tertiaryTextColor};
149
+ }
150
+ .label div .edgeLabel {
151
+ color: ${e.transitionLabelColor||e.tertiaryTextColor};
152
+ }
153
+
154
+ .stateLabel text {
155
+ fill: ${e.stateLabelColor};
156
+ font-size: 10px;
157
+ font-weight: bold;
158
+ }
159
+
160
+ .node circle.state-start {
161
+ fill: ${e.specialStateColor};
162
+ stroke: ${e.specialStateColor};
163
+ }
164
+
165
+ .node .fork-join {
166
+ fill: ${e.specialStateColor};
167
+ stroke: ${e.specialStateColor};
168
+ }
169
+
170
+ .node circle.state-end {
171
+ fill: ${e.innerEndBackground};
172
+ stroke: ${e.background};
173
+ stroke-width: 1.5
174
+ }
175
+ .end-state-inner {
176
+ fill: ${e.compositeBackground||e.background};
177
+ // stroke: ${e.background};
178
+ stroke-width: 1.5
179
+ }
180
+
181
+ .node rect {
182
+ fill: ${e.stateBkg||e.mainBkg};
183
+ stroke: ${e.stateBorder||e.nodeBorder};
184
+ stroke-width: ${e.strokeWidth||1}px;
185
+ }
186
+ .node polygon {
187
+ fill: ${e.mainBkg};
188
+ stroke: ${e.stateBorder||e.nodeBorder};;
189
+ stroke-width: ${e.strokeWidth||1}px;
190
+ }
191
+ [id$="-barbEnd"] {
192
+ fill: ${e.lineColor};
193
+ }
194
+
195
+ .statediagram-cluster rect {
196
+ fill: ${e.compositeTitleBackground};
197
+ stroke: ${e.stateBorder||e.nodeBorder};
198
+ stroke-width: ${e.strokeWidth||1}px;
199
+ }
200
+
201
+ .cluster-label, .nodeLabel {
202
+ color: ${e.stateLabelColor};
203
+ // line-height: 1;
204
+ }
205
+
206
+ .statediagram-cluster rect.outer {
207
+ rx: 5px;
208
+ ry: 5px;
209
+ }
210
+ .statediagram-state .divider {
211
+ stroke: ${e.stateBorder||e.nodeBorder};
212
+ }
213
+
214
+ .statediagram-state .title-state {
215
+ rx: 5px;
216
+ ry: 5px;
217
+ }
218
+ .statediagram-cluster.statediagram-cluster .inner {
219
+ fill: ${e.compositeBackground||e.background};
220
+ }
221
+ .statediagram-cluster.statediagram-cluster-alt .inner {
222
+ fill: ${e.altBackground?e.altBackground:`#efefef`};
223
+ }
224
+
225
+ .statediagram-cluster .inner {
226
+ rx:0;
227
+ ry:0;
228
+ }
229
+
230
+ .statediagram-state rect.basic {
231
+ rx: 5px;
232
+ ry: 5px;
233
+ }
234
+ .statediagram-state rect.divider {
235
+ stroke-dasharray: 10,10;
236
+ fill: ${e.altBackground?e.altBackground:`#efefef`};
237
+ }
238
+
239
+ .note-edge {
240
+ stroke-dasharray: 5;
241
+ }
242
+
243
+ .statediagram-note rect {
244
+ fill: ${e.noteBkgColor};
245
+ stroke: ${e.noteBorderColor};
246
+ stroke-width: 1px;
247
+ rx: 0;
248
+ ry: 0;
249
+ }
250
+ .statediagram-note rect {
251
+ fill: ${e.noteBkgColor};
252
+ stroke: ${e.noteBorderColor};
253
+ stroke-width: 1px;
254
+ rx: 0;
255
+ ry: 0;
256
+ }
257
+
258
+ .statediagram-note text {
259
+ fill: ${e.noteTextColor};
260
+ }
261
+
262
+ .statediagram-note .nodeLabel {
263
+ color: ${e.noteTextColor};
264
+ }
265
+ .statediagram .edgeLabel {
266
+ color: red; // ${e.noteTextColor};
267
+ }
268
+
269
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
270
+ fill: ${e.lineColor};
271
+ stroke: ${e.lineColor};
272
+ stroke-width: ${e.strokeWidth||1};
273
+ }
274
+
275
+ .statediagramTitleText {
276
+ text-anchor: middle;
277
+ font-size: 18px;
278
+ fill: ${e.textColor};
279
+ }
280
+
281
+ [data-look="neo"].statediagram-cluster rect {
282
+ fill: ${e.mainBkg};
283
+ stroke: ${e.useGradient?`url(`+e.svgId+`-gradient)`:e.stateBorder||e.nodeBorder};
284
+ stroke-width: ${e.strokeWidth??1};
285
+ }
286
+ [data-look="neo"].statediagram-cluster rect.outer {
287
+ rx: ${e.radius}px;
288
+ ry: ${e.radius}px;
289
+ filter: ${e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${e.svgId}-drop-shadow)`):`none`}
290
+ }
291
+ `,`getStyles`),init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{je as diagram};
@@ -0,0 +1 @@
1
+ function e(e){function t(e,t){e.cmdState.push(t)}function n(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function r(e){var t=e.cmdState.pop();t&&t.closeBracket()}function i(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if(r.name!=`DEFAULT`)return r}return{styleIdentifier:function(){return null}}}function a(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,`bracket`},this.closeBracket=function(){}}}var o={};o.importmodule=a(`importmodule`,`tag`,[`string`,`builtin`]),o.documentclass=a(`documentclass`,`tag`,[``,`atom`]),o.usepackage=a(`usepackage`,`tag`,[`atom`]),o.begin=a(`begin`,`tag`,[`atom`]),o.end=a(`end`,`tag`,[`atom`]),o.label=a(`label`,`tag`,[`atom`]),o.ref=a(`ref`,`tag`,[`atom`]),o.eqref=a(`eqref`,`tag`,[`atom`]),o.cite=a(`cite`,`tag`,[`atom`]),o.bibitem=a(`bibitem`,`tag`,[`atom`]),o.Bibitem=a(`Bibitem`,`tag`,[`atom`]),o.RBibitem=a(`RBibitem`,`tag`,[`atom`]),o.DEFAULT=function(){this.name=`DEFAULT`,this.style=`tag`,this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function s(e,t){e.f=t}function c(e,r){var a;if(e.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var c=e.current().slice(1);return a=o.hasOwnProperty(c)?o[c]:o.DEFAULT,a=new a,t(r,a),s(r,u),a.style}if(e.match(/^\\[$&%#{}_]/)||e.match(/^\\[,;!\/\\]/))return`tag`;if(e.match(`\\[`))return s(r,function(e,t){return l(e,t,`\\]`)}),`keyword`;if(e.match(`\\(`))return s(r,function(e,t){return l(e,t,`\\)`)}),`keyword`;if(e.match(`$$`))return s(r,function(e,t){return l(e,t,`$$`)}),`keyword`;if(e.match(`$`))return s(r,function(e,t){return l(e,t,`$`)}),`keyword`;var d=e.next();if(d==`%`)return e.skipToEnd(),`comment`;if(d==`}`||d==`]`){if(a=n(r),a)a.closeBracket(d),s(r,u);else return`error`;return`bracket`}return d==`{`||d==`[`?(a=o.DEFAULT,a=new a,t(r,a),`bracket`):/\d/.test(d)?(e.eatWhile(/[\w.%]/),`atom`):(e.eatWhile(/[\w\-_]/),a=i(r),a.name==`begin`&&(a.argument=e.current()),a.styleIdentifier())}function l(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return s(t,c),`keyword`;if(e.match(/^\\[a-zA-Z@]+/))return`tag`;if(e.match(/^[a-zA-Z]+/))return`variableName.special`;if(e.match(/^\\[$&%#{}_]/)||e.match(/^\\[,;!\/]/)||e.match(/^[\^_&]/))return`tag`;if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return`number`;var r=e.next();return r==`{`||r==`}`||r==`[`||r==`]`||r==`(`||r==`)`?`bracket`:r==`%`?(e.skipToEnd(),`comment`):`error`}function u(e,t){var i=e.peek(),a;return i==`{`||i==`[`?(a=n(t),a.openBracket(i),e.eat(i),s(t,c),`bracket`):/[ \t\r]/.test(i)?(e.eat(i),null):(s(t,c),r(t),c(e,t))}return{name:`stex`,startState:function(){return{cmdState:[],f:e?function(e,t){return l(e,t)}:c}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=c,e.cmdState.length=0},languageData:{commentTokens:{line:`%`}}}}var t=e(!1);e(!0);export{t as stex};
@@ -0,0 +1 @@
1
+ var e=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.bgsound.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.nobr.noframes.noscript.object.ol.optgroup.option.output.p.param.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.track.u.ul.var.video`.split(`.`),t=[`domain`,`regexp`,`url-prefix`,`url`],n=[`all`,`aural`,`braille`,`handheld`,`print`,`projection`,`screen`,`tty`,`tv`,`embossed`],r=`width.min-width.max-width.height.min-height.max-height.device-width.min-device-width.max-device-width.device-height.min-device-height.max-device-height.aspect-ratio.min-aspect-ratio.max-aspect-ratio.device-aspect-ratio.min-device-aspect-ratio.max-device-aspect-ratio.color.min-color.max-color.color-index.min-color-index.max-color-index.monochrome.min-monochrome.max-monochrome.resolution.min-resolution.max-resolution.scan.grid.dynamic-range.video-dynamic-range`.split(`.`),i=`align-content.align-items.align-self.alignment-adjust.alignment-baseline.anchor-point.animation.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-timing-function.appearance.azimuth.backface-visibility.background.background-attachment.background-clip.background-color.background-image.background-origin.background-position.background-repeat.background-size.baseline-shift.binding.bleed.bookmark-label.bookmark-level.bookmark-state.bookmark-target.border.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-decoration-break.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.clear.clip.color.color-profile.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.content.counter-increment.counter-reset.crop.cue.cue-after.cue-before.cursor.direction.display.dominant-baseline.drop-initial-after-adjust.drop-initial-after-align.drop-initial-before-adjust.drop-initial-before-align.drop-initial-size.drop-initial-value.elevation.empty-cells.fit.fit-position.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.float-offset.flow-from.flow-into.font.font-feature-settings.font-family.font-kerning.font-language-override.font-size.font-size-adjust.font-stretch.font-style.font-synthesis.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-ligatures.font-variant-numeric.font-variant-position.font-weight.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-position.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphens.icon.image-orientation.image-rendering.image-resolution.inline-box-align.justify-content.left.letter-spacing.line-break.line-height.line-stacking.line-stacking-ruby.line-stacking-shift.line-stacking-strategy.list-style.list-style-image.list-style-position.list-style-type.margin.margin-bottom.margin-left.margin-right.margin-top.marker-offset.marks.marquee-direction.marquee-loop.marquee-play-count.marquee-speed.marquee-style.max-height.max-width.min-height.min-width.move-to.nav-down.nav-index.nav-left.nav-right.nav-up.object-fit.object-position.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-style.overflow-wrap.overflow-x.overflow-y.padding.padding-bottom.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.page-policy.pause.pause-after.pause-before.perspective.perspective-origin.pitch.pitch-range.play-during.position.presentation-level.punctuation-trim.quotes.region-break-after.region-break-before.region-break-inside.region-fragment.rendering-intent.resize.rest.rest-after.rest-before.richness.right.rotation.rotation-point.ruby-align.ruby-overhang.ruby-position.ruby-span.shape-image-threshold.shape-inside.shape-margin.shape-outside.size.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.stress.string-set.tab-size.table-layout.target.target-name.target-new.target-position.text-align.text-align-last.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-style.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-height.text-indent.text-justify.text-outline.text-overflow.text-shadow.text-size-adjust.text-space-collapse.text-transform.text-underline-position.text-wrap.top.transform.transform-origin.transform-style.transition.transition-delay.transition-duration.transition-property.transition-timing-function.unicode-bidi.vertical-align.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.widows.width.will-change.word-break.word-spacing.word-wrap.z-index.clip-path.clip-rule.mask.enable-background.filter.flood-color.flood-opacity.lighting-color.stop-color.stop-opacity.pointer-events.color-interpolation.color-interpolation-filters.color-rendering.fill.fill-opacity.fill-rule.image-rendering.marker.marker-end.marker-mid.marker-start.shape-rendering.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-rendering.baseline-shift.dominant-baseline.glyph-orientation-horizontal.glyph-orientation-vertical.text-anchor.writing-mode.font-smoothing.osx-font-smoothing`.split(`.`),a=[`scrollbar-arrow-color`,`scrollbar-base-color`,`scrollbar-dark-shadow-color`,`scrollbar-face-color`,`scrollbar-highlight-color`,`scrollbar-shadow-color`,`scrollbar-3d-light-color`,`scrollbar-track-color`,`shape-inside`,`searchfield-cancel-button`,`searchfield-decoration`,`searchfield-results-button`,`searchfield-results-decoration`,`zoom`],o=[`font-family`,`src`,`unicode-range`,`font-variant`,`font-feature-settings`,`font-stretch`,`font-weight`,`font-style`],s=`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`),c=`above.absolute.activeborder.additive.activecaption.afar.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.amharic.amharic-abegede.antialiased.appworkspace.arabic-indic.armenian.asterisks.attr.auto.avoid.avoid-column.avoid-page.avoid-region.background.backwards.baseline.below.bidi-override.binary.bengali.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.buttonface.buttonhighlight.buttonshadow.buttontext.calc.cambodian.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.cjk-earthly-branch.cjk-heavenly-stem.cjk-ideographic.clear.clip.close-quote.col-resize.collapse.column.compact.condensed.conic-gradient.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.dashed.decimal.decimal-leading-zero.default.default-button.destination-atop.destination-in.destination-out.destination-over.devanagari.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic.ethiopic-abegede.ethiopic-abegede-am-et.ethiopic-abegede-gez.ethiopic-abegede-ti-er.ethiopic-abegede-ti-et.ethiopic-halehame-aa-er.ethiopic-halehame-aa-et.ethiopic-halehame-am-et.ethiopic-halehame-gez.ethiopic-halehame-om-et.ethiopic-halehame-sid-et.ethiopic-halehame-so-et.ethiopic-halehame-ti-er.ethiopic-halehame-ti-et.ethiopic-halehame-tig.ethiopic-numeric.ew-resize.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fixed.flat.flex.footnotes.forwards.from.geometricPrecision.georgian.graytext.groove.gujarati.gurmukhi.hand.hangul.hangul-consonant.hebrew.help.hidden.hide.high.higher.highlight.highlighttext.hiragana.hiragana-iroha.horizontal.hsl.hsla.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-table.inset.inside.intrinsic.invert.italic.japanese-formal.japanese-informal.justify.kannada.katakana.katakana-iroha.keep-all.khmer.korean-hangul-formal.korean-hanja-formal.korean-hanja-informal.landscape.lao.large.larger.left.level.lighter.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-alpha.lower-armenian.lower-greek.lower-hexadecimal.lower-latin.lower-norwegian.lower-roman.lowercase.ltr.malayalam.match.matrix.matrix3d.media-play-button.media-slider.media-sliderthumb.media-volume-slider.media-volume-sliderthumb.medium.menu.menulist.menulist-button.menutext.message-box.middle.min-intrinsic.mix.mongolian.monospace.move.multiple.myanmar.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.octal.open-quote.optimizeLegibility.optimizeSpeed.oriya.oromo.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.persian.perspective.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeating-conic-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row-resize.rtl.run-in.running.s-resize.sans-serif.scale.scale3d.scaleX.scaleY.scaleZ.scroll.scrollbar.scroll-position.se-resize.searchfield.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.semi-condensed.semi-expanded.separate.serif.show.sidama.simp-chinese-formal.simp-chinese-informal.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.solid.somali.source-atop.source-in.source-out.source-over.space.spell-out.square.square-button.standard.start.static.status-bar.stretch.stroke.sub.subpixel-antialiased.super.sw-resize.symbolic.symbols.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.tamil.telugu.text.text-bottom.text-top.textarea.textfield.thai.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.tibetan.tigre.tigrinya-er.tigrinya-er-abegede.tigrinya-et.tigrinya-et-abegede.to.top.trad-chinese-formal.trad-chinese-informal.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.up.upper-alpha.upper-armenian.upper-greek.upper-hexadecimal.upper-latin.upper-norwegian.upper-roman.uppercase.urdu.url.var.vertical.vertical-text.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.x-large.x-small.xor.xx-large.xx-small.bicubic.optimizespeed.grayscale.row.row-reverse.wrap.wrap-reverse.column-reverse.flex-start.flex-end.space-between.space-around.unset`.split(`.`),l=[`in`,`and`,`or`,`not`,`is not`,`is a`,`is`,`isnt`,`defined`,`if unless`],u=[`for`,`if`,`else`,`unless`,`from`,`to`],d=[`null`,`true`,`false`,`href`,`title`,`type`,`not-allowed`,`readonly`,`disabled`],f=e.concat(t,n,r,i,a,s,c,o,l,u,d,[`@font-face`,`@keyframes`,`@media`,`@viewport`,`@page`,`@host`,`@supports`,`@block`,`@css`]);function p(e){return e=e.sort(function(e,t){return t>e}),RegExp(`^((`+e.join(`)|(`)+`))\\b`)}function m(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function ee(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`)}var te=m(e),h=/^(a|b|i|s|col|em)$/i,g=m(i),_=m(a),v=m(c),y=m(s),b=m(t),x=p(t),S=m(r),C=m(n),w=m(o),ne=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,re=p(l),T=m(u),E=new RegExp(/^\-(moz|ms|o|webkit)-/i),D=m(d),O=``,k={},A,j,M,N;function P(e,t){if(O=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=O?O[0].replace(/^\s*/,``):``,t.context.line.indent=e.indentation(),A=e.peek(),e.match(`//`))return e.skipToEnd(),[`comment`,`comment`];if(e.match(`/*`))return t.tokenize=F,F(e,t);if(A==`"`||A==`'`)return e.next(),t.tokenize=I(A),t.tokenize(e,t);if(A==`@`)return e.next(),e.eatWhile(/[\w\\-]/),[`def`,e.current()];if(A==`#`){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return[`atom`,`atom`];if(e.match(/^[a-z][\w-]*/i))return[`builtin`,`hash`]}return e.match(E)?[`meta`,`vendor-prefixes`]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),[`number`,`unit`]):A==`!`?(e.next(),[e.match(/^(important|optional)/i)?`keyword`:`operator`,`important`]):A==`.`&&e.match(/^\.[a-z][\w-]*/i)?[`qualifier`,`qualifier`]:e.match(x)?(e.peek()==`(`&&(t.tokenize=L),[`property`,`word`]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),[`keyword`,`mixin`]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),[`keyword`,`block-mixin`]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?[`qualifier`,`qualifier`]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),[`variableName.special`,`reference`]):e.match(/^&{1}\s*$/)?[`variableName.special`,`reference`]:e.match(re)?[`operator`,`operator`]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!U(e.current())?(e.match(`.`),[`variable`,`variable-name`]):[`variable`,`word`]:e.match(ne)?[`operator`,e.current()]:/[:;,{}\[\]\(\)]/.test(A)?(e.next(),[null,A]):(e.next(),[null,null])}function F(e,t){for(var n=!1,r;(r=e.next())!=null;){if(n&&r==`/`){t.tokenize=null;break}n=r==`*`}return[`comment`,`comment`]}function I(e){return function(t,n){for(var r=!1,i;(i=t.next())!=null;){if(i==e&&!r){e==`)`&&t.backUp(1);break}r=!r&&i==`\\`}return(i==e||!r&&e!=`)`)&&(n.tokenize=null),[`string`,`string`]}}function L(e,t){return e.next(),t.tokenize=e.match(/\s*[\"\')]/,!1)?null:I(`)`),[null,`(`]}function R(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:``,indent:0}}function z(e,t,n,r){return r=r>=0?r:t.indentUnit,e.context=new R(n,t.indentation()+r,e.context),n}function B(e,t,n){var r=e.context.indent-t.indentUnit;return n||=!1,e.context=e.context.prev,n&&(e.context.indent=r),e.context.type}function V(e,t,n){return k[n.context.type](e,t,n)}function H(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return V(e,t,n)}function U(e){return e.toLowerCase()in te}function W(e){return e=e.toLowerCase(),e in g||e in w}function G(e){return e.toLowerCase()in T}function K(e){return e.toLowerCase().match(E)}function q(e){var t=e.toLowerCase(),n=`variable`;return U(e)?n=`tag`:G(e)?n=`block-keyword`:W(e)?n=`property`:t in v||t in D?n=`atom`:t==`return`||t in y?n=`keyword`:e.match(/^[A-Z]/)&&(n=`string`),n}function J(e,t){return Q(t)&&(e==`{`||e==`]`||e==`hash`||e==`qualifier`)||e==`block-mixin`}function Y(e,t){return e==`{`&&t.match(/^\s*\$?[\w-]+/i,!1)}function X(e,t){return e==`:`&&t.match(/^[a-z-]+/,!1)}function Z(e){return e.sol()||e.string.match(RegExp(`^\\s*`+ee(e.current())))}function Q(e){return e.eol()||e.match(/^\s*$/,!1)}function $(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n=typeof e==`string`?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,``):``}k.block=function(e,t,n){if(e==`comment`&&Z(t)||e==`,`&&Q(t)||e==`mixin`)return z(n,t,`block`,0);if(Y(e,t))return z(n,t,`interpolation`);if(Q(t)&&e==`]`&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!U($(t)))return z(n,t,`block`,0);if(J(e,t))return z(n,t,`block`);if(e==`}`&&Q(t))return z(n,t,`block`,0);if(e==`variable-name`)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||G($(t))?z(n,t,`variableName`):z(n,t,`variableName`,0);if(e==`=`)return!Q(t)&&!G($(t))?z(n,t,`block`,0):z(n,t,`block`);if(e==`*`&&(Q(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return N=`tag`,z(n,t,`block`);if(X(e,t))return z(n,t,`pseudo`);if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return z(n,t,Q(t)?`block`:`atBlock`);if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return z(n,t,`keyframes`);if(/@extends?/.test(e))return z(n,t,`extend`,0);if(e&&e.charAt(0)==`@`)return t.indentation()>0&&W(t.current().slice(1))?(N=`variable`,`block`):/(@import|@require|@charset)/.test(e)?z(n,t,`block`,0):z(n,t,`block`);if(e==`reference`&&Q(t))return z(n,t,`block`);if(e==`(`)return z(n,t,`parens`);if(e==`vendor-prefixes`)return z(n,t,`vendorPrefixes`);if(e==`word`){var r=t.current();if(N=q(r),N==`property`)return Z(t)?z(n,t,`block`,0):(N=`atom`,`block`);if(N==`tag`){if(/embed|menu|pre|progress|sub|table/.test(r)&&W($(t))||t.string.match(RegExp(`\\[\\s*`+r+`|`+r+`\\s*\\]`)))return N=`atom`,`block`;if(h.test(r)&&(Z(t)&&t.string.match(/=/)||!Z(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!U($(t))))return N=`variable`,G($(t))?`block`:z(n,t,`block`,0);if(Q(t))return z(n,t,`block`)}if(N==`block-keyword`)return N=`keyword`,t.current(/(if|unless)/)&&!Z(t)?`block`:z(n,t,`block`);if(r==`return`)return z(n,t,`block`,0);if(N==`variable`&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return z(n,t,`block`)}return n.context.type},k.parens=function(e,t,n){if(e==`(`)return z(n,t,`parens`);if(e==`)`)return n.context.prev.type==`parens`?B(n,t):t.string.match(/^[a-z][\w-]*\(/i)&&Q(t)||G($(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test($(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&U($(t))?z(n,t,`block`):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?z(n,t,`block`,0):Q(t)?z(n,t,`block`):z(n,t,`block`,0);if(e&&e.charAt(0)==`@`&&W(t.current().slice(1))&&(N=`variable`),e==`word`){var r=t.current();N=q(r),N==`tag`&&h.test(r)&&(N=`variable`),(N==`property`||r==`to`)&&(N=`atom`)}return e==`variable-name`?z(n,t,`variableName`):X(e,t)?z(n,t,`pseudo`):n.context.type},k.vendorPrefixes=function(e,t,n){return e==`word`?(N=`property`,z(n,t,`block`,0)):B(n,t)},k.pseudo=function(e,t,n){return W($(t.string))?H(e,t,n):(t.match(/^[a-z-]+/),N=`variableName.special`,Q(t)?z(n,t,`block`):B(n,t))},k.atBlock=function(e,t,n){if(e==`(`)return z(n,t,`atBlock_parens`);if(J(e,t))return z(n,t,`block`);if(Y(e,t))return z(n,t,`interpolation`);if(e==`word`){var r=t.current().toLowerCase();if(N=/^(only|not|and|or)$/.test(r)?`keyword`:b.hasOwnProperty(r)?`tag`:C.hasOwnProperty(r)?`attribute`:S.hasOwnProperty(r)?`property`:_.hasOwnProperty(r)?`string.special`:q(t.current()),N==`tag`&&Q(t))return z(n,t,`block`)}return e==`operator`&&/^(not|and|or)$/.test(t.current())&&(N=`keyword`),n.context.type},k.atBlock_parens=function(e,t,n){if(e==`{`||e==`}`)return n.context.type;if(e==`)`)return Q(t)?z(n,t,`block`):z(n,t,`atBlock`);if(e==`word`){var r=t.current().toLowerCase();return N=q(r),/^(max|min)/.test(r)&&(N=`property`),N==`tag`&&(N=h.test(r)?`variable`:`atom`),n.context.type}return k.atBlock(e,t,n)},k.keyframes=function(e,t,n){return t.indentation()==`0`&&(e==`}`&&Z(t)||e==`]`||e==`hash`||e==`qualifier`||U(t.current()))?H(e,t,n):e==`{`?z(n,t,`keyframes`):e==`}`?Z(t)?B(n,t,!0):z(n,t,`keyframes`):e==`unit`&&/^[0-9]+\%$/.test(t.current())?z(n,t,`keyframes`):e==`word`&&(N=q(t.current()),N==`block-keyword`)?(N=`keyword`,z(n,t,`keyframes`)):/@(font-face|media|supports|(-moz-)?document)/.test(e)?z(n,t,Q(t)?`block`:`atBlock`):e==`mixin`?z(n,t,`block`,0):n.context.type},k.interpolation=function(e,t,n){return e==`{`&&B(n,t)&&z(n,t,`block`),e==`}`?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&U($(t))?z(n,t,`block`):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?z(n,t,`block`,0):z(n,t,`block`):e==`variable-name`?z(n,t,`variableName`,0):(e==`word`&&(N=q(t.current()),N==`tag`&&(N=`atom`)),n.context.type)},k.extend=function(e,t,n){return e==`[`||e==`=`?`extend`:e==`]`?B(n,t):e==`word`?(N=q(t.current()),`extend`):B(n,t)},k.variableName=function(e,t,n){return e==`string`||e==`[`||e==`]`||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(N=`variable`),`variableName`):H(e,t,n)};var ie={name:`stylus`,startState:function(){return{tokenize:null,state:`block`,context:new R(`block`,0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:(j=(t.tokenize||P)(e,t),j&&typeof j==`object`&&(M=j[1],j=j[0]),N=j,t.state=k[t.state](M,e,t),N)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),a=r.indent,o=$(t),s=r.line.indent,c=e.context.prev?e.context.prev.line.firstWord:``,l=e.context.prev?e.context.prev.line.indent:s;return r.prev&&(i==`}`&&(r.type==`block`||r.type==`atBlock`||r.type==`keyframes`)||i==`)`&&(r.type==`parens`||r.type==`atBlock_parens`)||i==`{`&&r.type==`at`)?a=r.indent-n.unit:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(c)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||G(o)?a=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||U(o)?a=/\,\s*$/.test(c)?l:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(c)||U(c)?s<=l?l:l+n.unit:s:!/,\s*$/.test(t)&&(K(o)||W(o))&&(a=G(c)?s<=l?l:l+n.unit:/^\{/.test(c)?s<=l?s:l+n.unit:K(c)||W(c)?s>=l?l:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(c)||/=\s*$/.test(c)||U(c)||/^\$[\w-\.\[\]\'\"]/.test(c)?l+n.unit:s)),a},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},autocomplete:f}};export{ie as stylus};
@@ -0,0 +1 @@
1
+ function e(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var t=e(`_.var.let.actor.class.enum.extension.import.protocol.struct.func.typealias.associatedtype.open.public.internal.fileprivate.private.deinit.init.new.override.self.subscript.super.convenience.dynamic.final.indirect.lazy.required.static.unowned.unowned(safe).unowned(unsafe).weak.as.is.break.case.continue.default.else.fallthrough.for.guard.if.in.repeat.switch.where.while.defer.return.inout.mutating.nonmutating.isolated.nonisolated.catch.do.rethrows.throw.throws.async.await.try.didSet.get.set.willSet.assignment.associativity.infix.left.none.operator.postfix.precedence.precedencegroup.prefix.right.Any.AnyObject.Type.dynamicType.Self.Protocol.__COLUMN__.__FILE__.__FUNCTION__.__LINE__`.split(`.`)),n=e([`var`,`let`,`actor`,`class`,`enum`,`extension`,`import`,`protocol`,`struct`,`func`,`typealias`,`associatedtype`,`for`]),r=e([`true`,`false`,`nil`,`self`,`super`,`_`]),i=e([`Array`,`Bool`,`Character`,`Dictionary`,`Double`,`Float`,`Int`,`Int8`,`Int16`,`Int32`,`Int64`,`Never`,`Optional`,`Set`,`String`,`UInt8`,`UInt16`,`UInt32`,`UInt64`,`Void`]),a=`+-/*%=|&<>~^?!`,o=`:;,.(){}[]`,s=/^\-?0b[01][01_]*/,c=/^\-?0o[0-7][0-7_]*/,l=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,u=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,d=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,f=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,p=/^\#[A-Za-z]+/,m=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function h(e,h,g){if(e.sol()&&(h.indented=e.indentation()),e.eatSpace())return null;var y=e.peek();if(y==`/`){if(e.match(`//`))return e.skipToEnd(),`comment`;if(e.match(`/*`))return h.tokenize.push(v),v(e,h)}if(e.match(p))return`builtin`;if(e.match(m))return`attribute`;if(e.match(s)||e.match(c)||e.match(l)||e.match(u))return`number`;if(e.match(f))return`property`;if(a.indexOf(y)>-1)return e.next(),`operator`;if(o.indexOf(y)>-1)return e.next(),e.match(`..`),`punctuation`;var b;if(b=e.match(/("""|"|')/)){var x=_.bind(null,b[0]);return h.tokenize.push(x),x(e,h)}if(e.match(d)){var S=e.current();return i.hasOwnProperty(S)?`type`:r.hasOwnProperty(S)?`atom`:t.hasOwnProperty(S)?(n.hasOwnProperty(S)&&(h.prev=`define`),`keyword`):g==`define`?`def`:`variable`}return e.next(),null}function g(){var e=0;return function(t,n,r){var i=h(t,n,r);if(i==`punctuation`){if(t.current()==`(`)++e;else if(t.current()==`)`){if(e==0)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}}return i}}function _(e,t,n){for(var r=e.length==1,i,a=!1;i=t.peek();)if(a){if(t.next(),i==`(`)return n.tokenize.push(g()),`string`;a=!1}else if(t.match(e))return n.tokenize.pop(),`string`;else t.next(),a=i==`\\`;return r&&n.tokenize.pop(),`string`}function v(e,t){for(var n;n=e.next();)if(n===`/`&&e.eat(`*`))t.tokenize.push(v);else if(n===`*`&&e.eat(`/`)){t.tokenize.pop();break}return`comment`}function y(e,t,n){this.prev=e,this.align=t,this.indented=n}function b(e,t){var n=t.match(/^\s*($|\/[\/\*]|[)}\]])/,!1)?null:t.column()+1;e.context=new y(e.context,n,e.indented)}function x(e){e.context&&=(e.indented=e.context.indented,e.context.prev)}var S={name:`swift`,startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||h)(e,t,n);if(!r||r==`comment`?t.prev=n:t.prev||=r,r==`punctuation`){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?x:b)(t,e)}return r},indent:function(e,t,n){var r=e.context;if(!r)return 0;var i=/^[\]\}\)]/.test(t);return r.align==null?r.indented+(i?0:n.unit):r.align-+!!i},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]}}};export{S as swift};