windmill-cli 1.483.2 → 1.485.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_create_walk_entry.js +2 -2
  2. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_is_same_path.js +1 -1
  3. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_is_subdir.js +2 -2
  4. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_to_path_string.js +1 -1
  5. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/copy.js +3 -3
  6. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/empty_dir.js +1 -1
  7. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_file.js +1 -1
  8. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_link.js +1 -1
  9. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_symlink.js +2 -2
  10. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/expand_glob.js +6 -6
  11. package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/walk.js +1 -1
  12. package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
  13. package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
  14. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/assert_path.js +1 -1
  15. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/basename.js +1 -1
  16. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/common.js +1 -1
  17. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/constants.js +1 -1
  18. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/dirname.js +1 -1
  19. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/format.js +1 -1
  20. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/from_file_url.js +1 -1
  21. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/glob_to_reg_exp.js +1 -1
  22. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/normalize.js +1 -1
  23. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/normalize_string.js +1 -1
  24. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/relative.js +1 -1
  25. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/strip_trailing_separators.js +1 -1
  26. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/to_file_url.js +1 -1
  27. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_os.js +1 -1
  28. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/basename.js +1 -1
  29. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/common.js +1 -1
  30. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/constants.js +1 -1
  31. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/dirname.js +1 -1
  32. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/extname.js +1 -1
  33. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/format.js +1 -1
  34. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/from_file_url.js +1 -1
  35. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/glob_to_regexp.js +1 -1
  36. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/is_absolute.js +1 -1
  37. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/is_glob.js +1 -1
  38. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/join.js +1 -1
  39. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/join_globs.js +1 -1
  40. package/esm/deps/jsr.io/@std/path/1.0.9/mod.js +216 -0
  41. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/normalize.js +1 -1
  42. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/normalize_glob.js +1 -1
  43. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/parse.js +1 -1
  44. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/_util.js +1 -1
  45. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/basename.js +1 -1
  46. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/constants.js +1 -1
  47. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/dirname.js +1 -1
  48. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/extname.js +1 -1
  49. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/format.js +1 -1
  50. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/from_file_url.js +1 -1
  51. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/glob_to_regexp.js +1 -1
  52. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/is_absolute.js +1 -1
  53. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/join.js +1 -1
  54. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/join_globs.js +1 -1
  55. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/normalize.js +1 -1
  56. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/normalize_glob.js +1 -1
  57. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/parse.js +1 -1
  58. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/relative.js +1 -1
  59. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/resolve.js +1 -1
  60. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/to_file_url.js +1 -1
  61. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/to_namespaced_path.js +1 -1
  62. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/relative.js +1 -1
  63. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/resolve.js +1 -1
  64. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/to_file_url.js +1 -1
  65. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/to_namespaced_path.js +1 -1
  66. package/esm/deps/jsr.io/@std/path/1.0.9/types.js +3 -0
  67. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/_util.js +1 -1
  68. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/basename.js +1 -1
  69. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/constants.js +1 -1
  70. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/dirname.js +1 -1
  71. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/extname.js +1 -1
  72. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/format.js +1 -1
  73. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/from_file_url.js +1 -1
  74. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/glob_to_regexp.js +1 -1
  75. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/is_absolute.js +1 -1
  76. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/join.js +1 -1
  77. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/join_globs.js +1 -1
  78. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/normalize.js +1 -1
  79. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/normalize_glob.js +1 -1
  80. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/parse.js +1 -1
  81. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/relative.js +1 -1
  82. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/resolve.js +1 -1
  83. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/to_file_url.js +1 -1
  84. package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/to_namespaced_path.js +1 -1
  85. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_chars.js +1 -1
  86. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_dumper_state.js +1 -1
  87. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_loader_state.js +113 -122
  88. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_schema.js +1 -6
  89. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/bool.js +1 -1
  90. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/float.js +1 -1
  91. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/int.js +1 -1
  92. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/map.js +1 -1
  93. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/merge.js +1 -1
  94. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/nil.js +1 -1
  95. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/omap.js +1 -1
  96. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/pairs.js +1 -1
  97. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/regexp.js +1 -1
  98. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/seq.js +1 -1
  99. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/set.js +1 -1
  100. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/str.js +1 -1
  101. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/timestamp.js +1 -1
  102. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/undefined.js +1 -1
  103. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type.js +1 -1
  104. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_utils.js +1 -1
  105. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/mod.js +1 -1
  106. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/parse.js +1 -1
  107. package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/stringify.js +1 -1
  108. package/esm/deps.js +5 -5
  109. package/esm/gen/core/OpenAPI.js +1 -1
  110. package/esm/main.js +1 -1
  111. package/package.json +1 -1
  112. package/types/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.7}/colors.d.ts.map +1 -1
  113. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_create_walk_entry.d.ts.map +1 -1
  114. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_get_file_info_type.d.ts.map +1 -1
  115. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_is_same_path.d.ts.map +1 -1
  116. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_is_subdir.d.ts.map +1 -1
  117. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_to_path_string.d.ts.map +1 -1
  118. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/copy.d.ts.map +1 -1
  119. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/empty_dir.d.ts.map +1 -1
  120. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_dir.d.ts.map +1 -1
  121. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_file.d.ts.map +1 -1
  122. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_link.d.ts.map +1 -1
  123. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_symlink.d.ts.map +1 -1
  124. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/eol.d.ts.map +1 -1
  125. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/exists.d.ts.map +1 -1
  126. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/expand_glob.d.ts +1 -1
  127. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/expand_glob.d.ts.map +1 -1
  128. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/mod.d.ts.map +1 -1
  129. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/move.d.ts.map +1 -1
  130. package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/walk.d.ts.map +1 -1
  131. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/assert_path.d.ts.map +1 -1
  132. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/basename.d.ts.map +1 -1
  133. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/common.d.ts.map +1 -1
  134. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/constants.d.ts.map +1 -1
  135. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/dirname.d.ts.map +1 -1
  136. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/format.d.ts.map +1 -1
  137. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/from_file_url.d.ts.map +1 -1
  138. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/glob_to_reg_exp.d.ts.map +1 -1
  139. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/normalize.d.ts.map +1 -1
  140. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/normalize_string.d.ts.map +1 -1
  141. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/relative.d.ts.map +1 -1
  142. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/strip_trailing_separators.d.ts.map +1 -1
  143. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/to_file_url.d.ts.map +1 -1
  144. package/types/deps/jsr.io/@std/path/1.0.9/_os.d.ts.map +1 -0
  145. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/basename.d.ts.map +1 -1
  146. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/common.d.ts.map +1 -1
  147. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/constants.d.ts.map +1 -1
  148. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/dirname.d.ts.map +1 -1
  149. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/extname.d.ts.map +1 -1
  150. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/format.d.ts.map +1 -1
  151. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/from_file_url.d.ts.map +1 -1
  152. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/glob_to_regexp.d.ts.map +1 -1
  153. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/is_absolute.d.ts.map +1 -1
  154. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/is_glob.d.ts.map +1 -1
  155. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/join.d.ts.map +1 -1
  156. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/join_globs.d.ts.map +1 -1
  157. package/types/deps/jsr.io/@std/path/1.0.9/mod.d.ts +213 -0
  158. package/types/deps/jsr.io/@std/path/1.0.9/mod.d.ts.map +1 -0
  159. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/normalize.d.ts.map +1 -1
  160. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/normalize_glob.d.ts.map +1 -1
  161. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/parse.d.ts.map +1 -1
  162. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/_util.d.ts.map +1 -1
  163. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/basename.d.ts.map +1 -1
  164. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/constants.d.ts.map +1 -1
  165. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/dirname.d.ts.map +1 -1
  166. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/extname.d.ts.map +1 -1
  167. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/format.d.ts.map +1 -1
  168. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/from_file_url.d.ts.map +1 -1
  169. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/glob_to_regexp.d.ts.map +1 -1
  170. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/is_absolute.d.ts.map +1 -1
  171. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/join.d.ts.map +1 -1
  172. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/join_globs.d.ts.map +1 -1
  173. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/normalize.d.ts.map +1 -1
  174. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/normalize_glob.d.ts.map +1 -1
  175. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/parse.d.ts.map +1 -1
  176. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/relative.d.ts.map +1 -1
  177. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/resolve.d.ts.map +1 -1
  178. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/to_file_url.d.ts.map +1 -1
  179. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/to_namespaced_path.d.ts.map +1 -1
  180. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/relative.d.ts.map +1 -1
  181. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/resolve.d.ts.map +1 -1
  182. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/to_file_url.d.ts.map +1 -1
  183. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/to_namespaced_path.d.ts.map +1 -1
  184. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/types.d.ts.map +1 -1
  185. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/_util.d.ts.map +1 -1
  186. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/basename.d.ts.map +1 -1
  187. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/constants.d.ts.map +1 -1
  188. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/dirname.d.ts.map +1 -1
  189. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/extname.d.ts.map +1 -1
  190. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/format.d.ts.map +1 -1
  191. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/from_file_url.d.ts.map +1 -1
  192. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/glob_to_regexp.d.ts.map +1 -1
  193. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/is_absolute.d.ts.map +1 -1
  194. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/join.d.ts.map +1 -1
  195. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/join_globs.d.ts.map +1 -1
  196. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/normalize.d.ts.map +1 -1
  197. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/normalize_glob.d.ts.map +1 -1
  198. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/parse.d.ts.map +1 -1
  199. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/relative.d.ts.map +1 -1
  200. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/resolve.d.ts.map +1 -1
  201. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/to_file_url.d.ts.map +1 -1
  202. package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/to_namespaced_path.d.ts.map +1 -1
  203. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_chars.d.ts.map +1 -1
  204. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_dumper_state.d.ts.map +1 -1
  205. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_loader_state.d.ts +6 -5
  206. package/types/deps/jsr.io/@std/yaml/1.0.6/_loader_state.d.ts.map +1 -0
  207. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_schema.d.ts.map +1 -1
  208. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/binary.d.ts.map +1 -1
  209. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/bool.d.ts.map +1 -1
  210. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/float.d.ts.map +1 -1
  211. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/int.d.ts.map +1 -1
  212. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/map.d.ts.map +1 -1
  213. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/merge.d.ts.map +1 -1
  214. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/nil.d.ts.map +1 -1
  215. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/omap.d.ts.map +1 -1
  216. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/pairs.d.ts.map +1 -1
  217. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/regexp.d.ts.map +1 -1
  218. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/seq.d.ts.map +1 -1
  219. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/set.d.ts.map +1 -1
  220. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/str.d.ts.map +1 -1
  221. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/timestamp.d.ts.map +1 -1
  222. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/undefined.d.ts.map +1 -1
  223. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type.d.ts.map +1 -1
  224. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_utils.d.ts.map +1 -1
  225. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/mod.d.ts.map +1 -1
  226. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/parse.d.ts.map +1 -1
  227. package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/stringify.d.ts.map +1 -1
  228. package/types/deps.d.ts +5 -5
  229. package/types/gen/types.gen.d.ts +18 -0
  230. package/types/gen/types.gen.d.ts.map +1 -1
  231. package/types/main.d.ts +1 -1
  232. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
  233. package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
  234. package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
  235. package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  236. package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  237. package/types/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +0 -1
  238. /package/esm/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.7}/colors.js +0 -0
  239. /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_get_file_info_type.js +0 -0
  240. /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_dir.js +0 -0
  241. /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/eol.js +0 -0
  242. /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/exists.js +0 -0
  243. /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/mod.js +0 -0
  244. /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/move.js +0 -0
  245. /package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/binary.js +0 -0
  246. /package/types/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.7}/colors.d.ts +0 -0
  247. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_create_walk_entry.d.ts +0 -0
  248. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_get_file_info_type.d.ts +0 -0
  249. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_is_same_path.d.ts +0 -0
  250. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_is_subdir.d.ts +0 -0
  251. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/_to_path_string.d.ts +0 -0
  252. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/copy.d.ts +0 -0
  253. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/empty_dir.d.ts +0 -0
  254. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_dir.d.ts +0 -0
  255. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_file.d.ts +0 -0
  256. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_link.d.ts +0 -0
  257. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/ensure_symlink.d.ts +0 -0
  258. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/eol.d.ts +0 -0
  259. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/exists.d.ts +0 -0
  260. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/mod.d.ts +0 -0
  261. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/move.d.ts +0 -0
  262. /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/walk.d.ts +0 -0
  263. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/assert_path.d.ts +0 -0
  264. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/basename.d.ts +0 -0
  265. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/common.d.ts +0 -0
  266. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/constants.d.ts +0 -0
  267. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/dirname.d.ts +0 -0
  268. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/format.d.ts +0 -0
  269. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/from_file_url.d.ts +0 -0
  270. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/glob_to_reg_exp.d.ts +0 -0
  271. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/normalize.d.ts +0 -0
  272. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/normalize_string.d.ts +0 -0
  273. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/relative.d.ts +0 -0
  274. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/strip_trailing_separators.d.ts +0 -0
  275. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_common/to_file_url.d.ts +0 -0
  276. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/_os.d.ts +0 -0
  277. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/basename.d.ts +0 -0
  278. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/common.d.ts +0 -0
  279. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/constants.d.ts +0 -0
  280. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/dirname.d.ts +0 -0
  281. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/extname.d.ts +0 -0
  282. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/format.d.ts +0 -0
  283. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/from_file_url.d.ts +0 -0
  284. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/glob_to_regexp.d.ts +0 -0
  285. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/is_absolute.d.ts +0 -0
  286. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/is_glob.d.ts +0 -0
  287. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/join.d.ts +0 -0
  288. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/join_globs.d.ts +0 -0
  289. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/normalize.d.ts +0 -0
  290. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/normalize_glob.d.ts +0 -0
  291. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/parse.d.ts +0 -0
  292. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/_util.d.ts +0 -0
  293. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/basename.d.ts +0 -0
  294. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/constants.d.ts +0 -0
  295. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/dirname.d.ts +0 -0
  296. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/extname.d.ts +0 -0
  297. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/format.d.ts +0 -0
  298. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/from_file_url.d.ts +0 -0
  299. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/glob_to_regexp.d.ts +0 -0
  300. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/is_absolute.d.ts +0 -0
  301. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/join.d.ts +0 -0
  302. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/join_globs.d.ts +0 -0
  303. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/normalize.d.ts +0 -0
  304. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/normalize_glob.d.ts +0 -0
  305. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/parse.d.ts +0 -0
  306. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/relative.d.ts +0 -0
  307. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/resolve.d.ts +0 -0
  308. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/to_file_url.d.ts +0 -0
  309. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/posix/to_namespaced_path.d.ts +0 -0
  310. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/relative.d.ts +0 -0
  311. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/resolve.d.ts +0 -0
  312. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/to_file_url.d.ts +0 -0
  313. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/to_namespaced_path.d.ts +0 -0
  314. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/types.d.ts +0 -0
  315. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/_util.d.ts +0 -0
  316. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/basename.d.ts +0 -0
  317. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/constants.d.ts +0 -0
  318. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/dirname.d.ts +0 -0
  319. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/extname.d.ts +0 -0
  320. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/format.d.ts +0 -0
  321. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/from_file_url.d.ts +0 -0
  322. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/glob_to_regexp.d.ts +0 -0
  323. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/is_absolute.d.ts +0 -0
  324. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/join.d.ts +0 -0
  325. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/join_globs.d.ts +0 -0
  326. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/normalize.d.ts +0 -0
  327. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/normalize_glob.d.ts +0 -0
  328. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/parse.d.ts +0 -0
  329. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/relative.d.ts +0 -0
  330. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/resolve.d.ts +0 -0
  331. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/to_file_url.d.ts +0 -0
  332. /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.0.9}/windows/to_namespaced_path.d.ts +0 -0
  333. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_chars.d.ts +0 -0
  334. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_dumper_state.d.ts +0 -0
  335. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_schema.d.ts +0 -0
  336. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/binary.d.ts +0 -0
  337. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/bool.d.ts +0 -0
  338. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/float.d.ts +0 -0
  339. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/int.d.ts +0 -0
  340. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/map.d.ts +0 -0
  341. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/merge.d.ts +0 -0
  342. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/nil.d.ts +0 -0
  343. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/omap.d.ts +0 -0
  344. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/pairs.d.ts +0 -0
  345. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/regexp.d.ts +0 -0
  346. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/seq.d.ts +0 -0
  347. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/set.d.ts +0 -0
  348. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/str.d.ts +0 -0
  349. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/timestamp.d.ts +0 -0
  350. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type/undefined.d.ts +0 -0
  351. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_type.d.ts +0 -0
  352. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/_utils.d.ts +0 -0
  353. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/mod.d.ts +0 -0
  354. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/parse.d.ts +0 -0
  355. /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.6}/stringify.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  // Ported from js-yaml v3.13.1:
2
2
  // https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
3
3
  // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
4
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
4
+ // Copyright 2018-2025 the Deno authors. MIT license.
5
5
  var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6
6
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7
7
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
@@ -243,6 +243,21 @@ export class LoaderState {
243
243
  this.version = null;
244
244
  this.readIndent();
245
245
  }
246
+ skipWhitespaces() {
247
+ let ch = this.peek();
248
+ while (isWhiteSpace(ch)) {
249
+ ch = this.next();
250
+ }
251
+ }
252
+ skipComment() {
253
+ let ch = this.peek();
254
+ if (ch !== SHARP)
255
+ return;
256
+ ch = this.next();
257
+ while (ch !== 0 && !isEOL(ch)) {
258
+ ch = this.next();
259
+ }
260
+ }
246
261
  readIndent() {
247
262
  let char = this.peek();
248
263
  while (char === SPACE) {
@@ -257,28 +272,25 @@ export class LoaderState {
257
272
  this.position += 1;
258
273
  return this.peek();
259
274
  }
260
- throwError(message) {
261
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, message);
262
- }
263
275
  dispatchWarning(message) {
264
276
  const error = __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, message);
265
277
  this.onWarning?.(error);
266
278
  }
267
279
  yamlDirectiveHandler(...args) {
268
280
  if (this.version !== null) {
269
- return this.throwError("Cannot handle YAML directive: duplication of %YAML directive");
281
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: duplication of %YAML directive");
270
282
  }
271
283
  if (args.length !== 1) {
272
- return this.throwError("Cannot handle YAML directive: YAML directive accepts exactly one argument");
284
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: YAML directive accepts exactly one argument");
273
285
  }
274
286
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
275
287
  if (match === null) {
276
- return this.throwError("Cannot handle YAML directive: ill-formed argument");
288
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: ill-formed argument");
277
289
  }
278
290
  const major = parseInt(match[1], 10);
279
291
  const minor = parseInt(match[2], 10);
280
292
  if (major !== 1) {
281
- return this.throwError("Cannot handle YAML directive: unacceptable YAML version");
293
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: unacceptable YAML version");
282
294
  }
283
295
  this.version = args[0] ?? null;
284
296
  this.checkLineBreaks = minor < 2;
@@ -288,57 +300,53 @@ export class LoaderState {
288
300
  }
289
301
  tagDirectiveHandler(...args) {
290
302
  if (args.length !== 2) {
291
- return this.throwError(`Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`);
303
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`);
292
304
  }
293
305
  const handle = args[0];
294
306
  const prefix = args[1];
295
307
  if (!PATTERN_TAG_HANDLE.test(handle)) {
296
- return this.throwError(`Cannot handle tag directive: ill-formed handle (first argument) in "${handle}"`);
308
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot handle tag directive: ill-formed handle (first argument) in "${handle}"`);
297
309
  }
298
310
  if (this.tagMap.has(handle)) {
299
- return this.throwError(`Cannot handle tag directive: previously declared suffix for "${handle}" tag handle`);
311
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot handle tag directive: previously declared suffix for "${handle}" tag handle`);
300
312
  }
301
313
  if (!PATTERN_TAG_URI.test(prefix)) {
302
- return this.throwError("Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive");
314
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive");
303
315
  }
304
316
  this.tagMap.set(handle, prefix);
305
317
  }
306
318
  captureSegment(start, end, checkJson) {
307
- let result;
308
319
  if (start < end) {
309
- result = this.input.slice(start, end);
320
+ const result = this.input.slice(start, end);
310
321
  if (checkJson) {
311
322
  for (let position = 0; position < result.length; position++) {
312
323
  const character = result.charCodeAt(position);
313
324
  if (!(character === 0x09 ||
314
325
  (0x20 <= character && character <= 0x10ffff))) {
315
- return this.throwError(`Expected valid JSON character: received "${character}"`);
326
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Expected valid JSON character: received "${character}"`);
316
327
  }
317
328
  }
318
329
  }
319
330
  else if (PATTERN_NON_PRINTABLE.test(result)) {
320
- return this.throwError("Stream contains non-printable characters");
331
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Stream contains non-printable characters");
321
332
  }
322
333
  this.result += result;
323
334
  }
324
335
  }
325
336
  readBlockSequence(nodeIndent) {
326
- let line;
327
- let following;
328
337
  let detected = false;
329
- let ch;
330
338
  const tag = this.tag;
331
339
  const anchor = this.anchor;
332
340
  const result = [];
333
341
  if (this.anchor !== null && typeof this.anchor !== "undefined") {
334
342
  this.anchorMap.set(this.anchor, result);
335
343
  }
336
- ch = this.peek();
344
+ let ch = this.peek();
337
345
  while (ch !== 0) {
338
346
  if (ch !== MINUS) {
339
347
  break;
340
348
  }
341
- following = this.peek(1);
349
+ const following = this.peek(1);
342
350
  if (!isWhiteSpaceOrEOL(following)) {
343
351
  break;
344
352
  }
@@ -351,13 +359,13 @@ export class LoaderState {
351
359
  continue;
352
360
  }
353
361
  }
354
- line = this.line;
362
+ const line = this.line;
355
363
  this.composeNode(nodeIndent, CONTEXT_BLOCK_IN, false, true);
356
364
  result.push(this.result);
357
365
  this.skipSeparationSpace(true, -1);
358
366
  ch = this.peek();
359
367
  if ((this.line === line || this.lineIndent > nodeIndent) && ch !== 0) {
360
- return this.throwError("Cannot read block sequence: bad indentation of a sequence entry");
368
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block sequence: bad indentation of a sequence entry");
361
369
  }
362
370
  else if (this.lineIndent < nodeIndent) {
363
371
  break;
@@ -374,7 +382,7 @@ export class LoaderState {
374
382
  }
375
383
  mergeMappings(destination, source, overridableKeys) {
376
384
  if (!isObject(source)) {
377
- return this.throwError("Cannot merge mappings: the provided source object is unacceptable");
385
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot merge mappings: the provided source object is unacceptable");
378
386
  }
379
387
  for (const [key, value] of Object.entries(source)) {
380
388
  if (Object.hasOwn(destination, key))
@@ -396,7 +404,7 @@ export class LoaderState {
396
404
  keyNode = Array.prototype.slice.call(keyNode);
397
405
  for (let index = 0; index < keyNode.length; index++) {
398
406
  if (Array.isArray(keyNode[index])) {
399
- return this.throwError("Cannot store mapping pair: nested arrays are not supported inside keys");
407
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot store mapping pair: nested arrays are not supported inside keys");
400
408
  }
401
409
  if (typeof keyNode === "object" && isPlainObject(keyNode[index])) {
402
410
  keyNode[index] = "[object Object]";
@@ -426,7 +434,7 @@ export class LoaderState {
426
434
  Object.hasOwn(result, keyNode)) {
427
435
  this.line = startLine || this.line;
428
436
  this.position = startPos || this.position;
429
- return this.throwError("Cannot store mapping pair: duplicated key");
437
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot store mapping pair: duplicated key");
430
438
  }
431
439
  Object.defineProperty(result, keyNode, {
432
440
  value: valueNode,
@@ -450,7 +458,7 @@ export class LoaderState {
450
458
  }
451
459
  }
452
460
  else {
453
- return this.throwError("Cannot read line: line break not found");
461
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read line: line break not found");
454
462
  }
455
463
  this.line += 1;
456
464
  this.lineStart = this.position;
@@ -459,13 +467,11 @@ export class LoaderState {
459
467
  let lineBreaks = 0;
460
468
  let ch = this.peek();
461
469
  while (ch !== 0) {
462
- while (isWhiteSpace(ch)) {
463
- ch = this.next();
464
- }
465
- if (allowComments && ch === SHARP) {
466
- do {
467
- ch = this.next();
468
- } while (ch !== LINE_FEED && ch !== CARRIAGE_RETURN && ch !== 0);
470
+ this.skipWhitespaces();
471
+ ch = this.peek();
472
+ if (allowComments) {
473
+ this.skipComment();
474
+ ch = this.peek();
469
475
  }
470
476
  if (isEOL(ch)) {
471
477
  this.readLineBreak();
@@ -597,18 +603,17 @@ export class LoaderState {
597
603
  return false;
598
604
  }
599
605
  readSingleQuotedScalar(nodeIndent) {
600
- let ch;
601
- let captureStart;
602
- let captureEnd;
603
- ch = this.peek();
606
+ let ch = this.peek();
604
607
  if (ch !== SINGLE_QUOTE) {
605
608
  return false;
606
609
  }
607
610
  this.kind = "scalar";
608
611
  this.result = "";
609
612
  this.position++;
610
- captureStart = captureEnd = this.position;
611
- while ((ch = this.peek()) !== 0) {
613
+ let captureStart = this.position;
614
+ let captureEnd = this.position;
615
+ ch = this.peek();
616
+ while (ch !== 0) {
612
617
  if (ch === SINGLE_QUOTE) {
613
618
  this.captureSegment(captureStart, this.position, true);
614
619
  ch = this.next();
@@ -628,14 +633,15 @@ export class LoaderState {
628
633
  }
629
634
  else if (this.position === this.lineStart &&
630
635
  this.testDocumentSeparator()) {
631
- return this.throwError("Unexpected end of the document within a single quoted scalar");
636
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the document within a single quoted scalar");
632
637
  }
633
638
  else {
634
639
  this.position++;
635
640
  captureEnd = this.position;
636
641
  }
642
+ ch = this.peek();
637
643
  }
638
- return this.throwError("Unexpected end of the stream within a single quoted scalar");
644
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the stream within a single quoted scalar");
639
645
  }
640
646
  readDoubleQuotedScalar(nodeIndent) {
641
647
  let ch = this.peek();
@@ -648,7 +654,8 @@ export class LoaderState {
648
654
  let captureEnd = this.position;
649
655
  let captureStart = this.position;
650
656
  let tmp;
651
- while ((ch = this.peek()) !== 0) {
657
+ ch = this.peek();
658
+ while (ch !== 0) {
652
659
  if (ch === DOUBLE_QUOTE) {
653
660
  this.captureSegment(captureStart, this.position, true);
654
661
  this.position++;
@@ -673,14 +680,14 @@ export class LoaderState {
673
680
  hexResult = (hexResult << 4) + tmp;
674
681
  }
675
682
  else {
676
- return this.throwError("Cannot read double quoted scalar: expected hexadecimal character");
683
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read double quoted scalar: expected hexadecimal character");
677
684
  }
678
685
  }
679
686
  this.result += codepointToChar(hexResult);
680
687
  this.position++;
681
688
  }
682
689
  else {
683
- return this.throwError("Cannot read double quoted scalar: unknown escape sequence");
690
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read double quoted scalar: unknown escape sequence");
684
691
  }
685
692
  captureStart = captureEnd = this.position;
686
693
  }
@@ -691,14 +698,15 @@ export class LoaderState {
691
698
  }
692
699
  else if (this.position === this.lineStart &&
693
700
  this.testDocumentSeparator()) {
694
- return this.throwError("Unexpected end of the document within a double quoted scalar");
701
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the document within a double quoted scalar");
695
702
  }
696
703
  else {
697
704
  this.position++;
698
705
  captureEnd = this.position;
699
706
  }
707
+ ch = this.peek();
700
708
  }
701
- return this.throwError("Unexpected end of the stream within a double quoted scalar");
709
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the stream within a double quoted scalar");
702
710
  }
703
711
  readFlowCollection(nodeIndent) {
704
712
  let ch = this.peek();
@@ -743,7 +751,7 @@ export class LoaderState {
743
751
  return true;
744
752
  }
745
753
  if (!readNext) {
746
- return this.throwError("Cannot read flow collection: missing comma between flow collection entries");
754
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read flow collection: missing comma between flow collection entries");
747
755
  }
748
756
  keyTag = keyNode = valueNode = null;
749
757
  isPair = isExplicitPair = false;
@@ -787,7 +795,7 @@ export class LoaderState {
787
795
  readNext = false;
788
796
  }
789
797
  }
790
- return this.throwError("Cannot read flow collection: unexpected end of the stream within a flow collection");
798
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read flow collection: unexpected end of the stream within a flow collection");
791
799
  }
792
800
  // Handles block scaler styles: e.g. '|', '>', '|-' and '>-'.
793
801
  // https://yaml.org/spec/1.2.2/#81-block-scalar-styles
@@ -819,19 +827,19 @@ export class LoaderState {
819
827
  chomping = ch === PLUS ? CHOMPING_KEEP : CHOMPING_STRIP;
820
828
  }
821
829
  else {
822
- return this.throwError("Cannot read block: chomping mode identifier repeated");
830
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: chomping mode identifier repeated");
823
831
  }
824
832
  }
825
833
  else if ((tmp = decimalCharCodeToNumber(ch)) >= 0) {
826
834
  if (tmp === 0) {
827
- return this.throwError("Cannot read block: indentation width must be greater than 0");
835
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: indentation width must be greater than 0");
828
836
  }
829
837
  else if (!detectedIndent) {
830
838
  textIndent = nodeIndent + tmp - 1;
831
839
  detectedIndent = true;
832
840
  }
833
841
  else {
834
- return this.throwError("Cannot read block: indentation width identifier repeated");
842
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: indentation width identifier repeated");
835
843
  }
836
844
  }
837
845
  else {
@@ -839,14 +847,9 @@ export class LoaderState {
839
847
  }
840
848
  }
841
849
  if (isWhiteSpace(ch)) {
842
- do {
843
- ch = this.next();
844
- } while (isWhiteSpace(ch));
845
- if (ch === SHARP) {
846
- do {
847
- ch = this.next();
848
- } while (!isEOL(ch) && ch !== 0);
849
- }
850
+ this.skipWhitespaces();
851
+ this.skipComment();
852
+ ch = this.peek();
850
853
  }
851
854
  while (ch !== 0) {
852
855
  this.readLineBreak();
@@ -925,7 +928,6 @@ export class LoaderState {
925
928
  const anchor = this.anchor;
926
929
  const result = {};
927
930
  const overridableKeys = new Set();
928
- let following;
929
931
  let allowCompact = false;
930
932
  let line;
931
933
  let pos;
@@ -934,13 +936,12 @@ export class LoaderState {
934
936
  let valueNode = null;
935
937
  let atExplicitKey = false;
936
938
  let detected = false;
937
- let ch;
938
939
  if (this.anchor !== null && typeof this.anchor !== "undefined") {
939
940
  this.anchorMap.set(this.anchor, result);
940
941
  }
941
- ch = this.peek();
942
+ let ch = this.peek();
942
943
  while (ch !== 0) {
943
- following = this.peek(1);
944
+ const following = this.peek(1);
944
945
  line = this.line; // Save the current line.
945
946
  pos = this.position;
946
947
  //
@@ -951,7 +952,9 @@ export class LoaderState {
951
952
  if (ch === QUESTION) {
952
953
  if (atExplicitKey) {
953
954
  this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
954
- keyTag = keyNode = valueNode = null;
955
+ keyTag = null;
956
+ keyNode = null;
957
+ valueNode = null;
955
958
  }
956
959
  detected = true;
957
960
  atExplicitKey = true;
@@ -963,7 +966,7 @@ export class LoaderState {
963
966
  allowCompact = true;
964
967
  }
965
968
  else {
966
- return this.throwError("Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line");
969
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line");
967
970
  }
968
971
  this.position += 1;
969
972
  ch = following;
@@ -974,17 +977,18 @@ export class LoaderState {
974
977
  else if (this.composeNode(flowIndent, CONTEXT_FLOW_OUT, false, true)) {
975
978
  if (this.line === line) {
976
979
  ch = this.peek();
977
- while (isWhiteSpace(ch)) {
978
- ch = this.next();
979
- }
980
+ this.skipWhitespaces();
981
+ ch = this.peek();
980
982
  if (ch === COLON) {
981
983
  ch = this.next();
982
984
  if (!isWhiteSpaceOrEOL(ch)) {
983
- return this.throwError("Cannot read block: a whitespace character is expected after the key-value separator within a block mapping");
985
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: a whitespace character is expected after the key-value separator within a block mapping");
984
986
  }
985
987
  if (atExplicitKey) {
986
988
  this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
987
- keyTag = keyNode = valueNode = null;
989
+ keyTag = null;
990
+ keyNode = null;
991
+ valueNode = null;
988
992
  }
989
993
  detected = true;
990
994
  atExplicitKey = false;
@@ -993,7 +997,7 @@ export class LoaderState {
993
997
  keyNode = this.result;
994
998
  }
995
999
  else if (detected) {
996
- return this.throwError("Cannot read an implicit mapping pair: missing colon");
1000
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read an implicit mapping pair: missing colon");
997
1001
  }
998
1002
  else {
999
1003
  this.tag = tag;
@@ -1002,7 +1006,7 @@ export class LoaderState {
1002
1006
  }
1003
1007
  }
1004
1008
  else if (detected) {
1005
- return this.throwError("Cannot read a block mapping entry: a multiline key may not be an implicit key");
1009
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read a block mapping entry: a multiline key may not be an implicit key");
1006
1010
  }
1007
1011
  else {
1008
1012
  this.tag = tag;
@@ -1033,7 +1037,7 @@ export class LoaderState {
1033
1037
  ch = this.peek();
1034
1038
  }
1035
1039
  if (this.lineIndent > nodeIndent && ch !== 0) {
1036
- return this.throwError("Cannot read block: bad indentation of a mapping entry");
1040
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: bad indentation of a mapping entry");
1037
1041
  }
1038
1042
  else if (this.lineIndent < nodeIndent) {
1039
1043
  break;
@@ -1056,17 +1060,15 @@ export class LoaderState {
1056
1060
  return detected;
1057
1061
  }
1058
1062
  readTagProperty() {
1059
- let position;
1060
1063
  let isVerbatim = false;
1061
1064
  let isNamed = false;
1062
1065
  let tagHandle = "";
1063
1066
  let tagName;
1064
- let ch;
1065
- ch = this.peek();
1067
+ let ch = this.peek();
1066
1068
  if (ch !== EXCLAMATION)
1067
1069
  return false;
1068
1070
  if (this.tag !== null) {
1069
- return this.throwError("Cannot read tag property: duplication of a tag property");
1071
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: duplication of a tag property");
1070
1072
  }
1071
1073
  ch = this.next();
1072
1074
  if (ch === SMALLER_THAN) {
@@ -1081,7 +1083,7 @@ export class LoaderState {
1081
1083
  else {
1082
1084
  tagHandle = "!";
1083
1085
  }
1084
- position = this.position;
1086
+ let position = this.position;
1085
1087
  if (isVerbatim) {
1086
1088
  do {
1087
1089
  ch = this.next();
@@ -1091,7 +1093,7 @@ export class LoaderState {
1091
1093
  ch = this.next();
1092
1094
  }
1093
1095
  else {
1094
- return this.throwError("Cannot read tag property: unexpected end of stream");
1096
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: unexpected end of stream");
1095
1097
  }
1096
1098
  }
1097
1099
  else {
@@ -1100,24 +1102,24 @@ export class LoaderState {
1100
1102
  if (!isNamed) {
1101
1103
  tagHandle = this.input.slice(position - 1, this.position + 1);
1102
1104
  if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
1103
- return this.throwError("Cannot read tag property: named tag handle contains invalid characters");
1105
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: named tag handle contains invalid characters");
1104
1106
  }
1105
1107
  isNamed = true;
1106
1108
  position = this.position + 1;
1107
1109
  }
1108
1110
  else {
1109
- return this.throwError("Cannot read tag property: tag suffix cannot contain an exclamation mark");
1111
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: tag suffix cannot contain an exclamation mark");
1110
1112
  }
1111
1113
  }
1112
1114
  ch = this.next();
1113
1115
  }
1114
1116
  tagName = this.input.slice(position, this.position);
1115
1117
  if (PATTERN_FLOW_INDICATORS.test(tagName)) {
1116
- return this.throwError("Cannot read tag property: tag suffix cannot contain flow indicator characters");
1118
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: tag suffix cannot contain flow indicator characters");
1117
1119
  }
1118
1120
  }
1119
1121
  if (tagName && !PATTERN_TAG_URI.test(tagName)) {
1120
- return this.throwError(`Cannot read tag property: invalid characters in tag name "${tagName}"`);
1122
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot read tag property: invalid characters in tag name "${tagName}"`);
1121
1123
  }
1122
1124
  if (isVerbatim) {
1123
1125
  this.tag = tagName;
@@ -1132,7 +1134,7 @@ export class LoaderState {
1132
1134
  this.tag = `tag:yaml.org,2002:${tagName}`;
1133
1135
  }
1134
1136
  else {
1135
- return this.throwError(`Cannot read tag property: undeclared tag handle "${tagHandle}"`);
1137
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot read tag property: undeclared tag handle "${tagHandle}"`);
1136
1138
  }
1137
1139
  return true;
1138
1140
  }
@@ -1141,7 +1143,7 @@ export class LoaderState {
1141
1143
  if (ch !== AMPERSAND)
1142
1144
  return false;
1143
1145
  if (this.anchor !== null) {
1144
- return this.throwError("Cannot read anchor property: duplicate anchor property");
1146
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read anchor property: duplicate anchor property");
1145
1147
  }
1146
1148
  ch = this.next();
1147
1149
  const position = this.position;
@@ -1149,7 +1151,7 @@ export class LoaderState {
1149
1151
  ch = this.next();
1150
1152
  }
1151
1153
  if (this.position === position) {
1152
- return this.throwError("Cannot read anchor property: name of an anchor node must contain at least one character");
1154
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read anchor property: name of an anchor node must contain at least one character");
1153
1155
  }
1154
1156
  this.anchor = this.input.slice(position, this.position);
1155
1157
  return true;
@@ -1163,32 +1165,29 @@ export class LoaderState {
1163
1165
  ch = this.next();
1164
1166
  }
1165
1167
  if (this.position === position) {
1166
- return this.throwError("Cannot read alias: alias name must contain at least one character");
1168
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read alias: alias name must contain at least one character");
1167
1169
  }
1168
1170
  const alias = this.input.slice(position, this.position);
1169
1171
  if (!this.anchorMap.has(alias)) {
1170
- return this.throwError(`Cannot read alias: unidentified alias "${alias}"`);
1172
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot read alias: unidentified alias "${alias}"`);
1171
1173
  }
1172
1174
  this.result = this.anchorMap.get(alias);
1173
1175
  this.skipSeparationSpace(true, -1);
1174
1176
  return true;
1175
1177
  }
1176
1178
  composeNode(parentIndent, nodeContext, allowToSeek, allowCompact) {
1177
- let allowBlockScalars;
1178
- let allowBlockCollections;
1179
1179
  let indentStatus = 1; // 1: this>parent, 0: this=parent, -1: this<parent
1180
1180
  let atNewLine = false;
1181
1181
  let hasContent = false;
1182
1182
  let type;
1183
- let flowIndent;
1184
- let blockIndent;
1185
1183
  this.tag = null;
1186
1184
  this.anchor = null;
1187
1185
  this.kind = null;
1188
1186
  this.result = null;
1189
- const allowBlockStyles = (allowBlockScalars =
1190
- allowBlockCollections =
1191
- CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext);
1187
+ const allowBlockScalars = CONTEXT_BLOCK_OUT === nodeContext ||
1188
+ CONTEXT_BLOCK_IN === nodeContext;
1189
+ let allowBlockCollections = allowBlockScalars;
1190
+ const allowBlockStyles = allowBlockScalars;
1192
1191
  if (allowToSeek) {
1193
1192
  if (this.skipSeparationSpace(true, -1)) {
1194
1193
  atNewLine = true;
@@ -1229,8 +1228,8 @@ export class LoaderState {
1229
1228
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
1230
1229
  const cond = CONTEXT_FLOW_IN === nodeContext ||
1231
1230
  CONTEXT_FLOW_OUT === nodeContext;
1232
- flowIndent = cond ? parentIndent : parentIndent + 1;
1233
- blockIndent = this.position - this.lineStart;
1231
+ const flowIndent = cond ? parentIndent : parentIndent + 1;
1232
+ const blockIndent = this.position - this.lineStart;
1234
1233
  if (indentStatus === 1) {
1235
1234
  if ((allowBlockCollections &&
1236
1235
  (this.readBlockSequence(blockIndent) ||
@@ -1247,7 +1246,7 @@ export class LoaderState {
1247
1246
  else if (this.readAlias()) {
1248
1247
  hasContent = true;
1249
1248
  if (this.tag !== null || this.anchor !== null) {
1250
- return this.throwError("Cannot compose node: alias node should not have any properties");
1249
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot compose node: alias node should not have any properties");
1251
1250
  }
1252
1251
  }
1253
1252
  else if (this.readPlainScalar(flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
@@ -1290,11 +1289,11 @@ export class LoaderState {
1290
1289
  const map = this.typeMap[this.kind ?? "fallback"];
1291
1290
  type = map.get(this.tag);
1292
1291
  if (this.result !== null && type.kind !== this.kind) {
1293
- return this.throwError(`Unacceptable node kind for !<${this.tag}> tag: it should be "${type.kind}", not "${this.kind}"`);
1292
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Unacceptable node kind for !<${this.tag}> tag: it should be "${type.kind}", not "${this.kind}"`);
1294
1293
  }
1295
1294
  if (!type.resolve(this.result)) {
1296
1295
  // `state.result` updated in resolver if matched
1297
- return this.throwError(`Cannot resolve a node with !<${this.tag}> explicit tag`);
1296
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot resolve a node with !<${this.tag}> explicit tag`);
1298
1297
  }
1299
1298
  else {
1300
1299
  this.result = type.construct(this.result);
@@ -1304,23 +1303,20 @@ export class LoaderState {
1304
1303
  }
1305
1304
  }
1306
1305
  else {
1307
- return this.throwError(`Cannot resolve unknown tag !<${this.tag}>`);
1306
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot resolve unknown tag !<${this.tag}>`);
1308
1307
  }
1309
1308
  }
1310
1309
  return this.tag !== null || this.anchor !== null || hasContent;
1311
1310
  }
1312
1311
  readDocument() {
1313
1312
  const documentStart = this.position;
1314
- let position;
1315
- let directiveName;
1316
- let directiveArgs;
1317
1313
  let hasDirectives = false;
1318
- let ch;
1319
1314
  this.version = null;
1320
1315
  this.checkLineBreaks = false;
1321
1316
  this.tagMap = new Map();
1322
1317
  this.anchorMap = new Map();
1323
- while ((ch = this.peek()) !== 0) {
1318
+ let ch = this.peek();
1319
+ while (ch !== 0) {
1324
1320
  this.skipSeparationSpace(true, -1);
1325
1321
  ch = this.peek();
1326
1322
  if (this.lineIndent > 0 || ch !== PERCENT) {
@@ -1328,25 +1324,19 @@ export class LoaderState {
1328
1324
  }
1329
1325
  hasDirectives = true;
1330
1326
  ch = this.next();
1331
- position = this.position;
1327
+ let position = this.position;
1332
1328
  while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
1333
1329
  ch = this.next();
1334
1330
  }
1335
- directiveName = this.input.slice(position, this.position);
1336
- directiveArgs = [];
1331
+ const directiveName = this.input.slice(position, this.position);
1332
+ const directiveArgs = [];
1337
1333
  if (directiveName.length < 1) {
1338
- return this.throwError("Cannot read document: directive name length must be greater than zero");
1334
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read document: directive name length must be greater than zero");
1339
1335
  }
1340
1336
  while (ch !== 0) {
1341
- while (isWhiteSpace(ch)) {
1342
- ch = this.next();
1343
- }
1344
- if (ch === SHARP) {
1345
- do {
1346
- ch = this.next();
1347
- } while (ch !== 0 && !isEOL(ch));
1348
- break;
1349
- }
1337
+ this.skipWhitespaces();
1338
+ this.skipComment();
1339
+ ch = this.peek();
1350
1340
  if (isEOL(ch))
1351
1341
  break;
1352
1342
  position = this.position;
@@ -1368,6 +1358,7 @@ export class LoaderState {
1368
1358
  this.dispatchWarning(`unknown document directive "${directiveName}"`);
1369
1359
  break;
1370
1360
  }
1361
+ ch = this.peek();
1371
1362
  }
1372
1363
  this.skipSeparationSpace(true, -1);
1373
1364
  if (this.lineIndent === 0 &&
@@ -1378,7 +1369,7 @@ export class LoaderState {
1378
1369
  this.skipSeparationSpace(true, -1);
1379
1370
  }
1380
1371
  else if (hasDirectives) {
1381
- return this.throwError("Cannot read document: directives end mark is expected");
1372
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read document: directives end mark is expected");
1382
1373
  }
1383
1374
  this.composeNode(this.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
1384
1375
  this.skipSeparationSpace(true, -1);
@@ -1393,7 +1384,7 @@ export class LoaderState {
1393
1384
  }
1394
1385
  }
1395
1386
  else if (this.position < this.length - 1) {
1396
- return this.throwError("Cannot read document: end of the stream or a document separator is expected");
1387
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read document: end of the stream or a document separator is expected");
1397
1388
  }
1398
1389
  return this.result;
1399
1390
  }