@kabmo-labs/kabmo 0.31.0 → 0.32.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 (509) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +446 -427
  3. package/dist/client/static/js/CsvGrid-4gx0jevc.js +2 -0
  4. package/dist/client/static/js/DocxView-0667nr8h.js +58 -0
  5. package/dist/client/static/js/DrawioView-522v0d0r.js +5 -0
  6. package/dist/client/static/js/ImageView-t8xp60hm.js +1 -0
  7. package/dist/client/static/js/LayoutWrapper-xjnveecv.js +2 -0
  8. package/dist/client/static/js/Modal-k2jr9hc4.js +38 -0
  9. package/dist/client/static/js/PdfView-3fx172xh.js +1 -0
  10. package/dist/client/static/js/SessionsView-n3agmf5t.js +1 -0
  11. package/dist/client/static/js/SheetView-nmrdb1b8.js +140 -0
  12. package/dist/client/static/js/SvgPreview-0xsc6xam.js +1 -0
  13. package/dist/client/static/js/__vite-browser-external-2447137e-mq6vaetg.js +0 -0
  14. package/dist/client/static/js/abnfDiagram-O67JEVCF-jj31rs62.js +1 -0
  15. package/dist/client/static/js/andromeeda-17pn42cc.js +1 -0
  16. package/dist/client/static/js/architecture-7GRP2DOG-1y9zvsyt.js +1 -0
  17. package/dist/client/static/js/architectureDiagram-NJMV4G6O-ay3yr7pf.js +36 -0
  18. package/dist/client/static/js/astro-qgx1r159.js +1 -0
  19. package/dist/client/static/js/aurora-x-hxy97145.js +1 -0
  20. package/dist/client/static/js/ayu-dark-x0jd4baz.js +1 -0
  21. package/dist/client/static/js/ayu-light-12fg03q0.js +1 -0
  22. package/dist/client/static/js/ayu-mirage-52h7xjbv.js +1 -0
  23. package/dist/client/static/js/bash-m0qjsyy0.js +1 -0
  24. package/dist/client/static/js/blockDiagram-BEXU5L5S-4x33e16k.js +140 -0
  25. package/dist/client/static/js/c-wkgxb1t1.js +1 -0
  26. package/dist/client/static/js/c4Diagram-YGBWAQC7-dtb81cgz.js +38 -0
  27. package/dist/client/static/js/catppuccin-frappe-fqgpn512.js +1 -0
  28. package/dist/client/static/js/catppuccin-latte-tr2x6gmz.js +1 -0
  29. package/dist/client/static/js/catppuccin-macchiato-rm7kh084.js +1 -0
  30. package/dist/client/static/js/catppuccin-mocha-hw0dzp99.js +1 -0
  31. package/dist/client/static/js/classDiagram-v2-NBCMYWYE-vk5a2n9w.js +217 -0
  32. package/dist/client/static/js/clike-h8p24dc6.js +1 -0
  33. package/dist/client/static/js/clojure-tf457n84.js +1 -0
  34. package/dist/client/static/js/clojure-w19rx1x5.js +1 -0
  35. package/dist/client/static/js/cmake-qpejsvqg.js +1 -0
  36. package/dist/client/static/js/cose-bilkent-JH36ORCC-6rbjbe19.js +1 -0
  37. package/dist/client/static/js/cpp-y0t6mynx.js +1 -0
  38. package/dist/client/static/js/csharp-dap1ppts.js +1 -0
  39. package/dist/client/static/js/css-t4ngafan.js +1 -0
  40. package/dist/client/static/js/css-tf1s0nb7.js +1 -0
  41. package/dist/client/static/js/cynefin-OW5HDTMX-k2188qcq.js +1 -0
  42. package/dist/client/static/js/cynefinDiagram-VND7K2PF-vyjksedr.js +62 -0
  43. package/dist/client/static/js/dagre-6A5THRUB-7hey38z5.js +4 -0
  44. package/dist/client/static/js/dark-plus-weqfnwnf.js +1 -0
  45. package/dist/client/static/js/dart-dxn88tw0.js +1 -0
  46. package/dist/client/static/js/diagram-22UHCM2B-aes06jde.js +200 -0
  47. package/dist/client/static/js/diagram-3UASUU5V-3cfkgm3x.js +24 -0
  48. package/dist/client/static/js/diagram-ATOU4E4O-z8mfhwpy.js +3 -0
  49. package/dist/client/static/js/diagram-CDSNMT55-t4821ctz.js +30 -0
  50. package/dist/client/static/js/diagram-MLGK6HIB-23yxbfrx.js +24 -0
  51. package/dist/client/static/js/diagram-MPIPVDR6-chhtf7v0.js +41 -0
  52. package/dist/client/static/js/diff-r1sqd2db.js +1 -0
  53. package/dist/client/static/js/dockerfile-5b87ghm7.js +1 -0
  54. package/dist/client/static/js/dockerfile-d43jt8fq.js +1 -0
  55. package/dist/client/static/js/dracula-k5pe1hsy.js +1 -0
  56. package/dist/client/static/js/dracula-soft-xqzm7g02.js +1 -0
  57. package/dist/client/static/js/ebnfDiagram-ZINNZB2B-9jejcvfr.js +1 -0
  58. package/dist/client/static/js/elixir-rpa1g4gy.js +1 -0
  59. package/dist/client/static/js/elk-276RUBZZ-xhhtkf58.js +2 -0
  60. package/dist/client/static/js/erDiagram-OPXOYQCR-mt2apjjb.js +99 -0
  61. package/dist/client/static/js/erlang-1ch2hjv9.js +1 -0
  62. package/dist/client/static/js/erlang-6m6tpt72.js +1 -0
  63. package/dist/client/static/js/eventmodeling-NTZA5JFV-pdr0qn0n.js +1 -0
  64. package/dist/client/static/js/everforest-dark-v44f35e9.js +1 -0
  65. package/dist/client/static/js/everforest-light-c7m7g4z4.js +1 -0
  66. package/dist/client/static/js/flowDiagram-KWPJA3E3-zvz0mxne.js +1 -0
  67. package/dist/client/static/js/ganttDiagram-FUAMR5RP-8cm7a29w.js +292 -0
  68. package/dist/client/static/js/ghostty-web-2gt2tp72.js +13 -0
  69. package/dist/client/static/js/gitGraph-4MIJSDKK-wmqf046s.js +1 -0
  70. package/dist/client/static/js/gitGraphDiagram-X574FWY7-5s0gbnx2.js +106 -0
  71. package/dist/client/static/js/github-dark-default-1000qs8y.js +1 -0
  72. package/dist/client/static/js/github-dark-dimmed-vfghfgh1.js +1 -0
  73. package/dist/client/static/js/github-dark-fvd3e45k.js +1 -0
  74. package/dist/client/static/js/github-dark-high-contrast-2j07czxg.js +1 -0
  75. package/dist/client/static/js/github-light-9r4ahj0m.js +1 -0
  76. package/dist/client/static/js/github-light-default-6d4nszch.js +1 -0
  77. package/dist/client/static/js/github-light-high-contrast-qwzscwzg.js +1 -0
  78. package/dist/client/static/js/go-nfrqbjpq.js +1 -0
  79. package/dist/client/static/js/go-rtqh5zp3.js +1 -0
  80. package/dist/client/static/js/graphql-692h0n2x.js +1 -0
  81. package/dist/client/static/js/groovy-63s5pygd.js +1 -0
  82. package/dist/client/static/js/groovy-s992001c.js +1 -0
  83. package/dist/client/static/js/gruvbox-dark-hard-ctttkbm1.js +1 -0
  84. package/dist/client/static/js/gruvbox-dark-medium-vh8mkpgj.js +1 -0
  85. package/dist/client/static/js/gruvbox-dark-soft-9f1ph8sj.js +1 -0
  86. package/dist/client/static/js/gruvbox-light-hard-n3ma2f5b.js +1 -0
  87. package/dist/client/static/js/gruvbox-light-medium-hkamn7bg.js +1 -0
  88. package/dist/client/static/js/gruvbox-light-soft-r39t4g97.js +1 -0
  89. package/dist/client/static/js/haskell-ev7ynt8z.js +1 -0
  90. package/dist/client/static/js/haskell-phxh4hcg.js +1 -0
  91. package/dist/client/static/js/hcl-wndsmevr.js +1 -0
  92. package/dist/client/static/js/horizon-bright-wz5mjtp4.js +1 -0
  93. package/dist/client/static/js/horizon-pr13gmaz.js +1 -0
  94. package/dist/client/static/js/houston-mrdq0gj4.js +1 -0
  95. package/dist/client/static/js/html-pv88ny12.js +1 -0
  96. package/dist/client/static/js/index-0j518hqm.js +2 -0
  97. package/dist/client/static/js/index-2gfc25tq.js +1 -0
  98. package/dist/client/static/js/index-2xj14800.js +2 -0
  99. package/dist/client/static/js/index-360d7j0d.js +1 -0
  100. package/dist/client/static/js/index-3vhznzgr.js +2 -0
  101. package/dist/client/static/js/index-4s8ttfxj.js +474 -0
  102. package/dist/client/static/js/index-532btjmp.js +2 -0
  103. package/dist/client/static/js/index-59jb53v3.js +2 -0
  104. package/dist/client/static/js/index-5x95n3hx.js +1 -0
  105. package/dist/client/static/js/index-5y7c62sm.js +7 -0
  106. package/dist/client/static/js/index-61tm0v57.js +1 -0
  107. package/dist/client/static/js/index-629kfbcb.js +2 -0
  108. package/dist/client/static/js/index-6q80csr0.js +2 -0
  109. package/dist/client/static/js/index-7fdp9c7m.js +2 -0
  110. package/dist/client/static/js/index-7n68yx6m.js +2 -0
  111. package/dist/client/static/js/index-9sd0vjmh.js +2 -0
  112. package/dist/client/static/js/index-9t82sx0w.js +2 -0
  113. package/dist/client/static/js/index-a0bdavdr.js +2 -0
  114. package/dist/client/static/js/index-a293pdg7.js +2 -0
  115. package/dist/client/static/js/index-a6k2hqke.js +1 -0
  116. package/dist/client/static/js/index-a733k69t.js +2 -0
  117. package/dist/client/static/js/index-ay34b398.js +214 -0
  118. package/dist/client/static/js/index-bbggh3f8.js +2 -0
  119. package/dist/client/static/js/index-brj8qwa6.js +2 -0
  120. package/dist/client/static/js/index-c0x6s6f7.js +3 -0
  121. package/dist/client/static/js/index-c93sp4yh.js +1 -0
  122. package/dist/client/static/js/index-dnp07j57.js +1 -0
  123. package/dist/client/static/js/index-dq1kdt03.js +2 -0
  124. package/dist/client/static/js/index-dt7e1328.js +2 -0
  125. package/dist/client/static/js/index-e94a1en0.css +1 -0
  126. package/dist/client/static/js/index-ehcpzk5b.js +2 -0
  127. package/dist/client/static/js/index-ejgd8w3s.js +179 -0
  128. package/dist/client/static/js/index-fdbfzshx.js +2 -0
  129. package/dist/client/static/js/index-g33knza2.js +2 -0
  130. package/dist/client/static/js/index-gbfg0anm.js +2 -0
  131. package/dist/client/static/js/index-h06bcfds.js +1 -0
  132. package/dist/client/static/js/index-h6jxmkxk.js +129 -0
  133. package/dist/client/static/js/index-h7pn9qw6.js +2 -0
  134. package/dist/client/static/js/index-hc2jmzpx.js +314 -0
  135. package/dist/client/static/js/index-jppt5mgc.js +2 -0
  136. package/dist/client/static/js/index-jz9fpznk.js +9 -0
  137. package/dist/client/static/js/index-kg86e3sy.js +12 -0
  138. package/dist/client/static/js/index-kpspnztv.js +2 -0
  139. package/dist/client/static/js/index-nmmxb4va.js +2 -0
  140. package/dist/client/static/js/index-p7btwjvj.js +3 -0
  141. package/dist/client/static/js/index-pf5sbesf.js +2 -0
  142. package/dist/client/static/js/index-pf7syd7t.js +3 -0
  143. package/dist/client/static/js/index-qkscve6n.js +2 -0
  144. package/dist/client/static/js/index-qnwqaczk.js +4 -0
  145. package/dist/client/static/js/index-rg8jpbsw.js +2 -0
  146. package/dist/client/static/js/index-sa9cp6km.js +2 -0
  147. package/dist/client/static/js/index-vd0e25p0.js +1 -0
  148. package/dist/client/static/js/index-vnvrzwht.js +240 -0
  149. package/dist/client/static/js/index-vtbbfwx0.js +2 -0
  150. package/dist/client/static/js/index-w7xbfv44.js +2 -0
  151. package/dist/client/static/js/index-wzma5n54.js +2 -0
  152. package/dist/client/static/js/index-x07kp3jz.js +2 -0
  153. package/dist/client/static/js/index-xj9649ac.js +332 -0
  154. package/dist/client/static/js/index-xya34x4v.js +2 -0
  155. package/dist/client/static/js/index-ye3sr7db.js +89 -0
  156. package/dist/client/static/js/index-z4v1xmh1.js +2 -0
  157. package/dist/client/static/js/index-z5s27s26.js +1 -0
  158. package/dist/client/static/js/info-A6RAGUB7-zg3twte6.js +1 -0
  159. package/dist/client/static/js/infoDiagram-VRGFBTTK-3w1yz32c.js +2 -0
  160. package/dist/client/static/js/ini-cg0a5wm3.js +1 -0
  161. package/dist/client/static/js/ishikawaDiagram-OU5B5YK6-ckt471dy.js +70 -0
  162. package/dist/client/static/js/java-vcck089n.js +1 -0
  163. package/dist/client/static/js/javascript-18thb3jp.js +1 -0
  164. package/dist/client/static/js/javascript-4kw2j9t3.js +1 -0
  165. package/dist/client/static/js/journeyDiagram-ZHPQQLJL-kfvn4w7e.js +139 -0
  166. package/dist/client/static/js/json-j5q8nt57.js +1 -0
  167. package/dist/client/static/js/json5-hmb38a78.js +1 -0
  168. package/dist/client/static/js/jsx-ht9zyzwa.js +1 -0
  169. package/dist/client/static/js/julia-0j0gsjvc.js +1 -0
  170. package/dist/client/static/js/julia-ft9kd90a.js +1 -0
  171. package/dist/client/static/js/kanagawa-dragon-nya1w1ke.js +1 -0
  172. package/dist/client/static/js/kanagawa-lotus-hwn4nbn5.js +1 -0
  173. package/dist/client/static/js/kanagawa-wave-7rsxqd8r.js +1 -0
  174. package/dist/client/static/js/kanban-definition-PNTS6WVX-0q36cm83.js +89 -0
  175. package/dist/client/static/js/katex-eh1m1m1d.js +257 -0
  176. package/dist/client/static/js/kotlin-bw3n4j1v.js +1 -0
  177. package/dist/client/static/js/laserwave-37chepry.js +1 -0
  178. package/dist/client/static/js/less-w8v48sx0.js +1 -0
  179. package/dist/client/static/js/light-plus-mcbbmtzj.js +1 -0
  180. package/dist/client/static/js/lua-6at2ddf6.js +1 -0
  181. package/dist/client/static/js/lua-ke895s2q.js +1 -0
  182. package/dist/client/static/js/main-rx9grv92.js +7 -0
  183. package/dist/client/static/js/makefile-22weg265.js +1 -0
  184. package/dist/client/static/js/markdown-gwmsh53r.js +1 -0
  185. package/dist/client/static/js/material-theme-darker-pcm1tb69.js +1 -0
  186. package/dist/client/static/js/material-theme-lighter-cbdrfj3g.js +1 -0
  187. package/dist/client/static/js/material-theme-ocean-3rs19bm6.js +1 -0
  188. package/dist/client/static/js/material-theme-palenight-rxhkgd4c.js +1 -0
  189. package/dist/client/static/js/material-theme-x46yf0tm.js +1 -0
  190. package/dist/client/static/js/mermaid.core-b1ssa824.js +12 -0
  191. package/dist/client/static/js/min-dark-f279fhzv.js +1 -0
  192. package/dist/client/static/js/min-light-s53yjy4e.js +1 -0
  193. package/dist/client/static/js/mindmap-definition-NLK3R4M7-e2ym5en8.js +96 -0
  194. package/dist/client/static/js/mllike-cnahv8ak.js +1 -0
  195. package/dist/client/static/js/monokai-yr7h8283.js +1 -0
  196. package/dist/client/static/js/night-owl-8d01zsx4.js +1 -0
  197. package/dist/client/static/js/night-owl-light-7jbd0p3j.js +1 -0
  198. package/dist/client/static/js/nix-7e31jz1m.js +1 -0
  199. package/dist/client/static/js/nord-h1bak1eb.js +1 -0
  200. package/dist/client/static/js/objective-c-8r3dxert.js +1 -0
  201. package/dist/client/static/js/ocaml-bpjgcgwa.js +1 -0
  202. package/dist/client/static/js/one-dark-pro-4geyzhjj.js +1 -0
  203. package/dist/client/static/js/one-light-tqssjm9t.js +1 -0
  204. package/dist/client/static/js/packet-AYTQ26CC-3pav51g0.js +1 -0
  205. package/dist/client/static/js/pegDiagram-GJSIUBJH-t8bbdyhe.js +1 -0
  206. package/dist/client/static/js/perl-3t5fm1te.js +1 -0
  207. package/dist/client/static/js/perl-7n7e9ncg.js +1 -0
  208. package/dist/client/static/js/php-32vy69vd.js +1 -0
  209. package/dist/client/static/js/pie-WAS4IAKB-wqfh7zdk.js +1 -0
  210. package/dist/client/static/js/pieDiagram-5QR66LMP-envv4brj.js +39 -0
  211. package/dist/client/static/js/plastic-8kfqgcmr.js +1 -0
  212. package/dist/client/static/js/poimandres-rjcckfek.js +1 -0
  213. package/dist/client/static/js/powershell-m5qb6mjj.js +1 -0
  214. package/dist/client/static/js/powershell-rrzhqtmb.js +1 -0
  215. package/dist/client/static/js/properties-mzvvbqg5.js +1 -0
  216. package/dist/client/static/js/properties-qq2pcfyk.js +1 -0
  217. package/dist/client/static/js/protobuf-578974t5.js +1 -0
  218. package/dist/client/static/js/protobuf-ggczeare.js +1 -0
  219. package/dist/client/static/js/python-3w64wsyd.js +1 -0
  220. package/dist/client/static/js/python-wbdfs2gc.js +1 -0
  221. package/dist/client/static/js/quadrantDiagram-O4NWA36T-72rk137a.js +7 -0
  222. package/dist/client/static/js/r-32re2zwb.js +1 -0
  223. package/dist/client/static/js/r-z4m38eb1.js +1 -0
  224. package/dist/client/static/js/racket-dhm8rebp.js +1 -0
  225. package/dist/client/static/js/radar-RG4KPBEZ-w7qjdr2g.js +1 -0
  226. package/dist/client/static/js/railroad-74A4TZTK-rhr99kkj.js +1 -0
  227. package/dist/client/static/js/railroad-abnf-HS5TGJTU-c4jeea3m.js +1 -0
  228. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-x2ee66ex.js +1 -0
  229. package/dist/client/static/js/railroad-peg-WCYAUIDC-yw8wjfwg.js +1 -0
  230. package/dist/client/static/js/railroadDiagram-XR7U4H2S-1ej0f5hr.js +1 -0
  231. package/dist/client/static/js/red-zgbwyj31.js +1 -0
  232. package/dist/client/static/js/requirementDiagram-PLB6GJNP-rvdaknpd.js +84 -0
  233. package/dist/client/static/js/rose-pine-azwmazxg.js +1 -0
  234. package/dist/client/static/js/rose-pine-dawn-3t3j9bnk.js +1 -0
  235. package/dist/client/static/js/rose-pine-moon-35ecvxkf.js +1 -0
  236. package/dist/client/static/js/ruby-5ty7fys7.js +1 -0
  237. package/dist/client/static/js/ruby-nq98w40a.js +1 -0
  238. package/dist/client/static/js/rust-2geezrcs.js +1 -0
  239. package/dist/client/static/js/rust-psncxtga.js +1 -0
  240. package/dist/client/static/js/sankeyDiagram-IPEJSGJF-nxvhtdaw.js +40 -0
  241. package/dist/client/static/js/sass-k1jjq4y7.js +1 -0
  242. package/dist/client/static/js/sass-mey5150f.js +1 -0
  243. package/dist/client/static/js/scala-atdk263v.js +1 -0
  244. package/dist/client/static/js/scheme-181kqjff.js +1 -0
  245. package/dist/client/static/js/scheme-jvs3e9c8.js +1 -0
  246. package/dist/client/static/js/scss-zphrqp25.js +1 -0
  247. package/dist/client/static/js/sequenceDiagram-PO4LG4MO-n5cn5qrt.js +169 -0
  248. package/dist/client/static/js/shell-5rhwzbr3.js +1 -0
  249. package/dist/client/static/js/sizeCapture-INFHLROL-r074kj7s.js +1 -0
  250. package/dist/client/static/js/slack-dark-j9p83tbc.js +1 -0
  251. package/dist/client/static/js/slack-ochin-fe90gs3m.js +1 -0
  252. package/dist/client/static/js/snazzy-light-pj44bwcm.js +1 -0
  253. package/dist/client/static/js/solarized-dark-54jyr51c.js +1 -0
  254. package/dist/client/static/js/solarized-light-ca8r58m6.js +1 -0
  255. package/dist/client/static/js/solidity-bx92jb30.js +1 -0
  256. package/dist/client/static/js/sql-g8wcshpc.js +1 -0
  257. package/dist/client/static/js/sql-wsvbkyd1.js +1 -0
  258. package/dist/client/static/js/stateDiagram-v2-GCMORJYK-vxghxdb0.js +291 -0
  259. package/dist/client/static/js/stylus-fht9fjbw.js +1 -0
  260. package/dist/client/static/js/stylus-xh0f7m9m.js +1 -0
  261. package/dist/client/static/js/svelte-3ewx0hzx.js +1 -0
  262. package/dist/client/static/js/swift-0rtnm3tm.js +1 -0
  263. package/dist/client/static/js/swift-rr9wc5y7.js +1 -0
  264. package/dist/client/static/js/swimlanes-2SLR337P-qkkv894p.js +1 -0
  265. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y81h9n27.js +8 -0
  266. package/dist/client/static/js/synthwave-84-yq047vcq.js +1 -0
  267. package/dist/client/static/js/timeline-definition-EJHVYXUP-5tbq4ex2.js +120 -0
  268. package/dist/client/static/js/tokyo-night-jfy87bj1.js +1 -0
  269. package/dist/client/static/js/toml-b5g7qp6k.js +1 -0
  270. package/dist/client/static/js/toml-prjdc335.js +1 -0
  271. package/dist/client/static/js/treeView-Q6P3EWNA-ekz05ccs.js +1 -0
  272. package/dist/client/static/js/treemap-WGGIJYW6-aq6qymjr.js +1 -0
  273. package/dist/client/static/js/tsx-0p183w2f.js +1 -0
  274. package/dist/client/static/js/typescript-t9a5jyvv.js +1 -0
  275. package/dist/client/static/js/usecaseDiagram-POWQR4AR-6p8hf0b7.js +370 -0
  276. package/dist/client/static/js/vennDiagram-UO4OBE2U-7k5jsxf9.js +34 -0
  277. package/dist/client/static/js/vesper-0e7jx631.js +1 -0
  278. package/dist/client/static/js/vitesse-black-avx6j9e8.js +1 -0
  279. package/dist/client/static/js/vitesse-dark-5ypr9e1f.js +1 -0
  280. package/dist/client/static/js/vitesse-light-sze15mny.js +1 -0
  281. package/dist/client/static/js/vue-06rdf4wh.js +1 -0
  282. package/dist/client/static/js/wardley-WFR3VGLG-z34tj4y3.js +1 -0
  283. package/dist/client/static/js/wardleyDiagram-VNRHLVJA-km2x4er8.js +78 -0
  284. package/dist/client/static/js/xml-81hxjjt4.js +1 -0
  285. package/dist/client/static/js/xml-f6syr877.js +1 -0
  286. package/dist/client/static/js/xychartDiagram-PMCCYNJV-kr3sgr4m.js +7 -0
  287. package/dist/client/static/js/yaml-qwwswzvs.js +1 -0
  288. package/dist/client/static/js/yaml-yssayv8a.js +1 -0
  289. package/dist/client/static/js/zig-yf26r6vn.js +1 -0
  290. package/package.json +5 -2
  291. package/src/client/App.tsx +16 -0
  292. package/src/client/components/common/anchored-menu/index.test.tsx +3 -3
  293. package/src/client/components/common/anchored-menu/index.tsx +10 -16
  294. package/src/client/components/common/command-palette/ChordHint.tsx +36 -0
  295. package/src/client/components/common/command-palette/index.test.tsx +126 -0
  296. package/src/client/components/common/command-palette/index.tsx +216 -0
  297. package/src/client/components/common/context-usage-button/index.tsx +26 -17
  298. package/src/client/components/common/key-binding-cheatsheet/index.tsx +147 -0
  299. package/src/client/components/common/server-control/Panel.tsx +8 -9
  300. package/src/client/components/common/session-actions-menu/index.test.tsx +26 -0
  301. package/src/client/components/common/session-actions-menu/index.tsx +25 -16
  302. package/src/client/components/common/session-row/RunElapsed.tsx +50 -0
  303. package/src/client/components/common/session-row/TimeCell.tsx +38 -0
  304. package/src/client/components/common/session-row/TrailingSlot.tsx +26 -12
  305. package/src/client/components/common/session-row/index.tsx +5 -0
  306. package/src/client/components/common/session-row/session-row.test.tsx +26 -1
  307. package/src/client/components/layout/desktop-layout/LeftColumn.tsx +2 -0
  308. package/src/client/components/layout/desktop-layout/index.tsx +2 -2
  309. package/src/client/components/layout/session-sidebar/CategoryItem.tsx +2 -1
  310. package/src/client/components/layout/session-sidebar/Footer.tsx +13 -2
  311. package/src/client/components/layout/session-sidebar/SessionItem.test.ts +17 -0
  312. package/src/client/components/layout/session-sidebar/SessionItem.tsx +13 -7
  313. package/src/client/components/layout/session-sidebar/SessionsView.tsx +20 -33
  314. package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +2 -1
  315. package/src/client/components/mobile/LayoutWrapper.tsx +16 -26
  316. package/src/client/components/mobile/SessionSidebar.tsx +2 -0
  317. package/src/client/components/mobile/mobile-main-view/Header.test.tsx +122 -0
  318. package/src/client/components/mobile/mobile-main-view/Header.tsx +25 -26
  319. package/src/client/components/mobile/mobile-session-sidebar/Footer.tsx +11 -1
  320. package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +2 -1
  321. package/src/client/components/mobile/mobile-session-sidebar/SessionRow.tsx +10 -5
  322. package/src/client/components/mobile/worktree-session.ts +4 -1
  323. package/src/client/components/settings/Modal.tsx +3 -0
  324. package/src/client/components/settings/Sidebar.tsx +3 -2
  325. package/src/client/components/settings/categories/ChatSettings.test.tsx +2 -2
  326. package/src/client/components/settings/categories/ChatSettings.tsx +0 -2
  327. package/src/client/components/settings/categories/KeyboardSettings.tsx +31 -0
  328. package/src/client/components/settings/categories/NotificationSettings.tsx +9 -0
  329. package/src/client/components/settings/categories/SkillCatalogSettings.tsx +34 -16
  330. package/src/client/components/settings/categories/SkillSettings.tsx +22 -1
  331. package/src/client/components/settings/categories/chat-settings/groups.ts +2 -11
  332. package/src/client/components/settings/categories/{chat-settings/KeybindingsSection.tsx → keyboard-settings/ComposerKeys.tsx} +2 -2
  333. package/src/client/components/settings/categories/keyboard-settings/KeyRecorder.tsx +106 -0
  334. package/src/client/components/settings/categories/keyboard-settings/ShortcutTable.tsx +137 -0
  335. package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +13 -41
  336. package/src/client/components/settings/categories/skill-catalog/SkillCard.tsx +1 -1
  337. package/src/client/components/settings/categories/skill-catalog/catalog-ui.test.tsx +3 -6
  338. package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +43 -2
  339. package/src/client/components/settings/categories/skill-settings/DetailPane.tsx +9 -0
  340. package/src/client/components/settings/categories/skill-settings/pane.test.tsx +28 -0
  341. package/src/client/components/settings/categories/skill-settings/row-meta.ts +3 -0
  342. package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +16 -15
  343. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +38 -5
  344. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.wait.test.tsx +158 -0
  345. package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +1 -1
  346. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +28 -33
  347. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +24 -67
  348. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.search.test.tsx +4 -2
  349. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +101 -78
  350. package/src/client/components/workspace/chat-timeline/chat-input/props.ts +3 -3
  351. package/src/client/components/workspace/chat-timeline/fork-preview.test.tsx +11 -0
  352. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.test.tsx +20 -0
  353. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +5 -0
  354. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.test.tsx +113 -0
  355. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.tsx +198 -0
  356. package/src/client/components/workspace/editor/Body.tsx +0 -15
  357. package/src/client/components/workspace/editor/FileDocument.tsx +0 -26
  358. package/src/client/components/workspace/editor/FilePane.tsx +0 -15
  359. package/src/client/components/workspace/editor/Pane.tsx +4 -1
  360. package/src/client/components/workspace/editor/index.tsx +5 -8
  361. package/src/client/hooks/chat/btw/mode.ts +5 -1
  362. package/src/client/hooks/chat/omp/session-list.test.ts +13 -0
  363. package/src/client/hooks/chat/omp/session-list.tsx +33 -8
  364. package/src/client/hooks/chat/omp/session-sidebar-controller.ts +9 -3
  365. package/src/client/hooks/chat/timeline/new-chat.ts +4 -1
  366. package/src/client/hooks/chat/timeline/pending-dispatch.ts +6 -10
  367. package/src/client/hooks/chat/waiting/composer-wait.ts +2 -2
  368. package/src/client/hooks/chat/waiting/dispatch.ts +4 -1
  369. package/src/client/hooks/commands/use-command-catalog.ts +52 -0
  370. package/src/client/hooks/commands/use-command-context.ts +21 -0
  371. package/src/client/hooks/commands/use-command-runtime.test.ts +117 -0
  372. package/src/client/hooks/commands/use-command-runtime.ts +62 -0
  373. package/src/client/hooks/commands/use-overlays.ts +35 -0
  374. package/src/client/hooks/commands/use-palette-items.ts +156 -0
  375. package/src/client/hooks/commands/use-plugin-commands.ts +69 -0
  376. package/src/client/hooks/editor/find-harness.test-util.ts +20 -3
  377. package/src/client/hooks/editor/use-editor-command-target.ts +46 -0
  378. package/src/client/hooks/editor/use-editor-find.test.ts +4 -9
  379. package/src/client/hooks/editor/use-editor-panel-keys.ts +24 -93
  380. package/src/client/hooks/editor/use-editor-panel-ui.ts +0 -10
  381. package/src/client/hooks/settings/skill-catalog.ts +3 -3
  382. package/src/client/hooks/settings/skill-git-import.ts +3 -11
  383. package/src/client/hooks/ui/icon-style.ts +10 -5
  384. package/src/client/hooks/ui/notification-events.test.ts +126 -0
  385. package/src/client/hooks/ui/notification-events.ts +61 -0
  386. package/src/client/hooks/ui/second-tick.ts +55 -0
  387. package/src/client/hooks/ui/theme.ts +9 -5
  388. package/src/client/hooks/workspace/batch-delete-run.ts +5 -1
  389. package/src/client/hooks/workspace/commands.ts +51 -0
  390. package/src/client/hooks/workspace/session-delete.ts +5 -1
  391. package/src/client/lib/commands/context.ts +51 -0
  392. package/src/client/lib/commands/dispatcher.ts +101 -0
  393. package/src/client/lib/commands/editor-target.ts +36 -0
  394. package/src/client/lib/commands/keymap.test.ts +68 -0
  395. package/src/client/lib/commands/keymap.ts +151 -0
  396. package/src/client/lib/commands/overlays.ts +87 -0
  397. package/src/client/lib/commands/registry.ts +69 -0
  398. package/src/client/lib/notifications/os.test.ts +24 -0
  399. package/src/client/lib/notifications/os.ts +16 -0
  400. package/src/client/lib/notifications/watch.ts +48 -0
  401. package/src/client/lib/plugins/slots.ts +1 -0
  402. package/src/client/lib/router/branch-params.test.ts +62 -0
  403. package/src/client/lib/router/branch-params.ts +48 -0
  404. package/src/client/main.tsx +7 -0
  405. package/src/client/tailwind.css +5 -38
  406. package/src/server/db.server.test.ts +10 -4
  407. package/src/server/index.ts +12 -8
  408. package/src/server/lib/assets/shell-settings.server.test.ts +35 -0
  409. package/src/server/lib/assets/shell-settings.server.ts +33 -0
  410. package/src/server/lib/assets/theme-css.server.test.ts +58 -0
  411. package/src/server/lib/assets/theme-css.server.ts +52 -0
  412. package/src/server/lib/auth/guard.ts +6 -1
  413. package/src/server/lib/browser/runtime.test.ts +21 -16
  414. package/src/server/lib/db/client.test.ts +89 -0
  415. package/src/server/lib/db/client.ts +31 -0
  416. package/src/server/lib/db/compact-chat-overlay.ts +7 -1
  417. package/src/server/lib/db/schema.ts +4 -0
  418. package/src/server/lib/db/workspace-sync.ts +7 -7
  419. package/src/server/lib/harness/acp/session-permissions.ts +4 -0
  420. package/src/server/lib/lifecycle/fd-pressure.test.ts +43 -0
  421. package/src/server/lib/lifecycle/fd-pressure.ts +38 -0
  422. package/src/server/lib/lifecycle/listener.ts +4 -4
  423. package/src/server/lib/lifecycle/shell-entry.server.ts +29 -0
  424. package/src/server/lib/lifecycle/shell-route.ts +5 -4
  425. package/src/server/lib/notifications/feed.server.test.ts +127 -0
  426. package/src/server/lib/notifications/feed.server.ts +195 -0
  427. package/src/server/lib/notifications/schema.server.ts +47 -0
  428. package/src/server/lib/notifications/store.server.test.ts +118 -0
  429. package/src/server/lib/notifications/store.server.ts +103 -0
  430. package/src/server/lib/observer-ws.test.ts +49 -0
  431. package/src/server/lib/observer-ws.ts +2 -1
  432. package/src/server/lib/omp/config/definitions.test.ts +17 -18
  433. package/src/server/lib/omp/config/skills-catalog.ts +109 -73
  434. package/src/server/lib/omp/config/skills-git-repo.ts +10 -12
  435. package/src/server/lib/omp/rpc/frame-fold-frames.test.ts +2 -0
  436. package/src/server/lib/omp/rpc/manager.ts +4 -1
  437. package/src/server/lib/omp/rpc/run-model.test.ts +2 -0
  438. package/src/server/lib/omp/session/sidebar-data.server.ts +1 -0
  439. package/src/server/lib/realtime/hub.server.test.ts +27 -1
  440. package/src/server/lib/realtime/hub.server.ts +6 -2
  441. package/src/server/lib/realtime/hub.types.ts +9 -1
  442. package/src/server/lib/realtime/topics/catalog.server.ts +5 -0
  443. package/src/server/lib/realtime/topics/peer-relay.server.test.ts +17 -14
  444. package/src/server/lib/realtime/topics.server.test.ts +2 -1
  445. package/src/server/plugins/shell.server.test.ts +4 -4
  446. package/src/server/plugins/shell.server.ts +83 -22
  447. package/src/server/plugins/ssr.ts +33 -19
  448. package/src/server/plugins/static.ts +5 -7
  449. package/src/server/routes/health/probe.ts +7 -8
  450. package/src/server/routes/index.ts +2 -0
  451. package/src/server/routes/notifications/index.ts +6 -0
  452. package/src/server/routes/notifications/stream.test.ts +116 -0
  453. package/src/server/routes/notifications/stream.ts +88 -0
  454. package/src/server/routes/settings/skills-catalog-actions.ts +11 -31
  455. package/src/server/routes/settings/skills.test.ts +14 -0
  456. package/src/server/routes/settings/skills.ts +29 -21
  457. package/src/shared/lib/code/highlight-cache.test.ts +19 -8
  458. package/src/shared/lib/commands/catalog.ts +114 -0
  459. package/src/shared/lib/commands/chord.test.ts +66 -0
  460. package/src/shared/lib/commands/chord.ts +193 -0
  461. package/src/shared/lib/commands/conflicts.test.ts +43 -0
  462. package/src/shared/lib/commands/conflicts.ts +53 -0
  463. package/src/shared/lib/commands/record.test.ts +24 -0
  464. package/src/shared/lib/commands/record.ts +44 -0
  465. package/src/shared/lib/commands/resolve.test.ts +54 -0
  466. package/src/shared/lib/commands/resolve.ts +45 -0
  467. package/src/shared/lib/commands/score.test.ts +41 -0
  468. package/src/shared/lib/commands/score.ts +53 -0
  469. package/src/shared/lib/commands/types.ts +60 -0
  470. package/src/shared/lib/commands/user-keybindings.test.ts +33 -0
  471. package/src/shared/lib/commands/user-keybindings.ts +64 -0
  472. package/src/shared/lib/commands/when.test.ts +46 -0
  473. package/src/shared/lib/commands/when.ts +221 -0
  474. package/src/shared/lib/icons/icon-paint-authority.test.ts +9 -0
  475. package/src/shared/lib/icons/icon-paint-authority.ts +25 -8
  476. package/src/shared/lib/notifications/events.test.ts +77 -0
  477. package/src/shared/lib/notifications/events.ts +104 -0
  478. package/src/shared/lib/omp/session/prewarm-misc.test.ts +3 -2
  479. package/src/shared/lib/omp/session/schema-migrations.ts +4 -0
  480. package/src/shared/lib/omp/session/stream-state.server.test.ts +37 -1
  481. package/src/shared/lib/omp/session/stream-state.server.ts +42 -5
  482. package/src/shared/lib/omp/skill-source.test.ts +24 -0
  483. package/src/shared/lib/omp/skill-source.ts +20 -0
  484. package/src/shared/lib/panels/slot-labels.ts +6 -1
  485. package/src/shared/lib/realtime/protocol.ts +11 -0
  486. package/src/shared/lib/theme/css.ts +11 -0
  487. package/src/shared/lib/ui/menu-anchor.test.ts +17 -5
  488. package/src/shared/lib/ui/menu-anchor.ts +22 -5
  489. package/src/shared/lib/workspace/refresh-cadence.test.ts +34 -1
  490. package/src/shared/lib/workspace/relative-time.ts +22 -0
  491. package/src/shared/types/realtime.ts +10 -0
  492. package/src/shared/types/settings/skill.ts +1 -9
  493. package/src/shared/types/settings/state.ts +1 -0
  494. package/src/shared/types/workspace.ts +5 -0
  495. package/src/test-support/peer-harness.ts +40 -6
  496. package/dist/client/static/js/index-naa91727.css +0 -1
  497. package/dist/client/static/js/index-r3bhgvkt.js +0 -5696
  498. package/src/client/components/layout/session-sidebar/new-session-context.test.ts +0 -55
  499. package/src/client/components/workspace/editor/CommandPalette.test.ts +0 -242
  500. package/src/client/components/workspace/editor/CommandPalette.tsx +0 -138
  501. package/src/client/components/workspace/editor/QuickOpenModal.tsx +0 -146
  502. package/src/client/hooks/ui/input-required-alert.ts +0 -50
  503. package/src/client/hooks/ui/notifications.ts +0 -54
  504. package/src/client/hooks/ui/run-outcome-alert.ts +0 -48
  505. package/src/client/hooks/ui/ui-alert.test.ts +0 -235
  506. package/src/client/hooks/workspace/keybindings.ts +0 -44
  507. package/src/shared/lib/notifications/outcomes.test.ts +0 -96
  508. package/src/shared/lib/notifications/outcomes.ts +0 -64
  509. package/src/shared/lib/ui/mobile-overlay.ts +0 -61
@@ -0,0 +1,129 @@
1
+ var xe=Symbol.for("yaml.alias"),Ve=Symbol.for("yaml.document"),x=Symbol.for("yaml.map"),Ct=Symbol.for("yaml.pair"),R=Symbol.for("yaml.scalar"),ie=Symbol.for("yaml.seq"),j=Symbol.for("yaml.node.type"),V=(e)=>!!e&&typeof e==="object"&&e[j]===xe,X=(e)=>!!e&&typeof e==="object"&&e[j]===Ve,J=(e)=>!!e&&typeof e==="object"&&e[j]===x,T=(e)=>!!e&&typeof e==="object"&&e[j]===Ct,E=(e)=>!!e&&typeof e==="object"&&e[j]===R,Y=(e)=>!!e&&typeof e==="object"&&e[j]===ie;function I(e){if(e&&typeof e==="object")switch(e[j]){case x:case ie:return!0}return!1}function L(e){if(e&&typeof e==="object")switch(e[j]){case xe:case x:case R:case ie:return!0}return!1}var Je=(e)=>(E(e)||I(e))&&!!e.anchor;var F=Symbol("break visit"),os=Symbol("skip children"),z=Symbol("remove node");function Z(e,t){let s=ls(t);if(X(e)){if(Se(null,e.contents,s,Object.freeze([e]))===z)e.contents=null}else Se(null,e,s,Object.freeze([]))}Z.BREAK=F;Z.SKIP=os;Z.REMOVE=z;function Se(e,t,s,n){let i=as(e,t,s,n);if(L(i)||T(i))return cs(e,n,i),Se(e,i,s,n);if(typeof i!=="symbol"){if(I(t)){n=Object.freeze(n.concat(t));for(let r=0;r<t.items.length;++r){let o=Se(r,t.items[r],s,n);if(typeof o==="number")r=o-1;else if(o===F)return F;else if(o===z)t.items.splice(r,1),r-=1}}else if(T(t)){n=Object.freeze(n.concat(t));let r=Se("key",t.key,s,n);if(r===F)return F;else if(r===z)t.key=null;let o=Se("value",t.value,s,n);if(o===F)return F;else if(o===z)t.value=null}}return i}async function Ye(e,t){let s=ls(t);if(X(e)){if(await ke(null,e.contents,s,Object.freeze([e]))===z)e.contents=null}else await ke(null,e,s,Object.freeze([]))}Ye.BREAK=F;Ye.SKIP=os;Ye.REMOVE=z;async function ke(e,t,s,n){let i=await as(e,t,s,n);if(L(i)||T(i))return cs(e,n,i),ke(e,i,s,n);if(typeof i!=="symbol"){if(I(t)){n=Object.freeze(n.concat(t));for(let r=0;r<t.items.length;++r){let o=await ke(r,t.items[r],s,n);if(typeof o==="number")r=o-1;else if(o===F)return F;else if(o===z)t.items.splice(r,1),r-=1}}else if(T(t)){n=Object.freeze(n.concat(t));let r=await ke("key",t.key,s,n);if(r===F)return F;else if(r===z)t.key=null;let o=await ke("value",t.value,s,n);if(o===F)return F;else if(o===z)t.value=null}}return i}function ls(e){if(typeof e==="object"&&(e.Collection||e.Node||e.Value))return Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e);return e}function as(e,t,s,n){if(typeof s==="function")return s(e,t,n);if(J(t))return s.Map?.(e,t,n);if(Y(t))return s.Seq?.(e,t,n);if(T(t))return s.Pair?.(e,t,n);if(E(t))return s.Scalar?.(e,t,n);if(V(t))return s.Alias?.(e,t,n);return}function cs(e,t,s){let n=t[t.length-1];if(I(n))n.items[e]=s;else if(T(n))if(e==="key")n.key=s;else n.value=s;else if(X(n))n.contents=s;else{let i=V(n)?"alias":"scalar";throw Error(`Cannot replace node with ${i} parent`)}}var Xs={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},zs=(e)=>e.replace(/[!,[\]{}]/g,(t)=>Xs[t]);class D{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},D.defaultYaml,e),this.tags=Object.assign({},D.defaultTags,t)}clone(){let e=new D(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new D(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:D.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},D.defaultTags);break}return e}add(e,t){if(this.atNextDocument)this.yaml={explicit:D.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},D.defaultTags),this.atNextDocument=!1;let s=e.trim().split(/[ \t]+/),n=s.shift();switch(n){case"%TAG":{if(s.length!==2){if(t(0,"%TAG directive should contain exactly two parts"),s.length<2)return!1}let[i,r]=s;return this.tags[i]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[i]=s;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;else{let r=/^\d+\.\d+$/.test(i);return t(6,`Unsupported YAML version ${i}`,r),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let r=e.slice(2,-1);if(r==="!"||r==="!!")return t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null;if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}let[,s,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);let i=this.tags[s];if(i)try{return i+decodeURIComponent(n)}catch(r){return t(String(r)),null}if(s==="!")return e;return t(`Could not resolve tag: ${e}`),null}tagString(e){for(let[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+zs(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags),n;if(e&&s.length>0&&L(e.contents)){let i={};Z(e.contents,(r,o)=>{if(L(o)&&o.tag)i[o.tag]=!0}),n=Object.keys(i)}else n=[];for(let[i,r]of s){if(i==="!!"&&r==="tag:yaml.org,2002:")continue;if(!e||n.some((o)=>o.startsWith(r)))t.push(`%TAG ${i} ${r}`)}return t.join(`
2
+ `)}}D.defaultYaml={explicit:!1,version:"1.2"};D.defaultTags={"!!":"tag:yaml.org,2002:"};function Qe(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let s=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(s)}return!0}function vt(e){let t=new Set;return Z(e,{Value(s,n){if(n.anchor)t.add(n.anchor)}}),t}function _t(e,t){for(let s=1;;++s){let n=`${e}${s}`;if(!t.has(n))return n}}function fs(e,t){let s=[],n=new Map,i=null;return{onAnchor:(r)=>{s.push(r),i??(i=vt(e));let o=_t(t,i);return i.add(o),o},setAnchors:()=>{for(let r of s){let o=n.get(r);if(typeof o==="object"&&o.anchor&&(E(o.node)||I(o.node)))o.node.anchor=o.anchor;else{let l=Error("Failed to resolve repeated object (this should not happen)");throw l.source=r,l}}},sourceObjects:n}}function ae(e,t,s,n){if(n&&typeof n==="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){let o=n[i],l=ae(e,n,String(i),o);if(l===void 0)delete n[i];else if(l!==o)n[i]=l}else if(n instanceof Map)for(let i of Array.from(n.keys())){let r=n.get(i),o=ae(e,n,i,r);if(o===void 0)n.delete(i);else if(o!==r)n.set(i,o)}else if(n instanceof Set)for(let i of Array.from(n)){let r=ae(e,n,i,i);if(r===void 0)n.delete(i);else if(r!==i)n.delete(i),n.add(r)}else for(let[i,r]of Object.entries(n)){let o=ae(e,n,i,r);if(o===void 0)delete n[i];else if(o!==r)n[i]=o}return e.call(t,s,n)}function B(e,t,s){if(Array.isArray(e))return e.map((n,i)=>B(n,String(i),s));if(e&&typeof e.toJSON==="function"){if(!s||!Je(e))return e.toJSON(t,s);let n={aliasCount:0,count:1,res:void 0};s.anchors.set(e,n),s.onCreate=(r)=>{n.res=r,delete s.onCreate};let i=e.toJSON(t,s);if(s.onCreate)s.onCreate(i);return i}if(typeof e==="bigint"&&!s?.keep)return Number(e);return e}class de{constructor(e){Object.defineProperty(this,j,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:n,reviver:i}={}){if(!X(e))throw TypeError("A document argument is required");let r={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s==="number"?s:100},o=B(this,"",r);if(typeof n==="function")for(let{count:l,res:a}of r.anchors.values())n(a,l);return typeof i==="function"?ae(i,{"":o},"",o):o}}class ce extends de{constructor(e){super(xe);this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");let s;if(t?.aliasResolveCache)s=t.aliasResolveCache;else if(s=[],Z(e,{Node:(i,r)=>{if(V(r)||Je(r))s.push(r)}}),t)t.aliasResolveCache=s;let n=void 0;for(let i of s){if(i===this)break;if(i.anchor===this.source)n=i}if(n&&t){let{anchors:i,doc:r,maxAliasCount:o}=t,l=i.get(n);if(!l)B(n,null,t),l=i.get(n);if(l?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0){if(l.count+=1,l.aliasCount===0)l.aliasCount=Ge(r,n,i);if(l.count*l.aliasCount>o)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}}return n}toJSON(e,t){if(!t)return{source:this.source};let s=this.resolve(t.doc,t);if(!s){let n=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(n)}return t.anchors.get(s).res}toString(e,t,s){let n=`*${this.source}`;if(e){if(Qe(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(i)}if(e.implicitKey)return`${n} `}return n}}function Ge(e,t,s){if(V(t)){let n=t.resolve(e),i=s&&n&&s.get(n);return i?i.count*i.aliasCount:0}else if(I(t)){let n=0;for(let i of t.items){let r=Ge(e,i,s);if(r>n)n=r}return n}else if(T(t)){let n=Ge(e,t.key,s),i=Ge(e,t.value,s);return Math.max(n,i)}return 1}var We=(e)=>!e||typeof e!=="function"&&typeof e!=="object";class y extends de{constructor(e){super(R);this.value=e}toJSON(e,t){return t?.keep?this.value:B(this.value,e,t)}toString(){return String(this.value)}}y.BLOCK_FOLDED="BLOCK_FOLDED";y.BLOCK_LITERAL="BLOCK_LITERAL";y.PLAIN="PLAIN";y.QUOTE_DOUBLE="QUOTE_DOUBLE";y.QUOTE_SINGLE="QUOTE_SINGLE";var Zs="tag:yaml.org,2002:";function en(e,t,s){if(t){let n=s.filter((r)=>r.tag===t),i=n.find((r)=>!r.format)??n[0];if(!i)throw Error(`Tag ${t} not found`);return i}return s.find((n)=>n.identify?.(e)&&!n.format)}function re(e,t,s){if(X(e))e=e.contents;if(L(e))return e;if(T(e)){let f=s.schema[x].createNode?.(s.schema,null,s);return f.items.push(e),f}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)e=e.valueOf();let{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:l}=s,a=void 0;if(n&&e&&typeof e==="object")if(a=l.get(e),a)return a.anchor??(a.anchor=i(e)),new ce(a.anchor);else a={anchor:null,node:null},l.set(e,a);if(t?.startsWith("!!"))t=Zs+t.slice(2);let c=en(e,t,o.tags);if(!c){if(e&&typeof e.toJSON==="function")e=e.toJSON();if(!e||typeof e!=="object"){let f=new y(e);if(a)a.node=f;return f}c=e instanceof Map?o[x]:(Symbol.iterator in Object(e))?o[ie]:o[x]}if(r)r(c),delete s.onTagObj;let p=c?.createNode?c.createNode(s.schema,e,s):typeof c?.nodeClass?.from==="function"?c.nodeClass.from(s.schema,e,s):new y(e);if(t)p.tag=t;else if(!c.default)p.tag=c.tag;if(a)a.node=p;return p}function ve(e,t,s){let n=s;for(let i=t.length-1;i>=0;--i){let r=t[i];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){let o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return re(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var Ne=(e)=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class _e extends de{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;if(t.items=t.items.map((s)=>L(s)||T(s)?s.clone(e):s),this.range)t.range=this.range.slice();return t}addIn(e,t){if(Ne(e))this.add(t);else{let[s,...n]=e,i=this.get(s,!0);if(I(i))i.addIn(n,t);else if(i===void 0&&this.schema)this.set(s,ve(this.schema,n,t));else throw Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}deleteIn(e){let[t,...s]=e;if(s.length===0)return this.delete(t);let n=this.get(t,!0);if(I(n))return n.deleteIn(s);else throw Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){let[s,...n]=e,i=this.get(s,!0);if(n.length===0)return!t&&E(i)?i.value:i;else return I(i)?i.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every((t)=>{if(!T(t))return!1;let s=t.value;return s==null||e&&E(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){let[t,...s]=e;if(s.length===0)return this.has(t);let n=this.get(t,!0);return I(n)?n.hasIn(s):!1}setIn(e,t){let[s,...n]=e;if(n.length===0)this.set(s,t);else{let i=this.get(s,!0);if(I(i))i.setIn(n,t);else if(i===void 0&&this.schema)this.set(s,ve(this.schema,n,t));else throw Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}}var us=(e)=>e.replace(/^(?!$)(?: $)?/gm,"#");function U(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}var ee=(e,t,s)=>e.endsWith(`
3
+ `)?U(s,t):s.includes(`
4
+ `)?`
5
+ `+U(s,t):(e.endsWith(" ")?"":" ")+s;var $t="flow",ps="block",ms="quoted";function $e(e,t,s="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:l}={}){if(!i||i<0)return e;if(i<r)r=0;let a=Math.max(1+r,1+i-t.length);if(e.length<=a)return e;let c=[],p={},f=i-t.length;if(typeof n==="number")if(n>i-Math.max(2,r))c.push(0);else f=i-n;let u=void 0,d=void 0,g=!1,h=-1,m=-1,w=-1;if(s==="block"){if(h=hs(e,h,t.length),h!==-1)f=h+a}for(let k;k=e[h+=1];){if(s==="quoted"&&k==="\\"){switch(m=h,e[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}w=h}if(k===`
6
+ `){if(s==="block")h=hs(e,h,t.length);f=h+t.length+a,u=void 0}else{if(k===" "&&d&&d!==" "&&d!==`
7
+ `&&d!=="\t"){let N=e[h+1];if(N&&N!==" "&&N!==`
8
+ `&&N!=="\t")u=h}if(h>=f)if(u)c.push(u),f=u+a,u=void 0;else if(s==="quoted"){while(d===" "||d==="\t")d=k,k=e[h+=1],g=!0;let N=h>w+1?h-2:m-1;if(p[N])return e;c.push(N),p[N]=!0,f=N+a,u=void 0}else g=!0}d=k}if(g&&l)l();if(c.length===0)return e;if(o)o();let S=e.slice(0,c[0]);for(let k=0;k<c.length;++k){let N=c[k],O=c[k+1]||e.length;if(N===0)S=`
9
+ ${t}${e.slice(0,O)}`;else{if(s==="quoted"&&p[N])S+=`${e[N]}\\`;S+=`
10
+ ${t}${e.slice(N+1,O)}`}}return S}function hs(e,t,s){let n=t,i=t+1,r=e[i];while(r===" "||r==="\t")if(t<i+s)r=e[++t];else{do r=e[++t];while(r&&r!==`
11
+ `);n=t,i=t+1,r=e[i]}return n}var Xe=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),ze=(e)=>/^(%|---|\.\.\.)/m.test(e);function tn(e,t,s){if(!t||t<0)return!1;let n=t-s,i=e.length;if(i<=n)return!1;for(let r=0,o=0;r<i;++r)if(e[r]===`
12
+ `){if(r-o>n)return!0;if(o=r+1,i-o<=n)return!1}return!0}function Pe(e,t){let s=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return s;let{implicitKey:n}=t,i=t.options.doubleQuotedMinMultiLineLength,r=t.indent||(ze(e)?" ":""),o="",l=0;for(let a=0,c=s[a];c;c=s[++a]){if(c===" "&&s[a+1]==="\\"&&s[a+2]==="n")o+=s.slice(l,a)+"\\ ",a+=1,l=a,c="\\";if(c==="\\")switch(s[a+1]){case"u":{o+=s.slice(l,a);let p=s.substr(a+2,4);switch(p){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:if(p.substr(0,2)==="00")o+="\\x"+p.substr(2);else o+=s.substr(a,6)}a+=5,l=a+1}break;case"n":if(n||s[a+2]==='"'||s.length<i)a+=1;else{o+=s.slice(l,a)+`
13
+
14
+ `;while(s[a+2]==="\\"&&s[a+3]==="n"&&s[a+4]!=='"')o+=`
15
+ `,a+=2;if(o+=r,s[a+2]===" ")o+="\\";a+=1,l=a+1}break;default:a+=1}}return o=l?o+s.slice(l):s,n?o:$e(o,r,ms,Xe(t,!1))}function Pt(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
16
+ `)||/[ \t]\n|\n[ \t]/.test(e))return Pe(e,t);let s=t.indent||(ze(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
17
+ ${s}`)+"'";return t.implicitKey?n:$e(n,s,$t,Xe(t,!1))}function Oe(e,t){let{singleQuote:s}=t.options,n;if(s===!1)n=Pe;else{let i=e.includes('"'),r=e.includes("'");if(i&&!r)n=Pt;else if(r&&!i)n=Pe;else n=s?Pt:Pe}return n(e,t)}var Mt;try{Mt=new RegExp(`(^|(?<!
18
+ ))
19
+ +(?!
20
+ |$)`,"g")}catch{Mt=/\n+(?!\n|$)/g}function He({comment:e,type:t,value:s},n,i,r){let{blockQuote:o,commentString:l,lineWidth:a}=n.options;if(!o||/\n[\t ]+$/.test(s))return Oe(s,n);let c=n.indent||(n.forceBlockIndent||ze(s)?" ":""),p=o==="literal"?!0:o==="folded"||t===y.BLOCK_FOLDED?!1:t===y.BLOCK_LITERAL?!0:!tn(s,a,c.length);if(!s)return p?`|
21
+ `:`>
22
+ `;let f,u;for(u=s.length;u>0;--u){let O=s[u-1];if(O!==`
23
+ `&&O!=="\t"&&O!==" ")break}let d=s.substring(u),g=d.indexOf(`
24
+ `);if(g===-1)f="-";else if(s===d||g!==d.length-1){if(f="+",r)r()}else f="";if(d){if(s=s.slice(0,-d.length),d[d.length-1]===`
25
+ `)d=d.slice(0,-1);d=d.replace(Mt,`$&${c}`)}let h=!1,m,w=-1;for(m=0;m<s.length;++m){let O=s[m];if(O===" ")h=!0;else if(O===`
26
+ `)w=m;else break}let S=s.substring(0,w<m?w+1:m);if(S)s=s.substring(S.length),S=S.replace(/\n+/g,`$&${c}`);let N=(h?c?"2":"1":"")+f;if(e){if(N+=" "+l(e.replace(/ ?[\r\n]+/g," ")),i)i()}if(!p){let O=s.replace(/\n+/g,`
27
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`),A=!1,C=Xe(n,!0);if(o!=="folded"&&t!==y.BLOCK_FOLDED)C.onOverflow=()=>{A=!0};let b=$e(`${S}${O}${d}`,c,ps,C);if(!A)return`>${N}
28
+ ${c}${b}`}return s=s.replace(/\n+/g,`$&${c}`),`|${N}
29
+ ${c}${S}${s}${d}`}function sn(e,t,s,n){let{type:i,value:r}=e,{actualString:o,implicitKey:l,indent:a,indentStep:c,inFlow:p}=t;if(l&&r.includes(`
30
+ `)||p&&/[[\]{},]/.test(r))return Oe(r,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return l||p||!r.includes(`
31
+ `)?Oe(r,t):He(e,t,s,n);if(!l&&!p&&i!==y.PLAIN&&r.includes(`
32
+ `))return He(e,t,s,n);if(ze(r)){if(a==="")return t.forceBlockIndent=!0,He(e,t,s,n);else if(l&&a===c)return Oe(r,t)}let f=r.replace(/\n+/g,`$&
33
+ ${a}`);if(o){let u=(h)=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(f),{compat:d,tags:g}=t.doc.schema;if(g.some(u)||d?.some(u))return Oe(r,t)}return l?f:$e(f,a,$t,Xe(t,!1))}function ge(e,t,s,n){let{implicitKey:i,inFlow:r}=t,o=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)}),{type:l}=e;if(l!==y.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value))l=y.QUOTE_DOUBLE}let a=(p)=>{switch(p){case y.BLOCK_FOLDED:case y.BLOCK_LITERAL:return i||r?Oe(o.value,t):He(o,t,s,n);case y.QUOTE_DOUBLE:return Pe(o.value,t);case y.QUOTE_SINGLE:return Pt(o.value,t);case y.PLAIN:return sn(o,t,s,n);default:return null}},c=a(l);if(c===null){let{defaultKeyType:p,defaultStringType:f}=t.options,u=i&&p||f;if(c=a(u),c===null)throw Error(`Unsupported default string type ${u}`)}return c}function Ze(e,t){let s=Object.assign({blockQuote:!0,commentString:us,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),n;switch(s.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:typeof s.indent==="number"?" ".repeat(s.indent):" ",inFlow:n,options:s}}function nn(e,t){if(t.tag){let i=e.filter((r)=>r.tag===t.tag);if(i.length>0)return i.find((r)=>r.format===t.format)??i[0]}let s=void 0,n;if(E(t)){n=t.value;let i=e.filter((r)=>r.identify?.(n));if(i.length>1){let r=i.filter((o)=>o.test);if(r.length>0)i=r}s=i.find((r)=>r.format===t.format)??i.find((r)=>!r.format)}else n=t,s=e.find((i)=>i.nodeClass&&n instanceof i.nodeClass);if(!s){let i=n?.constructor?.name??(n===null?"null":typeof n);throw Error(`Tag not resolved for ${i} value`)}return s}function rn(e,t,{anchors:s,doc:n}){if(!n.directives)return"";let i=[],r=(E(e)||I(e))&&e.anchor;if(r&&Qe(r))s.add(r),i.push(`&${r}`);let o=e.tag??(t.default?null:t.tag);if(o)i.push(n.directives.tagString(o));return i.join(" ")}function oe(e,t,s,n){if(T(e))return e.toString(t,s,n);if(V(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let i=void 0,r=L(e)?e:t.doc.createNode(e,{onTagObj:(a)=>i=a});i??(i=nn(t.doc.schema.tags,r));let o=rn(r,i,t);if(o.length>0)t.indentAtStart=(t.indentAtStart??0)+o.length+1;let l=typeof i.stringify==="function"?i.stringify(r,t,s,n):E(r)?ge(r,t,s,n):r.toString(t,s,n);if(!o)return l;return E(r)||l[0]==="{"||l[0]==="["?`${o} ${l}`:`${o}
34
+ ${t.indent}${l}`}function ds({key:e,value:t},s,n,i){let{allNullValues:r,doc:o,indent:l,indentStep:a,options:{commentString:c,indentSeq:p,simpleKeys:f}}=s,u=L(e)&&e.comment||null;if(f){if(u)throw Error("With simple keys, key nodes cannot have comments");if(I(e)||!L(e)&&typeof e==="object")throw Error("With simple keys, collection cannot be used as a key value")}let d=!f&&(!e||u&&t==null&&!s.inFlow||I(e)||(E(e)?e.type===y.BLOCK_FOLDED||e.type===y.BLOCK_LITERAL:typeof e==="object"));s=Object.assign({},s,{allNullValues:!1,implicitKey:!d&&(f||!r),indent:l+a});let g=!1,h=!1,m=oe(e,s,()=>g=!0,()=>h=!0);if(!d&&!s.inFlow&&m.length>1024){if(f)throw Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(s.inFlow){if(r||t==null){if(g&&n)n();return m===""?"?":d?`? ${m}`:m}}else if(r&&!f||t==null&&d){if(m=`? ${m}`,u&&!g)m+=ee(m,s.indent,c(u));else if(h&&i)i();return m}if(g)u=null;if(d){if(u)m+=ee(m,s.indent,c(u));m=`? ${m}
35
+ ${l}:`}else if(m=`${m}:`,u)m+=ee(m,s.indent,c(u));let w,S,k;if(L(t))w=!!t.spaceBefore,S=t.commentBefore,k=t.comment;else if(w=!1,S=null,k=null,t&&typeof t==="object")t=o.createNode(t);if(s.implicitKey=!1,!d&&!u&&E(t))s.indentAtStart=m.length+1;if(h=!1,!p&&a.length>=2&&!s.inFlow&&!d&&Y(t)&&!t.flow&&!t.tag&&!t.anchor)s.indent=s.indent.substring(2);let N=!1,O=oe(t,s,()=>N=!0,()=>h=!0),A=" ";if(u||w||S){if(A=w?`
36
+ `:"",S){let C=c(S);A+=`
37
+ ${U(C,s.indent)}`}if(O===""&&!s.inFlow){if(A===`
38
+ `&&k)A=`
39
+
40
+ `}else A+=`
41
+ ${s.indent}`}else if(!d&&I(t)){let C=O[0],b=O.indexOf(`
42
+ `),P=b!==-1,le=s.inFlow??t.flow??t.items.length===0;if(P||!le){let we=!1;if(P&&(C==="&"||C==="!")){let M=O.indexOf(" ");if(C==="&"&&M!==-1&&M<b&&O[M+1]==="!")M=O.indexOf(" ",M+1);if(M===-1||b<M)we=!0}if(!we)A=`
43
+ ${s.indent}`}}else if(O===""||O[0]===`
44
+ `)A="";if(m+=A+O,s.inFlow){if(N&&n)n()}else if(k&&!N)m+=ee(m,s.indent,c(k));else if(h&&i)i();return m}function Bt(e,t){if(e==="debug"||e==="warn")console.warn(t)}var et="<<",Q={identify:(e)=>e===et||typeof e==="symbol"&&e.description===et,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new y(Symbol(et)),{addToJSMap:Kt}),stringify:()=>et},gs=(e,t)=>(Q.identify(t)||E(t)&&(!t.type||t.type===y.PLAIN)&&Q.identify(t.value))&&e?.doc.schema.tags.some((s)=>s.tag===Q.tag&&s.default);function Kt(e,t,s){let n=ys(e,s);if(Y(n))for(let i of n.items)Dt(e,t,i);else if(Array.isArray(n))for(let i of n)Dt(e,t,i);else Dt(e,t,n)}function Dt(e,t,s){let n=ys(e,s);if(!J(n))throw Error("Merge sources must be maps or map aliases");let i=n.toJSON(null,e,Map);for(let[r,o]of i)if(t instanceof Map){if(!t.has(r))t.set(r,o)}else if(t instanceof Set)t.add(r);else if(!Object.prototype.hasOwnProperty.call(t,r))Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function ys(e,t){return e&&V(t)?t.resolve(e.doc,e):t}function tt(e,t,{key:s,value:n}){if(L(s)&&s.addToJSMap)s.addToJSMap(e,t,n);else if(gs(e,s))Kt(e,t,n);else{let i=B(s,"",e);if(t instanceof Map)t.set(i,B(n,i,e));else if(t instanceof Set)t.add(i);else{let r=on(s,i,e),o=B(n,r,e);if(r in t)Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0});else t[r]=o}}return t}function on(e,t,s){if(t===null)return"";if(typeof t!=="object")return String(t);if(L(e)&&s?.doc){let n=Ze(s.doc,{});n.anchors=new Set;for(let r of s.anchors.keys())n.anchors.add(r.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!s.mapKeyWarned){let r=JSON.stringify(i);if(r.length>40)r=r.substring(0,36)+'..."';Bt(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),s.mapKeyWarned=!0}return i}return JSON.stringify(t)}function Ae(e,t,s){let n=re(e,void 0,s),i=re(t,void 0,s);return new v(n,i)}class v{constructor(e,t=null){Object.defineProperty(this,j,{value:Ct}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;if(L(t))t=t.clone(e);if(L(s))s=s.clone(e);return new v(t,s)}toJSON(e,t){let s=t?.mapAsMap?new Map:{};return tt(t,s,this)}toString(e,t,s){return e?.doc?ds(this,e,t,s):JSON.stringify(this)}}function nt(e,t,s){return(t.inFlow??e.flow?an:ln)(e,t,s)}function ln({comment:e,items:t},s,{blockItemPrefix:n,flowChars:i,itemIndent:r,onChompKeep:o,onComment:l}){let{indent:a,options:{commentString:c}}=s,p=Object.assign({},s,{indent:r,type:null}),f=!1,u=[];for(let g=0;g<t.length;++g){let h=t[g],m=null;if(L(h)){if(!f&&h.spaceBefore)u.push("");if(st(s,u,h.commentBefore,f),h.comment)m=h.comment}else if(T(h)){let S=L(h.key)?h.key:null;if(S){if(!f&&S.spaceBefore)u.push("");st(s,u,S.commentBefore,f)}}f=!1;let w=oe(h,p,()=>m=null,()=>f=!0);if(m)w+=ee(w,r,c(m));if(f&&m)f=!1;u.push(n+w)}let d;if(u.length===0)d=i.start+i.end;else{d=u[0];for(let g=1;g<u.length;++g){let h=u[g];d+=h?`
45
+ ${a}${h}`:`
46
+ `}}if(e){if(d+=`
47
+ `+U(c(e),a),l)l()}else if(f&&o)o();return d}function an({items:e},t,{flowChars:s,itemIndent:n}){let{indent:i,indentStep:r,flowCollectionPadding:o,options:{commentString:l}}=t;n+=r;let a=Object.assign({},t,{indent:n,inFlow:!0,type:null}),c=!1,p=0,f=[];for(let g=0;g<e.length;++g){let h=e[g],m=null;if(L(h)){if(h.spaceBefore)f.push("");if(st(t,f,h.commentBefore,!1),h.comment)m=h.comment}else if(T(h)){let S=L(h.key)?h.key:null;if(S){if(S.spaceBefore)f.push("");if(st(t,f,S.commentBefore,!1),S.comment)c=!0}let k=L(h.value)?h.value:null;if(k){if(k.comment)m=k.comment;if(k.commentBefore)c=!0}else if(h.value==null&&S?.comment)m=S.comment}if(m)c=!0;let w=oe(h,a,()=>m=null);if(c||(c=f.length>p||w.includes(`
48
+ `)),g<e.length-1)w+=",";else if(t.options.trailingComma){if(t.options.lineWidth>0)c||(c=f.reduce((S,k)=>S+k.length+2,2)+(w.length+2)>t.options.lineWidth);if(c)w+=","}if(m)w+=ee(w,n,l(m));f.push(w),p=f.length}let{start:u,end:d}=s;if(f.length===0)return u+d;else{if(!c){let g=f.reduce((h,m)=>h+m.length+2,2);c=t.options.lineWidth>0&&g>t.options.lineWidth}if(c){let g=u;for(let h of f)g+=h?`
49
+ ${r}${i}${h}`:`
50
+ `;return`${g}
51
+ ${i}${d}`}else return`${u}${o}${f.join(" ")}${o}${d}`}}function st({indent:e,options:{commentString:t}},s,n,i){if(n&&i)n=n.replace(/^\n+/,"");if(n){let r=U(t(n),e);s.push(r.trimStart())}}function fe(e,t){let s=E(t)?t.value:t;for(let n of e)if(T(n)){if(n.key===t||n.key===s)return n;if(E(n.key)&&n.key.value===s)return n}return}class _ extends _e{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(x,e);this.items=[]}static from(e,t,s){let{keepUndefined:n,replacer:i}=s,r=new this(e),o=(l,a)=>{if(typeof i==="function")a=i.call(t,l,a);else if(Array.isArray(i)&&!i.includes(l))return;if(a!==void 0||n)r.items.push(Ae(l,a,s))};if(t instanceof Map)for(let[l,a]of t)o(l,a);else if(t&&typeof t==="object")for(let l of Object.keys(t))o(l,t[l]);if(typeof e.sortMapEntries==="function")r.items.sort(e.sortMapEntries);return r}add(e,t){let s;if(T(e))s=e;else if(!e||typeof e!=="object"||!("key"in e))s=new v(e,e?.value);else s=new v(e.key,e.value);let n=fe(this.items,s.key),i=this.schema?.sortMapEntries;if(n){if(!t)throw Error(`Key ${s.key} already set`);if(E(n.value)&&We(s.value))n.value.value=s.value;else n.value=s.value}else if(i){let r=this.items.findIndex((o)=>i(s,o)<0);if(r===-1)this.items.push(s);else this.items.splice(r,0,s)}else this.items.push(s)}delete(e){let t=fe(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=fe(this.items,e)?.value;return(!t&&E(n)?n.value:n)??void 0}has(e){return!!fe(this.items,e)}set(e,t){this.add(new v(e,t),!0)}toJSON(e,t,s){let n=s?new s:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(let i of this.items)tt(t,n,i);return n}toString(e,t,s){if(!e)return JSON.stringify(this);for(let n of this.items)if(!T(n))throw Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);if(!e.allNullValues&&this.hasAllNullValues(!1))e=Object.assign({},e,{allNullValues:!0});return nt(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}var G={collection:"map",default:!0,nodeClass:_,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!J(e))t("Expected a mapping for this tag");return e},createNode:(e,t,s)=>_.from(e,t,s)};class q extends _e{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(ie,e);this.items=[]}add(e){this.items.push(e)}delete(e){let t=it(e);if(typeof t!=="number")return!1;return this.items.splice(t,1).length>0}get(e,t){let s=it(e);if(typeof s!=="number")return;let n=this.items[s];return!t&&E(n)?n.value:n}has(e){let t=it(e);return typeof t==="number"&&t<this.items.length}set(e,t){let s=it(e);if(typeof s!=="number")throw Error(`Expected a valid index, not ${e}.`);let n=this.items[s];if(E(n)&&We(t))n.value=t;else this.items[s]=t}toJSON(e,t){let s=[];if(t?.onCreate)t.onCreate(s);let n=0;for(let i of this.items)s.push(B(i,String(n++),t));return s}toString(e,t,s){if(!e)return JSON.stringify(this);return nt(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t})}static from(e,t,s){let{replacer:n}=s,i=new this(e);if(t&&Symbol.iterator in Object(t)){let r=0;for(let o of t){if(typeof n==="function"){let l=t instanceof Set?o:String(r++);o=n.call(t,l,o)}i.items.push(re(o,void 0,s))}}return i}}function it(e){let t=E(e)?e.value:e;if(t&&typeof t==="string")t=Number(t);return typeof t==="number"&&Number.isInteger(t)&&t>=0?t:null}var W={collection:"seq",default:!0,nodeClass:q,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!Y(e))t("Expected a sequence for this tag");return e},createNode:(e,t,s)=>q.from(e,t,s)};var ue={identify:(e)=>typeof e==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(e)=>e,stringify(e,t,s,n){return t=Object.assign({actualString:!0},t),ge(e,t,s,n)}};var ye={identify:(e)=>e==null,createNode:()=>new y(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new y(null),stringify:({source:e},t)=>typeof e==="string"&&ye.test.test(e)?e:t.options.nullStr};var Me={identify:(e)=>typeof e==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(e)=>new y(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},s){if(e&&Me.test.test(e)){let n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?s.options.trueStr:s.options.falseStr}};function K({format:e,minFractionDigits:t,tag:s,value:n}){if(typeof n==="bigint")return String(n);let i=typeof n==="number"?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=Object.is(n,-0)?"-0":JSON.stringify(n);if(!e&&t&&(!s||s==="tag:yaml.org,2002:float")&&/^-?\d/.test(r)&&!r.includes("e")){let o=r.indexOf(".");if(o<0)o=r.length,r+=".";let l=t-(r.length-o-1);while(l-- >0)r+="0"}return r}var rt={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(e)=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:K},ot={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(e)=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():K(e)}},lt={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new y(parseFloat(e)),s=e.indexOf(".");if(s!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-s-1;return t},stringify:K};var at=(e)=>typeof e==="bigint"||Number.isInteger(e),jt=(e,t,s,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),s);function bs(e,t,s){let{value:n}=e;if(at(n)&&n>=0)return s+n.toString(t);return K(e)}var ct={identify:(e)=>at(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,s)=>jt(e,2,8,s),stringify:(e)=>bs(e,8,"0o")},ft={identify:at,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,s)=>jt(e,0,10,s),stringify:K},ut={identify:(e)=>at(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,s)=>jt(e,2,16,s),stringify:(e)=>bs(e,16,"0x")};var ws=[G,W,ue,ye,Me,ct,ft,ut,rt,ot,lt];function Ss(e){return typeof e==="bigint"||Number.isInteger(e)}var ht=({value:e})=>JSON.stringify(e),cn=[{identify:(e)=>typeof e==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(e)=>e,stringify:ht},{identify:(e)=>e==null,createNode:()=>new y(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ht},{identify:(e)=>typeof e==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(e)=>e==="true",stringify:ht},{identify:Ss,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:s})=>s?BigInt(e):parseInt(e,10),stringify:({value:e})=>Ss(e)?e.toString():JSON.stringify(e)},{identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(e)=>parseFloat(e),stringify:ht}],fn={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},ks=[G,W].concat(cn,fn);var Be={identify:(e)=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob==="function"){let s=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(s.length);for(let i=0;i<s.length;++i)n[i]=s.charCodeAt(i);return n}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:s},n,i,r){if(!s)return"";let o=s,l;if(typeof btoa==="function"){let a="";for(let c=0;c<o.length;++c)a+=String.fromCharCode(o[c]);l=btoa(a)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=y.BLOCK_LITERAL),t!==y.QUOTE_DOUBLE){let a=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),c=Math.ceil(l.length/a),p=Array(c);for(let f=0,u=0;f<c;++f,u+=a)p[f]=l.substr(u,a);l=p.join(t===y.BLOCK_LITERAL?`
52
+ `:" ")}return ge({comment:e,type:t,value:l},n,i,r)}};function qt(e,t){if(Y(e))for(let s=0;s<e.items.length;++s){let n=e.items[s];if(T(n))continue;else if(J(n)){if(n.items.length>1)t("Each pair must have its own sequence indicator");let i=n.items[0]||new v(new y(null));if(n.commentBefore)i.key.commentBefore=i.key.commentBefore?`${n.commentBefore}
53
+ ${i.key.commentBefore}`:n.commentBefore;if(n.comment){let r=i.value??i.key;r.comment=r.comment?`${n.comment}
54
+ ${r.comment}`:n.comment}n=i}e.items[s]=T(n)?n:new v(n)}else t("Expected a sequence for this tag");return e}function Ft(e,t,s){let{replacer:n}=s,i=new q(e);i.tag="tag:yaml.org,2002:pairs";let r=0;if(t&&Symbol.iterator in Object(t))for(let o of t){if(typeof n==="function")o=n.call(t,String(r++),o);let l,a;if(Array.isArray(o))if(o.length===2)l=o[0],a=o[1];else throw TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)l=c[0],a=o[l];else throw TypeError(`Expected tuple with one key, not ${c.length} keys`)}else l=o;i.items.push(Ae(l,a,s))}return i}var De={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:qt,createNode:Ft};class Ee extends q{constructor(){super();this.add=_.prototype.add.bind(this),this.delete=_.prototype.delete.bind(this),this.get=_.prototype.get.bind(this),this.has=_.prototype.has.bind(this),this.set=_.prototype.set.bind(this),this.tag=Ee.tag}toJSON(e,t){if(!t)return super.toJSON(e);let s=new Map;if(t?.onCreate)t.onCreate(s);for(let n of this.items){let i,r;if(T(n))i=B(n.key,"",t),r=B(n.value,i,t);else i=B(n,"",t);if(s.has(i))throw Error("Ordered maps must not include duplicate keys");s.set(i,r)}return s}static from(e,t,s){let n=Ft(e,t,s),i=new this;return i.items=n.items,i}}Ee.tag="tag:yaml.org,2002:omap";var Ke={collection:"seq",identify:(e)=>e instanceof Map,nodeClass:Ee,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let s=qt(e,t),n=[];for(let{key:i}of s.items)if(E(i))if(n.includes(i.value))t(`Ordered maps must not include duplicate keys: ${i.value}`);else n.push(i.value);return Object.assign(new Ee,s)},createNode:(e,t,s)=>Ee.from(e,t,s)};function Ns({value:e,source:t},s){if(t&&(e?Rt:Ut).test.test(t))return t;return e?s.options.trueStr:s.options.falseStr}var Rt={identify:(e)=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new y(!0),stringify:Ns},Ut={identify:(e)=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new y(!1),stringify:Ns};var Os={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(e)=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:K},As={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(e)=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():K(e)}},Es={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new y(parseFloat(e.replace(/_/g,""))),s=e.indexOf(".");if(s!==-1){let n=e.substring(s+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:K};var je=(e)=>typeof e==="bigint"||Number.isInteger(e);function pt(e,t,s,{intAsBigInt:n}){let i=e[0];if(i==="-"||i==="+")t+=1;if(e=e.substring(t).replace(/_/g,""),n){switch(s){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let o=BigInt(e);return i==="-"?BigInt(-1)*o:o}let r=parseInt(e,s);return i==="-"?-1*r:r}function xt(e,t,s){let{value:n}=e;if(je(n)){let i=n.toString(t);return n<0?"-"+s+i.substr(1):s+i}return K(e)}var Ts={identify:je,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,s)=>pt(e,2,2,s),stringify:(e)=>xt(e,2,"0b")},Ls={identify:je,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,s)=>pt(e,1,8,s),stringify:(e)=>xt(e,8,"0")},Is={identify:je,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,s)=>pt(e,0,10,s),stringify:K},Cs={identify:je,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,s)=>pt(e,2,16,s),stringify:(e)=>xt(e,16,"0x")};class Te extends _{constructor(e){super(e);this.tag=Te.tag}add(e){let t;if(T(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new v(e.key,null);else t=new v(e,null);if(!fe(this.items,t.key))this.items.push(t)}get(e,t){let s=fe(this.items,e);return!t&&T(s)?E(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let s=fe(this.items,e);if(s&&!t)this.items.splice(this.items.indexOf(s),1);else if(!s&&t)this.items.push(new v(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);else throw Error("Set items must all have null values")}static from(e,t,s){let{replacer:n}=s,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let r of t){if(typeof n==="function")r=n.call(t,r,r);i.items.push(Ae(r,null,s))}return i}}Te.tag="tag:yaml.org,2002:set";var qe={collection:"map",identify:(e)=>e instanceof Set,nodeClass:Te,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,s)=>Te.from(e,t,s),resolve(e,t){if(J(e))if(e.hasAllNullValues(!0))return Object.assign(new Te,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function Vt(e,t){let s=e[0],n=s==="-"||s==="+"?e.substring(1):e,i=(o)=>t?BigInt(o):Number(o),r=n.replace(/_/g,"").split(":").reduce((o,l)=>o*i(60)+i(l),i(0));return s==="-"?i(-1)*r:r}function vs(e){let{value:t}=e,s=(o)=>o;if(typeof t==="bigint")s=(o)=>BigInt(o);else if(isNaN(t)||!isFinite(t))return K(e);let n="";if(t<0)n="-",t*=s(-1);let i=s(60),r=[t%i];if(t<60)r.unshift(0);else if(t=(t-r[0])/i,r.unshift(t%i),t>=60)t=(t-r[0])/i,r.unshift(t);return n+r.map((o)=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var mt={identify:(e)=>typeof e==="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:s})=>Vt(e,s),stringify:vs},dt={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(e)=>Vt(e,!1),stringify:vs},Le={identify:(e)=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(Le.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,s,n,i,r,o,l]=t.map(Number),a=t[7]?Number((t[7]+"00").substr(1,3)):0,c=Date.UTC(s,n-1,i,r||0,o||0,l||0,a),p=t[8];if(p&&p!=="Z"){let f=Vt(p,!1);if(Math.abs(f)<30)f*=60;c-=60000*f}return new Date(c)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};var Jt=[G,W,ue,ye,Rt,Ut,Ts,Ls,Is,Cs,Os,As,Es,Be,Q,Ke,De,qe,mt,dt,Le];var _s=new Map([["core",ws],["failsafe",[G,W,ue]],["json",ks],["yaml11",Jt],["yaml-1.1",Jt]]),$s={binary:Be,bool:Me,float:lt,floatExp:ot,floatNaN:rt,floatTime:dt,int:ft,intHex:ut,intOct:ct,intTime:mt,map:G,merge:Q,null:ye,omap:Ke,pairs:De,seq:W,set:qe,timestamp:Le},Ps={"tag:yaml.org,2002:binary":Be,"tag:yaml.org,2002:merge":Q,"tag:yaml.org,2002:omap":Ke,"tag:yaml.org,2002:pairs":De,"tag:yaml.org,2002:set":qe,"tag:yaml.org,2002:timestamp":Le};function gt(e,t,s){let n=_s.get(t);if(n&&!e)return s&&!n.includes(Q)?n.concat(Q):n.slice();let i=n;if(!i)if(Array.isArray(e))i=[];else{let r=Array.from(_s.keys()).filter((o)=>o!=="yaml11").map((o)=>JSON.stringify(o)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${r} or define customTags array`)}if(Array.isArray(e))for(let r of e)i=i.concat(r);else if(typeof e==="function")i=e(i.slice());if(s)i=i.concat(Q);return i.reduce((r,o)=>{let l=typeof o==="string"?$s[o]:o;if(!l){let a=JSON.stringify(o),c=Object.keys($s).map((p)=>JSON.stringify(p)).join(", ");throw Error(`Unknown custom tag ${a}; use one of ${c}`)}if(!r.includes(l))r.push(l);return r},[])}var un=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Fe{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:n,schema:i,sortMapEntries:r,toStringDefaults:o}){this.compat=Array.isArray(e)?gt(e,"compat"):e?gt(null,e):null,this.name=typeof i==="string"&&i||"core",this.knownTags=n?Ps:{},this.tags=gt(t,this.name,s),this.toStringOptions=o??null,Object.defineProperty(this,x,{value:G}),Object.defineProperty(this,R,{value:ue}),Object.defineProperty(this,ie,{value:W}),this.sortMapEntries=typeof r==="function"?r:r===!0?un:null}clone(){let e=Object.create(Fe.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function Ms(e,t){let s=[],n=t.directives===!0;if(t.directives!==!1&&e.directives){let a=e.directives.toString(e);if(a)s.push(a),n=!0;else if(e.directives.docStart)n=!0}if(n)s.push("---");let i=Ze(e,t),{commentString:r}=i.options;if(e.commentBefore){if(s.length!==1)s.unshift("");let a=r(e.commentBefore);s.unshift(U(a,""))}let o=!1,l=null;if(e.contents){if(L(e.contents)){if(e.contents.spaceBefore&&n)s.push("");if(e.contents.commentBefore){let p=r(e.contents.commentBefore);s.push(U(p,""))}i.forceBlockIndent=!!e.comment,l=e.contents.comment}let a=l?void 0:()=>o=!0,c=oe(e.contents,i,()=>l=null,a);if(l)c+=ee(c,"",r(l));if((c[0]==="|"||c[0]===">")&&s[s.length-1]==="---")s[s.length-1]=`--- ${c}`;else s.push(c)}else s.push(oe(e.contents,i));if(e.directives?.docEnd)if(e.comment){let a=r(e.comment);if(a.includes(`
55
+ `))s.push("..."),s.push(U(a,""));else s.push(`... ${a}`)}else s.push("...");else{let a=e.comment;if(a&&o)a=a.replace(/^\n+/,"");if(a){if((!o||l)&&s[s.length-1]!=="")s.push("");s.push(U(r(a),""))}}return s.join(`
56
+ `)+`
57
+ `}class he{constructor(e,t,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,j,{value:Ve});let n=null;if(typeof t==="function"||Array.isArray(t))n=t;else if(s===void 0&&t)s=t,t=void 0;let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=i;let{version:r}=i;if(s?._directives){if(this.directives=s._directives.atDocument(),this.directives.yaml.explicit)r=this.directives.yaml.version}else this.directives=new D({version:r});this.setSchema(r,s),this.contents=e===void 0?null:this.createNode(e,n,s)}clone(){let e=Object.create(he.prototype,{[j]:{value:Ve}});if(e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives)e.directives=this.directives.clone();if(e.schema=this.schema.clone(),e.contents=L(this.contents)?this.contents.clone(e.schema):this.contents,this.range)e.range=this.range.slice();return e}add(e){if(Ie(this.contents))this.contents.add(e)}addIn(e,t){if(Ie(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let s=vt(this);e.anchor=!t||s.has(t)?_t(t||"a",s):t}return new ce(e.anchor)}createNode(e,t,s){let n=void 0;if(typeof t==="function")e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){let h=(w)=>typeof w==="number"||w instanceof String||w instanceof Number,m=t.filter(h).map(String);if(m.length>0)t=t.concat(m);n=t}else if(s===void 0&&t)s=t,t=void 0;let{aliasDuplicateObjects:i,anchorPrefix:r,flow:o,keepUndefined:l,onTagObj:a,tag:c}=s??{},{onAnchor:p,setAnchors:f,sourceObjects:u}=fs(this,r||"a"),d={aliasDuplicateObjects:i??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:a,replacer:n,schema:this.schema,sourceObjects:u},g=re(e,c,d);if(o&&I(g))g.flow=!0;return f(),g}createPair(e,t,s={}){let n=this.createNode(e,null,s),i=this.createNode(t,null,s);return new v(n,i)}delete(e){return Ie(this.contents)?this.contents.delete(e):!1}deleteIn(e){if(Ne(e)){if(this.contents==null)return!1;return this.contents=null,!0}return Ie(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return I(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){if(Ne(e))return!t&&E(this.contents)?this.contents.value:this.contents;return I(this.contents)?this.contents.getIn(e,t):void 0}has(e){return I(this.contents)?this.contents.has(e):!1}hasIn(e){if(Ne(e))return this.contents!==void 0;return I(this.contents)?this.contents.hasIn(e):!1}set(e,t){if(this.contents==null)this.contents=ve(this.schema,[e],t);else if(Ie(this.contents))this.contents.set(e,t)}setIn(e,t){if(Ne(e))this.contents=t;else if(this.contents==null)this.contents=ve(this.schema,Array.from(e),t);else if(Ie(this.contents))this.contents.setIn(e,t)}setSchema(e,t={}){if(typeof e==="number")e=String(e);let s;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new D({version:"1.1"});s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new D({version:e});s={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;s=null;break;default:{let n=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(s)this.schema=new Fe(Object.assign(s,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:n,onAnchor:i,reviver:r}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof n==="number"?n:100},l=B(this.contents,t??"",o);if(typeof i==="function")for(let{count:a,res:c}of o.anchors.values())i(c,a);return typeof r==="function"?ae(r,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Ms(this,e)}}function Ie(e){if(I(e))return!0;throw Error("Expected a YAML collection as document contents")}class yt extends Error{constructor(e,t,s,n){super();this.name=e,this.code=s,this.message=n,this.pos=t}}class te extends yt{constructor(e,t,s){super("YAMLParseError",e,t,s)}}class bt extends yt{constructor(e,t,s){super("YAMLWarning",e,t,s)}}var Yt=(e,t)=>(s)=>{if(s.pos[0]===-1)return;s.linePos=s.pos.map((l)=>t.linePos(l));let{line:n,col:i}=s.linePos[0];s.message+=` at line ${n}, column ${i}`;let r=i-1,o=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){let l=Math.min(r-39,o.length-79);o="…"+o.substring(l),r-=l-1}if(o.length>80)o=o.substring(0,79)+"…";if(n>1&&/^ *$/.test(o.substring(0,r))){let l=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(l.length>80)l=l.substring(0,79)+`…
58
+ `;o=l+o}if(/[^ ]/.test(o)){let l=1,a=s.linePos[1];if(a?.line===n&&a.col>i)l=Math.max(1,Math.min(a.col-i,80-r));let c=" ".repeat(r)+"^".repeat(l);s.message+=`:
59
+
60
+ ${o}
61
+ ${c}
62
+ `}};function se(e,{flow:t,indicator:s,next:n,offset:i,onError:r,parentIndent:o,startOnNewline:l}){let a=!1,c=l,p=l,f="",u="",d=!1,g=!1,h=null,m=null,w=null,S=null,k=null,N=null,O=null;for(let b of e){if(g){if(b.type!=="space"&&b.type!=="newline"&&b.type!=="comma")r(b.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");g=!1}if(h){if(c&&b.type!=="comment"&&b.type!=="newline")r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation");h=null}switch(b.type){case"space":if(!t&&(s!=="doc-start"||n?.type!=="flow-collection")&&b.source.includes("\t"))h=b;p=!0;break;case"comment":{if(!p)r(b,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let P=b.source.substring(1)||" ";if(!f)f=P;else f+=u+P;u="",c=!1;break}case"newline":if(c){if(f)f+=b.source;else if(!N||s!=="seq-item-ind")a=!0}else u+=b.source;if(c=!0,d=!0,m||w)S=b;p=!0;break;case"anchor":if(m)r(b,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(b.source.endsWith(":"))r(b.offset+b.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);m=b,O??(O=b.offset),c=!1,p=!1,g=!0;break;case"tag":{if(w)r(b,"MULTIPLE_TAGS","A node can have at most one tag");w=b,O??(O=b.offset),c=!1,p=!1,g=!0;break}case s:if(m||w)r(b,"BAD_PROP_ORDER",`Anchors and tags must be after the ${b.source} indicator`);if(N)r(b,"UNEXPECTED_TOKEN",`Unexpected ${b.source} in ${t??"collection"}`);N=b,c=s==="seq-item-ind"||s==="explicit-key-ind",p=!1;break;case"comma":if(t){if(k)r(b,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);k=b,c=!1,p=!1;break}default:r(b,"UNEXPECTED_TOKEN",`Unexpected ${b.type} token`),c=!1,p=!1}}let A=e[e.length-1],C=A?A.offset+A.source.length:i;if(g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!==""))r(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(h&&(c&&h.indent<=o||n?.type==="block-map"||n?.type==="block-seq"))r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:k,found:N,spaceBefore:a,comment:f,hasNewline:d,anchor:m,tag:w,newlineAfterProp:S,end:C,start:O??C}}function pe(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
63
+ `))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let s of t.start)if(s.type==="newline")return!0;if(t.sep){for(let s of t.sep)if(s.type==="newline")return!0}if(pe(t.key)||pe(t.value))return!0}return!1;default:return!0}}function Re(e,t,s){if(t?.type==="flow-collection"){let n=t.end[0];if(n.indent===e&&(n.source==="]"||n.source==="}")&&pe(t))s(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function wt(e,t,s){let{uniqueKeys:n}=e.options;if(n===!1)return!1;let i=typeof n==="function"?n:(r,o)=>r===o||E(r)&&E(o)&&r.value===o.value;return t.some((r)=>i(r.key,s))}var Bs="All mapping items must start at the same column";function Ds({composeNode:e,composeEmptyNode:t},s,n,i,r){let l=new(r?.nodeClass??_)(s.schema);if(s.atRoot)s.atRoot=!1;let a=n.offset,c=null;for(let p of n.items){let{start:f,key:u,sep:d,value:g}=p,h=se(f,{indicator:"explicit-key-ind",next:u??d?.[0],offset:a,onError:i,parentIndent:n.indent,startOnNewline:!0}),m=!h.found;if(m){if(u){if(u.type==="block-seq")i(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in u&&u.indent!==n.indent)i(a,"BAD_INDENT",Bs)}if(!h.anchor&&!h.tag&&!d){if(c=h.end,h.comment)if(l.comment)l.comment+=`
64
+ `+h.comment;else l.comment=h.comment;continue}if(h.newlineAfterProp||pe(u))i(u??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(h.found?.indent!==n.indent)i(a,"BAD_INDENT",Bs);s.atKey=!0;let w=h.end,S=u?e(s,u,h,i):t(s,w,f,null,h,i);if(s.schema.compat)Re(n.indent,u,i);if(s.atKey=!1,wt(s,l.items,S))i(w,"DUPLICATE_KEY","Map keys must be unique");let k=se(d??[],{indicator:"map-value-ind",next:g,offset:S.range[2],onError:i,parentIndent:n.indent,startOnNewline:!u||u.type==="block-scalar"});if(a=k.end,k.found){if(m){if(g?.type==="block-map"&&!k.hasNewline)i(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(s.options.strict&&h.start<k.found.offset-1024)i(S.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let N=g?e(s,g,k,i):t(s,a,d,null,k,i);if(s.schema.compat)Re(n.indent,g,i);a=N.range[2];let O=new v(S,N);if(s.options.keepSourceTokens)O.srcToken=p;l.items.push(O)}else{if(m)i(S.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(k.comment)if(S.comment)S.comment+=`
65
+ `+k.comment;else S.comment=k.comment;let N=new v(S);if(s.options.keepSourceTokens)N.srcToken=p;l.items.push(N)}}if(c&&c<a)i(c,"IMPOSSIBLE","Map comment with trailing content");return l.range=[n.offset,a,c??a],l}function Ks({composeNode:e,composeEmptyNode:t},s,n,i,r){let l=new(r?.nodeClass??q)(s.schema);if(s.atRoot)s.atRoot=!1;if(s.atKey)s.atKey=!1;let a=n.offset,c=null;for(let{start:p,value:f}of n.items){let u=se(p,{indicator:"seq-item-ind",next:f,offset:a,onError:i,parentIndent:n.indent,startOnNewline:!0});if(!u.found)if(u.anchor||u.tag||f)if(f?.type==="block-seq")i(u.end,"BAD_INDENT","All sequence items must start at the same column");else i(a,"MISSING_CHAR","Sequence item without - indicator");else{if(c=u.end,u.comment)l.comment=u.comment;continue}let d=f?e(s,f,u,i):t(s,u.end,p,null,u,i);if(s.schema.compat)Re(n.indent,f,i);a=d.range[2],l.items.push(d)}return l.range=[n.offset,a,c??a],l}function ne(e,t,s,n){let i="";if(e){let r=!1,o="";for(let l of e){let{source:a,type:c}=l;switch(c){case"space":r=!0;break;case"comment":{if(s&&!r)n(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let p=a.substring(1)||" ";if(!i)i=p;else i+=o+p;o="";break}case"newline":if(i)o+=a;r=!0;break;default:n(l,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=a.length}}return{comment:i,offset:t}}var Qt="Block collections are not allowed within flow collections",Gt=(e)=>e&&(e.type==="block-map"||e.type==="block-seq");function js({composeNode:e,composeEmptyNode:t},s,n,i,r){let o=n.start.source==="{",l=o?"flow map":"flow sequence",c=new(r?.nodeClass??(o?_:q))(s.schema);c.flow=!0;let p=s.atRoot;if(p)s.atRoot=!1;if(s.atKey)s.atKey=!1;let f=n.offset+n.start.source.length;for(let m=0;m<n.items.length;++m){let w=n.items[m],{start:S,key:k,sep:N,value:O}=w,A=se(S,{flow:l,indicator:"explicit-key-ind",next:k??N?.[0],offset:f,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!A.found){if(!A.anchor&&!A.tag&&!N&&!O){if(m===0&&A.comma)i(A.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(m<n.items.length-1)i(A.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`);if(A.comment)if(c.comment)c.comment+=`
66
+ `+A.comment;else c.comment=A.comment;f=A.end;continue}if(!o&&s.options.strict&&pe(k))i(k,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0){if(A.comma)i(A.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`)}else{if(!A.comma)i(A.start,"MISSING_CHAR",`Missing , between ${l} items`);if(A.comment){let C="";e:for(let b of S)switch(b.type){case"comma":case"space":break;case"comment":C=b.source.substring(1);break e;default:break e}if(C){let b=c.items[c.items.length-1];if(T(b))b=b.value??b.key;if(b.comment)b.comment+=`
67
+ `+C;else b.comment=C;A.comment=A.comment.substring(C.length+1)}}}if(!o&&!N&&!A.found){let C=O?e(s,O,A,i):t(s,A.end,N,null,A,i);if(c.items.push(C),f=C.range[2],Gt(O))i(C.range,"BLOCK_IN_FLOW",Qt)}else{s.atKey=!0;let C=A.end,b=k?e(s,k,A,i):t(s,C,S,null,A,i);if(Gt(k))i(b.range,"BLOCK_IN_FLOW",Qt);s.atKey=!1;let P=se(N??[],{flow:l,indicator:"map-value-ind",next:O,offset:b.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(P.found){if(!o&&!A.found&&s.options.strict){if(N)for(let M of N){if(M===P.found)break;if(M.type==="newline"){i(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(A.start<P.found.offset-1024)i(P.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(O)if("source"in O&&O.source?.[0]===":")i(O,"MISSING_CHAR",`Missing space after : in ${l}`);else i(P.start,"MISSING_CHAR",`Missing , or : between ${l} items`);let le=O?e(s,O,P,i):P.found?t(s,P.end,N,null,P,i):null;if(le){if(Gt(O))i(le.range,"BLOCK_IN_FLOW",Qt)}else if(P.comment)if(b.comment)b.comment+=`
68
+ `+P.comment;else b.comment=P.comment;let we=new v(b,le);if(s.options.keepSourceTokens)we.srcToken=w;if(o){let M=c;if(wt(s,M.items,b))i(C,"DUPLICATE_KEY","Map keys must be unique");M.items.push(we)}else{let M=new _(s.schema);M.flow=!0,M.items.push(we);let rs=(le??b).range;M.range=[b.range[0],rs[1],rs[2]],c.items.push(M)}f=le?le.range[2]:P.end}}let u=o?"}":"]",[d,...g]=n.end,h=f;if(d?.source===u)h=d.offset+d.source.length;else{let m=l[0].toUpperCase()+l.substring(1),w=p?`${m} must end with a ${u}`:`${m} in block collection must be sufficiently indented and end with a ${u}`;if(i(f,p?"MISSING_CHAR":"BAD_INDENT",w),d&&d.source.length!==1)g.unshift(d)}if(g.length>0){let m=ne(g,h,s.options.strict,i);if(m.comment)if(c.comment)c.comment+=`
69
+ `+m.comment;else c.comment=m.comment;c.range=[n.offset,h,m.offset]}else c.range=[n.offset,h,h];return c}function Wt(e,t,s,n,i,r){let o=s.type==="block-map"?Ds(e,t,s,n,r):s.type==="block-seq"?Ks(e,t,s,n,r):js(e,t,s,n,r),l=o.constructor;if(i==="!"||i===l.tagName)return o.tag=l.tagName,o;if(i)o.tag=i;return o}function qs(e,t,s,n,i){let r=n.tag,o=!r?null:t.directives.tagName(r.source,(u)=>i(r,"TAG_RESOLVE_FAILED",u));if(s.type==="block-seq"){let{anchor:u,newlineAfterProp:d}=n,g=u&&r?u.offset>r.offset?u:r:u??r;if(g&&(!d||d.offset<g.offset))i(g,"MISSING_CHAR","Missing newline after block sequence props")}let l=s.type==="block-map"?"map":s.type==="block-seq"?"seq":s.start.source==="{"?"map":"seq";if(!r||!o||o==="!"||o===_.tagName&&l==="map"||o===q.tagName&&l==="seq")return Wt(e,t,s,i,o);let a=t.schema.tags.find((u)=>u.tag===o&&u.collection===l);if(!a){let u=t.schema.knownTags[o];if(u?.collection===l)t.schema.tags.push(Object.assign({},u,{default:!1})),a=u;else{if(u)i(r,"BAD_COLLECTION_TYPE",`${u.tag} used for ${l} collection, but expects ${u.collection??"scalar"}`,!0);else i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0);return Wt(e,t,s,i,o)}}let c=Wt(e,t,s,i,o,a),p=a.resolve?.(c,(u)=>i(r,"TAG_RESOLVE_FAILED",u),t.options)??c,f=L(p)?p:new y(p);if(f.range=c.range,f.tag=o,a?.format)f.format=a.format;return f}function Ht(e,t,s){let n=t.offset,i=hn(t,e.options.strict,s);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};let r=i.mode===">"?y.BLOCK_FOLDED:y.BLOCK_LITERAL,o=t.source?pn(t.source):[],l=o.length;for(let h=o.length-1;h>=0;--h){let m=o[h][1];if(m===""||m==="\r")l=h;else break}if(l===0){let h=i.chomp==="+"&&o.length>0?`
70
+ `.repeat(Math.max(1,o.length-1)):"",m=n+i.length;if(t.source)m+=t.source.length;return{value:h,type:r,comment:i.comment,range:[n,m,m]}}let a=t.indent+i.indent,c=t.offset+i.length,p=0;for(let h=0;h<l;++h){let[m,w]=o[h];if(w===""||w==="\r"){if(i.indent===0&&m.length>a)a=m.length}else{if(m.length<a)s(c+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(i.indent===0)a=m.length;if(p=h,a===0&&!e.atRoot)s(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=m.length+w.length+1}for(let h=o.length-1;h>=l;--h)if(o[h][0].length>a)l=h+1;let f="",u="",d=!1;for(let h=0;h<p;++h)f+=o[h][0].slice(a)+`
71
+ `;for(let h=p;h<l;++h){let[m,w]=o[h];c+=m.length+w.length+1;let S=w[w.length-1]==="\r";if(S)w=w.slice(0,-1);if(w&&m.length<a){let N=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;s(c-w.length-(S?2:1),"BAD_INDENT",N),m=""}if(r===y.BLOCK_LITERAL)f+=u+m.slice(a)+w,u=`
72
+ `;else if(m.length>a||w[0]==="\t"){if(u===" ")u=`
73
+ `;else if(!d&&u===`
74
+ `)u=`
75
+
76
+ `;f+=u+m.slice(a)+w,u=`
77
+ `,d=!0}else if(w==="")if(u===`
78
+ `)f+=`
79
+ `;else u=`
80
+ `;else f+=u+w,u=" ",d=!1}switch(i.chomp){case"-":break;case"+":for(let h=l;h<o.length;++h)f+=`
81
+ `+o[h][0].slice(a);if(f[f.length-1]!==`
82
+ `)f+=`
83
+ `;break;default:f+=`
84
+ `}let g=n+i.length+t.source.length;return{value:f,type:r,comment:i.comment,range:[n,g,g]}}function hn({offset:e,props:t},s,n){if(t[0].type!=="block-scalar-header")return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],r=i[0],o=0,l="",a=-1;for(let u=1;u<i.length;++u){let d=i[u];if(!l&&(d==="-"||d==="+"))l=d;else{let g=Number(d);if(!o&&g)o=g;else if(a===-1)a=e+u}}if(a!==-1)n(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,p="",f=i.length;for(let u=1;u<t.length;++u){let d=t[u];switch(d.type){case"space":c=!0;case"newline":f+=d.source.length;break;case"comment":if(s&&!c)n(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");f+=d.source.length,p=d.source.substring(1);break;case"error":n(d,"UNEXPECTED_TOKEN",d.message),f+=d.source.length;break;default:{let g=`Unexpected token in block scalar header: ${d.type}`;n(d,"UNEXPECTED_TOKEN",g);let h=d.source;if(h&&typeof h==="string")f+=h.length}}}return{mode:r,indent:o,chomp:l,comment:p,length:f}}function pn(e){let t=e.split(/\n( *)/),s=t[0],n=s.match(/^( *)/),r=[n?.[1]?[n[1],s.slice(n[1].length)]:["",s]];for(let o=1;o<t.length;o+=2)r.push([t[o],t[o+1]]);return r}function Xt(e,t,s){let{offset:n,type:i,source:r,end:o}=e,l,a,c=(u,d,g)=>s(n+u,d,g);switch(i){case"scalar":l=y.PLAIN,a=mn(r,c);break;case"single-quoted-scalar":l=y.QUOTE_SINGLE,a=dn(r,c);break;case"double-quoted-scalar":l=y.QUOTE_DOUBLE,a=gn(r,c);break;default:return s(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[n,n+r.length,n+r.length]}}let p=n+r.length,f=ne(o,p,t,s);return{value:a,type:l,comment:f.comment,range:[n,p,f.offset]}}function mn(e,t){let s="";switch(e[0]){case"\t":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${e[0]}`;break}case"@":case"`":{s=`reserved character ${e[0]}`;break}}if(s)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`);return Fs(e)}function dn(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return Fs(e.slice(1,-1)).replace(/''/g,"'")}function Fs(e){let t=/(.*?)\r?\n/sy,s=t.exec(e);if(!s)return e;let n,i;try{n=new RegExp("(?<![ \t])[ \t]+$"),i=new RegExp("^[ \t]+|(?<![ \t])[ \t]+$","g")}catch{n=/[ \t]+$/,i=/^[ \t]+|[ \t]+$/g}let r=s[1].replace(n,""),o=" ",l=t.lastIndex;while(s=t.exec(e)){let c=s[1].replace(i,"");if(c==="")if(o===`
85
+ `)r+=o;else o=`
86
+ `;else r+=o+c,o=" ";l=t.lastIndex}let a=/[ \t]*(.*)/sy;return a.lastIndex=l,s=a.exec(e),r+o+(s?.[1]??"")}function gn(e,t){let s="";for(let n=1;n<e.length-1;++n){let i=e[n];if(i==="\r"&&e[n+1]===`
87
+ `)continue;if(i===`
88
+ `){let{fold:r,offset:o}=yn(e,n);s+=r,n=o}else if(i==="\\"){let r=e[++n],o=bn[r];if(o)s+=o;else if(r===`
89
+ `){r=e[n+1];while(r===" "||r==="\t")r=e[++n+1]}else if(r==="\r"&&e[n+1]===`
90
+ `){r=e[++n+1];while(r===" "||r==="\t")r=e[++n+1]}else if(r==="x"||r==="u"||r==="U"){let l=r==="x"?2:r==="u"?4:8;s+=wn(e,n+1,l,t),n+=l}else{let l=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),s+=l}}else if(i===" "||i==="\t"){let r=n,o=e[n+1];while(o===" "||o==="\t")o=e[++n+1];if(o!==`
91
+ `&&!(o==="\r"&&e[n+2]===`
92
+ `))s+=n>r?e.slice(r,n+1):i}else s+=i}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return s}function yn(e,t){let s="",n=e[t+1];while(n===" "||n==="\t"||n===`
93
+ `||n==="\r"){if(n==="\r"&&e[t+2]!==`
94
+ `)break;if(n===`
95
+ `)s+=`
96
+ `;t+=1,n=e[t+1]}if(!s)s=" ";return{fold:s,offset:t}}var bn={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
97
+ `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function wn(e,t,s,n){let i=e.substr(t,s),o=i.length===s&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(o)}catch{let l=e.substr(t-2,s+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}}function zt(e,t,s,n){let{value:i,type:r,comment:o,range:l}=t.type==="block-scalar"?Ht(e,t,n):Xt(t,e.options.strict,n),a=s?e.directives.tagName(s.source,(f)=>n(s,"TAG_RESOLVE_FAILED",f)):null,c;if(e.options.stringKeys&&e.atKey)c=e.schema[R];else if(a)c=Sn(e.schema,i,a,s,n);else if(t.type==="scalar")c=kn(e,i,t,n);else c=e.schema[R];let p;try{let f=c.resolve(i,(u)=>n(s??t,"TAG_RESOLVE_FAILED",u),e.options);p=E(f)?f:new y(f)}catch(f){let u=f instanceof Error?f.message:String(f);n(s??t,"TAG_RESOLVE_FAILED",u),p=new y(i)}if(p.range=l,p.source=i,r)p.type=r;if(a)p.tag=a;if(c.format)p.format=c.format;if(o)p.comment=o;return p}function Sn(e,t,s,n,i){if(s==="!")return e[R];let r=[];for(let l of e.tags)if(!l.collection&&l.tag===s)if(l.default&&l.test)r.push(l);else return l;for(let l of r)if(l.test?.test(t))return l;let o=e.knownTags[s];if(o&&!o.collection)return e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o;return i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,s!=="tag:yaml.org,2002:str"),e[R]}function kn({atKey:e,directives:t,schema:s},n,i,r){let o=s.tags.find((l)=>(l.default===!0||e&&l.default==="key")&&l.test?.test(n))||s[R];if(s.compat){let l=s.compat.find((a)=>a.default&&a.test?.test(n))??s[R];if(o.tag!==l.tag){let a=t.tagString(o.tag),c=t.tagString(l.tag),p=`Value may be parsed as either ${a} or ${c}`;r(i,"TAG_RESOLVE_FAILED",p,!0)}}return o}function Rs(e,t,s){if(t){s??(s=t.length);for(let n=s-1;n>=0;--n){let i=t[n];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}i=t[++n];while(i?.type==="space")e+=i.source.length,i=t[++n];break}}return e}var Nn={composeNode:Zt,composeEmptyNode:St};function Zt(e,t,s,n){let i=e.atKey,{spaceBefore:r,comment:o,anchor:l,tag:a}=s,c,p=!0;switch(t.type){case"alias":if(c=On(e,t,n),l||a)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(c=zt(e,t,a,n),l)c.anchor=l.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":try{if(c=qs(Nn,e,t,s,n),l)c.anchor=l.source.substring(1)}catch(f){let u=f instanceof Error?f.message:String(f);n(t,"RESOURCE_EXHAUSTION",u)}break;default:{let f=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",f),p=!1}}if(c??(c=St(e,t.offset,void 0,null,s,n)),l&&c.anchor==="")n(l,"BAD_ALIAS","Anchor cannot be an empty string");if(i&&e.options.stringKeys&&(!E(c)||typeof c.value!=="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str"))n(a??t,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(r)c.spaceBefore=!0;if(o)if(t.type==="scalar"&&t.source==="")c.comment=o;else c.commentBefore=o;if(e.options.keepSourceTokens&&p)c.srcToken=t;return c}function St(e,t,s,n,{spaceBefore:i,comment:r,anchor:o,tag:l,end:a},c){let p={type:"scalar",offset:Rs(t,s,n),indent:-1,source:""},f=zt(e,p,l,c);if(o){if(f.anchor=o.source.substring(1),f.anchor==="")c(o,"BAD_ALIAS","Anchor cannot be an empty string")}if(i)f.spaceBefore=!0;if(r)f.comment=r,f.range[2]=a;return f}function On({options:e},{offset:t,source:s,end:n},i){let r=new ce(s.substring(1));if(r.source==="")i(t,"BAD_ALIAS","Alias cannot be an empty string");if(r.source.endsWith(":"))i(t+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=t+s.length,l=ne(n,o,e.strict,i);if(r.range=[t,o,l.offset],l.comment)r.comment=l.comment;return r}function Us(e,t,{offset:s,start:n,value:i,end:r},o){let l=Object.assign({_directives:t},e),a=new he(void 0,l),c={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},p=se(n,{indicator:"doc-start",next:i??r?.[0],offset:s,onError:o,parentIndent:0,startOnNewline:!0});if(p.found){if(a.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!p.hasNewline)o(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}a.contents=i?Zt(c,i,p,o):St(c,p.end,n,null,p,o);let f=a.contents.range[2],u=ne(r,f,!1,o);if(u.comment)a.comment=u.comment;return a.range=[s,f,u.offset],a}function Ue(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:s}=e;return[t,t+(typeof s==="string"?s.length:1)]}function xs(e){let t="",s=!1,n=!1;for(let i=0;i<e.length;++i){let r=e[i];switch(r[0]){case"#":t+=(t===""?"":n?`
98
+
99
+ `:`
100
+ `)+(r.substring(1)||" "),s=!0,n=!1;break;case"%":if(e[i+1]?.[0]!=="#")i+=1;s=!1;break;default:if(!s)n=!0;s=!1}}return{comment:t,afterEmptyLine:n}}class kt{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,s,n,i)=>{let r=Ue(t);if(i)this.warnings.push(new bt(r,s,n));else this.errors.push(new te(r,s,n))},this.directives=new D({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:s,afterEmptyLine:n}=xs(this.prelude);if(s){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}
101
+ ${s}`:s;else if(n||e.directives.docStart||!i)e.commentBefore=s;else if(I(i)&&!i.flow&&i.items.length>0){let r=i.items[0];if(T(r))r=r.key;let o=r.commentBefore;r.commentBefore=o?`${s}
102
+ ${o}`:s}else{let r=i.commentBefore;i.commentBefore=r?`${s}
103
+ ${r}`:s}}if(t){for(let i=0;i<this.errors.length;++i)e.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)e.warnings.push(this.warnings[i])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:xs(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,s=-1){for(let n of e)yield*this.next(n);yield*this.end(t,s)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,s,n)=>{let i=Ue(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",s,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=Us(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(t,!1),this.doc)yield this.doc;this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new te(Ue(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(s);else this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){this.errors.push(new te(Ue(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=ne(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let s=this.doc.comment;this.doc.comment=s?`${s}
104
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new te(Ue(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let s=Object.assign({_directives:this.directives},this.options),n=new he(void 0,s);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");n.range=[0,t,t],this.decorate(n,!1),yield n}}}var es=Symbol("break visit"),An=Symbol("skip children"),Vs=Symbol("remove item");function be(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};Js(Object.freeze([]),e,t)}be.BREAK=es;be.SKIP=An;be.REMOVE=Vs;be.itemAtPath=(e,t)=>{let s=e;for(let[n,i]of t){let r=s?.[n];if(r&&"items"in r)s=r.items[i];else return}return s};be.parentCollection=(e,t)=>{let s=be.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],i=s?.[n];if(i&&"items"in i)return i;throw Error("Parent collection not found")};function Js(e,t,s){let n=s(t,e);if(typeof n==="symbol")return n;for(let i of["key","value"]){let r=t[i];if(r&&"items"in r){for(let o=0;o<r.items.length;++o){let l=Js(Object.freeze(e.concat([[i,o]])),r.items[o],s);if(typeof l==="number")o=l-1;else if(l===es)return es;else if(l===Vs)r.items.splice(o,1),o-=1}if(typeof n==="function"&&i==="key")n=n(t,e)}}return typeof n==="function"?n(t,e):n}var ts="\uFEFF",ss="\x02",ns="\x18",Nt="\x1F";function Ys(e){switch(e){case ts:return"byte-order-mark";case ss:return"doc-mode";case ns:return"flow-error-end";case Nt:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
105
+ `:case`\r
106
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function H(e){switch(e){case void 0:case" ":case`
107
+ `:case"\r":case"\t":return!0;default:return!1}}var Qs=new Set("0123456789ABCDEFabcdef"),Tn=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Ot=new Set(",[]{}"),Ln=new Set(` ,[]{}
108
+ \r `),is=(e)=>!e||Ln.has(e);class At{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let s=this.next??"stream";while(s&&(t||this.hasChars(1)))s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t===`
109
+ `)return!0;if(t==="\r")return this.buffer[e+1]===`
110
+ `;return!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;while(t===" ")t=this.buffer[++s+e];if(t==="\r"){let n=this.buffer[s+e+1];if(n===`
111
+ `||!n&&!this.atEnd)return e+s+1}return t===`
112
+ `||s>=this.indentNext||!t&&!this.atEnd?e+s:-1}if(t==="-"||t==="."){let s=this.buffer.substr(e,3);if((s==="---"||s==="...")&&H(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&e<this.pos)e=this.buffer.indexOf(`
113
+ `,this.pos),this.lineEndPos=e;if(e===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[e-1]==="\r")e-=1;return this.buffer.substring(this.pos,e)}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===ts)yield*this.pushCount(1),e=e.substring(1);if(e[0]==="%"){let t=e.length,s=e.indexOf("#");while(s!==-1){let i=e[s-1];if(i===" "||i==="\t"){t=s-1;break}else s=e.indexOf("#",s+1)}while(!0){let i=e[t-1];if(i===" "||i==="\t")t-=1;else break}let n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield ss,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if((t==="---"||t==="...")&&H(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!H(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&H(t)){let s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(is),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,s=-1;do{if(e=yield*this.pushNewline(),e>0)t=yield*this.pushSpaces(!1),this.indentValue=s=t;else t=0;t+=yield*this.pushSpaces(!0)}while(e+t>0);let n=this.getLine();if(n===null)return this.setNext("flow");if(s!==-1&&s<this.indentNext&&n[0]!=="#"||s===0&&(n.startsWith("---")||n.startsWith("..."))&&H(n[3])){if(!(s===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield ns,yield*this.parseLineStart()}let i=0;while(n[i]===",")i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),n[i]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(is),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let r=this.charAt(1);if(this.flowKey||H(r)||r===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e==="'")while(t!==-1&&this.buffer[t+1]==="'")t=this.buffer.indexOf("'",t+2);else while(t!==-1){let i=0;while(this.buffer[t-1-i]==="\\")i+=1;if(i%2===0)break;t=this.buffer.indexOf('"',t+1)}let s=this.buffer.substring(0,t),n=s.indexOf(`
114
+ `,this.pos);if(n!==-1){while(n!==-1){let i=this.continueScalar(n+1);if(i===-1)break;n=s.indexOf(`
115
+ `,i)}if(n!==-1)t=n-(s[n-1]==="\r"?2:1)}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;while(!0){let t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((t)=>H(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,s;e:for(let i=this.pos;s=this.buffer[i];++i)switch(s){case" ":t+=1;break;case`
116
+ `:e=i,t=0;break;case"\r":{let r=this.buffer[i+1];if(!r&&!this.atEnd)return this.setNext("block-scalar");if(r===`
117
+ `)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
118
+ `,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let n=e+1;s=this.buffer[n];while(s===" ")s=this.buffer[++n];if(s==="\t"){while(s==="\t"||s===" "||s==="\r"||s===`
119
+ `)s=this.buffer[++n];e=n-1}else if(!this.blockScalarKeep)do{let i=e-1,r=this.buffer[i];if(r==="\r")r=this.buffer[--i];let o=i;while(r===" ")r=this.buffer[--i];if(r===`
120
+ `&&i>=this.pos&&i+1+t>o)e=i;else break}while(!0);return yield Nt,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,s=this.pos-1,n;while(n=this.buffer[++s])if(n===":"){let i=this.buffer[s+1];if(H(i)||e&&Ot.has(i))break;t=s}else if(H(n)){let i=this.buffer[s+1];if(n==="\r")if(i===`
121
+ `)s+=1,n=`
122
+ `,i=this.buffer[s+1];else t=s;if(i==="#"||e&&Ot.has(i))break;if(n===`
123
+ `){let r=this.continueScalar(s+1);if(r===-1)break;s=Math.max(s,r-2)}}else{if(e&&Ot.has(n))break;t=s}if(!n&&!this.atEnd)return this.setNext("plain-scalar");return yield Nt,yield*this.pushToIndex(t+1,!0),e?"flow":"doc"}*pushCount(e){if(e>0)return yield this.buffer.substr(this.pos,e),this.pos+=e,e;return 0}*pushToIndex(e,t){let s=this.buffer.slice(this.pos,e);if(s)return yield s,this.pos+=s.length,s.length;else if(t)yield"";return 0}*pushIndicators(){let e=0;e:while(!0){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(is),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let t=this.flowLevel>0,s=this.charAt(1);if(H(s)||t&&Ot.has(s)){if(!t)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];while(!H(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];while(t)if(Tn.has(t))t=this.buffer[++e];else if(t==="%"&&Qs.has(this.buffer[e+1])&&Qs.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];if(e===`
124
+ `)return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)===`
125
+ `)return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1,s;do s=this.buffer[++t];while(s===" "||e&&s==="\t");let n=t-this.pos;if(n>0)yield this.buffer.substr(this.pos,n),this.pos=t;return n}*pushUntil(e){let t=this.pos,s=this.buffer[t];while(!e(s))s=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class Et{constructor(){this.lineStarts=[],this.addNewLine=(e)=>this.lineStarts.push(e),this.linePos=(e)=>{let t=0,s=this.lineStarts.length;while(t<s){let i=t+s>>1;if(this.lineStarts[i]<e)t=i+1;else s=i}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let n=this.lineStarts[t-1];return{line:t,col:e-n+1}}}}function me(e,t){for(let s=0;s<e.length;++s)if(e[s].type===t)return!0;return!1}function Gs(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Hs(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Tt(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Ce(e){if(e.length===0)return[];let t=e.length;e:while(--t>=0)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}while(e[++t]?.type==="space");return e.splice(t,e.length)}function Lt(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let s=0;s<t.length;++s)e.push(t[s])}function Ws(e){if(e.start.type==="flow-seq-start"){for(let t of e.items)if(t.sep&&!t.value&&!me(t.start,"explicit-key-ind")&&!me(t.sep,"map-value-ind")){if(t.key)t.value=t.key;if(delete t.key,Hs(t.value))if(t.value.end)Lt(t.value.end,t.sep);else t.value.end=t.sep;else Lt(t.start,t.sep);delete t.sep}}}class It{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new At,this.onNewLine=e}*parse(e,t=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let s of this.lexer.lex(e,t))yield*this.next(s);if(!t)yield*this.end()}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Ys(e);if(!t){let s=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:e}),this.offset+=e.length}else if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{let s=this.peek(1);if(t.type==="block-scalar")t.indent="indent"in s?s.indent:0;else if(t.type==="flow-collection"&&s.type==="document")t.indent=0;if(t.type==="flow-collection")Ws(t);switch(s.type){case"document":s.value=t;break;case"block-scalar":s.props.push(t);break;case"block-map":{let n=s.items[s.items.length-1];if(n.value){s.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=s.items[s.items.length-1];if(n.value)s.items.push({start:[],value:t});else n.value=t;break}case"flow-collection":{let n=s.items[s.items.length-1];if(!n||n.value)s.items.push({start:[],key:t,sep:[]});else if(n.sep)n.value=t;else Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let n=t.items[t.items.length-1];if(n&&!n.sep&&!n.value&&n.start.length>0&&Gs(n.start)===-1&&(t.indent===0||n.start.every((i)=>i.type!=="comment"||i.indent<t.indent))){if(s.type==="document")s.end=n.start;else s.items.push({start:n.start});t.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")e.start.push(this.sourceToken);this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{if(Gs(e.start)!==-1)yield*this.pop(),yield*this.step();else e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);if(t)this.stack.push(t);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){let t=Tt(this.peek(2)),s=Ce(t),n;if(e.end)n=e.end,n.push(this.sourceToken),delete e.end;else n=[this.sourceToken];let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
126
+ `)+1;while(t!==0)this.onNewLine(this.offset+t),t=this.source.indexOf(`
127
+ `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let s="end"in t.value?t.value.end:void 0;if((Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment")s?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Lt(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let s=!this.onKeyLine&&this.indent===e.indent,n=s&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",i=[];if(n&&t.sep&&!t.value){let r=[];for(let o=0;o<t.sep.length;++o){let l=t.sep[o];switch(l.type){case"newline":r.push(o);break;case"space":break;case"comment":if(l.indent>e.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)i=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value)i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0;else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey)t.start.push(this.sourceToken),t.explicitKey=!0;else if(n||t.value)i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(!t.sep)if(me(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let r=Ce(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(me(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Hs(t.key)&&!me(t.sep,"newline")){let r=Ce(t.start),{key:o,sep:l}=t;l.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:o,sep:l}]})}else if(i.length>0)t.sep=t.sep.concat(i,this.sourceToken);else t.sep.push(this.sourceToken);else if(!t.sep)Object.assign(t,{key:null,sep:[this.sourceToken]});else if(t.value||n)e.items.push({start:i,key:null,sep:[this.sourceToken]});else if(me(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else t.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);if(n||t.value)e.items.push({start:i,key:r,sep:[]}),this.onKeyLine=!0;else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]}),this.onKeyLine=!0;return}default:{let r=this.startBlockValue(e);if(r){if(r.type==="block-seq"){if(!t.explicitKey&&t.sep&&!me(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(s)e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let s="end"in t.value?t.value.end:void 0;if((Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment")s?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Lt(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||me(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){let s=this.startBlockValue(e);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:n,sep:[]});else if(t.sep)this.stack.push(n);else Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let s=this.startBlockValue(e);if(s)this.stack.push(s);else yield*this.pop(),yield*this.step()}else{let s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===e.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){let n=Tt(s),i=Ce(n);Ws(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
128
+ `)+1;while(t!==0)this.onNewLine(this.offset+t),t=this.source.indexOf(`
129
+ `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=Tt(e),s=Ce(t);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Tt(e),s=Ce(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return!1;if(this.indent<=t)return!1;return e.every((s)=>s.type==="newline"||s.type==="space")}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}function In(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Et||null,prettyErrors:t}}function Cn(e,t={}){let{lineCounter:s,prettyErrors:n}=In(t),i=new It(s?.addNewLine),r=new kt(t),o=null;for(let l of r.compose(i.parse(e),!0,e.length))if(!o)o=l;else if(o.options.logLevel!=="silent"){o.errors.push(new te(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(n&&s)o.errors.forEach(Yt(e,s)),o.warnings.forEach(Yt(e,s));return o}export{Cn as parseDocument};
@@ -0,0 +1,2 @@
1
+ var e=Object.freeze(JSON.parse('{"displayName":"Markdown","name":"markdown","patterns":[{"include":"#frontMatter"},{"include":"#block"}],"repository":{"ampersand":{"match":"&(?!([0-9A-Za-z]+|#[0-9]+|#x\\\\h+);)","name":"meta.other.valid-ampersand.markdown"},"block":{"patterns":[{"include":"#separator"},{"include":"#heading"},{"include":"#blockquote"},{"include":"#lists"},{"include":"#fenced_code_block"},{"include":"#raw_block"},{"include":"#link-def"},{"include":"#html"},{"include":"#table"},{"include":"#paragraph"}]},"blockquote":{"begin":"(^|\\\\G) {0,3}(>) ?","captures":{"2":{"name":"punctuation.definition.quote.begin.markdown"}},"name":"markup.quote.markdown","patterns":[{"include":"#block"}],"while":"(^|\\\\G)\\\\s*(>) ?"},"bold":{"begin":"(?<open>(\\\\*\\\\*(?=\\\\w)|(?<!\\\\w)\\\\*\\\\*|(?<!\\\\w)\\\\b__))(?=\\\\S)(?=(<[^>]*+>|(?<raw>`+)([^`]|(?!(?<!`)\\\\k<raw>(?!`))`)*+\\\\k<raw>|\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]?+|\\\\[((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+](( ?\\\\[[^]]*+])|(\\\\([\\\\t ]*+<?(.*?)>?[\\\\t ]*+((?<title>[\\"\'])(.*?)\\\\k<title>)?\\\\))))|(?!(?<=\\\\S)\\\\k<open>).)++(?<=\\\\S)(?=__\\\\b|\\\\*\\\\*)\\\\k<open>)","captures":{"1":{"name":"punctuation.definition.bold.markdown"}},"end":"(?<=\\\\S)(\\\\1)","name":"markup.bold.markdown","patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"},{"include":"#strikethrough"}]},"bracket":{"match":"<(?![!$/?A-Za-z])","name":"meta.other.valid-bracket.markdown"},"escape":{"match":"\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]","name":"constant.character.escape.markdown"},"fenced_code_block":{"patterns":[{"include":"#fenced_code_block_css"},{"include":"#fenced_code_block_basic"},{"include":"#fenced_code_block_ini"},{"include":"#fenced_code_block_java"},{"include":"#fenced_code_block_lua"},{"include":"#fenced_code_block_makefile"},{"include":"#fenced_code_block_perl"},{"include":"#fenced_code_block_r"},{"include":"#fenced_code_block_ruby"},{"include":"#fenced_code_block_php"},{"include":"#fenced_code_block_sql"},{"include":"#fenced_code_block_vs_net"},{"include":"#fenced_code_block_xml"},{"include":"#fenced_code_block_xsl"},{"include":"#fenced_code_block_yaml"},{"include":"#fenced_code_block_dosbatch"},{"include":"#fenced_code_block_clojure"},{"include":"#fenced_code_block_coffee"},{"include":"#fenced_code_block_c"},{"include":"#fenced_code_block_cpp"},{"include":"#fenced_code_block_diff"},{"include":"#fenced_code_block_dockerfile"},{"include":"#fenced_code_block_git_commit"},{"include":"#fenced_code_block_git_rebase"},{"include":"#fenced_code_block_go"},{"include":"#fenced_code_block_groovy"},{"include":"#fenced_code_block_pug"},{"include":"#fenced_code_block_ignore"},{"include":"#fenced_code_block_js"},{"include":"#fenced_code_block_js_regexp"},{"include":"#fenced_code_block_json"},{"include":"#fenced_code_block_jsonc"},{"include":"#fenced_code_block_jsonl"},{"include":"#fenced_code_block_less"},{"include":"#fenced_code_block_objc"},{"include":"#fenced_code_block_swift"},{"include":"#fenced_code_block_scss"},{"include":"#fenced_code_block_perl6"},{"include":"#fenced_code_block_powershell"},{"include":"#fenced_code_block_python"},{"include":"#fenced_code_block_julia"},{"include":"#fenced_code_block_regexp_python"},{"include":"#fenced_code_block_rust"},{"include":"#fenced_code_block_scala"},{"include":"#fenced_code_block_shell"},{"include":"#fenced_code_block_ts"},{"include":"#fenced_code_block_tsx"},{"include":"#fenced_code_block_csharp"},{"include":"#fenced_code_block_fsharp"},{"include":"#fenced_code_block_dart"},{"include":"#fenced_code_block_handlebars"},{"include":"#fenced_code_block_markdown"},{"include":"#fenced_code_block_log"},{"include":"#fenced_code_block_erlang"},{"include":"#fenced_code_block_elixir"},{"include":"#fenced_code_block_latex"},{"include":"#fenced_code_block_bibtex"},{"include":"#fenced_code_block_twig"},{"include":"#fenced_code_block_yang"},{"include":"#fenced_code_block_abap"},{"include":"#fenced_code_block_restructuredtext"},{"include":"#fenced_code_block_unknown"}]},"fenced_code_block_abap":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(abap)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.abap","patterns":[{"include":"source.abap"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_basic":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(html?|shtml|xhtml|inc|tmpl|tpl)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_bibtex":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(bibtex)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.bibtex","patterns":[{"include":"text.bibtex"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_c":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([ch])((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_clojure":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(cl(?:js??|ojure))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_coffee":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(coffee|Cakefile|coffee.erb)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_cpp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(c(?:pp|\\\\+\\\\+|xx))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.cpp source.cpp","patterns":[{"include":"source.cpp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_csharp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(c(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.csharp","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_css":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(css(?:|.erb))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dart":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(dart)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dart","patterns":[{"include":"source.dart"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_diff":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(patch|diff|rej)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dockerfile":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([Dd]ockerfile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dosbatch":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(bat(?:|ch))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dosbatch","patterns":[{"include":"source.batchfile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_elixir":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(elixir)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_erlang":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(erlang)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_fsharp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(f(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.fsharp","patterns":[{"include":"source.fsharp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_git_commit":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:COMMIT_EDIT|MERGE_)MSG)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_commit","patterns":[{"include":"text.git-commit"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_git_rebase":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(git-rebase-todo)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_rebase","patterns":[{"include":"text.git-rebase"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_go":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(go(?:|lang))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_groovy":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(g(?:roovy|vy))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.groovy","patterns":[{"include":"source.groovy"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_handlebars":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(h(?:andlebars|bs))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.handlebars","patterns":[{"include":"text.html.handlebars"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ignore":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:git|)ignore)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ignore","patterns":[{"include":"source.ignore"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ini":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ini|conf)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_java":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(java|bsh)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_js":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsx??|javascript|es6|mjs|cjs|dataviewjs|\\\\{\\\\.js.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_js_regexp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(regexp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.js_regexp","patterns":[{"include":"source.js.regexp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_json":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(json5??|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_jsonc":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsonc)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonc","patterns":[{"include":"source.json.comments"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_jsonl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsonl(?:|ines))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonl","patterns":[{"include":"source.json.lines"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_julia":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(julia|\\\\{\\\\.julia.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_latex":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:la|)tex)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.latex","patterns":[{"include":"text.tex.latex"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_less":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(less)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_log":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(log)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.log","patterns":[{"include":"text.log"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_lua":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(lua)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_makefile":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:[Mm]|GNUm|OCamlM)akefile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_markdown":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(m(?:arkdown|d))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.markdown","patterns":[{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_objc":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(objectivec|objective-c|mm|objc|obj-c|[hm])((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_perl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(perl|pl|pm|pod|t|PL|psgi|vcl)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_perl6":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(perl6|p6|pl6|pm6|nqp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl6","patterns":[{"include":"source.perl.6"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_php":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(php3??|php4|php5|phpt|phtml|aw|ctp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.php","patterns":[{"include":"text.html.basic"},{"include":"source.php"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_powershell":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(p(?:owershell|s1|sm1|sd1|wsh))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.powershell","patterns":[{"include":"source.powershell"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_pug":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jade|pug)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.pug","patterns":[{"include":"text.pug"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_python":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(python|py3??|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gypi??|\\\\{\\\\.python.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_r":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([RSrs]|Rprofile|\\\\{\\\\.r.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_regexp_python":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(re)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.regexp_python","patterns":[{"include":"source.regexp.python"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_restructuredtext":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(r(?:estructuredtext|st))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.restructuredtext","patterns":[{"include":"source.rst"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ruby":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ruby|rbx??|rjs|Rakefile|rake|cgi|fcgi|gemspec|irbrc|Capfile|ru|prawn|Cheffile|Gemfile|Guardfile|Hobofile|Vagrantfile|Appraisals|Rantfile|Berksfile|Berksfile.lock|Thorfile|Puppetfile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_rust":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(rust|rs|\\\\{\\\\.rust.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_scala":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(s(?:cala|bt))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_scss":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(scss)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_shell":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(shell|sh|bash|zsh|bashrc|bash_profile|bash_login|profile|bash_logout|.textmate_init|\\\\{\\\\.bash.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.shellscript","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_sql":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(sql|ddl|dml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_swift":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(swift)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ts":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(t(?:ypescript|s))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescript","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_tsx":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(tsx)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescriptreact","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_twig":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(twig)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.twig","patterns":[{"include":"source.twig"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_unknown":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?=([^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown"},"fenced_code_block_vs_net":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vb)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.vs_net","patterns":[{"include":"source.asp.vb.net"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_xml":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_xsl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(xslt??)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xsl","patterns":[{"include":"text.xml.xsl"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_yaml":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ya?ml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_yang":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(yang)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yang","patterns":[{"include":"source.yang"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"frontMatter":{"applyEndPatternLast":1,"begin":"\\\\A(?=(-{3,}))","end":"^(?: {0,3}\\\\1-*[\\\\t ]*|[\\\\t ]*\\\\.{3})$","endCaptures":{"0":{"name":"punctuation.definition.end.frontmatter"}},"patterns":[{"begin":"\\\\A(-{3,})(.*)$","beginCaptures":{"1":{"name":"punctuation.definition.begin.frontmatter"},"2":{"name":"comment.frontmatter"}},"contentName":"meta.embedded.block.frontmatter","patterns":[{"include":"source.yaml"}],"while":"^(?!(?: {0,3}\\\\1-*[\\\\t ]*|[\\\\t ]*\\\\.{3})$)"}]},"heading":{"captures":{"1":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{6})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.6.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{5})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.5.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{4})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.4.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{3})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.3.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{2})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.2.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{1})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.1.markdown"}]}},"match":"(?:^|\\\\G) {0,3}(#{1,6}\\\\s+(.*?)(\\\\s+#{1,6})?\\\\s*)$","name":"markup.heading.markdown"},"heading-setext":{"patterns":[{"match":"^(={3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.1.markdown"},{"match":"^(-{3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.2.markdown"}]},"html":{"patterns":[{"begin":"(^|\\\\G)\\\\s*(<!--)","captures":{"1":{"name":"punctuation.definition.comment.html"},"2":{"name":"punctuation.definition.comment.html"}},"end":"(-->)","name":"comment.block.html"},{"begin":"(?i)(^|\\\\G)\\\\s*(?=<(script|style|pre)(\\\\s|$|>)(?!.*?</(script|style|pre)>))","end":"(?i)(.*)((</)(script|style|pre)(>))","endCaptures":{"1":{"patterns":[{"include":"text.html.derivative"}]},"2":{"name":"meta.tag.structure.$4.end.html"},"3":{"name":"punctuation.definition.tag.begin.html"},"4":{"name":"entity.name.tag.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"patterns":[{"begin":"(\\\\s*|$)","patterns":[{"include":"text.html.derivative"}],"while":"(?i)^(?!.*</(script|style|pre)>)"}]},{"begin":"(?i)(^|\\\\G)\\\\s*(?=</?[A-Za-z]+[^\\\\&/;gt\\\\s]*(\\\\s|$|/?>))","patterns":[{"include":"text.html.derivative"}],"while":"^(?!\\\\s*$)"},{"begin":"(^|\\\\G)\\\\s*(?=(<(?:[-0-9A-Za-z](/?>|\\\\s.*?>)|/[-0-9A-Za-z]>))\\\\s*$)","patterns":[{"include":"text.html.derivative"}],"while":"^(?!\\\\s*$)"}]},"image-inline":{"captures":{"1":{"name":"punctuation.definition.link.description.begin.markdown"},"2":{"name":"string.other.link.description.markdown"},"4":{"name":"punctuation.definition.link.description.end.markdown"},"5":{"name":"punctuation.definition.metadata.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.image.markdown"},"9":{"name":"punctuation.definition.link.markdown"},"10":{"name":"markup.underline.link.image.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"},"18":{"name":"string.other.link.description.title.markdown"},"19":{"name":"punctuation.definition.string.begin.markdown"},"20":{"name":"punctuation.definition.string.end.markdown"},"21":{"name":"punctuation.definition.metadata.markdown"}},"match":"(!\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\()[\\\\t ]*((<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|((?<url>(?>[^()\\\\s]+)|\\\\(\\\\g<url>*\\\\))*))[\\\\t ]*(?:((\\\\().+?(\\\\)))|((\\").+?(\\"))|((\').+?(\')))?\\\\s*(\\\\))","name":"meta.image.inline.markdown"},"image-ref":{"captures":{"1":{"name":"punctuation.definition.link.description.begin.markdown"},"2":{"name":"string.other.link.description.markdown"},"4":{"name":"punctuation.definition.link.description.end.markdown"},"5":{"name":"punctuation.definition.constant.markdown"},"6":{"name":"constant.other.reference.link.markdown"},"7":{"name":"punctuation.definition.constant.markdown"}},"match":"(!\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(]) ?(\\\\[)(.*?)(])","name":"meta.image.reference.markdown"},"inline":{"patterns":[{"include":"#ampersand"},{"include":"#bracket"},{"include":"#bold"},{"include":"#italic"},{"include":"#raw"},{"include":"#strikethrough"},{"include":"#escape"},{"include":"#image-inline"},{"include":"#image-ref"},{"include":"#link-email"},{"include":"#link-inet"},{"include":"#link-inline"},{"include":"#link-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref-shortcut"}]},"italic":{"begin":"(?<open>(\\\\*(?=\\\\w)|(?<!\\\\w)\\\\*|(?<!\\\\w)\\\\b_))(?=\\\\S)(?=(<[^>]*+>|(?<raw>`+)([^`]|(?!(?<!`)\\\\k<raw>(?!`))`)*+\\\\k<raw>|\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]?+|\\\\[((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+](( ?\\\\[[^]]*+])|(\\\\([\\\\t ]*+<?(.*?)>?[\\\\t ]*+((?<title>[\\"\'])(.*?)\\\\k<title>)?\\\\))))|\\\\k<open>\\\\k<open>|(?!(?<=\\\\S)\\\\k<open>).)++(?<=\\\\S)(?=_\\\\b|\\\\*)\\\\k<open>)","captures":{"1":{"name":"punctuation.definition.italic.markdown"}},"end":"(?<=\\\\S)(\\\\1)((?!\\\\1)|(?=\\\\1\\\\1))","name":"markup.italic.markdown","patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"},{"include":"#strikethrough"}]},"link-def":{"captures":{"1":{"name":"punctuation.definition.constant.markdown"},"2":{"name":"constant.other.reference.link.markdown"},"3":{"name":"punctuation.definition.constant.markdown"},"4":{"name":"punctuation.separator.key-value.markdown"},"5":{"name":"punctuation.definition.link.markdown"},"6":{"name":"markup.underline.link.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.markdown"},"9":{"name":"string.other.link.description.title.markdown"},"10":{"name":"punctuation.definition.string.begin.markdown"},"11":{"name":"punctuation.definition.string.end.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"}},"match":"\\\\s*(\\\\[)([^]]+?)(])(:)[\\\\t ]*(?:(<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|(\\\\S+?))[\\\\t ]*(?:((\\\\().+?(\\\\)))|((\\").+?(\\"))|((\').+?(\')))?\\\\s*$","name":"meta.link.reference.def.markdown"},"link-email":{"captures":{"1":{"name":"punctuation.definition.link.markdown"},"2":{"name":"markup.underline.link.markdown"},"4":{"name":"punctuation.definition.link.markdown"}},"match":"(<)((?:mailto:)?[!#-\'*+\\\\--9=?A-Z^-~]+@[-0-9A-Za-z]+(?:\\\\.[-0-9A-Za-z]+)*)(>)","name":"meta.link.email.lt-gt.markdown"},"link-inet":{"captures":{"1":{"name":"punctuation.definition.link.markdown"},"2":{"name":"markup.underline.link.markdown"},"3":{"name":"punctuation.definition.link.markdown"}},"match":"(<)((?:https?|ftp)://.*?)(>)","name":"meta.link.inet.markdown"},"link-inline":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown","patterns":[{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#image-inline"}]},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.metadata.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.markdown"},"9":{"name":"punctuation.definition.link.markdown"},"10":{"name":"markup.underline.link.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"},"18":{"name":"string.other.link.description.title.markdown"},"19":{"name":"punctuation.definition.string.begin.markdown"},"20":{"name":"punctuation.definition.string.end.markdown"},"21":{"name":"punctuation.definition.metadata.markdown"}},"match":"(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\()[\\\\t ]*((<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|((?<url>(?>[^()\\\\s]+)|\\\\(\\\\g<url>*\\\\))*))[\\\\t ]*(?:((\\\\()[^()]*(\\\\)))|((\\")[^\\"]*(\\"))|((\')[^\']*(\')))?\\\\s*(\\\\))","name":"meta.link.inline.markdown"},"link-ref":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown","patterns":[{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#image-inline"}]},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.constant.begin.markdown"},"6":{"name":"constant.other.reference.link.markdown"},"7":{"name":"punctuation.definition.constant.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\[)([^]]*+)(])","name":"meta.link.reference.markdown"},"link-ref-literal":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown"},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.constant.begin.markdown"},"6":{"name":"punctuation.definition.constant.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(]) ?(\\\\[)(])","name":"meta.link.reference.literal.markdown"},"link-ref-shortcut":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown"},"3":{"name":"punctuation.definition.link.title.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?:[^]\\\\[\\\\\\\\\\\\s]|\\\\\\\\[]\\\\[])+?)((?<!\\\\\\\\)])","name":"meta.link.reference.markdown"},"list_paragraph":{"begin":"(^|\\\\G)(?=\\\\S)(?![*->]\\\\s|[0-9]+\\\\.\\\\s)","name":"meta.paragraph.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)(?!\\\\s*$|#| {0,3}([-*>_] {2,}){3,}[\\\\t ]*$\\\\n?| {0,3}[*->]| {0,3}[0-9]+\\\\.)"},"lists":{"patterns":[{"begin":"(^|\\\\G)( {0,3})([-*+])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.unnumbered.markdown","patterns":[{"include":"#block"},{"include":"#list_paragraph"}],"while":"((^|\\\\G)( {2,4}|\\\\t))|^([\\\\t ]*)$"},{"begin":"(^|\\\\G)( {0,3})([0-9]+[).])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.numbered.markdown","patterns":[{"include":"#block"},{"include":"#list_paragraph"}],"while":"((^|\\\\G)( {2,4}|\\\\t))|^([\\\\t ]*)$"}]},"paragraph":{"begin":"(^|\\\\G) {0,3}(?=[^\\\\t\\\\n ])","name":"meta.paragraph.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)((?=\\\\s*[-=]{3,}\\\\s*$)| {4,}(?=[^\\\\t\\\\n ]))"},"raw":{"captures":{"1":{"name":"punctuation.definition.raw.markdown"},"3":{"name":"punctuation.definition.raw.markdown"}},"match":"(`+)((?:[^`]|(?!(?<!`)\\\\1(?!`))`)*+)(\\\\1)","name":"markup.inline.raw.string.markdown"},"raw_block":{"begin":"(^|\\\\G)( {4}|\\\\t)","name":"markup.raw.block.markdown","while":"(^|\\\\G)( {4}|\\\\t)"},"separator":{"match":"(^|\\\\G) {0,3}([-*_])( {0,2}\\\\2){2,}[\\\\t ]*$\\\\n?","name":"meta.separator.markdown"},"strikethrough":{"captures":{"1":{"name":"punctuation.definition.strikethrough.markdown"},"2":{"patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"}]},"3":{"name":"punctuation.definition.strikethrough.markdown"}},"match":"(?<!\\\\\\\\)(~{2,})(?!(?<=\\\\w~~)_)((?:[^~]|(?!(?<![\\\\\\\\~])\\\\1(?!~))~)*+)(\\\\1)(?!(?<=_\\\\1)\\\\w)","name":"markup.strikethrough.markdown"},"table":{"begin":"(^|\\\\G)(\\\\|)(?=[^|].+\\\\|\\\\s*$)","beginCaptures":{"2":{"name":"punctuation.definition.table.markdown"}},"name":"markup.table.markdown","patterns":[{"match":"\\\\|","name":"punctuation.definition.table.markdown"},{"captures":{"1":{"name":"punctuation.separator.table.markdown"}},"match":"(?<=\\\\|)\\\\s*(:?-+:?)\\\\s*(?=\\\\|)"},{"captures":{"1":{"patterns":[{"include":"#inline"}]}},"match":"(?<=\\\\|)\\\\s*(?=\\\\S)((\\\\\\\\\\\\||[^|])+)(?<=\\\\S)\\\\s*(?=\\\\|)"}],"while":"(^|\\\\G)(?=\\\\|)"}},"scopeName":"text.html.markdown","embeddedLangs":[],"aliases":["md"],"embeddedLangsLazy":["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","jsonl","less","objective-c","swift","scss","raku","powershell","python","julia","regexp","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","log","erlang","elixir","latex","bibtex","abap","rst","html-derivative"]}')),Zf=[e];
2
+ export{Zf};