@skmtc/core 0.0.607 → 0.0.609

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 (504) hide show
  1. package/esm/context/CoreContext.d.ts +3 -3
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/CoreContext.js +2 -2
  4. package/esm/context/GenerateContext.d.ts +1 -1
  5. package/esm/context/GenerateContext.d.ts.map +1 -1
  6. package/esm/context/ParseContext.d.ts +1 -1
  7. package/esm/context/ParseContext.js +1 -1
  8. package/esm/context/RenderContext.d.ts +1 -1
  9. package/esm/context/ResultsHandler.d.ts +4 -4
  10. package/esm/context/ResultsHandler.js +2 -2
  11. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.d.ts.map +1 -1
  12. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.d.ts.map +1 -1
  13. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.d.ts.map +1 -1
  14. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.d.ts.map +1 -1
  15. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.d.ts.map +1 -1
  16. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.js +0 -1
  17. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.d.ts.map +1 -1
  18. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.d.ts.map +1 -1
  19. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.d.ts.map +1 -1
  20. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/file_handler.d.ts +0 -3
  21. package/esm/deps/jsr.io/@std/log/0.224.6/file_handler.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/file_handler.js +1 -1
  23. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.d.ts.map +1 -1
  24. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.d.ts.map +1 -1
  25. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.d.ts.map +1 -1
  26. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.d.ts.map +1 -1
  27. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/logger.d.ts +0 -1
  28. package/esm/deps/jsr.io/@std/log/0.224.6/logger.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/logger.js +1 -1
  30. package/{script/deps/jsr.io/@std/log/0.224.8 → esm/deps/jsr.io/@std/log/0.224.6}/mod.d.ts +5 -5
  31. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/mod.d.ts.map +1 -1
  32. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/mod.js +5 -5
  33. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.d.ts.map +1 -1
  34. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.d.ts.map +1 -1
  35. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.js +4 -4
  36. package/esm/deps/jsr.io/@std/log/0.224.6/warn.d.ts +5 -0
  37. package/esm/deps/jsr.io/@std/log/0.224.6/warn.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts +33 -0
  39. package/esm/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@std/yaml/1.0.5/_chars.js +48 -0
  41. package/esm/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts +99 -0
  42. package/esm/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.js +707 -0
  44. package/esm/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts +60 -0
  45. package/esm/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@std/yaml/1.0.5/_loader_state.js +1409 -0
  47. package/esm/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts +40 -0
  48. package/esm/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts.map +1 -0
  49. package/esm/deps/jsr.io/@std/yaml/1.0.5/_schema.js +112 -0
  50. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts +3 -0
  51. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/binary.js +3 -7
  53. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts +3 -0
  54. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/bool.js +32 -0
  56. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts +3 -0
  57. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts.map +1 -0
  58. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/float.js +17 -27
  59. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts +3 -0
  60. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts.map +1 -0
  61. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/int.js +39 -48
  62. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts +3 -0
  63. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts.map +1 -0
  64. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/map.js +6 -3
  65. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts +3 -0
  66. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts.map +1 -0
  67. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/merge.js +5 -7
  68. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts +3 -0
  69. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts.map +1 -0
  70. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/nil.js +22 -0
  71. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts +3 -0
  72. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts.map +1 -0
  73. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/omap.js +29 -0
  74. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts +3 -0
  75. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts.map +1 -0
  76. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.js +19 -0
  77. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts +3 -0
  78. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts.map +1 -0
  79. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/regexp.js +12 -19
  80. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts +3 -0
  81. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts.map +1 -0
  82. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/seq.js +5 -6
  83. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts +3 -0
  84. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts.map +1 -0
  85. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/set.js +14 -0
  86. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts +3 -0
  87. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts.map +1 -0
  88. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/str.js +5 -6
  89. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts +3 -0
  90. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts.map +1 -0
  91. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/timestamp.js +10 -7
  92. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts +3 -0
  93. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts.map +1 -0
  94. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/undefined.js +3 -3
  95. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts +16 -0
  96. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts.map +1 -0
  97. package/esm/deps/jsr.io/@std/yaml/{0.215.0/schema/core.js → 1.0.5/_type.js} +1 -7
  98. package/esm/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts +4 -0
  99. package/esm/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts.map +1 -0
  100. package/esm/deps/jsr.io/@std/yaml/1.0.5/_utils.js +13 -0
  101. package/esm/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts +50 -0
  102. package/esm/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts.map +1 -0
  103. package/esm/deps/jsr.io/@std/yaml/1.0.5/mod.js +52 -0
  104. package/esm/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts +76 -0
  105. package/esm/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts.map +1 -0
  106. package/esm/deps/jsr.io/@std/yaml/1.0.5/parse.js +93 -0
  107. package/esm/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts +100 -0
  108. package/esm/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts.map +1 -0
  109. package/esm/deps/jsr.io/@std/yaml/1.0.5/stringify.js +33 -0
  110. package/esm/mod.d.ts +2 -1
  111. package/esm/mod.d.ts.map +1 -1
  112. package/esm/mod.js +2 -1
  113. package/esm/oas/securitySchemes/SecurityScheme.d.ts +8 -8
  114. package/esm/oas/securitySchemes/SecurityScheme.d.ts.map +1 -1
  115. package/esm/oas/securitySchemes/security-scheme-types.d.ts +28 -28
  116. package/esm/oas/securitySchemes/security-scheme-types.d.ts.map +1 -1
  117. package/esm/oas/securitySchemes/security-scheme-types.js +4 -4
  118. package/esm/run/{transform.d.ts → toArtifacts.d.ts} +2 -2
  119. package/esm/run/toArtifacts.d.ts.map +1 -0
  120. package/esm/run/{transform.js → toArtifacts.js} +2 -2
  121. package/esm/run/toV3JsonDocument.d.ts +6 -0
  122. package/esm/run/toV3JsonDocument.d.ts.map +1 -0
  123. package/esm/run/toV3JsonDocument.js +33 -0
  124. package/package.json +5 -1
  125. package/script/context/CoreContext.d.ts +3 -3
  126. package/script/context/CoreContext.d.ts.map +1 -1
  127. package/script/context/CoreContext.js +2 -2
  128. package/script/context/GenerateContext.d.ts +1 -1
  129. package/script/context/GenerateContext.d.ts.map +1 -1
  130. package/script/context/ParseContext.d.ts +1 -1
  131. package/script/context/ParseContext.js +1 -1
  132. package/script/context/RenderContext.d.ts +1 -1
  133. package/script/context/ResultsHandler.d.ts +4 -4
  134. package/script/context/ResultsHandler.js +2 -2
  135. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.d.ts.map +1 -1
  136. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.d.ts.map +1 -1
  137. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.d.ts.map +1 -1
  138. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.d.ts.map +1 -1
  139. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.d.ts.map +1 -1
  140. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.js +0 -1
  141. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.d.ts.map +1 -1
  142. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.d.ts.map +1 -1
  143. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.d.ts.map +1 -1
  144. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/file_handler.d.ts +0 -3
  145. package/script/deps/jsr.io/@std/log/0.224.6/file_handler.d.ts.map +1 -0
  146. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/file_handler.js +1 -1
  147. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.d.ts.map +1 -1
  148. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.d.ts.map +1 -1
  149. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.d.ts.map +1 -1
  150. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.d.ts.map +1 -1
  151. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/logger.d.ts +0 -1
  152. package/script/deps/jsr.io/@std/log/0.224.6/logger.d.ts.map +1 -0
  153. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/logger.js +1 -1
  154. package/{esm/deps/jsr.io/@std/log/0.224.8 → script/deps/jsr.io/@std/log/0.224.6}/mod.d.ts +5 -5
  155. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/mod.d.ts.map +1 -1
  156. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/mod.js +5 -5
  157. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.d.ts.map +1 -1
  158. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.d.ts.map +1 -1
  159. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.js +4 -4
  160. package/script/deps/jsr.io/@std/log/0.224.6/warn.d.ts +5 -0
  161. package/script/deps/jsr.io/@std/log/0.224.6/warn.d.ts.map +1 -0
  162. package/script/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts +33 -0
  163. package/script/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts.map +1 -0
  164. package/script/deps/jsr.io/@std/yaml/1.0.5/_chars.js +55 -0
  165. package/script/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts +99 -0
  166. package/script/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts.map +1 -0
  167. package/script/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.js +711 -0
  168. package/script/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts +60 -0
  169. package/script/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +1 -0
  170. package/script/deps/jsr.io/@std/yaml/1.0.5/_loader_state.js +1413 -0
  171. package/script/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts +40 -0
  172. package/script/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts.map +1 -0
  173. package/script/deps/jsr.io/@std/yaml/1.0.5/_schema.js +115 -0
  174. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts +3 -0
  175. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts.map +1 -0
  176. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/binary.js +3 -7
  177. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts +3 -0
  178. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts.map +1 -0
  179. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/bool.js +35 -0
  180. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts +3 -0
  181. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts.map +1 -0
  182. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/float.js +17 -27
  183. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts +3 -0
  184. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts.map +1 -0
  185. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/int.js +39 -48
  186. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts +3 -0
  187. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts.map +1 -0
  188. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/map.js +6 -3
  189. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts +3 -0
  190. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts.map +1 -0
  191. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/merge.js +5 -7
  192. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts +3 -0
  193. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts.map +1 -0
  194. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/nil.js +25 -0
  195. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts +3 -0
  196. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts.map +1 -0
  197. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/omap.js +32 -0
  198. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts +3 -0
  199. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts.map +1 -0
  200. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.js +22 -0
  201. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts +3 -0
  202. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts.map +1 -0
  203. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/regexp.js +12 -19
  204. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts +3 -0
  205. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts.map +1 -0
  206. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/seq.js +5 -6
  207. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts +3 -0
  208. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts.map +1 -0
  209. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/set.js +17 -0
  210. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts +3 -0
  211. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts.map +1 -0
  212. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/str.js +5 -6
  213. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts +3 -0
  214. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts.map +1 -0
  215. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/timestamp.js +10 -7
  216. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts +3 -0
  217. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts.map +1 -0
  218. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/undefined.js +3 -3
  219. package/script/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts +16 -0
  220. package/script/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts.map +1 -0
  221. package/script/deps/jsr.io/@std/yaml/{0.215.0/schema/core.js → 1.0.5/_type.js} +0 -8
  222. package/script/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts +4 -0
  223. package/script/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts.map +1 -0
  224. package/script/deps/jsr.io/@std/yaml/1.0.5/_utils.js +18 -0
  225. package/script/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts +50 -0
  226. package/script/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts.map +1 -0
  227. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/mod.js +23 -22
  228. package/script/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts +76 -0
  229. package/script/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts.map +1 -0
  230. package/script/deps/jsr.io/@std/yaml/1.0.5/parse.js +97 -0
  231. package/script/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts +100 -0
  232. package/script/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts.map +1 -0
  233. package/script/deps/jsr.io/@std/yaml/1.0.5/stringify.js +36 -0
  234. package/script/mod.d.ts +2 -1
  235. package/script/mod.d.ts.map +1 -1
  236. package/script/mod.js +2 -1
  237. package/script/oas/securitySchemes/SecurityScheme.d.ts +8 -8
  238. package/script/oas/securitySchemes/SecurityScheme.d.ts.map +1 -1
  239. package/script/oas/securitySchemes/security-scheme-types.d.ts +28 -28
  240. package/script/oas/securitySchemes/security-scheme-types.d.ts.map +1 -1
  241. package/script/oas/securitySchemes/security-scheme-types.js +4 -4
  242. package/script/run/{transform.d.ts → toArtifacts.d.ts} +2 -2
  243. package/script/run/toArtifacts.d.ts.map +1 -0
  244. package/script/run/{transform.js → toArtifacts.js} +4 -4
  245. package/script/run/toV3JsonDocument.d.ts +6 -0
  246. package/script/run/toV3JsonDocument.d.ts.map +1 -0
  247. package/script/run/toV3JsonDocument.js +41 -0
  248. package/esm/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts.map +0 -1
  249. package/esm/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +0 -1
  250. package/esm/deps/jsr.io/@std/log/0.224.8/warn.d.ts +0 -51
  251. package/esm/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +0 -1
  252. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +0 -6
  253. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +0 -1
  254. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +0 -684
  255. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +0 -73
  256. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +0 -1
  257. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +0 -148
  258. package/esm/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +0 -7
  259. package/esm/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +0 -1
  260. package/esm/deps/jsr.io/@std/yaml/0.215.0/_error.js +0 -19
  261. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +0 -5
  262. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +0 -1
  263. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +0 -1297
  264. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +0 -44
  265. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +0 -1
  266. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +0 -150
  267. package/esm/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +0 -11
  268. package/esm/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +0 -1
  269. package/esm/deps/jsr.io/@std/yaml/0.215.0/_mark.js +0 -81
  270. package/esm/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +0 -6
  271. package/esm/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +0 -1
  272. package/esm/deps/jsr.io/@std/yaml/0.215.0/_state.js +0 -15
  273. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +0 -3
  274. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +0 -1
  275. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +0 -3
  276. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +0 -1
  277. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +0 -32
  278. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +0 -3
  279. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +0 -1
  280. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +0 -3
  281. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +0 -1
  282. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +0 -38
  283. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +0 -3
  284. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +0 -1
  285. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +0 -3
  286. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +0 -1
  287. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +0 -3
  288. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +0 -1
  289. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +0 -17
  290. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +0 -1
  291. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +0 -20
  292. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +0 -3
  293. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +0 -1
  294. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +0 -37
  295. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +0 -3
  296. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +0 -1
  297. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +0 -40
  298. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +0 -3
  299. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +0 -1
  300. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +0 -35
  301. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +0 -3
  302. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +0 -1
  303. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +0 -3
  304. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +0 -1
  305. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +0 -3
  306. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +0 -1
  307. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +0 -25
  308. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +0 -3
  309. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +0 -1
  310. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +0 -3
  311. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +0 -1
  312. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +0 -3
  313. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +0 -1
  314. package/esm/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +0 -20
  315. package/esm/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +0 -1
  316. package/esm/deps/jsr.io/@std/yaml/0.215.0/_utils.js +0 -57
  317. package/esm/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +0 -49
  318. package/esm/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +0 -1
  319. package/esm/deps/jsr.io/@std/yaml/0.215.0/mod.js +0 -51
  320. package/esm/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +0 -36
  321. package/esm/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +0 -1
  322. package/esm/deps/jsr.io/@std/yaml/0.215.0/parse.js +0 -18
  323. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +0 -3
  324. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +0 -1
  325. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +0 -3
  326. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +0 -1
  327. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +0 -15
  328. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +0 -31
  329. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +0 -1
  330. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +0 -37
  331. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +0 -3
  332. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +0 -1
  333. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +0 -12
  334. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +0 -3
  335. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +0 -1
  336. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +0 -14
  337. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +0 -6
  338. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +0 -1
  339. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +0 -10
  340. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +0 -23
  341. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +0 -1
  342. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema.js +0 -103
  343. package/esm/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +0 -9
  344. package/esm/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +0 -1
  345. package/esm/deps/jsr.io/@std/yaml/0.215.0/stringify.js +0 -14
  346. package/esm/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +0 -29
  347. package/esm/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +0 -1
  348. package/esm/deps/jsr.io/@std/yaml/0.215.0/type.js +0 -83
  349. package/esm/run/transform.d.ts.map +0 -1
  350. package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts.map +0 -1
  351. package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +0 -1
  352. package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts +0 -51
  353. package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +0 -1
  354. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +0 -6
  355. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +0 -1
  356. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +0 -710
  357. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +0 -73
  358. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +0 -1
  359. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +0 -152
  360. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +0 -7
  361. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +0 -1
  362. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.js +0 -23
  363. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +0 -5
  364. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +0 -1
  365. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +0 -1324
  366. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +0 -44
  367. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +0 -1
  368. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +0 -154
  369. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +0 -11
  370. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +0 -1
  371. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.js +0 -85
  372. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +0 -6
  373. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +0 -1
  374. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.js +0 -19
  375. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +0 -3
  376. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +0 -1
  377. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +0 -3
  378. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +0 -1
  379. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +0 -35
  380. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +0 -3
  381. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +0 -1
  382. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +0 -3
  383. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +0 -1
  384. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +0 -41
  385. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +0 -3
  386. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +0 -1
  387. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +0 -3
  388. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +0 -1
  389. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +0 -3
  390. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +0 -1
  391. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +0 -17
  392. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +0 -1
  393. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +0 -39
  394. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +0 -3
  395. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +0 -1
  396. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +0 -40
  397. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +0 -3
  398. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +0 -1
  399. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +0 -43
  400. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +0 -3
  401. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +0 -1
  402. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +0 -38
  403. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +0 -3
  404. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +0 -1
  405. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +0 -3
  406. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +0 -1
  407. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +0 -3
  408. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +0 -1
  409. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +0 -28
  410. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +0 -3
  411. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +0 -1
  412. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +0 -3
  413. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +0 -1
  414. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +0 -3
  415. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +0 -1
  416. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +0 -20
  417. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +0 -1
  418. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.js +0 -74
  419. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +0 -49
  420. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +0 -1
  421. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +0 -36
  422. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +0 -1
  423. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.js +0 -22
  424. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +0 -3
  425. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +0 -1
  426. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +0 -3
  427. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +0 -1
  428. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +0 -18
  429. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +0 -31
  430. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +0 -1
  431. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +0 -40
  432. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +0 -3
  433. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +0 -1
  434. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +0 -15
  435. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +0 -3
  436. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +0 -1
  437. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +0 -17
  438. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +0 -6
  439. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +0 -1
  440. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +0 -18
  441. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +0 -23
  442. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +0 -1
  443. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.js +0 -107
  444. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +0 -9
  445. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +0 -1
  446. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.js +0 -17
  447. package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +0 -29
  448. package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +0 -1
  449. package/script/deps/jsr.io/@std/yaml/0.215.0/type.js +0 -87
  450. package/script/run/transform.d.ts.map +0 -1
  451. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.d.ts +0 -0
  452. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.js +0 -0
  453. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.d.ts +0 -0
  454. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.js +0 -0
  455. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.d.ts +0 -0
  456. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.js +0 -0
  457. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.d.ts +0 -0
  458. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.js +0 -0
  459. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.d.ts +0 -0
  460. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.d.ts +0 -0
  461. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.js +0 -0
  462. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.d.ts +0 -0
  463. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.js +0 -0
  464. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.d.ts +0 -0
  465. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.js +0 -0
  466. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.d.ts +0 -0
  467. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.js +0 -0
  468. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.d.ts +0 -0
  469. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.js +0 -0
  470. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.d.ts +0 -0
  471. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.js +0 -0
  472. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.d.ts +0 -0
  473. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.js +0 -0
  474. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.d.ts +0 -0
  475. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.js +0 -0
  476. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.d.ts +0 -0
  477. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/warn.js +0 -0
  478. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.d.ts +0 -0
  479. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.js +0 -0
  480. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.d.ts +0 -0
  481. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.js +0 -0
  482. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.d.ts +0 -0
  483. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.js +0 -0
  484. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.d.ts +0 -0
  485. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.js +0 -0
  486. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.d.ts +0 -0
  487. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.d.ts +0 -0
  488. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.js +0 -0
  489. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.d.ts +0 -0
  490. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.js +0 -0
  491. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.d.ts +0 -0
  492. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.js +0 -0
  493. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.d.ts +0 -0
  494. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.js +0 -0
  495. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.d.ts +0 -0
  496. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.js +0 -0
  497. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.d.ts +0 -0
  498. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.js +0 -0
  499. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.d.ts +0 -0
  500. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.js +0 -0
  501. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.d.ts +0 -0
  502. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.js +0 -0
  503. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.d.ts +0 -0
  504. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/warn.js +0 -0
@@ -1,1297 +0,0 @@
1
- // Ported from js-yaml v3.13.1:
2
- // https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
3
- // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
4
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
- import { YAMLError } from "../_error.js";
6
- import { Mark } from "../_mark.js";
7
- import * as common from "../_utils.js";
8
- import { LoaderState } from "./loader_state.js";
9
- const { hasOwn } = Object;
10
- const CONTEXT_FLOW_IN = 1;
11
- const CONTEXT_FLOW_OUT = 2;
12
- const CONTEXT_BLOCK_IN = 3;
13
- const CONTEXT_BLOCK_OUT = 4;
14
- const CHOMPING_CLIP = 1;
15
- const CHOMPING_STRIP = 2;
16
- const CHOMPING_KEEP = 3;
17
- const PATTERN_NON_PRINTABLE =
18
- // deno-lint-ignore no-control-regex
19
- /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
20
- const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
21
- const PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
22
- const PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
23
- const PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
24
- function _class(obj) {
25
- return Object.prototype.toString.call(obj);
26
- }
27
- function isEOL(c) {
28
- return c === 0x0a || /* LF */ c === 0x0d /* CR */;
29
- }
30
- function isWhiteSpace(c) {
31
- return c === 0x09 || /* Tab */ c === 0x20 /* Space */;
32
- }
33
- function isWsOrEol(c) {
34
- return (c === 0x09 /* Tab */ ||
35
- c === 0x20 /* Space */ ||
36
- c === 0x0a /* LF */ ||
37
- c === 0x0d /* CR */);
38
- }
39
- function isFlowIndicator(c) {
40
- return (c === 0x2c /* , */ ||
41
- c === 0x5b /* [ */ ||
42
- c === 0x5d /* ] */ ||
43
- c === 0x7b /* { */ ||
44
- c === 0x7d /* } */);
45
- }
46
- function fromHexCode(c) {
47
- if (0x30 <= /* 0 */ c && c <= 0x39 /* 9 */) {
48
- return c - 0x30;
49
- }
50
- const lc = c | 0x20;
51
- if (0x61 <= /* a */ lc && lc <= 0x66 /* f */) {
52
- return lc - 0x61 + 10;
53
- }
54
- return -1;
55
- }
56
- function escapedHexLen(c) {
57
- if (c === 0x78 /* x */) {
58
- return 2;
59
- }
60
- if (c === 0x75 /* u */) {
61
- return 4;
62
- }
63
- if (c === 0x55 /* U */) {
64
- return 8;
65
- }
66
- return 0;
67
- }
68
- function fromDecimalCode(c) {
69
- if (0x30 <= /* 0 */ c && c <= 0x39 /* 9 */) {
70
- return c - 0x30;
71
- }
72
- return -1;
73
- }
74
- function simpleEscapeSequence(c) {
75
- return c === 0x30 /* 0 */
76
- ? "\x00"
77
- : c === 0x61 /* a */
78
- ? "\x07"
79
- : c === 0x62 /* b */
80
- ? "\x08"
81
- : c === 0x74 /* t */
82
- ? "\x09"
83
- : c === 0x09 /* Tab */
84
- ? "\x09"
85
- : c === 0x6e /* n */
86
- ? "\x0A"
87
- : c === 0x76 /* v */
88
- ? "\x0B"
89
- : c === 0x66 /* f */
90
- ? "\x0C"
91
- : c === 0x72 /* r */
92
- ? "\x0D"
93
- : c === 0x65 /* e */
94
- ? "\x1B"
95
- : c === 0x20 /* Space */
96
- ? " "
97
- : c === 0x22 /* " */
98
- ? "\x22"
99
- : c === 0x2f /* / */
100
- ? "/"
101
- : c === 0x5c /* \ */
102
- ? "\x5C"
103
- : c === 0x4e /* N */
104
- ? "\x85"
105
- : c === 0x5f /* _ */
106
- ? "\xA0"
107
- : c === 0x4c /* L */
108
- ? "\u2028"
109
- : c === 0x50 /* P */
110
- ? "\u2029"
111
- : "";
112
- }
113
- function charFromCodepoint(c) {
114
- if (c <= 0xffff) {
115
- return String.fromCharCode(c);
116
- }
117
- // Encode UTF-16 surrogate pair
118
- // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
119
- return String.fromCharCode(((c - 0x010000) >> 10) + 0xd800, ((c - 0x010000) & 0x03ff) + 0xdc00);
120
- }
121
- const simpleEscapeCheck = Array.from({ length: 256 }); // integer, for fast access
122
- const simpleEscapeMap = Array.from({ length: 256 });
123
- for (let i = 0; i < 256; i++) {
124
- simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
125
- simpleEscapeMap[i] = simpleEscapeSequence(i);
126
- }
127
- function generateError(state, message) {
128
- return new YAMLError(message, new Mark(state.filename, state.input, state.position, state.line, state.position - state.lineStart));
129
- }
130
- function throwError(state, message) {
131
- throw generateError(state, message);
132
- }
133
- function throwWarning(state, message) {
134
- if (state.onWarning) {
135
- state.onWarning.call(null, generateError(state, message));
136
- }
137
- }
138
- const directiveHandlers = {
139
- YAML(state, _name, ...args) {
140
- if (state.version !== null) {
141
- return throwError(state, "duplication of %YAML directive");
142
- }
143
- if (args.length !== 1) {
144
- return throwError(state, "YAML directive accepts exactly one argument");
145
- }
146
- const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
147
- if (match === null) {
148
- return throwError(state, "ill-formed argument of the YAML directive");
149
- }
150
- const major = parseInt(match[1], 10);
151
- const minor = parseInt(match[2], 10);
152
- if (major !== 1) {
153
- return throwError(state, "unacceptable YAML version of the document");
154
- }
155
- state.version = args[0];
156
- state.checkLineBreaks = minor < 2;
157
- if (minor !== 1 && minor !== 2) {
158
- return throwWarning(state, "unsupported YAML version of the document");
159
- }
160
- },
161
- TAG(state, _name, ...args) {
162
- if (args.length !== 2) {
163
- return throwError(state, "TAG directive accepts exactly two arguments");
164
- }
165
- const handle = args[0];
166
- const prefix = args[1];
167
- if (!PATTERN_TAG_HANDLE.test(handle)) {
168
- return throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
169
- }
170
- if (state.tagMap && hasOwn(state.tagMap, handle)) {
171
- return throwError(state, `there is a previously declared suffix for "${handle}" tag handle`);
172
- }
173
- if (!PATTERN_TAG_URI.test(prefix)) {
174
- return throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
175
- }
176
- if (typeof state.tagMap === "undefined") {
177
- state.tagMap = Object.create(null);
178
- }
179
- state.tagMap[handle] = prefix;
180
- },
181
- };
182
- function captureSegment(state, start, end, checkJson) {
183
- let result;
184
- if (start < end) {
185
- result = state.input.slice(start, end);
186
- if (checkJson) {
187
- for (let position = 0, length = result.length; position < length; position++) {
188
- const character = result.charCodeAt(position);
189
- if (!(character === 0x09 || (0x20 <= character && character <= 0x10ffff))) {
190
- return throwError(state, "expected valid JSON character");
191
- }
192
- }
193
- }
194
- else if (PATTERN_NON_PRINTABLE.test(result)) {
195
- return throwError(state, "the stream contains non-printable characters");
196
- }
197
- state.result += result;
198
- }
199
- }
200
- function mergeMappings(state, destination, source, overridableKeys) {
201
- if (!common.isObject(source)) {
202
- return throwError(state, "cannot merge mappings; the provided source object is unacceptable");
203
- }
204
- const keys = Object.keys(source);
205
- for (let i = 0, len = keys.length; i < len; i++) {
206
- const key = keys[i];
207
- if (!hasOwn(destination, key)) {
208
- Object.defineProperty(destination, key, {
209
- value: source[key],
210
- writable: true,
211
- enumerable: true,
212
- configurable: true,
213
- });
214
- overridableKeys[key] = true;
215
- }
216
- }
217
- }
218
- function storeMappingPair(state, result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
219
- // The output is a plain object here, so keys can only be strings.
220
- // We need to convert keyNode to a string, but doing so can hang the process
221
- // (deeply nested arrays that explode exponentially using aliases).
222
- if (Array.isArray(keyNode)) {
223
- keyNode = Array.prototype.slice.call(keyNode);
224
- for (let index = 0, quantity = keyNode.length; index < quantity; index++) {
225
- if (Array.isArray(keyNode[index])) {
226
- return throwError(state, "nested arrays are not supported inside keys");
227
- }
228
- if (typeof keyNode === "object" &&
229
- _class(keyNode[index]) === "[object Object]") {
230
- keyNode[index] = "[object Object]";
231
- }
232
- }
233
- }
234
- // Avoid code execution in load() via toString property
235
- // (still use its own toString for arrays, timestamps,
236
- // and whatever user schema extensions happen to have @@toStringTag)
237
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
238
- keyNode = "[object Object]";
239
- }
240
- keyNode = String(keyNode);
241
- if (result === null) {
242
- result = {};
243
- }
244
- if (keyTag === "tag:yaml.org,2002:merge") {
245
- if (Array.isArray(valueNode)) {
246
- for (let index = 0, quantity = valueNode.length; index < quantity; index++) {
247
- mergeMappings(state, result, valueNode[index], overridableKeys);
248
- }
249
- }
250
- else {
251
- mergeMappings(state, result, valueNode, overridableKeys);
252
- }
253
- }
254
- else {
255
- if (!state.json &&
256
- !hasOwn(overridableKeys, keyNode) &&
257
- hasOwn(result, keyNode)) {
258
- state.line = startLine || state.line;
259
- state.position = startPos || state.position;
260
- return throwError(state, "duplicated mapping key");
261
- }
262
- Object.defineProperty(result, keyNode, {
263
- value: valueNode,
264
- writable: true,
265
- enumerable: true,
266
- configurable: true,
267
- });
268
- delete overridableKeys[keyNode];
269
- }
270
- return result;
271
- }
272
- function readLineBreak(state) {
273
- const ch = state.input.charCodeAt(state.position);
274
- if (ch === 0x0a /* LF */) {
275
- state.position++;
276
- }
277
- else if (ch === 0x0d /* CR */) {
278
- state.position++;
279
- if (state.input.charCodeAt(state.position) === 0x0a /* LF */) {
280
- state.position++;
281
- }
282
- }
283
- else {
284
- return throwError(state, "a line break is expected");
285
- }
286
- state.line += 1;
287
- state.lineStart = state.position;
288
- }
289
- function skipSeparationSpace(state, allowComments, checkIndent) {
290
- let lineBreaks = 0, ch = state.input.charCodeAt(state.position);
291
- while (ch !== 0) {
292
- while (isWhiteSpace(ch)) {
293
- ch = state.input.charCodeAt(++state.position);
294
- }
295
- if (allowComments && ch === 0x23 /* # */) {
296
- do {
297
- ch = state.input.charCodeAt(++state.position);
298
- } while (ch !== 0x0a && /* LF */ ch !== 0x0d && /* CR */ ch !== 0);
299
- }
300
- if (isEOL(ch)) {
301
- readLineBreak(state);
302
- ch = state.input.charCodeAt(state.position);
303
- lineBreaks++;
304
- state.lineIndent = 0;
305
- while (ch === 0x20 /* Space */) {
306
- state.lineIndent++;
307
- ch = state.input.charCodeAt(++state.position);
308
- }
309
- }
310
- else {
311
- break;
312
- }
313
- }
314
- if (checkIndent !== -1 &&
315
- lineBreaks !== 0 &&
316
- state.lineIndent < checkIndent) {
317
- throwWarning(state, "deficient indentation");
318
- }
319
- return lineBreaks;
320
- }
321
- function testDocumentSeparator(state) {
322
- let _position = state.position;
323
- let ch = state.input.charCodeAt(_position);
324
- // Condition state.position === state.lineStart is tested
325
- // in parent on each call, for efficiency. No needs to test here again.
326
- if ((ch === 0x2d || /* - */ ch === 0x2e) /* . */ &&
327
- ch === state.input.charCodeAt(_position + 1) &&
328
- ch === state.input.charCodeAt(_position + 2)) {
329
- _position += 3;
330
- ch = state.input.charCodeAt(_position);
331
- if (ch === 0 || isWsOrEol(ch)) {
332
- return true;
333
- }
334
- }
335
- return false;
336
- }
337
- function writeFoldedLines(state, count) {
338
- if (count === 1) {
339
- state.result += " ";
340
- }
341
- else if (count > 1) {
342
- state.result += common.repeat("\n", count - 1);
343
- }
344
- }
345
- function readPlainScalar(state, nodeIndent, withinFlowCollection) {
346
- const kind = state.kind;
347
- const result = state.result;
348
- let ch = state.input.charCodeAt(state.position);
349
- if (isWsOrEol(ch) ||
350
- isFlowIndicator(ch) ||
351
- ch === 0x23 /* # */ ||
352
- ch === 0x26 /* & */ ||
353
- ch === 0x2a /* * */ ||
354
- ch === 0x21 /* ! */ ||
355
- ch === 0x7c /* | */ ||
356
- ch === 0x3e /* > */ ||
357
- ch === 0x27 /* ' */ ||
358
- ch === 0x22 /* " */ ||
359
- ch === 0x25 /* % */ ||
360
- ch === 0x40 /* @ */ ||
361
- ch === 0x60 /* ` */) {
362
- return false;
363
- }
364
- let following;
365
- if (ch === 0x3f || /* ? */ ch === 0x2d /* - */) {
366
- following = state.input.charCodeAt(state.position + 1);
367
- if (isWsOrEol(following) ||
368
- (withinFlowCollection && isFlowIndicator(following))) {
369
- return false;
370
- }
371
- }
372
- state.kind = "scalar";
373
- state.result = "";
374
- let captureEnd, captureStart = (captureEnd = state.position);
375
- let hasPendingContent = false;
376
- let line = 0;
377
- while (ch !== 0) {
378
- if (ch === 0x3a /* : */) {
379
- following = state.input.charCodeAt(state.position + 1);
380
- if (isWsOrEol(following) ||
381
- (withinFlowCollection && isFlowIndicator(following))) {
382
- break;
383
- }
384
- }
385
- else if (ch === 0x23 /* # */) {
386
- const preceding = state.input.charCodeAt(state.position - 1);
387
- if (isWsOrEol(preceding)) {
388
- break;
389
- }
390
- }
391
- else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
392
- (withinFlowCollection && isFlowIndicator(ch))) {
393
- break;
394
- }
395
- else if (isEOL(ch)) {
396
- line = state.line;
397
- const lineStart = state.lineStart;
398
- const lineIndent = state.lineIndent;
399
- skipSeparationSpace(state, false, -1);
400
- if (state.lineIndent >= nodeIndent) {
401
- hasPendingContent = true;
402
- ch = state.input.charCodeAt(state.position);
403
- continue;
404
- }
405
- else {
406
- state.position = captureEnd;
407
- state.line = line;
408
- state.lineStart = lineStart;
409
- state.lineIndent = lineIndent;
410
- break;
411
- }
412
- }
413
- if (hasPendingContent) {
414
- captureSegment(state, captureStart, captureEnd, false);
415
- writeFoldedLines(state, state.line - line);
416
- captureStart = captureEnd = state.position;
417
- hasPendingContent = false;
418
- }
419
- if (!isWhiteSpace(ch)) {
420
- captureEnd = state.position + 1;
421
- }
422
- ch = state.input.charCodeAt(++state.position);
423
- }
424
- captureSegment(state, captureStart, captureEnd, false);
425
- if (state.result) {
426
- return true;
427
- }
428
- state.kind = kind;
429
- state.result = result;
430
- return false;
431
- }
432
- function readSingleQuotedScalar(state, nodeIndent) {
433
- let ch, captureStart, captureEnd;
434
- ch = state.input.charCodeAt(state.position);
435
- if (ch !== 0x27 /* ' */) {
436
- return false;
437
- }
438
- state.kind = "scalar";
439
- state.result = "";
440
- state.position++;
441
- captureStart = captureEnd = state.position;
442
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
443
- if (ch === 0x27 /* ' */) {
444
- captureSegment(state, captureStart, state.position, true);
445
- ch = state.input.charCodeAt(++state.position);
446
- if (ch === 0x27 /* ' */) {
447
- captureStart = state.position;
448
- state.position++;
449
- captureEnd = state.position;
450
- }
451
- else {
452
- return true;
453
- }
454
- }
455
- else if (isEOL(ch)) {
456
- captureSegment(state, captureStart, captureEnd, true);
457
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
458
- captureStart = captureEnd = state.position;
459
- }
460
- else if (state.position === state.lineStart &&
461
- testDocumentSeparator(state)) {
462
- return throwError(state, "unexpected end of the document within a single quoted scalar");
463
- }
464
- else {
465
- state.position++;
466
- captureEnd = state.position;
467
- }
468
- }
469
- return throwError(state, "unexpected end of the stream within a single quoted scalar");
470
- }
471
- function readDoubleQuotedScalar(state, nodeIndent) {
472
- let ch = state.input.charCodeAt(state.position);
473
- if (ch !== 0x22 /* " */) {
474
- return false;
475
- }
476
- state.kind = "scalar";
477
- state.result = "";
478
- state.position++;
479
- let captureEnd, captureStart = (captureEnd = state.position);
480
- let tmp;
481
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
482
- if (ch === 0x22 /* " */) {
483
- captureSegment(state, captureStart, state.position, true);
484
- state.position++;
485
- return true;
486
- }
487
- if (ch === 0x5c /* \ */) {
488
- captureSegment(state, captureStart, state.position, true);
489
- ch = state.input.charCodeAt(++state.position);
490
- if (isEOL(ch)) {
491
- skipSeparationSpace(state, false, nodeIndent);
492
- // TODO(bartlomieju): rework to inline fn with no type cast?
493
- }
494
- else if (ch < 256 && simpleEscapeCheck[ch]) {
495
- state.result += simpleEscapeMap[ch];
496
- state.position++;
497
- }
498
- else if ((tmp = escapedHexLen(ch)) > 0) {
499
- let hexLength = tmp;
500
- let hexResult = 0;
501
- for (; hexLength > 0; hexLength--) {
502
- ch = state.input.charCodeAt(++state.position);
503
- if ((tmp = fromHexCode(ch)) >= 0) {
504
- hexResult = (hexResult << 4) + tmp;
505
- }
506
- else {
507
- return throwError(state, "expected hexadecimal character");
508
- }
509
- }
510
- state.result += charFromCodepoint(hexResult);
511
- state.position++;
512
- }
513
- else {
514
- return throwError(state, "unknown escape sequence");
515
- }
516
- captureStart = captureEnd = state.position;
517
- }
518
- else if (isEOL(ch)) {
519
- captureSegment(state, captureStart, captureEnd, true);
520
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
521
- captureStart = captureEnd = state.position;
522
- }
523
- else if (state.position === state.lineStart &&
524
- testDocumentSeparator(state)) {
525
- return throwError(state, "unexpected end of the document within a double quoted scalar");
526
- }
527
- else {
528
- state.position++;
529
- captureEnd = state.position;
530
- }
531
- }
532
- return throwError(state, "unexpected end of the stream within a double quoted scalar");
533
- }
534
- function readFlowCollection(state, nodeIndent) {
535
- let ch = state.input.charCodeAt(state.position);
536
- let terminator;
537
- let isMapping = true;
538
- let result = {};
539
- if (ch === 0x5b /* [ */) {
540
- terminator = 0x5d; /* ] */
541
- isMapping = false;
542
- result = [];
543
- }
544
- else if (ch === 0x7b /* { */) {
545
- terminator = 0x7d; /* } */
546
- }
547
- else {
548
- return false;
549
- }
550
- if (state.anchor !== null &&
551
- typeof state.anchor !== "undefined" &&
552
- typeof state.anchorMap !== "undefined") {
553
- state.anchorMap[state.anchor] = result;
554
- }
555
- ch = state.input.charCodeAt(++state.position);
556
- const tag = state.tag, anchor = state.anchor;
557
- let readNext = true;
558
- let valueNode, keyNode, keyTag = (keyNode = valueNode = null), isExplicitPair, isPair = (isExplicitPair = false);
559
- let following = 0, line = 0;
560
- const overridableKeys = Object.create(null);
561
- while (ch !== 0) {
562
- skipSeparationSpace(state, true, nodeIndent);
563
- ch = state.input.charCodeAt(state.position);
564
- if (ch === terminator) {
565
- state.position++;
566
- state.tag = tag;
567
- state.anchor = anchor;
568
- state.kind = isMapping ? "mapping" : "sequence";
569
- state.result = result;
570
- return true;
571
- }
572
- if (!readNext) {
573
- return throwError(state, "missed comma between flow collection entries");
574
- }
575
- keyTag = keyNode = valueNode = null;
576
- isPair = isExplicitPair = false;
577
- if (ch === 0x3f /* ? */) {
578
- following = state.input.charCodeAt(state.position + 1);
579
- if (isWsOrEol(following)) {
580
- isPair = isExplicitPair = true;
581
- state.position++;
582
- skipSeparationSpace(state, true, nodeIndent);
583
- }
584
- }
585
- line = state.line;
586
- composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
587
- keyTag = state.tag || null;
588
- keyNode = state.result;
589
- skipSeparationSpace(state, true, nodeIndent);
590
- ch = state.input.charCodeAt(state.position);
591
- if ((isExplicitPair || state.line === line) && ch === 0x3a /* : */) {
592
- isPair = true;
593
- ch = state.input.charCodeAt(++state.position);
594
- skipSeparationSpace(state, true, nodeIndent);
595
- composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
596
- valueNode = state.result;
597
- }
598
- if (isMapping) {
599
- storeMappingPair(state, result, overridableKeys, keyTag, keyNode, valueNode);
600
- }
601
- else if (isPair) {
602
- result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));
603
- }
604
- else {
605
- result.push(keyNode);
606
- }
607
- skipSeparationSpace(state, true, nodeIndent);
608
- ch = state.input.charCodeAt(state.position);
609
- if (ch === 0x2c /* , */) {
610
- readNext = true;
611
- ch = state.input.charCodeAt(++state.position);
612
- }
613
- else {
614
- readNext = false;
615
- }
616
- }
617
- return throwError(state, "unexpected end of the stream within a flow collection");
618
- }
619
- function readBlockScalar(state, nodeIndent) {
620
- let chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false;
621
- let ch = state.input.charCodeAt(state.position);
622
- let folding = false;
623
- if (ch === 0x7c /* | */) {
624
- folding = false;
625
- }
626
- else if (ch === 0x3e /* > */) {
627
- folding = true;
628
- }
629
- else {
630
- return false;
631
- }
632
- state.kind = "scalar";
633
- state.result = "";
634
- let tmp = 0;
635
- while (ch !== 0) {
636
- ch = state.input.charCodeAt(++state.position);
637
- if (ch === 0x2b || /* + */ ch === 0x2d /* - */) {
638
- if (CHOMPING_CLIP === chomping) {
639
- chomping = ch === 0x2b /* + */ ? CHOMPING_KEEP : CHOMPING_STRIP;
640
- }
641
- else {
642
- return throwError(state, "repeat of a chomping mode identifier");
643
- }
644
- }
645
- else if ((tmp = fromDecimalCode(ch)) >= 0) {
646
- if (tmp === 0) {
647
- return throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
648
- }
649
- else if (!detectedIndent) {
650
- textIndent = nodeIndent + tmp - 1;
651
- detectedIndent = true;
652
- }
653
- else {
654
- return throwError(state, "repeat of an indentation width identifier");
655
- }
656
- }
657
- else {
658
- break;
659
- }
660
- }
661
- if (isWhiteSpace(ch)) {
662
- do {
663
- ch = state.input.charCodeAt(++state.position);
664
- } while (isWhiteSpace(ch));
665
- if (ch === 0x23 /* # */) {
666
- do {
667
- ch = state.input.charCodeAt(++state.position);
668
- } while (!isEOL(ch) && ch !== 0);
669
- }
670
- }
671
- while (ch !== 0) {
672
- readLineBreak(state);
673
- state.lineIndent = 0;
674
- ch = state.input.charCodeAt(state.position);
675
- while ((!detectedIndent || state.lineIndent < textIndent) &&
676
- ch === 0x20 /* Space */) {
677
- state.lineIndent++;
678
- ch = state.input.charCodeAt(++state.position);
679
- }
680
- if (!detectedIndent && state.lineIndent > textIndent) {
681
- textIndent = state.lineIndent;
682
- }
683
- if (isEOL(ch)) {
684
- emptyLines++;
685
- continue;
686
- }
687
- // End of the scalar.
688
- if (state.lineIndent < textIndent) {
689
- // Perform the chomping.
690
- if (chomping === CHOMPING_KEEP) {
691
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
692
- }
693
- else if (chomping === CHOMPING_CLIP) {
694
- if (didReadContent) {
695
- // i.e. only if the scalar is not empty.
696
- state.result += "\n";
697
- }
698
- }
699
- // Break this `while` cycle and go to the function's epilogue.
700
- break;
701
- }
702
- // Folded style: use fancy rules to handle line breaks.
703
- if (folding) {
704
- // Lines starting with white space characters (more-indented lines) are not folded.
705
- if (isWhiteSpace(ch)) {
706
- atMoreIndented = true;
707
- // except for the first content line (cf. Example 8.1)
708
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
709
- // End of more-indented block.
710
- }
711
- else if (atMoreIndented) {
712
- atMoreIndented = false;
713
- state.result += common.repeat("\n", emptyLines + 1);
714
- // Just one line break - perceive as the same line.
715
- }
716
- else if (emptyLines === 0) {
717
- if (didReadContent) {
718
- // i.e. only if we have already read some scalar content.
719
- state.result += " ";
720
- }
721
- // Several line breaks - perceive as different lines.
722
- }
723
- else {
724
- state.result += common.repeat("\n", emptyLines);
725
- }
726
- // Literal style: just add exact number of line breaks between content lines.
727
- }
728
- else {
729
- // Keep all line breaks except the header line break.
730
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
731
- }
732
- didReadContent = true;
733
- detectedIndent = true;
734
- emptyLines = 0;
735
- const captureStart = state.position;
736
- while (!isEOL(ch) && ch !== 0) {
737
- ch = state.input.charCodeAt(++state.position);
738
- }
739
- captureSegment(state, captureStart, state.position, false);
740
- }
741
- return true;
742
- }
743
- function readBlockSequence(state, nodeIndent) {
744
- let line, following, detected = false, ch;
745
- const tag = state.tag, anchor = state.anchor, result = [];
746
- if (state.anchor !== null &&
747
- typeof state.anchor !== "undefined" &&
748
- typeof state.anchorMap !== "undefined") {
749
- state.anchorMap[state.anchor] = result;
750
- }
751
- ch = state.input.charCodeAt(state.position);
752
- while (ch !== 0) {
753
- if (ch !== 0x2d /* - */) {
754
- break;
755
- }
756
- following = state.input.charCodeAt(state.position + 1);
757
- if (!isWsOrEol(following)) {
758
- break;
759
- }
760
- detected = true;
761
- state.position++;
762
- if (skipSeparationSpace(state, true, -1)) {
763
- if (state.lineIndent <= nodeIndent) {
764
- result.push(null);
765
- ch = state.input.charCodeAt(state.position);
766
- continue;
767
- }
768
- }
769
- line = state.line;
770
- composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
771
- result.push(state.result);
772
- skipSeparationSpace(state, true, -1);
773
- ch = state.input.charCodeAt(state.position);
774
- if ((state.line === line || state.lineIndent > nodeIndent) && ch !== 0) {
775
- return throwError(state, "bad indentation of a sequence entry");
776
- }
777
- else if (state.lineIndent < nodeIndent) {
778
- break;
779
- }
780
- }
781
- if (detected) {
782
- state.tag = tag;
783
- state.anchor = anchor;
784
- state.kind = "sequence";
785
- state.result = result;
786
- return true;
787
- }
788
- return false;
789
- }
790
- function readBlockMapping(state, nodeIndent, flowIndent) {
791
- const tag = state.tag, anchor = state.anchor, result = {}, overridableKeys = Object.create(null);
792
- let following, allowCompact = false, line, pos, keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
793
- if (state.anchor !== null &&
794
- typeof state.anchor !== "undefined" &&
795
- typeof state.anchorMap !== "undefined") {
796
- state.anchorMap[state.anchor] = result;
797
- }
798
- ch = state.input.charCodeAt(state.position);
799
- while (ch !== 0) {
800
- following = state.input.charCodeAt(state.position + 1);
801
- line = state.line; // Save the current line.
802
- pos = state.position;
803
- //
804
- // Explicit notation case. There are two separate blocks:
805
- // first for the key (denoted by "?") and second for the value (denoted by ":")
806
- //
807
- if ((ch === 0x3f || /* ? */ ch === 0x3a) && /* : */ isWsOrEol(following)) {
808
- if (ch === 0x3f /* ? */) {
809
- if (atExplicitKey) {
810
- storeMappingPair(state, result, overridableKeys, keyTag, keyNode, null);
811
- keyTag = keyNode = valueNode = null;
812
- }
813
- detected = true;
814
- atExplicitKey = true;
815
- allowCompact = true;
816
- }
817
- else if (atExplicitKey) {
818
- // i.e. 0x3A/* : */ === character after the explicit key.
819
- atExplicitKey = false;
820
- allowCompact = true;
821
- }
822
- else {
823
- return throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
824
- }
825
- state.position += 1;
826
- ch = following;
827
- //
828
- // Implicit notation case. Flow-style node as the key first, then ":", and the value.
829
- //
830
- }
831
- else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
832
- if (state.line === line) {
833
- ch = state.input.charCodeAt(state.position);
834
- while (isWhiteSpace(ch)) {
835
- ch = state.input.charCodeAt(++state.position);
836
- }
837
- if (ch === 0x3a /* : */) {
838
- ch = state.input.charCodeAt(++state.position);
839
- if (!isWsOrEol(ch)) {
840
- return throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
841
- }
842
- if (atExplicitKey) {
843
- storeMappingPair(state, result, overridableKeys, keyTag, keyNode, null);
844
- keyTag = keyNode = valueNode = null;
845
- }
846
- detected = true;
847
- atExplicitKey = false;
848
- allowCompact = false;
849
- keyTag = state.tag;
850
- keyNode = state.result;
851
- }
852
- else if (detected) {
853
- return throwError(state, "can not read an implicit mapping pair; a colon is missed");
854
- }
855
- else {
856
- state.tag = tag;
857
- state.anchor = anchor;
858
- return true; // Keep the result of `composeNode`.
859
- }
860
- }
861
- else if (detected) {
862
- return throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
863
- }
864
- else {
865
- state.tag = tag;
866
- state.anchor = anchor;
867
- return true; // Keep the result of `composeNode`.
868
- }
869
- }
870
- else {
871
- break; // Reading is done. Go to the epilogue.
872
- }
873
- //
874
- // Common reading code for both explicit and implicit notations.
875
- //
876
- if (state.line === line || state.lineIndent > nodeIndent) {
877
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
878
- if (atExplicitKey) {
879
- keyNode = state.result;
880
- }
881
- else {
882
- valueNode = state.result;
883
- }
884
- }
885
- if (!atExplicitKey) {
886
- storeMappingPair(state, result, overridableKeys, keyTag, keyNode, valueNode, line, pos);
887
- keyTag = keyNode = valueNode = null;
888
- }
889
- skipSeparationSpace(state, true, -1);
890
- ch = state.input.charCodeAt(state.position);
891
- }
892
- if (state.lineIndent > nodeIndent && ch !== 0) {
893
- return throwError(state, "bad indentation of a mapping entry");
894
- }
895
- else if (state.lineIndent < nodeIndent) {
896
- break;
897
- }
898
- }
899
- //
900
- // Epilogue.
901
- //
902
- // Special case: last mapping's node contains only the key in explicit notation.
903
- if (atExplicitKey) {
904
- storeMappingPair(state, result, overridableKeys, keyTag, keyNode, null);
905
- }
906
- // Expose the resulting mapping.
907
- if (detected) {
908
- state.tag = tag;
909
- state.anchor = anchor;
910
- state.kind = "mapping";
911
- state.result = result;
912
- }
913
- return detected;
914
- }
915
- function readTagProperty(state) {
916
- let position, isVerbatim = false, isNamed = false, tagHandle = "", tagName, ch;
917
- ch = state.input.charCodeAt(state.position);
918
- if (ch !== 0x21 /* ! */)
919
- return false;
920
- if (state.tag !== null) {
921
- return throwError(state, "duplication of a tag property");
922
- }
923
- ch = state.input.charCodeAt(++state.position);
924
- if (ch === 0x3c /* < */) {
925
- isVerbatim = true;
926
- ch = state.input.charCodeAt(++state.position);
927
- }
928
- else if (ch === 0x21 /* ! */) {
929
- isNamed = true;
930
- tagHandle = "!!";
931
- ch = state.input.charCodeAt(++state.position);
932
- }
933
- else {
934
- tagHandle = "!";
935
- }
936
- position = state.position;
937
- if (isVerbatim) {
938
- do {
939
- ch = state.input.charCodeAt(++state.position);
940
- } while (ch !== 0 && ch !== 0x3e /* > */);
941
- if (state.position < state.length) {
942
- tagName = state.input.slice(position, state.position);
943
- ch = state.input.charCodeAt(++state.position);
944
- }
945
- else {
946
- return throwError(state, "unexpected end of the stream within a verbatim tag");
947
- }
948
- }
949
- else {
950
- while (ch !== 0 && !isWsOrEol(ch)) {
951
- if (ch === 0x21 /* ! */) {
952
- if (!isNamed) {
953
- tagHandle = state.input.slice(position - 1, state.position + 1);
954
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
955
- return throwError(state, "named tag handle cannot contain such characters");
956
- }
957
- isNamed = true;
958
- position = state.position + 1;
959
- }
960
- else {
961
- return throwError(state, "tag suffix cannot contain exclamation marks");
962
- }
963
- }
964
- ch = state.input.charCodeAt(++state.position);
965
- }
966
- tagName = state.input.slice(position, state.position);
967
- if (PATTERN_FLOW_INDICATORS.test(tagName)) {
968
- return throwError(state, "tag suffix cannot contain flow indicator characters");
969
- }
970
- }
971
- if (tagName && !PATTERN_TAG_URI.test(tagName)) {
972
- return throwError(state, `tag name cannot contain such characters: ${tagName}`);
973
- }
974
- if (isVerbatim) {
975
- state.tag = tagName;
976
- }
977
- else if (typeof state.tagMap !== "undefined" &&
978
- hasOwn(state.tagMap, tagHandle)) {
979
- state.tag = state.tagMap[tagHandle] + tagName;
980
- }
981
- else if (tagHandle === "!") {
982
- state.tag = `!${tagName}`;
983
- }
984
- else if (tagHandle === "!!") {
985
- state.tag = `tag:yaml.org,2002:${tagName}`;
986
- }
987
- else {
988
- return throwError(state, `undeclared tag handle "${tagHandle}"`);
989
- }
990
- return true;
991
- }
992
- function readAnchorProperty(state) {
993
- let ch = state.input.charCodeAt(state.position);
994
- if (ch !== 0x26 /* & */)
995
- return false;
996
- if (state.anchor !== null) {
997
- return throwError(state, "duplication of an anchor property");
998
- }
999
- ch = state.input.charCodeAt(++state.position);
1000
- const position = state.position;
1001
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
1002
- ch = state.input.charCodeAt(++state.position);
1003
- }
1004
- if (state.position === position) {
1005
- return throwError(state, "name of an anchor node must contain at least one character");
1006
- }
1007
- state.anchor = state.input.slice(position, state.position);
1008
- return true;
1009
- }
1010
- function readAlias(state) {
1011
- let ch = state.input.charCodeAt(state.position);
1012
- if (ch !== 0x2a /* * */)
1013
- return false;
1014
- ch = state.input.charCodeAt(++state.position);
1015
- const _position = state.position;
1016
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
1017
- ch = state.input.charCodeAt(++state.position);
1018
- }
1019
- if (state.position === _position) {
1020
- return throwError(state, "name of an alias node must contain at least one character");
1021
- }
1022
- const alias = state.input.slice(_position, state.position);
1023
- if (typeof state.anchorMap !== "undefined" &&
1024
- !hasOwn(state.anchorMap, alias)) {
1025
- return throwError(state, `unidentified alias "${alias}"`);
1026
- }
1027
- if (typeof state.anchorMap !== "undefined") {
1028
- state.result = state.anchorMap[alias];
1029
- }
1030
- skipSeparationSpace(state, true, -1);
1031
- return true;
1032
- }
1033
- function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
1034
- let allowBlockScalars, allowBlockCollections, indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this<parent
1035
- atNewLine = false, hasContent = false, type, flowIndent, blockIndent;
1036
- if (state.listener && state.listener !== null) {
1037
- state.listener("open", state);
1038
- }
1039
- state.tag = null;
1040
- state.anchor = null;
1041
- state.kind = null;
1042
- state.result = null;
1043
- const allowBlockStyles = (allowBlockScalars =
1044
- allowBlockCollections =
1045
- CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext);
1046
- if (allowToSeek) {
1047
- if (skipSeparationSpace(state, true, -1)) {
1048
- atNewLine = true;
1049
- if (state.lineIndent > parentIndent) {
1050
- indentStatus = 1;
1051
- }
1052
- else if (state.lineIndent === parentIndent) {
1053
- indentStatus = 0;
1054
- }
1055
- else if (state.lineIndent < parentIndent) {
1056
- indentStatus = -1;
1057
- }
1058
- }
1059
- }
1060
- if (indentStatus === 1) {
1061
- while (readTagProperty(state) || readAnchorProperty(state)) {
1062
- if (skipSeparationSpace(state, true, -1)) {
1063
- atNewLine = true;
1064
- allowBlockCollections = allowBlockStyles;
1065
- if (state.lineIndent > parentIndent) {
1066
- indentStatus = 1;
1067
- }
1068
- else if (state.lineIndent === parentIndent) {
1069
- indentStatus = 0;
1070
- }
1071
- else if (state.lineIndent < parentIndent) {
1072
- indentStatus = -1;
1073
- }
1074
- }
1075
- else {
1076
- allowBlockCollections = false;
1077
- }
1078
- }
1079
- }
1080
- if (allowBlockCollections) {
1081
- allowBlockCollections = atNewLine || allowCompact;
1082
- }
1083
- if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
1084
- const cond = CONTEXT_FLOW_IN === nodeContext ||
1085
- CONTEXT_FLOW_OUT === nodeContext;
1086
- flowIndent = cond ? parentIndent : parentIndent + 1;
1087
- blockIndent = state.position - state.lineStart;
1088
- if (indentStatus === 1) {
1089
- if ((allowBlockCollections &&
1090
- (readBlockSequence(state, blockIndent) ||
1091
- readBlockMapping(state, blockIndent, flowIndent))) ||
1092
- readFlowCollection(state, flowIndent)) {
1093
- hasContent = true;
1094
- }
1095
- else {
1096
- if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
1097
- readSingleQuotedScalar(state, flowIndent) ||
1098
- readDoubleQuotedScalar(state, flowIndent)) {
1099
- hasContent = true;
1100
- }
1101
- else if (readAlias(state)) {
1102
- hasContent = true;
1103
- if (state.tag !== null || state.anchor !== null) {
1104
- return throwError(state, "alias node should not have Any properties");
1105
- }
1106
- }
1107
- else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
1108
- hasContent = true;
1109
- if (state.tag === null) {
1110
- state.tag = "?";
1111
- }
1112
- }
1113
- if (state.anchor !== null && typeof state.anchorMap !== "undefined") {
1114
- state.anchorMap[state.anchor] = state.result;
1115
- }
1116
- }
1117
- }
1118
- else if (indentStatus === 0) {
1119
- // Special case: block sequences are allowed to have same indentation level as the parent.
1120
- // http://www.yaml.org/spec/1.2/spec.html#id2799784
1121
- hasContent = allowBlockCollections &&
1122
- readBlockSequence(state, blockIndent);
1123
- }
1124
- }
1125
- if (state.tag !== null && state.tag !== "!") {
1126
- if (state.tag === "?") {
1127
- for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex++) {
1128
- type = state.implicitTypes[typeIndex];
1129
- // Implicit resolving is not allowed for non-scalar types, and '?'
1130
- // non-specific tag is only assigned to plain scalars. So, it isn't
1131
- // needed to check for 'kind' conformity.
1132
- if (type.resolve(state.result)) {
1133
- // `state.result` updated in resolver if matched
1134
- state.result = type.construct(state.result);
1135
- state.tag = type.tag;
1136
- if (state.anchor !== null && typeof state.anchorMap !== "undefined") {
1137
- state.anchorMap[state.anchor] = state.result;
1138
- }
1139
- break;
1140
- }
1141
- }
1142
- }
1143
- else if (hasOwn(state.typeMap[state.kind || "fallback"], state.tag)) {
1144
- type = state.typeMap[state.kind || "fallback"][state.tag];
1145
- if (state.result !== null && type.kind !== state.kind) {
1146
- return throwError(state, `unacceptable node kind for !<${state.tag}> tag; it should be "${type.kind}", not "${state.kind}"`);
1147
- }
1148
- if (!type.resolve(state.result)) {
1149
- // `state.result` updated in resolver if matched
1150
- return throwError(state, `cannot resolve a node with !<${state.tag}> explicit tag`);
1151
- }
1152
- else {
1153
- state.result = type.construct(state.result);
1154
- if (state.anchor !== null && typeof state.anchorMap !== "undefined") {
1155
- state.anchorMap[state.anchor] = state.result;
1156
- }
1157
- }
1158
- }
1159
- else {
1160
- return throwError(state, `unknown tag !<${state.tag}>`);
1161
- }
1162
- }
1163
- if (state.listener && state.listener !== null) {
1164
- state.listener("close", state);
1165
- }
1166
- return state.tag !== null || state.anchor !== null || hasContent;
1167
- }
1168
- function readDocument(state) {
1169
- const documentStart = state.position;
1170
- let position, directiveName, directiveArgs, hasDirectives = false, ch;
1171
- state.version = null;
1172
- state.checkLineBreaks = state.legacy;
1173
- state.tagMap = Object.create(null);
1174
- state.anchorMap = Object.create(null);
1175
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1176
- skipSeparationSpace(state, true, -1);
1177
- ch = state.input.charCodeAt(state.position);
1178
- if (state.lineIndent > 0 || ch !== 0x25 /* % */) {
1179
- break;
1180
- }
1181
- hasDirectives = true;
1182
- ch = state.input.charCodeAt(++state.position);
1183
- position = state.position;
1184
- while (ch !== 0 && !isWsOrEol(ch)) {
1185
- ch = state.input.charCodeAt(++state.position);
1186
- }
1187
- directiveName = state.input.slice(position, state.position);
1188
- directiveArgs = [];
1189
- if (directiveName.length < 1) {
1190
- return throwError(state, "directive name must not be less than one character in length");
1191
- }
1192
- while (ch !== 0) {
1193
- while (isWhiteSpace(ch)) {
1194
- ch = state.input.charCodeAt(++state.position);
1195
- }
1196
- if (ch === 0x23 /* # */) {
1197
- do {
1198
- ch = state.input.charCodeAt(++state.position);
1199
- } while (ch !== 0 && !isEOL(ch));
1200
- break;
1201
- }
1202
- if (isEOL(ch))
1203
- break;
1204
- position = state.position;
1205
- while (ch !== 0 && !isWsOrEol(ch)) {
1206
- ch = state.input.charCodeAt(++state.position);
1207
- }
1208
- directiveArgs.push(state.input.slice(position, state.position));
1209
- }
1210
- if (ch !== 0)
1211
- readLineBreak(state);
1212
- if (hasOwn(directiveHandlers, directiveName)) {
1213
- directiveHandlers[directiveName](state, directiveName, ...directiveArgs);
1214
- }
1215
- else {
1216
- throwWarning(state, `unknown document directive "${directiveName}"`);
1217
- }
1218
- }
1219
- skipSeparationSpace(state, true, -1);
1220
- if (state.lineIndent === 0 &&
1221
- state.input.charCodeAt(state.position) === 0x2d /* - */ &&
1222
- state.input.charCodeAt(state.position + 1) === 0x2d /* - */ &&
1223
- state.input.charCodeAt(state.position + 2) === 0x2d /* - */) {
1224
- state.position += 3;
1225
- skipSeparationSpace(state, true, -1);
1226
- }
1227
- else if (hasDirectives) {
1228
- return throwError(state, "directives end mark is expected");
1229
- }
1230
- composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
1231
- skipSeparationSpace(state, true, -1);
1232
- if (state.checkLineBreaks &&
1233
- PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
1234
- throwWarning(state, "non-ASCII line breaks are interpreted as content");
1235
- }
1236
- state.documents.push(state.result);
1237
- if (state.position === state.lineStart && testDocumentSeparator(state)) {
1238
- if (state.input.charCodeAt(state.position) === 0x2e /* . */) {
1239
- state.position += 3;
1240
- skipSeparationSpace(state, true, -1);
1241
- }
1242
- return;
1243
- }
1244
- if (state.position < state.length - 1) {
1245
- return throwError(state, "end of the stream or a document separator is expected");
1246
- }
1247
- }
1248
- function loadDocuments(input, options) {
1249
- input = String(input);
1250
- options = options || {};
1251
- if (input.length !== 0) {
1252
- // Add tailing `\n` if not exists
1253
- if (input.charCodeAt(input.length - 1) !== 0x0a /* LF */ &&
1254
- input.charCodeAt(input.length - 1) !== 0x0d /* CR */) {
1255
- input += "\n";
1256
- }
1257
- // Strip BOM
1258
- if (input.charCodeAt(0) === 0xfeff) {
1259
- input = input.slice(1);
1260
- }
1261
- }
1262
- const state = new LoaderState(input, options);
1263
- // Use 0 as string terminator. That significantly simplifies bounds check.
1264
- state.input += "\0";
1265
- while (state.input.charCodeAt(state.position) === 0x20 /* Space */) {
1266
- state.lineIndent += 1;
1267
- state.position += 1;
1268
- }
1269
- while (state.position < state.length - 1) {
1270
- readDocument(state);
1271
- }
1272
- return state.documents;
1273
- }
1274
- function isCbFunction(fn) {
1275
- return typeof fn === "function";
1276
- }
1277
- export function loadAll(input, iteratorOrOption, options) {
1278
- if (!isCbFunction(iteratorOrOption)) {
1279
- return loadDocuments(input, iteratorOrOption);
1280
- }
1281
- const documents = loadDocuments(input, options);
1282
- const iterator = iteratorOrOption;
1283
- for (let index = 0, length = documents.length; index < length; index++) {
1284
- iterator(documents[index]);
1285
- }
1286
- return void 0;
1287
- }
1288
- export function load(input, options) {
1289
- const documents = loadDocuments(input, options);
1290
- if (documents.length === 0) {
1291
- return null;
1292
- }
1293
- if (documents.length === 1) {
1294
- return documents[0];
1295
- }
1296
- throw new YAMLError("expected a single document in the stream, but found more");
1297
- }