@jackuait/blok 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/README.md +36 -0
  2. package/dist/blok.cjs +1 -0
  3. package/dist/blok.iife.js +526 -0
  4. package/dist/blok.mjs +2 -2
  5. package/dist/chunks/_basePickBy-mUHvTE6c.cjs +1 -0
  6. package/dist/chunks/_baseUniq-BP5sM8qF.cjs +1 -0
  7. package/dist/chunks/am-CyXvGFRE.cjs +1 -0
  8. package/dist/chunks/ar-BbusVfTp.cjs +1 -0
  9. package/dist/chunks/arc-lSzOinJz.cjs +1 -0
  10. package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +1 -0
  11. package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +36 -0
  12. package/dist/chunks/array-BMXfsgb2.cjs +1 -0
  13. package/dist/chunks/az-D7MMnw6r.cjs +1 -0
  14. package/dist/chunks/bg-C3H2Qh_2.cjs +1 -0
  15. package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +132 -0
  16. package/dist/chunks/blok-CNEP3LpI.cjs +16 -0
  17. package/dist/chunks/{blok-CUidffof.mjs → blok-DNvzyOYn.mjs} +1 -1
  18. package/dist/chunks/bn-BGOycYTM.cjs +1 -0
  19. package/dist/chunks/bs-C7amuK1D.cjs +1 -0
  20. package/dist/chunks/c-DNJHkQXQ.cjs +1 -0
  21. package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +10 -0
  22. package/dist/chunks/ccount-DtzbJUOh.cjs +1 -0
  23. package/dist/chunks/channel-BqhnS5zl.cjs +1 -0
  24. package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +1 -0
  25. package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +1 -0
  26. package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +1 -0
  27. package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +1 -0
  28. package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +206 -0
  29. package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +1 -0
  30. package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +62 -0
  31. package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +2 -0
  32. package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +1 -0
  33. package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +1 -0
  34. package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +1 -0
  35. package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +1 -0
  36. package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +1 -0
  37. package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +1 -0
  38. package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +10 -0
  39. package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +15 -0
  40. package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +1 -0
  41. package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +122 -0
  42. package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +94 -0
  43. package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +1 -0
  44. package/dist/chunks/chunk-Kud-AIAt.cjs +1 -0
  45. package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +1 -0
  46. package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +1 -0
  47. package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +231 -0
  48. package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +1 -0
  49. package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +70 -0
  50. package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +1 -0
  51. package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +32 -0
  52. package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +1 -0
  53. package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +1 -0
  54. package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +1 -0
  55. package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +1 -0
  56. package/dist/chunks/clone-_XTzxdN3.cjs +1 -0
  57. package/dist/chunks/constants-DJjFgioo.cjs +451 -0
  58. package/dist/chunks/{constants-C4TrPxXY.mjs → constants-DMsOCPcF.mjs} +1 -1
  59. package/dist/chunks/core-C8BHLAAO.cjs +12 -0
  60. package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +1 -0
  61. package/dist/chunks/cpp-DVBevX-J.cjs +1 -0
  62. package/dist/chunks/cs-BUD3Muxp.cjs +1 -0
  63. package/dist/chunks/csharp-CHUT4JOq.cjs +1 -0
  64. package/dist/chunks/css-QEheyxtB.cjs +1 -0
  65. package/dist/chunks/cytoscape.esm-CjWrb5SM.cjs +321 -0
  66. package/dist/chunks/da-CO2FYbLa.cjs +1 -0
  67. package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +4 -0
  68. package/dist/chunks/dagre-VHP8Ngkv.cjs +1 -0
  69. package/dist/chunks/dart-jPH5d8ma.cjs +1 -0
  70. package/dist/chunks/de-B8nkOjfD.cjs +1 -0
  71. package/dist/chunks/default-DP8dtTxC.cjs +1 -0
  72. package/dist/chunks/defaultLocale-BxWls4I1.cjs +1 -0
  73. package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +10 -0
  74. package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +24 -0
  75. package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +43 -0
  76. package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +24 -0
  77. package/dist/chunks/dist-CxdzFxpy.cjs +1 -0
  78. package/dist/chunks/dockerfile-B2jMQOes.cjs +1 -0
  79. package/dist/chunks/el-D2ILhp1-.cjs +1 -0
  80. package/dist/chunks/engine-javascript-HHRWd9yA.cjs +141 -0
  81. package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +85 -0
  82. package/dist/chunks/es-DXxnOS9P.cjs +1 -0
  83. package/dist/chunks/et-mT4xnDc7.cjs +1 -0
  84. package/dist/chunks/fa-D9CUFSHX.cjs +1 -0
  85. package/dist/chunks/fi-DpCqdl_1.cjs +1 -0
  86. package/dist/chunks/fil-BjeZREJI.cjs +1 -0
  87. package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +162 -0
  88. package/dist/chunks/fr-DYmwW1y1.cjs +1 -0
  89. package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +292 -0
  90. package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +1 -0
  91. package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +106 -0
  92. package/dist/chunks/go-BX-cNLGO.cjs +1 -0
  93. package/dist/chunks/graphlib-CYv_-0LK.cjs +1 -0
  94. package/dist/chunks/graphql-BnxAS09v.cjs +1 -0
  95. package/dist/chunks/gu-4g6NA9h8.cjs +1 -0
  96. package/dist/chunks/he-2H5DcbO0.cjs +1 -0
  97. package/dist/chunks/hi-Dvb4O5oj.cjs +1 -0
  98. package/dist/chunks/hr-B4Y5vULZ.cjs +1 -0
  99. package/dist/chunks/html-CAN0GHkJ.cjs +1 -0
  100. package/dist/chunks/hu-D3Pi7CJx.cjs +1 -0
  101. package/dist/chunks/hy-DZ74SDlC.cjs +1 -0
  102. package/dist/chunks/i18next-CkovSPO7.cjs +1 -0
  103. package/dist/chunks/i18next-loader-cGwOOjK3.cjs +1 -0
  104. package/dist/chunks/id-WfjZeYKN.cjs +1 -0
  105. package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +1 -0
  106. package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +2 -0
  107. package/dist/chunks/init-BvlcnoG2.cjs +1 -0
  108. package/dist/chunks/isArrayLikeObject-CnaR8YJm.cjs +1 -0
  109. package/dist/chunks/isEmpty-BHdznGlG.cjs +1 -0
  110. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +70 -0
  111. package/dist/chunks/it-hqsqt6f7.cjs +1 -0
  112. package/dist/chunks/ja-BwLgKsdH.cjs +1 -0
  113. package/dist/chunks/java-O-rzZ2Bn.cjs +1 -0
  114. package/dist/chunks/javascript-z9G2vOAZ.cjs +1 -0
  115. package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +139 -0
  116. package/dist/chunks/json-C_epQRuA.cjs +1 -0
  117. package/dist/chunks/ka-xoKako16.cjs +1 -0
  118. package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +89 -0
  119. package/dist/chunks/katex-_C7fvrbX.cjs +265 -0
  120. package/dist/chunks/km-D7Fl8wAA.cjs +1 -0
  121. package/dist/chunks/kn-Ckju1oeq.cjs +1 -0
  122. package/dist/chunks/ko-Dt1tQEjC.cjs +1 -0
  123. package/dist/chunks/kotlin-Dj7KFgV1.cjs +1 -0
  124. package/dist/chunks/ku-_i2C5XD5.cjs +1 -0
  125. package/dist/chunks/latex-u7qVP95p.cjs +1 -0
  126. package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +1 -0
  127. package/dist/chunks/line-B7XG48Uf.cjs +1 -0
  128. package/dist/chunks/linear-D5j5Vgij.cjs +1 -0
  129. package/dist/chunks/lo-DfEpgG9m.cjs +1 -0
  130. package/dist/chunks/lt-BwLILIED.cjs +1 -0
  131. package/dist/chunks/lua-6ceNckPi.cjs +1 -0
  132. package/dist/chunks/lv-DdrYab3x.cjs +1 -0
  133. package/dist/chunks/markdown-Vce1p-mO.cjs +1 -0
  134. package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +5 -0
  135. package/dist/chunks/mermaid-Cu5vPKfS.cjs +1 -0
  136. package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +3 -0
  137. package/dist/chunks/mermaid.core-GiTRPJLF.cjs +10 -0
  138. package/dist/chunks/messages--CbdZY2w.cjs +1 -0
  139. package/dist/chunks/messages-1hpCmcb5.cjs +1 -0
  140. package/dist/chunks/messages-4_3WFJMy2.cjs +1 -0
  141. package/dist/chunks/messages-ADxG1iWK2.cjs +1 -0
  142. package/dist/chunks/messages-B3MONaxw2.cjs +1 -0
  143. package/dist/chunks/messages-B3tNgyxG2.cjs +1 -0
  144. package/dist/chunks/messages-B91FdwB0.cjs +1 -0
  145. package/dist/chunks/messages-B9igXgiw.cjs +1 -0
  146. package/dist/chunks/messages-BB1xM_oB.cjs +1 -0
  147. package/dist/chunks/messages-BGZLiYrQ.cjs +1 -0
  148. package/dist/chunks/messages-BK6gK3wu.cjs +1 -0
  149. package/dist/chunks/messages-BKmAFG9Z.cjs +1 -0
  150. package/dist/chunks/messages-BMVJq-1T.cjs +1 -0
  151. package/dist/chunks/messages-BMsqJNz0.cjs +1 -0
  152. package/dist/chunks/messages-BSVhckNg.cjs +1 -0
  153. package/dist/chunks/messages-BUaHDggs.cjs +1 -0
  154. package/dist/chunks/messages-BUaJv5qS.cjs +1 -0
  155. package/dist/chunks/messages-BXcSH14N.cjs +1 -0
  156. package/dist/chunks/messages-BYOYrUOu.cjs +1 -0
  157. package/dist/chunks/messages-BYSE1Iq2.cjs +1 -0
  158. package/dist/chunks/messages-Bb225KE6.cjs +1 -0
  159. package/dist/chunks/messages-BiDR95AW.cjs +1 -0
  160. package/dist/chunks/messages-BkAoxm6t.cjs +1 -0
  161. package/dist/chunks/messages-BpUasRQ3.cjs +1 -0
  162. package/dist/chunks/messages-BxV8K7y42.cjs +1 -0
  163. package/dist/chunks/messages-Bxhns4Ui.cjs +1 -0
  164. package/dist/chunks/messages-C0sxGmLV2.cjs +1 -0
  165. package/dist/chunks/messages-C5nqE8O42.cjs +1 -0
  166. package/dist/chunks/messages-C7il6l-S.cjs +1 -0
  167. package/dist/chunks/messages-CFyGEGXM2.cjs +1 -0
  168. package/dist/chunks/messages-CN2yjHzW.cjs +1 -0
  169. package/dist/chunks/messages-CTy_3-mw2.cjs +1 -0
  170. package/dist/chunks/messages-C_ogasse2.cjs +1 -0
  171. package/dist/chunks/messages-CbFuceEb.cjs +1 -0
  172. package/dist/chunks/messages-CbbYb7cc.cjs +1 -0
  173. package/dist/chunks/messages-CfO5kKI72.cjs +1 -0
  174. package/dist/chunks/messages-Cgv5DuNV.cjs +1 -0
  175. package/dist/chunks/messages-CkBrRFY02.cjs +1 -0
  176. package/dist/chunks/messages-CpppvIiu.cjs +1 -0
  177. package/dist/chunks/messages-D8-vyZ2V.cjs +1 -0
  178. package/dist/chunks/messages-DIpVfyX-2.cjs +1 -0
  179. package/dist/chunks/messages-DJBeEI7G.cjs +1 -0
  180. package/dist/chunks/messages-DR8nFHdw2.cjs +1 -0
  181. package/dist/chunks/messages-DT5Ux3el.cjs +1 -0
  182. package/dist/chunks/messages-Da2SYMf52.cjs +1 -0
  183. package/dist/chunks/messages-DaaqkvOz2.cjs +1 -0
  184. package/dist/chunks/messages-DdiqfVCc.cjs +1 -0
  185. package/dist/chunks/messages-DfZe7SKZ.cjs +1 -0
  186. package/dist/chunks/messages-DkJ0bcqu.cjs +1 -0
  187. package/dist/chunks/messages-DkmG49t8.cjs +1 -0
  188. package/dist/chunks/messages-Do4o9ckW.cjs +1 -0
  189. package/dist/chunks/messages-DrbTe09r.cjs +1 -0
  190. package/dist/chunks/messages-DtgIZDlN.cjs +1 -0
  191. package/dist/chunks/messages-DxCaGN-Q2.cjs +1 -0
  192. package/dist/chunks/messages-DxpBJ5ZY.cjs +1 -0
  193. package/dist/chunks/messages-DyWu9_0D.cjs +1 -0
  194. package/dist/chunks/messages-Hg0BECWK.cjs +1 -0
  195. package/dist/chunks/messages-JlduXweH2.cjs +1 -0
  196. package/dist/chunks/messages-Km2PU_o7.cjs +1 -0
  197. package/dist/chunks/messages-MgJnGL9X2.cjs +1 -0
  198. package/dist/chunks/messages-PIoKW4js2.cjs +1 -0
  199. package/dist/chunks/messages-VEm9mp5H.cjs +1 -0
  200. package/dist/chunks/messages-WgwkG5PL2.cjs +1 -0
  201. package/dist/chunks/messages-X46KAUoI.cjs +1 -0
  202. package/dist/chunks/messages-ZZd1ckSO2.cjs +1 -0
  203. package/dist/chunks/messages-vRqPeNM_.cjs +1 -0
  204. package/dist/chunks/messages-vhq442qv.cjs +1 -0
  205. package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +1 -0
  206. package/dist/chunks/micromark-factory-space-BnsBDplI.cjs +1 -0
  207. package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +96 -0
  208. package/dist/chunks/mk-CsPHE4cO.cjs +1 -0
  209. package/dist/chunks/ml-CAsiw8BP.cjs +1 -0
  210. package/dist/chunks/mn-Db6DwHPv.cjs +1 -0
  211. package/dist/chunks/mr-BBAuoEIQ.cjs +1 -0
  212. package/dist/chunks/ms-Cfv7BOEG.cjs +1 -0
  213. package/dist/chunks/my-DOLHceI8.cjs +1 -0
  214. package/dist/chunks/native-DbFHGXp1.cjs +1 -0
  215. package/dist/chunks/ne-B2gHspK_.cjs +1 -0
  216. package/dist/chunks/nl-C5ezxTkA.cjs +1 -0
  217. package/dist/chunks/no-D4hjenPs.cjs +1 -0
  218. package/dist/chunks/notifier-CwnFVNdD.cjs +1 -0
  219. package/dist/chunks/objectSpread2-iNkE6aJh.cjs +1 -0
  220. package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +1 -0
  221. package/dist/chunks/one-light-D2mpnHEP.cjs +1 -0
  222. package/dist/chunks/ordinal-DFFZs5-y.cjs +1 -0
  223. package/dist/chunks/pa-CemLebw7.cjs +1 -0
  224. package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +1 -0
  225. package/dist/chunks/path-CLcQoP7n.cjs +1 -0
  226. package/dist/chunks/php-BMavm1CR.cjs +1 -0
  227. package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +1 -0
  228. package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +30 -0
  229. package/dist/chunks/pl-D_sFAkCs.cjs +1 -0
  230. package/dist/chunks/ps-ygHHO68A.cjs +1 -0
  231. package/dist/chunks/pt-x_mmaTtD.cjs +1 -0
  232. package/dist/chunks/python-Dcoit5Q5.cjs +1 -0
  233. package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +7 -0
  234. package/dist/chunks/r-BdDCwgEs.cjs +1 -0
  235. package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +1 -0
  236. package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +84 -0
  237. package/dist/chunks/ro-CLGSgHzJ.cjs +1 -0
  238. package/dist/chunks/rough.esm-BaIXPgTh.cjs +1 -0
  239. package/dist/chunks/ru-LpaLXWmO.cjs +1 -0
  240. package/dist/chunks/ruby-DHm8_lqY.cjs +1 -0
  241. package/dist/chunks/rust-Cdm0j4IC.cjs +1 -0
  242. package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +10 -0
  243. package/dist/chunks/scala-Tb1u_9W3.cjs +1 -0
  244. package/dist/chunks/sd-B5PS8K1I.cjs +1 -0
  245. package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +157 -0
  246. package/dist/chunks/shellscript-D6KsENaG.cjs +1 -0
  247. package/dist/chunks/si-BjMoO5xu.cjs +1 -0
  248. package/dist/chunks/sk-pQPYnDDU.cjs +1 -0
  249. package/dist/chunks/sl-B_yalM3h.cjs +1 -0
  250. package/dist/chunks/sq-gzZkHXFJ.cjs +1 -0
  251. package/dist/chunks/sql-BlpbD7FB.cjs +1 -0
  252. package/dist/chunks/sr-O4v1KJY1.cjs +1 -0
  253. package/dist/chunks/src-d9yswOqA.cjs +1 -0
  254. package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +1 -0
  255. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +1 -0
  256. package/dist/chunks/sv-D0tEFwN7.cjs +1 -0
  257. package/dist/chunks/sw-DE8oPVEt.cjs +1 -0
  258. package/dist/chunks/swift-DubrdZus.cjs +1 -0
  259. package/dist/chunks/ta-BCVLtFMU.cjs +1 -0
  260. package/dist/chunks/te-BISdOeGS.cjs +1 -0
  261. package/dist/chunks/th-CJXhSA-L.cjs +1 -0
  262. package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +120 -0
  263. package/dist/chunks/{tools-CmNY86rS.mjs → tools-DPov06L-.mjs} +1 -1
  264. package/dist/chunks/tools-NAqHj-Cy.cjs +9 -0
  265. package/dist/chunks/tr-BjTvmhJt.cjs +1 -0
  266. package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +1 -0
  267. package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +1 -0
  268. package/dist/chunks/tw-CjHZc17C.cjs +1 -0
  269. package/dist/chunks/types-BQX8SD8Q.cjs +1 -0
  270. package/dist/chunks/typescript-BKtlqLze.cjs +1 -0
  271. package/dist/chunks/ug-DsQjxbOa.cjs +1 -0
  272. package/dist/chunks/uk-BPzbNIjw.cjs +1 -0
  273. package/dist/chunks/ur-Do8k1hR-.cjs +1 -0
  274. package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +34 -0
  275. package/dist/chunks/vi-CCTEx9XR.cjs +1 -0
  276. package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +1 -0
  277. package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +1 -0
  278. package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +20 -0
  279. package/dist/chunks/xml-CwiH0x4E.cjs +1 -0
  280. package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +7 -0
  281. package/dist/chunks/yaml-CkVxfQ4c.cjs +1 -0
  282. package/dist/chunks/zh-Ive4on8E.cjs +1 -0
  283. package/dist/full.cjs +1 -0
  284. package/dist/full.mjs +3 -3
  285. package/dist/markdown.cjs +3 -0
  286. package/dist/react.cjs +1 -0
  287. package/dist/react.mjs +2 -2
  288. package/dist/tools.cjs +1 -0
  289. package/dist/tools.mjs +2 -2
  290. package/package.json +17 -8
@@ -0,0 +1,157 @@
1
+ require(`./chunk-Kud-AIAt.cjs`);const e=require(`./objectSpread2-iNkE6aJh.cjs`),t=require(`./chunk-5PVQY5BW-DmATt7Fz.cjs`),n=require(`./src-d9yswOqA.cjs`),r=require(`./chunk-ICPOFSXX-DQ4NxQTM.cjs`),i=require(`./dist-CxdzFxpy.cjs`),a=require(`./chunk-YZCP3GAM-DuLQPyT4.cjs`),o=require(`./chunk-QZHKN3VN-d_ESXyai.cjs`),s=require(`./chunk-XPW4576I-BidQL50C.cjs`);var c=i.t(),l,u=(function(){var e=n.h(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,74],R=[1,80],z=[1,81],ee=[1,82],te=[1,83],ne=[1,84],re=[1,85],ie=[1,86],ae=[1,87],oe=[1,88],se=[1,89],ce=[1,90],le=[1,91],ue=[1,92],de=[1,93],fe=[1,94],pe=[1,95],me=[1,96],he=[1,97],B=[1,98],ge=[1,99],V=[1,100],H=[1,101],U=[1,102],_e=[1,103],ve=[1,104],W=[1,105],G=[2,78],K=[4,5,17,51,53,54],q=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],ye=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],J=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Y=[5,52],X=[70,71,72,73],Z=[1,151],Q={trace:n.h(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:n.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1));break}},`anonymous`),table:[{3:1,4:t,5:r,6:i},{1:[3]},{3:5,4:t,5:r,6:i},{3:6,4:t,5:r,6:i},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(I,[2,30]),e(I,[2,31]),{33:[1,62]},{35:[1,63]},e(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:L},{23:75,55:76,73:L},{23:77,73:F},{69:78,72:[1,79],78:R,79:z,80:ee,81:te,82:ne,83:re,84:ie,85:ae,86:oe,87:se,88:ce,89:le,90:ue,91:de,92:fe,93:pe,94:me,95:he,96:B,97:ge,98:V,99:H,100:U,101:_e,102:ve,103:W},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],G),e(I,[2,6]),e(I,[2,16]),e(K,[2,10],{11:114}),e(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(I,[2,22]),{5:[1,118]},{5:[1,119]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(q,a,{7:120}),e(q,a,{7:121}),e(q,a,{7:122}),e(ye,a,{41:123,7:124}),e(be,a,{43:125,7:126}),e(be,a,{7:126,43:127}),e(J,a,{46:128,7:129}),e(q,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Y,G,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:R,79:z,80:ee,81:te,82:ne,83:re,84:ie,85:ae,86:oe,87:se,88:ce,89:le,90:ue,91:de,92:fe,93:pe,94:me,95:he,96:B,97:ge,98:V,99:H,100:U,101:_e,102:ve,103:W},e(X,[2,79]),e(X,[2,80]),e(X,[2,81]),e(X,[2,82]),e(X,[2,83]),e(X,[2,84]),e(X,[2,85]),e(X,[2,86]),e(X,[2,87]),e(X,[2,88]),e(X,[2,89]),e(X,[2,90]),e(X,[2,91]),e(X,[2,92]),e(X,[2,93]),e(X,[2,94]),e(X,[2,95]),e(X,[2,96]),e(X,[2,97]),e(X,[2,98]),e(X,[2,99]),e(X,[2,100]),e(X,[2,101]),e(X,[2,102]),e(X,[2,103]),e(X,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:Z},{58:152,104:Z},{58:153,104:Z},{58:154,104:Z},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},e(I,[2,50]),{16:[1,173]},e(I,[2,55]),e(Y,[2,76]),{76:[1,174]},{16:[1,175]},e(I,[2,52]),{16:[1,176]},e(I,[2,57]),e(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:Z},{23:181,72:[1,182],73:F},{58:183,104:Z},{58:184,104:Z},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(K,[2,11]),{13:186,51:D,53:O,54:k},e(K,[2,13]),e(K,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,187]},e(I,[2,39]),{16:[1,188]},e(I,[2,40]),e(I,[2,41]),{16:[1,189]},e(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:Z},{58:196,104:Z},{58:197,104:Z},{5:[2,75]},{58:198,104:Z},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},e(K,[2,12]),e(ye,a,{7:124,41:201}),e(be,a,{7:126,43:202}),e(J,a,{7:129,46:203}),e(I,[2,49]),e(I,[2,54]),e(Y,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:Z},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:n.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:n.h(function(e){var t=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(e,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;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}n.h(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n.h(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==null&&(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`)};Q.lexer=(function(){return{EOF:1,parseError:n.h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:n.h(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:n.h(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:n.h(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:n.h(function(){return this._more=!0,this},`more`),reject:n.h(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:n.h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:n.h(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:n.h(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:n.h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:n.h(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:n.h(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}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!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:n.h(function(){return this.next()||this.lex()},`lex`),begin:n.h(function(e){this.conditionStack.push(e)},`begin`),popState:n.h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:n.h(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:n.h(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:n.h(function(e){this.begin(e)},`pushState`),stateStackSize:n.h(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:n.h(function(e,t,n,r){switch(n){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin(`CONFIG`),75;case 8:return 76;case 9:return this.popState(),this.begin(`ALIAS`),77;case 10:return this.popState(),this.popState(),77;case 11:return t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return t.yytext=t.yytext.trim(),this.popState(),10;case 16:return this.begin(`LINE`),15;case 17:return this.begin(`ID`),51;case 18:return this.begin(`ID`),53;case 19:return 14;case 20:return this.begin(`ID`),54;case 21:return this.popState(),this.popState(),this.begin(`LINE`),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin(`LINE`),37;case 24:return this.begin(`LINE`),38;case 25:return this.begin(`LINE`),39;case 26:return this.begin(`LINE`),40;case 27:return this.begin(`LINE`),50;case 28:return this.begin(`LINE`),42;case 29:return this.begin(`LINE`),44;case 30:return this.begin(`LINE`),49;case 31:return this.begin(`LINE`),45;case 32:return this.begin(`LINE`),48;case 33:return this.begin(`LINE`),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin(`ID`),22;case 45:return this.begin(`ID`),24;case 46:return 30;case 47:return 31;case 48:return this.begin(`acc_title`),32;case 49:return this.popState(),`acc_title_value`;case 50:return this.begin(`acc_descr`),34;case 51:return this.popState(),`acc_descr_value`;case 52:this.begin(`acc_descr_multiline`);break;case 53:this.popState();break;case 54:return`acc_descr_multiline_value`;case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return t.yytext=t.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},`anonymous`),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}}})();function $(){this.yy={}}return n.h($,`Parser`),$.prototype=Q,Q.Parser=$,new $})();u.parser=u;var d=u,f={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},p={FILLED:0,OPEN:1},m={LEFTOF:0,RIGHTOF:1,OVER:2},h={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},g=(l=class{constructor(){this.state=new o.t(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=r.V,this.setAccDescription=r.B,this.setDiagramTitle=r.W,this.getAccTitle=r.v,this.getAccDescription=r._,this.getDiagramTitle=r.C,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(r.b().wrap),this.LINETYPE=f,this.ARROWTYPE=p,this.PLACEMENT=m}addBox(e){var t;this.state.records.boxes.push({name:e.text,wrap:(t=e.wrap)==null?this.autoWrap():t,fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,t,n,r,i){var a,o,c;let l=this.state.records.currentBox,u;if(i!==void 0){let e;e=i.includes(`
7
+ `)?i+`
8
+ `:`{
9
+ `+i+`
10
+ }`,u=s.n(e,{schema:s.t})}r=(a=u==null?void 0:u.type)==null?r:a,u!=null&&u.alias&&(!n||n.text===t)&&(n={text:u.alias,wrap:n==null?void 0:n.wrap,type:r});let d=this.state.records.actors.get(e);if(d){if(this.state.records.currentBox&&d.box&&this.state.records.currentBox!==d.box)throw Error(`A same participant should only be defined in one Box: ${d.name} can't be in '${d.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(l=d.box?d.box:this.state.records.currentBox,d.box=l,d&&t===d.name&&n==null)return}if((n==null?void 0:n.text)==null&&(n={text:t,type:r}),(r==null||n.text==null)&&(n={text:t,type:r}),this.state.records.actors.set(e,{box:l,name:t,description:n.text,wrap:(o=n.wrap)==null?this.autoWrap():o,prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:(c=r)==null?`participant`:c}),this.state.records.prevActor){let t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t<this.state.records.messages.length;t++)this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===e&&n++,this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===e&&n--;return n}addMessage(e,t,n,r){var i;this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n.text,wrap:(i=n.wrap)==null?this.autoWrap():i,answer:r})}addSignal(e,t,n,r,i=!1,a){var o,s;if(r===this.LINETYPE.ACTIVE_END&&this.activationCount(e==null?``:e)<1){let t=Error(`Trying to inactivate an inactive participant (`+e+`)`);throw t.hash={text:`->>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:(o=n==null?void 0:n.text)==null?``:o,wrap:(s=n==null?void 0:n.wrap)==null?this.autoWrap():s,type:r,activate:i,centralConnection:a==null?0:a}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)===null?/^:?nowrap:/.exec(e)===null?void 0:!1:!0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){var e,t;return this.state.records.wrapEnabled===void 0?(e=(t=r.b().sequence)==null?void 0:t.wrap)==null?!1:e:this.state.records.wrapEnabled}clear(){this.state.reset(),r.a()}parseMessage(e){let t=e.trim(),{wrap:r,cleanedText:i}=this.extractWrap(t),a={text:i,wrap:r};return n.g.debug(`parseMessage: ${JSON.stringify(a)}`),a}parseBoxData(e){var t;let n=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),i=n!=null&&n[1]?n[1].trim():`transparent`,a=n!=null&&n[2]?n[2].trim():void 0;if((t=window)!=null&&t.CSS)window.CSS.supports(`color`,i)||(i=`transparent`,a=e.trim());else{let t=new Option().style;t.color=i,t.color!==i&&(i=`transparent`,a=e.trim())}let{wrap:o,cleanedText:s}=this.extractWrap(a);return{text:s?r.L(s,r.b()):void 0,color:i,wrap:o}}addNote(e,t,n){var r,i;let a={actor:e,placement:t,message:n.text,wrap:(r=n.wrap)==null?this.autoWrap():r},o=[].concat(e,e);this.state.records.notes.push(a),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:o[0],to:o[1],message:n.text,wrap:(i=n.wrap)==null?this.autoWrap():i,type:this.LINETYPE.NOTE,placement:t})}addLinks(e,t){let i=this.getActor(e);try{let e=r.L(t.text,r.b());e=e.replace(/&equals;/g,`=`),e=e.replace(/&amp;/g,`&`);let n=JSON.parse(e);this.insertLinks(i,n)}catch(e){n.g.error(`error while parsing actor link text`,e)}}addALink(e,t){let i=this.getActor(e);try{let e={},n=r.L(t.text,r.b()),a=n.indexOf(`@`);n=n.replace(/&equals;/g,`=`),n=n.replace(/&amp;/g,`&`);let o=n.slice(0,a-1).trim();e[o]=n.slice(a+1).trim(),this.insertLinks(i,e)}catch(e){n.g.error(`error while parsing actor link text`,e)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(e,t){let i=this.getActor(e);try{let e=r.L(t.text,r.b()),n=JSON.parse(e);this.insertProperties(i,n)}catch(e){n.g.error(`error while parsing actor properties text`,e)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){let r=this.getActor(e),i=document.getElementById(t.text);try{let e=i.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(r,t.properties),t.links&&this.insertLinks(r,t.links)}catch(e){n.g.error(`error while parsing actor details text`,e)}}getActorProperty(e,t){if((e==null?void 0:e.properties)!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case`sequenceIndex`:this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case`addParticipant`:this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case`createParticipant`:if(this.state.records.actors.has(e.actor))throw Error(`It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior`);this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case`destroyParticipant`:this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case`activeStart`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnection`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnectionReverse`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`activeEnd`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`addNote`:this.addNote(e.actor,e.placement,e.text);break;case`addLinks`:this.addLinks(e.actor,e.text);break;case`addALink`:this.addALink(e.actor,e.text);break;case`addProperties`:this.addProperties(e.actor,e.text);break;case`addDetails`:this.addDetails(e.actor,e.text);break;case`addMessage`:if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw Error(`The created participant `+this.state.records.lastCreated.name+` does not have an associated creating message after its declaration. Please check the sequence diagram.`);this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error(`The destroyed participant `+this.state.records.lastDestroyed.name+` does not have an associated destroying message after its declaration. Please check the sequence diagram.`);this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case`boxStart`:this.addBox(e.boxData);break;case`boxEnd`:this.boxEnd();break;case`loopStart`:this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case`loopEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`rectStart`:this.addSignal(void 0,void 0,e.color,e.signalType);break;case`rectEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`optStart`:this.addSignal(void 0,void 0,e.optText,e.signalType);break;case`optEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`altStart`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`else`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`altEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`setAccTitle`:r.V(e.text);break;case`parStart`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`and`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`parEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`criticalStart`:this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case`option`:this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case`criticalEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`breakStart`:this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case`breakEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return r.b().sequence}},n.h(l,`SequenceDB`),l),_=n.h(e=>{var t,n;let i=(t=e.dropShadow)==null?`none`:t,{look:a}=r.b();return`.actor {
11
+ stroke: ${e.actorBorder};
12
+ fill: ${e.actorBkg};
13
+ stroke-width: ${(n=e.strokeWidth)==null?1:n};
14
+ }
15
+
16
+ rect.actor.outer-path[data-look="neo"] {
17
+ filter: ${i};
18
+ }
19
+
20
+ rect.note[data-look="neo"] {
21
+ stroke:${e.noteBorderColor};
22
+ fill:${e.noteBkgColor};
23
+ filter: ${i};
24
+ }
25
+
26
+ text.actor > tspan {
27
+ fill: ${e.actorTextColor};
28
+ stroke: none;
29
+ }
30
+
31
+ .actor-line {
32
+ stroke: ${e.actorLineColor};
33
+ }
34
+
35
+ .innerArc {
36
+ stroke-width: 1.5;
37
+ stroke-dasharray: none;
38
+ }
39
+
40
+ .messageLine0 {
41
+ stroke-width: 1.5;
42
+ stroke-dasharray: none;
43
+ stroke: ${e.signalColor};
44
+ }
45
+
46
+ .messageLine1 {
47
+ stroke-width: 1.5;
48
+ stroke-dasharray: 2, 2;
49
+ stroke: ${e.signalColor};
50
+ }
51
+
52
+ [id$="-arrowhead"] path {
53
+ fill: ${e.signalColor};
54
+ stroke: ${e.signalColor};
55
+ }
56
+
57
+ .sequenceNumber {
58
+ fill: ${e.sequenceNumberColor};
59
+ }
60
+
61
+ [id$="-sequencenumber"] {
62
+ fill: ${e.signalColor};
63
+ }
64
+
65
+ [id$="-crosshead"] path {
66
+ fill: ${e.signalColor};
67
+ stroke: ${e.signalColor};
68
+ }
69
+
70
+ .messageText {
71
+ fill: ${e.signalTextColor};
72
+ stroke: none;
73
+ }
74
+
75
+ .labelBox {
76
+ stroke: ${e.labelBoxBorderColor};
77
+ fill: ${e.labelBoxBkgColor};
78
+ filter: ${a===`neo`?i:`none`};
79
+ }
80
+
81
+ .labelText, .labelText > tspan {
82
+ fill: ${e.labelTextColor};
83
+ stroke: none;
84
+ }
85
+
86
+ .loopText, .loopText > tspan {
87
+ fill: ${e.loopTextColor};
88
+ stroke: none;
89
+ }
90
+
91
+ .loopLine {
92
+ stroke-width: 2px;
93
+ stroke-dasharray: 2, 2;
94
+ stroke: ${e.labelBoxBorderColor};
95
+ fill: ${e.labelBoxBorderColor};
96
+ }
97
+
98
+ .note {
99
+ //stroke: #decc93;
100
+ stroke: ${e.noteBorderColor};
101
+ fill: ${e.noteBkgColor};
102
+ }
103
+
104
+ .noteText, .noteText > tspan {
105
+ fill: ${e.noteTextColor};
106
+ stroke: none;
107
+ ${e.noteFontWeight?`font-weight: ${e.noteFontWeight};`:``}
108
+ }
109
+
110
+ .activation0 {
111
+ fill: ${e.activationBkgColor};
112
+ stroke: ${e.activationBorderColor};
113
+ }
114
+
115
+ .activation1 {
116
+ fill: ${e.activationBkgColor};
117
+ stroke: ${e.activationBorderColor};
118
+ }
119
+
120
+ .activation2 {
121
+ fill: ${e.activationBkgColor};
122
+ stroke: ${e.activationBorderColor};
123
+ }
124
+
125
+ .actorPopupMenu {
126
+ position: absolute;
127
+ }
128
+
129
+ .actorPopupMenuPanel {
130
+ position: absolute;
131
+ fill: ${e.actorBkg};
132
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
133
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
134
+ }
135
+ .actor-man circle, line {
136
+ fill: ${e.actorBkg};
137
+ stroke-width: 2px;
138
+ }
139
+
140
+ g rect.rect {
141
+ filter: ${i};
142
+ stroke: ${e.nodeBorder};
143
+ }
144
+ `},`getStyles`),v=36,y=`actor-top`,b=`actor-bottom`,x=`actor-box`,S=`actor-man`,C=new Set([`redux-color`,`redux-dark-color`]),w=n.h(function(e,t){let n=a.a(e,t);return r.y().look===`neo`&&n.attr(`data-look`,`neo`),n},`drawRect`),T=n.h(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,s=t.rectData;var l=`none`;i&&(l=`block !important`);let u=e.append(`g`);u.attr(`id`,`actor`+o+`_popup`),u.attr(`class`,`actorPopupMenu`),u.attr(`display`,l);var d=``;s.class!==void 0&&(d=` `+s.class);let f=s.width>n?s.width:n,p=u.append(`rect`);if(p.attr(`class`,`actorPopupMenuPanel`+d),p.attr(`x`,s.x),p.attr(`y`,s.height),p.attr(`fill`,s.fill),p.attr(`stroke`,s.stroke),p.attr(`width`,f),p.attr(`height`,s.height),p.attr(`rx`,s.rx),p.attr(`ry`,s.ry),a!=null){var m=20;for(let e in a){var h=u.append(`a`),g=(0,c.sanitizeUrl)(a[e]);h.attr(`xlink:href`,g),h.attr(`target`,`_blank`),ge(r)(e,h,s.x+10,s.height+m,f,20,{class:`actor`},r),m+=30}}return p.attr(`height`,m),{height:s.height+m,width:f}},`drawPopup`),E=n.h(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),D=n.h(async function(e,t,n=null){let i=e.append(`foreignObject`),a=await r.P(t.text,r.y()),o=i.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(a).node().getBoundingClientRect();if(i.attr(`height`,Math.round(o.height)).attr(`width`,Math.round(o.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,o.height+2*t.textMargin);let r=n.getBBox();i.attr(`x`,Math.round(r.x+r.width/2-o.width/2)).attr(`y`,Math.round(r.y+r.height/2-o.height/2))}else if(n){let{startx:e,stopx:r,starty:a}=n;if(e>r){let t=e;e=r,r=t}i.attr(`x`,Math.round(e+Math.abs(e-r)/2-o.width/2)),t.class===`loopText`?i.attr(`y`,Math.round(a)):i.attr(`y`,Math.round(a-o.height))}return[i]},`drawKatex`),O=n.h(function(e,i){let a=0,o=0,s=i.text.split(r.s.lineBreakRegex),[c,l]=t.f(i.fontSize),u=[],d=0,f=n.h(()=>i.y,`yfunc`);if(i.valign!==void 0&&i.textMargin!==void 0&&i.textMargin>0)switch(i.valign){case`top`:case`start`:f=n.h(()=>Math.round(i.y+i.textMargin),`yfunc`);break;case`middle`:case`center`:f=n.h(()=>Math.round(i.y+(a+o+i.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:f=n.h(()=>Math.round(i.y+(a+o+2*i.textMargin)-i.textMargin),`yfunc`);break}if(i.anchor!==void 0&&i.textMargin!==void 0&&i.width!==void 0)switch(i.anchor){case`left`:case`start`:i.x=Math.round(i.x+i.textMargin),i.anchor=`start`,i.dominantBaseline=`middle`,i.alignmentBaseline=`middle`;break;case`middle`:case`center`:i.x=Math.round(i.x+i.width/2),i.anchor=`middle`,i.dominantBaseline=`middle`,i.alignmentBaseline=`middle`;break;case`right`:case`end`:i.x=Math.round(i.x+i.width-i.textMargin),i.anchor=`end`,i.dominantBaseline=`middle`,i.alignmentBaseline=`middle`;break}for(let[t,n]of s.entries()){i.textMargin!==void 0&&i.textMargin===0&&c!==void 0&&(d=t*c);let r=e.append(`text`);r.attr(`x`,i.x),r.attr(`y`,f()),i.anchor!==void 0&&r.attr(`text-anchor`,i.anchor).attr(`dominant-baseline`,i.dominantBaseline).attr(`alignment-baseline`,i.alignmentBaseline),i.fontFamily!==void 0&&r.style(`font-family`,i.fontFamily),l!==void 0&&r.style(`font-size`,l),i.fontWeight!==void 0&&r.style(`font-weight`,i.fontWeight),i.fill!==void 0&&r.attr(`fill`,i.fill),i.class!==void 0&&r.attr(`class`,i.class),i.dy===void 0?d!==0&&r.attr(`dy`,d):r.attr(`dy`,i.dy);let s=n||`​`;if(i.tspan){let e=r.append(`tspan`);e.attr(`x`,i.x),i.fill!==void 0&&e.attr(`fill`,i.fill),e.text(s)}else r.text(s);i.valign!==void 0&&i.textMargin!==void 0&&i.textMargin>0&&(o+=(r._groups||r)[0][0].getBBox().height,a=o),u.push(r)}return u},`drawText`),k=n.h(function(e,t){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}n.h(r,`genPoints`);let i=e.append(`polygon`);return i.attr(`points`,r(t.x,t.y,t.width,t.height,7)),i.attr(`class`,`labelBox`),t.y+=t.height/2,O(e,t),i},`drawLabel`),A=-1,j=n.h((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),M=n.h(function(e,t,n,i,o){var s,c,l;let u=i?t.stopy:t.starty,d=t.x+t.width/2,f=u+t.height,{look:p,theme:m,themeVariables:h}=n,{bkgColorArray:g,borderColorArray:_}=h,v=e.append(`g`).lower();var S=v;i||(A++,Object.keys(t.links||{}).length&&!n.forceMenus&&S.attr(`onclick`,E(`actor${A}_popup`)).attr(`cursor`,`pointer`),S.append(`line`).attr(`id`,`actor`+A).attr(`x1`,d).attr(`y1`,f).attr(`x2`,d).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),S=v.append(`g`),t.actorCnt=A,t.links!=null&&S.attr(`id`,`root-`+A),p===`neo`&&S.attr(`data-look`,`neo`));let T=a.s();var D=`actor`;(s=t.properties)!=null&&s.class?D=t.properties.class:T.fill=`#eaeaea`,i?D+=` ${b}`:D+=` ${y}`,T.x=t.x,T.y=u,T.width=t.width,T.height=t.height,T.class=D,T.rx=3,T.ry=3,T.name=t.name,p===`neo`&&(T.rx=6,T.ry=6);let O=w(S,T),k=(c=o.get(t.name))==null?0:c;if(C.has(m)&&(O.style(`stroke`,_[k%_.length]),O.style(`fill`,g[k%_.length])),p===`neo`&&O.attr(`filter`,`url(#drop-shadow)`),t.rectData=T,(l=t.properties)!=null&&l.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?a.r(S,T.x+T.width-20,T.y+10,e.substr(1)):a.i(S,T.x+T.width-20,T.y+10,e)}i||(S.attr(`data-et`,`participant`),S.attr(`data-type`,`participant`),S.attr(`data-id`,t.name)),B(n,r.k(t.description))(t.description,S,T.x,T.y,T.width,T.height,{class:`actor ${x}`},n);let j=t.height;if(O.node){let e=O.node().getBBox();t.height=e.height,j=e.height}return j},`drawActorTypeParticipant`),N=n.h(function(t,n,i,o,s){var c,l,u;let d=o?n.stopy:n.starty,f=n.x+n.width/2,p=d+n.height,{look:m,theme:h,themeVariables:g}=i,{bkgColorArray:_,borderColorArray:v}=g,S=t.append(`g`).lower();var T=S;o||(A++,Object.keys(n.links||{}).length&&!i.forceMenus&&T.attr(`onclick`,E(`actor${A}_popup`)).attr(`cursor`,`pointer`),T.append(`line`).attr(`id`,`actor`+A).attr(`x1`,f).attr(`y1`,p).attr(`x2`,f).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,n.name).attr(`data-et`,`life-line`).attr(`data-id`,n.name),T=S.append(`g`),n.actorCnt=A,n.links!=null&&T.attr(`id`,`root-`+A),m===`neo`&&T.attr(`data-look`,`neo`));let D=a.s();var O=`actor`;(c=n.properties)!=null&&c.class?O=n.properties.class:D.fill=`#eaeaea`,o?O+=` ${b}`:O+=` ${y}`,D.x=n.x,D.y=d,D.width=n.width,D.height=n.height,D.class=O,D.name=n.name;let k=e.t(e.t({},D),{},{x:D.x+-6,y:D.y+6,class:`actor`}),j=w(T,D),M=w(T,k);n.rectData=D,m===`neo`&&T.attr(`filter`,`url(#drop-shadow)`);let N=(l=s.get(n.name))==null?0:l;if(C.has(h)&&(j.style(`stroke`,v[N%v.length]),j.style(`fill`,_[N%v.length]),M.style(`stroke`,v[N%v.length]),M.style(`fill`,_[N%v.length])),(u=n.properties)!=null&&u.icon){let e=n.properties.icon.trim();e.charAt(0)===`@`?a.r(T,D.x+D.width-20,D.y+10,e.substr(1)):a.i(T,D.x+D.width-20,D.y+10,e)}B(i,r.k(n.description))(n.description,T,D.x-6,D.y+6,D.width,D.height,{class:`actor ${x}`},i);let P=n.height;if(j.node){let e=j.node().getBBox();n.height=e.height,P=e.height}return o||(T.attr(`data-et`,`participant`),T.attr(`data-type`,`collections`),T.attr(`data-id`,n.name)),P},`drawActorTypeCollections`),P=n.h(function(e,t,n,i,o){var s,c,l;let u=i?t.stopy:t.starty,d=t.x+t.width/2,f=u+t.height,{look:p,theme:m,themeVariables:h}=n,{bkgColorArray:g,borderColorArray:_}=h,v=e.append(`g`).lower(),S=v;i||(A++,Object.keys(t.links||{}).length&&!n.forceMenus&&S.attr(`onclick`,E(`actor${A}_popup`)).attr(`cursor`,`pointer`),S.append(`line`).attr(`id`,`actor`+A).attr(`x1`,d).attr(`y1`,f).attr(`x2`,d).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),S=v.append(`g`),t.actorCnt=A,t.links!=null&&S.attr(`id`,`root-`+A),p===`neo`&&S.attr(`data-look`,`neo`));let w=a.s(),T=`actor`;(s=t.properties)!=null&&s.class?T=t.properties.class:w.fill=`#eaeaea`,i?T+=` ${b}`:T+=` ${y}`,S.attr(`class`,T),w.x=t.x,w.y=u,w.width=t.width,w.height=t.height,w.name=t.name;let D=w.height/2,O=D/(2.5+w.height/50),k=S.append(`g`),j=S.append(`g`),M=`M ${w.x},${w.y+D}
145
+ a ${O},${D} 0 0 0 0,${w.height}
146
+ h ${w.width-2*O}
147
+ a ${O},${D} 0 0 0 0,-${w.height}
148
+ Z
149
+ `;k.append(`path`).attr(`d`,M),j.append(`path`).attr(`d`,`M ${w.x},${w.y+D}
150
+ a ${O},${D} 0 0 0 0,${w.height}`),k.attr(`transform`,`translate(${O}, ${-(w.height/2)})`),j.attr(`transform`,`translate(${w.width-O}, ${-w.height/2})`),t.rectData=w,p===`neo`&&k.attr(`filter`,`url(#drop-shadow)`);let N=(c=o.get(t.name))==null?0:c;if(C.has(m)&&(k.style(`stroke`,_[N%_.length]),k.style(`fill`,g[N%_.length]),j.style(`stroke`,_[N%_.length]),j.style(`fill`,g[N%_.length])),(l=t.properties)!=null&&l.icon){let e=t.properties.icon.trim(),n=w.x+w.width-20,r=w.y+10;e.charAt(0)===`@`?a.r(S,n,r,e.substr(1)):a.i(S,n,r,e)}B(n,r.k(t.description))(t.description,S,w.x,w.y,w.width,w.height,{class:`actor ${x}`},n);let P=t.height,F=k.select(`path:last-child`);if(F.node()){let e=F.node().getBBox();t.height=e.height,P=e.height}return i||(S.attr(`data-et`,`participant`),S.attr(`data-type`,`queue`),S.attr(`data-id`,t.name)),P},`drawActorTypeQueue`),F=n.h(function(e,t,n,i,o,s){var c,l,u;let d=i?t.stopy:t.starty,f=t.x+t.width/2,p=d+75,{look:m,theme:h,themeVariables:g}=n,{bkgColorArray:_,borderColorArray:v,actorBorder:x,actorBkg:w}=g,T=e.append(`g`).lower();i||(A++,T.append(`line`).attr(`id`,`actor`+A).attr(`x1`,f).attr(`y1`,p).attr(`x2`,f).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=A);let E=e.append(`g`),D=S;i?D+=` ${b}`:D+=` ${y}`,E.attr(`class`,D),E.attr(`name`,t.name);let O=a.s();O.x=t.x,O.y=d,O.fill=`#eaeaea`,O.width=t.width,O.height=t.height,O.class=`actor`;let k=t.x+t.width/2,j=d+32;E.append(`defs`).append(`marker`).attr(`id`,o+`-filled-head-control`).attr(`refX`,11).attr(`refY`,5.8).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`172.5`).attr(`stroke-width`,1.2).append(`path`).attr(`d`,`M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z`),E.append(`circle`).attr(`cx`,k).attr(`cy`,j).attr(`r`,22).attr(`filter`,`${m===`neo`?`url(#drop-shadow)`:``}`),E.append(`line`).attr(`marker-end`,`url(#`+o+`-filled-head-control)`).attr(`transform`,`translate(${k}, ${j-22})`);let M=(c=s.get(t.name))==null?0:c;return C.has(h)?(E.style(`stroke`,v[M%v.length]),E.style(`fill`,_[M%v.length])):(E.style(`stroke`,x),E.style(`fill`,w)),t.height=E.node().getBBox().height+2*((l=n==null||(u=n.sequence)==null?void 0:u.labelBoxHeight)==null?0:l),B(n,r.k(t.description))(t.description,E,O.x,O.y+22+(i?5:12),O.width,O.height,{class:`actor ${S}`},n),i||(E.attr(`data-et`,`participant`),E.attr(`data-type`,`control`),E.attr(`data-id`,t.name)),t.height},`drawActorTypeControl`),I=n.h(function(e,t,n,i,o){var s,c,l;let u=i?t.stopy:t.starty,d=t.x+t.width/2,f=u+75,{look:p,theme:m,themeVariables:h}=n,{bkgColorArray:g,borderColorArray:_}=h,v=e.append(`g`).lower(),x=e.append(`g`),w=`actor`;i?w+=` ${b}`:w+=` ${y}`,x.attr(`class`,w),x.attr(`name`,t.name);let T=a.s();T.x=t.x,T.y=u,T.fill=`#eaeaea`,T.width=t.width,T.height=t.height,T.class=`actor`;let E=t.x+t.width/2,D=u+(i?10:25);x.append(`circle`).attr(`cx`,E).attr(`cy`,D).attr(`r`,22).attr(`width`,t.width).attr(`height`,t.height),x.append(`line`).attr(`x1`,E-22).attr(`x2`,E+22).attr(`y1`,D+22).attr(`y2`,D+22).attr(`stroke-width`,2),p===`neo`&&x.attr(`filter`,`url(#drop-shadow)`);let O=(s=o.get(t.name))==null?0:s;return C.has(m)&&(x.style(`stroke`,_[O%_.length]),x.style(`fill`,g[O%_.length])),t.height=x.node().getBBox().height+((c=n==null||(l=n.sequence)==null?void 0:l.labelBoxHeight)==null?0:c),i||(A++,v.append(`line`).attr(`id`,`actor`+A).attr(`x1`,d).attr(`y1`,f).attr(`x2`,d).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=A),B(n,r.k(t.description))(t.description,x,T.x,T.y+(i?15:30),T.width,T.height,{class:`actor ${S}`},n),i?x.attr(`transform`,`translate(0, 22)`):(x.attr(`transform`,`translate(0, ${22/2-5})`),x.attr(`data-et`,`participant`),x.attr(`data-type`,`entity`),x.attr(`data-id`,t.name)),t.height},`drawActorTypeEntity`),L=n.h(function(e,t,n,i,o){var s,c;let l=i?t.stopy:t.starty,u=t.x+t.width/2,d=l+t.height+2*n.boxTextMargin,{theme:f,themeVariables:p,look:m}=n,{bkgColorArray:h,borderColorArray:g,actorBorder:_}=p,v=e.append(`g`).lower(),S=v;i||(A++,Object.keys(t.links||{}).length&&!n.forceMenus&&S.attr(`onclick`,E(`actor${A}_popup`)).attr(`cursor`,`pointer`),S.append(`line`).attr(`id`,`actor`+A).attr(`x1`,u).attr(`y1`,d).attr(`x2`,u).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),S=v.append(`g`),t.actorCnt=A,t.links!=null&&S.attr(`id`,`root-`+A),m===`neo`&&S.attr(`data-look`,`neo`));let w=a.s(),T=`actor`;(s=t.properties)!=null&&s.class?T=t.properties.class:w.fill=`#eaeaea`,i?T+=` ${b}`:T+=` ${y}`,w.x=t.x,w.y=l,w.width=t.width,w.height=t.height,w.class=T,w.name=t.name,w.x=t.x,w.y=l;let D=w.width/3,O=w.width/3,k=D/2,j=k/(2.5+D/50),M=S.append(`g`);M.attr(`class`,T);let N=`
151
+ M ${w.x},${w.y+j}
152
+ a ${k},${j} 0 0 0 ${D},0
153
+ a ${k},${j} 0 0 0 -${D},0
154
+ l 0,${O-2*j}
155
+ a ${k},${j} 0 0 0 ${D},0
156
+ l 0,-${O-2*j}
157
+ `;M.append(`path`).attr(`d`,N),m===`neo`&&M.attr(`filter`,`url(#drop-shadow)`);let P=(c=o.get(t.name))==null?0:c;C.has(f)?(M.style(`stroke`,g[P%g.length]),M.style(`fill`,h[P%g.length])):M.style(`stroke`,_),M.attr(`transform`,`translate(${D}, ${j})`),t.rectData=w,B(n,r.k(t.description))(t.description,S,w.x,w.y+35,w.width,w.height,{class:`actor ${x}`},n);let F=M.select(`path:last-child`);if(F.node()){var I;t.height=F.node().getBBox().height+((I=n.sequence.labelBoxHeight)==null?0:I)}return i||(S.attr(`data-et`,`participant`),S.attr(`data-type`,`database`),S.attr(`data-id`,t.name)),t.height},`drawActorTypeDatabase`),R=n.h(function(e,t,n,i,o){var s,c;let l=i?t.stopy:t.starty,u=t.x+t.width/2,d=l+80,f=e.append(`g`).lower(),{look:p,theme:m,themeVariables:h}=n,{bkgColorArray:g,borderColorArray:_,actorBorder:v}=h;i||(A++,f.append(`line`).attr(`id`,`actor`+A).attr(`x1`,u).attr(`y1`,d).attr(`x2`,u).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=A);let x=e.append(`g`),w=S;i?w+=` ${b}`:w+=` ${y}`,x.attr(`class`,w),x.attr(`name`,t.name);let T=a.s();T.x=t.x,T.y=l,T.fill=`#eaeaea`,T.width=t.width,T.height=t.height,T.class=`actor`,x.append(`line`).attr(`id`,`actor-man-torso`+A).attr(`x1`,t.x+t.width/2-22*2.5).attr(`y1`,l+12).attr(`x2`,t.x+t.width/2-15).attr(`y2`,l+12),x.append(`line`).attr(`id`,`actor-man-arms`+A).attr(`x1`,t.x+t.width/2-22*2.5).attr(`y1`,l+2).attr(`x2`,t.x+t.width/2-22*2.5).attr(`y2`,l+22),x.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,l+12).attr(`r`,22),p===`neo`&&x.attr(`filter`,`url(#drop-shadow)`);let E=(s=o.get(t.name))==null?0:s;return C.has(m)?(x.style(`stroke`,_[E%_.length]),x.style(`fill`,g[E%_.length])):x.style(`stroke`,v),t.height=x.node().getBBox().height+((c=n.sequence.labelBoxHeight)==null?0:c),B(n,r.k(t.description))(t.description,x,T.x,T.y+15,T.width,T.height,{class:`actor ${S}`},n),x.attr(`transform`,`translate(0,21)`),i||(x.attr(`data-et`,`participant`),x.attr(`data-type`,`boundary`),x.attr(`data-id`,t.name)),t.height},`drawActorTypeBoundary`),z=n.h(function(e,t,n,i,o){var s;let c=i?t.stopy:t.starty,l=t.x+t.width/2,u=c+80,{look:d,theme:f,themeVariables:p}=n,{bkgColorArray:m,borderColorArray:h,actorBorder:g}=p,_=e.append(`g`).lower();i||(A++,_.append(`line`).attr(`id`,`actor`+A).attr(`x1`,l).attr(`y1`,u).attr(`x2`,l).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=A);let x=e.append(`g`),w=S;i?w+=` ${b}`:w+=` ${y}`,x.attr(`class`,w),x.attr(`name`,t.name),i||x.attr(`data-et`,`participant`).attr(`data-type`,`actor`).attr(`data-id`,t.name);let T=d===`neo`?.5:1,E=d===`neo`?c+(1-T)*30:c;x.append(`line`).attr(`id`,`actor-man-torso`+A).attr(`x1`,l).attr(`y1`,E+25*T).attr(`x2`,l).attr(`y2`,E+45*T),x.append(`line`).attr(`id`,`actor-man-arms`+A).attr(`x1`,l-v/2*T).attr(`y1`,E+33*T).attr(`x2`,l+v/2*T).attr(`y2`,E+33*T),x.append(`line`).attr(`x1`,l-v/2*T).attr(`y1`,E+60*T).attr(`x2`,l).attr(`y2`,E+45*T),x.append(`line`).attr(`x1`,l).attr(`y1`,E+45*T).attr(`x2`,l+(v/2-2)*T).attr(`y2`,E+60*T);let D=x.append(`circle`);D.attr(`cx`,t.x+t.width/2),D.attr(`cy`,E+10*T),D.attr(`r`,15*T),D.attr(`width`,t.width*T),D.attr(`height`,t.height*T),t.height=x.node().getBBox().height;let O=a.s();O.x=t.x,O.y=E,O.fill=`#eaeaea`,O.width=t.width,O.height=t.height/T,O.class=`actor`,O.rx=3,O.ry=3;let k=(s=o.get(t.name))==null?0:s;return C.has(f)?(x.style(`stroke`,h[k%h.length]),x.style(`fill`,m[k%h.length])):x.style(`stroke`,g),B(n,r.k(t.description))(t.description,x,O.x,E+35*T-(d===`neo`?10:0),O.width,O.height,{class:`actor ${S}`},n),t.height},`drawActorTypeActor`),ee=n.h(async function(e,t,n,r,i,a,o){let s=o==null?new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t])):o;switch(t.type){case`actor`:return await z(e,t,n,r,s);case`participant`:return await M(e,t,n,r,s);case`boundary`:return await R(e,t,n,r,s);case`control`:return await F(e,t,n,r,i,s);case`entity`:return await I(e,t,n,r,s);case`database`:return await L(e,t,n,r,s);case`collections`:return await N(e,t,n,r,s);case`queue`:return await P(e,t,n,r,s)}},`drawActor`),te=n.h(function(e,t,n){let r=e.append(`g`);ae(r,t),t.name&&B(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:`text`},n),r.lower()},`drawBox`),ne=n.h(function(e){return e.append(`g`)},`anchorElement`),re=n.h(function(e,t,n,r,i,o,s){var c;let{theme:l,themeVariables:u}=r,{bkgColorArray:d,borderColorArray:f,mainBkg:p}=u,m=a.s(),h=t.anchored,g=t.actor;m.x=t.startx,m.y=t.starty,m.class=`activation`+i%3,m.width=t.stopx-t.startx,m.height=n-t.starty;let _=w(h,m),v=(c=(s==null?new Map([...o.db.getActors().values()].map((e,t)=>[e.name,t])):s).get(g))==null?0:c;if(C.has(l)){var y;_.style(`stroke`,f[v%f.length]),_.style(`fill`,(y=d[v%f.length])==null?p:y)}},`drawActivation`),ie=n.h(async function(e,t,i,o,s){let{boxMargin:c,boxTextMargin:l,labelBoxHeight:u,labelBoxWidth:d,messageFontFamily:f,messageFontSize:p,messageFontWeight:m}=o,h=e.append(`g`).attr(`data-et`,`control-structure`).attr(`data-id`,`i`+s.id),g=n.h(function(e,t,n,r){return h.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);g(t.startx,t.starty,t.stopx,t.starty),g(t.stopx,t.starty,t.stopx,t.stopy),g(t.startx,t.stopy,t.stopx,t.stopy),g(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(e){g(t.startx,e.y,t.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let _=a.c();_.text=i,_.x=t.startx,_.y=t.starty,_.fontFamily=f,_.fontSize=p,_.fontWeight=m,_.anchor=`middle`,_.valign=`middle`,_.tspan=!1,_.width=Math.max(d==null?0:d,50),_.height=u+(o.look===`neo`?15:0)||20,_.textMargin=l,_.class=`labelText`,k(h,_),_=me(),_.text=t.title,_.x=t.startx+d/2+(t.stopx-t.startx)/2,_.y=t.starty+c+l,_.anchor=`middle`,_.valign=`middle`,_.textMargin=l,_.class=`loopText`,_.fontFamily=f,_.fontSize=p,_.fontWeight=m,_.wrap=!0;let v=r.k(_.text)?await D(h,_,t):O(h,_);if(t.sectionTitles!==void 0){for(let[e,n]of Object.entries(t.sectionTitles))if(n.message){_.text=n.message,_.x=t.startx+(t.stopx-t.startx)/2,_.y=t.sections[e].y+c+l,_.class=`loopText`,_.anchor=`middle`,_.valign=`middle`,_.tspan=!1,_.fontFamily=f,_.fontSize=p,_.fontWeight=m,_.wrap=t.wrap,r.k(_.text)?(t.starty=t.sections[e].y,await D(h,_,t)):O(h,_);let i=Math.round(v.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));t.sections[e].height+=i-(c+l)}}return t.height=Math.round(t.stopy-t.starty),h},`drawLoop`),ae=n.h(function(e,t){a.n(e,t)},`drawBackgroundRect`),oe=n.h(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z`)},`insertDatabaseIcon`),se=n.h(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z`)},`insertComputerIcon`),ce=n.h(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z`)},`insertClockIcon`),le=n.h(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,7.9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M -1 0 L 10 5 L 0 10 z`)},`insertArrowHead`),ue=n.h(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-filled-head`).attr(`refX`,15.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`insertArrowFilledHead`),de=n.h(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-sequencenumber`).attr(`refX`,15).attr(`refY`,15).attr(`markerWidth`,60).attr(`markerHeight`,40).attr(`orient`,`auto`).append(`circle`).attr(`cx`,15).attr(`cy`,15).attr(`r`,6)},`insertSequenceNumber`),fe=n.h(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,4).attr(`refY`,4.5).append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1pt`).attr(`d`,`M 1,2 L 6,7 M 6,2 L 1,7`)},`insertArrowCrossHead`),pe=n.h(function(e,t){let{theme:n}=t;e.append(`defs`).append(`filter`).attr(`id`,`drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${n===`redux`||n===`redux-color`?`#000000`:`#FFFFFF`}`)},`insertDropShadow`),me=n.h(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:`#666`,width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},`getTextObj`),he=n.h(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),B=(function(){function e(e,t,n,r,i,a,o){s(t.append(`text`).attr(`x`,n+i/2).attr(`y`,r+a/2+5).style(`text-anchor`,`middle`).text(e),o)}n.h(e,`byText`);function i(e,n,i,a,o,c,l,u){let{actorFontSize:d,actorFontFamily:f,actorFontWeight:p}=u,[m,h]=t.f(d),g=e.split(r.s.lineBreakRegex);for(let e=0;e<g.length;e++){let t=e*m-m*(g.length-1)/2,r=n.append(`text`).attr(`x`,i+o/2).attr(`y`,a).style(`text-anchor`,`middle`).style(`font-size`,h).style(`font-weight`,p).style(`font-family`,f);r.append(`tspan`).attr(`x`,i+o/2).attr(`dy`,t).text(g[e]),r.attr(`y`,a+c/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),s(r,l)}}n.h(i,`byTspan`);function a(e,t,n,r,a,o,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,n).attr(`y`,r).attr(`width`,a).attr(`height`,o).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),i(e,u,n,r,a,o,c,l),s(d,c)}n.h(a,`byFo`);async function o(e,t,n,a,o,c,l,u){let d=await r.i(e,r.y()),f=t.append(`switch`),p=f.append(`foreignObject`).attr(`x`,n+o/2-d.width/2).attr(`y`,a+c/2-d.height/2).attr(`width`,d.width).attr(`height`,d.height).append(`xhtml:div`).style(`height`,`100%`).style(`width`,`100%`);p.append(`div`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(await r.P(e,r.y())),i(e,f,n,a,o,c,l,u),s(p,l)}n.h(o,`byKatex`);function s(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return n.h(s,`_setTextAttrs`),function(t,n=!1){return n?o:t.textPlacement===`fo`?a:t.textPlacement===`old`?e:i}})(),ge=(function(){function e(e,t,n,r,i,o,s){a(t.append(`text`).attr(`x`,n).attr(`y`,r).style(`text-anchor`,`start`).text(e),s)}n.h(e,`byText`);function t(e,t,n,i,o,s,c,l){let{actorFontSize:u,actorFontFamily:d,actorFontWeight:f}=l,p=e.split(r.s.lineBreakRegex);for(let e=0;e<p.length;e++){let r=e*u-u*(p.length-1)/2,o=t.append(`text`).attr(`x`,n).attr(`y`,i).style(`text-anchor`,`start`).style(`font-size`,u).style(`font-weight`,f).style(`font-family`,d);o.append(`tspan`).attr(`x`,n).attr(`dy`,r).text(p[e]),o.attr(`y`,i+s/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),a(o,c)}}n.h(t,`byTspan`);function i(e,n,r,i,o,s,c,l){let u=n.append(`switch`),d=u.append(`foreignObject`).attr(`x`,r).attr(`y`,i).attr(`width`,o).attr(`height`,s).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),t(e,u,r,i,o,s,c,l),a(d,c)}n.h(i,`byFo`);function a(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return n.h(a,`_setTextAttrs`),function(n){return n.textPlacement===`fo`?i:n.textPlacement===`old`?e:t}})(),V={drawRect:w,drawText:O,drawLabel:k,drawActor:ee,drawBox:te,drawPopup:T,anchorElement:ne,drawActivation:re,drawLoop:ie,drawBackgroundRect:ae,insertArrowHead:le,insertArrowFilledHead:ue,insertSequenceNumber:de,insertArrowCrossHead:fe,insertDatabaseIcon:oe,insertComputerIcon:se,insertClockIcon:ce,getTextObj:me,getNoteRect:he,fixLifeLineHeights:j,sanitizeUrl:c.sanitizeUrl,insertDropShadow:pe,insertSolidTopArrowHead:n.h(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-solidTopArrowHead`).attr(`refX`,7.9).attr(`refY`,7.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 8 L 0 8 z`)},`insertSolidTopArrowHead`),insertSolidBottomArrowHead:n.h(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-solidBottomArrowHead`).attr(`refX`,7.9).attr(`refY`,.75).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 0 L 0 8 z`)},`insertSolidBottomArrowHead`),insertStickTopArrowHead:n.h(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-stickTopArrowHead`).attr(`refX`,7.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 7 7`).attr(`stroke`,`black`).attr(`stroke-width`,1.5).attr(`fill`,`none`)},`insertStickTopArrowHead`),insertStickBottomArrowHead:n.h(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-stickBottomArrowHead`).attr(`refX`,7.5).attr(`refY`,0).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 7 L 7 0`).attr(`stroke`,`black`).attr(`stroke-width`,1.5).attr(`fill`,`none`)},`insertStickBottomArrowHead`)},H={},U={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:n.h(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},`getHeight`),clear:n.h(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:n.h(function(e){this.boxes.push(e)},`addBox`),addActor:n.h(function(e){this.actors.push(e)},`addActor`),addLoop:n.h(function(e){this.loops.push(e)},`addLoop`),addMessage:n.h(function(e){this.messages.push(e)},`addMessage`),addNote:n.h(function(e){this.notes.push(e)},`addNote`),lastActor:n.h(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:n.h(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:n.h(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:n.h(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:n.h(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,X(r.b())},`init`),updateVal:n.h(function(e,t,n,r){e[t]===void 0?e[t]=n:e[t]=r(n,e[t])},`updateVal`),updateBounds:n.h(function(e,t,r,i){let a=this,o=0;function s(s){return n.h(function(n){o++;let c=a.sequenceItems.length-o+1;a.updateVal(n,`starty`,t-c*H.boxMargin,Math.min),a.updateVal(n,`stopy`,i+c*H.boxMargin,Math.max),a.updateVal(U.data,`startx`,e-c*H.boxMargin,Math.min),a.updateVal(U.data,`stopx`,r+c*H.boxMargin,Math.max),s!==`activation`&&(a.updateVal(n,`startx`,e-c*H.boxMargin,Math.min),a.updateVal(n,`stopx`,r+c*H.boxMargin,Math.max),a.updateVal(U.data,`starty`,t-c*H.boxMargin,Math.min),a.updateVal(U.data,`stopy`,i+c*H.boxMargin,Math.max))},`updateItemBounds`)}n.h(s,`updateFn`),this.sequenceItems.forEach(s()),this.activations.forEach(s(`activation`))},`updateBounds`),insert:n.h(function(e,t,n,i){let a=r.s.getMin(e,n),o=r.s.getMax(e,n),s=r.s.getMin(t,i),c=r.s.getMax(t,i);this.updateVal(U.data,`startx`,a,Math.min),this.updateVal(U.data,`starty`,s,Math.min),this.updateVal(U.data,`stopx`,o,Math.max),this.updateVal(U.data,`stopy`,c,Math.max),this.updateBounds(a,s,o,c)},`insert`),newActivation:n.h(function(e,t,n){let r=n.get(e.from),i=Z(e.from).length||0,a=r.x+r.width/2+(i-1)*H.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+H.activationWidth,stopy:void 0,actor:e.from,anchored:V.anchorElement(t)})},`newActivation`),endActivation:n.h(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:n.h(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:n.h(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:n.h(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:n.h(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:n.h(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:U.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:n.h(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:n.h(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:n.h(function(e){this.verticalPos+=e,this.data.stopy=r.s.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:n.h(function(){return this.verticalPos},`getVerticalPos`),getBounds:n.h(function(){return{bounds:this.data,models:this.models}},`getBounds`)},_e=n.h(async function(e,t,n){U.bumpVerticalPos(H.boxMargin),t.height=H.boxMargin,t.starty=U.getVerticalPos();let i=a.s();i.x=t.startx,i.y=t.starty,i.width=t.width||H.width,i.class=`note`;let o=e.append(`g`);o.attr(`data-et`,`note`),o.attr(`data-id`,`i`+n);let s=V.drawRect(o,i),c=a.c();c.x=t.startx,c.y=t.starty,c.width=i.width,c.dy=`1em`,c.text=t.message,c.class=`noteText`,c.fontFamily=H.noteFontFamily,c.fontSize=H.noteFontSize,c.fontWeight=H.noteFontWeight,c.anchor=H.noteAlign,c.textMargin=H.noteMargin,c.valign=`center`;let l=r.k(c.text)?await D(o,c):O(o,c),u=Math.round(l.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));s.attr(`height`,u+2*H.noteMargin),t.height+=u+2*H.noteMargin,U.bumpVerticalPos(u+2*H.noteMargin),t.stopy=t.starty+u+2*H.noteMargin,t.stopx=t.startx+i.width,U.insert(t.startx,t.starty,t.stopx,t.stopy),U.models.addNote(t)},`drawNote`),ve=n.h(function(e,t,r,i,a,o,s){let c=i.db.getActors(),l=c.get(t.from),u=c.get(t.to),d=r.sequenceVisible,f=l.x+l.width/2,p=u.x+u.width/2,m=f<=p,h=je(t,i),g=e.append(`g`),_=16.5,v=n.h((e,t)=>{let n=e?_:-_;return t?-n:n},`getCircleOffset`),y=n.h(e=>{g.append(`circle`).attr(`cx`,e).attr(`cy`,s).attr(`r`,5).attr(`width`,10).attr(`height`,10)},`drawCircle`),{CENTRAL_CONNECTION:b,CENTRAL_CONNECTION_REVERSE:x,CENTRAL_CONNECTION_DUAL:S}=i.db.LINETYPE;if(d)switch(t.centralConnection){case b:h&&(p+=v(m,!0));break;case x:h||(f+=v(m,!1));break;case S:h?p+=v(m,!0):f+=v(m,!1);break}switch(t.centralConnection){case b:y(p);break;case x:y(f);break;case S:y(f),y(p);break}},`drawCentralConnection`),W=n.h(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),G=n.h(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),K=n.h(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`);async function q(e,n){U.bumpVerticalPos(10);let{startx:i,stopx:a,message:o}=n,s=r.s.splitBreaks(o).length,c=r.k(o),l=c?await r.i(o,r.b()):t.h.calculateTextDimensions(o,W(H));if(!c){let e=l.height/s;n.height+=e,U.bumpVerticalPos(e)}let u,d=l.height-10,f=l.width;if(i===a){u=U.getVerticalPos()+d,H.rightAngles||(d+=H.boxMargin,u=U.getVerticalPos()+d),d+=30;let e=r.s.getMax(f/2,H.width/2);U.insert(i-e,U.getVerticalPos()-10+d,a+e,U.getVerticalPos()+30+d)}else d+=H.boxMargin,u=U.getVerticalPos()+d,U.insert(i,u-10,a,u);return U.bumpVerticalPos(d),n.height+=d,n.stopy=n.starty+n.height,U.insert(n.fromBounds,n.starty,n.toBounds,n.stopy),u}n.h(q,`boundMessage`);var ye=n.h(async function(e,n,i,o,s,c){let{startx:l,stopx:u,starty:d,message:f,type:p,sequenceIndex:m,sequenceVisible:h}=n,g=t.h.calculateTextDimensions(f,W(H)),_=a.c();_.x=l,_.y=d+10,_.width=u-l,_.class=`messageText`,_.dy=`1em`,_.text=f,_.fontFamily=H.messageFontFamily,_.fontSize=H.messageFontSize,_.fontWeight=H.messageFontWeight,_.anchor=H.messageAlign,_.valign=`center`,_.textMargin=H.wrapPadding,_.tspan=!1,r.k(_.text)?await D(e,_,{startx:l,stopx:u,starty:i}):O(e,_);let v=g.width,y;if(l===u){let t=h||H.showSequenceNumbers,a=je(s,o),c=Me(s,o),d=l+(t&&(a||c)?10:0);y=H.rightAngles?e.append(`path`).attr(`d`,`M ${d},${i} H ${l+r.s.getMax(H.width/2,v/2)} V ${i+25} H ${l}`):e.append(`path`).attr(`d`,`M `+d+`,`+i+` C `+(d+60)+`,`+(i-10)+` `+(l+60)+`,`+(i+30)+` `+l+`,`+(i+20)),ke(s,o)&&ve(e,s,n,o,l,u,i)}else y=e.append(`line`),y.attr(`x1`,l),y.attr(`y1`,i),y.attr(`x2`,u),y.attr(`y2`,i),ke(s,o)&&ve(e,s,n,o,l,u,i);p===o.db.LINETYPE.DOTTED||p===o.db.LINETYPE.DOTTED_CROSS||p===o.db.LINETYPE.DOTTED_POINT||p===o.db.LINETYPE.DOTTED_OPEN||p===o.db.LINETYPE.BIDIRECTIONAL_DOTTED||p===o.db.LINETYPE.SOLID_TOP_DOTTED||p===o.db.LINETYPE.SOLID_BOTTOM_DOTTED||p===o.db.LINETYPE.STICK_TOP_DOTTED||p===o.db.LINETYPE.STICK_BOTTOM_DOTTED||p===o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||p===o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||p===o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||p===o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(y.style(`stroke-dasharray`,`3, 3`),y.attr(`class`,`messageLine1`)):y.attr(`class`,`messageLine0`),y.attr(`data-et`,`message`),y.attr(`data-id`,`i`+n.id),y.attr(`data-from`,n.from),y.attr(`data-to`,n.to);let b=``;if(H.arrowMarkerAbsolute&&(b=r.D(!0)),y.attr(`stroke-width`,2),y.attr(`stroke`,`none`),y.style(`fill`,`none`),(p===o.db.LINETYPE.SOLID_TOP||p===o.db.LINETYPE.SOLID_TOP_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-solidTopArrowHead)`),(p===o.db.LINETYPE.SOLID_BOTTOM||p===o.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-solidBottomArrowHead)`),(p===o.db.LINETYPE.STICK_TOP||p===o.db.LINETYPE.STICK_TOP_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-stickTopArrowHead)`),(p===o.db.LINETYPE.STICK_BOTTOM||p===o.db.LINETYPE.STICK_BOTTOM_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-stickBottomArrowHead)`),(p===o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||p===o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+c+`-solidBottomArrowHead)`),(p===o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||p===o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+c+`-solidTopArrowHead)`),(p===o.db.LINETYPE.STICK_ARROW_TOP_REVERSE||p===o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+c+`-stickBottomArrowHead)`),(p===o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||p===o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+c+`-stickTopArrowHead)`),(p===o.db.LINETYPE.SOLID||p===o.db.LINETYPE.DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-arrowhead)`),(p===o.db.LINETYPE.BIDIRECTIONAL_SOLID||p===o.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(y.attr(`marker-start`,`url(`+b+`#`+c+`-arrowhead)`),y.attr(`marker-end`,`url(`+b+`#`+c+`-arrowhead)`)),(p===o.db.LINETYPE.SOLID_POINT||p===o.db.LINETYPE.DOTTED_POINT)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-filled-head)`),(p===o.db.LINETYPE.SOLID_CROSS||p===o.db.LINETYPE.DOTTED_CROSS)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-crosshead)`),h||H.showSequenceNumbers){let t=p===o.db.LINETYPE.BIDIRECTIONAL_SOLID||p===o.db.LINETYPE.BIDIRECTIONAL_DOTTED,r=p===o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||p===o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||p===o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||p===o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||p===o.db.LINETYPE.STICK_ARROW_TOP_REVERSE||p===o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||p===o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||p===o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a=ke(s,o),d=l,f=u;t?(l<u?d=l+12:(d=l-6+(a?-5:0),d+=(s==null?void 0:s.centralConnection)===o.db.LINETYPE.CENTRAL_CONNECTION_DUAL||(s==null?void 0:s.centralConnection)===o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),y.attr(`x1`,d)):r?(u>l?f=u-12:(f=u-6,d+=(s==null?void 0:s.centralConnection)===o.db.LINETYPE.CENTRAL_CONNECTION_DUAL||(s==null?void 0:s.centralConnection)===o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),f+=a?15:0,y.attr(`x2`,f),y.attr(`x1`,d)):y.attr(`x1`,l+6);let h=0,g=l===u,_=l<=u;h=g?n.fromBounds+1:r?_?n.toBounds-1:n.fromBounds+1:_?n.fromBounds+1:n.toBounds-1,e.append(`line`).attr(`x1`,h).attr(`y1`,i).attr(`x2`,h).attr(`y2`,i).attr(`stroke-width`,0).attr(`marker-start`,`url(`+b+`#`+c+`-sequencenumber)`),e.append(`text`).attr(`x`,h).attr(`y`,i+4).attr(`font-family`,`sans-serif`).attr(`font-size`,`12px`).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(m)}},`drawMessage`),be=n.h(function(e,t,n,i,a,o,s){let c=0,l=0,u,d=0;for(let e of i){let i=t.get(e),o=i.box;u&&u!=o&&(s||U.models.addBox(u),l+=H.boxMargin+u.margin),o&&o!=u&&(s||(o.x=c+l,o.y=a),l+=o.margin),i.width=r.s.getMax(i.width||H.width,H.width),i.height=r.s.getMax(i.height||H.height,H.height),i.margin=i.margin||H.actorMargin,d=r.s.getMax(d,i.height),n.get(i.name)&&(l+=i.width/2),i.x=c+l,i.starty=U.getVerticalPos(),U.insert(i.x,a,i.x+i.width,i.height),c+=i.width+l,i.box&&(i.box.width=c+o.margin-i.box.x),l=i.margin,u=i.box,U.models.addActor(i)}u&&!s&&U.models.addBox(u),U.bumpVerticalPos(d)},`addActorRenderingData`),J=n.h(async function(e,t,n,i,a,o,s){if(i){let i=0;U.bumpVerticalPos(H.boxMargin*2);for(let c of n){let n=t.get(c);n.stopy||(n.stopy=U.getVerticalPos());let l=await V.drawActor(e,n,H,!0,a,o,s);i=r.s.getMax(i,l)}U.bumpVerticalPos(i+H.boxMargin)}else for(let r of n){let n=t.get(r);await V.drawActor(e,n,H,!1,a,o,s)}},`drawActors`),Y=n.h(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=we(n),c=V.drawPopup(e,n,s,H,H.forceMenus,r);c.height>i&&(i=c.height),c.width+n.x>a&&(a=c.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),X=n.h(function(e){r.r(H,e),e.fontFamily&&(H.actorFontFamily=H.noteFontFamily=H.messageFontFamily=e.fontFamily),e.fontSize&&(H.actorFontSize=H.noteFontSize=H.messageFontSize=e.fontSize),e.fontWeight&&(H.actorFontWeight=H.noteFontWeight=H.messageFontWeight=e.fontWeight)},`setConf`),Z=n.h(function(e){return U.activations.filter(function(t){return t.actor===e})},`actorActivations`),Q=n.h(function(e,t){let n=t.get(e),i=Z(e);return[i.reduce(function(e,t){return r.s.getMin(e,t.startx)},n.x+n.width/2-1),i.reduce(function(e,t){return r.s.getMax(e,t.stopx)},n.x+n.width/2+1)]},`activationBounds`);function $(e,i,a,o,s){U.bumpVerticalPos(a);let c=o;if(i.id&&i.message&&e[i.id]){let a=e[i.id].width,s=W(H);i.message=t.h.wrapLabel(`[${i.message}]`,a-2*H.wrapPadding,s),i.width=a,i.wrap=!0;let l=t.h.calculateTextDimensions(i.message,s),u=r.s.getMax(l.height,H.labelBoxHeight);c=o+u,n.g.debug(`${u} - ${i.message}`)}s(i),U.bumpVerticalPos(c)}n.h($,`adjustLoopHeightForWrap`);function xe(e,t,r,i,a,o,s){function c(n,r){n.x<a.get(e.from).x?(U.insert(t.stopx-r,t.starty,t.startx,t.stopy+n.height/2+H.noteMargin),t.stopx+=r):(U.insert(t.startx,t.starty,t.stopx+r,t.stopy+n.height/2+H.noteMargin),t.stopx-=r)}n.h(c,`receiverAdjustment`);function l(n,r){n.x<a.get(e.to).x?(U.insert(t.startx-r,t.starty,t.stopx,t.stopy+n.height/2+H.noteMargin),t.startx+=r):(U.insert(t.stopx,t.starty,t.startx+r,t.stopy+n.height/2+H.noteMargin),t.startx-=r)}n.h(l,`senderAdjustment`);let u=[h.ACTOR,h.CONTROL,h.ENTITY,h.DATABASE];if(o.get(e.to)==i){let t=a.get(e.to);c(t,u.includes(t.type)?v/2+3:t.width/2+3),t.starty=r-t.height/2,U.bumpVerticalPos(t.height/2)}else if(s.get(e.from)==i){let t=a.get(e.from);H.mirrorActors&&l(t,u.includes(t.type)?v/2:t.width/2),t.stopy=r-t.height/2,U.bumpVerticalPos(t.height/2)}else if(s.get(e.to)==i){let t=a.get(e.to);H.mirrorActors&&c(t,u.includes(t.type)?v/2+3:t.width/2+3),t.stopy=r-t.height/2,U.bumpVerticalPos(t.height/2)}}n.h(xe,`adjustCreatedDestroyedData`);var Se=n.h(async function(e,t,i,a){let{securityLevel:o,sequence:s,look:c}=r.b();H=s;let l;o===`sandbox`&&(l=n.p(`#i`+t));let u=o===`sandbox`?n.p(l.nodes()[0].contentDocument.body):n.p(`body`),d=o===`sandbox`?l.nodes()[0].contentDocument:document;U.init(),n.g.debug(a.db);let f=o===`sandbox`?u.select(`[id="${t}"]`):n.p(`[id="${t}"]`),p=a.db.getActors(),m=a.db.getCreatedActors(),h=a.db.getDestroyedActors(),g=a.db.getBoxes(),_=a.db.getActorKeys(),v=a.db.getMessages(),y=a.db.getDiagramTitle(),b=a.db.hasAtLeastOneBox(),x=a.db.hasAtLeastOneBoxWithTitle(),S=await Ce(p,v,a);if(H.height=await Te(p,S,g),V.insertComputerIcon(f,t),V.insertDatabaseIcon(f,t),V.insertClockIcon(f,t),b&&(U.bumpVerticalPos(H.boxMargin),x&&U.bumpVerticalPos(g[0].textMaxHeight)),H.hideUnusedParticipants===!0){let e=new Set;v.forEach(t=>{e.add(t.from),e.add(t.to)}),_=_.filter(t=>e.has(t))}let C=new Map(_.map((e,t)=>{var n,r;return[(n=(r=p.get(e))==null?void 0:r.name)==null?e:n,t]}));be(f,p,m,_,0,v,!1);let w=await Pe(v,p,S,a);V.insertArrowHead(f,t),V.insertArrowCrossHead(f,t),V.insertArrowFilledHead(f,t),V.insertSequenceNumber(f,t),V.insertSolidTopArrowHead(f,t),V.insertSolidBottomArrowHead(f,t),V.insertStickTopArrowHead(f,t),V.insertStickBottomArrowHead(f,t),c===`neo`&&V.insertDropShadow(f,H);function T(e,t){let n=U.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),V.drawActivation(f,n,t,H,Z(e.from).length,a,C),U.insert(n.startx,t-10,n.stopx,t)}n.h(T,`activeEnd`);let E=1,D=1,O=[],k=[],A=0;for(let e of v){let t,r,i;switch(e.type){case a.db.LINETYPE.NOTE:U.resetVerticalPos(),r=e.noteModel,await _e(f,r,e.id);break;case a.db.LINETYPE.ACTIVE_START:U.newActivation(e,f,p);break;case a.db.LINETYPE.CENTRAL_CONNECTION:U.newActivation(e,f,p);break;case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:U.newActivation(e,f,p);break;case a.db.LINETYPE.ACTIVE_END:T(e,U.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:$(w,e,H.boxMargin,H.boxMargin+H.boxTextMargin,e=>U.newLoop(e));break;case a.db.LINETYPE.LOOP_END:t=U.endLoop(),await V.drawLoop(f,t,`loop`,H,e),U.bumpVerticalPos(t.stopy-U.getVerticalPos()),U.models.addLoop(t);break;case a.db.LINETYPE.RECT_START:$(w,e,H.boxMargin,H.boxMargin,e=>U.newLoop(void 0,e.message));break;case a.db.LINETYPE.RECT_END:t=U.endLoop(),k.push(t),U.models.addLoop(t),U.bumpVerticalPos(t.stopy-U.getVerticalPos());break;case a.db.LINETYPE.OPT_START:$(w,e,H.boxMargin,H.boxMargin+H.boxTextMargin,e=>U.newLoop(e));break;case a.db.LINETYPE.OPT_END:t=U.endLoop(),await V.drawLoop(f,t,`opt`,H,e),U.bumpVerticalPos(t.stopy-U.getVerticalPos()),U.models.addLoop(t);break;case a.db.LINETYPE.ALT_START:$(w,e,H.boxMargin,H.boxMargin+H.boxTextMargin,e=>U.newLoop(e));break;case a.db.LINETYPE.ALT_ELSE:$(w,e,H.boxMargin+H.boxTextMargin,H.boxMargin,e=>U.addSectionToLoop(e));break;case a.db.LINETYPE.ALT_END:t=U.endLoop(),await V.drawLoop(f,t,`alt`,H,e),U.bumpVerticalPos(t.stopy-U.getVerticalPos()),U.models.addLoop(t);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:$(w,e,H.boxMargin,H.boxMargin+H.boxTextMargin,e=>U.newLoop(e)),U.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:$(w,e,H.boxMargin+H.boxTextMargin,H.boxMargin,e=>U.addSectionToLoop(e));break;case a.db.LINETYPE.PAR_END:t=U.endLoop(),await V.drawLoop(f,t,`par`,H,e),U.bumpVerticalPos(t.stopy-U.getVerticalPos()),U.models.addLoop(t);break;case a.db.LINETYPE.AUTONUMBER:E=e.message.start||E,D=e.message.step||D,e.message.visible?a.db.enableSequenceNumbers():a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:$(w,e,H.boxMargin,H.boxMargin+H.boxTextMargin,e=>U.newLoop(e));break;case a.db.LINETYPE.CRITICAL_OPTION:$(w,e,H.boxMargin+H.boxTextMargin,H.boxMargin,e=>U.addSectionToLoop(e));break;case a.db.LINETYPE.CRITICAL_END:t=U.endLoop(),await V.drawLoop(f,t,`critical`,H,e),U.bumpVerticalPos(t.stopy-U.getVerticalPos()),U.models.addLoop(t);break;case a.db.LINETYPE.BREAK_START:$(w,e,H.boxMargin,H.boxMargin+H.boxTextMargin,e=>U.newLoop(e));break;case a.db.LINETYPE.BREAK_END:t=U.endLoop(),await V.drawLoop(f,t,`break`,H,e),U.bumpVerticalPos(t.stopy-U.getVerticalPos()),U.models.addLoop(t);break;default:try{i=e.msgModel,i.starty=U.getVerticalPos(),i.sequenceIndex=E,i.sequenceVisible=a.db.showSequenceNumbers(),i.id=e.id,i.from=e.from,i.to=e.to;let t=await q(f,i);xe(e,i,t,A,p,m,h),O.push({messageModel:i,lineStartY:t,msg:e}),U.models.addMessage(i)}catch(e){n.g.error(`error while drawing message`,e)}}[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(E+=D),A++}n.g.debug(`createdActors`,m),n.g.debug(`destroyedActors`,h),await J(f,p,_,!1,t,a,C);for(let e of O)await ye(f,e.messageModel,e.lineStartY,a,e.msg,t);H.mirrorActors&&await J(f,p,_,!0,t,a,C),k.forEach(e=>V.drawBackgroundRect(f,e)),j(f,p,_,H);for(let e of U.models.boxes){e.height=U.getVerticalPos()-e.y,U.insert(e.x,e.y,e.x+e.width,e.height);let t=H.boxMargin*2;e.startx=e.x-t,e.starty=e.y-t*.25,e.stopx=e.startx+e.width+2*t,e.stopy=e.starty+e.height+t*.75,e.stroke=`rgb(0,0,0, 0.5)`,V.drawBox(f,e,H)}b&&U.bumpVerticalPos(H.boxMargin);let M=Y(f,p,_,d),{bounds:N}=U.getBounds();N.startx===void 0&&(N.startx=0),N.starty===void 0&&(N.starty=0),N.stopx===void 0&&(N.stopx=0),N.stopy===void 0&&(N.stopy=0);let P=N.stopy-N.starty;P<M.maxHeight&&(P=M.maxHeight);let F=P+2*H.diagramMarginY;H.mirrorActors&&(F=F-H.boxMargin+H.bottomMarginAdj);let I=N.stopx-N.startx;I<M.maxWidth&&(I=M.maxWidth);let L=I+2*H.diagramMarginX;y&&f.append(`text`).text(y).attr(`x`,(N.stopx-N.startx)/2-2*H.diagramMarginX).attr(`y`,-25),r.c(f,F,L,H.useMaxWidth);let R=y?40:0,z=p.size&&c===`neo`?30:0;f.attr(`viewBox`,N.startx-H.diagramMarginX+` -`+(H.diagramMarginY+R)+` `+L+` `+(F+R+z)),n.g.debug(`models:`,U.models)},`draw`);async function Ce(e,i,a){let o={};for(let n of i)if(e.get(n.to)&&e.get(n.from)){let i=e.get(n.to);if(n.placement===a.db.PLACEMENT.LEFTOF&&!i.prevActor||n.placement===a.db.PLACEMENT.RIGHTOF&&!i.nextActor)continue;let s=n.placement!==void 0,c=!s,l=s?G(H):W(H),u=n.wrap?t.h.wrapLabel(n.message,H.width-2*H.wrapPadding,l):n.message,d=(r.k(u)?await r.i(n.message,r.b()):t.h.calculateTextDimensions(u,l)).width+2*H.wrapPadding;c&&n.from===i.nextActor?o[n.to]=r.s.getMax(o[n.to]||0,d):c&&n.from===i.prevActor?o[n.from]=r.s.getMax(o[n.from]||0,d):c&&n.from===n.to?(o[n.from]=r.s.getMax(o[n.from]||0,d/2),o[n.to]=r.s.getMax(o[n.to]||0,d/2)):n.placement===a.db.PLACEMENT.RIGHTOF?o[n.from]=r.s.getMax(o[n.from]||0,d):n.placement===a.db.PLACEMENT.LEFTOF?o[i.prevActor]=r.s.getMax(o[i.prevActor]||0,d):n.placement===a.db.PLACEMENT.OVER&&(i.prevActor&&(o[i.prevActor]=r.s.getMax(o[i.prevActor]||0,d/2)),i.nextActor&&(o[n.from]=r.s.getMax(o[n.from]||0,d/2)))}return n.g.debug(`maxMessageWidthPerActor:`,o),o}n.h(Ce,`getMaxMessageWidthPerActor`);var we=n.h(function(e){let n=0,r=K(H);for(let i in e.links){let e=t.h.calculateTextDimensions(i,r).width+2*H.wrapPadding+2*H.boxMargin;n<e&&(n=e)}return n},`getRequiredPopupWidth`);async function Te(e,n,i){let a=0;for(let n of e.keys()){let i=e.get(n);i.wrap&&(i.description=t.h.wrapLabel(i.description,H.width-2*H.wrapPadding,K(H)));let o=r.k(i.description)?await r.i(i.description,r.b()):t.h.calculateTextDimensions(i.description,K(H));i.width=i.wrap?H.width:r.s.getMax(H.width,o.width+2*H.wrapPadding),i.height=i.wrap?r.s.getMax(o.height,H.height):H.height,a=r.s.getMax(a,i.height)}for(let t in n){let i=e.get(t);if(!i)continue;let a=e.get(i.nextActor);if(!a){let e=n[t]+H.actorMargin-i.width/2;i.margin=r.s.getMax(e,H.actorMargin);continue}let o=n[t]+H.actorMargin-i.width/2-a.width/2;i.margin=r.s.getMax(o,H.actorMargin)}let o=0;return i.forEach(n=>{let i=W(H),a=n.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),s=H.boxMargin*8;a+=s,a-=2*H.boxTextMargin,n.wrap&&(n.name=t.h.wrapLabel(n.name,a-2*H.wrapPadding,i));let c=t.h.calculateTextDimensions(n.name,i);o=r.s.getMax(c.height,o);let l=r.s.getMax(a,c.width+2*H.wrapPadding);if(n.margin=H.boxTextMargin,a<l){let e=(l-a)/2;n.margin+=e}}),i.forEach(e=>e.textMaxHeight=o),r.s.getMax(a,H.height)}n.h(Te,`calculateActorMargins`);var Ee=n.h(async function(e,i,a){let o=i.get(e.from),s=i.get(e.to),c=o.x,l=s.x,u=e.wrap&&e.message,d=r.k(e.message)?await r.i(e.message,r.b()):t.h.calculateTextDimensions(u?t.h.wrapLabel(e.message,H.width,G(H)):e.message,G(H)),f={width:u?H.width:r.s.getMax(H.width,d.width+2*H.noteMargin),height:0,startx:o.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===a.db.PLACEMENT.RIGHTOF?(f.width=u?r.s.getMax(H.width,d.width):r.s.getMax(o.width/2+s.width/2,d.width+2*H.noteMargin),f.startx=c+(o.width+H.actorMargin)/2):e.placement===a.db.PLACEMENT.LEFTOF?(f.width=u?r.s.getMax(H.width,d.width+2*H.noteMargin):r.s.getMax(o.width/2+s.width/2,d.width+2*H.noteMargin),f.startx=c-f.width+(o.width-H.actorMargin)/2):e.to===e.from?(d=t.h.calculateTextDimensions(u?t.h.wrapLabel(e.message,r.s.getMax(H.width,o.width),G(H)):e.message,G(H)),f.width=u?r.s.getMax(H.width,o.width):r.s.getMax(o.width,H.width,d.width+2*H.noteMargin),f.startx=c+(o.width-f.width)/2):(f.width=Math.abs(c+o.width/2-(l+s.width/2))+H.actorMargin,f.startx=c<l?c+o.width/2-H.actorMargin/2:l+s.width/2-H.actorMargin/2),u&&(f.message=t.h.wrapLabel(e.message,f.width-2*H.wrapPadding,G(H))),n.g.debug(`NM:[${f.startx},${f.stopx},${f.starty},${f.stopy}:${f.width},${f.height}=${e.message}]`),f},`buildNoteModel`),De=4,Oe=6,ke=n.h(function(e,t){let{CENTRAL_CONNECTION:n,CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i}=t.db.LINETYPE;return[n,r,i].includes(e.centralConnection)},`hasCentralConnection`),Ae=n.h(function(e,t,n){let{CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i,BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:o}=t.db.LINETYPE,s=0;return(e.centralConnection===r||e.centralConnection===i)&&(s+=De),(e.centralConnection===r||e.centralConnection===i)&&(e.type===a||e.type===o)&&(s+=n?0:-Oe),s},`calculateCentralConnectionOffset`),je=n.h(function(e,t){let{SOLID_ARROW_TOP_REVERSE:n,SOLID_ARROW_TOP_REVERSE_DOTTED:r,SOLID_ARROW_BOTTOM_REVERSE:i,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:a,STICK_ARROW_TOP_REVERSE:o,STICK_ARROW_TOP_REVERSE_DOTTED:s,STICK_ARROW_BOTTOM_REVERSE:c,STICK_ARROW_BOTTOM_REVERSE_DOTTED:l}=t.db.LINETYPE;return[n,r,i,a,o,s,c,l].includes(e.type)},`isReverseArrowType`),Me=n.h(function(e,t){let{BIDIRECTIONAL_SOLID:n,BIDIRECTIONAL_DOTTED:r}=t.db.LINETYPE;return[n,r].includes(e.type)},`isBidirectionalArrowType`),Ne=n.h(function(e,i,a){let{look:o}=r.b();if(![a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};let[s,c]=Q(e.from,i),[l,u]=Q(e.to,i),d=s<=l,f=d?c:s,p=d?l:u;o===`neo`&&(e.type!==a.db.LINETYPE.SOLID_OPEN&&(p+=d?-3:3),(e.type===a.db.LINETYPE.BIDIRECTIONAL_SOLID||e.type===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(f+=d?3:-3)),f+=Ae(e,a,d);let m=Math.abs(l-u)>2,h=n.h(e=>d?-e:e,`adjustValue`);e.from===e.to?p=f:(e.activate&&!m&&(p+=h(H.activationWidth/2-1)),[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(p+=h(3)),[a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(f-=h(3)));let g=[s,c,l,u],_=Math.abs(f-p);e.wrap&&e.message&&(e.message=t.h.wrapLabel(e.message,r.s.getMax(_+2*H.wrapPadding,H.width),W(H)));let v=t.h.calculateTextDimensions(e.message,W(H));return{width:r.s.getMax(e.wrap?0:v.width+2*H.wrapPadding,_+2*H.wrapPadding,H.width),height:0,startx:f,stopx:p,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,g),toBounds:Math.max.apply(null,g)}},`buildMessageModel`),Pe=n.h(async function(e,t,i,a){let o={},s=[],c,l,u;for(let n of e){switch(n.type){case a.db.LINETYPE.LOOP_START:case a.db.LINETYPE.ALT_START:case a.db.LINETYPE.OPT_START:case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:case a.db.LINETYPE.CRITICAL_START:case a.db.LINETYPE.BREAK_START:s.push({id:n.id,msg:n.message,from:2**53-1,to:-(2**53-1),width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:n.message&&(c=s.pop(),o[c.id]=c,o[n.id]=c,s.push(c));break;case a.db.LINETYPE.LOOP_END:case a.db.LINETYPE.ALT_END:case a.db.LINETYPE.OPT_END:case a.db.LINETYPE.PAR_END:case a.db.LINETYPE.CRITICAL_END:case a.db.LINETYPE.BREAK_END:c=s.pop(),o[c.id]=c;break;case a.db.LINETYPE.ACTIVE_START:{let e=t.get(n.from?n.from:n.to.actor),r=Z(n.from?n.from:n.to.actor).length,i=e.x+e.width/2+(r-1)*H.activationWidth/2,a={startx:i,stopx:i+H.activationWidth,actor:n.from,enabled:!0};U.activations.push(a)}break;case a.db.LINETYPE.ACTIVE_END:{let e=U.activations.map(e=>e.actor).lastIndexOf(n.from);U.activations.splice(e,1).splice(0,1)}break}n.placement===void 0?(u=Ne(n,t,a),n.msgModel=u,u.startx&&u.stopx&&s.length>0&&s.forEach(e=>{if(c=e,u.startx===u.stopx){let e=t.get(n.from),i=t.get(n.to);c.from=r.s.getMin(e.x-u.width/2,e.x-e.width/2,c.from),c.to=r.s.getMax(i.x+u.width/2,i.x+e.width/2,c.to),c.width=r.s.getMax(c.width,Math.abs(c.to-c.from))-H.labelBoxWidth}else c.from=r.s.getMin(u.startx,c.from),c.to=r.s.getMax(u.stopx,c.to),c.width=r.s.getMax(c.width,u.width)-H.labelBoxWidth})):(l=await Ee(n,t,a),n.noteModel=l,s.forEach(e=>{c=e,c.from=r.s.getMin(c.from,l.startx),c.to=r.s.getMax(c.to,l.startx+l.width),c.width=r.s.getMax(c.width,Math.abs(c.from-c.to))-H.labelBoxWidth}))}return U.activations=[],n.g.debug(`Loop type widths:`,o),o},`calculateLoopBounds`),Fe={parser:d,get db(){return new g},renderer:{bounds:U,drawActors:J,drawActorsPopup:Y,setConf:X,draw:Se},styles:_,init:n.h(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,r.U({sequence:{wrap:e.wrap}}))},`init`)};exports.diagram=Fe;
@@ -0,0 +1 @@
1
+ require(`./chunk-Kud-AIAt.cjs`);var e=[Object.freeze(JSON.parse(`{"displayName":"Shell","name":"shellscript","patterns":[{"include":"#initial_context"}],"repository":{"alias_statement":{"begin":"[\\\\t ]*+(alias)[\\\\t ]*+((?:((?<!\\\\w)-\\\\w+)\\\\b[\\\\t ]*+)*)[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"storage.type.alias.shell"},"2":{"patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"}]},"3":{"name":"string.unquoted.argument.shell constant.other.option.shell"},"4":{"name":"variable.other.assignment.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"variable.other.assignment.shell"},"7":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"8":{"name":"punctuation.definition.array.access.shell"},"9":{"name":"keyword.operator.assignment.shell"},"10":{"name":"keyword.operator.assignment.compound.shell"},"11":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\t ]|$)|(?:(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&))","endCaptures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"name":"meta.expression.assignment.alias.shell","patterns":[{"include":"#normal_context"}]},"argument":{"begin":"[\\\\t ]++(?![\\\\n#\\\\&(\\\\[|]|$|;)","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)\`])","endCaptures":{},"name":"meta.argument.shell","patterns":[{"include":"#argument_context"},{"include":"#line_continuation"}]},"argument_context":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell","patterns":[{"match":"\\\\*","name":"variable.language.special.wildcard.shell"},{"include":"#variable"},{"include":"#numeric_literal"},{"captures":{"1":{"name":"constant.language.$1.shell"}},"match":"(?<!\\\\w)\\\\b(true|false)\\\\b(?!\\\\w)"}]}},"match":"[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+(?!>))"},{"include":"#normal_context"}]},"arithmetic_double":{"patterns":[{"begin":"\\\\(\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"end":"\\\\)\\\\s*\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"arithmetic_no_dollar":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"array_access_inline":{"captures":{"1":{"name":"punctuation.section.array.shell"},"2":{"patterns":[{"include":"#special_expansion"},{"include":"#string"},{"include":"#variable"}]},"3":{"name":"punctuation.section.array.shell"}},"match":"(\\\\[)([^]\\\\[]+)(])"},"array_value":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))[\\\\t ]*+(\\\\()","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"punctuation.definition.array.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.shell"}},"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"variable.other.assignment.array.shell entity.other.attribute-name.shell"},"2":{"name":"keyword.operator.assignment.shell punctuation.definition.assignment.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(=)"},{"captures":{"1":{"name":"punctuation.definition.bracket.named-array.shell"},"2":{"name":"string.unquoted.shell entity.other.attribute-name.bracket.shell"},"3":{"name":"punctuation.definition.bracket.named-array.shell"},"4":{"name":"punctuation.definition.assignment.shell"}},"match":"(\\\\[)(.+?)(])(=)"},{"include":"#normal_context"},{"include":"#simple_unquoted"}]},"assignment_statement":{"patterns":[{"include":"#array_value"},{"include":"#modified_assignment_statement"},{"include":"#normal_assignment_statement"}]},"basic_command_name":{"captures":{"1":{"name":"storage.modifier.$1.shell"},"2":{"name":"entity.name.function.call.shell entity.name.command.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"support.function.builtin.shell"},{"include":"#variable"}]}},"match":"(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?:((?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$))|((?![\\"']|\\\\\\\\\\\\n?$)[^\\\\t\\\\n\\\\r !\\"'<>]+?))(?:(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\))","name":"meta.statement.command.name.basic.shell"},"block_comment":{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.shell"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.shell"}},"name":"comment.block.shell"},"boolean":{"match":"\\\\b(?:true|false)\\\\b","name":"constant.language.$0.shell"},"case_statement":{"begin":"\\\\b(case)\\\\b[\\\\t ]*+(.+?)[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.shell"},"2":{"patterns":[{"include":"#initial_context"}]},"3":{"name":"keyword.control.in.shell"}},"end":"\\\\besac\\\\b","endCaptures":{"0":{"name":"keyword.control.esac.shell"}},"name":"meta.case.shell","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.operator.pattern.case.default.shell"}},"match":"[\\\\t ]*+(\\\\* *\\\\))"},{"begin":"(?<!\\\\))(?![\\\\t ]*+(?:esac\\\\b|$))","beginCaptures":{},"end":"(?=\\\\besac\\\\b)|(\\\\))","endCaptures":{"1":{"name":"keyword.operator.pattern.case.shell"}},"name":"meta.case.entry.pattern.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"(?<=\\\\))","beginCaptures":{},"end":"(;;)|(?=\\\\besac\\\\b)","endCaptures":{"1":{"name":"punctuation.terminator.statement.case.shell"}},"name":"meta.case.entry.body.shell","patterns":[{"include":"#typical_statements"},{"include":"#initial_context"}]}]},"case_statement_context":{"patterns":[{"match":"\\\\*","name":"variable.language.special.quantifier.star.shell keyword.operator.quantifier.star.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\+","name":"variable.language.special.quantifier.plus.shell keyword.operator.quantifier.plus.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\?","name":"variable.language.special.quantifier.question.shell keyword.operator.quantifier.question.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"@","name":"variable.language.special.at.shell keyword.operator.at.shell punctuation.definition.regex.at.shell"},{"match":"\\\\|","name":"keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"},{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"match":"(?<=\\\\tin| in|[\\\\t ]|;;)\\\\(","name":"keyword.operator.pattern.case.shell"},{"begin":"(?<=\\\\S)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"name":"meta.parenthese.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"name":"string.regexp.character-class.shell","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"}]},{"include":"#string"},{"match":"[^\\\\t\\\\n )*?@\\\\[|]","name":"string.unquoted.pattern.shell string.regexp.unquoted.shell"}]},"command_name_range":{"begin":"\\\\G","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)\`])|(?=<)","endCaptures":{},"name":"meta.statement.command.name.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{"include":"#variable"},{"captures":{"1":{"name":"entity.name.function.call.shell entity.name.command.shell"}},"match":"(?<!\\\\w)(?<=\\\\G|[\\"')}])([^\\\\t\\\\n\\\\r \\"\\\\&');->\`{|]+)"},{"begin":"(?:\\\\G|(?<![\\\\t\\\\n #\\\\&;{|]))(\\\\$?)((\\")|('))","beginCaptures":{"1":{"name":"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},"2":{},"3":{"name":"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},"4":{"name":"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},"end":"(?<!\\\\G)(?<=\\\\2)","endCaptures":{},"patterns":[{"include":"#continuation_of_single_quoted_command_name"},{"include":"#continuation_of_double_quoted_command_name"}]},{"include":"#line_continuation"},{"include":"#simple_unquoted"}]},"command_statement":{"begin":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"},{"include":"#heredoc"}]},"comment":{"captures":{"1":{"name":"comment.line.number-sign.shell meta.shebang.shell"},"2":{"name":"punctuation.definition.comment.shebang.shell"},"3":{"name":"comment.line.number-sign.shell"},"4":{"name":"punctuation.definition.comment.shell"}},"match":"(?:^|[\\\\t ]++)(?:((#!).*)|((#).*))"},"comments":{"patterns":[{"include":"#block_comment"},{"include":"#line_comment"}]},"compound-command":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical-expression"},{"include":"#initial_context"}]},{"begin":"(?<=\\\\s|^)\\\\{(?=\\\\s|$)","beginCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"end":"(?<=^|;)\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"continuation_of_double_quoted_command_name":{"begin":"\\\\G(?<=\\")","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command","end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"continuation_of_single_quoted_command_name":{"begin":"\\\\G(?<=')","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command","end":"'","endCaptures":{"0":{"name":"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}}},"custom_command_names":{"patterns":[]},"custom_commands":{"patterns":[]},"double_quote_context":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"double_quote_escape_char":{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},"floating_keyword":{"patterns":[{"match":"(?<=^|[\\\\t \\\\&;])(?:then|elif|else|done|end|do|if|fi)(?=[\\\\t \\\\&;]|$)","name":"keyword.control.$0.shell"}]},"for_statement":{"patterns":[{"begin":"\\\\b(for)\\\\b[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"},"2":{"name":"variable.other.for.shell"},"3":{"name":"keyword.control.in.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.in.shell","patterns":[{"include":"#string"},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},{"begin":"\\\\b(for)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.shell","patterns":[{"include":"#arithmetic_double"},{"include":"#normal_context"}]}]},"function_definition":{"applyEndPatternLast":1,"begin":"[\\\\t ]*+(?:\\\\b(function)\\\\b[\\\\t ]*+([^\\\\t\\\\n\\\\r \\"'()=]+)(?:(\\\\()[\\\\t ]*+(\\\\)))?|([^\\\\t\\\\n\\\\r \\"'()=]+)[\\\\t ]*+(\\\\()[\\\\t ]*+(\\\\)))","beginCaptures":{"1":{"name":"storage.type.function.shell"},"2":{"name":"entity.name.function.shell"},"3":{"name":"punctuation.definition.arguments.shell"},"4":{"name":"punctuation.definition.arguments.shell"},"5":{"name":"entity.name.function.shell"},"6":{"name":"punctuation.definition.arguments.shell"},"7":{"name":"punctuation.definition.arguments.shell"}},"end":"(?<=[)}])","endCaptures":{},"name":"meta.function.shell","patterns":[{"match":"\\\\G[\\\\t\\\\n ]"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"include":"#initial_context"}]},"heredoc":{"patterns":[{"begin":"((?<!<)<<-)[\\\\t ]*+([\\"'])[\\\\t ]*+([^\\"']+?)(?=[\\"\\\\&';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.indent.$3","end":"^\\\\t*\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.$0.shell"}},"patterns":[]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([\\"'])[\\\\t ]*+([^\\"']+?)(?=[\\"\\\\&';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.no-indent.$3","end":"^\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[]},{"begin":"((?<!<)<<-)[\\\\t ]*+([^\\\\t \\"']+)(?=[\\"\\\\&';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.indent.$2","end":"^\\\\t*\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([^\\\\t \\"']+)(?=[\\"\\\\&';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.no-indent.$2","end":"^\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]}]},"herestring":{"patterns":[{"begin":"(<<<)\\\\s*(('))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.single.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.single.shell","end":"(')","endCaptures":{"0":{"name":"string.quoted.single.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell"},{"begin":"(<<<)\\\\s*((\\"))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.double.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.double.shell","end":"(\\")","endCaptures":{"0":{"name":"string.quoted.double.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell","patterns":[{"include":"#double_quote_context"}]},{"captures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.unquoted.herestring.shell","patterns":[{"include":"#initial_context"}]}},"match":"(<<<)\\\\s*(([^)\\\\\\\\\\\\s]|\\\\\\\\.)+)","name":"meta.herestring.shell"}]},"initial_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#logical_expression_double"},{"include":"#logical_expression_single"},{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#loop"},{"include":"#function_definition"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#misc_ranges"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#alias_statement"},{"include":"#normal_statement"},{"include":"#string"},{"include":"#support"}]},"inline_comment":{"captures":{"1":{"name":"comment.block.shell punctuation.definition.comment.begin.shell"},"2":{"name":"comment.block.shell"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.shell punctuation.definition.comment.end.shell"},{"match":"\\\\*","name":"comment.block.shell"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"},"interpolation":{"patterns":[{"include":"#arithmetic_dollar"},{"include":"#subshell_dollar"},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"name":"string.interpolated.backtick.shell","patterns":[{"match":"\\\\\\\\[$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"begin":"(?<=\\\\W)(?=#)(?!#\\\\{)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.shell"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.shell"}},"end":"(?=\`)","name":"comment.line.number-sign.shell"}]},{"include":"#initial_context"}]}]},"keyword":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(then|else|elif|fi|for|in|do|done|select|continue|esac|while|until|return)(?=[\\\\&;\\\\s]|$)","name":"keyword.control.shell"},{"match":"(?<=^|[\\\\&;\\\\s])(?:export|declare|typeset|local|readonly)(?=[\\\\&;\\\\s]|$)","name":"storage.modifier.shell"}]},"line_comment":{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.shell"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.shell","patterns":[{"include":"#line_continuation_character"}]},"line_continuation":{"match":"\\\\\\\\(?=\\\\n)","name":"constant.character.escape.line-continuation.shell"},"logical-expression":{"patterns":[{"include":"#arithmetic_no_dollar"},{"match":"=[=~]?|!=?|[<>]|&&|\\\\|\\\\|","name":"keyword.operator.logical.shell"},{"match":"(?<!\\\\S)-(nt|ot|ef|eq|ne|l[et]|g[et]|[GLNOSa-hknopr-uwxz])\\\\b","name":"keyword.operator.logical.shell"}]},"logical_expression_context":{"patterns":[{"include":"#regex_comparison"},{"include":"#arithmetic_no_dollar"},{"include":"#logical-expression"},{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#comment"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"logical_expression_double":{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"logical_expression_single":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"loop":{"patterns":[{"begin":"(?<=^|[\\\\&;\\\\s])(for)\\\\s+(.+?)\\\\s+(in)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell","patterns":[{"include":"#string"}]},"3":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.for-in-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(while|until)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.while-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(select)\\\\s+((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell"}},"end":"(?<=^|[\\\\&;\\\\s])(done)(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"1":{"name":"keyword.control.shell"}},"name":"meta.scope.select-block.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])if(?=[\\\\&;\\\\s]|$)","beginCaptures":{"0":{"name":"keyword.control.if.shell"}},"end":"(?<=^|[\\\\&;\\\\s])fi(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"keyword.control.fi.shell"}},"name":"meta.scope.if-block.shell","patterns":[{"include":"#initial_context"}]}]},"math":{"patterns":[{"include":"#variable"},{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":";","name":"punctuation.separator.semicolon.range"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"},{"match":"(?<!\\\\w)[0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"}]},"math_operators":{"patterns":[{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"}]},"misc_ranges":{"patterns":[{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#subshell_dollar"},{"begin":"(?<![^\\\\t ])(\\\\{)(?![$\\\\w])","beginCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"modified_assignment_statement":{"begin":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","beginCaptures":{"0":{"name":"storage.modifier.$0.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell meta.expression.assignment.modified.shell","patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"},{"include":"#array_value"},{"captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"10":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"11":{"name":"constant.numeric.shell constant.numeric.other.shell"},"12":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"13":{"name":"constant.numeric.shell constant.numeric.version.shell"},"14":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))?(?:(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}]))?"},{"include":"#normal_context"}]},"modifiers":{"match":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","name":"storage.modifier.$0.shell"},"normal_assignment_statement":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.expression.assignment.shell","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#normal_assignment_statement"},{"begin":"(?<=[\\\\t ])(?![\\\\t ]|\\\\w+=)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.env.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"}]},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},"normal_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#misc_ranges"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"},{"include":"#parenthese"}]},"normal_statement":{"begin":"(?!^[\\\\t ]*+$)(?:(?<=(?:^until| until|\\\\tuntil|^while| while|\\\\twhile|^elif| elif|\\\\telif|^else| else|\\\\telse|^then| then|\\\\tthen|^do| do|\\\\tdo|^if| if|\\\\tif) )|(?<=^|[!\\\\&(;\`{|]))[\\\\t ]*+(?!nocorrect\\\\W|nocorrect\\\\$|function\\\\W|function\\\\$|foreach\\\\W|foreach\\\\$|repeat\\\\W|repeat\\\\$|logout\\\\W|logout\\\\$|coproc\\\\W|coproc\\\\$|select\\\\W|select\\\\$|while\\\\W|while\\\\$|pushd\\\\W|pushd\\\\$|until\\\\W|until\\\\$|case\\\\W|case\\\\$|done\\\\W|done\\\\$|elif\\\\W|elif\\\\$|else\\\\W|else\\\\$|esac\\\\W|esac\\\\$|popd\\\\W|popd\\\\$|then\\\\W|then\\\\$|time\\\\W|time\\\\$|for\\\\W|for\\\\$|end\\\\W|end\\\\$|fi\\\\W|fi\\\\$|do\\\\W|do\\\\$|in\\\\W|in\\\\$|if\\\\W|if\\\\$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell","patterns":[{"include":"#typical_statements"}]},"normal_statement_seperator":{"captures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"match":"(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&)"},"numeric_literal":{"captures":{"1":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"2":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"3":{"name":"constant.numeric.shell constant.numeric.other.shell"},"4":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"5":{"name":"constant.numeric.shell constant.numeric.version.shell"},"6":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}])"},"option":{"begin":"[\\\\t ]++(-)((?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;]))","beginCaptures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"contentName":"string.unquoted.argument constant.other.option","end":"(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"patterns":[{"include":"#option_context"}]},"option_context":{"patterns":[{"include":"#misc_ranges"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"parenthese":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"name":"meta.parenthese.group.shell","patterns":[{"include":"#initial_context"}]}]},"pathname":{"patterns":[{"match":"(?<=[:=\\\\s]|^)~","name":"keyword.operator.tilde.shell"},{"match":"[*?]","name":"keyword.operator.glob.shell"},{"begin":"([!*+?@])(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.extglob.shell"},"2":{"name":"punctuation.definition.extglob.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.extglob.shell"}},"name":"meta.structure.extglob.shell","patterns":[{"include":"#initial_context"}]}]},"pipeline":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(time)(?=[\\\\&;\\\\s]|$)","name":"keyword.other.shell"},{"match":"[!|]","name":"keyword.operator.pipe.shell"}]},"redirect_fix":{"captures":{"1":{"name":"keyword.operator.redirect.shell"},"2":{"name":"string.unquoted.argument.shell"}},"match":"(>>?)[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+)"},"redirect_number":{"captures":{"1":{"name":"keyword.operator.redirect.stdout.shell"},"2":{"name":"keyword.operator.redirect.stderr.shell"},"3":{"name":"keyword.operator.redirect.$3.shell"}},"match":"(?<=[\\\\t ])(?:(1)|(2)|(\\\\d+))(?=>)"},"redirection":{"patterns":[{"begin":"[<>]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.interpolated.process-substitution.shell","patterns":[{"include":"#initial_context"}]},{"match":"(?<![<>])(&>|\\\\d*>&\\\\d*|\\\\d*(>>|[<>])|\\\\d*<&|\\\\d*<>)(?![<>])","name":"keyword.operator.redirect.shell"}]},"regex_comparison":{"match":"=~","name":"keyword.operator.logical.regex.shell"},"regexp":{"patterns":[{"match":".+"}]},"simple_options":{"captures":{"0":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"match":"[\\\\t ]++(-)(\\\\w+)"}]}},"match":"(?:[\\\\t ]++-\\\\w+)*"},"simple_unquoted":{"match":"[^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]","name":"string.unquoted.shell"},"special_expansion":{"match":"!|:[-=?]?|[*@]|##?|%%|[%/]","name":"keyword.operator.expansion.shell"},"start_of_command":{"match":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)"},"string":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.shell"},{"begin":"\\\\$?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.double.shell","patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"\\\\$'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.dollar.shell","patterns":[{"match":"\\\\\\\\['\\\\\\\\abefnrtv]","name":"constant.character.escape.ansi-c.shell"},{"match":"\\\\\\\\[0-9]{3}\\"","name":"constant.character.escape.octal.shell"},{"match":"\\\\\\\\x\\\\h{2}\\"","name":"constant.character.escape.hex.shell"},{"match":"\\\\\\\\c.\\"","name":"constant.character.escape.control-char.shell"}]}]},"subshell_dollar":{"patterns":[{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"name":"meta.scope.subshell","patterns":[{"include":"#parenthese"},{"include":"#initial_context"}]}]},"support":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])[.:](?=[\\\\&;\\\\s]|$)","name":"support.function.builtin.shell"}]},"typical_statements":{"patterns":[{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#while_statement"},{"include":"#function_definition"},{"include":"#command_statement"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#normal_context"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},"2":{"name":"variable.parameter.positional.all.shell"}},"match":"(\\\\$)(@(?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"variable.parameter.positional.shell"}},"match":"(\\\\$)([0-9](?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.language.special.shell"},"2":{"name":"variable.language.special.shell"}},"match":"(\\\\$)([-!#$*0?_](?!\\\\w))"},{"begin":"(\\\\$)(\\\\{)[\\\\t ]*+(?=\\\\d)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"[0-9]+","name":"variable.parameter.positional.shell"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"begin":"(\\\\$)(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.other.normal.shell"},"2":{"name":"variable.other.normal.shell"}},"match":"(\\\\$)(\\\\w+(?!\\\\w))"}]},"while_statement":{"patterns":[{"begin":"\\\\b(while)\\\\b","beginCaptures":{"1":{"name":"keyword.control.while.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.while.shell","patterns":[{"include":"#line_continuation"},{"include":"#math_operators"},{"include":"#option"},{"include":"#simple_unquoted"},{"include":"#normal_context"},{"include":"#string"}]}]}},"scopeName":"source.shell","aliases":["bash","sh","shell","zsh"]}`))];exports.default=e;