just-bash 2.12.4 → 2.12.6

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 (272) hide show
  1. package/dist/banned-patterns-test.d.ts +0 -7
  2. package/dist/bin/chunks/{awk2-RGDNV4HO.js → awk2-EB5SCHVW.js} +1 -1
  3. package/dist/bin/{shell/chunks/chmod-4O2C4V42.js → chunks/chmod-N5CQATDW.js} +1 -1
  4. package/dist/bin/{shell/chunks/chunk-WO4B7WUT.js → chunks/chunk-5MUD3WB2.js} +1 -1
  5. package/dist/bin/chunks/chunk-7ADG3DNO.js +8 -0
  6. package/dist/bin/{shell/chunks/chunk-Q4WHWGOT.js → chunks/chunk-BBRVF6XE.js} +1 -1
  7. package/dist/bin/chunks/chunk-DHFZMFUW.js +36 -0
  8. package/dist/bin/chunks/{chunk-LHN3LRVT.js → chunk-IRCLOW32.js} +20 -20
  9. package/dist/bin/chunks/chunk-JX6YLHDX.js +2 -0
  10. package/dist/bin/chunks/chunk-MY5PY2PL.js +2 -0
  11. package/dist/bin/chunks/chunk-NTKUVXEL.js +5 -0
  12. package/dist/bin/chunks/{chunk-OKL2SPHK.js → chunk-O5B6WWQQ.js} +39 -39
  13. package/dist/bin/chunks/{chunk-DGFDVZ4N.js → chunk-OLN6BSO3.js} +1 -1
  14. package/dist/bin/chunks/chunk-OQV5J23L.js +7 -0
  15. package/dist/bin/chunks/chunk-PIBXJ3VX.js +13 -0
  16. package/dist/bin/chunks/chunk-PLKGKTIS.js +6 -0
  17. package/dist/bin/{shell/chunks/chunk-J4WYAO5Q.js → chunks/chunk-QTII62YM.js} +13 -13
  18. package/dist/bin/chunks/chunk-QZNF3Y3J.js +2 -0
  19. package/dist/bin/chunks/chunk-R2LDP472.js +8 -0
  20. package/dist/bin/chunks/chunk-ROMKUVHI.js +10 -0
  21. package/dist/bin/chunks/chunk-STOAUD75.js +11 -0
  22. package/dist/bin/chunks/chunk-SXB55JOI.js +2 -0
  23. package/dist/bin/chunks/chunk-VCKKRS7V.js +12 -0
  24. package/dist/bin/chunks/{chunk-SY2WM5RM.js → chunk-VIYJJTN2.js} +5 -5
  25. package/dist/bin/{shell/chunks/chunk-GA6KXSOC.js → chunks/chunk-YFPDB4PH.js} +1 -1
  26. package/dist/bin/chunks/chunk-YMMJLYIX.js +2 -0
  27. package/dist/bin/chunks/chunk-YTIURC67.js +2 -0
  28. package/dist/bin/chunks/chunk-YWZOGBFE.js +9 -0
  29. package/dist/bin/chunks/chunk-YX7OOTPO.js +9 -0
  30. package/dist/bin/chunks/chunk-ZJGIBTWD.js +2 -0
  31. package/dist/bin/chunks/{chunk-Q3FNZYGG.js → chunk-ZNPXCE5B.js} +99 -99
  32. package/dist/bin/chunks/chunk-ZSVBYEY4.js +6 -0
  33. package/dist/bin/chunks/curl-3GMIPMCI.js +26 -0
  34. package/dist/bin/{shell/chunks/expansion-TCB3WZP5.js → chunks/expansion-JBCP2CHQ.js} +1 -1
  35. package/dist/bin/chunks/find-MTLF23HX.js +2 -0
  36. package/dist/bin/chunks/flag-coverage-7GOZYXJT.js +2 -0
  37. package/dist/bin/{shell/chunks/grep-F3GT2VPG.js → chunks/grep-OZJTRD4D.js} +1 -1
  38. package/dist/bin/chunks/jq-P457LMHU.js +2 -0
  39. package/dist/bin/chunks/{ln-BEOFQJNP.js → ln-VAOSD4HK.js} +1 -1
  40. package/dist/bin/chunks/mkdir-CH7JGW4N.js +2 -0
  41. package/dist/bin/chunks/python3-45TMCI4M.js +17 -0
  42. package/dist/bin/chunks/{readlink-YNOUXNUY.js → readlink-BD5VFOC5.js} +1 -1
  43. package/dist/bin/chunks/rm-GWYJO4W7.js +2 -0
  44. package/dist/bin/chunks/sed-UV2LTNVK.js +2 -0
  45. package/dist/bin/chunks/sleep-3WHM7JMW.js +2 -0
  46. package/dist/bin/chunks/{sqlite3-SJHZFBT2.js → sqlite3-B3P3OMPI.js} +1 -1
  47. package/dist/bin/chunks/stat-XS2LXYS2.js +2 -0
  48. package/dist/bin/chunks/tar-SO3XDDIW.js +2 -0
  49. package/dist/bin/chunks/time-GZSHCM77.js +2 -0
  50. package/dist/bin/chunks/timeout-BYB3L2JA.js +2 -0
  51. package/dist/bin/chunks/worker.js +229 -20
  52. package/dist/bin/chunks/xan-FZB7FHX3.js +2 -0
  53. package/dist/bin/chunks/yq-H7D2U3HS.js +2 -0
  54. package/dist/bin/just-bash.js +183 -183
  55. package/dist/bin/shell/chunks/{awk2-RGDNV4HO.js → awk2-EB5SCHVW.js} +1 -1
  56. package/dist/bin/{chunks/chmod-4O2C4V42.js → shell/chunks/chmod-N5CQATDW.js} +1 -1
  57. package/dist/bin/{chunks/chunk-WO4B7WUT.js → shell/chunks/chunk-5MUD3WB2.js} +1 -1
  58. package/dist/bin/shell/chunks/chunk-7ADG3DNO.js +8 -0
  59. package/dist/bin/{chunks/chunk-Q4WHWGOT.js → shell/chunks/chunk-BBRVF6XE.js} +1 -1
  60. package/dist/bin/shell/chunks/chunk-D64U2VGQ.js +2 -0
  61. package/dist/bin/shell/chunks/chunk-DHFZMFUW.js +36 -0
  62. package/dist/bin/shell/chunks/{chunk-LHN3LRVT.js → chunk-IRCLOW32.js} +20 -20
  63. package/dist/bin/shell/chunks/chunk-JX6YLHDX.js +2 -0
  64. package/dist/bin/shell/chunks/chunk-NTKUVXEL.js +5 -0
  65. package/dist/bin/shell/chunks/{chunk-OKL2SPHK.js → chunk-O5B6WWQQ.js} +39 -39
  66. package/dist/bin/shell/chunks/{chunk-DGFDVZ4N.js → chunk-OLN6BSO3.js} +1 -1
  67. package/dist/bin/shell/chunks/chunk-OQV5J23L.js +7 -0
  68. package/dist/bin/shell/chunks/chunk-PIBXJ3VX.js +13 -0
  69. package/dist/bin/shell/chunks/chunk-PLKGKTIS.js +6 -0
  70. package/dist/bin/{chunks/chunk-J4WYAO5Q.js → shell/chunks/chunk-QTII62YM.js} +13 -13
  71. package/dist/bin/shell/chunks/chunk-QZNF3Y3J.js +2 -0
  72. package/dist/bin/shell/chunks/chunk-R2LDP472.js +8 -0
  73. package/dist/bin/shell/chunks/chunk-ROMKUVHI.js +10 -0
  74. package/dist/bin/shell/chunks/chunk-STOAUD75.js +11 -0
  75. package/dist/bin/shell/chunks/chunk-SXB55JOI.js +2 -0
  76. package/dist/bin/shell/chunks/chunk-VCKKRS7V.js +12 -0
  77. package/dist/bin/shell/chunks/{chunk-SY2WM5RM.js → chunk-VIYJJTN2.js} +5 -5
  78. package/dist/bin/{chunks/chunk-GA6KXSOC.js → shell/chunks/chunk-YFPDB4PH.js} +1 -1
  79. package/dist/bin/shell/chunks/chunk-YMMJLYIX.js +2 -0
  80. package/dist/bin/shell/chunks/chunk-YTIURC67.js +2 -0
  81. package/dist/bin/shell/chunks/chunk-YWZOGBFE.js +9 -0
  82. package/dist/bin/shell/chunks/chunk-YX7OOTPO.js +9 -0
  83. package/dist/bin/shell/chunks/chunk-ZJGIBTWD.js +2 -0
  84. package/dist/bin/shell/chunks/{chunk-Q3FNZYGG.js → chunk-ZNPXCE5B.js} +99 -99
  85. package/dist/bin/shell/chunks/chunk-ZSVBYEY4.js +6 -0
  86. package/dist/bin/shell/chunks/curl-3GMIPMCI.js +26 -0
  87. package/dist/bin/{chunks/expansion-TCB3WZP5.js → shell/chunks/expansion-JBCP2CHQ.js} +1 -1
  88. package/dist/bin/shell/chunks/find-MTLF23HX.js +2 -0
  89. package/dist/bin/shell/chunks/flag-coverage-7GOZYXJT.js +2 -0
  90. package/dist/bin/{chunks/grep-F3GT2VPG.js → shell/chunks/grep-OZJTRD4D.js} +1 -1
  91. package/dist/bin/shell/chunks/jq-P457LMHU.js +2 -0
  92. package/dist/bin/shell/chunks/{ln-BEOFQJNP.js → ln-VAOSD4HK.js} +1 -1
  93. package/dist/bin/shell/chunks/mkdir-CH7JGW4N.js +2 -0
  94. package/dist/bin/shell/chunks/python3-IV3DBMHM.js +17 -0
  95. package/dist/bin/shell/chunks/{readlink-YNOUXNUY.js → readlink-BD5VFOC5.js} +1 -1
  96. package/dist/bin/shell/chunks/rm-GWYJO4W7.js +2 -0
  97. package/dist/bin/shell/chunks/sed-UV2LTNVK.js +2 -0
  98. package/dist/bin/shell/chunks/sleep-3WHM7JMW.js +2 -0
  99. package/dist/bin/shell/chunks/{sqlite3-SJHZFBT2.js → sqlite3-B3P3OMPI.js} +1 -1
  100. package/dist/bin/shell/chunks/stat-XS2LXYS2.js +2 -0
  101. package/dist/bin/shell/chunks/tar-SO3XDDIW.js +2 -0
  102. package/dist/bin/shell/chunks/time-GZSHCM77.js +2 -0
  103. package/dist/bin/shell/chunks/timeout-BYB3L2JA.js +2 -0
  104. package/dist/bin/shell/chunks/xan-FZB7FHX3.js +2 -0
  105. package/dist/bin/shell/chunks/yq-H7D2U3HS.js +2 -0
  106. package/dist/bin/shell/shell.js +187 -187
  107. package/dist/bundle/browser.js +632 -635
  108. package/dist/bundle/chunks/{awk2-XLDR2J4Q.js → awk2-VPBKDCSO.js} +1 -1
  109. package/dist/bundle/chunks/{chmod-MIKE3OIT.js → chmod-SYMGL4JA.js} +1 -1
  110. package/dist/bundle/chunks/chunk-3ZUFRYJ4.js +1 -0
  111. package/dist/bundle/chunks/chunk-4GTNDTRF.js +7 -0
  112. package/dist/bundle/chunks/{chunk-N4QLRJ32.js → chunk-4YPFHVJJ.js} +1 -1
  113. package/dist/bundle/chunks/chunk-5QVNJEHU.js +8 -0
  114. package/dist/bundle/chunks/chunk-64CW2LGZ.js +6 -0
  115. package/dist/bundle/chunks/chunk-6HBBXB3L.js +11 -0
  116. package/dist/bundle/chunks/chunk-72EQZSVH.js +4 -0
  117. package/dist/bundle/chunks/chunk-7YDOWJ75.js +1 -0
  118. package/dist/bundle/chunks/chunk-AUD37QB3.js +35 -0
  119. package/dist/bundle/chunks/{chunk-NTP6TTH5.js → chunk-BED5HSP2.js} +13 -13
  120. package/dist/bundle/chunks/{chunk-K5BTXJQC.js → chunk-C7ZTXK5C.js} +99 -99
  121. package/dist/bundle/chunks/chunk-D2FZX7A2.js +10 -0
  122. package/dist/bundle/chunks/chunk-DZZS6SJP.js +1 -0
  123. package/dist/bundle/chunks/{chunk-KAZYKNBG.js → chunk-EX62JIX3.js} +5 -5
  124. package/dist/bundle/chunks/chunk-FGALERPA.js +8 -0
  125. package/dist/bundle/chunks/chunk-HJWBQKYG.js +5 -0
  126. package/dist/bundle/chunks/chunk-IP7G3BNA.js +7 -0
  127. package/dist/bundle/chunks/chunk-J642UCRS.js +1 -0
  128. package/dist/bundle/chunks/chunk-KZ7BI7TV.js +5 -0
  129. package/dist/bundle/chunks/chunk-RH6GWZAJ.js +1 -0
  130. package/dist/bundle/chunks/{chunk-4VCAQZKQ.js → chunk-TRD56HID.js} +39 -39
  131. package/dist/bundle/chunks/chunk-U5FWK6IA.js +12 -0
  132. package/dist/bundle/chunks/{chunk-H4QOE4W3.js → chunk-VBF2GWEM.js} +20 -20
  133. package/dist/bundle/chunks/{chunk-2OHMPZNZ.js → chunk-VSWTMNI3.js} +1 -1
  134. package/dist/bundle/chunks/chunk-X2AJGDEF.js +1 -0
  135. package/dist/bundle/chunks/{chunk-T2EHE3CV.js → chunk-X36DXRVC.js} +1 -1
  136. package/dist/bundle/chunks/chunk-X3CVFNQZ.js +9 -0
  137. package/dist/bundle/chunks/chunk-XHM67O4N.js +1 -0
  138. package/dist/bundle/chunks/{chunk-CYTBPLPE.js → chunk-YS3AZT3J.js} +1 -1
  139. package/dist/bundle/chunks/curl-KM2ZAUR6.js +25 -0
  140. package/dist/bundle/chunks/{expansion-HJ6B4DDG.js → expansion-XG7G47TX.js} +1 -1
  141. package/dist/bundle/chunks/find-DOIVMX6X.js +1 -0
  142. package/dist/bundle/chunks/flag-coverage-NT32EG6Q.js +1 -0
  143. package/dist/bundle/chunks/{grep-LXKUQUAE.js → grep-3AIAIJVR.js} +1 -1
  144. package/dist/bundle/chunks/jq-NLRWI2Q6.js +1 -0
  145. package/dist/bundle/chunks/{ln-RI2SJGXU.js → ln-UJ6YJVBK.js} +1 -1
  146. package/dist/bundle/chunks/mkdir-F6XHPXZC.js +1 -0
  147. package/dist/bundle/chunks/python3-G2ZUJAQL.js +16 -0
  148. package/dist/bundle/chunks/{readlink-IEQO24KU.js → readlink-MI4GCHJF.js} +1 -1
  149. package/dist/bundle/chunks/rm-FYNVTQIU.js +1 -0
  150. package/dist/bundle/chunks/sed-2BILOGNL.js +1 -0
  151. package/dist/bundle/chunks/sleep-IUBP5GMH.js +1 -0
  152. package/dist/bundle/chunks/{sqlite3-CTI4ZW7L.js → sqlite3-VEDNWJL6.js} +1 -1
  153. package/dist/bundle/chunks/stat-BT5A227F.js +1 -0
  154. package/dist/bundle/chunks/tar-LKO7DKAK.js +1 -0
  155. package/dist/bundle/chunks/time-XL42Z4U5.js +1 -0
  156. package/dist/bundle/chunks/timeout-TL4Q5YKZ.js +1 -0
  157. package/dist/bundle/chunks/worker.js +229 -20
  158. package/dist/bundle/chunks/xan-KSDYKKEK.js +1 -0
  159. package/dist/bundle/chunks/yq-HIQ4WMDY.js +1 -0
  160. package/dist/bundle/index.cjs +857 -860
  161. package/dist/bundle/index.js +246 -246
  162. package/dist/commands/duration.d.ts +5 -0
  163. package/dist/commands/format-mode.d.ts +4 -0
  164. package/dist/commands/python3/worker.d.ts +1 -0
  165. package/dist/commands/query-engine/safe-object.d.ts +13 -0
  166. package/dist/commands/sed/types.d.ts +0 -4
  167. package/dist/commands/sqlite3/worker.d.ts +1 -0
  168. package/dist/commands/tar/archive.d.ts +18 -4
  169. package/dist/fs/in-memory-fs/in-memory-fs.d.ts +0 -3
  170. package/dist/fs/mountable-fs/mountable-fs.d.ts +0 -4
  171. package/dist/fs/overlay-fs/overlay-fs.d.ts +6 -7
  172. package/dist/fs/path-utils.d.ts +46 -0
  173. package/dist/fs/read-write-fs/read-write-fs.d.ts +0 -4
  174. package/dist/fs/real-fs-utils.d.ts +17 -11
  175. package/dist/timers.d.ts +0 -3
  176. package/package.json +3 -2
  177. package/dist/bin/chunks/chunk-253LRF5J.js +0 -11
  178. package/dist/bin/chunks/chunk-4C4F4EKM.js +0 -2
  179. package/dist/bin/chunks/chunk-55QIFSKH.js +0 -36
  180. package/dist/bin/chunks/chunk-5VFN7VVJ.js +0 -9
  181. package/dist/bin/chunks/chunk-6MF2IYQX.js +0 -10
  182. package/dist/bin/chunks/chunk-D2GFNFUN.js +0 -7
  183. package/dist/bin/chunks/chunk-EO5AH4U7.js +0 -5
  184. package/dist/bin/chunks/chunk-GIFF636B.js +0 -2
  185. package/dist/bin/chunks/chunk-KWLLB7S3.js +0 -7
  186. package/dist/bin/chunks/chunk-NDP6L74Z.js +0 -10
  187. package/dist/bin/chunks/chunk-PWZZGTFL.js +0 -13
  188. package/dist/bin/chunks/chunk-UYBH3FNE.js +0 -2
  189. package/dist/bin/chunks/chunk-V5YFCVCZ.js +0 -12
  190. package/dist/bin/chunks/chunk-V7VIJQD6.js +0 -6
  191. package/dist/bin/chunks/chunk-WMYKQURM.js +0 -2
  192. package/dist/bin/chunks/chunk-XAL6VWGA.js +0 -9
  193. package/dist/bin/chunks/chunk-YYQ22ZRL.js +0 -8
  194. package/dist/bin/chunks/curl-RWQO3SBN.js +0 -26
  195. package/dist/bin/chunks/find-4YAO7JQS.js +0 -2
  196. package/dist/bin/chunks/flag-coverage-K6IBGWAC.js +0 -2
  197. package/dist/bin/chunks/jq-VBB2XIZS.js +0 -2
  198. package/dist/bin/chunks/mkdir-6OKMS3KO.js +0 -2
  199. package/dist/bin/chunks/python3-JX5PXXTX.js +0 -17
  200. package/dist/bin/chunks/rm-5QIBTLJG.js +0 -2
  201. package/dist/bin/chunks/sed-BYFYBR4A.js +0 -2
  202. package/dist/bin/chunks/sleep-E3K6M6BN.js +0 -2
  203. package/dist/bin/chunks/stat-XH7E4E2C.js +0 -2
  204. package/dist/bin/chunks/tar-W5GBTEDZ.js +0 -2
  205. package/dist/bin/chunks/time-AWAKKRSE.js +0 -2
  206. package/dist/bin/chunks/timeout-OLS72AZG.js +0 -2
  207. package/dist/bin/chunks/xan-BJ66NSYT.js +0 -2
  208. package/dist/bin/chunks/yq-GPYVGU2N.js +0 -2
  209. package/dist/bin/shell/chunks/chunk-253LRF5J.js +0 -11
  210. package/dist/bin/shell/chunks/chunk-4C4F4EKM.js +0 -2
  211. package/dist/bin/shell/chunks/chunk-55QIFSKH.js +0 -36
  212. package/dist/bin/shell/chunks/chunk-5VFN7VVJ.js +0 -9
  213. package/dist/bin/shell/chunks/chunk-6MF2IYQX.js +0 -10
  214. package/dist/bin/shell/chunks/chunk-D2GFNFUN.js +0 -7
  215. package/dist/bin/shell/chunks/chunk-EO5AH4U7.js +0 -5
  216. package/dist/bin/shell/chunks/chunk-GIFF636B.js +0 -2
  217. package/dist/bin/shell/chunks/chunk-KWLLB7S3.js +0 -7
  218. package/dist/bin/shell/chunks/chunk-NDP6L74Z.js +0 -10
  219. package/dist/bin/shell/chunks/chunk-PWZZGTFL.js +0 -13
  220. package/dist/bin/shell/chunks/chunk-UYBH3FNE.js +0 -2
  221. package/dist/bin/shell/chunks/chunk-V5YFCVCZ.js +0 -12
  222. package/dist/bin/shell/chunks/chunk-V7VIJQD6.js +0 -6
  223. package/dist/bin/shell/chunks/chunk-WMYKQURM.js +0 -2
  224. package/dist/bin/shell/chunks/chunk-XAL6VWGA.js +0 -9
  225. package/dist/bin/shell/chunks/chunk-YYQ22ZRL.js +0 -8
  226. package/dist/bin/shell/chunks/curl-RWQO3SBN.js +0 -26
  227. package/dist/bin/shell/chunks/find-4YAO7JQS.js +0 -2
  228. package/dist/bin/shell/chunks/flag-coverage-K6IBGWAC.js +0 -2
  229. package/dist/bin/shell/chunks/jq-VBB2XIZS.js +0 -2
  230. package/dist/bin/shell/chunks/mkdir-6OKMS3KO.js +0 -2
  231. package/dist/bin/shell/chunks/python3-JX5PXXTX.js +0 -17
  232. package/dist/bin/shell/chunks/rm-5QIBTLJG.js +0 -2
  233. package/dist/bin/shell/chunks/sed-BYFYBR4A.js +0 -2
  234. package/dist/bin/shell/chunks/sleep-E3K6M6BN.js +0 -2
  235. package/dist/bin/shell/chunks/stat-XH7E4E2C.js +0 -2
  236. package/dist/bin/shell/chunks/tar-W5GBTEDZ.js +0 -2
  237. package/dist/bin/shell/chunks/time-AWAKKRSE.js +0 -2
  238. package/dist/bin/shell/chunks/timeout-OLS72AZG.js +0 -2
  239. package/dist/bin/shell/chunks/xan-BJ66NSYT.js +0 -2
  240. package/dist/bin/shell/chunks/yq-GPYVGU2N.js +0 -2
  241. package/dist/bundle/chunks/chunk-27LMNKBP.js +0 -7
  242. package/dist/bundle/chunks/chunk-3RCXHB4E.js +0 -4
  243. package/dist/bundle/chunks/chunk-7MKBHGLS.js +0 -1
  244. package/dist/bundle/chunks/chunk-DOTBQEPN.js +0 -5
  245. package/dist/bundle/chunks/chunk-GENDESYN.js +0 -1
  246. package/dist/bundle/chunks/chunk-GZ2N3SXD.js +0 -8
  247. package/dist/bundle/chunks/chunk-IJXFPKNC.js +0 -1
  248. package/dist/bundle/chunks/chunk-IKZ5LEGB.js +0 -6
  249. package/dist/bundle/chunks/chunk-OFJTSXN6.js +0 -8
  250. package/dist/bundle/chunks/chunk-QUME7R6S.js +0 -9
  251. package/dist/bundle/chunks/chunk-TBAWQWQB.js +0 -12
  252. package/dist/bundle/chunks/chunk-VYV3YE2F.js +0 -35
  253. package/dist/bundle/chunks/chunk-W42IGK5R.js +0 -11
  254. package/dist/bundle/chunks/chunk-WAN3B6E3.js +0 -9
  255. package/dist/bundle/chunks/chunk-XZ3MZS57.js +0 -6
  256. package/dist/bundle/chunks/chunk-YCABLDKV.js +0 -10
  257. package/dist/bundle/chunks/chunk-ZK6J6F7O.js +0 -1
  258. package/dist/bundle/chunks/curl-6L7YZUIH.js +0 -25
  259. package/dist/bundle/chunks/find-DQFMWHAC.js +0 -1
  260. package/dist/bundle/chunks/flag-coverage-VGF5NAZP.js +0 -1
  261. package/dist/bundle/chunks/jq-JQXAVWNT.js +0 -1
  262. package/dist/bundle/chunks/mkdir-QWGXDWUS.js +0 -1
  263. package/dist/bundle/chunks/python3-TSPOVUHX.js +0 -16
  264. package/dist/bundle/chunks/rm-KPTLPKPH.js +0 -1
  265. package/dist/bundle/chunks/sed-CJFW7UYO.js +0 -1
  266. package/dist/bundle/chunks/sleep-TFDNFOXK.js +0 -1
  267. package/dist/bundle/chunks/stat-74KBZFAX.js +0 -1
  268. package/dist/bundle/chunks/tar-Y6LP5EBC.js +0 -1
  269. package/dist/bundle/chunks/time-WBKSMCJ6.js +0 -1
  270. package/dist/bundle/chunks/timeout-O7WSXY5H.js +0 -1
  271. package/dist/bundle/chunks/xan-VMLUNIDS.js +0 -1
  272. package/dist/bundle/chunks/yq-QXIYE3MW.js +0 -1
@@ -1,77 +1,77 @@
1
1
  #!/usr/bin/env node
2
- import{a as Qa}from"./chunk-QSDVMMYI.js";import{a as Le,b as Ci}from"./chunk-V7VIJQD6.js";import{a as qi,b as Ii}from"./chunk-WO4B7WUT.js";import{a as Ts}from"./chunk-EO5AH4U7.js";import{a as ks}from"./chunk-SYG3IW7P.js";import{k as Os}from"./chunk-6KZRLMG3.js";import{a as Oi,b as ki,c as ae}from"./chunk-GTNBSMZR.js";import{a as bt,c as b,e as As}from"./chunk-KGOUQS5A.js";var Gi=b((cp,Wi)=>{var{hasOwnProperty:$s}=Object.prototype,_s=(s,e={})=>{typeof e=="string"&&(e={section:e}),e.align=e.align===!0,e.newline=e.newline===!0,e.sort=e.sort===!0,e.whitespace=e.whitespace===!0||e.align===!0,e.platform=e.platform||typeof process<"u"&&process.platform,e.bracketedArray=e.bracketedArray!==!1;let t=e.platform==="win32"?`\r
2
+ import{a as Qa}from"./chunk-QSDVMMYI.js";import{a as Pe,b as Li}from"./chunk-PLKGKTIS.js";import{d as R}from"./chunk-ZJGIBTWD.js";import{a as Ii,b as Ci}from"./chunk-5MUD3WB2.js";import{a as Os}from"./chunk-NTKUVXEL.js";import{k as ks}from"./chunk-6KZRLMG3.js";import{a as qs}from"./chunk-SYG3IW7P.js";import{a as ki,b as qi,c as le}from"./chunk-GTNBSMZR.js";import{a as wt,c as b,e as Ts}from"./chunk-KGOUQS5A.js";var Xi=b((fp,Gi)=>{var{hasOwnProperty:_s}=Object.prototype,xs=(s,e={})=>{typeof e=="string"&&(e={section:e}),e.align=e.align===!0,e.newline=e.newline===!0,e.sort=e.sort===!0,e.whitespace=e.whitespace===!0||e.align===!0,e.platform=e.platform||typeof process<"u"&&process.platform,e.bracketedArray=e.bracketedArray!==!1;let t=e.platform==="win32"?`\r
3
3
  `:`
4
- `,n=e.whitespace?" = ":"=",i=[],r=e.sort?Object.keys(s).sort():Object.keys(s),o=0;e.align&&(o=G(r.filter(c=>s[c]===null||Array.isArray(s[c])||typeof s[c]!="object").map(c=>Array.isArray(s[c])?`${c}[]`:c).concat([""]).reduce((c,u)=>G(c).length>=G(u).length?c:u)).length);let a="",l=e.bracketedArray?"[]":"";for(let c of r){let u=s[c];if(u&&Array.isArray(u))for(let f of u)a+=G(`${c}${l}`).padEnd(o," ")+n+G(f)+t;else u&&typeof u=="object"?i.push(c):a+=G(c).padEnd(o," ")+n+G(u)+t}e.section&&a.length&&(a="["+G(e.section)+"]"+(e.newline?t+t:t)+a);for(let c of i){let u=Ui(c,".").join("\\."),f=(e.section?e.section+".":"")+u,d=_s(s[c],{...e,section:f});a.length&&d.length&&(a+=t),a+=d}return a};function Ui(s,e){var t=0,n=0,i=0,r=[];do if(i=s.indexOf(e,t),i!==-1){if(t=i+e.length,i>0&&s[i-1]==="\\")continue;r.push(s.slice(n,i)),n=i+e.length}while(i!==-1);return r.push(s.slice(n)),r}var Yi=(s,e={})=>{e.bracketedArray=e.bracketedArray!==!1;let t=Object.create(null),n=t,i=null,r=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=s.split(/[\r\n]+/g),a={};for(let c of o){if(!c||c.match(/^\s*[;#]/)||c.match(/^\s*$/))continue;let u=c.match(r);if(!u)continue;if(u[1]!==void 0){if(i=Nt(u[1]),i==="__proto__"){n=Object.create(null);continue}n=t[i]=t[i]||Object.create(null);continue}let f=Nt(u[2]),d;e.bracketedArray?d=f.length>2&&f.slice(-2)==="[]":(a[f]=(a?.[f]||0)+1,d=a[f]>1);let p=d&&f.endsWith("[]")?f.slice(0,-2):f;if(p==="__proto__")continue;let g=u[3]?Nt(u[4]):!0,h=g==="true"||g==="false"||g==="null"?JSON.parse(g):g;d&&($s.call(n,p)?Array.isArray(n[p])||(n[p]=[n[p]]):n[p]=[]),Array.isArray(n[p])?n[p].push(h):n[p]=h}let l=[];for(let c of Object.keys(t)){if(!$s.call(t,c)||typeof t[c]!="object"||Array.isArray(t[c]))continue;let u=Ui(c,".");n=t;let f=u.pop(),d=f.replace(/\\\./g,".");for(let p of u)p!=="__proto__"&&((!$s.call(n,p)||typeof n[p]!="object")&&(n[p]=Object.create(null)),n=n[p]);n===t&&d===f||(n[d]=t[c],l.push(c))}for(let c of l)delete t[c];return t},Ji=s=>s.startsWith('"')&&s.endsWith('"')||s.startsWith("'")&&s.endsWith("'"),G=s=>typeof s!="string"||s.match(/[=\r\n]/)||s.match(/^\[/)||s.length>1&&Ji(s)||s!==s.trim()?JSON.stringify(s):s.split(";").join("\\;").split("#").join("\\#"),Nt=s=>{if(s=(s||"").trim(),Ji(s)){s.charAt(0)==="'"&&(s=s.slice(1,-1));try{s=JSON.parse(s)}catch{}}else{let e=!1,t="";for(let n=0,i=s.length;n<i;n++){let r=s.charAt(n);if(e)"\\;#".indexOf(r)!==-1?t+=r:t+="\\"+r,e=!1;else{if(";#".indexOf(r)!==-1)break;r==="\\"?e=!0:t+=r}}return e&&(t+="\\"),t.trim()}return s};Wi.exports={parse:Yi,decode:Yi,stringify:_s,encode:_s,safe:G,unsafe:Nt}});var O=b($=>{"use strict";var Vs=Symbol.for("yaml.alias"),tr=Symbol.for("yaml.document"),kt=Symbol.for("yaml.map"),sr=Symbol.for("yaml.pair"),Ks=Symbol.for("yaml.scalar"),qt=Symbol.for("yaml.seq"),X=Symbol.for("yaml.node.type"),zl=s=>!!s&&typeof s=="object"&&s[X]===Vs,Zl=s=>!!s&&typeof s=="object"&&s[X]===tr,ec=s=>!!s&&typeof s=="object"&&s[X]===kt,tc=s=>!!s&&typeof s=="object"&&s[X]===sr,nr=s=>!!s&&typeof s=="object"&&s[X]===Ks,sc=s=>!!s&&typeof s=="object"&&s[X]===qt;function ir(s){if(s&&typeof s=="object")switch(s[X]){case kt:case qt:return!0}return!1}function nc(s){if(s&&typeof s=="object")switch(s[X]){case Vs:case kt:case Ks:case qt:return!0}return!1}var ic=s=>(nr(s)||ir(s))&&!!s.anchor;$.ALIAS=Vs;$.DOC=tr;$.MAP=kt;$.NODE_TYPE=X;$.PAIR=sr;$.SCALAR=Ks;$.SEQ=qt;$.hasAnchor=ic;$.isAlias=zl;$.isCollection=ir;$.isDocument=Zl;$.isMap=ec;$.isNode=nc;$.isPair=tc;$.isScalar=nr;$.isSeq=sc});var Ve=b(Rs=>{"use strict";var M=O(),F=Symbol("break visit"),rr=Symbol("skip children"),J=Symbol("remove node");function It(s,e){let t=or(e);M.isDocument(s)?Se(null,s.contents,t,Object.freeze([s]))===J&&(s.contents=null):Se(null,s,t,Object.freeze([]))}It.BREAK=F;It.SKIP=rr;It.REMOVE=J;function Se(s,e,t,n){let i=ar(s,e,t,n);if(M.isNode(i)||M.isPair(i))return lr(s,n,i),Se(s,i,t,n);if(typeof i!="symbol"){if(M.isCollection(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=Se(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===F)return F;o===J&&(e.items.splice(r,1),r-=1)}}}else if(M.isPair(e)){n=Object.freeze(n.concat(e));let r=Se("key",e.key,t,n);if(r===F)return F;r===J&&(e.key=null);let o=Se("value",e.value,t,n);if(o===F)return F;o===J&&(e.value=null)}}return i}async function Ct(s,e){let t=or(e);M.isDocument(s)?await Ne(null,s.contents,t,Object.freeze([s]))===J&&(s.contents=null):await Ne(null,s,t,Object.freeze([]))}Ct.BREAK=F;Ct.SKIP=rr;Ct.REMOVE=J;async function Ne(s,e,t,n){let i=await ar(s,e,t,n);if(M.isNode(i)||M.isPair(i))return lr(s,n,i),Ne(s,i,t,n);if(typeof i!="symbol"){if(M.isCollection(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=await Ne(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===F)return F;o===J&&(e.items.splice(r,1),r-=1)}}}else if(M.isPair(e)){n=Object.freeze(n.concat(e));let r=await Ne("key",e.key,t,n);if(r===F)return F;r===J&&(e.key=null);let o=await Ne("value",e.value,t,n);if(o===F)return F;o===J&&(e.value=null)}}return i}function or(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function ar(s,e,t,n){if(typeof t=="function")return t(s,e,n);if(M.isMap(e))return t.Map?.(s,e,n);if(M.isSeq(e))return t.Seq?.(s,e,n);if(M.isPair(e))return t.Pair?.(s,e,n);if(M.isScalar(e))return t.Scalar?.(s,e,n);if(M.isAlias(e))return t.Alias?.(s,e,n)}function lr(s,e,t){let n=e[e.length-1];if(M.isCollection(n))n.items[s]=t;else if(M.isPair(n))s==="key"?n.key=t:n.value=t;else if(M.isDocument(n))n.contents=t;else{let i=M.isAlias(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}Rs.visit=It;Rs.visitAsync=Ct});var Ys=b(fr=>{"use strict";var cr=O(),rc=Ve(),oc={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ac=s=>s.replace(/[!,[\]{}]/g,e=>oc[e]),Ke=class s{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},s.defaultYaml,e),this.tags=Object.assign({},s.defaultTags,t)}clone(){let e=new s(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new s(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:s.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},s.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:s.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},s.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{let o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}let[,n,i]=e.match(/^(.*!)([^!]*)$/s);i||t(`The ${e} tag has no suffix`);let r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+ac(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),i;if(e&&n.length>0&&cr.isNode(e.contents)){let r={};rc.visit(e.contents,(o,a)=>{cr.isNode(a)&&a.tag&&(r[a.tag]=!0)}),i=Object.keys(r)}else i=[];for(let[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(a=>a.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
5
- `)}};Ke.defaultYaml={explicit:!1,version:"1.2"};Ke.defaultTags={"!!":"tag:yaml.org,2002:"};fr.Directives=Ke});var Lt=b(Re=>{"use strict";var ur=O(),lc=Ve();function cc(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}function dr(s){let e=new Set;return lc.visit(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function hr(s,e){for(let t=1;;++t){let n=`${s}${t}`;if(!e.has(n))return n}}function fc(s,e){let t=[],n=new Map,i=null;return{onAnchor:r=>{t.push(r),i??(i=dr(s));let o=hr(e,i);return i.add(o),o},setAnchors:()=>{for(let r of t){let o=n.get(r);if(typeof o=="object"&&o.anchor&&(ur.isScalar(o.node)||ur.isCollection(o.node)))o.node.anchor=o.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=r,a}}},sourceObjects:n}}Re.anchorIsValid=cc;Re.anchorNames=dr;Re.createNodeAnchors=fc;Re.findNewAnchor=hr});var Us=b(pr=>{"use strict";function Ye(s,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){let o=n[i],a=Ye(s,n,String(i),o);a===void 0?delete n[i]:a!==o&&(n[i]=a)}else if(n instanceof Map)for(let i of Array.from(n.keys())){let r=n.get(i),o=Ye(s,n,i,r);o===void 0?n.delete(i):o!==r&&n.set(i,o)}else if(n instanceof Set)for(let i of Array.from(n)){let r=Ye(s,n,i,i);r===void 0?n.delete(i):r!==i&&(n.delete(i),n.add(r))}else for(let[i,r]of Object.entries(n)){let o=Ye(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}pr.applyReviver=Ye});var H=b(gr=>{"use strict";var uc=O();function mr(s,e,t){if(Array.isArray(s))return s.map((n,i)=>mr(n,String(i),t));if(s&&typeof s.toJSON=="function"){if(!t||!uc.hasAnchor(s))return s.toJSON(e,t);let n={aliasCount:0,count:1,res:void 0};t.anchors.set(s,n),t.onCreate=r=>{n.res=r,delete t.onCreate};let i=s.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof s=="bigint"&&!t?.keep?Number(s):s}gr.toJS=mr});var Pt=b(br=>{"use strict";var dc=Us(),yr=O(),hc=H(),Js=class{constructor(e){Object.defineProperty(this,yr.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!yr.isDocument(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=hc.toJS(this,"",o);if(typeof i=="function")for(let{count:l,res:c}of o.anchors.values())i(c,l);return typeof r=="function"?dc.applyReviver(r,{"":a},"",a):a}};br.NodeBase=Js});var Ue=b(wr=>{"use strict";var pc=Lt(),mc=Ve(),Ee=O(),gc=Pt(),yc=H(),Ws=class extends gc.NodeBase{constructor(e){super(Ee.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],mc.visit(e,{Node:(r,o)=>{(Ee.isAlias(o)||Ee.hasAnchor(o))&&n.push(o)}}),t&&(t.aliasResolveCache=n));let i;for(let r of n){if(r===this)break;r.anchor===this.source&&(i=r)}return i}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:i,maxAliasCount:r}=t,o=this.resolve(i,t);if(!o){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=n.get(o);if(a||(yc.toJS(o,null,t),a=n.get(o)),a?.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Mt(i,o,n)),a.count*a.aliasCount>r)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,n){let i=`*${this.source}`;if(e){if(pc.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}};function Mt(s,e,t){if(Ee.isAlias(e)){let n=e.resolve(s),i=t&&n&&t.get(n);return i?i.count*i.aliasCount:0}else if(Ee.isCollection(e)){let n=0;for(let i of e.items){let r=Mt(s,i,t);r>n&&(n=r)}return n}else if(Ee.isPair(e)){let n=Mt(s,e.key,t),i=Mt(s,e.value,t);return Math.max(n,i)}return 1}wr.Alias=Ws});var C=b(Gs=>{"use strict";var bc=O(),wc=Pt(),Sc=H(),Nc=s=>!s||typeof s!="function"&&typeof s!="object",z=class extends wc.NodeBase{constructor(e){super(bc.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:Sc.toJS(this.value,e,t)}toString(){return String(this.value)}};z.BLOCK_FOLDED="BLOCK_FOLDED";z.BLOCK_LITERAL="BLOCK_LITERAL";z.PLAIN="PLAIN";z.QUOTE_DOUBLE="QUOTE_DOUBLE";z.QUOTE_SINGLE="QUOTE_SINGLE";Gs.Scalar=z;Gs.isScalarValue=Nc});var Je=b(Nr=>{"use strict";var Ec=Ue(),fe=O(),Sr=C(),vc="tag:yaml.org,2002:";function Ac(s,e,t){if(e){let n=t.filter(r=>r.tag===e),i=n.find(r=>!r.format)??n[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return t.find(n=>n.identify?.(s)&&!n.format)}function Tc(s,e,t){if(fe.isDocument(s)&&(s=s.contents),fe.isNode(s))return s;if(fe.isPair(s)){let f=t.schema[fe.MAP].createNode?.(t.schema,null,t);return f.items.push(s),f}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt<"u"&&s instanceof BigInt)&&(s=s.valueOf());let{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:a}=t,l;if(n&&s&&typeof s=="object"){if(l=a.get(s),l)return l.anchor??(l.anchor=i(s)),new Ec.Alias(l.anchor);l={anchor:null,node:null},a.set(s,l)}e?.startsWith("!!")&&(e=vc+e.slice(2));let c=Ac(s,e,o.tags);if(!c){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){let f=new Sr.Scalar(s);return l&&(l.node=f),f}c=s instanceof Map?o[fe.MAP]:Symbol.iterator in Object(s)?o[fe.SEQ]:o[fe.MAP]}r&&(r(c),delete t.onTagObj);let u=c?.createNode?c.createNode(t.schema,s,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,s,t):new Sr.Scalar(s);return e?u.tag=e:c.default||(u.tag=c.tag),l&&(l.node=u),u}Nr.createNode=Tc});var _t=b($t=>{"use strict";var Oc=Je(),W=O(),kc=Pt();function Xs(s,e,t){let n=t;for(let i=e.length-1;i>=0;--i){let r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){let o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return Oc.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}var Er=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done,Qs=class extends kc.NodeBase{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));return e&&(t.schema=e),t.items=t.items.map(n=>W.isNode(n)||W.isPair(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Er(e))this.add(t);else{let[n,...i]=e,r=this.get(n,!0);if(W.isCollection(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(n,Xs(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let i=this.get(t,!0);if(W.isCollection(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...i]=e,r=this.get(n,!0);return i.length===0?!t&&W.isScalar(r)?r.value:r:W.isCollection(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!W.isPair(t))return!1;let n=t.value;return n==null||e&&W.isScalar(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let i=this.get(t,!0);return W.isCollection(i)?i.hasIn(n):!1}setIn(e,t){let[n,...i]=e;if(i.length===0)this.set(n,t);else{let r=this.get(n,!0);if(W.isCollection(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(n,Xs(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}};$t.Collection=Qs;$t.collectionFromPath=Xs;$t.isEmptyPath=Er});var We=b(xt=>{"use strict";var qc=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function Ds(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}var Ic=(s,e,t)=>s.endsWith(`
6
- `)?Ds(t,e):t.includes(`
4
+ `,n=e.whitespace?" = ":"=",i=[],r=e.sort?Object.keys(s).sort():Object.keys(s),o=0;e.align&&(o=X(r.filter(c=>s[c]===null||Array.isArray(s[c])||typeof s[c]!="object").map(c=>Array.isArray(s[c])?`${c}[]`:c).concat([""]).reduce((c,u)=>X(c).length>=X(u).length?c:u)).length);let a="",l=e.bracketedArray?"[]":"";for(let c of r){let u=s[c];if(u&&Array.isArray(u))for(let f of u)a+=X(`${c}${l}`).padEnd(o," ")+n+X(f)+t;else u&&typeof u=="object"?i.push(c):a+=X(c).padEnd(o," ")+n+X(u)+t}e.section&&a.length&&(a="["+X(e.section)+"]"+(e.newline?t+t:t)+a);for(let c of i){let u=Ji(c,".").join("\\."),f=(e.section?e.section+".":"")+u,d=xs(s[c],{...e,section:f});a.length&&d.length&&(a+=t),a+=d}return a};function Ji(s,e){var t=0,n=0,i=0,r=[];do if(i=s.indexOf(e,t),i!==-1){if(t=i+e.length,i>0&&s[i-1]==="\\")continue;r.push(s.slice(n,i)),n=i+e.length}while(i!==-1);return r.push(s.slice(n)),r}var Ui=(s,e={})=>{e.bracketedArray=e.bracketedArray!==!1;let t=Object.create(null),n=t,i=null,r=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=s.split(/[\r\n]+/g),a={};for(let c of o){if(!c||c.match(/^\s*[;#]/)||c.match(/^\s*$/))continue;let u=c.match(r);if(!u)continue;if(u[1]!==void 0){if(i=Et(u[1]),i==="__proto__"){n=Object.create(null);continue}n=t[i]=t[i]||Object.create(null);continue}let f=Et(u[2]),d;e.bracketedArray?d=f.length>2&&f.slice(-2)==="[]":(a[f]=(a?.[f]||0)+1,d=a[f]>1);let p=d&&f.endsWith("[]")?f.slice(0,-2):f;if(p==="__proto__")continue;let g=u[3]?Et(u[4]):!0,h=g==="true"||g==="false"||g==="null"?JSON.parse(g):g;d&&(_s.call(n,p)?Array.isArray(n[p])||(n[p]=[n[p]]):n[p]=[]),Array.isArray(n[p])?n[p].push(h):n[p]=h}let l=[];for(let c of Object.keys(t)){if(!_s.call(t,c)||typeof t[c]!="object"||Array.isArray(t[c]))continue;let u=Ji(c,".");n=t;let f=u.pop(),d=f.replace(/\\\./g,".");for(let p of u)p!=="__proto__"&&((!_s.call(n,p)||typeof n[p]!="object")&&(n[p]=Object.create(null)),n=n[p]);n===t&&d===f||(n[d]=t[c],l.push(c))}for(let c of l)delete t[c];return t},Wi=s=>s.startsWith('"')&&s.endsWith('"')||s.startsWith("'")&&s.endsWith("'"),X=s=>typeof s!="string"||s.match(/[=\r\n]/)||s.match(/^\[/)||s.length>1&&Wi(s)||s!==s.trim()?JSON.stringify(s):s.split(";").join("\\;").split("#").join("\\#"),Et=s=>{if(s=(s||"").trim(),Wi(s)){s.charAt(0)==="'"&&(s=s.slice(1,-1));try{s=JSON.parse(s)}catch{}}else{let e=!1,t="";for(let n=0,i=s.length;n<i;n++){let r=s.charAt(n);if(e)"\\;#".indexOf(r)!==-1?t+=r:t+="\\"+r,e=!1;else{if(";#".indexOf(r)!==-1)break;r==="\\"?e=!0:t+=r}}return e&&(t+="\\"),t.trim()}return s};Gi.exports={parse:Ui,decode:Ui,stringify:xs,encode:xs,safe:X,unsafe:Et}});var O=b($=>{"use strict";var Ks=Symbol.for("yaml.alias"),sr=Symbol.for("yaml.document"),qt=Symbol.for("yaml.map"),nr=Symbol.for("yaml.pair"),Rs=Symbol.for("yaml.scalar"),It=Symbol.for("yaml.seq"),D=Symbol.for("yaml.node.type"),Zl=s=>!!s&&typeof s=="object"&&s[D]===Ks,ec=s=>!!s&&typeof s=="object"&&s[D]===sr,tc=s=>!!s&&typeof s=="object"&&s[D]===qt,sc=s=>!!s&&typeof s=="object"&&s[D]===nr,ir=s=>!!s&&typeof s=="object"&&s[D]===Rs,nc=s=>!!s&&typeof s=="object"&&s[D]===It;function rr(s){if(s&&typeof s=="object")switch(s[D]){case qt:case It:return!0}return!1}function ic(s){if(s&&typeof s=="object")switch(s[D]){case Ks:case qt:case Rs:case It:return!0}return!1}var rc=s=>(ir(s)||rr(s))&&!!s.anchor;$.ALIAS=Ks;$.DOC=sr;$.MAP=qt;$.NODE_TYPE=D;$.PAIR=nr;$.SCALAR=Rs;$.SEQ=It;$.hasAnchor=rc;$.isAlias=Zl;$.isCollection=rr;$.isDocument=ec;$.isMap=tc;$.isNode=ic;$.isPair=sc;$.isScalar=ir;$.isSeq=nc});var Ke=b(Ys=>{"use strict";var M=O(),F=Symbol("break visit"),or=Symbol("skip children"),W=Symbol("remove node");function Ct(s,e){let t=ar(e);M.isDocument(s)?Ne(null,s.contents,t,Object.freeze([s]))===W&&(s.contents=null):Ne(null,s,t,Object.freeze([]))}Ct.BREAK=F;Ct.SKIP=or;Ct.REMOVE=W;function Ne(s,e,t,n){let i=lr(s,e,t,n);if(M.isNode(i)||M.isPair(i))return cr(s,n,i),Ne(s,i,t,n);if(typeof i!="symbol"){if(M.isCollection(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=Ne(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===F)return F;o===W&&(e.items.splice(r,1),r-=1)}}}else if(M.isPair(e)){n=Object.freeze(n.concat(e));let r=Ne("key",e.key,t,n);if(r===F)return F;r===W&&(e.key=null);let o=Ne("value",e.value,t,n);if(o===F)return F;o===W&&(e.value=null)}}return i}async function Lt(s,e){let t=ar(e);M.isDocument(s)?await Ee(null,s.contents,t,Object.freeze([s]))===W&&(s.contents=null):await Ee(null,s,t,Object.freeze([]))}Lt.BREAK=F;Lt.SKIP=or;Lt.REMOVE=W;async function Ee(s,e,t,n){let i=await lr(s,e,t,n);if(M.isNode(i)||M.isPair(i))return cr(s,n,i),Ee(s,i,t,n);if(typeof i!="symbol"){if(M.isCollection(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=await Ee(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===F)return F;o===W&&(e.items.splice(r,1),r-=1)}}}else if(M.isPair(e)){n=Object.freeze(n.concat(e));let r=await Ee("key",e.key,t,n);if(r===F)return F;r===W&&(e.key=null);let o=await Ee("value",e.value,t,n);if(o===F)return F;o===W&&(e.value=null)}}return i}function ar(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function lr(s,e,t,n){if(typeof t=="function")return t(s,e,n);if(M.isMap(e))return t.Map?.(s,e,n);if(M.isSeq(e))return t.Seq?.(s,e,n);if(M.isPair(e))return t.Pair?.(s,e,n);if(M.isScalar(e))return t.Scalar?.(s,e,n);if(M.isAlias(e))return t.Alias?.(s,e,n)}function cr(s,e,t){let n=e[e.length-1];if(M.isCollection(n))n.items[s]=t;else if(M.isPair(n))s==="key"?n.key=t:n.value=t;else if(M.isDocument(n))n.contents=t;else{let i=M.isAlias(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}Ys.visit=Ct;Ys.visitAsync=Lt});var Us=b(ur=>{"use strict";var fr=O(),oc=Ke(),ac={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},lc=s=>s.replace(/[!,[\]{}]/g,e=>ac[e]),Re=class s{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},s.defaultYaml,e),this.tags=Object.assign({},s.defaultTags,t)}clone(){let e=new s(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new s(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:s.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},s.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:s.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},s.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{let o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}let[,n,i]=e.match(/^(.*!)([^!]*)$/s);i||t(`The ${e} tag has no suffix`);let r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+lc(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),i;if(e&&n.length>0&&fr.isNode(e.contents)){let r={};oc.visit(e.contents,(o,a)=>{fr.isNode(a)&&a.tag&&(r[a.tag]=!0)}),i=Object.keys(r)}else i=[];for(let[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(a=>a.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
5
+ `)}};Re.defaultYaml={explicit:!1,version:"1.2"};Re.defaultTags={"!!":"tag:yaml.org,2002:"};ur.Directives=Re});var Pt=b(Ye=>{"use strict";var dr=O(),cc=Ke();function fc(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}function hr(s){let e=new Set;return cc.visit(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function pr(s,e){for(let t=1;;++t){let n=`${s}${t}`;if(!e.has(n))return n}}function uc(s,e){let t=[],n=new Map,i=null;return{onAnchor:r=>{t.push(r),i??(i=hr(s));let o=pr(e,i);return i.add(o),o},setAnchors:()=>{for(let r of t){let o=n.get(r);if(typeof o=="object"&&o.anchor&&(dr.isScalar(o.node)||dr.isCollection(o.node)))o.node.anchor=o.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=r,a}}},sourceObjects:n}}Ye.anchorIsValid=fc;Ye.anchorNames=hr;Ye.createNodeAnchors=uc;Ye.findNewAnchor=pr});var Js=b(mr=>{"use strict";function Ue(s,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){let o=n[i],a=Ue(s,n,String(i),o);a===void 0?delete n[i]:a!==o&&(n[i]=a)}else if(n instanceof Map)for(let i of Array.from(n.keys())){let r=n.get(i),o=Ue(s,n,i,r);o===void 0?n.delete(i):o!==r&&n.set(i,o)}else if(n instanceof Set)for(let i of Array.from(n)){let r=Ue(s,n,i,i);r===void 0?n.delete(i):r!==i&&(n.delete(i),n.add(r))}else for(let[i,r]of Object.entries(n)){let o=Ue(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}mr.applyReviver=Ue});var z=b(yr=>{"use strict";var dc=O();function gr(s,e,t){if(Array.isArray(s))return s.map((n,i)=>gr(n,String(i),t));if(s&&typeof s.toJSON=="function"){if(!t||!dc.hasAnchor(s))return s.toJSON(e,t);let n={aliasCount:0,count:1,res:void 0};t.anchors.set(s,n),t.onCreate=r=>{n.res=r,delete t.onCreate};let i=s.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof s=="bigint"&&!t?.keep?Number(s):s}yr.toJS=gr});var Mt=b(wr=>{"use strict";var hc=Js(),br=O(),pc=z(),Ws=class{constructor(e){Object.defineProperty(this,br.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!br.isDocument(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=pc.toJS(this,"",o);if(typeof i=="function")for(let{count:l,res:c}of o.anchors.values())i(c,l);return typeof r=="function"?hc.applyReviver(r,{"":a},"",a):a}};wr.NodeBase=Ws});var Je=b(Sr=>{"use strict";var mc=Pt(),gc=Ke(),ve=O(),yc=Mt(),bc=z(),Gs=class extends yc.NodeBase{constructor(e){super(ve.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],gc.visit(e,{Node:(r,o)=>{(ve.isAlias(o)||ve.hasAnchor(o))&&n.push(o)}}),t&&(t.aliasResolveCache=n));let i;for(let r of n){if(r===this)break;r.anchor===this.source&&(i=r)}return i}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:i,maxAliasCount:r}=t,o=this.resolve(i,t);if(!o){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=n.get(o);if(a||(bc.toJS(o,null,t),a=n.get(o)),a?.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=$t(i,o,n)),a.count*a.aliasCount>r)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,n){let i=`*${this.source}`;if(e){if(mc.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}};function $t(s,e,t){if(ve.isAlias(e)){let n=e.resolve(s),i=t&&n&&t.get(n);return i?i.count*i.aliasCount:0}else if(ve.isCollection(e)){let n=0;for(let i of e.items){let r=$t(s,i,t);r>n&&(n=r)}return n}else if(ve.isPair(e)){let n=$t(s,e.key,t),i=$t(s,e.value,t);return Math.max(n,i)}return 1}Sr.Alias=Gs});var C=b(Xs=>{"use strict";var wc=O(),Sc=Mt(),Nc=z(),Ec=s=>!s||typeof s!="function"&&typeof s!="object",Z=class extends Sc.NodeBase{constructor(e){super(wc.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:Nc.toJS(this.value,e,t)}toString(){return String(this.value)}};Z.BLOCK_FOLDED="BLOCK_FOLDED";Z.BLOCK_LITERAL="BLOCK_LITERAL";Z.PLAIN="PLAIN";Z.QUOTE_DOUBLE="QUOTE_DOUBLE";Z.QUOTE_SINGLE="QUOTE_SINGLE";Xs.Scalar=Z;Xs.isScalarValue=Ec});var We=b(Er=>{"use strict";var vc=Je(),ue=O(),Nr=C(),Ac="tag:yaml.org,2002:";function Tc(s,e,t){if(e){let n=t.filter(r=>r.tag===e),i=n.find(r=>!r.format)??n[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return t.find(n=>n.identify?.(s)&&!n.format)}function Oc(s,e,t){if(ue.isDocument(s)&&(s=s.contents),ue.isNode(s))return s;if(ue.isPair(s)){let f=t.schema[ue.MAP].createNode?.(t.schema,null,t);return f.items.push(s),f}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt<"u"&&s instanceof BigInt)&&(s=s.valueOf());let{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:a}=t,l;if(n&&s&&typeof s=="object"){if(l=a.get(s),l)return l.anchor??(l.anchor=i(s)),new vc.Alias(l.anchor);l={anchor:null,node:null},a.set(s,l)}e?.startsWith("!!")&&(e=Ac+e.slice(2));let c=Tc(s,e,o.tags);if(!c){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){let f=new Nr.Scalar(s);return l&&(l.node=f),f}c=s instanceof Map?o[ue.MAP]:Symbol.iterator in Object(s)?o[ue.SEQ]:o[ue.MAP]}r&&(r(c),delete t.onTagObj);let u=c?.createNode?c.createNode(t.schema,s,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,s,t):new Nr.Scalar(s);return e?u.tag=e:c.default||(u.tag=c.tag),l&&(l.node=u),u}Er.createNode=Oc});var xt=b(_t=>{"use strict";var kc=We(),G=O(),qc=Mt();function Ds(s,e,t){let n=t;for(let i=e.length-1;i>=0;--i){let r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){let o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return kc.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}var vr=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done,Qs=class extends qc.NodeBase{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));return e&&(t.schema=e),t.items=t.items.map(n=>G.isNode(n)||G.isPair(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(vr(e))this.add(t);else{let[n,...i]=e,r=this.get(n,!0);if(G.isCollection(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(n,Ds(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let i=this.get(t,!0);if(G.isCollection(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...i]=e,r=this.get(n,!0);return i.length===0?!t&&G.isScalar(r)?r.value:r:G.isCollection(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!G.isPair(t))return!1;let n=t.value;return n==null||e&&G.isScalar(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let i=this.get(t,!0);return G.isCollection(i)?i.hasIn(n):!1}setIn(e,t){let[n,...i]=e;if(i.length===0)this.set(n,t);else{let r=this.get(n,!0);if(G.isCollection(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(n,Ds(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}};_t.Collection=Qs;_t.collectionFromPath=Ds;_t.isEmptyPath=vr});var Ge=b(Bt=>{"use strict";var Ic=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function Hs(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}var Cc=(s,e,t)=>s.endsWith(`
6
+ `)?Hs(t,e):t.includes(`
7
7
  `)?`
8
- `+Ds(t,e):(s.endsWith(" ")?"":" ")+t;xt.indentComment=Ds;xt.lineComment=Ic;xt.stringifyComment=qc});var Ar=b(Ge=>{"use strict";var Cc="flow",Hs="block",Bt="quoted";function Lc(s,e,t="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return s;i<r&&(r=0);let l=Math.max(1+r,1+i-e.length);if(s.length<=l)return s;let c=[],u={},f=i-e.length;typeof n=="number"&&(n>i-Math.max(2,r)?c.push(0):f=i-n);let d,p,g=!1,h=-1,m=-1,w=-1;t===Hs&&(h=vr(s,h,e.length),h!==-1&&(f=h+l));for(let N;N=s[h+=1];){if(t===Bt&&N==="\\"){switch(m=h,s[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}w=h}if(N===`
9
- `)t===Hs&&(h=vr(s,h,e.length)),f=h+e.length+l,d=void 0;else{if(N===" "&&p&&p!==" "&&p!==`
8
+ `+Hs(t,e):(s.endsWith(" ")?"":" ")+t;Bt.indentComment=Hs;Bt.lineComment=Cc;Bt.stringifyComment=Ic});var Tr=b(Xe=>{"use strict";var Lc="flow",zs="block",Ft="quoted";function Pc(s,e,t="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return s;i<r&&(r=0);let l=Math.max(1+r,1+i-e.length);if(s.length<=l)return s;let c=[],u={},f=i-e.length;typeof n=="number"&&(n>i-Math.max(2,r)?c.push(0):f=i-n);let d,p,g=!1,h=-1,m=-1,w=-1;t===zs&&(h=Ar(s,h,e.length),h!==-1&&(f=h+l));for(let N;N=s[h+=1];){if(t===Ft&&N==="\\"){switch(m=h,s[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}w=h}if(N===`
9
+ `)t===zs&&(h=Ar(s,h,e.length)),f=h+e.length+l,d=void 0;else{if(N===" "&&p&&p!==" "&&p!==`
10
10
  `&&p!==" "){let E=s[h+1];E&&E!==" "&&E!==`
11
- `&&E!==" "&&(d=h)}if(h>=f)if(d)c.push(d),f=d+l,d=void 0;else if(t===Bt){for(;p===" "||p===" ";)p=N,N=s[h+=1],g=!0;let E=h>w+1?h-2:m-1;if(u[E])return s;c.push(E),u[E]=!0,f=E+l,d=void 0}else g=!0}p=N}if(g&&a&&a(),c.length===0)return s;o&&o();let y=s.slice(0,c[0]);for(let N=0;N<c.length;++N){let E=c[N],v=c[N+1]||s.length;E===0?y=`
12
- ${e}${s.slice(0,v)}`:(t===Bt&&u[E]&&(y+=`${s[E]}\\`),y+=`
13
- ${e}${s.slice(E+1,v)}`)}return y}function vr(s,e,t){let n=e,i=e+1,r=s[i];for(;r===" "||r===" ";)if(e<i+t)r=s[++e];else{do r=s[++e];while(r&&r!==`
14
- `);n=e,i=e+1,r=s[i]}return n}Ge.FOLD_BLOCK=Hs;Ge.FOLD_FLOW=Cc;Ge.FOLD_QUOTED=Bt;Ge.foldFlowLines=Lc});var Qe=b(Tr=>{"use strict";var Y=C(),Z=Ar(),jt=(s,e)=>({indentAtStart:e?s.indent.length:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),Vt=s=>/^(%|---|\.\.\.)/m.test(s);function Pc(s,e,t){if(!e||e<0)return!1;let n=e-t,i=s.length;if(i<=n)return!1;for(let r=0,o=0;r<i;++r)if(s[r]===`
15
- `){if(r-o>n)return!0;if(o=r+1,i-o<=n)return!1}return!0}function Xe(s,e){let t=JSON.stringify(s);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:n}=e,i=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(Vt(s)?" ":""),o="",a=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(o+=t.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{o+=t.slice(a,l);let u=t.substr(l+2,4);switch(u){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:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=t.substr(l,6)}l+=5,a=l+1}break;case"n":if(n||t[l+2]==='"'||t.length<i)l+=1;else{for(o+=t.slice(a,l)+`
11
+ `&&E!==" "&&(d=h)}if(h>=f)if(d)c.push(d),f=d+l,d=void 0;else if(t===Ft){for(;p===" "||p===" ";)p=N,N=s[h+=1],g=!0;let E=h>w+1?h-2:m-1;if(u[E])return s;c.push(E),u[E]=!0,f=E+l,d=void 0}else g=!0}p=N}if(g&&a&&a(),c.length===0)return s;o&&o();let y=s.slice(0,c[0]);for(let N=0;N<c.length;++N){let E=c[N],v=c[N+1]||s.length;E===0?y=`
12
+ ${e}${s.slice(0,v)}`:(t===Ft&&u[E]&&(y+=`${s[E]}\\`),y+=`
13
+ ${e}${s.slice(E+1,v)}`)}return y}function Ar(s,e,t){let n=e,i=e+1,r=s[i];for(;r===" "||r===" ";)if(e<i+t)r=s[++e];else{do r=s[++e];while(r&&r!==`
14
+ `);n=e,i=e+1,r=s[i]}return n}Xe.FOLD_BLOCK=zs;Xe.FOLD_FLOW=Lc;Xe.FOLD_QUOTED=Ft;Xe.foldFlowLines=Pc});var Qe=b(Or=>{"use strict";var U=C(),ee=Tr(),Vt=(s,e)=>({indentAtStart:e?s.indent.length:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),Kt=s=>/^(%|---|\.\.\.)/m.test(s);function Mc(s,e,t){if(!e||e<0)return!1;let n=e-t,i=s.length;if(i<=n)return!1;for(let r=0,o=0;r<i;++r)if(s[r]===`
15
+ `){if(r-o>n)return!0;if(o=r+1,i-o<=n)return!1}return!0}function De(s,e){let t=JSON.stringify(s);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:n}=e,i=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(Kt(s)?" ":""),o="",a=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(o+=t.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{o+=t.slice(a,l);let u=t.substr(l+2,4);switch(u){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:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=t.substr(l,6)}l+=5,a=l+1}break;case"n":if(n||t[l+2]==='"'||t.length<i)l+=1;else{for(o+=t.slice(a,l)+`
16
16
 
17
17
  `;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)o+=`
18
- `,l+=2;o+=r,t[l+2]===" "&&(o+="\\"),l+=1,a=l+1}break;default:l+=1}return o=a?o+t.slice(a):t,n?o:Z.foldFlowLines(o,r,Z.FOLD_QUOTED,jt(e,!1))}function zs(s,e){if(e.options.singleQuote===!1||e.implicitKey&&s.includes(`
19
- `)||/[ \t]\n|\n[ \t]/.test(s))return Xe(s,e);let t=e.indent||(Vt(s)?" ":""),n="'"+s.replace(/'/g,"''").replace(/\n+/g,`$&
20
- ${t}`)+"'";return e.implicitKey?n:Z.foldFlowLines(n,t,Z.FOLD_FLOW,jt(e,!1))}function ve(s,e){let{singleQuote:t}=e.options,n;if(t===!1)n=Xe;else{let i=s.includes('"'),r=s.includes("'");i&&!r?n=zs:r&&!i?n=Xe:n=t?zs:Xe}return n(s,e)}var Zs;try{Zs=new RegExp(`(^|(?<!
18
+ `,l+=2;o+=r,t[l+2]===" "&&(o+="\\"),l+=1,a=l+1}break;default:l+=1}return o=a?o+t.slice(a):t,n?o:ee.foldFlowLines(o,r,ee.FOLD_QUOTED,Vt(e,!1))}function Zs(s,e){if(e.options.singleQuote===!1||e.implicitKey&&s.includes(`
19
+ `)||/[ \t]\n|\n[ \t]/.test(s))return De(s,e);let t=e.indent||(Kt(s)?" ":""),n="'"+s.replace(/'/g,"''").replace(/\n+/g,`$&
20
+ ${t}`)+"'";return e.implicitKey?n:ee.foldFlowLines(n,t,ee.FOLD_FLOW,Vt(e,!1))}function Ae(s,e){let{singleQuote:t}=e.options,n;if(t===!1)n=De;else{let i=s.includes('"'),r=s.includes("'");i&&!r?n=Zs:r&&!i?n=De:n=t?Zs:De}return n(s,e)}var en;try{en=new RegExp(`(^|(?<!
21
21
  ))
22
22
  +(?!
23
- |$)`,"g")}catch{Zs=/\n+(?!\n|$)/g}function Ft({comment:s,type:e,value:t},n,i,r){let{blockQuote:o,commentString:a,lineWidth:l}=n.options;if(!o||/\n[\t ]+$/.test(t))return ve(t,n);let c=n.indent||(n.forceBlockIndent||Vt(t)?" ":""),u=o==="literal"?!0:o==="folded"||e===Y.Scalar.BLOCK_FOLDED?!1:e===Y.Scalar.BLOCK_LITERAL?!0:!Pc(t,l,c.length);if(!t)return u?`|
23
+ |$)`,"g")}catch{en=/\n+(?!\n|$)/g}function jt({comment:s,type:e,value:t},n,i,r){let{blockQuote:o,commentString:a,lineWidth:l}=n.options;if(!o||/\n[\t ]+$/.test(t))return Ae(t,n);let c=n.indent||(n.forceBlockIndent||Kt(t)?" ":""),u=o==="literal"?!0:o==="folded"||e===U.Scalar.BLOCK_FOLDED?!1:e===U.Scalar.BLOCK_LITERAL?!0:!Mc(t,l,c.length);if(!t)return u?`|
24
24
  `:`>
25
25
  `;let f,d;for(d=t.length;d>0;--d){let v=t[d-1];if(v!==`
26
26
  `&&v!==" "&&v!==" ")break}let p=t.substring(d),g=p.indexOf(`
27
27
  `);g===-1?f="-":t===p||g!==p.length-1?(f="+",r&&r()):f="",p&&(t=t.slice(0,-p.length),p[p.length-1]===`
28
- `&&(p=p.slice(0,-1)),p=p.replace(Zs,`$&${c}`));let h=!1,m,w=-1;for(m=0;m<t.length;++m){let v=t[m];if(v===" ")h=!0;else if(v===`
28
+ `&&(p=p.slice(0,-1)),p=p.replace(en,`$&${c}`));let h=!1,m,w=-1;for(m=0;m<t.length;++m){let v=t[m];if(v===" ")h=!0;else if(v===`
29
29
  `)w=m;else break}let y=t.substring(0,w<m?w+1:m);y&&(t=t.substring(y.length),y=y.replace(/\n+/g,`$&${c}`));let E=(h?c?"2":"1":"")+f;if(s&&(E+=" "+a(s.replace(/ ?[\r\n]+/g," ")),i&&i()),!u){let v=t.replace(/\n+/g,`
30
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`),A=!1,q=jt(n,!0);o!=="folded"&&e!==Y.Scalar.BLOCK_FOLDED&&(q.onOverflow=()=>{A=!0});let S=Z.foldFlowLines(`${y}${v}${p}`,c,Z.FOLD_BLOCK,q);if(!A)return`>${E}
30
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`),A=!1,q=Vt(n,!0);o!=="folded"&&e!==U.Scalar.BLOCK_FOLDED&&(q.onOverflow=()=>{A=!0});let S=ee.foldFlowLines(`${y}${v}${p}`,c,ee.FOLD_BLOCK,q);if(!A)return`>${E}
31
31
  ${c}${S}`}return t=t.replace(/\n+/g,`$&${c}`),`|${E}
32
- ${c}${y}${t}${p}`}function Mc(s,e,t,n){let{type:i,value:r}=s,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=e;if(a&&r.includes(`
33
- `)||u&&/[[\]{},]/.test(r))return ve(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||u||!r.includes(`
34
- `)?ve(r,e):Ft(s,e,t,n);if(!a&&!u&&i!==Y.Scalar.PLAIN&&r.includes(`
35
- `))return Ft(s,e,t,n);if(Vt(r)){if(l==="")return e.forceBlockIndent=!0,Ft(s,e,t,n);if(a&&l===c)return ve(r,e)}let f=r.replace(/\n+/g,`$&
36
- ${l}`);if(o){let d=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(f),{compat:p,tags:g}=e.doc.schema;if(g.some(d)||p?.some(d))return ve(r,e)}return a?f:Z.foldFlowLines(f,l,Z.FOLD_FLOW,jt(e,!1))}function $c(s,e,t,n){let{implicitKey:i,inFlow:r}=e,o=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)}),{type:a}=s;a!==Y.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=Y.Scalar.QUOTE_DOUBLE);let l=u=>{switch(u){case Y.Scalar.BLOCK_FOLDED:case Y.Scalar.BLOCK_LITERAL:return i||r?ve(o.value,e):Ft(o,e,t,n);case Y.Scalar.QUOTE_DOUBLE:return Xe(o.value,e);case Y.Scalar.QUOTE_SINGLE:return zs(o.value,e);case Y.Scalar.PLAIN:return Mc(o,e,t,n);default:return null}},c=l(a);if(c===null){let{defaultKeyType:u,defaultStringType:f}=e.options,d=i&&u||f;if(c=l(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}Tr.stringifyString=$c});var De=b(en=>{"use strict";var _c=Lt(),ee=O(),xc=We(),Bc=Qe();function Fc(s,e){let t=Object.assign({blockQuote:!0,commentString:xc.stringifyComment,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,trueStr:"true",verifyAliasOrder:!0},s.schema.toStringOptions,e),n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:s,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function jc(s,e){if(e.tag){let i=s.filter(r=>r.tag===e.tag);if(i.length>0)return i.find(r=>r.format===e.format)??i[0]}let t,n;if(ee.isScalar(e)){n=e.value;let i=s.filter(r=>r.identify?.(n));if(i.length>1){let r=i.filter(o=>o.test);r.length>0&&(i=r)}t=i.find(r=>r.format===e.format)??i.find(r=>!r.format)}else n=e,t=s.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!t){let i=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${i} value`)}return t}function Vc(s,e,{anchors:t,doc:n}){if(!n.directives)return"";let i=[],r=(ee.isScalar(s)||ee.isCollection(s))&&s.anchor;r&&_c.anchorIsValid(r)&&(t.add(r),i.push(`&${r}`));let o=s.tag??(e.default?null:e.tag);return o&&i.push(n.directives.tagString(o)),i.join(" ")}function Kc(s,e,t,n){if(ee.isPair(s))return s.toString(e,t,n);if(ee.isAlias(s)){if(e.doc.directives)return s.toString(e);if(e.resolvedAliases?.has(s))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(s):e.resolvedAliases=new Set([s]),s=s.resolve(e.doc)}let i,r=ee.isNode(s)?s:e.doc.createNode(s,{onTagObj:l=>i=l});i??(i=jc(e.doc.schema.tags,r));let o=Vc(r,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof i.stringify=="function"?i.stringify(r,e,t,n):ee.isScalar(r)?Bc.stringifyString(r,e,t,n):r.toString(e,t,n);return o?ee.isScalar(r)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
37
- ${e.indent}${a}`:a}en.createStringifyContext=Fc;en.stringify=Kc});var Ir=b(qr=>{"use strict";var Q=O(),Or=C(),kr=De(),He=We();function Rc({key:s,value:e},t,n,i){let{allNullValues:r,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:f}}=t,d=Q.isNode(s)&&s.comment||null;if(f){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(Q.isCollection(s)||!Q.isNode(s)&&typeof s=="object"){let q="With simple keys, collection cannot be used as a key value";throw new Error(q)}}let p=!f&&(!s||d&&e==null&&!t.inFlow||Q.isCollection(s)||(Q.isScalar(s)?s.type===Or.Scalar.BLOCK_FOLDED||s.type===Or.Scalar.BLOCK_LITERAL:typeof s=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(f||!r),indent:a+l});let g=!1,h=!1,m=kr.stringify(s,t,()=>g=!0,()=>h=!0);if(!p&&!t.inFlow&&m.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(r||e==null)return g&&n&&n(),m===""?"?":p?`? ${m}`:m}else if(r&&!f||e==null&&p)return m=`? ${m}`,d&&!g?m+=He.lineComment(m,t.indent,c(d)):h&&i&&i(),m;g&&(d=null),p?(d&&(m+=He.lineComment(m,t.indent,c(d))),m=`? ${m}
38
- ${a}:`):(m=`${m}:`,d&&(m+=He.lineComment(m,t.indent,c(d))));let w,y,N;Q.isNode(e)?(w=!!e.spaceBefore,y=e.commentBefore,N=e.comment):(w=!1,y=null,N=null,e&&typeof e=="object"&&(e=o.createNode(e))),t.implicitKey=!1,!p&&!d&&Q.isScalar(e)&&(t.indentAtStart=m.length+1),h=!1,!u&&l.length>=2&&!t.inFlow&&!p&&Q.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let E=!1,v=kr.stringify(e,t,()=>E=!0,()=>h=!0),A=" ";if(d||w||y){if(A=w?`
32
+ ${c}${y}${t}${p}`}function $c(s,e,t,n){let{type:i,value:r}=s,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=e;if(a&&r.includes(`
33
+ `)||u&&/[[\]{},]/.test(r))return Ae(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||u||!r.includes(`
34
+ `)?Ae(r,e):jt(s,e,t,n);if(!a&&!u&&i!==U.Scalar.PLAIN&&r.includes(`
35
+ `))return jt(s,e,t,n);if(Kt(r)){if(l==="")return e.forceBlockIndent=!0,jt(s,e,t,n);if(a&&l===c)return Ae(r,e)}let f=r.replace(/\n+/g,`$&
36
+ ${l}`);if(o){let d=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(f),{compat:p,tags:g}=e.doc.schema;if(g.some(d)||p?.some(d))return Ae(r,e)}return a?f:ee.foldFlowLines(f,l,ee.FOLD_FLOW,Vt(e,!1))}function _c(s,e,t,n){let{implicitKey:i,inFlow:r}=e,o=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)}),{type:a}=s;a!==U.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=U.Scalar.QUOTE_DOUBLE);let l=u=>{switch(u){case U.Scalar.BLOCK_FOLDED:case U.Scalar.BLOCK_LITERAL:return i||r?Ae(o.value,e):jt(o,e,t,n);case U.Scalar.QUOTE_DOUBLE:return De(o.value,e);case U.Scalar.QUOTE_SINGLE:return Zs(o.value,e);case U.Scalar.PLAIN:return $c(o,e,t,n);default:return null}},c=l(a);if(c===null){let{defaultKeyType:u,defaultStringType:f}=e.options,d=i&&u||f;if(c=l(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}Or.stringifyString=_c});var He=b(tn=>{"use strict";var xc=Pt(),te=O(),Bc=Ge(),Fc=Qe();function jc(s,e){let t=Object.assign({blockQuote:!0,commentString:Bc.stringifyComment,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,trueStr:"true",verifyAliasOrder:!0},s.schema.toStringOptions,e),n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:s,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function Vc(s,e){if(e.tag){let i=s.filter(r=>r.tag===e.tag);if(i.length>0)return i.find(r=>r.format===e.format)??i[0]}let t,n;if(te.isScalar(e)){n=e.value;let i=s.filter(r=>r.identify?.(n));if(i.length>1){let r=i.filter(o=>o.test);r.length>0&&(i=r)}t=i.find(r=>r.format===e.format)??i.find(r=>!r.format)}else n=e,t=s.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!t){let i=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${i} value`)}return t}function Kc(s,e,{anchors:t,doc:n}){if(!n.directives)return"";let i=[],r=(te.isScalar(s)||te.isCollection(s))&&s.anchor;r&&xc.anchorIsValid(r)&&(t.add(r),i.push(`&${r}`));let o=s.tag??(e.default?null:e.tag);return o&&i.push(n.directives.tagString(o)),i.join(" ")}function Rc(s,e,t,n){if(te.isPair(s))return s.toString(e,t,n);if(te.isAlias(s)){if(e.doc.directives)return s.toString(e);if(e.resolvedAliases?.has(s))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(s):e.resolvedAliases=new Set([s]),s=s.resolve(e.doc)}let i,r=te.isNode(s)?s:e.doc.createNode(s,{onTagObj:l=>i=l});i??(i=Vc(e.doc.schema.tags,r));let o=Kc(r,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof i.stringify=="function"?i.stringify(r,e,t,n):te.isScalar(r)?Fc.stringifyString(r,e,t,n):r.toString(e,t,n);return o?te.isScalar(r)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
37
+ ${e.indent}${a}`:a}tn.createStringifyContext=jc;tn.stringify=Rc});var Cr=b(Ir=>{"use strict";var Q=O(),kr=C(),qr=He(),ze=Ge();function Yc({key:s,value:e},t,n,i){let{allNullValues:r,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:f}}=t,d=Q.isNode(s)&&s.comment||null;if(f){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(Q.isCollection(s)||!Q.isNode(s)&&typeof s=="object"){let q="With simple keys, collection cannot be used as a key value";throw new Error(q)}}let p=!f&&(!s||d&&e==null&&!t.inFlow||Q.isCollection(s)||(Q.isScalar(s)?s.type===kr.Scalar.BLOCK_FOLDED||s.type===kr.Scalar.BLOCK_LITERAL:typeof s=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(f||!r),indent:a+l});let g=!1,h=!1,m=qr.stringify(s,t,()=>g=!0,()=>h=!0);if(!p&&!t.inFlow&&m.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(r||e==null)return g&&n&&n(),m===""?"?":p?`? ${m}`:m}else if(r&&!f||e==null&&p)return m=`? ${m}`,d&&!g?m+=ze.lineComment(m,t.indent,c(d)):h&&i&&i(),m;g&&(d=null),p?(d&&(m+=ze.lineComment(m,t.indent,c(d))),m=`? ${m}
38
+ ${a}:`):(m=`${m}:`,d&&(m+=ze.lineComment(m,t.indent,c(d))));let w,y,N;Q.isNode(e)?(w=!!e.spaceBefore,y=e.commentBefore,N=e.comment):(w=!1,y=null,N=null,e&&typeof e=="object"&&(e=o.createNode(e))),t.implicitKey=!1,!p&&!d&&Q.isScalar(e)&&(t.indentAtStart=m.length+1),h=!1,!u&&l.length>=2&&!t.inFlow&&!p&&Q.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let E=!1,v=qr.stringify(e,t,()=>E=!0,()=>h=!0),A=" ";if(d||w||y){if(A=w?`
39
39
  `:"",y){let q=c(y);A+=`
40
- ${He.indentComment(q,t.indent)}`}v===""&&!t.inFlow?A===`
40
+ ${ze.indentComment(q,t.indent)}`}v===""&&!t.inFlow?A===`
41
41
  `&&N&&(A=`
42
42
 
43
43
  `):A+=`
44
44
  ${t.indent}`}else if(!p&&Q.isCollection(e)){let q=v[0],S=v.indexOf(`
45
- `),L=S!==-1,D=t.inFlow??e.flow??e.items.length===0;if(L||!D){let ge=!1;if(L&&(q==="&"||q==="!")){let P=v.indexOf(" ");q==="&"&&P!==-1&&P<S&&v[P+1]==="!"&&(P=v.indexOf(" ",P+1)),(P===-1||S<P)&&(ge=!0)}ge||(A=`
45
+ `),L=S!==-1,H=t.inFlow??e.flow??e.items.length===0;if(L||!H){let ye=!1;if(L&&(q==="&"||q==="!")){let P=v.indexOf(" ");q==="&"&&P!==-1&&P<S&&v[P+1]==="!"&&(P=v.indexOf(" ",P+1)),(P===-1||S<P)&&(ye=!0)}ye||(A=`
46
46
  ${t.indent}`)}}else(v===""||v[0]===`
47
- `)&&(A="");return m+=A+v,t.inFlow?E&&n&&n():N&&!E?m+=He.lineComment(m,t.indent,c(N)):h&&i&&i(),m}qr.stringifyPair=Rc});var sn=b(tn=>{"use strict";var Cr=bt("process");function Yc(s,...e){s==="debug"&&console.log(...e)}function Uc(s,e){(s==="debug"||s==="warn")&&(typeof Cr.emitWarning=="function"?Cr.emitWarning(e):console.warn(e))}tn.debug=Yc;tn.warn=Uc});var Ut=b(Yt=>{"use strict";var ze=O(),Lr=C(),Kt="<<",Rt={identify:s=>s===Kt||typeof s=="symbol"&&s.description===Kt,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Lr.Scalar(Symbol(Kt)),{addToJSMap:Pr}),stringify:()=>Kt},Jc=(s,e)=>(Rt.identify(e)||ze.isScalar(e)&&(!e.type||e.type===Lr.Scalar.PLAIN)&&Rt.identify(e.value))&&s?.doc.schema.tags.some(t=>t.tag===Rt.tag&&t.default);function Pr(s,e,t){if(t=s&&ze.isAlias(t)?t.resolve(s.doc):t,ze.isSeq(t))for(let n of t.items)nn(s,e,n);else if(Array.isArray(t))for(let n of t)nn(s,e,n);else nn(s,e,t)}function nn(s,e,t){let n=s&&ze.isAlias(t)?t.resolve(s.doc):t;if(!ze.isMap(n))throw new Error("Merge sources must be maps or map aliases");let i=n.toJSON(null,s,Map);for(let[r,o]of i)e instanceof Map?e.has(r)||e.set(r,o):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}Yt.addMergeToJSMap=Pr;Yt.isMergeKey=Jc;Yt.merge=Rt});var on=b(_r=>{"use strict";var Wc=sn(),Mr=Ut(),Gc=De(),$r=O(),rn=H();function Xc(s,e,{key:t,value:n}){if($r.isNode(t)&&t.addToJSMap)t.addToJSMap(s,e,n);else if(Mr.isMergeKey(s,t))Mr.addMergeToJSMap(s,e,n);else{let i=rn.toJS(t,"",s);if(e instanceof Map)e.set(i,rn.toJS(n,i,s));else if(e instanceof Set)e.add(i);else{let r=Qc(t,i,s),o=rn.toJS(n,r,s);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}function Qc(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if($r.isNode(s)&&t?.doc){let n=Gc.createStringifyContext(t.doc,{});n.anchors=new Set;for(let r of t.anchors.keys())n.anchors.add(r.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=s.toString(n);if(!t.mapKeyWarned){let r=JSON.stringify(i);r.length>40&&(r=r.substring(0,36)+'..."'),Wc.warn(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return i}return JSON.stringify(e)}_r.addPairToJSMap=Xc});var te=b(an=>{"use strict";var xr=Je(),Dc=Ir(),Hc=on(),Jt=O();function zc(s,e,t){let n=xr.createNode(s,void 0,t),i=xr.createNode(e,void 0,t);return new Wt(n,i)}var Wt=class s{constructor(e,t=null){Object.defineProperty(this,Jt.NODE_TYPE,{value:Jt.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return Jt.isNode(t)&&(t=t.clone(e)),Jt.isNode(n)&&(n=n.clone(e)),new s(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return Hc.addPairToJSMap(t,n,this)}toString(e,t,n){return e?.doc?Dc.stringifyPair(this,e,t,n):JSON.stringify(this)}};an.Pair=Wt;an.createPair=zc});var ln=b(Fr=>{"use strict";var ue=O(),Br=De(),Gt=We();function Zc(s,e,t){return(e.inFlow??s.flow?tf:ef)(s,e,t)}function ef({comment:s,items:e},t,{blockItemPrefix:n,flowChars:i,itemIndent:r,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=t,u=Object.assign({},t,{indent:r,type:null}),f=!1,d=[];for(let g=0;g<e.length;++g){let h=e[g],m=null;if(ue.isNode(h))!f&&h.spaceBefore&&d.push(""),Xt(t,d,h.commentBefore,f),h.comment&&(m=h.comment);else if(ue.isPair(h)){let y=ue.isNode(h.key)?h.key:null;y&&(!f&&y.spaceBefore&&d.push(""),Xt(t,d,y.commentBefore,f))}f=!1;let w=Br.stringify(h,u,()=>m=null,()=>f=!0);m&&(w+=Gt.lineComment(w,r,c(m))),f&&m&&(f=!1),d.push(n+w)}let p;if(d.length===0)p=i.start+i.end;else{p=d[0];for(let g=1;g<d.length;++g){let h=d[g];p+=h?`
47
+ `)&&(A="");return m+=A+v,t.inFlow?E&&n&&n():N&&!E?m+=ze.lineComment(m,t.indent,c(N)):h&&i&&i(),m}Ir.stringifyPair=Yc});var nn=b(sn=>{"use strict";var Lr=wt("process");function Uc(s,...e){s==="debug"&&console.log(...e)}function Jc(s,e){(s==="debug"||s==="warn")&&(typeof Lr.emitWarning=="function"?Lr.emitWarning(e):console.warn(e))}sn.debug=Uc;sn.warn=Jc});var Jt=b(Ut=>{"use strict";var Ze=O(),Pr=C(),Rt="<<",Yt={identify:s=>s===Rt||typeof s=="symbol"&&s.description===Rt,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Pr.Scalar(Symbol(Rt)),{addToJSMap:Mr}),stringify:()=>Rt},Wc=(s,e)=>(Yt.identify(e)||Ze.isScalar(e)&&(!e.type||e.type===Pr.Scalar.PLAIN)&&Yt.identify(e.value))&&s?.doc.schema.tags.some(t=>t.tag===Yt.tag&&t.default);function Mr(s,e,t){if(t=s&&Ze.isAlias(t)?t.resolve(s.doc):t,Ze.isSeq(t))for(let n of t.items)rn(s,e,n);else if(Array.isArray(t))for(let n of t)rn(s,e,n);else rn(s,e,t)}function rn(s,e,t){let n=s&&Ze.isAlias(t)?t.resolve(s.doc):t;if(!Ze.isMap(n))throw new Error("Merge sources must be maps or map aliases");let i=n.toJSON(null,s,Map);for(let[r,o]of i)e instanceof Map?e.has(r)||e.set(r,o):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}Ut.addMergeToJSMap=Mr;Ut.isMergeKey=Wc;Ut.merge=Yt});var an=b(xr=>{"use strict";var Gc=nn(),$r=Jt(),Xc=He(),_r=O(),on=z();function Dc(s,e,{key:t,value:n}){if(_r.isNode(t)&&t.addToJSMap)t.addToJSMap(s,e,n);else if($r.isMergeKey(s,t))$r.addMergeToJSMap(s,e,n);else{let i=on.toJS(t,"",s);if(e instanceof Map)e.set(i,on.toJS(n,i,s));else if(e instanceof Set)e.add(i);else{let r=Qc(t,i,s),o=on.toJS(n,r,s);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}function Qc(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(_r.isNode(s)&&t?.doc){let n=Xc.createStringifyContext(t.doc,{});n.anchors=new Set;for(let r of t.anchors.keys())n.anchors.add(r.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=s.toString(n);if(!t.mapKeyWarned){let r=JSON.stringify(i);r.length>40&&(r=r.substring(0,36)+'..."'),Gc.warn(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return i}return JSON.stringify(e)}xr.addPairToJSMap=Dc});var se=b(ln=>{"use strict";var Br=We(),Hc=Cr(),zc=an(),Wt=O();function Zc(s,e,t){let n=Br.createNode(s,void 0,t),i=Br.createNode(e,void 0,t);return new Gt(n,i)}var Gt=class s{constructor(e,t=null){Object.defineProperty(this,Wt.NODE_TYPE,{value:Wt.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return Wt.isNode(t)&&(t=t.clone(e)),Wt.isNode(n)&&(n=n.clone(e)),new s(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return zc.addPairToJSMap(t,n,this)}toString(e,t,n){return e?.doc?Hc.stringifyPair(this,e,t,n):JSON.stringify(this)}};ln.Pair=Gt;ln.createPair=Zc});var cn=b(jr=>{"use strict";var de=O(),Fr=He(),Xt=Ge();function ef(s,e,t){return(e.inFlow??s.flow?sf:tf)(s,e,t)}function tf({comment:s,items:e},t,{blockItemPrefix:n,flowChars:i,itemIndent:r,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=t,u=Object.assign({},t,{indent:r,type:null}),f=!1,d=[];for(let g=0;g<e.length;++g){let h=e[g],m=null;if(de.isNode(h))!f&&h.spaceBefore&&d.push(""),Dt(t,d,h.commentBefore,f),h.comment&&(m=h.comment);else if(de.isPair(h)){let y=de.isNode(h.key)?h.key:null;y&&(!f&&y.spaceBefore&&d.push(""),Dt(t,d,y.commentBefore,f))}f=!1;let w=Fr.stringify(h,u,()=>m=null,()=>f=!0);m&&(w+=Xt.lineComment(w,r,c(m))),f&&m&&(f=!1),d.push(n+w)}let p;if(d.length===0)p=i.start+i.end;else{p=d[0];for(let g=1;g<d.length;++g){let h=d[g];p+=h?`
48
48
  ${l}${h}`:`
49
49
  `}}return s?(p+=`
50
- `+Gt.indentComment(c(s),l),a&&a()):f&&o&&o(),p}function tf({items:s},e,{flowChars:t,itemIndent:n}){let{indent:i,indentStep:r,flowCollectionPadding:o,options:{commentString:a}}=e;n+=r;let l=Object.assign({},e,{indent:n,inFlow:!0,type:null}),c=!1,u=0,f=[];for(let g=0;g<s.length;++g){let h=s[g],m=null;if(ue.isNode(h))h.spaceBefore&&f.push(""),Xt(e,f,h.commentBefore,!1),h.comment&&(m=h.comment);else if(ue.isPair(h)){let y=ue.isNode(h.key)?h.key:null;y&&(y.spaceBefore&&f.push(""),Xt(e,f,y.commentBefore,!1),y.comment&&(c=!0));let N=ue.isNode(h.value)?h.value:null;N?(N.comment&&(m=N.comment),N.commentBefore&&(c=!0)):h.value==null&&y?.comment&&(m=y.comment)}m&&(c=!0);let w=Br.stringify(h,l,()=>m=null);g<s.length-1&&(w+=","),m&&(w+=Gt.lineComment(w,n,a(m))),!c&&(f.length>u||w.includes(`
50
+ `+Xt.indentComment(c(s),l),a&&a()):f&&o&&o(),p}function sf({items:s},e,{flowChars:t,itemIndent:n}){let{indent:i,indentStep:r,flowCollectionPadding:o,options:{commentString:a}}=e;n+=r;let l=Object.assign({},e,{indent:n,inFlow:!0,type:null}),c=!1,u=0,f=[];for(let g=0;g<s.length;++g){let h=s[g],m=null;if(de.isNode(h))h.spaceBefore&&f.push(""),Dt(e,f,h.commentBefore,!1),h.comment&&(m=h.comment);else if(de.isPair(h)){let y=de.isNode(h.key)?h.key:null;y&&(y.spaceBefore&&f.push(""),Dt(e,f,y.commentBefore,!1),y.comment&&(c=!0));let N=de.isNode(h.value)?h.value:null;N?(N.comment&&(m=N.comment),N.commentBefore&&(c=!0)):h.value==null&&y?.comment&&(m=y.comment)}m&&(c=!0);let w=Fr.stringify(h,l,()=>m=null);g<s.length-1&&(w+=","),m&&(w+=Xt.lineComment(w,n,a(m))),!c&&(f.length>u||w.includes(`
51
51
  `))&&(c=!0),f.push(w),u=f.length}let{start:d,end:p}=t;if(f.length===0)return d+p;if(!c){let g=f.reduce((h,m)=>h+m.length+2,2);c=e.options.lineWidth>0&&g>e.options.lineWidth}if(c){let g=d;for(let h of f)g+=h?`
52
52
  ${r}${i}${h}`:`
53
53
  `;return`${g}
54
- ${i}${p}`}else return`${d}${o}${f.join(" ")}${o}${p}`}function Xt({indent:s,options:{commentString:e}},t,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){let r=Gt.indentComment(e(n),s);t.push(r.trimStart())}}Fr.stringifyCollection=Zc});var ne=b(fn=>{"use strict";var sf=ln(),nf=on(),rf=_t(),se=O(),Qt=te(),of=C();function Ze(s,e){let t=se.isScalar(e)?e.value:e;for(let n of s)if(se.isPair(n)&&(n.key===e||n.key===t||se.isScalar(n.key)&&n.key.value===t))return n}var cn=class extends rf.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(se.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:i,replacer:r}=n,o=new this(e),a=(l,c)=>{if(typeof r=="function")c=r.call(t,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||i)&&o.items.push(Qt.createPair(l,c,n))};if(t instanceof Map)for(let[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(let l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;se.isPair(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new Qt.Pair(e,e?.value):n=new Qt.Pair(e.key,e.value);let i=Ze(this.items,n.key),r=this.schema?.sortMapEntries;if(i){if(!t)throw new Error(`Key ${n.key} already set`);se.isScalar(i.value)&&of.isScalarValue(n.value)?i.value.value=n.value:i.value=n.value}else if(r){let o=this.items.findIndex(a=>r(n,a)<0);o===-1?this.items.push(n):this.items.splice(o,0,n)}else this.items.push(n)}delete(e){let t=Ze(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let i=Ze(this.items,e)?.value;return(!t&&se.isScalar(i)?i.value:i)??void 0}has(e){return!!Ze(this.items,e)}set(e,t){this.add(new Qt.Pair(e,t),!0)}toJSON(e,t,n){let i=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let r of this.items)nf.addPairToJSMap(t,i,r);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(let i of this.items)if(!se.isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),sf.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}};fn.YAMLMap=cn;fn.findPair=Ze});var Ae=b(Vr=>{"use strict";var af=O(),jr=ne(),lf={collection:"map",default:!0,nodeClass:jr.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(s,e){return af.isMap(s)||e("Expected a mapping for this tag"),s},createNode:(s,e,t)=>jr.YAMLMap.from(s,e,t)};Vr.map=lf});var ie=b(Kr=>{"use strict";var cf=Je(),ff=ln(),uf=_t(),Ht=O(),df=C(),hf=H(),un=class extends uf.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Ht.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Dt(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let n=Dt(e);if(typeof n!="number")return;let i=this.items[n];return!t&&Ht.isScalar(i)?i.value:i}has(e){let t=Dt(e);return typeof t=="number"&&t<this.items.length}set(e,t){let n=Dt(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);let i=this.items[n];Ht.isScalar(i)&&df.isScalarValue(t)?i.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let i=0;for(let r of this.items)n.push(hf.toJS(r,String(i++),t));return n}toString(e,t,n){return e?ff.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let a of t){if(typeof i=="function"){let l=t instanceof Set?a:String(o++);a=i.call(t,l,a)}r.items.push(cf.createNode(a,void 0,n))}}return r}};function Dt(s){let e=Ht.isScalar(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}Kr.YAMLSeq=un});var Te=b(Yr=>{"use strict";var pf=O(),Rr=ie(),mf={collection:"seq",default:!0,nodeClass:Rr.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(s,e){return pf.isSeq(s)||e("Expected a sequence for this tag"),s},createNode:(s,e,t)=>Rr.YAMLSeq.from(s,e,t)};Yr.seq=mf});var et=b(Ur=>{"use strict";var gf=Qe(),yf={identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify(s,e,t,n){return e=Object.assign({actualString:!0},e),gf.stringifyString(s,e,t,n)}};Ur.string=yf});var zt=b(Gr=>{"use strict";var Jr=C(),Wr={identify:s=>s==null,createNode:()=>new Jr.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Jr.Scalar(null),stringify:({source:s},e)=>typeof s=="string"&&Wr.test.test(s)?s:e.options.nullStr};Gr.nullTag=Wr});var dn=b(Qr=>{"use strict";var bf=C(),Xr={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new bf.Scalar(s[0]==="t"||s[0]==="T"),stringify({source:s,value:e},t){if(s&&Xr.test.test(s)){let n=s[0]==="t"||s[0]==="T";if(e===n)return s}return e?t.options.trueStr:t.options.falseStr}};Qr.boolTag=Xr});var Oe=b(Dr=>{"use strict";function wf({format:s,minFractionDigits:e,tag:t,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(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let a=e-(r.length-o-1);for(;a-- >0;)r+="0"}return r}Dr.stringifyNumber=wf});var pn=b(Zt=>{"use strict";var Sf=C(),hn=Oe(),Nf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:hn.stringifyNumber},Ef={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():hn.stringifyNumber(s)}},vf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){let e=new Sf.Scalar(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:hn.stringifyNumber};Zt.float=vf;Zt.floatExp=Ef;Zt.floatNaN=Nf});var gn=b(ts=>{"use strict";var Hr=Oe(),es=s=>typeof s=="bigint"||Number.isInteger(s),mn=(s,e,t,{intAsBigInt:n})=>n?BigInt(s):parseInt(s.substring(e),t);function zr(s,e,t){let{value:n}=s;return es(n)&&n>=0?t+n.toString(e):Hr.stringifyNumber(s)}var Af={identify:s=>es(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(s,e,t)=>mn(s,2,8,t),stringify:s=>zr(s,8,"0o")},Tf={identify:es,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(s,e,t)=>mn(s,0,10,t),stringify:Hr.stringifyNumber},Of={identify:s=>es(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(s,e,t)=>mn(s,2,16,t),stringify:s=>zr(s,16,"0x")};ts.int=Tf;ts.intHex=Of;ts.intOct=Af});var eo=b(Zr=>{"use strict";var kf=Ae(),qf=zt(),If=Te(),Cf=et(),Lf=dn(),yn=pn(),bn=gn(),Pf=[kf.map,If.seq,Cf.string,qf.nullTag,Lf.boolTag,bn.intOct,bn.int,bn.intHex,yn.floatNaN,yn.floatExp,yn.float];Zr.schema=Pf});var no=b(so=>{"use strict";var Mf=C(),$f=Ae(),_f=Te();function to(s){return typeof s=="bigint"||Number.isInteger(s)}var ss=({value:s})=>JSON.stringify(s),xf=[{identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify:ss},{identify:s=>s==null,createNode:()=>new Mf.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ss},{identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:s=>s==="true",stringify:ss},{identify:to,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(s,e,{intAsBigInt:t})=>t?BigInt(s):parseInt(s,10),stringify:({value:s})=>to(s)?s.toString():JSON.stringify(s)},{identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:s=>parseFloat(s),stringify:ss}],Bf={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},Ff=[$f.map,_f.seq].concat(xf,Bf);so.schema=Ff});var Sn=b(io=>{"use strict";var tt=bt("buffer"),wn=C(),jf=Qe(),Vf={identify:s=>s instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof tt.Buffer=="function")return tt.Buffer.from(s,"base64");if(typeof atob=="function"){let t=atob(s.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let i=0;i<t.length;++i)n[i]=t.charCodeAt(i);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),s},stringify({comment:s,type:e,value:t},n,i,r){if(!t)return"";let o=t,a;if(typeof tt.Buffer=="function")a=o instanceof tt.Buffer?o.toString("base64"):tt.Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=wn.Scalar.BLOCK_LITERAL),e!==wn.Scalar.QUOTE_DOUBLE){let l=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),c=Math.ceil(a.length/l),u=new Array(c);for(let f=0,d=0;f<c;++f,d+=l)u[f]=a.substr(d,l);a=u.join(e===wn.Scalar.BLOCK_LITERAL?`
55
- `:" ")}return jf.stringifyString({comment:s,type:e,value:a},n,i,r)}};io.binary=Vf});var rs=b(is=>{"use strict";var ns=O(),Nn=te(),Kf=C(),Rf=ie();function ro(s,e){if(ns.isSeq(s))for(let t=0;t<s.items.length;++t){let n=s.items[t];if(!ns.isPair(n)){if(ns.isMap(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");let i=n.items[0]||new Nn.Pair(new Kf.Scalar(null));if(n.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${n.commentBefore}
54
+ ${i}${p}`}else return`${d}${o}${f.join(" ")}${o}${p}`}function Dt({indent:s,options:{commentString:e}},t,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){let r=Xt.indentComment(e(n),s);t.push(r.trimStart())}}jr.stringifyCollection=ef});var ie=b(un=>{"use strict";var nf=cn(),rf=an(),of=xt(),ne=O(),Qt=se(),af=C();function et(s,e){let t=ne.isScalar(e)?e.value:e;for(let n of s)if(ne.isPair(n)&&(n.key===e||n.key===t||ne.isScalar(n.key)&&n.key.value===t))return n}var fn=class extends of.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(ne.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:i,replacer:r}=n,o=new this(e),a=(l,c)=>{if(typeof r=="function")c=r.call(t,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||i)&&o.items.push(Qt.createPair(l,c,n))};if(t instanceof Map)for(let[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(let l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;ne.isPair(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new Qt.Pair(e,e?.value):n=new Qt.Pair(e.key,e.value);let i=et(this.items,n.key),r=this.schema?.sortMapEntries;if(i){if(!t)throw new Error(`Key ${n.key} already set`);ne.isScalar(i.value)&&af.isScalarValue(n.value)?i.value.value=n.value:i.value=n.value}else if(r){let o=this.items.findIndex(a=>r(n,a)<0);o===-1?this.items.push(n):this.items.splice(o,0,n)}else this.items.push(n)}delete(e){let t=et(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let i=et(this.items,e)?.value;return(!t&&ne.isScalar(i)?i.value:i)??void 0}has(e){return!!et(this.items,e)}set(e,t){this.add(new Qt.Pair(e,t),!0)}toJSON(e,t,n){let i=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let r of this.items)rf.addPairToJSMap(t,i,r);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(let i of this.items)if(!ne.isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),nf.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}};un.YAMLMap=fn;un.findPair=et});var Te=b(Kr=>{"use strict";var lf=O(),Vr=ie(),cf={collection:"map",default:!0,nodeClass:Vr.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(s,e){return lf.isMap(s)||e("Expected a mapping for this tag"),s},createNode:(s,e,t)=>Vr.YAMLMap.from(s,e,t)};Kr.map=cf});var re=b(Rr=>{"use strict";var ff=We(),uf=cn(),df=xt(),zt=O(),hf=C(),pf=z(),dn=class extends df.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(zt.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Ht(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let n=Ht(e);if(typeof n!="number")return;let i=this.items[n];return!t&&zt.isScalar(i)?i.value:i}has(e){let t=Ht(e);return typeof t=="number"&&t<this.items.length}set(e,t){let n=Ht(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);let i=this.items[n];zt.isScalar(i)&&hf.isScalarValue(t)?i.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let i=0;for(let r of this.items)n.push(pf.toJS(r,String(i++),t));return n}toString(e,t,n){return e?uf.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let a of t){if(typeof i=="function"){let l=t instanceof Set?a:String(o++);a=i.call(t,l,a)}r.items.push(ff.createNode(a,void 0,n))}}return r}};function Ht(s){let e=zt.isScalar(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}Rr.YAMLSeq=dn});var Oe=b(Ur=>{"use strict";var mf=O(),Yr=re(),gf={collection:"seq",default:!0,nodeClass:Yr.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(s,e){return mf.isSeq(s)||e("Expected a sequence for this tag"),s},createNode:(s,e,t)=>Yr.YAMLSeq.from(s,e,t)};Ur.seq=gf});var tt=b(Jr=>{"use strict";var yf=Qe(),bf={identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify(s,e,t,n){return e=Object.assign({actualString:!0},e),yf.stringifyString(s,e,t,n)}};Jr.string=bf});var Zt=b(Xr=>{"use strict";var Wr=C(),Gr={identify:s=>s==null,createNode:()=>new Wr.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Wr.Scalar(null),stringify:({source:s},e)=>typeof s=="string"&&Gr.test.test(s)?s:e.options.nullStr};Xr.nullTag=Gr});var hn=b(Qr=>{"use strict";var wf=C(),Dr={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new wf.Scalar(s[0]==="t"||s[0]==="T"),stringify({source:s,value:e},t){if(s&&Dr.test.test(s)){let n=s[0]==="t"||s[0]==="T";if(e===n)return s}return e?t.options.trueStr:t.options.falseStr}};Qr.boolTag=Dr});var ke=b(Hr=>{"use strict";function Sf({format:s,minFractionDigits:e,tag:t,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(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let a=e-(r.length-o-1);for(;a-- >0;)r+="0"}return r}Hr.stringifyNumber=Sf});var mn=b(es=>{"use strict";var Nf=C(),pn=ke(),Ef={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:pn.stringifyNumber},vf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():pn.stringifyNumber(s)}},Af={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){let e=new Nf.Scalar(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:pn.stringifyNumber};es.float=Af;es.floatExp=vf;es.floatNaN=Ef});var yn=b(ss=>{"use strict";var zr=ke(),ts=s=>typeof s=="bigint"||Number.isInteger(s),gn=(s,e,t,{intAsBigInt:n})=>n?BigInt(s):parseInt(s.substring(e),t);function Zr(s,e,t){let{value:n}=s;return ts(n)&&n>=0?t+n.toString(e):zr.stringifyNumber(s)}var Tf={identify:s=>ts(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(s,e,t)=>gn(s,2,8,t),stringify:s=>Zr(s,8,"0o")},Of={identify:ts,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(s,e,t)=>gn(s,0,10,t),stringify:zr.stringifyNumber},kf={identify:s=>ts(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(s,e,t)=>gn(s,2,16,t),stringify:s=>Zr(s,16,"0x")};ss.int=Of;ss.intHex=kf;ss.intOct=Tf});var to=b(eo=>{"use strict";var qf=Te(),If=Zt(),Cf=Oe(),Lf=tt(),Pf=hn(),bn=mn(),wn=yn(),Mf=[qf.map,Cf.seq,Lf.string,If.nullTag,Pf.boolTag,wn.intOct,wn.int,wn.intHex,bn.floatNaN,bn.floatExp,bn.float];eo.schema=Mf});var io=b(no=>{"use strict";var $f=C(),_f=Te(),xf=Oe();function so(s){return typeof s=="bigint"||Number.isInteger(s)}var ns=({value:s})=>JSON.stringify(s),Bf=[{identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify:ns},{identify:s=>s==null,createNode:()=>new $f.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ns},{identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:s=>s==="true",stringify:ns},{identify:so,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(s,e,{intAsBigInt:t})=>t?BigInt(s):parseInt(s,10),stringify:({value:s})=>so(s)?s.toString():JSON.stringify(s)},{identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:s=>parseFloat(s),stringify:ns}],Ff={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},jf=[_f.map,xf.seq].concat(Bf,Ff);no.schema=jf});var Nn=b(ro=>{"use strict";var st=wt("buffer"),Sn=C(),Vf=Qe(),Kf={identify:s=>s instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof st.Buffer=="function")return st.Buffer.from(s,"base64");if(typeof atob=="function"){let t=atob(s.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let i=0;i<t.length;++i)n[i]=t.charCodeAt(i);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),s},stringify({comment:s,type:e,value:t},n,i,r){if(!t)return"";let o=t,a;if(typeof st.Buffer=="function")a=o instanceof st.Buffer?o.toString("base64"):st.Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=Sn.Scalar.BLOCK_LITERAL),e!==Sn.Scalar.QUOTE_DOUBLE){let l=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),c=Math.ceil(a.length/l),u=new Array(c);for(let f=0,d=0;f<c;++f,d+=l)u[f]=a.substr(d,l);a=u.join(e===Sn.Scalar.BLOCK_LITERAL?`
55
+ `:" ")}return Vf.stringifyString({comment:s,type:e,value:a},n,i,r)}};ro.binary=Kf});var os=b(rs=>{"use strict";var is=O(),En=se(),Rf=C(),Yf=re();function oo(s,e){if(is.isSeq(s))for(let t=0;t<s.items.length;++t){let n=s.items[t];if(!is.isPair(n)){if(is.isMap(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");let i=n.items[0]||new En.Pair(new Rf.Scalar(null));if(n.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${n.commentBefore}
56
56
  ${i.key.commentBefore}`:n.commentBefore),n.comment){let r=i.value??i.key;r.comment=r.comment?`${n.comment}
57
- ${r.comment}`:n.comment}n=i}s.items[t]=ns.isPair(n)?n:new Nn.Pair(n)}}else e("Expected a sequence for this tag");return s}function oo(s,e,t){let{replacer:n}=t,i=new Rf.YAMLSeq(s);i.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(r++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;i.items.push(Nn.createPair(a,l,t))}return i}var Yf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:ro,createNode:oo};is.createPairs=oo;is.pairs=Yf;is.resolvePairs=ro});var An=b(vn=>{"use strict";var ao=O(),En=H(),st=ne(),Uf=ie(),lo=rs(),de=class s extends Uf.YAMLSeq{constructor(){super(),this.add=st.YAMLMap.prototype.add.bind(this),this.delete=st.YAMLMap.prototype.delete.bind(this),this.get=st.YAMLMap.prototype.get.bind(this),this.has=st.YAMLMap.prototype.has.bind(this),this.set=st.YAMLMap.prototype.set.bind(this),this.tag=s.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let i of this.items){let r,o;if(ao.isPair(i)?(r=En.toJS(i.key,"",t),o=En.toJS(i.value,r,t)):r=En.toJS(i,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}static from(e,t,n){let i=lo.createPairs(e,t,n),r=new this;return r.items=i.items,r}};de.tag="tag:yaml.org,2002:omap";var Jf={collection:"seq",identify:s=>s instanceof Map,nodeClass:de,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){let t=lo.resolvePairs(s,e),n=[];for(let{key:i}of t.items)ao.isScalar(i)&&(n.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):n.push(i.value));return Object.assign(new de,t)},createNode:(s,e,t)=>de.from(s,e,t)};vn.YAMLOMap=de;vn.omap=Jf});var po=b(Tn=>{"use strict";var co=C();function fo({value:s,source:e},t){return e&&(s?uo:ho).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}var uo={identify:s=>s===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new co.Scalar(!0),stringify:fo},ho={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new co.Scalar(!1),stringify:fo};Tn.falseTag=ho;Tn.trueTag=uo});var mo=b(os=>{"use strict";var Wf=C(),On=Oe(),Gf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:On.stringifyNumber},Xf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s.replace(/_/g,"")),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():On.stringifyNumber(s)}},Qf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){let e=new Wf.Scalar(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){let n=s.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:On.stringifyNumber};os.float=Qf;os.floatExp=Xf;os.floatNaN=Gf});var yo=b(it=>{"use strict";var go=Oe(),nt=s=>typeof s=="bigint"||Number.isInteger(s);function as(s,e,t,{intAsBigInt:n}){let i=s[0];if((i==="-"||i==="+")&&(e+=1),s=s.substring(e).replace(/_/g,""),n){switch(t){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}let o=BigInt(s);return i==="-"?BigInt(-1)*o:o}let r=parseInt(s,t);return i==="-"?-1*r:r}function kn(s,e,t){let{value:n}=s;if(nt(n)){let i=n.toString(e);return n<0?"-"+t+i.substr(1):t+i}return go.stringifyNumber(s)}var Df={identify:nt,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>as(s,2,2,t),stringify:s=>kn(s,2,"0b")},Hf={identify:nt,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>as(s,1,8,t),stringify:s=>kn(s,8,"0")},zf={identify:nt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>as(s,0,10,t),stringify:go.stringifyNumber},Zf={identify:nt,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>as(s,2,16,t),stringify:s=>kn(s,16,"0x")};it.int=zf;it.intBin=Df;it.intHex=Zf;it.intOct=Hf});var In=b(qn=>{"use strict";var fs=O(),ls=te(),cs=ne(),he=class s extends cs.YAMLMap{constructor(e){super(e),this.tag=s.tag}add(e){let t;fs.isPair(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new ls.Pair(e.key,null):t=new ls.Pair(e,null),cs.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let n=cs.findPair(this.items,e);return!t&&fs.isPair(n)?fs.isScalar(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=cs.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new ls.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){let{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof i=="function"&&(o=i.call(t,o,o)),r.items.push(ls.createPair(o,null,n));return r}};he.tag="tag:yaml.org,2002:set";var eu={collection:"map",identify:s=>s instanceof Set,nodeClass:he,default:!1,tag:"tag:yaml.org,2002:set",createNode:(s,e,t)=>he.from(s,e,t),resolve(s,e){if(fs.isMap(s)){if(s.hasAllNullValues(!0))return Object.assign(new he,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s}};qn.YAMLSet=he;qn.set=eu});var Ln=b(us=>{"use strict";var tu=Oe();function Cn(s,e){let t=s[0],n=t==="-"||t==="+"?s.substring(1):s,i=o=>e?BigInt(o):Number(o),r=n.replace(/_/g,"").split(":").reduce((o,a)=>o*i(60)+i(a),i(0));return t==="-"?i(-1)*r:r}function bo(s){let{value:e}=s,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return tu.stringifyNumber(s);let n="";e<0&&(n="-",e*=t(-1));let i=t(60),r=[e%i];return e<60?r.unshift(0):(e=(e-r[0])/i,r.unshift(e%i),e>=60&&(e=(e-r[0])/i,r.unshift(e))),n+r.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var su={identify:s=>typeof s=="bigint"||Number.isInteger(s),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(s,e,{intAsBigInt:t})=>Cn(s,t),stringify:bo},nu={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:s=>Cn(s,!1),stringify:bo},wo={identify:s=>s 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(s){let e=s.match(wo.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,n,i,r,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0,c=Date.UTC(t,n-1,i,r||0,o||0,a||0,l),u=e[8];if(u&&u!=="Z"){let f=Cn(u,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:s})=>s?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};us.floatTime=nu;us.intTime=su;us.timestamp=wo});var Eo=b(No=>{"use strict";var iu=Ae(),ru=zt(),ou=Te(),au=et(),lu=Sn(),So=po(),Pn=mo(),ds=yo(),cu=Ut(),fu=An(),uu=rs(),du=In(),Mn=Ln(),hu=[iu.map,ou.seq,au.string,ru.nullTag,So.trueTag,So.falseTag,ds.intBin,ds.intOct,ds.int,ds.intHex,Pn.floatNaN,Pn.floatExp,Pn.float,lu.binary,cu.merge,fu.omap,uu.pairs,du.set,Mn.intTime,Mn.floatTime,Mn.timestamp];No.schema=hu});var Po=b(xn=>{"use strict";var Oo=Ae(),pu=zt(),ko=Te(),mu=et(),gu=dn(),$n=pn(),_n=gn(),yu=eo(),bu=no(),qo=Sn(),rt=Ut(),Io=An(),Co=rs(),vo=Eo(),Lo=In(),hs=Ln(),Ao=new Map([["core",yu.schema],["failsafe",[Oo.map,ko.seq,mu.string]],["json",bu.schema],["yaml11",vo.schema],["yaml-1.1",vo.schema]]),To={binary:qo.binary,bool:gu.boolTag,float:$n.float,floatExp:$n.floatExp,floatNaN:$n.floatNaN,floatTime:hs.floatTime,int:_n.int,intHex:_n.intHex,intOct:_n.intOct,intTime:hs.intTime,map:Oo.map,merge:rt.merge,null:pu.nullTag,omap:Io.omap,pairs:Co.pairs,seq:ko.seq,set:Lo.set,timestamp:hs.timestamp},wu={"tag:yaml.org,2002:binary":qo.binary,"tag:yaml.org,2002:merge":rt.merge,"tag:yaml.org,2002:omap":Io.omap,"tag:yaml.org,2002:pairs":Co.pairs,"tag:yaml.org,2002:set":Lo.set,"tag:yaml.org,2002:timestamp":hs.timestamp};function Su(s,e,t){let n=Ao.get(e);if(n&&!s)return t&&!n.includes(rt.merge)?n.concat(rt.merge):n.slice();let i=n;if(!i)if(Array.isArray(s))i=[];else{let r=Array.from(Ao.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(s))for(let r of s)i=i.concat(r);else typeof s=="function"&&(i=s(i.slice()));return t&&(i=i.concat(rt.merge)),i.reduce((r,o)=>{let a=typeof o=="string"?To[o]:o;if(!a){let l=JSON.stringify(o),c=Object.keys(To).map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown custom tag ${l}; use one of ${c}`)}return r.includes(a)||r.push(a),r},[])}xn.coreKnownTags=wu;xn.getTags=Su});var jn=b(Mo=>{"use strict";var Bn=O(),Nu=Ae(),Eu=Te(),vu=et(),ps=Po(),Au=(s,e)=>s.key<e.key?-1:s.key>e.key?1:0,Fn=class s{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?ps.getTags(e,"compat"):e?ps.getTags(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=i?ps.coreKnownTags:{},this.tags=ps.getTags(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,Bn.MAP,{value:Nu.map}),Object.defineProperty(this,Bn.SCALAR,{value:vu.string}),Object.defineProperty(this,Bn.SEQ,{value:Eu.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?Au:null}clone(){let e=Object.create(s.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};Mo.Schema=Fn});var _o=b($o=>{"use strict";var Tu=O(),Vn=De(),ot=We();function Ou(s,e){let t=[],n=e.directives===!0;if(e.directives!==!1&&s.directives){let l=s.directives.toString(s);l?(t.push(l),n=!0):s.directives.docStart&&(n=!0)}n&&t.push("---");let i=Vn.createStringifyContext(s,e),{commentString:r}=i.options;if(s.commentBefore){t.length!==1&&t.unshift("");let l=r(s.commentBefore);t.unshift(ot.indentComment(l,""))}let o=!1,a=null;if(s.contents){if(Tu.isNode(s.contents)){if(s.contents.spaceBefore&&n&&t.push(""),s.contents.commentBefore){let u=r(s.contents.commentBefore);t.push(ot.indentComment(u,""))}i.forceBlockIndent=!!s.comment,a=s.contents.comment}let l=a?void 0:()=>o=!0,c=Vn.stringify(s.contents,i,()=>a=null,l);a&&(c+=ot.lineComment(c,"",r(a))),(c[0]==="|"||c[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${c}`:t.push(c)}else t.push(Vn.stringify(s.contents,i));if(s.directives?.docEnd)if(s.comment){let l=r(s.comment);l.includes(`
58
- `)?(t.push("..."),t.push(ot.indentComment(l,""))):t.push(`... ${l}`)}else t.push("...");else{let l=s.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||a)&&t[t.length-1]!==""&&t.push(""),t.push(ot.indentComment(r(l),"")))}return t.join(`
57
+ ${r.comment}`:n.comment}n=i}s.items[t]=is.isPair(n)?n:new En.Pair(n)}}else e("Expected a sequence for this tag");return s}function ao(s,e,t){let{replacer:n}=t,i=new Yf.YAMLSeq(s);i.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(r++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;i.items.push(En.createPair(a,l,t))}return i}var Uf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:oo,createNode:ao};rs.createPairs=ao;rs.pairs=Uf;rs.resolvePairs=oo});var Tn=b(An=>{"use strict";var lo=O(),vn=z(),nt=ie(),Jf=re(),co=os(),he=class s extends Jf.YAMLSeq{constructor(){super(),this.add=nt.YAMLMap.prototype.add.bind(this),this.delete=nt.YAMLMap.prototype.delete.bind(this),this.get=nt.YAMLMap.prototype.get.bind(this),this.has=nt.YAMLMap.prototype.has.bind(this),this.set=nt.YAMLMap.prototype.set.bind(this),this.tag=s.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let i of this.items){let r,o;if(lo.isPair(i)?(r=vn.toJS(i.key,"",t),o=vn.toJS(i.value,r,t)):r=vn.toJS(i,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}static from(e,t,n){let i=co.createPairs(e,t,n),r=new this;return r.items=i.items,r}};he.tag="tag:yaml.org,2002:omap";var Wf={collection:"seq",identify:s=>s instanceof Map,nodeClass:he,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){let t=co.resolvePairs(s,e),n=[];for(let{key:i}of t.items)lo.isScalar(i)&&(n.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):n.push(i.value));return Object.assign(new he,t)},createNode:(s,e,t)=>he.from(s,e,t)};An.YAMLOMap=he;An.omap=Wf});var mo=b(On=>{"use strict";var fo=C();function uo({value:s,source:e},t){return e&&(s?ho:po).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}var ho={identify:s=>s===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new fo.Scalar(!0),stringify:uo},po={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new fo.Scalar(!1),stringify:uo};On.falseTag=po;On.trueTag=ho});var go=b(as=>{"use strict";var Gf=C(),kn=ke(),Xf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:kn.stringifyNumber},Df={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s.replace(/_/g,"")),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():kn.stringifyNumber(s)}},Qf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){let e=new Gf.Scalar(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){let n=s.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:kn.stringifyNumber};as.float=Qf;as.floatExp=Df;as.floatNaN=Xf});var bo=b(rt=>{"use strict";var yo=ke(),it=s=>typeof s=="bigint"||Number.isInteger(s);function ls(s,e,t,{intAsBigInt:n}){let i=s[0];if((i==="-"||i==="+")&&(e+=1),s=s.substring(e).replace(/_/g,""),n){switch(t){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}let o=BigInt(s);return i==="-"?BigInt(-1)*o:o}let r=parseInt(s,t);return i==="-"?-1*r:r}function qn(s,e,t){let{value:n}=s;if(it(n)){let i=n.toString(e);return n<0?"-"+t+i.substr(1):t+i}return yo.stringifyNumber(s)}var Hf={identify:it,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>ls(s,2,2,t),stringify:s=>qn(s,2,"0b")},zf={identify:it,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>ls(s,1,8,t),stringify:s=>qn(s,8,"0")},Zf={identify:it,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>ls(s,0,10,t),stringify:yo.stringifyNumber},eu={identify:it,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>ls(s,2,16,t),stringify:s=>qn(s,16,"0x")};rt.int=Zf;rt.intBin=Hf;rt.intHex=eu;rt.intOct=zf});var Cn=b(In=>{"use strict";var us=O(),cs=se(),fs=ie(),pe=class s extends fs.YAMLMap{constructor(e){super(e),this.tag=s.tag}add(e){let t;us.isPair(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new cs.Pair(e.key,null):t=new cs.Pair(e,null),fs.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let n=fs.findPair(this.items,e);return!t&&us.isPair(n)?us.isScalar(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=fs.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new cs.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){let{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof i=="function"&&(o=i.call(t,o,o)),r.items.push(cs.createPair(o,null,n));return r}};pe.tag="tag:yaml.org,2002:set";var tu={collection:"map",identify:s=>s instanceof Set,nodeClass:pe,default:!1,tag:"tag:yaml.org,2002:set",createNode:(s,e,t)=>pe.from(s,e,t),resolve(s,e){if(us.isMap(s)){if(s.hasAllNullValues(!0))return Object.assign(new pe,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s}};In.YAMLSet=pe;In.set=tu});var Pn=b(ds=>{"use strict";var su=ke();function Ln(s,e){let t=s[0],n=t==="-"||t==="+"?s.substring(1):s,i=o=>e?BigInt(o):Number(o),r=n.replace(/_/g,"").split(":").reduce((o,a)=>o*i(60)+i(a),i(0));return t==="-"?i(-1)*r:r}function wo(s){let{value:e}=s,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return su.stringifyNumber(s);let n="";e<0&&(n="-",e*=t(-1));let i=t(60),r=[e%i];return e<60?r.unshift(0):(e=(e-r[0])/i,r.unshift(e%i),e>=60&&(e=(e-r[0])/i,r.unshift(e))),n+r.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var nu={identify:s=>typeof s=="bigint"||Number.isInteger(s),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(s,e,{intAsBigInt:t})=>Ln(s,t),stringify:wo},iu={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:s=>Ln(s,!1),stringify:wo},So={identify:s=>s 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(s){let e=s.match(So.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,n,i,r,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0,c=Date.UTC(t,n-1,i,r||0,o||0,a||0,l),u=e[8];if(u&&u!=="Z"){let f=Ln(u,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:s})=>s?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};ds.floatTime=iu;ds.intTime=nu;ds.timestamp=So});var vo=b(Eo=>{"use strict";var ru=Te(),ou=Zt(),au=Oe(),lu=tt(),cu=Nn(),No=mo(),Mn=go(),hs=bo(),fu=Jt(),uu=Tn(),du=os(),hu=Cn(),$n=Pn(),pu=[ru.map,au.seq,lu.string,ou.nullTag,No.trueTag,No.falseTag,hs.intBin,hs.intOct,hs.int,hs.intHex,Mn.floatNaN,Mn.floatExp,Mn.float,cu.binary,fu.merge,uu.omap,du.pairs,hu.set,$n.intTime,$n.floatTime,$n.timestamp];Eo.schema=pu});var Mo=b(Bn=>{"use strict";var ko=Te(),mu=Zt(),qo=Oe(),gu=tt(),yu=hn(),_n=mn(),xn=yn(),bu=to(),wu=io(),Io=Nn(),ot=Jt(),Co=Tn(),Lo=os(),Ao=vo(),Po=Cn(),ps=Pn(),To=new Map([["core",bu.schema],["failsafe",[ko.map,qo.seq,gu.string]],["json",wu.schema],["yaml11",Ao.schema],["yaml-1.1",Ao.schema]]),Oo={binary:Io.binary,bool:yu.boolTag,float:_n.float,floatExp:_n.floatExp,floatNaN:_n.floatNaN,floatTime:ps.floatTime,int:xn.int,intHex:xn.intHex,intOct:xn.intOct,intTime:ps.intTime,map:ko.map,merge:ot.merge,null:mu.nullTag,omap:Co.omap,pairs:Lo.pairs,seq:qo.seq,set:Po.set,timestamp:ps.timestamp},Su={"tag:yaml.org,2002:binary":Io.binary,"tag:yaml.org,2002:merge":ot.merge,"tag:yaml.org,2002:omap":Co.omap,"tag:yaml.org,2002:pairs":Lo.pairs,"tag:yaml.org,2002:set":Po.set,"tag:yaml.org,2002:timestamp":ps.timestamp};function Nu(s,e,t){let n=To.get(e);if(n&&!s)return t&&!n.includes(ot.merge)?n.concat(ot.merge):n.slice();let i=n;if(!i)if(Array.isArray(s))i=[];else{let r=Array.from(To.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(s))for(let r of s)i=i.concat(r);else typeof s=="function"&&(i=s(i.slice()));return t&&(i=i.concat(ot.merge)),i.reduce((r,o)=>{let a=typeof o=="string"?Oo[o]:o;if(!a){let l=JSON.stringify(o),c=Object.keys(Oo).map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown custom tag ${l}; use one of ${c}`)}return r.includes(a)||r.push(a),r},[])}Bn.coreKnownTags=Su;Bn.getTags=Nu});var Vn=b($o=>{"use strict";var Fn=O(),Eu=Te(),vu=Oe(),Au=tt(),ms=Mo(),Tu=(s,e)=>s.key<e.key?-1:s.key>e.key?1:0,jn=class s{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?ms.getTags(e,"compat"):e?ms.getTags(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=i?ms.coreKnownTags:{},this.tags=ms.getTags(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,Fn.MAP,{value:Eu.map}),Object.defineProperty(this,Fn.SCALAR,{value:Au.string}),Object.defineProperty(this,Fn.SEQ,{value:vu.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?Tu:null}clone(){let e=Object.create(s.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};$o.Schema=jn});var xo=b(_o=>{"use strict";var Ou=O(),Kn=He(),at=Ge();function ku(s,e){let t=[],n=e.directives===!0;if(e.directives!==!1&&s.directives){let l=s.directives.toString(s);l?(t.push(l),n=!0):s.directives.docStart&&(n=!0)}n&&t.push("---");let i=Kn.createStringifyContext(s,e),{commentString:r}=i.options;if(s.commentBefore){t.length!==1&&t.unshift("");let l=r(s.commentBefore);t.unshift(at.indentComment(l,""))}let o=!1,a=null;if(s.contents){if(Ou.isNode(s.contents)){if(s.contents.spaceBefore&&n&&t.push(""),s.contents.commentBefore){let u=r(s.contents.commentBefore);t.push(at.indentComment(u,""))}i.forceBlockIndent=!!s.comment,a=s.contents.comment}let l=a?void 0:()=>o=!0,c=Kn.stringify(s.contents,i,()=>a=null,l);a&&(c+=at.lineComment(c,"",r(a))),(c[0]==="|"||c[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${c}`:t.push(c)}else t.push(Kn.stringify(s.contents,i));if(s.directives?.docEnd)if(s.comment){let l=r(s.comment);l.includes(`
58
+ `)?(t.push("..."),t.push(at.indentComment(l,""))):t.push(`... ${l}`)}else t.push("...");else{let l=s.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||a)&&t[t.length-1]!==""&&t.push(""),t.push(at.indentComment(r(l),"")))}return t.join(`
59
59
  `)+`
60
- `}$o.stringifyDocument=Ou});var at=b(xo=>{"use strict";var ku=Ue(),ke=_t(),K=O(),qu=te(),Iu=H(),Cu=jn(),Lu=_o(),Kn=Lt(),Pu=Us(),Mu=Je(),Rn=Ys(),Yn=class s{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,K.NODE_TYPE,{value:K.DOC});let i=null;typeof t=="function"||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:o}=r;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Rn.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let e=Object.create(s.prototype,{[K.NODE_TYPE]:{value:K.DOC}});return 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()),e.schema=this.schema.clone(),e.contents=K.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){qe(this.contents)&&this.contents.add(e)}addIn(e,t){qe(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=Kn.anchorNames(this);e.anchor=!t||n.has(t)?Kn.findNewAnchor(t||"a",n):t}return new ku.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t=="function")e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){let m=y=>typeof y=="number"||y instanceof String||y instanceof Number,w=t.filter(m).map(String);w.length>0&&(t=t.concat(w)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:u}=n??{},{onAnchor:f,setAnchors:d,sourceObjects:p}=Kn.createNodeAnchors(this,o||"a"),g={aliasDuplicateObjects:r??!0,keepUndefined:l??!1,onAnchor:f,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:p},h=Mu.createNode(e,u,g);return a&&K.isCollection(h)&&(h.flow=!0),d(),h}createPair(e,t,n={}){let i=this.createNode(e,null,n),r=this.createNode(t,null,n);return new qu.Pair(i,r)}delete(e){return qe(this.contents)?this.contents.delete(e):!1}deleteIn(e){return ke.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):qe(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return K.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return ke.isEmptyPath(e)?!t&&K.isScalar(this.contents)?this.contents.value:this.contents:K.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return K.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return ke.isEmptyPath(e)?this.contents!==void 0:K.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=ke.collectionFromPath(this.schema,[e],t):qe(this.contents)&&this.contents.set(e,t)}setIn(e,t){ke.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=ke.collectionFromPath(this.schema,Array.from(e),t):qe(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Rn.Directives({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Rn.Directives({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Cu.Schema(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Iu.toJS(this.contents,t??"",a);if(typeof r=="function")for(let{count:c,res:u}of a.anchors.values())r(u,c);return typeof o=="function"?Pu.applyReviver(o,{"":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 new 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 new Error(`"indent" option must be a positive integer, not ${t}`)}return Lu.stringifyDocument(this,e)}};function qe(s){if(K.isCollection(s))return!0;throw new Error("Expected a YAML collection as document contents")}xo.Document=Yn});var ft=b(ct=>{"use strict";var lt=class extends Error{constructor(e,t,n,i){super(),this.name=e,this.code=n,this.message=i,this.pos=t}},Un=class extends lt{constructor(e,t,n){super("YAMLParseError",e,t,n)}},Jn=class extends lt{constructor(e,t,n){super("YAMLWarning",e,t,n)}},$u=(s,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(a=>e.linePos(a));let{line:n,col:i}=t.linePos[0];t.message+=` at line ${n}, column ${i}`;let r=i-1,o=s.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){let a=Math.min(r-39,o.length-79);o="\u2026"+o.substring(a),r-=a-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),n>1&&/^ *$/.test(o.substring(0,r))){let a=s.substring(e.lineStarts[n-2],e.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
60
+ `}_o.stringifyDocument=ku});var lt=b(Bo=>{"use strict";var qu=Je(),qe=xt(),K=O(),Iu=se(),Cu=z(),Lu=Vn(),Pu=xo(),Rn=Pt(),Mu=Js(),$u=We(),Yn=Us(),Un=class s{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,K.NODE_TYPE,{value:K.DOC});let i=null;typeof t=="function"||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:o}=r;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Yn.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let e=Object.create(s.prototype,{[K.NODE_TYPE]:{value:K.DOC}});return 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()),e.schema=this.schema.clone(),e.contents=K.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Ie(this.contents)&&this.contents.add(e)}addIn(e,t){Ie(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=Rn.anchorNames(this);e.anchor=!t||n.has(t)?Rn.findNewAnchor(t||"a",n):t}return new qu.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t=="function")e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){let m=y=>typeof y=="number"||y instanceof String||y instanceof Number,w=t.filter(m).map(String);w.length>0&&(t=t.concat(w)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:u}=n??{},{onAnchor:f,setAnchors:d,sourceObjects:p}=Rn.createNodeAnchors(this,o||"a"),g={aliasDuplicateObjects:r??!0,keepUndefined:l??!1,onAnchor:f,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:p},h=$u.createNode(e,u,g);return a&&K.isCollection(h)&&(h.flow=!0),d(),h}createPair(e,t,n={}){let i=this.createNode(e,null,n),r=this.createNode(t,null,n);return new Iu.Pair(i,r)}delete(e){return Ie(this.contents)?this.contents.delete(e):!1}deleteIn(e){return qe.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):Ie(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return K.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return qe.isEmptyPath(e)?!t&&K.isScalar(this.contents)?this.contents.value:this.contents:K.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return K.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return qe.isEmptyPath(e)?this.contents!==void 0:K.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=qe.collectionFromPath(this.schema,[e],t):Ie(this.contents)&&this.contents.set(e,t)}setIn(e,t){qe.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=qe.collectionFromPath(this.schema,Array.from(e),t):Ie(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Yn.Directives({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Yn.Directives({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Lu.Schema(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Cu.toJS(this.contents,t??"",a);if(typeof r=="function")for(let{count:c,res:u}of a.anchors.values())r(u,c);return typeof o=="function"?Mu.applyReviver(o,{"":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 new 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 new Error(`"indent" option must be a positive integer, not ${t}`)}return Pu.stringifyDocument(this,e)}};function Ie(s){if(K.isCollection(s))return!0;throw new Error("Expected a YAML collection as document contents")}Bo.Document=Un});var ut=b(ft=>{"use strict";var ct=class extends Error{constructor(e,t,n,i){super(),this.name=e,this.code=n,this.message=i,this.pos=t}},Jn=class extends ct{constructor(e,t,n){super("YAMLParseError",e,t,n)}},Wn=class extends ct{constructor(e,t,n){super("YAMLWarning",e,t,n)}},_u=(s,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(a=>e.linePos(a));let{line:n,col:i}=t.linePos[0];t.message+=` at line ${n}, column ${i}`;let r=i-1,o=s.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){let a=Math.min(r-39,o.length-79);o="\u2026"+o.substring(a),r-=a-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),n>1&&/^ *$/.test(o.substring(0,r))){let a=s.substring(e.lineStarts[n-2],e.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
61
61
  `),o=a+o}if(/[^ ]/.test(o)){let a=1,l=t.linePos[1];l?.line===n&&l.col>i&&(a=Math.max(1,Math.min(l.col-i,80-r)));let c=" ".repeat(r)+"^".repeat(a);t.message+=`:
62
62
 
63
63
  ${o}
64
64
  ${c}
65
- `}};ct.YAMLError=lt;ct.YAMLParseError=Un;ct.YAMLWarning=Jn;ct.prettifyError=$u});var ut=b(Bo=>{"use strict";function _u(s,{flow:e,indicator:t,next:n,offset:i,onError:r,parentIndent:o,startOnNewline:a}){let l=!1,c=a,u=a,f="",d="",p=!1,g=!1,h=null,m=null,w=null,y=null,N=null,E=null,v=null;for(let S of s)switch(g&&(S.type!=="space"&&S.type!=="newline"&&S.type!=="comma"&&r(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),h&&(c&&S.type!=="comment"&&S.type!=="newline"&&r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),h=null),S.type){case"space":!e&&(t!=="doc-start"||n?.type!=="flow-collection")&&S.source.includes(" ")&&(h=S),u=!0;break;case"comment":{u||r(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let L=S.source.substring(1)||" ";f?f+=d+L:f=L,d="",c=!1;break}case"newline":c?f?f+=S.source:(!E||t!=="seq-item-ind")&&(l=!0):d+=S.source,c=!0,p=!0,(m||w)&&(y=S),u=!0;break;case"anchor":m&&r(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&r(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=S,v??(v=S.offset),c=!1,u=!1,g=!0;break;case"tag":{w&&r(S,"MULTIPLE_TAGS","A node can have at most one tag"),w=S,v??(v=S.offset),c=!1,u=!1,g=!0;break}case t:(m||w)&&r(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`),E&&r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${e??"collection"}`),E=S,c=t==="seq-item-ind"||t==="explicit-key-ind",u=!1;break;case"comma":if(e){N&&r(S,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),N=S,c=!1,u=!1;break}default:r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),c=!1,u=!1}let A=s[s.length-1],q=A?A.offset+A.source.length:i;return 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"),h&&(c&&h.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:N,found:E,spaceBefore:l,comment:f,hasNewline:p,anchor:m,tag:w,newlineAfterProp:y,end:q,start:v??q}}Bo.resolveProps=_u});var ms=b(Fo=>{"use strict";function Wn(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(`
66
- `))return!0;if(s.end){for(let e of s.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of s.items){for(let t of e.start)if(t.type==="newline")return!0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return!0}if(Wn(e.key)||Wn(e.value))return!0}return!1;default:return!0}}Fo.containsNewline=Wn});var Gn=b(jo=>{"use strict";var xu=ms();function Bu(s,e,t){if(e?.type==="flow-collection"){let n=e.end[0];n.indent===s&&(n.source==="]"||n.source==="}")&&xu.containsNewline(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}jo.flowIndentCheck=Bu});var Xn=b(Ko=>{"use strict";var Vo=O();function Fu(s,e,t){let{uniqueKeys:n}=s.options;if(n===!1)return!1;let i=typeof n=="function"?n:(r,o)=>r===o||Vo.isScalar(r)&&Vo.isScalar(o)&&r.value===o.value;return e.some(r=>i(r.key,t))}Ko.mapIncludes=Fu});var Go=b(Wo=>{"use strict";var Ro=te(),ju=ne(),Yo=ut(),Vu=ms(),Uo=Gn(),Ku=Xn(),Jo="All mapping items must start at the same column";function Ru({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=r?.nodeClass??ju.YAMLMap,a=new o(t.schema);t.atRoot&&(t.atRoot=!1);let l=n.offset,c=null;for(let u of n.items){let{start:f,key:d,sep:p,value:g}=u,h=Yo.resolveProps(f,{indicator:"explicit-key-ind",next:d??p?.[0],offset:l,onError:i,parentIndent:n.indent,startOnNewline:!0}),m=!h.found;if(m){if(d&&(d.type==="block-seq"?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==n.indent&&i(l,"BAD_INDENT",Jo)),!h.anchor&&!h.tag&&!p){c=h.end,h.comment&&(a.comment?a.comment+=`
67
- `+h.comment:a.comment=h.comment);continue}(h.newlineAfterProp||Vu.containsNewline(d))&&i(d??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==n.indent&&i(l,"BAD_INDENT",Jo);t.atKey=!0;let w=h.end,y=d?s(t,d,h,i):e(t,w,f,null,h,i);t.schema.compat&&Uo.flowIndentCheck(n.indent,d,i),t.atKey=!1,Ku.mapIncludes(t,a.items,y)&&i(w,"DUPLICATE_KEY","Map keys must be unique");let N=Yo.resolveProps(p??[],{indicator:"map-value-ind",next:g,offset:y.range[2],onError:i,parentIndent:n.indent,startOnNewline:!d||d.type==="block-scalar"});if(l=N.end,N.found){m&&(g?.type==="block-map"&&!N.hasNewline&&i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&h.start<N.found.offset-1024&&i(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let E=g?s(t,g,N,i):e(t,l,p,null,N,i);t.schema.compat&&Uo.flowIndentCheck(n.indent,g,i),l=E.range[2];let v=new Ro.Pair(y,E);t.options.keepSourceTokens&&(v.srcToken=u),a.items.push(v)}else{m&&i(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),N.comment&&(y.comment?y.comment+=`
68
- `+N.comment:y.comment=N.comment);let E=new Ro.Pair(y);t.options.keepSourceTokens&&(E.srcToken=u),a.items.push(E)}}return c&&c<l&&i(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,l,c??l],a}Wo.resolveBlockMap=Ru});var Qo=b(Xo=>{"use strict";var Yu=ie(),Uu=ut(),Ju=Gn();function Wu({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=r?.nodeClass??Yu.YAMLSeq,a=new o(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let l=n.offset,c=null;for(let{start:u,value:f}of n.items){let d=Uu.resolveProps(u,{indicator:"seq-item-ind",next:f,offset:l,onError:i,parentIndent:n.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||f)f?.type==="block-seq"?i(d.end,"BAD_INDENT","All sequence items must start at the same column"):i(l,"MISSING_CHAR","Sequence item without - indicator");else{c=d.end,d.comment&&(a.comment=d.comment);continue}let p=f?s(t,f,d,i):e(t,d.end,u,null,d,i);t.schema.compat&&Ju.flowIndentCheck(n.indent,f,i),l=p.range[2],a.items.push(p)}return a.range=[n.offset,l,c??l],a}Xo.resolveBlockSeq=Wu});var Ie=b(Do=>{"use strict";function Gu(s,e,t,n){let i="";if(s){let r=!1,o="";for(let a of s){let{source:l,type:c}=a;switch(c){case"space":r=!0;break;case"comment":{t&&!r&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let u=l.substring(1)||" ";i?i+=o+u:i=u,o="";break}case"newline":i&&(o+=l),r=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=l.length}}return{comment:i,offset:e}}Do.resolveEnd=Gu});var ea=b(Zo=>{"use strict";var Xu=O(),Qu=te(),Ho=ne(),Du=ie(),Hu=Ie(),zo=ut(),zu=ms(),Zu=Xn(),Qn="Block collections are not allowed within flow collections",Dn=s=>s&&(s.type==="block-map"||s.type==="block-seq");function ed({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=n.start.source==="{",a=o?"flow map":"flow sequence",l=r?.nodeClass??(o?Ho.YAMLMap:Du.YAMLSeq),c=new l(t.schema);c.flow=!0;let u=t.atRoot;u&&(t.atRoot=!1),t.atKey&&(t.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:y,key:N,sep:E,value:v}=w,A=zo.resolveProps(y,{flow:a,indicator:"explicit-key-ind",next:N??E?.[0],offset:f,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!A.found){if(!A.anchor&&!A.tag&&!E&&!v){m===0&&A.comma?i(A.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):m<n.items.length-1&&i(A.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),A.comment&&(c.comment?c.comment+=`
69
- `+A.comment:c.comment=A.comment),f=A.end;continue}!o&&t.options.strict&&zu.containsNewline(N)&&i(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0)A.comma&&i(A.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(A.comma||i(A.start,"MISSING_CHAR",`Missing , between ${a} items`),A.comment){let q="";e:for(let S of y)switch(S.type){case"comma":case"space":break;case"comment":q=S.source.substring(1);break e;default:break e}if(q){let S=c.items[c.items.length-1];Xu.isPair(S)&&(S=S.value??S.key),S.comment?S.comment+=`
70
- `+q:S.comment=q,A.comment=A.comment.substring(q.length+1)}}if(!o&&!E&&!A.found){let q=v?s(t,v,A,i):e(t,A.end,E,null,A,i);c.items.push(q),f=q.range[2],Dn(v)&&i(q.range,"BLOCK_IN_FLOW",Qn)}else{t.atKey=!0;let q=A.end,S=N?s(t,N,A,i):e(t,q,y,null,A,i);Dn(N)&&i(S.range,"BLOCK_IN_FLOW",Qn),t.atKey=!1;let L=zo.resolveProps(E??[],{flow:a,indicator:"map-value-ind",next:v,offset:S.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(L.found){if(!o&&!A.found&&t.options.strict){if(E)for(let P of E){if(P===L.found)break;if(P.type==="newline"){i(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}A.start<L.found.offset-1024&&i(L.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else v&&("source"in v&&v.source?.[0]===":"?i(v,"MISSING_CHAR",`Missing space after : in ${a}`):i(L.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let D=v?s(t,v,L,i):L.found?e(t,L.end,E,null,L,i):null;D?Dn(v)&&i(D.range,"BLOCK_IN_FLOW",Qn):L.comment&&(S.comment?S.comment+=`
71
- `+L.comment:S.comment=L.comment);let ge=new Qu.Pair(S,D);if(t.options.keepSourceTokens&&(ge.srcToken=w),o){let P=c;Zu.mapIncludes(t,P.items,S)&&i(q,"DUPLICATE_KEY","Map keys must be unique"),P.items.push(ge)}else{let P=new Ho.YAMLMap(t.schema);P.flow=!0,P.items.push(ge);let Ti=(D??S).range;P.range=[S.range[0],Ti[1],Ti[2]],c.items.push(P)}f=D?D.range[2]:L.end}}let d=o?"}":"]",[p,...g]=n.end,h=f;if(p?.source===d)h=p.offset+p.source.length;else{let m=a[0].toUpperCase()+a.substring(1),w=u?`${m} must end with a ${d}`:`${m} in block collection must be sufficiently indented and end with a ${d}`;i(f,u?"MISSING_CHAR":"BAD_INDENT",w),p&&p.source.length!==1&&g.unshift(p)}if(g.length>0){let m=Hu.resolveEnd(g,h,t.options.strict,i);m.comment&&(c.comment?c.comment+=`
72
- `+m.comment:c.comment=m.comment),c.range=[n.offset,h,m.offset]}else c.range=[n.offset,h,h];return c}Zo.resolveFlowCollection=ed});var sa=b(ta=>{"use strict";var td=O(),sd=C(),nd=ne(),id=ie(),rd=Go(),od=Qo(),ad=ea();function Hn(s,e,t,n,i,r){let o=t.type==="block-map"?rd.resolveBlockMap(s,e,t,n,r):t.type==="block-seq"?od.resolveBlockSeq(s,e,t,n,r):ad.resolveFlowCollection(s,e,t,n,r),a=o.constructor;return i==="!"||i===a.tagName?(o.tag=a.tagName,o):(i&&(o.tag=i),o)}function ld(s,e,t,n,i){let r=n.tag,o=r?e.directives.tagName(r.source,d=>i(r,"TAG_RESOLVE_FAILED",d)):null;if(t.type==="block-seq"){let{anchor:d,newlineAfterProp:p}=n,g=d&&r?d.offset>r.offset?d:r:d??r;g&&(!p||p.offset<g.offset)&&i(g,"MISSING_CHAR","Missing newline after block sequence props")}let a=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!r||!o||o==="!"||o===nd.YAMLMap.tagName&&a==="map"||o===id.YAMLSeq.tagName&&a==="seq")return Hn(s,e,t,i,o);let l=e.schema.tags.find(d=>d.tag===o&&d.collection===a);if(!l){let d=e.schema.knownTags[o];if(d?.collection===a)e.schema.tags.push(Object.assign({},d,{default:!1})),l=d;else return d?i(r,"BAD_COLLECTION_TYPE",`${d.tag} used for ${a} collection, but expects ${d.collection??"scalar"}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Hn(s,e,t,i,o)}let c=Hn(s,e,t,i,o,l),u=l.resolve?.(c,d=>i(r,"TAG_RESOLVE_FAILED",d),e.options)??c,f=td.isNode(u)?u:new sd.Scalar(u);return f.range=c.range,f.tag=o,l?.format&&(f.format=l.format),f}ta.composeCollection=ld});var Zn=b(na=>{"use strict";var zn=C();function cd(s,e,t){let n=e.offset,i=fd(e,s.options.strict,t);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};let r=i.mode===">"?zn.Scalar.BLOCK_FOLDED:zn.Scalar.BLOCK_LITERAL,o=e.source?ud(e.source):[],a=o.length;for(let h=o.length-1;h>=0;--h){let m=o[h][1];if(m===""||m==="\r")a=h;else break}if(a===0){let h=i.chomp==="+"&&o.length>0?`
65
+ `}};ft.YAMLError=ct;ft.YAMLParseError=Jn;ft.YAMLWarning=Wn;ft.prettifyError=_u});var dt=b(Fo=>{"use strict";function xu(s,{flow:e,indicator:t,next:n,offset:i,onError:r,parentIndent:o,startOnNewline:a}){let l=!1,c=a,u=a,f="",d="",p=!1,g=!1,h=null,m=null,w=null,y=null,N=null,E=null,v=null;for(let S of s)switch(g&&(S.type!=="space"&&S.type!=="newline"&&S.type!=="comma"&&r(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),h&&(c&&S.type!=="comment"&&S.type!=="newline"&&r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),h=null),S.type){case"space":!e&&(t!=="doc-start"||n?.type!=="flow-collection")&&S.source.includes(" ")&&(h=S),u=!0;break;case"comment":{u||r(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let L=S.source.substring(1)||" ";f?f+=d+L:f=L,d="",c=!1;break}case"newline":c?f?f+=S.source:(!E||t!=="seq-item-ind")&&(l=!0):d+=S.source,c=!0,p=!0,(m||w)&&(y=S),u=!0;break;case"anchor":m&&r(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&r(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=S,v??(v=S.offset),c=!1,u=!1,g=!0;break;case"tag":{w&&r(S,"MULTIPLE_TAGS","A node can have at most one tag"),w=S,v??(v=S.offset),c=!1,u=!1,g=!0;break}case t:(m||w)&&r(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`),E&&r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${e??"collection"}`),E=S,c=t==="seq-item-ind"||t==="explicit-key-ind",u=!1;break;case"comma":if(e){N&&r(S,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),N=S,c=!1,u=!1;break}default:r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),c=!1,u=!1}let A=s[s.length-1],q=A?A.offset+A.source.length:i;return 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"),h&&(c&&h.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:N,found:E,spaceBefore:l,comment:f,hasNewline:p,anchor:m,tag:w,newlineAfterProp:y,end:q,start:v??q}}Fo.resolveProps=xu});var gs=b(jo=>{"use strict";function Gn(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(`
66
+ `))return!0;if(s.end){for(let e of s.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of s.items){for(let t of e.start)if(t.type==="newline")return!0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return!0}if(Gn(e.key)||Gn(e.value))return!0}return!1;default:return!0}}jo.containsNewline=Gn});var Xn=b(Vo=>{"use strict";var Bu=gs();function Fu(s,e,t){if(e?.type==="flow-collection"){let n=e.end[0];n.indent===s&&(n.source==="]"||n.source==="}")&&Bu.containsNewline(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}Vo.flowIndentCheck=Fu});var Dn=b(Ro=>{"use strict";var Ko=O();function ju(s,e,t){let{uniqueKeys:n}=s.options;if(n===!1)return!1;let i=typeof n=="function"?n:(r,o)=>r===o||Ko.isScalar(r)&&Ko.isScalar(o)&&r.value===o.value;return e.some(r=>i(r.key,t))}Ro.mapIncludes=ju});var Xo=b(Go=>{"use strict";var Yo=se(),Vu=ie(),Uo=dt(),Ku=gs(),Jo=Xn(),Ru=Dn(),Wo="All mapping items must start at the same column";function Yu({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=r?.nodeClass??Vu.YAMLMap,a=new o(t.schema);t.atRoot&&(t.atRoot=!1);let l=n.offset,c=null;for(let u of n.items){let{start:f,key:d,sep:p,value:g}=u,h=Uo.resolveProps(f,{indicator:"explicit-key-ind",next:d??p?.[0],offset:l,onError:i,parentIndent:n.indent,startOnNewline:!0}),m=!h.found;if(m){if(d&&(d.type==="block-seq"?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==n.indent&&i(l,"BAD_INDENT",Wo)),!h.anchor&&!h.tag&&!p){c=h.end,h.comment&&(a.comment?a.comment+=`
67
+ `+h.comment:a.comment=h.comment);continue}(h.newlineAfterProp||Ku.containsNewline(d))&&i(d??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==n.indent&&i(l,"BAD_INDENT",Wo);t.atKey=!0;let w=h.end,y=d?s(t,d,h,i):e(t,w,f,null,h,i);t.schema.compat&&Jo.flowIndentCheck(n.indent,d,i),t.atKey=!1,Ru.mapIncludes(t,a.items,y)&&i(w,"DUPLICATE_KEY","Map keys must be unique");let N=Uo.resolveProps(p??[],{indicator:"map-value-ind",next:g,offset:y.range[2],onError:i,parentIndent:n.indent,startOnNewline:!d||d.type==="block-scalar"});if(l=N.end,N.found){m&&(g?.type==="block-map"&&!N.hasNewline&&i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&h.start<N.found.offset-1024&&i(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let E=g?s(t,g,N,i):e(t,l,p,null,N,i);t.schema.compat&&Jo.flowIndentCheck(n.indent,g,i),l=E.range[2];let v=new Yo.Pair(y,E);t.options.keepSourceTokens&&(v.srcToken=u),a.items.push(v)}else{m&&i(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),N.comment&&(y.comment?y.comment+=`
68
+ `+N.comment:y.comment=N.comment);let E=new Yo.Pair(y);t.options.keepSourceTokens&&(E.srcToken=u),a.items.push(E)}}return c&&c<l&&i(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,l,c??l],a}Go.resolveBlockMap=Yu});var Qo=b(Do=>{"use strict";var Uu=re(),Ju=dt(),Wu=Xn();function Gu({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=r?.nodeClass??Uu.YAMLSeq,a=new o(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let l=n.offset,c=null;for(let{start:u,value:f}of n.items){let d=Ju.resolveProps(u,{indicator:"seq-item-ind",next:f,offset:l,onError:i,parentIndent:n.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||f)f?.type==="block-seq"?i(d.end,"BAD_INDENT","All sequence items must start at the same column"):i(l,"MISSING_CHAR","Sequence item without - indicator");else{c=d.end,d.comment&&(a.comment=d.comment);continue}let p=f?s(t,f,d,i):e(t,d.end,u,null,d,i);t.schema.compat&&Wu.flowIndentCheck(n.indent,f,i),l=p.range[2],a.items.push(p)}return a.range=[n.offset,l,c??l],a}Do.resolveBlockSeq=Gu});var Ce=b(Ho=>{"use strict";function Xu(s,e,t,n){let i="";if(s){let r=!1,o="";for(let a of s){let{source:l,type:c}=a;switch(c){case"space":r=!0;break;case"comment":{t&&!r&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let u=l.substring(1)||" ";i?i+=o+u:i=u,o="";break}case"newline":i&&(o+=l),r=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=l.length}}return{comment:i,offset:e}}Ho.resolveEnd=Xu});var ta=b(ea=>{"use strict";var Du=O(),Qu=se(),zo=ie(),Hu=re(),zu=Ce(),Zo=dt(),Zu=gs(),ed=Dn(),Qn="Block collections are not allowed within flow collections",Hn=s=>s&&(s.type==="block-map"||s.type==="block-seq");function td({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=n.start.source==="{",a=o?"flow map":"flow sequence",l=r?.nodeClass??(o?zo.YAMLMap:Hu.YAMLSeq),c=new l(t.schema);c.flow=!0;let u=t.atRoot;u&&(t.atRoot=!1),t.atKey&&(t.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:y,key:N,sep:E,value:v}=w,A=Zo.resolveProps(y,{flow:a,indicator:"explicit-key-ind",next:N??E?.[0],offset:f,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!A.found){if(!A.anchor&&!A.tag&&!E&&!v){m===0&&A.comma?i(A.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):m<n.items.length-1&&i(A.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),A.comment&&(c.comment?c.comment+=`
69
+ `+A.comment:c.comment=A.comment),f=A.end;continue}!o&&t.options.strict&&Zu.containsNewline(N)&&i(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0)A.comma&&i(A.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(A.comma||i(A.start,"MISSING_CHAR",`Missing , between ${a} items`),A.comment){let q="";e:for(let S of y)switch(S.type){case"comma":case"space":break;case"comment":q=S.source.substring(1);break e;default:break e}if(q){let S=c.items[c.items.length-1];Du.isPair(S)&&(S=S.value??S.key),S.comment?S.comment+=`
70
+ `+q:S.comment=q,A.comment=A.comment.substring(q.length+1)}}if(!o&&!E&&!A.found){let q=v?s(t,v,A,i):e(t,A.end,E,null,A,i);c.items.push(q),f=q.range[2],Hn(v)&&i(q.range,"BLOCK_IN_FLOW",Qn)}else{t.atKey=!0;let q=A.end,S=N?s(t,N,A,i):e(t,q,y,null,A,i);Hn(N)&&i(S.range,"BLOCK_IN_FLOW",Qn),t.atKey=!1;let L=Zo.resolveProps(E??[],{flow:a,indicator:"map-value-ind",next:v,offset:S.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(L.found){if(!o&&!A.found&&t.options.strict){if(E)for(let P of E){if(P===L.found)break;if(P.type==="newline"){i(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}A.start<L.found.offset-1024&&i(L.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else v&&("source"in v&&v.source?.[0]===":"?i(v,"MISSING_CHAR",`Missing space after : in ${a}`):i(L.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let H=v?s(t,v,L,i):L.found?e(t,L.end,E,null,L,i):null;H?Hn(v)&&i(H.range,"BLOCK_IN_FLOW",Qn):L.comment&&(S.comment?S.comment+=`
71
+ `+L.comment:S.comment=L.comment);let ye=new Qu.Pair(S,H);if(t.options.keepSourceTokens&&(ye.srcToken=w),o){let P=c;ed.mapIncludes(t,P.items,S)&&i(q,"DUPLICATE_KEY","Map keys must be unique"),P.items.push(ye)}else{let P=new zo.YAMLMap(t.schema);P.flow=!0,P.items.push(ye);let Oi=(H??S).range;P.range=[S.range[0],Oi[1],Oi[2]],c.items.push(P)}f=H?H.range[2]:L.end}}let d=o?"}":"]",[p,...g]=n.end,h=f;if(p?.source===d)h=p.offset+p.source.length;else{let m=a[0].toUpperCase()+a.substring(1),w=u?`${m} must end with a ${d}`:`${m} in block collection must be sufficiently indented and end with a ${d}`;i(f,u?"MISSING_CHAR":"BAD_INDENT",w),p&&p.source.length!==1&&g.unshift(p)}if(g.length>0){let m=zu.resolveEnd(g,h,t.options.strict,i);m.comment&&(c.comment?c.comment+=`
72
+ `+m.comment:c.comment=m.comment),c.range=[n.offset,h,m.offset]}else c.range=[n.offset,h,h];return c}ea.resolveFlowCollection=td});var na=b(sa=>{"use strict";var sd=O(),nd=C(),id=ie(),rd=re(),od=Xo(),ad=Qo(),ld=ta();function zn(s,e,t,n,i,r){let o=t.type==="block-map"?od.resolveBlockMap(s,e,t,n,r):t.type==="block-seq"?ad.resolveBlockSeq(s,e,t,n,r):ld.resolveFlowCollection(s,e,t,n,r),a=o.constructor;return i==="!"||i===a.tagName?(o.tag=a.tagName,o):(i&&(o.tag=i),o)}function cd(s,e,t,n,i){let r=n.tag,o=r?e.directives.tagName(r.source,d=>i(r,"TAG_RESOLVE_FAILED",d)):null;if(t.type==="block-seq"){let{anchor:d,newlineAfterProp:p}=n,g=d&&r?d.offset>r.offset?d:r:d??r;g&&(!p||p.offset<g.offset)&&i(g,"MISSING_CHAR","Missing newline after block sequence props")}let a=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!r||!o||o==="!"||o===id.YAMLMap.tagName&&a==="map"||o===rd.YAMLSeq.tagName&&a==="seq")return zn(s,e,t,i,o);let l=e.schema.tags.find(d=>d.tag===o&&d.collection===a);if(!l){let d=e.schema.knownTags[o];if(d?.collection===a)e.schema.tags.push(Object.assign({},d,{default:!1})),l=d;else return d?i(r,"BAD_COLLECTION_TYPE",`${d.tag} used for ${a} collection, but expects ${d.collection??"scalar"}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),zn(s,e,t,i,o)}let c=zn(s,e,t,i,o,l),u=l.resolve?.(c,d=>i(r,"TAG_RESOLVE_FAILED",d),e.options)??c,f=sd.isNode(u)?u:new nd.Scalar(u);return f.range=c.range,f.tag=o,l?.format&&(f.format=l.format),f}sa.composeCollection=cd});var ei=b(ia=>{"use strict";var Zn=C();function fd(s,e,t){let n=e.offset,i=ud(e,s.options.strict,t);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};let r=i.mode===">"?Zn.Scalar.BLOCK_FOLDED:Zn.Scalar.BLOCK_LITERAL,o=e.source?dd(e.source):[],a=o.length;for(let h=o.length-1;h>=0;--h){let m=o[h][1];if(m===""||m==="\r")a=h;else break}if(a===0){let h=i.chomp==="+"&&o.length>0?`
73
73
  `.repeat(Math.max(1,o.length-1)):"",m=n+i.length;return e.source&&(m+=e.source.length),{value:h,type:r,comment:i.comment,range:[n,m,m]}}let l=e.indent+i.indent,c=e.offset+i.length,u=0;for(let h=0;h<a;++h){let[m,w]=o[h];if(w===""||w==="\r")i.indent===0&&m.length>l&&(l=m.length);else{m.length<l&&t(c+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(l=m.length),u=h,l===0&&!s.atRoot&&t(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>=a;--h)o[h][0].length>l&&(a=h+1);let f="",d="",p=!1;for(let h=0;h<u;++h)f+=o[h][0].slice(l)+`
74
- `;for(let h=u;h<a;++h){let[m,w]=o[h];c+=m.length+w.length+1;let y=w[w.length-1]==="\r";if(y&&(w=w.slice(0,-1)),w&&m.length<l){let E=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;t(c-w.length-(y?2:1),"BAD_INDENT",E),m=""}r===zn.Scalar.BLOCK_LITERAL?(f+=d+m.slice(l)+w,d=`
74
+ `;for(let h=u;h<a;++h){let[m,w]=o[h];c+=m.length+w.length+1;let y=w[w.length-1]==="\r";if(y&&(w=w.slice(0,-1)),w&&m.length<l){let E=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;t(c-w.length-(y?2:1),"BAD_INDENT",E),m=""}r===Zn.Scalar.BLOCK_LITERAL?(f+=d+m.slice(l)+w,d=`
75
75
  `):m.length>l||w[0]===" "?(d===" "?d=`
76
76
  `:!p&&d===`
77
77
  `&&(d=`
@@ -84,98 +84,98 @@ ${c}
84
84
  `+o[h][0].slice(l);f[f.length-1]!==`
85
85
  `&&(f+=`
86
86
  `);break;default:f+=`
87
- `}let g=n+i.length+e.source.length;return{value:f,type:r,comment:i.comment,range:[n,g,g]}}function fd({offset:s,props:e},t,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=e[0],r=i[0],o=0,a="",l=-1;for(let d=1;d<i.length;++d){let p=i[d];if(!a&&(p==="-"||p==="+"))a=p;else{let g=Number(p);!o&&g?o=g:l===-1&&(l=s+d)}}l!==-1&&n(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,u="",f=i.length;for(let d=1;d<e.length;++d){let p=e[d];switch(p.type){case"space":c=!0;case"newline":f+=p.source.length;break;case"comment":t&&!c&&n(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=p.source.length,u=p.source.substring(1);break;case"error":n(p,"UNEXPECTED_TOKEN",p.message),f+=p.source.length;break;default:{let g=`Unexpected token in block scalar header: ${p.type}`;n(p,"UNEXPECTED_TOKEN",g);let h=p.source;h&&typeof h=="string"&&(f+=h.length)}}}return{mode:r,indent:o,chomp:a,comment:u,length:f}}function ud(s){let e=s.split(/\n( *)/),t=e[0],n=t.match(/^( *)/),r=[n?.[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let o=1;o<e.length;o+=2)r.push([e[o],e[o+1]]);return r}na.resolveBlockScalar=cd});var ti=b(ra=>{"use strict";var ei=C(),dd=Ie();function hd(s,e,t){let{offset:n,type:i,source:r,end:o}=s,a,l,c=(d,p,g)=>t(n+d,p,g);switch(i){case"scalar":a=ei.Scalar.PLAIN,l=pd(r,c);break;case"single-quoted-scalar":a=ei.Scalar.QUOTE_SINGLE,l=md(r,c);break;case"double-quoted-scalar":a=ei.Scalar.QUOTE_DOUBLE,l=gd(r,c);break;default:return t(s,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[n,n+r.length,n+r.length]}}let u=n+r.length,f=dd.resolveEnd(o,u,e,t);return{value:l,type:a,comment:f.comment,range:[n,u,f.offset]}}function pd(s,e){let t="";switch(s[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${s[0]}`;break}case"@":case"`":{t=`reserved character ${s[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),ia(s)}function md(s,e){return(s[s.length-1]!=="'"||s.length===1)&&e(s.length,"MISSING_CHAR","Missing closing 'quote"),ia(s.slice(1,-1)).replace(/''/g,"'")}function ia(s){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
87
+ `}let g=n+i.length+e.source.length;return{value:f,type:r,comment:i.comment,range:[n,g,g]}}function ud({offset:s,props:e},t,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=e[0],r=i[0],o=0,a="",l=-1;for(let d=1;d<i.length;++d){let p=i[d];if(!a&&(p==="-"||p==="+"))a=p;else{let g=Number(p);!o&&g?o=g:l===-1&&(l=s+d)}}l!==-1&&n(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,u="",f=i.length;for(let d=1;d<e.length;++d){let p=e[d];switch(p.type){case"space":c=!0;case"newline":f+=p.source.length;break;case"comment":t&&!c&&n(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=p.source.length,u=p.source.substring(1);break;case"error":n(p,"UNEXPECTED_TOKEN",p.message),f+=p.source.length;break;default:{let g=`Unexpected token in block scalar header: ${p.type}`;n(p,"UNEXPECTED_TOKEN",g);let h=p.source;h&&typeof h=="string"&&(f+=h.length)}}}return{mode:r,indent:o,chomp:a,comment:u,length:f}}function dd(s){let e=s.split(/\n( *)/),t=e[0],n=t.match(/^( *)/),r=[n?.[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let o=1;o<e.length;o+=2)r.push([e[o],e[o+1]]);return r}ia.resolveBlockScalar=fd});var si=b(oa=>{"use strict";var ti=C(),hd=Ce();function pd(s,e,t){let{offset:n,type:i,source:r,end:o}=s,a,l,c=(d,p,g)=>t(n+d,p,g);switch(i){case"scalar":a=ti.Scalar.PLAIN,l=md(r,c);break;case"single-quoted-scalar":a=ti.Scalar.QUOTE_SINGLE,l=gd(r,c);break;case"double-quoted-scalar":a=ti.Scalar.QUOTE_DOUBLE,l=yd(r,c);break;default:return t(s,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[n,n+r.length,n+r.length]}}let u=n+r.length,f=hd.resolveEnd(o,u,e,t);return{value:l,type:a,comment:f.comment,range:[n,u,f.offset]}}function md(s,e){let t="";switch(s[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${s[0]}`;break}case"@":case"`":{t=`reserved character ${s[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),ra(s)}function gd(s,e){return(s[s.length-1]!=="'"||s.length===1)&&e(s.length,"MISSING_CHAR","Missing closing 'quote"),ra(s.slice(1,-1)).replace(/''/g,"'")}function ra(s){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
88
88
  `,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
89
89
  `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(s);if(!n)return s;let i=n[1],r=" ",o=e.lastIndex;for(t.lastIndex=o;n=t.exec(s);)n[1]===""?r===`
90
90
  `?i+=r:r=`
91
- `:(i+=r+n[1],r=" "),o=t.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,n=a.exec(s),i+r+(n?.[1]??"")}function gd(s,e){let t="";for(let n=1;n<s.length-1;++n){let i=s[n];if(!(i==="\r"&&s[n+1]===`
91
+ `:(i+=r+n[1],r=" "),o=t.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,n=a.exec(s),i+r+(n?.[1]??"")}function yd(s,e){let t="";for(let n=1;n<s.length-1;++n){let i=s[n];if(!(i==="\r"&&s[n+1]===`
92
92
  `))if(i===`
93
- `){let{fold:r,offset:o}=yd(s,n);t+=r,n=o}else if(i==="\\"){let r=s[++n],o=bd[r];if(o)t+=o;else if(r===`
93
+ `){let{fold:r,offset:o}=bd(s,n);t+=r,n=o}else if(i==="\\"){let r=s[++n],o=wd[r];if(o)t+=o;else if(r===`
94
94
  `)for(r=s[n+1];r===" "||r===" ";)r=s[++n+1];else if(r==="\r"&&s[n+1]===`
95
- `)for(r=s[++n+1];r===" "||r===" ";)r=s[++n+1];else if(r==="x"||r==="u"||r==="U"){let a={x:2,u:4,U:8}[r];t+=wd(s,n+1,a,e),n+=a}else{let a=s.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),t+=a}}else if(i===" "||i===" "){let r=n,o=s[n+1];for(;o===" "||o===" ";)o=s[++n+1];o!==`
95
+ `)for(r=s[++n+1];r===" "||r===" ";)r=s[++n+1];else if(r==="x"||r==="u"||r==="U"){let a={x:2,u:4,U:8}[r];t+=Sd(s,n+1,a,e),n+=a}else{let a=s.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),t+=a}}else if(i===" "||i===" "){let r=n,o=s[n+1];for(;o===" "||o===" ";)o=s[++n+1];o!==`
96
96
  `&&!(o==="\r"&&s[n+2]===`
97
- `)&&(t+=n>r?s.slice(r,n+1):i)}else t+=i}return(s[s.length-1]!=='"'||s.length===1)&&e(s.length,"MISSING_CHAR",'Missing closing "quote'),t}function yd(s,e){let t="",n=s[e+1];for(;(n===" "||n===" "||n===`
97
+ `)&&(t+=n>r?s.slice(r,n+1):i)}else t+=i}return(s[s.length-1]!=='"'||s.length===1)&&e(s.length,"MISSING_CHAR",'Missing closing "quote'),t}function bd(s,e){let t="",n=s[e+1];for(;(n===" "||n===" "||n===`
98
98
  `||n==="\r")&&!(n==="\r"&&s[e+2]!==`
99
99
  `);)n===`
100
100
  `&&(t+=`
101
- `),e+=1,n=s[e+1];return t||(t=" "),{fold:t,offset:e}}var bd={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
102
- `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function wd(s,e,t,n){let i=s.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){let a=s.substr(e-2,t+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}ra.resolveFlowScalar=hd});var la=b(aa=>{"use strict";var pe=O(),oa=C(),Sd=Zn(),Nd=ti();function Ed(s,e,t,n){let{value:i,type:r,comment:o,range:a}=e.type==="block-scalar"?Sd.resolveBlockScalar(s,e,n):Nd.resolveFlowScalar(e,s.options.strict,n),l=t?s.directives.tagName(t.source,f=>n(t,"TAG_RESOLVE_FAILED",f)):null,c;s.options.stringKeys&&s.atKey?c=s.schema[pe.SCALAR]:l?c=vd(s.schema,i,l,t,n):e.type==="scalar"?c=Ad(s,i,e,n):c=s.schema[pe.SCALAR];let u;try{let f=c.resolve(i,d=>n(t??e,"TAG_RESOLVE_FAILED",d),s.options);u=pe.isScalar(f)?f:new oa.Scalar(f)}catch(f){let d=f instanceof Error?f.message:String(f);n(t??e,"TAG_RESOLVE_FAILED",d),u=new oa.Scalar(i)}return u.range=a,u.source=i,r&&(u.type=r),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function vd(s,e,t,n,i){if(t==="!")return s[pe.SCALAR];let r=[];for(let a of s.tags)if(!a.collection&&a.tag===t)if(a.default&&a.test)r.push(a);else return a;for(let a of r)if(a.test?.test(e))return a;let o=s.knownTags[t];return o&&!o.collection?(s.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),s[pe.SCALAR])}function Ad({atKey:s,directives:e,schema:t},n,i,r){let o=t.tags.find(a=>(a.default===!0||s&&a.default==="key")&&a.test?.test(n))||t[pe.SCALAR];if(t.compat){let a=t.compat.find(l=>l.default&&l.test?.test(n))??t[pe.SCALAR];if(o.tag!==a.tag){let l=e.tagString(o.tag),c=e.tagString(a.tag),u=`Value may be parsed as either ${l} or ${c}`;r(i,"TAG_RESOLVE_FAILED",u,!0)}}return o}aa.composeScalar=Ed});var fa=b(ca=>{"use strict";function Td(s,e,t){if(e){t??(t=e.length);for(let n=t-1;n>=0;--n){let i=e[n];switch(i.type){case"space":case"comment":case"newline":s-=i.source.length;continue}for(i=e[++n];i?.type==="space";)s+=i.source.length,i=e[++n];break}}return s}ca.emptyScalarPosition=Td});var ha=b(ni=>{"use strict";var Od=Ue(),kd=O(),qd=sa(),ua=la(),Id=Ie(),Cd=fa(),Ld={composeNode:da,composeEmptyNode:si};function da(s,e,t,n){let i=s.atKey,{spaceBefore:r,comment:o,anchor:a,tag:l}=t,c,u=!0;switch(e.type){case"alias":c=Pd(s,e,n),(a||l)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=ua.composeScalar(s,e,l,n),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=qd.composeCollection(Ld,s,e,t,n),a&&(c.anchor=a.source.substring(1));break;default:{let f=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",f),c=si(s,e.offset,void 0,null,t,n),u=!1}}return a&&c.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&s.options.stringKeys&&(!kd.isScalar(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&n(l??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),r&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),s.options.keepSourceTokens&&u&&(c.srcToken=e),c}function si(s,e,t,n,{spaceBefore:i,comment:r,anchor:o,tag:a,end:l},c){let u={type:"scalar",offset:Cd.emptyScalarPosition(e,t,n),indent:-1,source:""},f=ua.composeScalar(s,u,a,c);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(f.spaceBefore=!0),r&&(f.comment=r,f.range[2]=l),f}function Pd({options:s},{offset:e,source:t,end:n},i){let r=new Od.Alias(t.substring(1));r.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&i(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+t.length,a=Id.resolveEnd(n,o,s.strict,i);return r.range=[e,o,a.offset],a.comment&&(r.comment=a.comment),r}ni.composeEmptyNode=si;ni.composeNode=da});var ga=b(ma=>{"use strict";var Md=at(),pa=ha(),$d=Ie(),_d=ut();function xd(s,e,{offset:t,start:n,value:i,end:r},o){let a=Object.assign({_directives:e},s),l=new Md.Document(void 0,a),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=_d.resolveProps(n,{indicator:"doc-start",next:i??r?.[0],offset:t,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?pa.composeNode(c,i,u,o):pa.composeEmptyNode(c,u.end,n,null,u,o);let f=l.contents.range[2],d=$d.resolveEnd(r,f,!1,o);return d.comment&&(l.comment=d.comment),l.range=[t,f,d.offset],l}ma.composeDoc=xd});var ri=b(wa=>{"use strict";var Bd=bt("process"),Fd=Ys(),jd=at(),dt=ft(),ya=O(),Vd=ga(),Kd=Ie();function ht(s){if(typeof s=="number")return[s,s+1];if(Array.isArray(s))return s.length===2?s:[s[0],s[1]];let{offset:e,source:t}=s;return[e,e+(typeof t=="string"?t.length:1)]}function ba(s){let e="",t=!1,n=!1;for(let i=0;i<s.length;++i){let r=s[i];switch(r[0]){case"#":e+=(e===""?"":n?`
101
+ `),e+=1,n=s[e+1];return t||(t=" "),{fold:t,offset:e}}var wd={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
102
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Sd(s,e,t,n){let i=s.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){let a=s.substr(e-2,t+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}oa.resolveFlowScalar=pd});var ca=b(la=>{"use strict";var me=O(),aa=C(),Nd=ei(),Ed=si();function vd(s,e,t,n){let{value:i,type:r,comment:o,range:a}=e.type==="block-scalar"?Nd.resolveBlockScalar(s,e,n):Ed.resolveFlowScalar(e,s.options.strict,n),l=t?s.directives.tagName(t.source,f=>n(t,"TAG_RESOLVE_FAILED",f)):null,c;s.options.stringKeys&&s.atKey?c=s.schema[me.SCALAR]:l?c=Ad(s.schema,i,l,t,n):e.type==="scalar"?c=Td(s,i,e,n):c=s.schema[me.SCALAR];let u;try{let f=c.resolve(i,d=>n(t??e,"TAG_RESOLVE_FAILED",d),s.options);u=me.isScalar(f)?f:new aa.Scalar(f)}catch(f){let d=f instanceof Error?f.message:String(f);n(t??e,"TAG_RESOLVE_FAILED",d),u=new aa.Scalar(i)}return u.range=a,u.source=i,r&&(u.type=r),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function Ad(s,e,t,n,i){if(t==="!")return s[me.SCALAR];let r=[];for(let a of s.tags)if(!a.collection&&a.tag===t)if(a.default&&a.test)r.push(a);else return a;for(let a of r)if(a.test?.test(e))return a;let o=s.knownTags[t];return o&&!o.collection?(s.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),s[me.SCALAR])}function Td({atKey:s,directives:e,schema:t},n,i,r){let o=t.tags.find(a=>(a.default===!0||s&&a.default==="key")&&a.test?.test(n))||t[me.SCALAR];if(t.compat){let a=t.compat.find(l=>l.default&&l.test?.test(n))??t[me.SCALAR];if(o.tag!==a.tag){let l=e.tagString(o.tag),c=e.tagString(a.tag),u=`Value may be parsed as either ${l} or ${c}`;r(i,"TAG_RESOLVE_FAILED",u,!0)}}return o}la.composeScalar=vd});var ua=b(fa=>{"use strict";function Od(s,e,t){if(e){t??(t=e.length);for(let n=t-1;n>=0;--n){let i=e[n];switch(i.type){case"space":case"comment":case"newline":s-=i.source.length;continue}for(i=e[++n];i?.type==="space";)s+=i.source.length,i=e[++n];break}}return s}fa.emptyScalarPosition=Od});var pa=b(ii=>{"use strict";var kd=Je(),qd=O(),Id=na(),da=ca(),Cd=Ce(),Ld=ua(),Pd={composeNode:ha,composeEmptyNode:ni};function ha(s,e,t,n){let i=s.atKey,{spaceBefore:r,comment:o,anchor:a,tag:l}=t,c,u=!0;switch(e.type){case"alias":c=Md(s,e,n),(a||l)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=da.composeScalar(s,e,l,n),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=Id.composeCollection(Pd,s,e,t,n),a&&(c.anchor=a.source.substring(1));break;default:{let f=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",f),c=ni(s,e.offset,void 0,null,t,n),u=!1}}return a&&c.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&s.options.stringKeys&&(!qd.isScalar(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&n(l??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),r&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),s.options.keepSourceTokens&&u&&(c.srcToken=e),c}function ni(s,e,t,n,{spaceBefore:i,comment:r,anchor:o,tag:a,end:l},c){let u={type:"scalar",offset:Ld.emptyScalarPosition(e,t,n),indent:-1,source:""},f=da.composeScalar(s,u,a,c);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(f.spaceBefore=!0),r&&(f.comment=r,f.range[2]=l),f}function Md({options:s},{offset:e,source:t,end:n},i){let r=new kd.Alias(t.substring(1));r.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&i(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+t.length,a=Cd.resolveEnd(n,o,s.strict,i);return r.range=[e,o,a.offset],a.comment&&(r.comment=a.comment),r}ii.composeEmptyNode=ni;ii.composeNode=ha});var ya=b(ga=>{"use strict";var $d=lt(),ma=pa(),_d=Ce(),xd=dt();function Bd(s,e,{offset:t,start:n,value:i,end:r},o){let a=Object.assign({_directives:e},s),l=new $d.Document(void 0,a),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=xd.resolveProps(n,{indicator:"doc-start",next:i??r?.[0],offset:t,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?ma.composeNode(c,i,u,o):ma.composeEmptyNode(c,u.end,n,null,u,o);let f=l.contents.range[2],d=_d.resolveEnd(r,f,!1,o);return d.comment&&(l.comment=d.comment),l.range=[t,f,d.offset],l}ga.composeDoc=Bd});var oi=b(Sa=>{"use strict";var Fd=wt("process"),jd=Us(),Vd=lt(),ht=ut(),ba=O(),Kd=ya(),Rd=Ce();function pt(s){if(typeof s=="number")return[s,s+1];if(Array.isArray(s))return s.length===2?s:[s[0],s[1]];let{offset:e,source:t}=s;return[e,e+(typeof t=="string"?t.length:1)]}function wa(s){let e="",t=!1,n=!1;for(let i=0;i<s.length;++i){let r=s[i];switch(r[0]){case"#":e+=(e===""?"":n?`
103
103
 
104
104
  `:`
105
- `)+(r.substring(1)||" "),t=!0,n=!1;break;case"%":s[i+1]?.[0]!=="#"&&(i+=1),t=!1;break;default:t||(n=!0),t=!1}}return{comment:e,afterEmptyLine:n}}var ii=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,n,i,r)=>{let o=ht(t);r?this.warnings.push(new dt.YAMLWarning(o,n,i)):this.errors.push(new dt.YAMLParseError(o,n,i))},this.directives=new Fd.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:i}=ba(this.prelude);if(n){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
106
- ${n}`:n;else if(i||e.directives.docStart||!r)e.commentBefore=n;else if(ya.isCollection(r)&&!r.flow&&r.items.length>0){let o=r.items[0];ya.isPair(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${n}
105
+ `)+(r.substring(1)||" "),t=!0,n=!1;break;case"%":s[i+1]?.[0]!=="#"&&(i+=1),t=!1;break;default:t||(n=!0),t=!1}}return{comment:e,afterEmptyLine:n}}var ri=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,n,i,r)=>{let o=pt(t);r?this.warnings.push(new ht.YAMLWarning(o,n,i)):this.errors.push(new ht.YAMLParseError(o,n,i))},this.directives=new jd.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:i}=wa(this.prelude);if(n){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
106
+ ${n}`:n;else if(i||e.directives.docStart||!r)e.commentBefore=n;else if(ba.isCollection(r)&&!r.flow&&r.items.length>0){let o=r.items[0];ba.isPair(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${n}
107
107
  ${a}`:n}else{let o=r.commentBefore;r.commentBefore=o?`${n}
108
- ${o}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:ba(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let i of e)yield*this.next(i);yield*this.end(t,n)}*next(e){switch(Bd.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,n,i)=>{let r=ht(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",n,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=Vd.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),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,n=new dt.YAMLParseError(ht(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){let n="Unexpected doc-end without preceding document";this.errors.push(new dt.YAMLParseError(ht(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;let t=Kd.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let n=this.doc.comment;this.doc.comment=n?`${n}
109
- ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new dt.YAMLParseError(ht(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 n=Object.assign({_directives:this.directives},this.options),i=new jd.Document(void 0,n);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,t,t],this.decorate(i,!1),yield i}}};wa.Composer=ii});var Ea=b(gs=>{"use strict";var Rd=Zn(),Yd=ti(),Ud=ft(),Sa=Qe();function Jd(s,e=!0,t){if(s){let n=(i,r,o)=>{let a=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(t)t(a,r,o);else throw new Ud.YAMLParseError([a,a+1],r,o)};switch(s.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Yd.resolveFlowScalar(s,e,n);case"block-scalar":return Rd.resolveBlockScalar({options:{strict:e}},s,n)}}return null}function Wd(s,e){let{implicitKey:t=!1,indent:n,inFlow:i=!1,offset:r=-1,type:o="PLAIN"}=e,a=Sa.stringifyString({type:o,value:s},{implicitKey:t,indent:n>0?" ".repeat(n):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=e.end??[{type:"newline",offset:-1,indent:n,source:`
108
+ ${o}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:wa(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let i of e)yield*this.next(i);yield*this.end(t,n)}*next(e){switch(Fd.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,n,i)=>{let r=pt(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",n,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=Kd.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),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,n=new ht.YAMLParseError(pt(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){let n="Unexpected doc-end without preceding document";this.errors.push(new ht.YAMLParseError(pt(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;let t=Rd.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let n=this.doc.comment;this.doc.comment=n?`${n}
109
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new ht.YAMLParseError(pt(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 n=Object.assign({_directives:this.directives},this.options),i=new Vd.Document(void 0,n);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,t,t],this.decorate(i,!1),yield i}}};Sa.Composer=ri});var va=b(ys=>{"use strict";var Yd=ei(),Ud=si(),Jd=ut(),Na=Qe();function Wd(s,e=!0,t){if(s){let n=(i,r,o)=>{let a=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(t)t(a,r,o);else throw new Jd.YAMLParseError([a,a+1],r,o)};switch(s.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Ud.resolveFlowScalar(s,e,n);case"block-scalar":return Yd.resolveBlockScalar({options:{strict:e}},s,n)}}return null}function Gd(s,e){let{implicitKey:t=!1,indent:n,inFlow:i=!1,offset:r=-1,type:o="PLAIN"}=e,a=Na.stringifyString({type:o,value:s},{implicitKey:t,indent:n>0?" ".repeat(n):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=e.end??[{type:"newline",offset:-1,indent:n,source:`
110
110
  `}];switch(a[0]){case"|":case">":{let c=a.indexOf(`
111
111
  `),u=a.substring(0,c),f=a.substring(c+1)+`
112
- `,d=[{type:"block-scalar-header",offset:r,indent:n,source:u}];return Na(d,l)||d.push({type:"newline",offset:-1,indent:n,source:`
113
- `}),{type:"block-scalar",offset:r,indent:n,props:d,source:f}}case'"':return{type:"double-quoted-scalar",offset:r,indent:n,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:r,indent:n,source:a,end:l};default:return{type:"scalar",offset:r,indent:n,source:a,end:l}}}function Gd(s,e,t={}){let{afterKey:n=!1,implicitKey:i=!1,inFlow:r=!1,type:o}=t,a="indent"in s?s.indent:null;if(n&&typeof a=="number"&&(a+=2),!o)switch(s.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let c=s.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let l=Sa.stringifyString({type:o,value:e},{implicitKey:i||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":Xd(s,l);break;case'"':oi(s,l,"double-quoted-scalar");break;case"'":oi(s,l,"single-quoted-scalar");break;default:oi(s,l,"scalar")}}function Xd(s,e){let t=e.indexOf(`
112
+ `,d=[{type:"block-scalar-header",offset:r,indent:n,source:u}];return Ea(d,l)||d.push({type:"newline",offset:-1,indent:n,source:`
113
+ `}),{type:"block-scalar",offset:r,indent:n,props:d,source:f}}case'"':return{type:"double-quoted-scalar",offset:r,indent:n,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:r,indent:n,source:a,end:l};default:return{type:"scalar",offset:r,indent:n,source:a,end:l}}}function Xd(s,e,t={}){let{afterKey:n=!1,implicitKey:i=!1,inFlow:r=!1,type:o}=t,a="indent"in s?s.indent:null;if(n&&typeof a=="number"&&(a+=2),!o)switch(s.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let c=s.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let l=Na.stringifyString({type:o,value:e},{implicitKey:i||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":Dd(s,l);break;case'"':ai(s,l,"double-quoted-scalar");break;case"'":ai(s,l,"single-quoted-scalar");break;default:ai(s,l,"scalar")}}function Dd(s,e){let t=e.indexOf(`
114
114
  `),n=e.substring(0,t),i=e.substring(t+1)+`
115
- `;if(s.type==="block-scalar"){let r=s.props[0];if(r.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r.source=n,s.source=i}else{let{offset:r}=s,o="indent"in s?s.indent:-1,a=[{type:"block-scalar-header",offset:r,indent:o,source:n}];Na(a,"end"in s?s.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
116
- `});for(let l of Object.keys(s))l!=="type"&&l!=="offset"&&delete s[l];Object.assign(s,{type:"block-scalar",indent:o,props:a,source:i})}}function Na(s,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":s.push(t);break;case"newline":return s.push(t),!0}return!1}function oi(s,e,t){switch(s.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":s.type=t,s.source=e;break;case"block-scalar":{let n=s.props.slice(1),i=e.length;s.props[0].type==="block-scalar-header"&&(i-=s.props[0].source.length);for(let r of n)r.offset+=i;delete s.props,Object.assign(s,{type:t,source:e,end:n});break}case"block-map":case"block-seq":{let i={type:"newline",offset:s.offset+e.length,indent:s.indent,source:`
117
- `};delete s.items,Object.assign(s,{type:t,source:e,end:[i]});break}default:{let n="indent"in s?s.indent:-1,i="end"in s&&Array.isArray(s.end)?s.end.filter(r=>r.type==="space"||r.type==="comment"||r.type==="newline"):[];for(let r of Object.keys(s))r!=="type"&&r!=="offset"&&delete s[r];Object.assign(s,{type:t,indent:n,source:e,end:i})}}}gs.createScalarToken=Wd;gs.resolveAsScalar=Jd;gs.setScalarValue=Gd});var Aa=b(va=>{"use strict";var Qd=s=>"type"in s?bs(s):ys(s);function bs(s){switch(s.type){case"block-scalar":{let e="";for(let t of s.props)e+=bs(t);return e+s.source}case"block-map":case"block-seq":{let e="";for(let t of s.items)e+=ys(t);return e}case"flow-collection":{let e=s.start.source;for(let t of s.items)e+=ys(t);for(let t of s.end)e+=t.source;return e}case"document":{let e=ys(s);if(s.end)for(let t of s.end)e+=t.source;return e}default:{let e=s.source;if("end"in s&&s.end)for(let t of s.end)e+=t.source;return e}}}function ys({start:s,key:e,sep:t,value:n}){let i="";for(let r of s)i+=r.source;if(e&&(i+=bs(e)),t)for(let r of t)i+=r.source;return n&&(i+=bs(n)),i}va.stringify=Qd});var qa=b(ka=>{"use strict";var ai=Symbol("break visit"),Dd=Symbol("skip children"),Ta=Symbol("remove item");function me(s,e){"type"in s&&s.type==="document"&&(s={start:s.start,value:s.value}),Oa(Object.freeze([]),s,e)}me.BREAK=ai;me.SKIP=Dd;me.REMOVE=Ta;me.itemAtPath=(s,e)=>{let t=s;for(let[n,i]of e){let r=t?.[n];if(r&&"items"in r)t=r.items[i];else return}return t};me.parentCollection=(s,e)=>{let t=me.itemAtPath(s,e.slice(0,-1)),n=e[e.length-1][0],i=t?.[n];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function Oa(s,e,t){let n=t(e,s);if(typeof n=="symbol")return n;for(let i of["key","value"]){let r=e[i];if(r&&"items"in r){for(let o=0;o<r.items.length;++o){let a=Oa(Object.freeze(s.concat([[i,o]])),r.items[o],t);if(typeof a=="number")o=a-1;else{if(a===ai)return ai;a===Ta&&(r.items.splice(o,1),o-=1)}}typeof n=="function"&&i==="key"&&(n=n(e,s))}}return typeof n=="function"?n(e,s):n}ka.visit=me});var ws=b(j=>{"use strict";var li=Ea(),Hd=Aa(),zd=qa(),ci="\uFEFF",fi="",ui="",di="",Zd=s=>!!s&&"items"in s,eh=s=>!!s&&(s.type==="scalar"||s.type==="single-quoted-scalar"||s.type==="double-quoted-scalar"||s.type==="block-scalar");function th(s){switch(s){case ci:return"<BOM>";case fi:return"<DOC>";case ui:return"<FLOW_END>";case di:return"<SCALAR>";default:return JSON.stringify(s)}}function sh(s){switch(s){case ci:return"byte-order-mark";case fi:return"doc-mode";case ui:return"flow-error-end";case di:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
115
+ `;if(s.type==="block-scalar"){let r=s.props[0];if(r.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r.source=n,s.source=i}else{let{offset:r}=s,o="indent"in s?s.indent:-1,a=[{type:"block-scalar-header",offset:r,indent:o,source:n}];Ea(a,"end"in s?s.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
116
+ `});for(let l of Object.keys(s))l!=="type"&&l!=="offset"&&delete s[l];Object.assign(s,{type:"block-scalar",indent:o,props:a,source:i})}}function Ea(s,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":s.push(t);break;case"newline":return s.push(t),!0}return!1}function ai(s,e,t){switch(s.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":s.type=t,s.source=e;break;case"block-scalar":{let n=s.props.slice(1),i=e.length;s.props[0].type==="block-scalar-header"&&(i-=s.props[0].source.length);for(let r of n)r.offset+=i;delete s.props,Object.assign(s,{type:t,source:e,end:n});break}case"block-map":case"block-seq":{let i={type:"newline",offset:s.offset+e.length,indent:s.indent,source:`
117
+ `};delete s.items,Object.assign(s,{type:t,source:e,end:[i]});break}default:{let n="indent"in s?s.indent:-1,i="end"in s&&Array.isArray(s.end)?s.end.filter(r=>r.type==="space"||r.type==="comment"||r.type==="newline"):[];for(let r of Object.keys(s))r!=="type"&&r!=="offset"&&delete s[r];Object.assign(s,{type:t,indent:n,source:e,end:i})}}}ys.createScalarToken=Gd;ys.resolveAsScalar=Wd;ys.setScalarValue=Xd});var Ta=b(Aa=>{"use strict";var Qd=s=>"type"in s?ws(s):bs(s);function ws(s){switch(s.type){case"block-scalar":{let e="";for(let t of s.props)e+=ws(t);return e+s.source}case"block-map":case"block-seq":{let e="";for(let t of s.items)e+=bs(t);return e}case"flow-collection":{let e=s.start.source;for(let t of s.items)e+=bs(t);for(let t of s.end)e+=t.source;return e}case"document":{let e=bs(s);if(s.end)for(let t of s.end)e+=t.source;return e}default:{let e=s.source;if("end"in s&&s.end)for(let t of s.end)e+=t.source;return e}}}function bs({start:s,key:e,sep:t,value:n}){let i="";for(let r of s)i+=r.source;if(e&&(i+=ws(e)),t)for(let r of t)i+=r.source;return n&&(i+=ws(n)),i}Aa.stringify=Qd});var Ia=b(qa=>{"use strict";var li=Symbol("break visit"),Hd=Symbol("skip children"),Oa=Symbol("remove item");function ge(s,e){"type"in s&&s.type==="document"&&(s={start:s.start,value:s.value}),ka(Object.freeze([]),s,e)}ge.BREAK=li;ge.SKIP=Hd;ge.REMOVE=Oa;ge.itemAtPath=(s,e)=>{let t=s;for(let[n,i]of e){let r=t?.[n];if(r&&"items"in r)t=r.items[i];else return}return t};ge.parentCollection=(s,e)=>{let t=ge.itemAtPath(s,e.slice(0,-1)),n=e[e.length-1][0],i=t?.[n];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function ka(s,e,t){let n=t(e,s);if(typeof n=="symbol")return n;for(let i of["key","value"]){let r=e[i];if(r&&"items"in r){for(let o=0;o<r.items.length;++o){let a=ka(Object.freeze(s.concat([[i,o]])),r.items[o],t);if(typeof a=="number")o=a-1;else{if(a===li)return li;a===Oa&&(r.items.splice(o,1),o-=1)}}typeof n=="function"&&i==="key"&&(n=n(e,s))}}return typeof n=="function"?n(e,s):n}qa.visit=ge});var Ss=b(j=>{"use strict";var ci=va(),zd=Ta(),Zd=Ia(),fi="\uFEFF",ui="",di="",hi="",eh=s=>!!s&&"items"in s,th=s=>!!s&&(s.type==="scalar"||s.type==="single-quoted-scalar"||s.type==="double-quoted-scalar"||s.type==="block-scalar");function sh(s){switch(s){case fi:return"<BOM>";case ui:return"<DOC>";case di:return"<FLOW_END>";case hi:return"<SCALAR>";default:return JSON.stringify(s)}}function nh(s){switch(s){case fi:return"byte-order-mark";case ui:return"doc-mode";case di:return"flow-error-end";case hi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
118
118
  `:case`\r
119
- `: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(s[0]){case" ":case" ":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}j.createScalarToken=li.createScalarToken;j.resolveAsScalar=li.resolveAsScalar;j.setScalarValue=li.setScalarValue;j.stringify=Hd.stringify;j.visit=zd.visit;j.BOM=ci;j.DOCUMENT=fi;j.FLOW_END=ui;j.SCALAR=di;j.isCollection=Zd;j.isScalar=eh;j.prettyToken=th;j.tokenType=sh});var mi=b(Ca=>{"use strict";var pt=ws();function U(s){switch(s){case void 0:case" ":case`
120
- `:case"\r":case" ":return!0;default:return!1}}var Ia=new Set("0123456789ABCDEFabcdef"),nh=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Ss=new Set(",[]{}"),ih=new Set(` ,[]{}
121
- \r `),hi=s=>!s||ih.has(s),pi=class{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 n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
119
+ `: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(s[0]){case" ":case" ":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}j.createScalarToken=ci.createScalarToken;j.resolveAsScalar=ci.resolveAsScalar;j.setScalarValue=ci.setScalarValue;j.stringify=zd.stringify;j.visit=Zd.visit;j.BOM=fi;j.DOCUMENT=ui;j.FLOW_END=di;j.SCALAR=hi;j.isCollection=eh;j.isScalar=th;j.prettyToken=sh;j.tokenType=nh});var gi=b(La=>{"use strict";var mt=Ss();function J(s){switch(s){case void 0:case" ":case`
120
+ `:case"\r":case" ":return!0;default:return!1}}var Ca=new Set("0123456789ABCDEFabcdef"),ih=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Ns=new Set(",[]{}"),rh=new Set(` ,[]{}
121
+ \r `),pi=s=>!s||rh.has(s),mi=class{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 n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
122
122
  `?!0:t==="\r"?this.buffer[e+1]===`
123
123
  `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===" ";)t=this.buffer[++n+e];if(t==="\r"){let i=this.buffer[n+e+1];if(i===`
124
124
  `||!i&&!this.atEnd)return e+n+1}return t===`
125
- `||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t==="-"||t==="."){let n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&U(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
126
- `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),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]===pt.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,n=e.indexOf("#");for(;n!==-1;){let r=e[n-1];if(r===" "||r===" "){t=n-1;break}else n=e.indexOf("#",n+1)}for(;;){let r=e[t-1];if(r===" "||r===" ")t-=1;else break}let i=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-i),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 pt.DOCUMENT,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==="...")&&U(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!U(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&U(t)){let n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}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(hi),"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,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let i=this.getLine();if(i===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&i[0]!=="#"||n===0&&(i.startsWith("---")||i.startsWith("..."))&&U(i[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield pt.FLOW_END,yield*this.parseLineStart();let r=0;for(;i[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),i[r]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-r),"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(hi),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||U(o)||o===",")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==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let r=0;for(;this.buffer[t-1-r]==="\\";)r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1)}let n=this.buffer.substring(0,t),i=n.indexOf(`
125
+ `||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t==="-"||t==="."){let n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&J(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
126
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),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]===mt.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,n=e.indexOf("#");for(;n!==-1;){let r=e[n-1];if(r===" "||r===" "){t=n-1;break}else n=e.indexOf("#",n+1)}for(;;){let r=e[t-1];if(r===" "||r===" ")t-=1;else break}let i=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-i),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 mt.DOCUMENT,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==="...")&&J(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!J(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&J(t)){let n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}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(pi),"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,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let i=this.getLine();if(i===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&i[0]!=="#"||n===0&&(i.startsWith("---")||i.startsWith("..."))&&J(i[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield mt.FLOW_END,yield*this.parseLineStart();let r=0;for(;i[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),i[r]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-r),"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(pi),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||J(o)||o===",")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==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let r=0;for(;this.buffer[t-1-r]==="\\";)r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1)}let n=this.buffer.substring(0,t),i=n.indexOf(`
127
127
  `,this.pos);if(i!==-1){for(;i!==-1;){let r=this.continueScalar(i+1);if(r===-1)break;i=n.indexOf(`
128
- `,r)}i!==-1&&(t=i-(n[i-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;for(;;){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=>U(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,n;e:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case" ":t+=1;break;case`
128
+ `,r)}i!==-1&&(t=i-(n[i-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;for(;;){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=>J(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,n;e:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case" ":t+=1;break;case`
129
129
  `:e=r,t=0;break;case"\r":{let o=this.buffer[r+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
130
130
  `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
131
131
  `,r)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let i=e+1;for(n=this.buffer[i];n===" ";)n=this.buffer[++i];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===`
132
132
  `;)n=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep)do{let r=e-1,o=this.buffer[r];o==="\r"&&(o=this.buffer[--r]);let a=r;for(;o===" ";)o=this.buffer[--r];if(o===`
133
- `&&r>=this.pos&&r+1+t>a)e=r;else break}while(!0);return yield pt.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,i;for(;i=this.buffer[++n];)if(i===":"){let r=this.buffer[n+1];if(U(r)||e&&Ss.has(r))break;t=n}else if(U(i)){let r=this.buffer[n+1];if(i==="\r"&&(r===`
133
+ `&&r>=this.pos&&r+1+t>a)e=r;else break}while(!0);return yield mt.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,i;for(;i=this.buffer[++n];)if(i===":"){let r=this.buffer[n+1];if(J(r)||e&&Ns.has(r))break;t=n}else if(J(i)){let r=this.buffer[n+1];if(i==="\r"&&(r===`
134
134
  `?(n+=1,i=`
135
- `,r=this.buffer[n+1]):t=n),r==="#"||e&&Ss.has(r))break;if(i===`
136
- `){let o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&Ss.has(i))break;t=n}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield pt.SCALAR,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(hi))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(U(t)||e&&Ss.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!U(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];for(;t;)if(nh.has(t))t=this.buffer[++e];else if(t==="%"&&Ia.has(this.buffer[e+1])&&Ia.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];return e===`
135
+ `,r=this.buffer[n+1]):t=n),r==="#"||e&&Ns.has(r))break;if(i===`
136
+ `){let o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&Ns.has(i))break;t=n}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield mt.SCALAR,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(pi))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(J(t)||e&&Ns.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!J(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];for(;t;)if(ih.has(t))t=this.buffer[++e];else if(t==="%"&&Ca.has(this.buffer[e+1])&&Ca.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];return e===`
137
137
  `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
138
- `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===" "||e&&n===" ");let i=t-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=t),i}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};Ca.Lexer=pi});var yi=b(La=>{"use strict";var gi=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let i=this.lineStarts[t-1];return{line:t,col:e-i+1}}}};La.LineCounter=gi});var wi=b(xa=>{"use strict";var rh=bt("process"),Pa=ws(),oh=mi();function re(s,e){for(let t=0;t<s.length;++t)if(s[t].type===e)return!0;return!1}function Ma(s){for(let e=0;e<s.length;++e)switch(s[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function _a(s){switch(s?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Ns(s){switch(s.type){case"document":return s.start;case"block-map":{let e=s.items[s.items.length-1];return e.sep??e.start}case"block-seq":return s.items[s.items.length-1].start;default:return[]}}function Ce(s){if(s.length===0)return[];let e=s.length;e:for(;--e>=0;)switch(s[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;s[++e]?.type==="space";);return s.splice(e,s.length)}function $a(s){if(s.start.type==="flow-seq-start")for(let e of s.items)e.sep&&!e.value&&!re(e.start,"explicit-key-ind")&&!re(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,_a(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}var bi=class{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 oh.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,rh.env.LOG_TOKENS&&console.log("|",Pa.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Pa.tokenType(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;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"){for(;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 n=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in n?n.indent:0:t.type==="flow-collection"&&n.type==="document"&&(t.indent=0),t.type==="flow-collection"&&$a(t),n.type){case"document":n.value=t;break;case"block-scalar":n.props.push(t);break;case"block-map":{let i=n.items[n.items.length-1];if(i.value){n.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=t;else{Object.assign(i,{key:t,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{let i=n.items[n.items.length-1];i.value?n.items.push({start:[],value:t}):i.value=t;break}case"flow-collection":{let i=n.items[n.items.length-1];!i||i.value?n.items.push({start:[],key:t,sep:[]}):i.sep?i.value=t:Object.assign(i,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let i=t.items[t.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&Ma(i.start)===-1&&(t.indent===0||i.start.every(r=>r.type!=="comment"||r.indent<t.indent))&&(n.type==="document"?n.end=i.start:n.items.push({start:i.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:[]};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":{Ma(e.start)!==-1?(yield*this.pop(),yield*this.step()):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);t?this.stack.push(t):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=Ns(this.peek(2)),n=Ce(t),i;e.end?(i=e.end,i.push(this.sourceToken),delete e.end):i=[this.sourceToken];let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}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(`
138
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===" "||e&&n===" ");let i=t-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=t),i}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};La.Lexer=mi});var bi=b(Pa=>{"use strict";var yi=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let i=this.lineStarts[t-1];return{line:t,col:e-i+1}}}};Pa.LineCounter=yi});var Si=b(Ba=>{"use strict";var oh=wt("process"),Ma=Ss(),ah=gi();function oe(s,e){for(let t=0;t<s.length;++t)if(s[t].type===e)return!0;return!1}function $a(s){for(let e=0;e<s.length;++e)switch(s[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function xa(s){switch(s?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Es(s){switch(s.type){case"document":return s.start;case"block-map":{let e=s.items[s.items.length-1];return e.sep??e.start}case"block-seq":return s.items[s.items.length-1].start;default:return[]}}function Le(s){if(s.length===0)return[];let e=s.length;e:for(;--e>=0;)switch(s[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;s[++e]?.type==="space";);return s.splice(e,s.length)}function _a(s){if(s.start.type==="flow-seq-start")for(let e of s.items)e.sep&&!e.value&&!oe(e.start,"explicit-key-ind")&&!oe(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,xa(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}var wi=class{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 ah.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,oh.env.LOG_TOKENS&&console.log("|",Ma.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Ma.tokenType(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;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"){for(;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 n=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in n?n.indent:0:t.type==="flow-collection"&&n.type==="document"&&(t.indent=0),t.type==="flow-collection"&&_a(t),n.type){case"document":n.value=t;break;case"block-scalar":n.props.push(t);break;case"block-map":{let i=n.items[n.items.length-1];if(i.value){n.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=t;else{Object.assign(i,{key:t,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{let i=n.items[n.items.length-1];i.value?n.items.push({start:[],value:t}):i.value=t;break}case"flow-collection":{let i=n.items[n.items.length-1];!i||i.value?n.items.push({start:[],key:t,sep:[]}):i.sep?i.value=t:Object.assign(i,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let i=t.items[t.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&$a(i.start)===-1&&(t.indent===0||i.start.every(r=>r.type!=="comment"||r.indent<t.indent))&&(n.type==="document"?n.end=i.start:n.items.push({start:i.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:[]};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":{$a(e.start)!==-1?(yield*this.pop(),yield*this.step()):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);t?this.stack.push(t):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=Es(this.peek(2)),n=Le(t),i;e.end?(i=e.end,i.push(this.sourceToken),delete e.end):i=[this.sourceToken];let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}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(`
139
139
  `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
140
- `,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 n="end"in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):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 i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,t.start),i.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,i=n&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",r=[];if(i&&t.sep&&!t.value){let o=[];for(let a=0;a<t.sep.length;++a){let l=t.sep[a];switch(l.type){case"newline":o.push(a);break;case"space":break;case"comment":l.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(r=t.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):i||t.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):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(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(re(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(_a(t.key)&&!re(t.sep,"newline")){let o=Ce(t.start),a=t.key,l=t.sep;l.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:l}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(re(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let o=Ce(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||i?e.items.push({start:r,key:null,sep:[this.sourceToken]}):re(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);i||t.value?(e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{let o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!t.explicitKey&&t.sep&&!re(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 n&&e.items.push({start:r});this.stack.push(o);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 n="end"in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):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 i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,t.start),i.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;t.value||re(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let i=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:i,sep:[]}):t.sep?this.stack.push(i):Object.assign(t,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){let i=Ns(n),r=Ce(i);$a(e);let o=e.end.splice(1,e.end.length);o.push(this.sourceToken);let a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
140
+ `,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 n="end"in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):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 i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,t.start),i.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,i=n&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",r=[];if(i&&t.sep&&!t.value){let o=[];for(let a=0;a<t.sep.length;++a){let l=t.sep[a];switch(l.type){case"newline":o.push(a);break;case"space":break;case"comment":l.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(r=t.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):i||t.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):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(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(oe(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(xa(t.key)&&!oe(t.sep,"newline")){let o=Le(t.start),a=t.key,l=t.sep;l.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:l}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(oe(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let o=Le(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||i?e.items.push({start:r,key:null,sep:[this.sourceToken]}):oe(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);i||t.value?(e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{let o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!t.explicitKey&&t.sep&&!oe(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 n&&e.items.push({start:r});this.stack.push(o);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 n="end"in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):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 i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,t.start),i.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;t.value||oe(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let i=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:i,sep:[]}):t.sep?this.stack.push(i):Object.assign(t,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){let i=Es(n),r=Le(i);_a(e);let o=e.end.splice(1,e.end.length);o.push(this.sourceToken);let a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
141
141
  `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
142
- `,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=Ns(e),n=Ce(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Ns(e),n=Ce(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],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;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};xa.Parser=bi});var Ka=b(gt=>{"use strict";var Ba=ri(),ah=at(),mt=ft(),lh=sn(),ch=O(),fh=yi(),Fa=wi();function ja(s){let e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new fh.LineCounter||null,prettyErrors:e}}function uh(s,e={}){let{lineCounter:t,prettyErrors:n}=ja(e),i=new Fa.Parser(t?.addNewLine),r=new Ba.Composer(e),o=Array.from(r.compose(i.parse(s)));if(n&&t)for(let a of o)a.errors.forEach(mt.prettifyError(s,t)),a.warnings.forEach(mt.prettifyError(s,t));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}function Va(s,e={}){let{lineCounter:t,prettyErrors:n}=ja(e),i=new Fa.Parser(t?.addNewLine),r=new Ba.Composer(e),o=null;for(let a of r.compose(i.parse(s),!0,s.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new mt.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(o.errors.forEach(mt.prettifyError(s,t)),o.warnings.forEach(mt.prettifyError(s,t))),o}function dh(s,e,t){let n;typeof e=="function"?n=e:t===void 0&&e&&typeof e=="object"&&(t=e);let i=Va(s,t);if(!i)return null;if(i.warnings.forEach(r=>lh.warn(i.options.logLevel,r)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:n},t))}function hh(s,e,t){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){let i=Math.round(t);t=i<1?void 0:i>8?{indent:8}:{indent:i}}if(s===void 0){let{keepUndefined:i}=t??e??{};if(!i)return}return ch.isDocument(s)&&!n?s.toString(t):new ah.Document(s,n,t).toString(t)}gt.parse=dh;gt.parseAllDocuments=uh;gt.parseDocument=Va;gt.stringify=hh});var Ya=b(k=>{"use strict";var ph=ri(),mh=at(),gh=jn(),Si=ft(),yh=Ue(),oe=O(),bh=te(),wh=C(),Sh=ne(),Nh=ie(),Eh=ws(),vh=mi(),Ah=yi(),Th=wi(),Es=Ka(),Ra=Ve();k.Composer=ph.Composer;k.Document=mh.Document;k.Schema=gh.Schema;k.YAMLError=Si.YAMLError;k.YAMLParseError=Si.YAMLParseError;k.YAMLWarning=Si.YAMLWarning;k.Alias=yh.Alias;k.isAlias=oe.isAlias;k.isCollection=oe.isCollection;k.isDocument=oe.isDocument;k.isMap=oe.isMap;k.isNode=oe.isNode;k.isPair=oe.isPair;k.isScalar=oe.isScalar;k.isSeq=oe.isSeq;k.Pair=bh.Pair;k.Scalar=wh.Scalar;k.YAMLMap=Sh.YAMLMap;k.YAMLSeq=Nh.YAMLSeq;k.CST=Eh;k.Lexer=vh.Lexer;k.LineCounter=Ah.LineCounter;k.Parser=Th.Parser;k.parse=Es.parse;k.parseAllDocuments=Es.parseAllDocuments;k.parseDocument=Es.parseDocument;k.stringify=Es.stringify;k.visit=Ra.visit;k.visitAsync=Ra.visitAsync});var Li=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Da=Li+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ha="["+Li+"]["+Da+"]*",za=new RegExp("^"+Ha+"$");function wt(s,e){let t=[],n=e.exec(s);for(;n;){let i=[];i.startIndex=e.lastIndex-n[0].length;let r=n.length;for(let o=0;o<r;o++)i.push(n[o]);t.push(i),n=e.exec(s)}return t}var ye=function(s){let e=za.exec(s);return!(e===null||typeof e>"u")};function Pi(s){return typeof s<"u"}var Za={allowBooleanAttributes:!1,unpairedTags:[]};function Bi(s,e){e=Object.assign({},Za,e);let t=[],n=!1,i=!1;s[0]==="\uFEFF"&&(s=s.substr(1));for(let r=0;r<s.length;r++)if(s[r]==="<"&&s[r+1]==="?"){if(r+=2,r=$i(s,r),r.err)return r}else if(s[r]==="<"){let o=r;if(r++,s[r]==="!"){r=_i(s,r);continue}else{let a=!1;s[r]==="/"&&(a=!0,r++);let l="";for(;r<s.length&&s[r]!==">"&&s[r]!==" "&&s[r]!==" "&&s[r]!==`
143
- `&&s[r]!=="\r";r++)l+=s[r];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),r--),!al(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",I("InvalidTag",f,_(s,r))}let c=sl(s,r);if(c===!1)return I("InvalidAttr","Attributes for '"+l+"' have open quote.",_(s,r));let u=c.value;if(r=c.index,u[u.length-1]==="/"){let f=r-u.length;u=u.substring(0,u.length-1);let d=xi(u,e);if(d===!0)n=!0;else return I(d.err.code,d.err.msg,_(s,f+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return I("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",_(s,o));if(t.length===0)return I("InvalidTag","Closing tag '"+l+"' has not been opened.",_(s,o));{let f=t.pop();if(l!==f.tagName){let d=_(s,f.tagStartPos);return I("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+l+"'.",_(s,o))}t.length==0&&(i=!0)}}else return I("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",_(s,r));else{let f=xi(u,e);if(f!==!0)return I(f.err.code,f.err.msg,_(s,r-u.length+f.err.line));if(i===!0)return I("InvalidXml","Multiple possible root nodes found.",_(s,r));e.unpairedTags.indexOf(l)!==-1||t.push({tagName:l,tagStartPos:o}),n=!0}for(r++;r<s.length;r++)if(s[r]==="<")if(s[r+1]==="!"){r++,r=_i(s,r);continue}else if(s[r+1]==="?"){if(r=$i(s,++r),r.err)return r}else break;else if(s[r]==="&"){let f=rl(s,r);if(f==-1)return I("InvalidChar","char '&' is not expected.",_(s,r));r=f}else if(i===!0&&!Mi(s[r]))return I("InvalidXml","Extra text at the end",_(s,r));s[r]==="<"&&r--}}else{if(Mi(s[r]))continue;return I("InvalidChar","char '"+s[r]+"' is not expected.",_(s,r))}if(n){if(t.length==1)return I("InvalidTag","Unclosed tag '"+t[0].tagName+"'.",_(s,t[0].tagStartPos));if(t.length>0)return I("InvalidXml","Invalid '"+JSON.stringify(t.map(r=>r.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return I("InvalidXml","Start tag expected.",1);return!0}function Mi(s){return s===" "||s===" "||s===`
144
- `||s==="\r"}function $i(s,e){let t=e;for(;e<s.length;e++)if(s[e]=="?"||s[e]==" "){let n=s.substr(t,e-t);if(e>5&&n==="xml")return I("InvalidXml","XML declaration allowed only at the start of the document.",_(s,e));if(s[e]=="?"&&s[e+1]==">"){e++;break}else continue}return e}function _i(s,e){if(s.length>e+5&&s[e+1]==="-"&&s[e+2]==="-"){for(e+=3;e<s.length;e++)if(s[e]==="-"&&s[e+1]==="-"&&s[e+2]===">"){e+=2;break}}else if(s.length>e+8&&s[e+1]==="D"&&s[e+2]==="O"&&s[e+3]==="C"&&s[e+4]==="T"&&s[e+5]==="Y"&&s[e+6]==="P"&&s[e+7]==="E"){let t=1;for(e+=8;e<s.length;e++)if(s[e]==="<")t++;else if(s[e]===">"&&(t--,t===0))break}else if(s.length>e+9&&s[e+1]==="["&&s[e+2]==="C"&&s[e+3]==="D"&&s[e+4]==="A"&&s[e+5]==="T"&&s[e+6]==="A"&&s[e+7]==="["){for(e+=8;e<s.length;e++)if(s[e]==="]"&&s[e+1]==="]"&&s[e+2]===">"){e+=2;break}}return e}var el='"',tl="'";function sl(s,e){let t="",n="",i=!1;for(;e<s.length;e++){if(s[e]===el||s[e]===tl)n===""?n=s[e]:n!==s[e]||(n="");else if(s[e]===">"&&n===""){i=!0;break}t+=s[e]}return n!==""?!1:{value:t,index:e,tagClosed:i}}var nl=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function xi(s,e){let t=wt(s,nl),n={};for(let i=0;i<t.length;i++){if(t[i][1].length===0)return I("InvalidAttr","Attribute '"+t[i][2]+"' has no space in starting.",Pe(t[i]));if(t[i][3]!==void 0&&t[i][4]===void 0)return I("InvalidAttr","Attribute '"+t[i][2]+"' is without value.",Pe(t[i]));if(t[i][3]===void 0&&!e.allowBooleanAttributes)return I("InvalidAttr","boolean attribute '"+t[i][2]+"' is not allowed.",Pe(t[i]));let r=t[i][2];if(!ol(r))return I("InvalidAttr","Attribute '"+r+"' is an invalid name.",Pe(t[i]));if(!n.hasOwnProperty(r))n[r]=1;else return I("InvalidAttr","Attribute '"+r+"' is repeated.",Pe(t[i]))}return!0}function il(s,e){let t=/\d/;for(s[e]==="x"&&(e++,t=/[\da-fA-F]/);e<s.length;e++){if(s[e]===";")return e;if(!s[e].match(t))break}return-1}function rl(s,e){if(e++,s[e]===";")return-1;if(s[e]==="#")return e++,il(s,e);let t=0;for(;e<s.length;e++,t++)if(!(s[e].match(/\w/)&&t<20)){if(s[e]===";")break;return-1}return e}function I(s,e,t){return{err:{code:s,msg:e,line:t.line||t,col:t.col}}}function ol(s){return ye(s)}function al(s){return ye(s)}function _(s,e){let t=s.substring(0,e).split(/\r?\n/);return{line:t.length,col:t[t.length-1].length+1}}function Pe(s){return s.startIndex+s[1].length}var ll={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(s,e){return e},attributeValueProcessor:function(s,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(s,e,t){return s},captureMetaData:!1},Fi=function(s){return Object.assign({},ll,s)};var St;typeof Symbol!="function"?St="@@xmlMetadata":St=Symbol("XML Node Metadata");var V=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][St]={startIndex:t})}static getMetaDataSymbol(){return St}};var $e=class{constructor(e){this.suppressValidationErr=!e}readDocType(e,t){let n={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let i=1,r=!1,o=!1,a="";for(;t<e.length;t++)if(e[t]==="<"&&!o){if(r&&le(e,"!ENTITY",t)){t+=7;let l,c;[l,c,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),c.indexOf("&")===-1&&(n[l]={regx:RegExp(`&${l};`,"g"),val:c})}else if(r&&le(e,"!ELEMENT",t)){t+=8;let{index:l}=this.readElementExp(e,t+1);t=l}else if(r&&le(e,"!ATTLIST",t))t+=8;else if(r&&le(e,"!NOTATION",t)){t+=9;let{index:l}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=l}else if(le(e,"!--",t))o=!0;else throw new Error("Invalid DOCTYPE");i++,a=""}else if(e[t]===">"){if(o?e[t-1]==="-"&&e[t-2]==="-"&&(o=!1,i--):i--,i===0)break}else e[t]==="["?r=!0:a+=e[t];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:t}}readEntityExp(e,t){t=x(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t])&&e[t]!=='"'&&e[t]!=="'";)n+=e[t],t++;if(Me(n),t=x(e,t),!this.suppressValidationErr){if(e.substring(t,t+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(e[t]==="%")throw new Error("Parameter entities are not supported")}let i="";return[t,i]=this.readIdentifierVal(e,t,"entity"),t--,[n,i,t]}readNotationExp(e,t){t=x(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;!this.suppressValidationErr&&Me(n),t=x(e,t);let i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&i!=="SYSTEM"&&i!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=x(e,t);let r=null,o=null;if(i==="PUBLIC")[t,r]=this.readIdentifierVal(e,t,"publicIdentifier"),t=x(e,t),(e[t]==='"'||e[t]==="'")&&([t,o]=this.readIdentifierVal(e,t,"systemIdentifier"));else if(i==="SYSTEM"&&([t,o]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!o))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:r,systemIdentifier:o,index:--t}}readIdentifierVal(e,t,n){let i="",r=e[t];if(r!=='"'&&r!=="'")throw new Error(`Expected quoted string, found "${r}"`);for(t++;t<e.length&&e[t]!==r;)i+=e[t],t++;if(e[t]!==r)throw new Error(`Unterminated ${n} value`);return t++,[t,i]}readElementExp(e,t){t=x(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;if(!this.suppressValidationErr&&!ye(n))throw new Error(`Invalid element name: "${n}"`);t=x(e,t);let i="";if(e[t]==="E"&&le(e,"MPTY",t))t+=4;else if(e[t]==="A"&&le(e,"NY",t))t+=2;else if(e[t]==="("){for(t++;t<e.length&&e[t]!==")";)i+=e[t],t++;if(e[t]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:n,contentModel:i.trim(),index:t}}readAttlistExp(e,t){t=x(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;Me(n),t=x(e,t);let i="";for(;t<e.length&&!/\s/.test(e[t]);)i+=e[t],t++;if(!Me(i))throw new Error(`Invalid attribute name: "${i}"`);t=x(e,t);let r="";if(e.substring(t,t+8).toUpperCase()==="NOTATION"){if(r="NOTATION",t+=8,t=x(e,t),e[t]!=="(")throw new Error(`Expected '(', found "${e[t]}"`);t++;let a=[];for(;t<e.length&&e[t]!==")";){let l="";for(;t<e.length&&e[t]!=="|"&&e[t]!==")";)l+=e[t],t++;if(l=l.trim(),!Me(l))throw new Error(`Invalid notation name: "${l}"`);a.push(l),e[t]==="|"&&(t++,t=x(e,t))}if(e[t]!==")")throw new Error("Unterminated list of notations");t++,r+=" ("+a.join("|")+")"}else{for(;t<e.length&&!/\s/.test(e[t]);)r+=e[t],t++;let a=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!a.includes(r.toUpperCase()))throw new Error(`Invalid attribute type: "${r}"`)}t=x(e,t);let o="";return e.substring(t,t+8).toUpperCase()==="#REQUIRED"?(o="#REQUIRED",t+=8):e.substring(t,t+7).toUpperCase()==="#IMPLIED"?(o="#IMPLIED",t+=7):[t,o]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:n,attributeName:i,attributeType:r,defaultValue:o,index:t}}},x=(s,e)=>{for(;e<s.length&&/\s/.test(s[e]);)e++;return e};function le(s,e,t){for(let n=0;n<e.length;n++)if(e[n]!==s[t+n+1])return!1;return!0}function Me(s){if(ye(s))return s;throw new Error(`Invalid entity name ${s}`)}var cl=/^[-+]?0x[a-fA-F0-9]+$/,fl=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,ul={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function qs(s,e={}){if(e=Object.assign({},ul,e),!s||typeof s!="string")return s;let t=s.trim();if(e.skipLike!==void 0&&e.skipLike.test(t))return s;if(s==="0")return 0;if(e.hex&&cl.test(t))return ml(t,16);if(t.includes("e")||t.includes("E"))return hl(s,t,e);{let n=fl.exec(t);if(n){let i=n[1]||"",r=n[2],o=pl(n[3]),a=i?s[r.length+1]===".":s[r.length]===".";if(!e.leadingZeros&&(r.length>1||r.length===1&&!a))return s;{let l=Number(t),c=String(l);if(l===0)return l;if(c.search(/[eE]/)!==-1)return e.eNotation?l:s;if(t.indexOf(".")!==-1)return c==="0"||c===o||c===`${i}${o}`?l:s;let u=r?o:t;return r?u===c||i+u===c?l:s:u===c||u===i+c?l:s}}else return s}}var dl=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function hl(s,e,t){if(!t.eNotation)return s;let n=e.match(dl);if(n){let i=n[1]||"",r=n[3].indexOf("e")===-1?"E":"e",o=n[2],a=i?s[o.length+1]===r:s[o.length]===r;return o.length>1&&a?s:o.length===1&&(n[3].startsWith(`.${r}`)||n[3][0]===r)?Number(e):t.leadingZeros&&!a?(e=(n[1]||"")+n[3],Number(e)):s}else return s}function pl(s){return s&&s.indexOf(".")!==-1&&(s=s.replace(/0+$/,""),s==="."?s="0":s[0]==="."?s="0"+s:s[s.length-1]==="."&&(s=s.substring(0,s.length-1))),s}function ml(s,e){if(parseInt)return parseInt(s,e);if(Number.parseInt)return Number.parseInt(s,e);if(window&&window.parseInt)return window.parseInt(s,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function _e(s){return typeof s=="function"?s:Array.isArray(s)?e=>{for(let t of s)if(typeof t=="string"&&e===t||t instanceof RegExp&&t.test(e))return!0}:()=>!1}var xe=class{constructor(e){if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,n)=>String.fromCodePoint(Number.parseInt(n,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,n)=>String.fromCodePoint(Number.parseInt(n,16))}},this.addExternalEntities=gl,this.parseXml=Nl,this.parseTextData=yl,this.resolveNameSpace=bl,this.buildAttributesMap=Sl,this.isItStopNode=Tl,this.replaceEntitiesValue=vl,this.readStopNodeData=kl,this.saveTextToParentTag=Al,this.addChild=El,this.ignoreAttributesFn=_e(this.options.ignoreAttributes),this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let t=0;t<this.options.stopNodes.length;t++){let n=this.options.stopNodes[t];typeof n=="string"&&(n.startsWith("*.")?this.stopNodesWildcard.add(n.substring(2)):this.stopNodesExact.add(n))}}}};function gl(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:s[n]}}}function yl(s,e,t,n,i,r,o){if(s!==void 0&&(this.options.trimValues&&!n&&(s=s.trim()),s.length>0)){o||(s=this.replaceEntitiesValue(s));let a=this.options.tagValueProcessor(e,s,t,i,r);return a==null?s:typeof a!=typeof s||a!==s?a:this.options.trimValues?Cs(s,this.options.parseTagValue,this.options.numberParseOptions):s.trim()===s?Cs(s,this.options.parseTagValue,this.options.numberParseOptions):s}}function bl(s){if(this.options.removeNSPrefix){let e=s.split(":"),t=s.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(s=t+e[1])}return s}var wl=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Sl(s,e){if(this.options.ignoreAttributes!==!0&&typeof s=="string"){let t=wt(s,wl),n=t.length,i={};for(let r=0;r<n;r++){let o=this.resolveNameSpace(t[r][1]);if(this.ignoreAttributesFn(o,e))continue;let a=t[r][4],l=this.options.attributeNamePrefix+o;if(o.length)if(this.options.transformAttributeName&&(l=this.options.transformAttributeName(l)),l==="__proto__"&&(l="#__proto__"),a!==void 0){this.options.trimValues&&(a=a.trim()),a=this.replaceEntitiesValue(a);let c=this.options.attributeValueProcessor(o,a,e);c==null?i[l]=a:typeof c!=typeof a||c!==a?i[l]=c:i[l]=Cs(a,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[l]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){let r={};return r[this.options.attributesGroupName]=i,r}return i}}var Nl=function(s){s=s.replace(/\r\n?/g,`
145
- `);let e=new V("!xml"),t=e,n="",i="",r=new $e(this.options.processEntities);for(let o=0;o<s.length;o++)if(s[o]==="<")if(s[o+1]==="/"){let l=ce(s,">",o,"Closing Tag is not closed."),c=s.substring(o+2,l).trim();if(this.options.removeNSPrefix){let d=c.indexOf(":");d!==-1&&(c=c.substr(d+1))}this.options.transformTagName&&(c=this.options.transformTagName(c)),t&&(n=this.saveTextToParentTag(n,t,i));let u=i.substring(i.lastIndexOf(".")+1);if(c&&this.options.unpairedTags.indexOf(c)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`);let f=0;u&&this.options.unpairedTags.indexOf(u)!==-1?(f=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):f=i.lastIndexOf("."),i=i.substring(0,f),t=this.tagsNodeStack.pop(),n="",o=l}else if(s[o+1]==="?"){let l=Is(s,o,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,t,i),!(this.options.ignoreDeclaration&&l.tagName==="?xml"||this.options.ignorePiTags)){let c=new V(l.tagName);c.add(this.options.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&(c[":@"]=this.buildAttributesMap(l.tagExp,i)),this.addChild(t,c,i,o)}o=l.closeIndex+1}else if(s.substr(o+1,3)==="!--"){let l=ce(s,"-->",o+4,"Comment is not closed.");if(this.options.commentPropName){let c=s.substring(o+4,l-2);n=this.saveTextToParentTag(n,t,i),t.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}o=l}else if(s.substr(o+1,2)==="!D"){let l=r.readDocType(s,o);this.docTypeEntities=l.entities,o=l.i}else if(s.substr(o+1,2)==="!["){let l=ce(s,"]]>",o,"CDATA is not closed.")-2,c=s.substring(o+9,l);n=this.saveTextToParentTag(n,t,i);let u=this.parseTextData(c,t.tagname,i,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?t.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}]):t.add(this.options.textNodeName,u),o=l+2}else{let l=Is(s,o,this.options.removeNSPrefix),c=l.tagName,u=l.rawTagName,f=l.tagExp,d=l.attrExpPresent,p=l.closeIndex;if(this.options.transformTagName){let m=this.options.transformTagName(c);f===c&&(f=m),c=m}t&&n&&t.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,t,i,!1));let g=t;g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(t=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),c!==e.tagname&&(i+=i?"."+c:c);let h=o;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,i,c)){let m="";if(f.length>0&&f.lastIndexOf("/")===f.length-1)c[c.length-1]==="/"?(c=c.substr(0,c.length-1),i=i.substr(0,i.length-1),f=c):f=f.substr(0,f.length-1),o=l.closeIndex;else if(this.options.unpairedTags.indexOf(c)!==-1)o=l.closeIndex;else{let y=this.readStopNodeData(s,u,p+1);if(!y)throw new Error(`Unexpected end of ${u}`);o=y.i,m=y.tagContent}let w=new V(c);c!==f&&d&&(w[":@"]=this.buildAttributesMap(f,i)),m&&(m=this.parseTextData(m,c,i,!0,d,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),w.add(this.options.textNodeName,m),this.addChild(t,w,i,h)}else{if(f.length>0&&f.lastIndexOf("/")===f.length-1){if(c[c.length-1]==="/"?(c=c.substr(0,c.length-1),i=i.substr(0,i.length-1),f=c):f=f.substr(0,f.length-1),this.options.transformTagName){let w=this.options.transformTagName(c);f===c&&(f=w),c=w}let m=new V(c);c!==f&&d&&(m[":@"]=this.buildAttributesMap(f,i)),this.addChild(t,m,i,h),i=i.substr(0,i.lastIndexOf("."))}else{let m=new V(c);this.tagsNodeStack.push(t),c!==f&&d&&(m[":@"]=this.buildAttributesMap(f,i)),this.addChild(t,m,i,h),t=m}n="",o=p}}else n+=s[o];return e.child};function El(s,e,t,n){this.options.captureMetaData||(n=void 0);let i=this.options.updateTag(e.tagname,t,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),s.addChild(e,n))}var vl=function(s){if(this.options.processEntities){for(let e in this.docTypeEntities){let t=this.docTypeEntities[e];s=s.replace(t.regx,t.val)}for(let e in this.lastEntities){let t=this.lastEntities[e];s=s.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let t=this.htmlEntities[e];s=s.replace(t.regex,t.val)}s=s.replace(this.ampEntity.regex,this.ampEntity.val)}return s};function Al(s,e,t,n){return s&&(n===void 0&&(n=e.child.length===0),s=this.parseTextData(s,e.tagname,t,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),s!==void 0&&s!==""&&e.add(this.options.textNodeName,s),s=""),s}function Tl(s,e,t,n){return!!(e&&e.has(n)||s&&s.has(t))}function Ol(s,e,t=">"){let n,i="";for(let r=e;r<s.length;r++){let o=s[r];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===t[0])if(t[1]){if(s[r+1]===t[1])return{data:i,index:r}}else return{data:i,index:r};else o===" "&&(o=" ");i+=o}}function ce(s,e,t,n){let i=s.indexOf(e,t);if(i===-1)throw new Error(n);return i+e.length-1}function Is(s,e,t,n=">"){let i=Ol(s,e+1,n);if(!i)return;let r=i.data,o=i.index,a=r.search(/\s/),l=r,c=!0;a!==-1&&(l=r.substring(0,a),r=r.substring(a+1).trimStart());let u=l;if(t){let f=l.indexOf(":");f!==-1&&(l=l.substr(f+1),c=l!==i.data.substr(f+1))}return{tagName:l,tagExp:r,closeIndex:o,attrExpPresent:c,rawTagName:u}}function kl(s,e,t){let n=t,i=1;for(;t<s.length;t++)if(s[t]==="<")if(s[t+1]==="/"){let r=ce(s,">",t,`${e} is not closed`);if(s.substring(t+2,r).trim()===e&&(i--,i===0))return{tagContent:s.substring(n,t),i:r};t=r}else if(s[t+1]==="?")t=ce(s,"?>",t+1,"StopNode is not closed.");else if(s.substr(t+1,3)==="!--")t=ce(s,"-->",t+3,"StopNode is not closed.");else if(s.substr(t+1,2)==="![")t=ce(s,"]]>",t,"StopNode is not closed.")-2;else{let r=Is(s,t,">");r&&((r&&r.tagName)===e&&r.tagExp[r.tagExp.length-1]!=="/"&&i++,t=r.closeIndex)}}function Cs(s,e,t){if(e&&typeof s=="string"){let n=s.trim();return n==="true"?!0:n==="false"?!1:qs(s,t)}else return Pi(s)?s:""}var Ls=V.getMetaDataSymbol();function Ps(s,e){return ji(s,e)}function ji(s,e,t){let n,i={};for(let r=0;r<s.length;r++){let o=s[r],a=ql(o),l="";if(t===void 0?l=a:l=t+"."+a,a===e.textNodeName)n===void 0?n=o[a]:n+=""+o[a];else{if(a===void 0)continue;if(o[a]){let c=ji(o[a],e,l),u=Cl(c,e);o[Ls]!==void 0&&(c[Ls]=o[Ls]),o[":@"]?Il(c,o[":@"],l,e):Object.keys(c).length===1&&c[e.textNodeName]!==void 0&&!e.alwaysCreateTextNode?c=c[e.textNodeName]:Object.keys(c).length===0&&(e.alwaysCreateTextNode?c[e.textNodeName]="":c=""),i[a]!==void 0&&i.hasOwnProperty(a)?(Array.isArray(i[a])||(i[a]=[i[a]]),i[a].push(c)):e.isArray(a,l,u)?i[a]=[c]:i[a]=c}}}return typeof n=="string"?n.length>0&&(i[e.textNodeName]=n):n!==void 0&&(i[e.textNodeName]=n),i}function ql(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];if(n!==":@")return n}}function Il(s,e,t,n){if(e){let i=Object.keys(e),r=i.length;for(let o=0;o<r;o++){let a=i[o];n.isArray(a,t+"."+a,!0,!0)?s[a]=[e[a]]:s[a]=e[a]}}}function Cl(s,e){let{textNodeName:t}=e,n=Object.keys(s).length;return!!(n===0||n===1&&(s[t]||typeof s[t]=="boolean"||s[t]===0))}var be=class{constructor(e){this.externalEntities={},this.options=Fi(e)}parse(e,t){if(typeof e!="string"&&e.toString)e=e.toString();else if(typeof e!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});let r=Bi(e,t);if(r!==!0)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}let n=new xe(this.options);n.addExternalEntities(this.externalEntities);let i=n.parseXml(e);return this.options.preserveOrder||i===void 0?i:Ps(i,this.options)}addEntity(e,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(e.indexOf("&")!==-1||e.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return V.getMetaDataSymbol()}};function Ms(s,e){let t="";return e.format&&e.indentBy.length>0&&(t=`
146
- `),Ki(s,e,"",t)}function Ki(s,e,t,n){let i="",r=!1;for(let o=0;o<s.length;o++){let a=s[o],l=Ll(a);if(l===void 0)continue;let c="";if(t.length===0?c=l:c=`${t}.${l}`,l===e.textNodeName){let g=a[l];Pl(c,e)||(g=e.tagValueProcessor(l,g),g=Ri(g,e)),r&&(i+=n),i+=g,r=!1;continue}else if(l===e.cdataPropName){r&&(i+=n),i+=`<![CDATA[${a[l][0][e.textNodeName]}]]>`,r=!1;continue}else if(l===e.commentPropName){i+=n+`<!--${a[l][0][e.textNodeName]}-->`,r=!0;continue}else if(l[0]==="?"){let g=Vi(a[":@"],e),h=l==="?xml"?"":n,m=a[l][0][e.textNodeName];m=m.length!==0?" "+m:"",i+=h+`<${l}${m}${g}?>`,r=!0;continue}let u=n;u!==""&&(u+=e.indentBy);let f=Vi(a[":@"],e),d=n+`<${l}${f}`,p=Ki(a[l],e,c,u);e.unpairedTags.indexOf(l)!==-1?e.suppressUnpairedNode?i+=d+">":i+=d+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=d+"/>":p&&p.endsWith(">")?i+=d+`>${p}${n}</${l}>`:(i+=d+">",p&&n!==""&&(p.includes("/>")||p.includes("</"))?i+=n+e.indentBy+p+n:i+=p,i+=`</${l}>`),r=!0}return i}function Ll(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];if(s.hasOwnProperty(n)&&n!==":@")return n}}function Vi(s,e){let t="";if(s&&!e.ignoreAttributes)for(let n in s){if(!s.hasOwnProperty(n))continue;let i=e.attributeValueProcessor(n,s[n]);i=Ri(i,e),i===!0&&e.suppressBooleanAttributes?t+=` ${n.substr(e.attributeNamePrefix.length)}`:t+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return t}function Pl(s,e){s=s.substr(0,s.length-e.textNodeName.length-1);let t=s.substr(s.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===s||e.stopNodes[n]==="*."+t)return!0;return!1}function Ri(s,e){if(s&&s.length>0&&e.processEntities)for(let t=0;t<e.entities.length;t++){let n=e.entities[t];s=s.replace(n.regex,n.val)}return s}var Ml={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,e){return e},attributeValueProcessor:function(s,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function R(s){this.options=Object.assign({},Ml,s),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=_e(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=xl),this.processTextOrObjNode=$l,this.options.format?(this.indentate=_l,this.tagEndChar=`>
142
+ `,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=Es(e),n=Le(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Es(e),n=Le(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],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;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};Ba.Parser=wi});var Ra=b(yt=>{"use strict";var Fa=oi(),lh=lt(),gt=ut(),ch=nn(),fh=O(),uh=bi(),ja=Si();function Va(s){let e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new uh.LineCounter||null,prettyErrors:e}}function dh(s,e={}){let{lineCounter:t,prettyErrors:n}=Va(e),i=new ja.Parser(t?.addNewLine),r=new Fa.Composer(e),o=Array.from(r.compose(i.parse(s)));if(n&&t)for(let a of o)a.errors.forEach(gt.prettifyError(s,t)),a.warnings.forEach(gt.prettifyError(s,t));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}function Ka(s,e={}){let{lineCounter:t,prettyErrors:n}=Va(e),i=new ja.Parser(t?.addNewLine),r=new Fa.Composer(e),o=null;for(let a of r.compose(i.parse(s),!0,s.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new gt.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(o.errors.forEach(gt.prettifyError(s,t)),o.warnings.forEach(gt.prettifyError(s,t))),o}function hh(s,e,t){let n;typeof e=="function"?n=e:t===void 0&&e&&typeof e=="object"&&(t=e);let i=Ka(s,t);if(!i)return null;if(i.warnings.forEach(r=>ch.warn(i.options.logLevel,r)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:n},t))}function ph(s,e,t){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){let i=Math.round(t);t=i<1?void 0:i>8?{indent:8}:{indent:i}}if(s===void 0){let{keepUndefined:i}=t??e??{};if(!i)return}return fh.isDocument(s)&&!n?s.toString(t):new lh.Document(s,n,t).toString(t)}yt.parse=hh;yt.parseAllDocuments=dh;yt.parseDocument=Ka;yt.stringify=ph});var Ua=b(k=>{"use strict";var mh=oi(),gh=lt(),yh=Vn(),Ni=ut(),bh=Je(),ae=O(),wh=se(),Sh=C(),Nh=ie(),Eh=re(),vh=Ss(),Ah=gi(),Th=bi(),Oh=Si(),vs=Ra(),Ya=Ke();k.Composer=mh.Composer;k.Document=gh.Document;k.Schema=yh.Schema;k.YAMLError=Ni.YAMLError;k.YAMLParseError=Ni.YAMLParseError;k.YAMLWarning=Ni.YAMLWarning;k.Alias=bh.Alias;k.isAlias=ae.isAlias;k.isCollection=ae.isCollection;k.isDocument=ae.isDocument;k.isMap=ae.isMap;k.isNode=ae.isNode;k.isPair=ae.isPair;k.isScalar=ae.isScalar;k.isSeq=ae.isSeq;k.Pair=wh.Pair;k.Scalar=Sh.Scalar;k.YAMLMap=Nh.YAMLMap;k.YAMLSeq=Eh.YAMLSeq;k.CST=vh;k.Lexer=Ah.Lexer;k.LineCounter=Th.LineCounter;k.Parser=Oh.Parser;k.parse=vs.parse;k.parseAllDocuments=vs.parseAllDocuments;k.parseDocument=vs.parseDocument;k.stringify=vs.stringify;k.visit=Ya.visit;k.visitAsync=Ya.visitAsync});var Pi=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ha=Pi+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",za="["+Pi+"]["+Ha+"]*",Za=new RegExp("^"+za+"$");function St(s,e){let t=[],n=e.exec(s);for(;n;){let i=[];i.startIndex=e.lastIndex-n[0].length;let r=n.length;for(let o=0;o<r;o++)i.push(n[o]);t.push(i),n=e.exec(s)}return t}var be=function(s){let e=Za.exec(s);return!(e===null||typeof e>"u")};function Mi(s){return typeof s<"u"}var el={allowBooleanAttributes:!1,unpairedTags:[]};function Fi(s,e){e=Object.assign({},el,e);let t=[],n=!1,i=!1;s[0]==="\uFEFF"&&(s=s.substr(1));for(let r=0;r<s.length;r++)if(s[r]==="<"&&s[r+1]==="?"){if(r+=2,r=_i(s,r),r.err)return r}else if(s[r]==="<"){let o=r;if(r++,s[r]==="!"){r=xi(s,r);continue}else{let a=!1;s[r]==="/"&&(a=!0,r++);let l="";for(;r<s.length&&s[r]!==">"&&s[r]!==" "&&s[r]!==" "&&s[r]!==`
143
+ `&&s[r]!=="\r";r++)l+=s[r];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),r--),!ll(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",I("InvalidTag",f,_(s,r))}let c=nl(s,r);if(c===!1)return I("InvalidAttr","Attributes for '"+l+"' have open quote.",_(s,r));let u=c.value;if(r=c.index,u[u.length-1]==="/"){let f=r-u.length;u=u.substring(0,u.length-1);let d=Bi(u,e);if(d===!0)n=!0;else return I(d.err.code,d.err.msg,_(s,f+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return I("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",_(s,o));if(t.length===0)return I("InvalidTag","Closing tag '"+l+"' has not been opened.",_(s,o));{let f=t.pop();if(l!==f.tagName){let d=_(s,f.tagStartPos);return I("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+l+"'.",_(s,o))}t.length==0&&(i=!0)}}else return I("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",_(s,r));else{let f=Bi(u,e);if(f!==!0)return I(f.err.code,f.err.msg,_(s,r-u.length+f.err.line));if(i===!0)return I("InvalidXml","Multiple possible root nodes found.",_(s,r));e.unpairedTags.indexOf(l)!==-1||t.push({tagName:l,tagStartPos:o}),n=!0}for(r++;r<s.length;r++)if(s[r]==="<")if(s[r+1]==="!"){r++,r=xi(s,r);continue}else if(s[r+1]==="?"){if(r=_i(s,++r),r.err)return r}else break;else if(s[r]==="&"){let f=ol(s,r);if(f==-1)return I("InvalidChar","char '&' is not expected.",_(s,r));r=f}else if(i===!0&&!$i(s[r]))return I("InvalidXml","Extra text at the end",_(s,r));s[r]==="<"&&r--}}else{if($i(s[r]))continue;return I("InvalidChar","char '"+s[r]+"' is not expected.",_(s,r))}if(n){if(t.length==1)return I("InvalidTag","Unclosed tag '"+t[0].tagName+"'.",_(s,t[0].tagStartPos));if(t.length>0)return I("InvalidXml","Invalid '"+JSON.stringify(t.map(r=>r.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return I("InvalidXml","Start tag expected.",1);return!0}function $i(s){return s===" "||s===" "||s===`
144
+ `||s==="\r"}function _i(s,e){let t=e;for(;e<s.length;e++)if(s[e]=="?"||s[e]==" "){let n=s.substr(t,e-t);if(e>5&&n==="xml")return I("InvalidXml","XML declaration allowed only at the start of the document.",_(s,e));if(s[e]=="?"&&s[e+1]==">"){e++;break}else continue}return e}function xi(s,e){if(s.length>e+5&&s[e+1]==="-"&&s[e+2]==="-"){for(e+=3;e<s.length;e++)if(s[e]==="-"&&s[e+1]==="-"&&s[e+2]===">"){e+=2;break}}else if(s.length>e+8&&s[e+1]==="D"&&s[e+2]==="O"&&s[e+3]==="C"&&s[e+4]==="T"&&s[e+5]==="Y"&&s[e+6]==="P"&&s[e+7]==="E"){let t=1;for(e+=8;e<s.length;e++)if(s[e]==="<")t++;else if(s[e]===">"&&(t--,t===0))break}else if(s.length>e+9&&s[e+1]==="["&&s[e+2]==="C"&&s[e+3]==="D"&&s[e+4]==="A"&&s[e+5]==="T"&&s[e+6]==="A"&&s[e+7]==="["){for(e+=8;e<s.length;e++)if(s[e]==="]"&&s[e+1]==="]"&&s[e+2]===">"){e+=2;break}}return e}var tl='"',sl="'";function nl(s,e){let t="",n="",i=!1;for(;e<s.length;e++){if(s[e]===tl||s[e]===sl)n===""?n=s[e]:n!==s[e]||(n="");else if(s[e]===">"&&n===""){i=!0;break}t+=s[e]}return n!==""?!1:{value:t,index:e,tagClosed:i}}var il=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Bi(s,e){let t=St(s,il),n={};for(let i=0;i<t.length;i++){if(t[i][1].length===0)return I("InvalidAttr","Attribute '"+t[i][2]+"' has no space in starting.",Me(t[i]));if(t[i][3]!==void 0&&t[i][4]===void 0)return I("InvalidAttr","Attribute '"+t[i][2]+"' is without value.",Me(t[i]));if(t[i][3]===void 0&&!e.allowBooleanAttributes)return I("InvalidAttr","boolean attribute '"+t[i][2]+"' is not allowed.",Me(t[i]));let r=t[i][2];if(!al(r))return I("InvalidAttr","Attribute '"+r+"' is an invalid name.",Me(t[i]));if(!n.hasOwnProperty(r))n[r]=1;else return I("InvalidAttr","Attribute '"+r+"' is repeated.",Me(t[i]))}return!0}function rl(s,e){let t=/\d/;for(s[e]==="x"&&(e++,t=/[\da-fA-F]/);e<s.length;e++){if(s[e]===";")return e;if(!s[e].match(t))break}return-1}function ol(s,e){if(e++,s[e]===";")return-1;if(s[e]==="#")return e++,rl(s,e);let t=0;for(;e<s.length;e++,t++)if(!(s[e].match(/\w/)&&t<20)){if(s[e]===";")break;return-1}return e}function I(s,e,t){return{err:{code:s,msg:e,line:t.line||t,col:t.col}}}function al(s){return be(s)}function ll(s){return be(s)}function _(s,e){let t=s.substring(0,e).split(/\r?\n/);return{line:t.length,col:t[t.length-1].length+1}}function Me(s){return s.startIndex+s[1].length}var cl={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(s,e){return e},attributeValueProcessor:function(s,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(s,e,t){return s},captureMetaData:!1},ji=function(s){return Object.assign({},cl,s)};var Nt;typeof Symbol!="function"?Nt="@@xmlMetadata":Nt=Symbol("XML Node Metadata");var V=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][Nt]={startIndex:t})}static getMetaDataSymbol(){return Nt}};var _e=class{constructor(e){this.suppressValidationErr=!e}readDocType(e,t){let n={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let i=1,r=!1,o=!1,a="";for(;t<e.length;t++)if(e[t]==="<"&&!o){if(r&&ce(e,"!ENTITY",t)){t+=7;let l,c;[l,c,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),c.indexOf("&")===-1&&(n[l]={regx:RegExp(`&${l};`,"g"),val:c})}else if(r&&ce(e,"!ELEMENT",t)){t+=8;let{index:l}=this.readElementExp(e,t+1);t=l}else if(r&&ce(e,"!ATTLIST",t))t+=8;else if(r&&ce(e,"!NOTATION",t)){t+=9;let{index:l}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=l}else if(ce(e,"!--",t))o=!0;else throw new Error("Invalid DOCTYPE");i++,a=""}else if(e[t]===">"){if(o?e[t-1]==="-"&&e[t-2]==="-"&&(o=!1,i--):i--,i===0)break}else e[t]==="["?r=!0:a+=e[t];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:t}}readEntityExp(e,t){t=x(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t])&&e[t]!=='"'&&e[t]!=="'";)n+=e[t],t++;if($e(n),t=x(e,t),!this.suppressValidationErr){if(e.substring(t,t+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(e[t]==="%")throw new Error("Parameter entities are not supported")}let i="";return[t,i]=this.readIdentifierVal(e,t,"entity"),t--,[n,i,t]}readNotationExp(e,t){t=x(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;!this.suppressValidationErr&&$e(n),t=x(e,t);let i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&i!=="SYSTEM"&&i!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=x(e,t);let r=null,o=null;if(i==="PUBLIC")[t,r]=this.readIdentifierVal(e,t,"publicIdentifier"),t=x(e,t),(e[t]==='"'||e[t]==="'")&&([t,o]=this.readIdentifierVal(e,t,"systemIdentifier"));else if(i==="SYSTEM"&&([t,o]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!o))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:r,systemIdentifier:o,index:--t}}readIdentifierVal(e,t,n){let i="",r=e[t];if(r!=='"'&&r!=="'")throw new Error(`Expected quoted string, found "${r}"`);for(t++;t<e.length&&e[t]!==r;)i+=e[t],t++;if(e[t]!==r)throw new Error(`Unterminated ${n} value`);return t++,[t,i]}readElementExp(e,t){t=x(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;if(!this.suppressValidationErr&&!be(n))throw new Error(`Invalid element name: "${n}"`);t=x(e,t);let i="";if(e[t]==="E"&&ce(e,"MPTY",t))t+=4;else if(e[t]==="A"&&ce(e,"NY",t))t+=2;else if(e[t]==="("){for(t++;t<e.length&&e[t]!==")";)i+=e[t],t++;if(e[t]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:n,contentModel:i.trim(),index:t}}readAttlistExp(e,t){t=x(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;$e(n),t=x(e,t);let i="";for(;t<e.length&&!/\s/.test(e[t]);)i+=e[t],t++;if(!$e(i))throw new Error(`Invalid attribute name: "${i}"`);t=x(e,t);let r="";if(e.substring(t,t+8).toUpperCase()==="NOTATION"){if(r="NOTATION",t+=8,t=x(e,t),e[t]!=="(")throw new Error(`Expected '(', found "${e[t]}"`);t++;let a=[];for(;t<e.length&&e[t]!==")";){let l="";for(;t<e.length&&e[t]!=="|"&&e[t]!==")";)l+=e[t],t++;if(l=l.trim(),!$e(l))throw new Error(`Invalid notation name: "${l}"`);a.push(l),e[t]==="|"&&(t++,t=x(e,t))}if(e[t]!==")")throw new Error("Unterminated list of notations");t++,r+=" ("+a.join("|")+")"}else{for(;t<e.length&&!/\s/.test(e[t]);)r+=e[t],t++;let a=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!a.includes(r.toUpperCase()))throw new Error(`Invalid attribute type: "${r}"`)}t=x(e,t);let o="";return e.substring(t,t+8).toUpperCase()==="#REQUIRED"?(o="#REQUIRED",t+=8):e.substring(t,t+7).toUpperCase()==="#IMPLIED"?(o="#IMPLIED",t+=7):[t,o]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:n,attributeName:i,attributeType:r,defaultValue:o,index:t}}},x=(s,e)=>{for(;e<s.length&&/\s/.test(s[e]);)e++;return e};function ce(s,e,t){for(let n=0;n<e.length;n++)if(e[n]!==s[t+n+1])return!1;return!0}function $e(s){if(be(s))return s;throw new Error(`Invalid entity name ${s}`)}var fl=/^[-+]?0x[a-fA-F0-9]+$/,ul=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,dl={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function Is(s,e={}){if(e=Object.assign({},dl,e),!s||typeof s!="string")return s;let t=s.trim();if(e.skipLike!==void 0&&e.skipLike.test(t))return s;if(s==="0")return 0;if(e.hex&&fl.test(t))return gl(t,16);if(t.includes("e")||t.includes("E"))return pl(s,t,e);{let n=ul.exec(t);if(n){let i=n[1]||"",r=n[2],o=ml(n[3]),a=i?s[r.length+1]===".":s[r.length]===".";if(!e.leadingZeros&&(r.length>1||r.length===1&&!a))return s;{let l=Number(t),c=String(l);if(l===0)return l;if(c.search(/[eE]/)!==-1)return e.eNotation?l:s;if(t.indexOf(".")!==-1)return c==="0"||c===o||c===`${i}${o}`?l:s;let u=r?o:t;return r?u===c||i+u===c?l:s:u===c||u===i+c?l:s}}else return s}}var hl=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function pl(s,e,t){if(!t.eNotation)return s;let n=e.match(hl);if(n){let i=n[1]||"",r=n[3].indexOf("e")===-1?"E":"e",o=n[2],a=i?s[o.length+1]===r:s[o.length]===r;return o.length>1&&a?s:o.length===1&&(n[3].startsWith(`.${r}`)||n[3][0]===r)?Number(e):t.leadingZeros&&!a?(e=(n[1]||"")+n[3],Number(e)):s}else return s}function ml(s){return s&&s.indexOf(".")!==-1&&(s=s.replace(/0+$/,""),s==="."?s="0":s[0]==="."?s="0"+s:s[s.length-1]==="."&&(s=s.substring(0,s.length-1))),s}function gl(s,e){if(parseInt)return parseInt(s,e);if(Number.parseInt)return Number.parseInt(s,e);if(window&&window.parseInt)return window.parseInt(s,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function xe(s){return typeof s=="function"?s:Array.isArray(s)?e=>{for(let t of s)if(typeof t=="string"&&e===t||t instanceof RegExp&&t.test(e))return!0}:()=>!1}var Be=class{constructor(e){if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,n)=>String.fromCodePoint(Number.parseInt(n,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,n)=>String.fromCodePoint(Number.parseInt(n,16))}},this.addExternalEntities=yl,this.parseXml=El,this.parseTextData=bl,this.resolveNameSpace=wl,this.buildAttributesMap=Nl,this.isItStopNode=Ol,this.replaceEntitiesValue=Al,this.readStopNodeData=ql,this.saveTextToParentTag=Tl,this.addChild=vl,this.ignoreAttributesFn=xe(this.options.ignoreAttributes),this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let t=0;t<this.options.stopNodes.length;t++){let n=this.options.stopNodes[t];typeof n=="string"&&(n.startsWith("*.")?this.stopNodesWildcard.add(n.substring(2)):this.stopNodesExact.add(n))}}}};function yl(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:s[n]}}}function bl(s,e,t,n,i,r,o){if(s!==void 0&&(this.options.trimValues&&!n&&(s=s.trim()),s.length>0)){o||(s=this.replaceEntitiesValue(s));let a=this.options.tagValueProcessor(e,s,t,i,r);return a==null?s:typeof a!=typeof s||a!==s?a:this.options.trimValues?Ls(s,this.options.parseTagValue,this.options.numberParseOptions):s.trim()===s?Ls(s,this.options.parseTagValue,this.options.numberParseOptions):s}}function wl(s){if(this.options.removeNSPrefix){let e=s.split(":"),t=s.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(s=t+e[1])}return s}var Sl=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Nl(s,e){if(this.options.ignoreAttributes!==!0&&typeof s=="string"){let t=St(s,Sl),n=t.length,i={};for(let r=0;r<n;r++){let o=this.resolveNameSpace(t[r][1]);if(this.ignoreAttributesFn(o,e))continue;let a=t[r][4],l=this.options.attributeNamePrefix+o;if(o.length)if(this.options.transformAttributeName&&(l=this.options.transformAttributeName(l)),l==="__proto__"&&(l="#__proto__"),a!==void 0){this.options.trimValues&&(a=a.trim()),a=this.replaceEntitiesValue(a);let c=this.options.attributeValueProcessor(o,a,e);c==null?i[l]=a:typeof c!=typeof a||c!==a?i[l]=c:i[l]=Ls(a,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[l]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){let r={};return r[this.options.attributesGroupName]=i,r}return i}}var El=function(s){s=s.replace(/\r\n?/g,`
145
+ `);let e=new V("!xml"),t=e,n="",i="",r=new _e(this.options.processEntities);for(let o=0;o<s.length;o++)if(s[o]==="<")if(s[o+1]==="/"){let l=fe(s,">",o,"Closing Tag is not closed."),c=s.substring(o+2,l).trim();if(this.options.removeNSPrefix){let d=c.indexOf(":");d!==-1&&(c=c.substr(d+1))}this.options.transformTagName&&(c=this.options.transformTagName(c)),t&&(n=this.saveTextToParentTag(n,t,i));let u=i.substring(i.lastIndexOf(".")+1);if(c&&this.options.unpairedTags.indexOf(c)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`);let f=0;u&&this.options.unpairedTags.indexOf(u)!==-1?(f=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):f=i.lastIndexOf("."),i=i.substring(0,f),t=this.tagsNodeStack.pop(),n="",o=l}else if(s[o+1]==="?"){let l=Cs(s,o,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,t,i),!(this.options.ignoreDeclaration&&l.tagName==="?xml"||this.options.ignorePiTags)){let c=new V(l.tagName);c.add(this.options.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&(c[":@"]=this.buildAttributesMap(l.tagExp,i)),this.addChild(t,c,i,o)}o=l.closeIndex+1}else if(s.substr(o+1,3)==="!--"){let l=fe(s,"-->",o+4,"Comment is not closed.");if(this.options.commentPropName){let c=s.substring(o+4,l-2);n=this.saveTextToParentTag(n,t,i),t.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}o=l}else if(s.substr(o+1,2)==="!D"){let l=r.readDocType(s,o);this.docTypeEntities=l.entities,o=l.i}else if(s.substr(o+1,2)==="!["){let l=fe(s,"]]>",o,"CDATA is not closed.")-2,c=s.substring(o+9,l);n=this.saveTextToParentTag(n,t,i);let u=this.parseTextData(c,t.tagname,i,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?t.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}]):t.add(this.options.textNodeName,u),o=l+2}else{let l=Cs(s,o,this.options.removeNSPrefix),c=l.tagName,u=l.rawTagName,f=l.tagExp,d=l.attrExpPresent,p=l.closeIndex;if(this.options.transformTagName){let m=this.options.transformTagName(c);f===c&&(f=m),c=m}t&&n&&t.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,t,i,!1));let g=t;g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(t=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),c!==e.tagname&&(i+=i?"."+c:c);let h=o;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,i,c)){let m="";if(f.length>0&&f.lastIndexOf("/")===f.length-1)c[c.length-1]==="/"?(c=c.substr(0,c.length-1),i=i.substr(0,i.length-1),f=c):f=f.substr(0,f.length-1),o=l.closeIndex;else if(this.options.unpairedTags.indexOf(c)!==-1)o=l.closeIndex;else{let y=this.readStopNodeData(s,u,p+1);if(!y)throw new Error(`Unexpected end of ${u}`);o=y.i,m=y.tagContent}let w=new V(c);c!==f&&d&&(w[":@"]=this.buildAttributesMap(f,i)),m&&(m=this.parseTextData(m,c,i,!0,d,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),w.add(this.options.textNodeName,m),this.addChild(t,w,i,h)}else{if(f.length>0&&f.lastIndexOf("/")===f.length-1){if(c[c.length-1]==="/"?(c=c.substr(0,c.length-1),i=i.substr(0,i.length-1),f=c):f=f.substr(0,f.length-1),this.options.transformTagName){let w=this.options.transformTagName(c);f===c&&(f=w),c=w}let m=new V(c);c!==f&&d&&(m[":@"]=this.buildAttributesMap(f,i)),this.addChild(t,m,i,h),i=i.substr(0,i.lastIndexOf("."))}else{let m=new V(c);this.tagsNodeStack.push(t),c!==f&&d&&(m[":@"]=this.buildAttributesMap(f,i)),this.addChild(t,m,i,h),t=m}n="",o=p}}else n+=s[o];return e.child};function vl(s,e,t,n){this.options.captureMetaData||(n=void 0);let i=this.options.updateTag(e.tagname,t,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),s.addChild(e,n))}var Al=function(s){if(this.options.processEntities){for(let e in this.docTypeEntities){let t=this.docTypeEntities[e];s=s.replace(t.regx,t.val)}for(let e in this.lastEntities){let t=this.lastEntities[e];s=s.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let t=this.htmlEntities[e];s=s.replace(t.regex,t.val)}s=s.replace(this.ampEntity.regex,this.ampEntity.val)}return s};function Tl(s,e,t,n){return s&&(n===void 0&&(n=e.child.length===0),s=this.parseTextData(s,e.tagname,t,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),s!==void 0&&s!==""&&e.add(this.options.textNodeName,s),s=""),s}function Ol(s,e,t,n){return!!(e&&e.has(n)||s&&s.has(t))}function kl(s,e,t=">"){let n,i="";for(let r=e;r<s.length;r++){let o=s[r];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===t[0])if(t[1]){if(s[r+1]===t[1])return{data:i,index:r}}else return{data:i,index:r};else o===" "&&(o=" ");i+=o}}function fe(s,e,t,n){let i=s.indexOf(e,t);if(i===-1)throw new Error(n);return i+e.length-1}function Cs(s,e,t,n=">"){let i=kl(s,e+1,n);if(!i)return;let r=i.data,o=i.index,a=r.search(/\s/),l=r,c=!0;a!==-1&&(l=r.substring(0,a),r=r.substring(a+1).trimStart());let u=l;if(t){let f=l.indexOf(":");f!==-1&&(l=l.substr(f+1),c=l!==i.data.substr(f+1))}return{tagName:l,tagExp:r,closeIndex:o,attrExpPresent:c,rawTagName:u}}function ql(s,e,t){let n=t,i=1;for(;t<s.length;t++)if(s[t]==="<")if(s[t+1]==="/"){let r=fe(s,">",t,`${e} is not closed`);if(s.substring(t+2,r).trim()===e&&(i--,i===0))return{tagContent:s.substring(n,t),i:r};t=r}else if(s[t+1]==="?")t=fe(s,"?>",t+1,"StopNode is not closed.");else if(s.substr(t+1,3)==="!--")t=fe(s,"-->",t+3,"StopNode is not closed.");else if(s.substr(t+1,2)==="![")t=fe(s,"]]>",t,"StopNode is not closed.")-2;else{let r=Cs(s,t,">");r&&((r&&r.tagName)===e&&r.tagExp[r.tagExp.length-1]!=="/"&&i++,t=r.closeIndex)}}function Ls(s,e,t){if(e&&typeof s=="string"){let n=s.trim();return n==="true"?!0:n==="false"?!1:Is(s,t)}else return Mi(s)?s:""}var Ps=V.getMetaDataSymbol();function Ms(s,e){return Vi(s,e)}function Vi(s,e,t){let n,i={};for(let r=0;r<s.length;r++){let o=s[r],a=Il(o),l="";if(t===void 0?l=a:l=t+"."+a,a===e.textNodeName)n===void 0?n=o[a]:n+=""+o[a];else{if(a===void 0)continue;if(o[a]){let c=Vi(o[a],e,l),u=Ll(c,e);o[Ps]!==void 0&&(c[Ps]=o[Ps]),o[":@"]?Cl(c,o[":@"],l,e):Object.keys(c).length===1&&c[e.textNodeName]!==void 0&&!e.alwaysCreateTextNode?c=c[e.textNodeName]:Object.keys(c).length===0&&(e.alwaysCreateTextNode?c[e.textNodeName]="":c=""),i[a]!==void 0&&i.hasOwnProperty(a)?(Array.isArray(i[a])||(i[a]=[i[a]]),i[a].push(c)):e.isArray(a,l,u)?i[a]=[c]:i[a]=c}}}return typeof n=="string"?n.length>0&&(i[e.textNodeName]=n):n!==void 0&&(i[e.textNodeName]=n),i}function Il(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];if(n!==":@")return n}}function Cl(s,e,t,n){if(e){let i=Object.keys(e),r=i.length;for(let o=0;o<r;o++){let a=i[o];n.isArray(a,t+"."+a,!0,!0)?s[a]=[e[a]]:s[a]=e[a]}}}function Ll(s,e){let{textNodeName:t}=e,n=Object.keys(s).length;return!!(n===0||n===1&&(s[t]||typeof s[t]=="boolean"||s[t]===0))}var we=class{constructor(e){this.externalEntities={},this.options=ji(e)}parse(e,t){if(typeof e!="string"&&e.toString)e=e.toString();else if(typeof e!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});let r=Fi(e,t);if(r!==!0)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}let n=new Be(this.options);n.addExternalEntities(this.externalEntities);let i=n.parseXml(e);return this.options.preserveOrder||i===void 0?i:Ms(i,this.options)}addEntity(e,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(e.indexOf("&")!==-1||e.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return V.getMetaDataSymbol()}};function $s(s,e){let t="";return e.format&&e.indentBy.length>0&&(t=`
146
+ `),Ri(s,e,"",t)}function Ri(s,e,t,n){let i="",r=!1;for(let o=0;o<s.length;o++){let a=s[o],l=Pl(a);if(l===void 0)continue;let c="";if(t.length===0?c=l:c=`${t}.${l}`,l===e.textNodeName){let g=a[l];Ml(c,e)||(g=e.tagValueProcessor(l,g),g=Yi(g,e)),r&&(i+=n),i+=g,r=!1;continue}else if(l===e.cdataPropName){r&&(i+=n),i+=`<![CDATA[${a[l][0][e.textNodeName]}]]>`,r=!1;continue}else if(l===e.commentPropName){i+=n+`<!--${a[l][0][e.textNodeName]}-->`,r=!0;continue}else if(l[0]==="?"){let g=Ki(a[":@"],e),h=l==="?xml"?"":n,m=a[l][0][e.textNodeName];m=m.length!==0?" "+m:"",i+=h+`<${l}${m}${g}?>`,r=!0;continue}let u=n;u!==""&&(u+=e.indentBy);let f=Ki(a[":@"],e),d=n+`<${l}${f}`,p=Ri(a[l],e,c,u);e.unpairedTags.indexOf(l)!==-1?e.suppressUnpairedNode?i+=d+">":i+=d+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=d+"/>":p&&p.endsWith(">")?i+=d+`>${p}${n}</${l}>`:(i+=d+">",p&&n!==""&&(p.includes("/>")||p.includes("</"))?i+=n+e.indentBy+p+n:i+=p,i+=`</${l}>`),r=!0}return i}function Pl(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];if(s.hasOwnProperty(n)&&n!==":@")return n}}function Ki(s,e){let t="";if(s&&!e.ignoreAttributes)for(let n in s){if(!s.hasOwnProperty(n))continue;let i=e.attributeValueProcessor(n,s[n]);i=Yi(i,e),i===!0&&e.suppressBooleanAttributes?t+=` ${n.substr(e.attributeNamePrefix.length)}`:t+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return t}function Ml(s,e){s=s.substr(0,s.length-e.textNodeName.length-1);let t=s.substr(s.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===s||e.stopNodes[n]==="*."+t)return!0;return!1}function Yi(s,e){if(s&&s.length>0&&e.processEntities)for(let t=0;t<e.entities.length;t++){let n=e.entities[t];s=s.replace(n.regex,n.val)}return s}var $l={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,e){return e},attributeValueProcessor:function(s,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Y(s){this.options=Object.assign({},$l,s),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=xe(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Bl),this.processTextOrObjNode=_l,this.options.format?(this.indentate=xl,this.tagEndChar=`>
147
147
  `,this.newLine=`
148
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}R.prototype.build=function(s){return this.options.preserveOrder?Ms(s,this.options):(Array.isArray(s)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(s={[this.options.arrayNodeName]:s}),this.j2x(s,0,[]).val)};R.prototype.j2x=function(s,e,t){let n="",i="",r=t.join(".");for(let o in s)if(Object.prototype.hasOwnProperty.call(s,o))if(typeof s[o]>"u")this.isAttribute(o)&&(i+="");else if(s[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?i+="":o[0]==="?"?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(s[o]instanceof Date)i+=this.buildTextValNode(s[o],o,"",e);else if(typeof s[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,r))n+=this.buildAttrPairStr(a,""+s[o]);else if(!a)if(o===this.options.textNodeName){let l=this.options.tagValueProcessor(o,""+s[o]);i+=this.replaceEntitiesValue(l)}else i+=this.buildTextValNode(s[o],o,"",e)}else if(Array.isArray(s[o])){let a=s[o].length,l="",c="";for(let u=0;u<a;u++){let f=s[o][u];if(!(typeof f>"u"))if(f===null)o[0]==="?"?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){let d=this.j2x(f,e+1,t.concat(o));l+=d.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else l+=this.processTextOrObjNode(f,o,e,t);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,f);d=this.replaceEntitiesValue(d),l+=d}else l+=this.buildTextValNode(f,o,"",e)}this.options.oneListGroup&&(l=this.buildObjectNode(l,o,c,e)),i+=l}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(s[o]),l=a.length;for(let c=0;c<l;c++)n+=this.buildAttrPairStr(a[c],""+s[o][a[c]])}else i+=this.processTextOrObjNode(s[o],o,e,t);return{attrStr:n,val:i}};R.prototype.buildAttrPairStr=function(s,e){return e=this.options.attributeValueProcessor(s,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+s:" "+s+'="'+e+'"'};function $l(s,e,t,n){let i=this.j2x(s,t+1,n.concat(e));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],e,i.attrStr,t):this.buildObjectNode(i.val,e,i.attrStr,t)}R.prototype.buildObjectNode=function(s,e,t,n){if(s==="")return e[0]==="?"?this.indentate(n)+"<"+e+t+"?"+this.tagEndChar:this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar;{let i="</"+e+this.tagEndChar,r="";return e[0]==="?"&&(r="?",i=""),(t||t==="")&&s.indexOf("<")===-1?this.indentate(n)+"<"+e+t+r+">"+s+i:this.options.commentPropName!==!1&&e===this.options.commentPropName&&r.length===0?this.indentate(n)+`<!--${s}-->`+this.newLine:this.indentate(n)+"<"+e+t+r+this.tagEndChar+s+this.indentate(n)+i}};R.prototype.closeTag=function(s){let e="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${s}`,e};R.prototype.buildTextValNode=function(s,e,t,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${s}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+t+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(e,s);return i=this.replaceEntitiesValue(i),i===""?this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+t+">"+i+"</"+e+this.tagEndChar}};R.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let t=this.options.entities[e];s=s.replace(t.regex,t.val)}return s};function _l(s){return this.options.indentBy.repeat(s)}function xl(s){return s.startsWith(this.options.attributeNamePrefix)&&s!==this.options.textNodeName?s.substr(this.attrPrefixLen):!1}var vs=As(Gi(),1),Ni=As(Qa(),1);function Bl(s,e){let t=s.slice(0,e).split(/\r\n|\n|\r/g);return[t.length,t.pop().length+1]}function Fl(s,e,t){let n=s.split(/\r\n|\n|\r/g),i="",r=(Math.log10(e+1)|0)+1;for(let o=e-1;o<=e+1;o++){let a=n[o-1];a&&(i+=o.toString().padEnd(r," "),i+=": ",i+=a,i+=`
148
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Y.prototype.build=function(s){return this.options.preserveOrder?$s(s,this.options):(Array.isArray(s)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(s={[this.options.arrayNodeName]:s}),this.j2x(s,0,[]).val)};Y.prototype.j2x=function(s,e,t){let n="",i="",r=t.join(".");for(let o in s)if(Object.prototype.hasOwnProperty.call(s,o))if(typeof s[o]>"u")this.isAttribute(o)&&(i+="");else if(s[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?i+="":o[0]==="?"?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(s[o]instanceof Date)i+=this.buildTextValNode(s[o],o,"",e);else if(typeof s[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,r))n+=this.buildAttrPairStr(a,""+s[o]);else if(!a)if(o===this.options.textNodeName){let l=this.options.tagValueProcessor(o,""+s[o]);i+=this.replaceEntitiesValue(l)}else i+=this.buildTextValNode(s[o],o,"",e)}else if(Array.isArray(s[o])){let a=s[o].length,l="",c="";for(let u=0;u<a;u++){let f=s[o][u];if(!(typeof f>"u"))if(f===null)o[0]==="?"?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){let d=this.j2x(f,e+1,t.concat(o));l+=d.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else l+=this.processTextOrObjNode(f,o,e,t);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,f);d=this.replaceEntitiesValue(d),l+=d}else l+=this.buildTextValNode(f,o,"",e)}this.options.oneListGroup&&(l=this.buildObjectNode(l,o,c,e)),i+=l}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(s[o]),l=a.length;for(let c=0;c<l;c++)n+=this.buildAttrPairStr(a[c],""+s[o][a[c]])}else i+=this.processTextOrObjNode(s[o],o,e,t);return{attrStr:n,val:i}};Y.prototype.buildAttrPairStr=function(s,e){return e=this.options.attributeValueProcessor(s,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+s:" "+s+'="'+e+'"'};function _l(s,e,t,n){let i=this.j2x(s,t+1,n.concat(e));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],e,i.attrStr,t):this.buildObjectNode(i.val,e,i.attrStr,t)}Y.prototype.buildObjectNode=function(s,e,t,n){if(s==="")return e[0]==="?"?this.indentate(n)+"<"+e+t+"?"+this.tagEndChar:this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar;{let i="</"+e+this.tagEndChar,r="";return e[0]==="?"&&(r="?",i=""),(t||t==="")&&s.indexOf("<")===-1?this.indentate(n)+"<"+e+t+r+">"+s+i:this.options.commentPropName!==!1&&e===this.options.commentPropName&&r.length===0?this.indentate(n)+`<!--${s}-->`+this.newLine:this.indentate(n)+"<"+e+t+r+this.tagEndChar+s+this.indentate(n)+i}};Y.prototype.closeTag=function(s){let e="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${s}`,e};Y.prototype.buildTextValNode=function(s,e,t,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${s}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+t+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(e,s);return i=this.replaceEntitiesValue(i),i===""?this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+t+">"+i+"</"+e+this.tagEndChar}};Y.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let t=this.options.entities[e];s=s.replace(t.regex,t.val)}return s};function xl(s){return this.options.indentBy.repeat(s)}function Bl(s){return s.startsWith(this.options.attributeNamePrefix)&&s!==this.options.textNodeName?s.substr(this.attrPrefixLen):!1}var As=Ts(Xi(),1),Ei=Ts(Qa(),1);function Fl(s,e){let t=s.slice(0,e).split(/\r\n|\n|\r/g);return[t.length,t.pop().length+1]}function jl(s,e,t){let n=s.split(/\r\n|\n|\r/g),i="",r=(Math.log10(e+1)|0)+1;for(let o=e-1;o<=e+1;o++){let a=n[o-1];a&&(i+=o.toString().padEnd(r," "),i+=": ",i+=a,i+=`
149
149
  `,o===e&&(i+=" ".repeat(r+t+2),i+=`^
150
- `))}return i}var T=class extends Error{line;column;codeblock;constructor(e,t){let[n,i]=Bl(t.toml,t.ptr),r=Fl(t.toml,n,i);super(`Invalid TOML document: ${e}
150
+ `))}return i}var T=class extends Error{line;column;codeblock;constructor(e,t){let[n,i]=Fl(t.toml,t.ptr),r=jl(t.toml,n,i);super(`Invalid TOML document: ${e}
151
151
 
152
- ${r}`,t),this.line=n,this.column=i,this.codeblock=r}};function jl(s,e){let t=0;for(;s[e-++t]==="\\";);return--t&&t%2}function Et(s,e=0,t=s.length){let n=s.indexOf(`
153
- `,e);return s[n-1]==="\r"&&n--,n<=t?n:-1}function we(s,e){for(let t=e;t<s.length;t++){let n=s[t];if(n===`
152
+ ${r}`,t),this.line=n,this.column=i,this.codeblock=r}};function Vl(s,e){let t=0;for(;s[e-++t]==="\\";);return--t&&t%2}function vt(s,e=0,t=s.length){let n=s.indexOf(`
153
+ `,e);return s[n-1]==="\r"&&n--,n<=t?n:-1}function Se(s,e){for(let t=e;t<s.length;t++){let n=s[t];if(n===`
154
154
  `)return t;if(n==="\r"&&s[t+1]===`
155
155
  `)return t+1;if(n<" "&&n!==" "||n==="\x7F")throw new T("control characters are not allowed in comments",{toml:s,ptr:e})}return s.length}function B(s,e,t,n){let i;for(;(i=s[e])===" "||i===" "||!t&&(i===`
156
156
  `||i==="\r"&&s[e+1]===`
157
- `);)e++;return n||i!=="#"?e:B(s,we(s,e),t)}function Xi(s,e,t,n,i=!1){if(!n)return e=Et(s,e),e<0?s.length:e;for(let r=e;r<s.length;r++){let o=s[r];if(o==="#")r=Et(s,r);else{if(o===t)return r+1;if(o===n||i&&(o===`
157
+ `);)e++;return n||i!=="#"?e:B(s,Se(s,e),t)}function Di(s,e,t,n,i=!1){if(!n)return e=vt(s,e),e<0?s.length:e;for(let r=e;r<s.length;r++){let o=s[r];if(o==="#")r=vt(s,r);else{if(o===t)return r+1;if(o===n||i&&(o===`
158
158
  `||o==="\r"&&s[r+1]===`
159
- `))return r}}throw new T("cannot find end of structure",{toml:s,ptr:e})}function vt(s,e){let t=s[e],n=t===s[e+1]&&s[e+1]===s[e+2]?s.slice(e,e+3):t;e+=n.length-1;do e=s.indexOf(n,++e);while(e>-1&&t!=="'"&&jl(s,e));return e>-1&&(e+=n.length,n.length>1&&(s[e]===t&&e++,s[e]===t&&e++)),e}var Vl=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i,Be=class s extends Date{#t=!1;#s=!1;#e=null;constructor(e){let t=!0,n=!0,i="Z";if(typeof e=="string"){let r=e.match(Vl);r?(r[1]||(t=!1,e=`0000-01-01T${e}`),n=!!r[2],n&&e[10]===" "&&(e=e.replace(" ","T")),r[2]&&+r[2]>23?e="":(i=r[3]||null,e=e.toUpperCase(),!i&&n&&(e+="Z"))):e=""}super(e),isNaN(this.getTime())||(this.#t=t,this.#s=n,this.#e=i)}isDateTime(){return this.#t&&this.#s}isLocal(){return!this.#t||!this.#s||!this.#e}isDate(){return this.#t&&!this.#s}isTime(){return this.#s&&!this.#t}isValid(){return this.#t||this.#s}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#e===null)return e.slice(0,-1);if(this.#e==="Z")return e;let t=+this.#e.slice(1,3)*60+ +this.#e.slice(4,6);return t=this.#e[0]==="-"?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#e}static wrapAsOffsetDateTime(e,t="Z"){let n=new s(e);return n.#e=t,n}static wrapAsLocalDateTime(e){let t=new s(e);return t.#e=null,t}static wrapAsLocalDate(e){let t=new s(e);return t.#s=!1,t.#e=null,t}static wrapAsLocalTime(e){let t=new s(e);return t.#t=!1,t.#e=null,t}};var Kl=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,Rl=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,Yl=/^[+-]?0[0-9_]/,Ul=/^[0-9a-f]{2,8}$/i,Qi={b:"\b",t:" ",n:`
160
- `,f:"\f",r:"\r",e:"\x1B",'"':'"',"\\":"\\"};function At(s,e=0,t=s.length){let n=s[e]==="'",i=s[e++]===s[e]&&s[e]===s[e+1];i&&(t-=2,s[e+=2]==="\r"&&e++,s[e]===`
159
+ `))return r}}throw new T("cannot find end of structure",{toml:s,ptr:e})}function At(s,e){let t=s[e],n=t===s[e+1]&&s[e+1]===s[e+2]?s.slice(e,e+3):t;e+=n.length-1;do e=s.indexOf(n,++e);while(e>-1&&t!=="'"&&Vl(s,e));return e>-1&&(e+=n.length,n.length>1&&(s[e]===t&&e++,s[e]===t&&e++)),e}var Kl=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i,Fe=class s extends Date{#t=!1;#s=!1;#e=null;constructor(e){let t=!0,n=!0,i="Z";if(typeof e=="string"){let r=e.match(Kl);r?(r[1]||(t=!1,e=`0000-01-01T${e}`),n=!!r[2],n&&e[10]===" "&&(e=e.replace(" ","T")),r[2]&&+r[2]>23?e="":(i=r[3]||null,e=e.toUpperCase(),!i&&n&&(e+="Z"))):e=""}super(e),isNaN(this.getTime())||(this.#t=t,this.#s=n,this.#e=i)}isDateTime(){return this.#t&&this.#s}isLocal(){return!this.#t||!this.#s||!this.#e}isDate(){return this.#t&&!this.#s}isTime(){return this.#s&&!this.#t}isValid(){return this.#t||this.#s}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#e===null)return e.slice(0,-1);if(this.#e==="Z")return e;let t=+this.#e.slice(1,3)*60+ +this.#e.slice(4,6);return t=this.#e[0]==="-"?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#e}static wrapAsOffsetDateTime(e,t="Z"){let n=new s(e);return n.#e=t,n}static wrapAsLocalDateTime(e){let t=new s(e);return t.#e=null,t}static wrapAsLocalDate(e){let t=new s(e);return t.#s=!1,t.#e=null,t}static wrapAsLocalTime(e){let t=new s(e);return t.#t=!1,t.#e=null,t}};var Rl=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,Yl=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,Ul=/^[+-]?0[0-9_]/,Jl=/^[0-9a-f]{2,8}$/i,Qi={b:"\b",t:" ",n:`
160
+ `,f:"\f",r:"\r",e:"\x1B",'"':'"',"\\":"\\"};function Tt(s,e=0,t=s.length){let n=s[e]==="'",i=s[e++]===s[e]&&s[e]===s[e+1];i&&(t-=2,s[e+=2]==="\r"&&e++,s[e]===`
161
161
  `&&e++);let r=0,o,a="",l=e;for(;e<t-1;){let c=s[e++];if(c===`
162
162
  `||c==="\r"&&s[e]===`
163
- `){if(!i)throw new T("newlines are not allowed in strings",{toml:s,ptr:e-1})}else if(c<" "&&c!==" "||c==="\x7F")throw new T("control characters are not allowed in strings",{toml:s,ptr:e-1});if(o){if(o=!1,c==="x"||c==="u"||c==="U"){let u=s.slice(e,e+=c==="x"?2:c==="u"?4:8);if(!Ul.test(u))throw new T("invalid unicode escape",{toml:s,ptr:r});try{a+=String.fromCodePoint(parseInt(u,16))}catch{throw new T("invalid unicode escape",{toml:s,ptr:r})}}else if(i&&(c===`
163
+ `){if(!i)throw new T("newlines are not allowed in strings",{toml:s,ptr:e-1})}else if(c<" "&&c!==" "||c==="\x7F")throw new T("control characters are not allowed in strings",{toml:s,ptr:e-1});if(o){if(o=!1,c==="x"||c==="u"||c==="U"){let u=s.slice(e,e+=c==="x"?2:c==="u"?4:8);if(!Jl.test(u))throw new T("invalid unicode escape",{toml:s,ptr:r});try{a+=String.fromCodePoint(parseInt(u,16))}catch{throw new T("invalid unicode escape",{toml:s,ptr:r})}}else if(i&&(c===`
164
164
  `||c===" "||c===" "||c==="\r")){if(e=B(s,e-1,!0),s[e]!==`
165
- `&&s[e]!=="\r")throw new T("invalid escape: only line-ending whitespace may be escaped",{toml:s,ptr:r});e=B(s,e)}else if(c in Qi)a+=Qi[c];else throw new T("unrecognized escape sequence",{toml:s,ptr:r});l=e}else!n&&c==="\\"&&(r=e-1,o=!0,a+=s.slice(l,r))}return a+s.slice(l,t-1)}function Di(s,e,t,n){if(s==="true")return!0;if(s==="false")return!1;if(s==="-inf")return-1/0;if(s==="inf"||s==="+inf")return 1/0;if(s==="nan"||s==="+nan"||s==="-nan")return NaN;if(s==="-0")return n?0n:0;let i=Kl.test(s);if(i||Rl.test(s)){if(Yl.test(s))throw new T("leading zeroes are not allowed",{toml:e,ptr:t});s=s.replace(/_/g,"");let o=+s;if(isNaN(o))throw new T("invalid number",{toml:e,ptr:t});if(i){if((i=!Number.isSafeInteger(o))&&!n)throw new T("integer value cannot be represented losslessly",{toml:e,ptr:t});(i||n===!0)&&(o=BigInt(s))}return o}let r=new Be(s);if(!r.isValid())throw new T("invalid value",{toml:e,ptr:t});return r}function Jl(s,e,t){let n=s.slice(e,t),i=n.indexOf("#");return i>-1&&(we(s,i),n=n.slice(0,i)),[n.trimEnd(),i]}function Fe(s,e,t,n,i){if(n===0)throw new T("document contains excessively nested structures. aborting.",{toml:s,ptr:e});let r=s[e];if(r==="["||r==="{"){let[l,c]=r==="["?zi(s,e,n,i):Hi(s,e,n,i);if(t){if(c=B(s,c),s[c]===",")c++;else if(s[c]!==t)throw new T("expected comma or end of structure",{toml:s,ptr:c})}return[l,c]}let o;if(r==='"'||r==="'"){o=vt(s,e);let l=At(s,e,o);if(t){if(o=B(s,o),s[o]&&s[o]!==","&&s[o]!==t&&s[o]!==`
166
- `&&s[o]!=="\r")throw new T("unexpected character encountered",{toml:s,ptr:o});o+=+(s[o]===",")}return[l,o]}o=Xi(s,e,",",t);let a=Jl(s,e,o-+(s[o-1]===","));if(!a[0])throw new T("incomplete key-value declaration: no value specified",{toml:s,ptr:e});return t&&a[1]>-1&&(o=B(s,e+a[1]),o+=+(s[o]===",")),[Di(a[0],s,e,i),o]}var Wl=/^[a-zA-Z0-9-_]+[ \t]*$/;function Tt(s,e,t="="){let n=e-1,i=[],r=s.indexOf(t,e);if(r<0)throw new T("incomplete key-value: cannot find end of key",{toml:s,ptr:e});do{let o=s[e=++n];if(o!==" "&&o!==" ")if(o==='"'||o==="'"){if(o===s[e+1]&&o===s[e+2])throw new T("multiline strings are not allowed in keys",{toml:s,ptr:e});let a=vt(s,e);if(a<0)throw new T("unfinished string encountered",{toml:s,ptr:e});n=s.indexOf(".",a);let l=s.slice(a,n<0||n>r?r:n),c=Et(l);if(c>-1)throw new T("newlines are not allowed in keys",{toml:s,ptr:e+n+c});if(l.trimStart())throw new T("found extra tokens after the string part",{toml:s,ptr:a});if(r<a&&(r=s.indexOf(t,a),r<0))throw new T("incomplete key-value: cannot find end of key",{toml:s,ptr:e});i.push(At(s,e,a))}else{n=s.indexOf(".",e);let a=s.slice(e,n<0||n>r?r:n);if(!Wl.test(a))throw new T("only letter, numbers, dashes and underscores are allowed in keys",{toml:s,ptr:e});i.push(a.trimEnd())}}while(n+1&&n<r);return[i,B(s,r+1,!0,!0)]}function Hi(s,e,t,n){let i={},r=new Set,o;for(e++;(o=s[e++])!=="}"&&o;){if(o===",")throw new T("expected value, found comma",{toml:s,ptr:e-1});if(o==="#")e=we(s,e);else if(o!==" "&&o!==" "&&o!==`
167
- `&&o!=="\r"){let a,l=i,c=!1,[u,f]=Tt(s,e-1);for(let g=0;g<u.length;g++){if(g&&(l=c?l[a]:l[a]={}),a=u[g],(c=Object.hasOwn(l,a))&&(typeof l[a]!="object"||r.has(l[a])))throw new T("trying to redefine an already defined value",{toml:s,ptr:e});!c&&a==="__proto__"&&Object.defineProperty(l,a,{enumerable:!0,configurable:!0,writable:!0})}if(c)throw new T("trying to redefine an already defined value",{toml:s,ptr:e});let[d,p]=Fe(s,f,"}",t-1,n);r.add(d),l[a]=d,e=p}}if(!o)throw new T("unfinished table encountered",{toml:s,ptr:e});return[i,e]}function zi(s,e,t,n){let i=[],r;for(e++;(r=s[e++])!=="]"&&r;){if(r===",")throw new T("expected value, found comma",{toml:s,ptr:e-1});if(r==="#")e=we(s,e);else if(r!==" "&&r!==" "&&r!==`
168
- `&&r!=="\r"){let o=Fe(s,e-1,"]",t-1,n);i.push(o[0]),e=o[1]}}if(!r)throw new T("unfinished array encountered",{toml:s,ptr:e});return[i,e]}function Zi(s,e,t,n){let i=e,r=t,o,a=!1,l;for(let c=0;c<s.length;c++){if(c){if(i=a?i[o]:i[o]={},r=(l=r[o]).c,n===0&&(l.t===1||l.t===2))return null;if(l.t===2){let u=i.length-1;i=i[u],r=r[u].c}}if(o=s[c],(a=Object.hasOwn(i,o))&&r[o]?.t===0&&r[o]?.d)return null;a||(o==="__proto__"&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(r,o,{enumerable:!0,configurable:!0,writable:!0})),r[o]={t:c<s.length-1&&n===2?3:n,d:!1,i:0,c:{}})}if(l=r[o],l.t!==n&&!(n===1&&l.t===3)||(n===2&&(l.d||(l.d=!0,i[o]=[]),i[o].push(i={}),l.c[l.i++]=l={t:1,d:!1,i:0,c:{}}),l.d))return null;if(l.d=!0,n===1)i=a?i[o]:i[o]={};else if(n===0&&a)return null;return[o,i,l.c]}function Ot(s,{maxDepth:e=1e3,integersAsBigInt:t}={}){let n={},i={},r=n,o=i;for(let a=B(s,0);a<s.length;){if(s[a]==="["){let l=s[++a]==="[",c=Tt(s,a+=+l,"]");if(l){if(s[c[1]-1]!=="]")throw new T("expected end of table declaration",{toml:s,ptr:c[1]-1});c[1]++}let u=Zi(c[0],n,i,l?2:1);if(!u)throw new T("trying to redefine an already defined table or value",{toml:s,ptr:a});o=u[2],r=u[1],a=c[1]}else{let l=Tt(s,a),c=Zi(l[0],r,o,0);if(!c)throw new T("trying to redefine an already defined table or value",{toml:s,ptr:a});let u=Fe(s,l[1],void 0,e,t);c[1][c[0]]=u[0],a=u[1]}if(a=B(s,a,!0),s[a]&&s[a]!==`
169
- `&&s[a]!=="\r")throw new T("each key-value declaration must be followed by an end-of-line",{toml:s,ptr:a});a=B(s,a)}return n}var er=/^[a-z0-9-_]+$/i;function je(s){let e=typeof s;if(e==="object"){if(Array.isArray(s))return"array";if(s instanceof Date)return"date"}return e}function Gl(s){for(let e=0;e<s.length;e++)if(je(s[e])!=="object")return!1;return s.length!=0}function xs(s){return JSON.stringify(s).replace(/\x7f/g,"\\u007f")}function Bs(s,e,t,n){if(t===0)throw new Error("Could not stringify the object: maximum object depth exceeded");if(e==="number")return isNaN(s)?"nan":s===1/0?"inf":s===-1/0?"-inf":n&&Number.isInteger(s)?s.toFixed(1):s.toString();if(e==="bigint"||e==="boolean")return s.toString();if(e==="string")return xs(s);if(e==="date"){if(isNaN(s.getTime()))throw new TypeError("cannot serialize invalid date");return s.toISOString()}if(e==="object")return Xl(s,t,n);if(e==="array")return Ql(s,t,n)}function Xl(s,e,t){let n=Object.keys(s);if(n.length===0)return"{}";let i="{ ";for(let r=0;r<n.length;r++){let o=n[r];r&&(i+=", "),i+=er.test(o)?o:xs(o),i+=" = ",i+=Bs(s[o],je(s[o]),e-1,t)}return i+" }"}function Ql(s,e,t){if(s.length===0)return"[]";let n="[ ";for(let i=0;i<s.length;i++){if(i&&(n+=", "),s[i]===null||s[i]===void 0)throw new TypeError("arrays cannot contain null or undefined values");n+=Bs(s[i],je(s[i]),e-1,t)}return n+" ]"}function Dl(s,e,t,n){if(t===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let i="";for(let r=0;r<s.length;r++)i+=`${i&&`
165
+ `&&s[e]!=="\r")throw new T("invalid escape: only line-ending whitespace may be escaped",{toml:s,ptr:r});e=B(s,e)}else if(c in Qi)a+=Qi[c];else throw new T("unrecognized escape sequence",{toml:s,ptr:r});l=e}else!n&&c==="\\"&&(r=e-1,o=!0,a+=s.slice(l,r))}return a+s.slice(l,t-1)}function Hi(s,e,t,n){if(s==="true")return!0;if(s==="false")return!1;if(s==="-inf")return-1/0;if(s==="inf"||s==="+inf")return 1/0;if(s==="nan"||s==="+nan"||s==="-nan")return NaN;if(s==="-0")return n?0n:0;let i=Rl.test(s);if(i||Yl.test(s)){if(Ul.test(s))throw new T("leading zeroes are not allowed",{toml:e,ptr:t});s=s.replace(/_/g,"");let o=+s;if(isNaN(o))throw new T("invalid number",{toml:e,ptr:t});if(i){if((i=!Number.isSafeInteger(o))&&!n)throw new T("integer value cannot be represented losslessly",{toml:e,ptr:t});(i||n===!0)&&(o=BigInt(s))}return o}let r=new Fe(s);if(!r.isValid())throw new T("invalid value",{toml:e,ptr:t});return r}function Wl(s,e,t){let n=s.slice(e,t),i=n.indexOf("#");return i>-1&&(Se(s,i),n=n.slice(0,i)),[n.trimEnd(),i]}function je(s,e,t,n,i){if(n===0)throw new T("document contains excessively nested structures. aborting.",{toml:s,ptr:e});let r=s[e];if(r==="["||r==="{"){let[l,c]=r==="["?Zi(s,e,n,i):zi(s,e,n,i);if(t){if(c=B(s,c),s[c]===",")c++;else if(s[c]!==t)throw new T("expected comma or end of structure",{toml:s,ptr:c})}return[l,c]}let o;if(r==='"'||r==="'"){o=At(s,e);let l=Tt(s,e,o);if(t){if(o=B(s,o),s[o]&&s[o]!==","&&s[o]!==t&&s[o]!==`
166
+ `&&s[o]!=="\r")throw new T("unexpected character encountered",{toml:s,ptr:o});o+=+(s[o]===",")}return[l,o]}o=Di(s,e,",",t);let a=Wl(s,e,o-+(s[o-1]===","));if(!a[0])throw new T("incomplete key-value declaration: no value specified",{toml:s,ptr:e});return t&&a[1]>-1&&(o=B(s,e+a[1]),o+=+(s[o]===",")),[Hi(a[0],s,e,i),o]}var Gl=/^[a-zA-Z0-9-_]+[ \t]*$/;function Ot(s,e,t="="){let n=e-1,i=[],r=s.indexOf(t,e);if(r<0)throw new T("incomplete key-value: cannot find end of key",{toml:s,ptr:e});do{let o=s[e=++n];if(o!==" "&&o!==" ")if(o==='"'||o==="'"){if(o===s[e+1]&&o===s[e+2])throw new T("multiline strings are not allowed in keys",{toml:s,ptr:e});let a=At(s,e);if(a<0)throw new T("unfinished string encountered",{toml:s,ptr:e});n=s.indexOf(".",a);let l=s.slice(a,n<0||n>r?r:n),c=vt(l);if(c>-1)throw new T("newlines are not allowed in keys",{toml:s,ptr:e+n+c});if(l.trimStart())throw new T("found extra tokens after the string part",{toml:s,ptr:a});if(r<a&&(r=s.indexOf(t,a),r<0))throw new T("incomplete key-value: cannot find end of key",{toml:s,ptr:e});i.push(Tt(s,e,a))}else{n=s.indexOf(".",e);let a=s.slice(e,n<0||n>r?r:n);if(!Gl.test(a))throw new T("only letter, numbers, dashes and underscores are allowed in keys",{toml:s,ptr:e});i.push(a.trimEnd())}}while(n+1&&n<r);return[i,B(s,r+1,!0,!0)]}function zi(s,e,t,n){let i={},r=new Set,o;for(e++;(o=s[e++])!=="}"&&o;){if(o===",")throw new T("expected value, found comma",{toml:s,ptr:e-1});if(o==="#")e=Se(s,e);else if(o!==" "&&o!==" "&&o!==`
167
+ `&&o!=="\r"){let a,l=i,c=!1,[u,f]=Ot(s,e-1);for(let g=0;g<u.length;g++){if(g&&(l=c?l[a]:l[a]={}),a=u[g],(c=Object.hasOwn(l,a))&&(typeof l[a]!="object"||r.has(l[a])))throw new T("trying to redefine an already defined value",{toml:s,ptr:e});!c&&a==="__proto__"&&Object.defineProperty(l,a,{enumerable:!0,configurable:!0,writable:!0})}if(c)throw new T("trying to redefine an already defined value",{toml:s,ptr:e});let[d,p]=je(s,f,"}",t-1,n);r.add(d),l[a]=d,e=p}}if(!o)throw new T("unfinished table encountered",{toml:s,ptr:e});return[i,e]}function Zi(s,e,t,n){let i=[],r;for(e++;(r=s[e++])!=="]"&&r;){if(r===",")throw new T("expected value, found comma",{toml:s,ptr:e-1});if(r==="#")e=Se(s,e);else if(r!==" "&&r!==" "&&r!==`
168
+ `&&r!=="\r"){let o=je(s,e-1,"]",t-1,n);i.push(o[0]),e=o[1]}}if(!r)throw new T("unfinished array encountered",{toml:s,ptr:e});return[i,e]}function er(s,e,t,n){let i=e,r=t,o,a=!1,l;for(let c=0;c<s.length;c++){if(c){if(i=a?i[o]:i[o]={},r=(l=r[o]).c,n===0&&(l.t===1||l.t===2))return null;if(l.t===2){let u=i.length-1;i=i[u],r=r[u].c}}if(o=s[c],(a=Object.hasOwn(i,o))&&r[o]?.t===0&&r[o]?.d)return null;a||(o==="__proto__"&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(r,o,{enumerable:!0,configurable:!0,writable:!0})),r[o]={t:c<s.length-1&&n===2?3:n,d:!1,i:0,c:{}})}if(l=r[o],l.t!==n&&!(n===1&&l.t===3)||(n===2&&(l.d||(l.d=!0,i[o]=[]),i[o].push(i={}),l.c[l.i++]=l={t:1,d:!1,i:0,c:{}}),l.d))return null;if(l.d=!0,n===1)i=a?i[o]:i[o]={};else if(n===0&&a)return null;return[o,i,l.c]}function kt(s,{maxDepth:e=1e3,integersAsBigInt:t}={}){let n={},i={},r=n,o=i;for(let a=B(s,0);a<s.length;){if(s[a]==="["){let l=s[++a]==="[",c=Ot(s,a+=+l,"]");if(l){if(s[c[1]-1]!=="]")throw new T("expected end of table declaration",{toml:s,ptr:c[1]-1});c[1]++}let u=er(c[0],n,i,l?2:1);if(!u)throw new T("trying to redefine an already defined table or value",{toml:s,ptr:a});o=u[2],r=u[1],a=c[1]}else{let l=Ot(s,a),c=er(l[0],r,o,0);if(!c)throw new T("trying to redefine an already defined table or value",{toml:s,ptr:a});let u=je(s,l[1],void 0,e,t);c[1][c[0]]=u[0],a=u[1]}if(a=B(s,a,!0),s[a]&&s[a]!==`
169
+ `&&s[a]!=="\r")throw new T("each key-value declaration must be followed by an end-of-line",{toml:s,ptr:a});a=B(s,a)}return n}var tr=/^[a-z0-9-_]+$/i;function Ve(s){let e=typeof s;if(e==="object"){if(Array.isArray(s))return"array";if(s instanceof Date)return"date"}return e}function Xl(s){for(let e=0;e<s.length;e++)if(Ve(s[e])!=="object")return!1;return s.length!=0}function Bs(s){return JSON.stringify(s).replace(/\x7f/g,"\\u007f")}function Fs(s,e,t,n){if(t===0)throw new Error("Could not stringify the object: maximum object depth exceeded");if(e==="number")return isNaN(s)?"nan":s===1/0?"inf":s===-1/0?"-inf":n&&Number.isInteger(s)?s.toFixed(1):s.toString();if(e==="bigint"||e==="boolean")return s.toString();if(e==="string")return Bs(s);if(e==="date"){if(isNaN(s.getTime()))throw new TypeError("cannot serialize invalid date");return s.toISOString()}if(e==="object")return Dl(s,t,n);if(e==="array")return Ql(s,t,n)}function Dl(s,e,t){let n=Object.keys(s);if(n.length===0)return"{}";let i="{ ";for(let r=0;r<n.length;r++){let o=n[r];r&&(i+=", "),i+=tr.test(o)?o:Bs(o),i+=" = ",i+=Fs(s[o],Ve(s[o]),e-1,t)}return i+" }"}function Ql(s,e,t){if(s.length===0)return"[]";let n="[ ";for(let i=0;i<s.length;i++){if(i&&(n+=", "),s[i]===null||s[i]===void 0)throw new TypeError("arrays cannot contain null or undefined values");n+=Fs(s[i],Ve(s[i]),e-1,t)}return n+" ]"}function Hl(s,e,t,n){if(t===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let i="";for(let r=0;r<s.length;r++)i+=`${i&&`
170
170
  `}[[${e}]]
171
- `,i+=Fs(0,s[r],e,t,n);return i}function Fs(s,e,t,n,i){if(n===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let r="",o="",a=Object.keys(e);for(let l=0;l<a.length;l++){let c=a[l];if(e[c]!==null&&e[c]!==void 0){let u=je(e[c]);if(u==="symbol"||u==="function")throw new TypeError(`cannot serialize values of type '${u}'`);let f=er.test(c)?c:xs(c);if(u==="array"&&Gl(e[c]))o+=(o&&`
172
- `)+Dl(e[c],t?`${t}.${f}`:f,n-1,i);else if(u==="object"){let d=t?`${t}.${f}`:f;o+=(o&&`
173
- `)+Fs(d,e[c],d,n-1,i)}else r+=f,r+=" = ",r+=Bs(e[c],u,n,i),r+=`
171
+ `,i+=js(0,s[r],e,t,n);return i}function js(s,e,t,n,i){if(n===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let r="",o="",a=Object.keys(e);for(let l=0;l<a.length;l++){let c=a[l];if(e[c]!==null&&e[c]!==void 0){let u=Ve(e[c]);if(u==="symbol"||u==="function")throw new TypeError(`cannot serialize values of type '${u}'`);let f=tr.test(c)?c:Bs(c);if(u==="array"&&Xl(e[c]))o+=(o&&`
172
+ `)+Hl(e[c],t?`${t}.${f}`:f,n-1,i);else if(u==="object"){let d=t?`${t}.${f}`:f;o+=(o&&`
173
+ `)+js(d,e[c],d,n-1,i)}else r+=f,r+=" = ",r+=Fs(e[c],u,n,i),r+=`
174
174
  `}}return s&&(r||!o)&&(r=r?`[${s}]
175
175
  ${r}`:`[${s}]`),r&&o?`${r}
176
- ${o}`:r||o}function js(s,{maxDepth:e=1e3,numbersAsFloat:t=!1}={}){if(je(s)!=="object")throw new TypeError("stringify can only be called with an object");let n=Fs(0,s,"",e,t);return n[n.length-1]!==`
176
+ ${o}`:r||o}function Vs(s,{maxDepth:e=1e3,numbersAsFloat:t=!1}={}){if(Ve(s)!=="object")throw new TypeError("stringify can only be called with an object");let n=js(0,s,"",e,t);return n[n.length-1]!==`
177
177
  `?n+`
178
- `:n}var yt=As(Ya(),1),Oh=["yaml","xml","json","ini","csv","toml"],kh=["yaml","json","xml","ini","csv","toml"];function Ei(s){return typeof s=="string"&&Oh.includes(s)}function vi(s){return typeof s=="string"&&kh.includes(s)}var Ua={inputFormat:"yaml",outputFormat:"yaml",raw:!1,compact:!1,prettyPrint:!1,indent:2,xmlAttributePrefix:"+@",xmlContentName:"+content",csvDelimiter:"",csvHeader:!0};function qh(s){let e=s.lastIndexOf("."),t=Math.max(s.lastIndexOf("/"),s.lastIndexOf("\\"));return e<=t+1?"":s.slice(e)}function Ja(s){switch(qh(s).toLowerCase()){case".yaml":case".yml":return"yaml";case".json":return"json";case".xml":return"xml";case".ini":return"ini";case".csv":case".tsv":return"csv";case".toml":return"toml";default:return null}}function Ih(s,e,t){return Ni.default.parse(s,{delimiter:e||void 0,header:t,dynamicTyping:!0,skipEmptyLines:!0}).data}function Ch(s,e){return Array.isArray(s)||(s=[s]),Ni.default.unparse(s,{delimiter:e||","})}function Ai(s,e){let t=s.trim();if(!t)return null;switch(e.inputFormat){case"yaml":return yt.default.parse(t);case"json":return JSON.parse(t);case"xml":return new be({ignoreAttributes:!1,attributeNamePrefix:e.xmlAttributePrefix,textNodeName:e.xmlContentName,parseAttributeValue:!1,parseTagValue:!1,trimValues:!0,tagValueProcessor:(i,r)=>r===""?null:r}).parse(t);case"ini":return vs.parse(t);case"csv":return Ih(t,e.csvDelimiter,e.csvHeader);case"toml":return Ot(t);default:{let n=e.inputFormat;throw new Error(`Invalid input format: ${n}`)}}}function Wa(s){return yt.default.parseAllDocuments(s).map(t=>t.toJSON())}function Ga(s){let e=s.trimStart();if(e.startsWith("---")){let t=e.slice(3).match(/\n---(\n|$)/);if(t&&t.index!==void 0){let n=e.slice(3,t.index+3),i=e.slice(t.index+3+t[0].length);return{frontMatter:yt.default.parse(n),content:i}}}if(e.startsWith("+++")){let t=e.slice(3).match(/\n\+\+\+(\n|$)/);if(t&&t.index!==void 0){let n=e.slice(3,t.index+3),i=e.slice(t.index+3+t[0].length);return{frontMatter:Ot(n),content:i}}}if(e.startsWith("{{{")){let t=e.slice(3).match(/\n}}}(\n|$)/);if(t&&t.index!==void 0){let n=e.slice(3,t.index+3),i=e.slice(t.index+3+t[0].length);return{frontMatter:JSON.parse(n),content:i}}}return null}function Xa(s,e){if(s===void 0)return"";switch(e.outputFormat){case"yaml":return yt.default.stringify(s,{indent:e.indent}).trimEnd();case"json":return e.raw&&typeof s=="string"?s:e.compact?JSON.stringify(s):JSON.stringify(s,null,e.indent);case"xml":return new R({ignoreAttributes:!1,attributeNamePrefix:e.xmlAttributePrefix,textNodeName:e.xmlContentName,format:e.prettyPrint||!e.compact,indentBy:" ".repeat(e.indent)}).build(s);case"ini":return!s||typeof s!="object"||Array.isArray(s)?"":vs.stringify(s);case"csv":return Ch(s,e.csvDelimiter);case"toml":return!s||typeof s!="object"||Array.isArray(s)?"":js(s);default:throw new Error(`Unknown output format: ${e.outputFormat}`)}}var Lh={name:"yq",summary:"command-line YAML/XML/INI/CSV/TOML processor",usage:"yq [OPTIONS] [FILTER] [FILE]",description:`yq uses jq-style expressions to query and transform data in various formats.
178
+ `:n}var bt=Ts(Ua(),1);var kh=["yaml","xml","json","ini","csv","toml"],qh=["yaml","json","xml","ini","csv","toml"];function vi(s){return typeof s=="string"&&kh.includes(s)}function Ai(s){return typeof s=="string"&&qh.includes(s)}var Ja={inputFormat:"yaml",outputFormat:"yaml",raw:!1,compact:!1,prettyPrint:!1,indent:2,xmlAttributePrefix:"+@",xmlContentName:"+content",csvDelimiter:"",csvHeader:!0};function Ih(s){let e=s.lastIndexOf("."),t=Math.max(s.lastIndexOf("/"),s.lastIndexOf("\\"));return e<=t+1?"":s.slice(e)}function Wa(s){switch(Ih(s).toLowerCase()){case".yaml":case".yml":return"yaml";case".json":return"json";case".xml":return"xml";case".ini":return"ini";case".csv":case".tsv":return"csv";case".toml":return"toml";default:return null}}function Ch(s,e,t){return Ei.default.parse(s,{delimiter:e||void 0,header:t,dynamicTyping:!0,skipEmptyLines:!0}).data}function Lh(s,e){return Array.isArray(s)||(s=[s]),Ei.default.unparse(s,{delimiter:e||","})}function Ti(s,e){let t=s.trim();if(!t)return null;switch(e.inputFormat){case"yaml":return R(bt.default.parse(t,{maxAliasCount:100}));case"json":return R(JSON.parse(t));case"xml":{let n=new we({ignoreAttributes:!1,attributeNamePrefix:e.xmlAttributePrefix,textNodeName:e.xmlContentName,parseAttributeValue:!1,parseTagValue:!1,trimValues:!0,processEntities:!1,tagValueProcessor:(i,r)=>r===""?null:r});return R(n.parse(t))}case"ini":return R(As.parse(t));case"csv":return R(Ch(t,e.csvDelimiter,e.csvHeader));case"toml":return R(kt(t));default:{let n=e.inputFormat;throw new Error(`Invalid input format: ${n}`)}}}function Ga(s){return bt.default.parseAllDocuments(s).map(t=>R(t.toJS({maxAliasCount:100})))}function Xa(s){let e=s.trimStart();if(e.startsWith("---")){let t=e.slice(3).match(/\n---(\n|$)/);if(t&&t.index!==void 0){let n=e.slice(3,t.index+3),i=e.slice(t.index+3+t[0].length);return{frontMatter:R(bt.default.parse(n,{maxAliasCount:100})),content:i}}}if(e.startsWith("+++")){let t=e.slice(3).match(/\n\+\+\+(\n|$)/);if(t&&t.index!==void 0){let n=e.slice(3,t.index+3),i=e.slice(t.index+3+t[0].length);return{frontMatter:R(kt(n)),content:i}}}if(e.startsWith("{{{")){let t=e.slice(3).match(/\n}}}(\n|$)/);if(t&&t.index!==void 0){let n=e.slice(3,t.index+3),i=e.slice(t.index+3+t[0].length);return{frontMatter:R(JSON.parse(n)),content:i}}}return null}function Da(s,e){if(s===void 0)return"";switch(e.outputFormat){case"yaml":return bt.default.stringify(s,{indent:e.indent}).trimEnd();case"json":return e.raw&&typeof s=="string"?s:e.compact?JSON.stringify(s):JSON.stringify(s,null,e.indent);case"xml":return new Y({ignoreAttributes:!1,attributeNamePrefix:e.xmlAttributePrefix,textNodeName:e.xmlContentName,format:e.prettyPrint||!e.compact,indentBy:" ".repeat(e.indent)}).build(s);case"ini":return!s||typeof s!="object"||Array.isArray(s)?"":As.stringify(s);case"csv":return Lh(s,e.csvDelimiter);case"toml":return!s||typeof s!="object"||Array.isArray(s)?"":Vs(s);default:throw new Error(`Unknown output format: ${e.outputFormat}`)}}var Ph={name:"yq",summary:"command-line YAML/XML/INI/CSV/TOML processor",usage:"yq [OPTIONS] [FILTER] [FILE]",description:`yq uses jq-style expressions to query and transform data in various formats.
179
179
  Supports YAML, JSON, XML, INI, CSV, and TOML with automatic format conversion.
180
180
 
181
181
  EXAMPLES:
@@ -237,15 +237,15 @@ EXAMPLES:
237
237
  yq '.nums | min' data.yaml # minimum
238
238
  yq '.nums | max' data.yaml # maximum
239
239
  yq '.items | unique' data.yaml # unique values
240
- yq '.items | group_by(.type)' data.yaml`,options:["-p, --input-format=FMT input format: yaml (default), xml, json, ini, csv, toml","-o, --output-format=FMT output format: yaml (default), json, xml, ini, csv, toml","-i, --inplace modify file in-place","-r, --raw-output output strings without quotes (json only)","-c, --compact compact output (json only)","-e, --exit-status set exit status based on output","-s, --slurp read entire input into array","-n, --null-input don't read any input","-j, --join-output don't print newlines after each output","-f, --front-matter extract and process front-matter only","-P, --prettyPrint pretty print output","-I, --indent=N set indent level (default: 2)"," --xml-attribute-prefix=STR XML attribute prefix (default: +@)"," --xml-content-name=STR XML text content name (default: +content)"," --csv-delimiter=CHAR CSV delimiter (default: auto-detect)"," --csv-header CSV has header row (default: true)"," --help display this help and exit"]};function Ph(s){let e={...Ua,exitStatus:!1,slurp:!1,nullInput:!1,joinOutput:!1,inplace:!1,frontMatter:!1},t=!1,n=".",i=!1,r=[];for(let o=0;o<s.length;o++){let a=s[o];if(a.startsWith("--input-format=")){let l=a.slice(15);if(!Ei(l))return ae("yq",`--input-format=${l}`);e.inputFormat=l,t=!0}else if(a.startsWith("--output-format=")){let l=a.slice(16);if(!vi(l))return ae("yq",`--output-format=${l}`);e.outputFormat=l}else if(a.startsWith("--indent="))e.indent=Number.parseInt(a.slice(9),10);else if(a.startsWith("--xml-attribute-prefix="))e.xmlAttributePrefix=a.slice(23);else if(a.startsWith("--xml-content-name="))e.xmlContentName=a.slice(19);else if(a.startsWith("--csv-delimiter="))e.csvDelimiter=a.slice(16);else if(a==="--csv-header")e.csvHeader=!0;else if(a==="--no-csv-header")e.csvHeader=!1;else if(a==="-p"||a==="--input-format"){let l=s[++o];if(!Ei(l))return ae("yq",`${a} ${l}`);e.inputFormat=l,t=!0}else if(a==="-o"||a==="--output-format"){let l=s[++o];if(!vi(l))return ae("yq",`${a} ${l}`);e.outputFormat=l}else if(a==="-I"||a==="--indent")e.indent=Number.parseInt(s[++o],10);else if(a==="-r"||a==="--raw-output")e.raw=!0;else if(a==="-c"||a==="--compact")e.compact=!0;else if(a==="-e"||a==="--exit-status")e.exitStatus=!0;else if(a==="-s"||a==="--slurp")e.slurp=!0;else if(a==="-n"||a==="--null-input")e.nullInput=!0;else if(a==="-j"||a==="--join-output")e.joinOutput=!0;else if(a==="-i"||a==="--inplace")e.inplace=!0;else if(a==="-f"||a==="--front-matter")e.frontMatter=!0;else if(a==="-P"||a==="--prettyPrint")e.prettyPrint=!0;else if(a==="-")r.push("-");else{if(a.startsWith("--"))return ae("yq",a);if(a.startsWith("-"))for(let l of a.slice(1))if(l==="r")e.raw=!0;else if(l==="c")e.compact=!0;else if(l==="e")e.exitStatus=!0;else if(l==="s")e.slurp=!0;else if(l==="n")e.nullInput=!0;else if(l==="j")e.joinOutput=!0;else if(l==="i")e.inplace=!0;else if(l==="f")e.frontMatter=!0;else if(l==="P")e.prettyPrint=!0;else return ae("yq",`-${l}`);else i?r.push(a):(n=a,i=!0)}}return{options:e,filter:n,files:r,inputFormatExplicit:t}}var ug={name:"yq",async execute(s,e){qi(e.requireDefenseContext,"yq","execution entry");let t=(u,f)=>Ii(e.requireDefenseContext,"yq",u,f);if(ki(s))return Oi(Lh);let n=Ph(s);if("exitCode"in n)return n;let{options:i,filter:r,files:o,inputFormatExplicit:a}=n;if(!a&&o.length>0&&o[0]!=="-"){let u=Ja(o[0]);u&&(i.inputFormat=u)}if(i.inplace&&(o.length===0||o[0]==="-"))return{stdout:"",stderr:`yq: -i/--inplace requires a file argument
241
- `,exitCode:1};let l,c;if(i.nullInput)l="";else if(o.length===0||o.length===1&&o[0]==="-")l=e.stdin;else try{let u=e.fs.resolvePath(e.cwd,o[0]);c=u,l=await t("file read",()=>e.fs.readFile(u))}catch(u){if(u instanceof Ts)throw u;return{stdout:"",stderr:`yq: ${o[0]}: No such file or directory
242
- `,exitCode:2}}try{let u=Ci(r),f,d={limits:e.limits?{maxIterations:e.limits.maxJqIterations}:void 0,env:e.env,coverage:e.coverage,requireDefenseContext:e.requireDefenseContext};if(i.nullInput)f=Le(null,u,d);else if(i.frontMatter){let y=Ga(l);if(!y)return{stdout:"",stderr:`yq: no front-matter found
243
- `,exitCode:1};f=Le(y.frontMatter,u,d)}else if(i.slurp){let y;i.inputFormat==="yaml"?y=Wa(l):y=[Ai(l,i)],f=Le(y,u,d)}else{let y=Ai(l,i);f=Le(y,u,d)}let p=f.map(y=>Xa(y,i)),g=i.joinOutput?"":`
240
+ yq '.items | group_by(.type)' data.yaml`,options:["-p, --input-format=FMT input format: yaml (default), xml, json, ini, csv, toml","-o, --output-format=FMT output format: yaml (default), json, xml, ini, csv, toml","-i, --inplace modify file in-place","-r, --raw-output output strings without quotes (json only)","-c, --compact compact output (json only)","-e, --exit-status set exit status based on output","-s, --slurp read entire input into array","-n, --null-input don't read any input","-j, --join-output don't print newlines after each output","-f, --front-matter extract and process front-matter only","-P, --prettyPrint pretty print output","-I, --indent=N set indent level (default: 2)"," --xml-attribute-prefix=STR XML attribute prefix (default: +@)"," --xml-content-name=STR XML text content name (default: +content)"," --csv-delimiter=CHAR CSV delimiter (default: auto-detect)"," --csv-header CSV has header row (default: true)"," --help display this help and exit"]};function Mh(s){let e={...Ja,exitStatus:!1,slurp:!1,nullInput:!1,joinOutput:!1,inplace:!1,frontMatter:!1},t=!1,n=".",i=!1,r=[];for(let o=0;o<s.length;o++){let a=s[o];if(a.startsWith("--input-format=")){let l=a.slice(15);if(!vi(l))return le("yq",`--input-format=${l}`);e.inputFormat=l,t=!0}else if(a.startsWith("--output-format=")){let l=a.slice(16);if(!Ai(l))return le("yq",`--output-format=${l}`);e.outputFormat=l}else if(a.startsWith("--indent="))e.indent=Number.parseInt(a.slice(9),10);else if(a.startsWith("--xml-attribute-prefix="))e.xmlAttributePrefix=a.slice(23);else if(a.startsWith("--xml-content-name="))e.xmlContentName=a.slice(19);else if(a.startsWith("--csv-delimiter="))e.csvDelimiter=a.slice(16);else if(a==="--csv-header")e.csvHeader=!0;else if(a==="--no-csv-header")e.csvHeader=!1;else if(a==="-p"||a==="--input-format"){let l=s[++o];if(!vi(l))return le("yq",`${a} ${l}`);e.inputFormat=l,t=!0}else if(a==="-o"||a==="--output-format"){let l=s[++o];if(!Ai(l))return le("yq",`${a} ${l}`);e.outputFormat=l}else if(a==="-I"||a==="--indent")e.indent=Number.parseInt(s[++o],10);else if(a==="-r"||a==="--raw-output")e.raw=!0;else if(a==="-c"||a==="--compact")e.compact=!0;else if(a==="-e"||a==="--exit-status")e.exitStatus=!0;else if(a==="-s"||a==="--slurp")e.slurp=!0;else if(a==="-n"||a==="--null-input")e.nullInput=!0;else if(a==="-j"||a==="--join-output")e.joinOutput=!0;else if(a==="-i"||a==="--inplace")e.inplace=!0;else if(a==="-f"||a==="--front-matter")e.frontMatter=!0;else if(a==="-P"||a==="--prettyPrint")e.prettyPrint=!0;else if(a==="-")r.push("-");else{if(a.startsWith("--"))return le("yq",a);if(a.startsWith("-"))for(let l of a.slice(1))if(l==="r")e.raw=!0;else if(l==="c")e.compact=!0;else if(l==="e")e.exitStatus=!0;else if(l==="s")e.slurp=!0;else if(l==="n")e.nullInput=!0;else if(l==="j")e.joinOutput=!0;else if(l==="i")e.inplace=!0;else if(l==="f")e.frontMatter=!0;else if(l==="P")e.prettyPrint=!0;else return le("yq",`-${l}`);else i?r.push(a):(n=a,i=!0)}}return{options:e,filter:n,files:r,inputFormatExplicit:t}}var hg={name:"yq",async execute(s,e){Ii(e.requireDefenseContext,"yq","execution entry");let t=(u,f)=>Ci(e.requireDefenseContext,"yq",u,f);if(qi(s))return ki(Ph);let n=Mh(s);if("exitCode"in n)return n;let{options:i,filter:r,files:o,inputFormatExplicit:a}=n;if(!a&&o.length>0&&o[0]!=="-"){let u=Wa(o[0]);u&&(i.inputFormat=u)}if(i.inplace&&(o.length===0||o[0]==="-"))return{stdout:"",stderr:`yq: -i/--inplace requires a file argument
241
+ `,exitCode:1};let l,c;if(i.nullInput)l="";else if(o.length===0||o.length===1&&o[0]==="-")l=e.stdin;else try{let u=e.fs.resolvePath(e.cwd,o[0]);c=u,l=await t("file read",()=>e.fs.readFile(u))}catch(u){if(u instanceof Os)throw u;return{stdout:"",stderr:`yq: ${o[0]}: No such file or directory
242
+ `,exitCode:2}}try{let u=Li(r),f,d={limits:e.limits?{maxIterations:e.limits.maxJqIterations}:void 0,env:e.env,coverage:e.coverage,requireDefenseContext:e.requireDefenseContext};if(i.nullInput)f=Pe(null,u,d);else if(i.frontMatter){let y=Xa(l);if(!y)return{stdout:"",stderr:`yq: no front-matter found
243
+ `,exitCode:1};f=Pe(y.frontMatter,u,d)}else if(i.slurp){let y;i.inputFormat==="yaml"?y=Ga(l):y=[Ti(l,i)],f=Pe(y,u,d)}else{let y=Ti(l,i);f=Pe(y,u,d)}let p=f.map(y=>Da(y,i)),g=i.joinOutput?"":`
244
244
  `,h=p.filter(y=>y!=="").join(g),m=h?i.joinOutput?h:`${h}
245
- `:"";if(i.inplace&&c)return await t("in-place write",()=>e.fs.writeFile(c,m)),{stdout:"",stderr:"",exitCode:0};let w=i.exitStatus&&(f.length===0||f.every(y=>y==null||y===!1))?1:0;return{stdout:m,stderr:"",exitCode:w}}catch(u){if(u instanceof Ts)throw u;if(u instanceof Os)return{stdout:"",stderr:`yq: ${ks(u.message)}
246
- `,exitCode:Os.EXIT_CODE};let f=ks(u.message);return f.includes("Unknown function")?{stdout:"",stderr:`yq: error: ${f}
245
+ `:"";if(i.inplace&&c)return await t("in-place write",()=>e.fs.writeFile(c,m)),{stdout:"",stderr:"",exitCode:0};let w=i.exitStatus&&(f.length===0||f.every(y=>y==null||y===!1))?1:0;return{stdout:m,stderr:"",exitCode:w}}catch(u){if(u instanceof Os)throw u;if(u instanceof ks)return{stdout:"",stderr:`yq: ${qs(u.message)}
246
+ `,exitCode:ks.EXIT_CODE};let f=qs(u.message);return f.includes("Unknown function")?{stdout:"",stderr:`yq: error: ${f}
247
247
  `,exitCode:3}:{stdout:"",stderr:`yq: parse error: ${f}
248
- `,exitCode:5}}}},dg={name:"yq",flags:[{flag:"-r",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-i",type:"value",valueHint:"string"},{flag:"-o",type:"value",valueHint:"string"}],stdinType:"text",needsArgs:!0};export{ug as a,dg as b};
248
+ `,exitCode:5}}}},pg={name:"yq",flags:[{flag:"-r",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-i",type:"value",valueHint:"string"},{flag:"-o",type:"value",valueHint:"string"}],stdinType:"text",needsArgs:!0};export{hg as a,pg as b};
249
249
  /*! Bundled license information:
250
250
 
251
251
  smol-toml/dist/error.js: