@rse/ase 0.0.41 → 0.0.43

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 (1559) hide show
  1. package/dst/ase-hello.js +5 -9
  2. package/dst/ase-kv.js +105 -6
  3. package/package.json +7 -7
  4. package/plugin/.claude-plugin/plugin.json +1 -1
  5. package/plugin/.github/plugin/plugin.json +1 -1
  6. package/plugin/meta/ase-dialog.md +1 -0
  7. package/plugin/meta/ase-persona.md +27 -12
  8. package/plugin/meta/ase-plan.md +1 -0
  9. package/plugin/package.json +1 -1
  10. package/plugin/skills/ase-code-analyze/SKILL.md +71 -72
  11. package/plugin/skills/ase-code-craft/SKILL.md +58 -20
  12. package/plugin/skills/ase-code-refactor/SKILL.md +46 -22
  13. package/plugin/skills/ase-code-resolve/SKILL.md +46 -33
  14. package/plugin/skills/ase-meta-changes/SKILL.md +1 -1
  15. package/plugin/skills/ase-meta-persona/SKILL.md +1 -0
  16. package/plugin/skills/ase-task-delete/SKILL.md +1 -0
  17. package/plugin/skills/ase-task-id/SKILL.md +1 -0
  18. package/plugin/skills/ase-task-implement/SKILL.md +1 -0
  19. package/plugin/skills/ase-task-reboot/SKILL.md +1 -0
  20. package/plugin/skills/ase-task-view/SKILL.md +1 -0
  21. package/plugin/node_modules/.package-lock.json +0 -1342
  22. package/plugin/node_modules/@nodelib/fs.scandir/LICENSE +0 -21
  23. package/plugin/node_modules/@nodelib/fs.scandir/README.md +0 -171
  24. package/plugin/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  25. package/plugin/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +0 -19
  26. package/plugin/node_modules/@nodelib/fs.scandir/out/constants.d.ts +0 -4
  27. package/plugin/node_modules/@nodelib/fs.scandir/out/constants.js +0 -17
  28. package/plugin/node_modules/@nodelib/fs.scandir/out/index.d.ts +0 -12
  29. package/plugin/node_modules/@nodelib/fs.scandir/out/index.js +0 -26
  30. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  31. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/async.js +0 -104
  32. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +0 -1
  33. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/common.js +0 -13
  34. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +0 -5
  35. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/sync.js +0 -54
  36. package/plugin/node_modules/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  37. package/plugin/node_modules/@nodelib/fs.scandir/out/settings.js +0 -24
  38. package/plugin/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  39. package/plugin/node_modules/@nodelib/fs.scandir/out/types/index.js +0 -2
  40. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +0 -2
  41. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/fs.js +0 -19
  42. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +0 -2
  43. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/index.js +0 -5
  44. package/plugin/node_modules/@nodelib/fs.scandir/package.json +0 -44
  45. package/plugin/node_modules/@nodelib/fs.stat/LICENSE +0 -21
  46. package/plugin/node_modules/@nodelib/fs.stat/README.md +0 -126
  47. package/plugin/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  48. package/plugin/node_modules/@nodelib/fs.stat/out/adapters/fs.js +0 -17
  49. package/plugin/node_modules/@nodelib/fs.stat/out/index.d.ts +0 -12
  50. package/plugin/node_modules/@nodelib/fs.stat/out/index.js +0 -26
  51. package/plugin/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  52. package/plugin/node_modules/@nodelib/fs.stat/out/providers/async.js +0 -36
  53. package/plugin/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +0 -3
  54. package/plugin/node_modules/@nodelib/fs.stat/out/providers/sync.js +0 -23
  55. package/plugin/node_modules/@nodelib/fs.stat/out/settings.d.ts +0 -16
  56. package/plugin/node_modules/@nodelib/fs.stat/out/settings.js +0 -16
  57. package/plugin/node_modules/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  58. package/plugin/node_modules/@nodelib/fs.stat/out/types/index.js +0 -2
  59. package/plugin/node_modules/@nodelib/fs.stat/package.json +0 -37
  60. package/plugin/node_modules/@nodelib/fs.walk/LICENSE +0 -21
  61. package/plugin/node_modules/@nodelib/fs.walk/README.md +0 -215
  62. package/plugin/node_modules/@nodelib/fs.walk/out/index.d.ts +0 -14
  63. package/plugin/node_modules/@nodelib/fs.walk/out/index.js +0 -34
  64. package/plugin/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  65. package/plugin/node_modules/@nodelib/fs.walk/out/providers/async.js +0 -30
  66. package/plugin/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +0 -4
  67. package/plugin/node_modules/@nodelib/fs.walk/out/providers/index.js +0 -9
  68. package/plugin/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +0 -12
  69. package/plugin/node_modules/@nodelib/fs.walk/out/providers/stream.js +0 -34
  70. package/plugin/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +0 -10
  71. package/plugin/node_modules/@nodelib/fs.walk/out/providers/sync.js +0 -14
  72. package/plugin/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  73. package/plugin/node_modules/@nodelib/fs.walk/out/readers/async.js +0 -97
  74. package/plugin/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +0 -7
  75. package/plugin/node_modules/@nodelib/fs.walk/out/readers/common.js +0 -31
  76. package/plugin/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  77. package/plugin/node_modules/@nodelib/fs.walk/out/readers/reader.js +0 -11
  78. package/plugin/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +0 -15
  79. package/plugin/node_modules/@nodelib/fs.walk/out/readers/sync.js +0 -59
  80. package/plugin/node_modules/@nodelib/fs.walk/out/settings.d.ts +0 -30
  81. package/plugin/node_modules/@nodelib/fs.walk/out/settings.js +0 -26
  82. package/plugin/node_modules/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  83. package/plugin/node_modules/@nodelib/fs.walk/out/types/index.js +0 -2
  84. package/plugin/node_modules/@nodelib/fs.walk/package.json +0 -44
  85. package/plugin/node_modules/@rse/stx/README.md +0 -176
  86. package/plugin/node_modules/@rse/stx/dst-stage2/stx.1 +0 -206
  87. package/plugin/node_modules/@rse/stx/dst-stage2/stx.js +0 -205
  88. package/plugin/node_modules/@rse/stx/etc/.markdownlint.yaml +0 -11
  89. package/plugin/node_modules/@rse/stx/etc/eslint.mjs +0 -82
  90. package/plugin/node_modules/@rse/stx/etc/stx-bootstrap.js +0 -18
  91. package/plugin/node_modules/@rse/stx/etc/stx.conf +0 -59
  92. package/plugin/node_modules/@rse/stx/etc/tsc.json +0 -24
  93. package/plugin/node_modules/@rse/stx/etc/vite.mts +0 -69
  94. package/plugin/node_modules/@rse/stx/package.json +0 -71
  95. package/plugin/node_modules/@rse/stx/src/stx-logo.ai +7 -1463
  96. package/plugin/node_modules/@rse/stx/src/stx-logo.svg +0 -31
  97. package/plugin/node_modules/@rse/stx/src/stx.md +0 -293
  98. package/plugin/node_modules/@rse/stx/src/stx.ts +0 -708
  99. package/plugin/node_modules/@rse/stx/src/tsconfig.json +0 -3
  100. package/plugin/node_modules/@sindresorhus/merge-streams/index.d.ts +0 -44
  101. package/plugin/node_modules/@sindresorhus/merge-streams/index.js +0 -265
  102. package/plugin/node_modules/@sindresorhus/merge-streams/license +0 -9
  103. package/plugin/node_modules/@sindresorhus/merge-streams/package.json +0 -49
  104. package/plugin/node_modules/@sindresorhus/merge-streams/readme.md +0 -53
  105. package/plugin/node_modules/@types/debug/LICENSE +0 -21
  106. package/plugin/node_modules/@types/debug/README.md +0 -69
  107. package/plugin/node_modules/@types/debug/index.d.ts +0 -50
  108. package/plugin/node_modules/@types/debug/package.json +0 -58
  109. package/plugin/node_modules/@types/katex/LICENSE +0 -21
  110. package/plugin/node_modules/@types/katex/README.md +0 -15
  111. package/plugin/node_modules/@types/katex/contrib/auto-render.d.ts +0 -67
  112. package/plugin/node_modules/@types/katex/index.d.ts +0 -151
  113. package/plugin/node_modules/@types/katex/package.json +0 -46
  114. package/plugin/node_modules/@types/ms/LICENSE +0 -21
  115. package/plugin/node_modules/@types/ms/README.md +0 -82
  116. package/plugin/node_modules/@types/ms/index.d.ts +0 -63
  117. package/plugin/node_modules/@types/ms/package.json +0 -26
  118. package/plugin/node_modules/@types/unist/LICENSE +0 -21
  119. package/plugin/node_modules/@types/unist/README.md +0 -122
  120. package/plugin/node_modules/@types/unist/index.d.ts +0 -103
  121. package/plugin/node_modules/@types/unist/package.json +0 -55
  122. package/plugin/node_modules/ansi-regex/index.d.ts +0 -33
  123. package/plugin/node_modules/ansi-regex/index.js +0 -14
  124. package/plugin/node_modules/ansi-regex/license +0 -9
  125. package/plugin/node_modules/ansi-regex/package.json +0 -61
  126. package/plugin/node_modules/ansi-regex/readme.md +0 -66
  127. package/plugin/node_modules/argparse/CHANGELOG.md +0 -216
  128. package/plugin/node_modules/argparse/LICENSE +0 -254
  129. package/plugin/node_modules/argparse/README.md +0 -84
  130. package/plugin/node_modules/argparse/argparse.js +0 -3707
  131. package/plugin/node_modules/argparse/lib/sub.js +0 -67
  132. package/plugin/node_modules/argparse/lib/textwrap.js +0 -440
  133. package/plugin/node_modules/argparse/package.json +0 -31
  134. package/plugin/node_modules/braces/LICENSE +0 -21
  135. package/plugin/node_modules/braces/README.md +0 -586
  136. package/plugin/node_modules/braces/index.js +0 -170
  137. package/plugin/node_modules/braces/lib/compile.js +0 -60
  138. package/plugin/node_modules/braces/lib/constants.js +0 -57
  139. package/plugin/node_modules/braces/lib/expand.js +0 -113
  140. package/plugin/node_modules/braces/lib/parse.js +0 -331
  141. package/plugin/node_modules/braces/lib/stringify.js +0 -32
  142. package/plugin/node_modules/braces/lib/utils.js +0 -122
  143. package/plugin/node_modules/braces/package.json +0 -77
  144. package/plugin/node_modules/character-entities/index.d.ts +0 -6
  145. package/plugin/node_modules/character-entities/index.js +0 -2132
  146. package/plugin/node_modules/character-entities/license +0 -22
  147. package/plugin/node_modules/character-entities/package.json +0 -78
  148. package/plugin/node_modules/character-entities/readme.md +0 -152
  149. package/plugin/node_modules/character-entities-legacy/index.d.ts +0 -6
  150. package/plugin/node_modules/character-entities-legacy/index.js +0 -113
  151. package/plugin/node_modules/character-entities-legacy/license +0 -22
  152. package/plugin/node_modules/character-entities-legacy/package.json +0 -77
  153. package/plugin/node_modules/character-entities-legacy/readme.md +0 -157
  154. package/plugin/node_modules/character-reference-invalid/index.d.ts +0 -6
  155. package/plugin/node_modules/character-reference-invalid/index.js +0 -35
  156. package/plugin/node_modules/character-reference-invalid/license +0 -22
  157. package/plugin/node_modules/character-reference-invalid/package.json +0 -83
  158. package/plugin/node_modules/character-reference-invalid/readme.md +0 -156
  159. package/plugin/node_modules/commander/LICENSE +0 -22
  160. package/plugin/node_modules/commander/Readme.md +0 -1015
  161. package/plugin/node_modules/commander/esm.mjs +0 -15
  162. package/plugin/node_modules/commander/index.js +0 -27
  163. package/plugin/node_modules/commander/lib/argument.js +0 -147
  164. package/plugin/node_modules/commander/lib/command.js +0 -1944
  165. package/plugin/node_modules/commander/lib/error.js +0 -45
  166. package/plugin/node_modules/commander/lib/help.js +0 -396
  167. package/plugin/node_modules/commander/lib/option.js +0 -208
  168. package/plugin/node_modules/commander/lib/suggestSimilar.js +0 -100
  169. package/plugin/node_modules/commander/package-support.json +0 -16
  170. package/plugin/node_modules/commander/package.json +0 -69
  171. package/plugin/node_modules/commander/typings/index.d.ts +0 -774
  172. package/plugin/node_modules/debug/LICENSE +0 -20
  173. package/plugin/node_modules/debug/README.md +0 -481
  174. package/plugin/node_modules/debug/package.json +0 -64
  175. package/plugin/node_modules/debug/src/browser.js +0 -272
  176. package/plugin/node_modules/debug/src/common.js +0 -292
  177. package/plugin/node_modules/debug/src/index.js +0 -10
  178. package/plugin/node_modules/debug/src/node.js +0 -263
  179. package/plugin/node_modules/decode-named-character-reference/index.d.ts +0 -13
  180. package/plugin/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
  181. package/plugin/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
  182. package/plugin/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
  183. package/plugin/node_modules/decode-named-character-reference/index.dom.js +0 -32
  184. package/plugin/node_modules/decode-named-character-reference/index.js +0 -19
  185. package/plugin/node_modules/decode-named-character-reference/license +0 -22
  186. package/plugin/node_modules/decode-named-character-reference/package.json +0 -90
  187. package/plugin/node_modules/decode-named-character-reference/readme.md +0 -136
  188. package/plugin/node_modules/dequal/dist/index.js +0 -86
  189. package/plugin/node_modules/dequal/dist/index.min.js +0 -1
  190. package/plugin/node_modules/dequal/dist/index.mjs +0 -84
  191. package/plugin/node_modules/dequal/index.d.ts +0 -1
  192. package/plugin/node_modules/dequal/license +0 -21
  193. package/plugin/node_modules/dequal/lite/index.d.ts +0 -1
  194. package/plugin/node_modules/dequal/lite/index.js +0 -31
  195. package/plugin/node_modules/dequal/lite/index.min.js +0 -1
  196. package/plugin/node_modules/dequal/lite/index.mjs +0 -29
  197. package/plugin/node_modules/dequal/package.json +0 -57
  198. package/plugin/node_modules/dequal/readme.md +0 -112
  199. package/plugin/node_modules/devlop/lib/default.js +0 -9
  200. package/plugin/node_modules/devlop/lib/development.d.ts +0 -84
  201. package/plugin/node_modules/devlop/lib/development.js +0 -238
  202. package/plugin/node_modules/devlop/license +0 -22
  203. package/plugin/node_modules/devlop/package.json +0 -80
  204. package/plugin/node_modules/devlop/readme.md +0 -360
  205. package/plugin/node_modules/entities/LICENSE +0 -11
  206. package/plugin/node_modules/entities/lib/decode.d.ts +0 -211
  207. package/plugin/node_modules/entities/lib/decode.d.ts.map +0 -1
  208. package/plugin/node_modules/entities/lib/decode.js +0 -536
  209. package/plugin/node_modules/entities/lib/decode.js.map +0 -1
  210. package/plugin/node_modules/entities/lib/decode_codepoint.d.ts +0 -19
  211. package/plugin/node_modules/entities/lib/decode_codepoint.d.ts.map +0 -1
  212. package/plugin/node_modules/entities/lib/decode_codepoint.js +0 -76
  213. package/plugin/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  214. package/plugin/node_modules/entities/lib/encode.d.ts +0 -22
  215. package/plugin/node_modules/entities/lib/encode.d.ts.map +0 -1
  216. package/plugin/node_modules/entities/lib/encode.js +0 -77
  217. package/plugin/node_modules/entities/lib/encode.js.map +0 -1
  218. package/plugin/node_modules/entities/lib/escape.d.ts +0 -43
  219. package/plugin/node_modules/entities/lib/escape.d.ts.map +0 -1
  220. package/plugin/node_modules/entities/lib/escape.js +0 -122
  221. package/plugin/node_modules/entities/lib/escape.js.map +0 -1
  222. package/plugin/node_modules/entities/lib/esm/decode.d.ts +0 -211
  223. package/plugin/node_modules/entities/lib/esm/decode.d.ts.map +0 -1
  224. package/plugin/node_modules/entities/lib/esm/decode.js +0 -496
  225. package/plugin/node_modules/entities/lib/esm/decode.js.map +0 -1
  226. package/plugin/node_modules/entities/lib/esm/decode_codepoint.d.ts +0 -19
  227. package/plugin/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +0 -1
  228. package/plugin/node_modules/entities/lib/esm/decode_codepoint.js +0 -71
  229. package/plugin/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
  230. package/plugin/node_modules/entities/lib/esm/encode.d.ts +0 -22
  231. package/plugin/node_modules/entities/lib/esm/encode.d.ts.map +0 -1
  232. package/plugin/node_modules/entities/lib/esm/encode.js +0 -69
  233. package/plugin/node_modules/entities/lib/esm/encode.js.map +0 -1
  234. package/plugin/node_modules/entities/lib/esm/escape.d.ts +0 -43
  235. package/plugin/node_modules/entities/lib/esm/escape.d.ts.map +0 -1
  236. package/plugin/node_modules/entities/lib/esm/escape.js +0 -116
  237. package/plugin/node_modules/entities/lib/esm/escape.js.map +0 -1
  238. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
  239. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +0 -1
  240. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  241. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
  242. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
  243. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
  244. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  245. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
  246. package/plugin/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
  247. package/plugin/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +0 -1
  248. package/plugin/node_modules/entities/lib/esm/generated/encode-html.js +0 -10
  249. package/plugin/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
  250. package/plugin/node_modules/entities/lib/esm/index.d.ts +0 -96
  251. package/plugin/node_modules/entities/lib/esm/index.d.ts.map +0 -1
  252. package/plugin/node_modules/entities/lib/esm/index.js +0 -99
  253. package/plugin/node_modules/entities/lib/esm/index.js.map +0 -1
  254. package/plugin/node_modules/entities/lib/esm/package.json +0 -1
  255. package/plugin/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
  256. package/plugin/node_modules/entities/lib/generated/decode-data-html.d.ts.map +0 -1
  257. package/plugin/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  258. package/plugin/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  259. package/plugin/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
  260. package/plugin/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +0 -1
  261. package/plugin/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  262. package/plugin/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  263. package/plugin/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
  264. package/plugin/node_modules/entities/lib/generated/encode-html.d.ts.map +0 -1
  265. package/plugin/node_modules/entities/lib/generated/encode-html.js +0 -12
  266. package/plugin/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  267. package/plugin/node_modules/entities/lib/index.d.ts +0 -96
  268. package/plugin/node_modules/entities/lib/index.d.ts.map +0 -1
  269. package/plugin/node_modules/entities/lib/index.js +0 -126
  270. package/plugin/node_modules/entities/lib/index.js.map +0 -1
  271. package/plugin/node_modules/entities/package.json +0 -90
  272. package/plugin/node_modules/entities/readme.md +0 -122
  273. package/plugin/node_modules/fast-glob/LICENSE +0 -21
  274. package/plugin/node_modules/fast-glob/README.md +0 -830
  275. package/plugin/node_modules/fast-glob/out/index.d.ts +0 -40
  276. package/plugin/node_modules/fast-glob/out/index.js +0 -102
  277. package/plugin/node_modules/fast-glob/out/managers/tasks.d.ts +0 -22
  278. package/plugin/node_modules/fast-glob/out/managers/tasks.js +0 -110
  279. package/plugin/node_modules/fast-glob/out/providers/async.d.ts +0 -9
  280. package/plugin/node_modules/fast-glob/out/providers/async.js +0 -23
  281. package/plugin/node_modules/fast-glob/out/providers/filters/deep.d.ts +0 -16
  282. package/plugin/node_modules/fast-glob/out/providers/filters/deep.js +0 -62
  283. package/plugin/node_modules/fast-glob/out/providers/filters/entry.d.ts +0 -17
  284. package/plugin/node_modules/fast-glob/out/providers/filters/entry.js +0 -85
  285. package/plugin/node_modules/fast-glob/out/providers/filters/error.d.ts +0 -8
  286. package/plugin/node_modules/fast-glob/out/providers/filters/error.js +0 -15
  287. package/plugin/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +0 -33
  288. package/plugin/node_modules/fast-glob/out/providers/matchers/matcher.js +0 -45
  289. package/plugin/node_modules/fast-glob/out/providers/matchers/partial.d.ts +0 -4
  290. package/plugin/node_modules/fast-glob/out/providers/matchers/partial.js +0 -38
  291. package/plugin/node_modules/fast-glob/out/providers/provider.d.ts +0 -19
  292. package/plugin/node_modules/fast-glob/out/providers/provider.js +0 -48
  293. package/plugin/node_modules/fast-glob/out/providers/stream.d.ts +0 -11
  294. package/plugin/node_modules/fast-glob/out/providers/stream.js +0 -31
  295. package/plugin/node_modules/fast-glob/out/providers/sync.d.ts +0 -9
  296. package/plugin/node_modules/fast-glob/out/providers/sync.js +0 -23
  297. package/plugin/node_modules/fast-glob/out/providers/transformers/entry.d.ts +0 -8
  298. package/plugin/node_modules/fast-glob/out/providers/transformers/entry.js +0 -26
  299. package/plugin/node_modules/fast-glob/out/readers/async.d.ts +0 -10
  300. package/plugin/node_modules/fast-glob/out/readers/async.js +0 -35
  301. package/plugin/node_modules/fast-glob/out/readers/reader.d.ts +0 -15
  302. package/plugin/node_modules/fast-glob/out/readers/reader.js +0 -33
  303. package/plugin/node_modules/fast-glob/out/readers/stream.d.ts +0 -14
  304. package/plugin/node_modules/fast-glob/out/readers/stream.js +0 -55
  305. package/plugin/node_modules/fast-glob/out/readers/sync.d.ts +0 -12
  306. package/plugin/node_modules/fast-glob/out/readers/sync.js +0 -43
  307. package/plugin/node_modules/fast-glob/out/settings.d.ts +0 -164
  308. package/plugin/node_modules/fast-glob/out/settings.js +0 -59
  309. package/plugin/node_modules/fast-glob/out/types/index.d.ts +0 -31
  310. package/plugin/node_modules/fast-glob/out/types/index.js +0 -2
  311. package/plugin/node_modules/fast-glob/out/utils/array.d.ts +0 -2
  312. package/plugin/node_modules/fast-glob/out/utils/array.js +0 -22
  313. package/plugin/node_modules/fast-glob/out/utils/errno.d.ts +0 -2
  314. package/plugin/node_modules/fast-glob/out/utils/errno.js +0 -7
  315. package/plugin/node_modules/fast-glob/out/utils/fs.d.ts +0 -4
  316. package/plugin/node_modules/fast-glob/out/utils/fs.js +0 -19
  317. package/plugin/node_modules/fast-glob/out/utils/index.d.ts +0 -8
  318. package/plugin/node_modules/fast-glob/out/utils/index.js +0 -17
  319. package/plugin/node_modules/fast-glob/out/utils/path.d.ts +0 -13
  320. package/plugin/node_modules/fast-glob/out/utils/path.js +0 -68
  321. package/plugin/node_modules/fast-glob/out/utils/pattern.d.ts +0 -49
  322. package/plugin/node_modules/fast-glob/out/utils/pattern.js +0 -206
  323. package/plugin/node_modules/fast-glob/out/utils/stream.d.ts +0 -4
  324. package/plugin/node_modules/fast-glob/out/utils/stream.js +0 -17
  325. package/plugin/node_modules/fast-glob/out/utils/string.d.ts +0 -2
  326. package/plugin/node_modules/fast-glob/out/utils/string.js +0 -11
  327. package/plugin/node_modules/fast-glob/package.json +0 -81
  328. package/plugin/node_modules/fastq/LICENSE +0 -13
  329. package/plugin/node_modules/fastq/README.md +0 -310
  330. package/plugin/node_modules/fastq/SECURITY.md +0 -15
  331. package/plugin/node_modules/fastq/bench.js +0 -66
  332. package/plugin/node_modules/fastq/eslint.config.js +0 -11
  333. package/plugin/node_modules/fastq/example.js +0 -14
  334. package/plugin/node_modules/fastq/example.mjs +0 -9
  335. package/plugin/node_modules/fastq/index.d.ts +0 -59
  336. package/plugin/node_modules/fastq/package.json +0 -49
  337. package/plugin/node_modules/fastq/queue.js +0 -346
  338. package/plugin/node_modules/fastq/test/example.ts +0 -83
  339. package/plugin/node_modules/fastq/test/promise.js +0 -325
  340. package/plugin/node_modules/fastq/test/test.js +0 -733
  341. package/plugin/node_modules/fastq/test/tsconfig.json +0 -11
  342. package/plugin/node_modules/fill-range/LICENSE +0 -21
  343. package/plugin/node_modules/fill-range/README.md +0 -237
  344. package/plugin/node_modules/fill-range/index.js +0 -248
  345. package/plugin/node_modules/fill-range/package.json +0 -74
  346. package/plugin/node_modules/get-east-asian-width/index.d.ts +0 -60
  347. package/plugin/node_modules/get-east-asian-width/index.js +0 -30
  348. package/plugin/node_modules/get-east-asian-width/license +0 -9
  349. package/plugin/node_modules/get-east-asian-width/lookup-data.js +0 -21
  350. package/plugin/node_modules/get-east-asian-width/lookup.js +0 -138
  351. package/plugin/node_modules/get-east-asian-width/package.json +0 -71
  352. package/plugin/node_modules/get-east-asian-width/readme.md +0 -65
  353. package/plugin/node_modules/get-east-asian-width/utilities.js +0 -24
  354. package/plugin/node_modules/glob-parent/CHANGELOG.md +0 -110
  355. package/plugin/node_modules/glob-parent/LICENSE +0 -15
  356. package/plugin/node_modules/glob-parent/README.md +0 -137
  357. package/plugin/node_modules/glob-parent/index.js +0 -42
  358. package/plugin/node_modules/glob-parent/package.json +0 -48
  359. package/plugin/node_modules/globby/ignore.js +0 -868
  360. package/plugin/node_modules/globby/index.d.ts +0 -413
  361. package/plugin/node_modules/globby/index.js +0 -680
  362. package/plugin/node_modules/globby/license +0 -9
  363. package/plugin/node_modules/globby/package.json +0 -94
  364. package/plugin/node_modules/globby/readme.md +0 -401
  365. package/plugin/node_modules/globby/utilities.js +0 -382
  366. package/plugin/node_modules/ignore/LICENSE-MIT +0 -21
  367. package/plugin/node_modules/ignore/README.md +0 -452
  368. package/plugin/node_modules/ignore/index.d.ts +0 -81
  369. package/plugin/node_modules/ignore/index.js +0 -784
  370. package/plugin/node_modules/ignore/legacy.js +0 -681
  371. package/plugin/node_modules/ignore/package.json +0 -87
  372. package/plugin/node_modules/is-alphabetical/index.d.ts +0 -8
  373. package/plugin/node_modules/is-alphabetical/index.js +0 -16
  374. package/plugin/node_modules/is-alphabetical/license +0 -22
  375. package/plugin/node_modules/is-alphabetical/package.json +0 -73
  376. package/plugin/node_modules/is-alphabetical/readme.md +0 -141
  377. package/plugin/node_modules/is-alphanumerical/index.d.ts +0 -8
  378. package/plugin/node_modules/is-alphanumerical/index.js +0 -13
  379. package/plugin/node_modules/is-alphanumerical/license +0 -22
  380. package/plugin/node_modules/is-alphanumerical/package.json +0 -79
  381. package/plugin/node_modules/is-alphanumerical/readme.md +0 -142
  382. package/plugin/node_modules/is-decimal/index.d.ts +0 -8
  383. package/plugin/node_modules/is-decimal/index.js +0 -13
  384. package/plugin/node_modules/is-decimal/license +0 -22
  385. package/plugin/node_modules/is-decimal/package.json +0 -73
  386. package/plugin/node_modules/is-decimal/readme.md +0 -139
  387. package/plugin/node_modules/is-extglob/LICENSE +0 -21
  388. package/plugin/node_modules/is-extglob/README.md +0 -107
  389. package/plugin/node_modules/is-extglob/index.js +0 -20
  390. package/plugin/node_modules/is-extglob/package.json +0 -69
  391. package/plugin/node_modules/is-glob/LICENSE +0 -21
  392. package/plugin/node_modules/is-glob/README.md +0 -206
  393. package/plugin/node_modules/is-glob/index.js +0 -150
  394. package/plugin/node_modules/is-glob/package.json +0 -81
  395. package/plugin/node_modules/is-hexadecimal/index.d.ts +0 -8
  396. package/plugin/node_modules/is-hexadecimal/index.js +0 -17
  397. package/plugin/node_modules/is-hexadecimal/license +0 -22
  398. package/plugin/node_modules/is-hexadecimal/package.json +0 -73
  399. package/plugin/node_modules/is-hexadecimal/readme.md +0 -141
  400. package/plugin/node_modules/is-number/LICENSE +0 -21
  401. package/plugin/node_modules/is-number/README.md +0 -187
  402. package/plugin/node_modules/is-number/index.js +0 -18
  403. package/plugin/node_modules/is-number/package.json +0 -82
  404. package/plugin/node_modules/is-path-inside/index.d.ts +0 -25
  405. package/plugin/node_modules/is-path-inside/index.js +0 -12
  406. package/plugin/node_modules/is-path-inside/license +0 -9
  407. package/plugin/node_modules/is-path-inside/package.json +0 -38
  408. package/plugin/node_modules/is-path-inside/readme.md +0 -59
  409. package/plugin/node_modules/js-yaml/LICENSE +0 -21
  410. package/plugin/node_modules/js-yaml/README.md +0 -247
  411. package/plugin/node_modules/js-yaml/bin/js-yaml.js +0 -126
  412. package/plugin/node_modules/js-yaml/dist/js-yaml.js +0 -3880
  413. package/plugin/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
  414. package/plugin/node_modules/js-yaml/dist/js-yaml.mjs +0 -3856
  415. package/plugin/node_modules/js-yaml/index.js +0 -47
  416. package/plugin/node_modules/js-yaml/lib/common.js +0 -59
  417. package/plugin/node_modules/js-yaml/lib/dumper.js +0 -965
  418. package/plugin/node_modules/js-yaml/lib/exception.js +0 -55
  419. package/plugin/node_modules/js-yaml/lib/loader.js +0 -1733
  420. package/plugin/node_modules/js-yaml/lib/schema/core.js +0 -11
  421. package/plugin/node_modules/js-yaml/lib/schema/default.js +0 -22
  422. package/plugin/node_modules/js-yaml/lib/schema/failsafe.js +0 -17
  423. package/plugin/node_modules/js-yaml/lib/schema/json.js +0 -19
  424. package/plugin/node_modules/js-yaml/lib/schema.js +0 -121
  425. package/plugin/node_modules/js-yaml/lib/snippet.js +0 -101
  426. package/plugin/node_modules/js-yaml/lib/type/binary.js +0 -125
  427. package/plugin/node_modules/js-yaml/lib/type/bool.js +0 -35
  428. package/plugin/node_modules/js-yaml/lib/type/float.js +0 -97
  429. package/plugin/node_modules/js-yaml/lib/type/int.js +0 -156
  430. package/plugin/node_modules/js-yaml/lib/type/map.js +0 -8
  431. package/plugin/node_modules/js-yaml/lib/type/merge.js +0 -12
  432. package/plugin/node_modules/js-yaml/lib/type/null.js +0 -35
  433. package/plugin/node_modules/js-yaml/lib/type/omap.js +0 -44
  434. package/plugin/node_modules/js-yaml/lib/type/pairs.js +0 -53
  435. package/plugin/node_modules/js-yaml/lib/type/seq.js +0 -8
  436. package/plugin/node_modules/js-yaml/lib/type/set.js +0 -29
  437. package/plugin/node_modules/js-yaml/lib/type/str.js +0 -8
  438. package/plugin/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  439. package/plugin/node_modules/js-yaml/lib/type.js +0 -66
  440. package/plugin/node_modules/js-yaml/package.json +0 -66
  441. package/plugin/node_modules/jsonc-parser/CHANGELOG.md +0 -76
  442. package/plugin/node_modules/jsonc-parser/LICENSE.md +0 -21
  443. package/plugin/node_modules/jsonc-parser/README.md +0 -364
  444. package/plugin/node_modules/jsonc-parser/SECURITY.md +0 -41
  445. package/plugin/node_modules/jsonc-parser/lib/esm/impl/edit.js +0 -185
  446. package/plugin/node_modules/jsonc-parser/lib/esm/impl/format.js +0 -261
  447. package/plugin/node_modules/jsonc-parser/lib/esm/impl/parser.js +0 -659
  448. package/plugin/node_modules/jsonc-parser/lib/esm/impl/scanner.js +0 -443
  449. package/plugin/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +0 -29
  450. package/plugin/node_modules/jsonc-parser/lib/esm/main.d.ts +0 -351
  451. package/plugin/node_modules/jsonc-parser/lib/esm/main.js +0 -178
  452. package/plugin/node_modules/jsonc-parser/lib/umd/impl/edit.js +0 -201
  453. package/plugin/node_modules/jsonc-parser/lib/umd/impl/format.js +0 -275
  454. package/plugin/node_modules/jsonc-parser/lib/umd/impl/parser.js +0 -682
  455. package/plugin/node_modules/jsonc-parser/lib/umd/impl/scanner.js +0 -456
  456. package/plugin/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +0 -42
  457. package/plugin/node_modules/jsonc-parser/lib/umd/main.d.ts +0 -351
  458. package/plugin/node_modules/jsonc-parser/lib/umd/main.js +0 -194
  459. package/plugin/node_modules/jsonc-parser/package.json +0 -37
  460. package/plugin/node_modules/jsonpointer/LICENSE.md +0 -21
  461. package/plugin/node_modules/jsonpointer/README.md +0 -45
  462. package/plugin/node_modules/jsonpointer/jsonpointer.d.ts +0 -35
  463. package/plugin/node_modules/jsonpointer/jsonpointer.js +0 -100
  464. package/plugin/node_modules/jsonpointer/package.json +0 -48
  465. package/plugin/node_modules/katex/LICENSE +0 -21
  466. package/plugin/node_modules/katex/README.md +0 -125
  467. package/plugin/node_modules/katex/cli.js +0 -114
  468. package/plugin/node_modules/katex/contrib/auto-render/README.md +0 -8
  469. package/plugin/node_modules/katex/contrib/auto-render/auto-render.ts +0 -164
  470. package/plugin/node_modules/katex/contrib/auto-render/index.html +0 -57
  471. package/plugin/node_modules/katex/contrib/auto-render/splitAtDelimiters.ts +0 -99
  472. package/plugin/node_modules/katex/contrib/auto-render/test/auto-render-spec.ts +0 -371
  473. package/plugin/node_modules/katex/contrib/copy-tex/README.md +0 -39
  474. package/plugin/node_modules/katex/contrib/copy-tex/copy-tex.ts +0 -49
  475. package/plugin/node_modules/katex/contrib/copy-tex/index.html +0 -38
  476. package/plugin/node_modules/katex/contrib/copy-tex/katex2tex.ts +0 -60
  477. package/plugin/node_modules/katex/contrib/mathtex-script-type/README.md +0 -38
  478. package/plugin/node_modules/katex/contrib/mathtex-script-type/mathtex-script-type.js +0 -23
  479. package/plugin/node_modules/katex/contrib/mhchem/README.md +0 -23
  480. package/plugin/node_modules/katex/contrib/mhchem/mhchem.js +0 -1695
  481. package/plugin/node_modules/katex/contrib/render-a11y-string/render-a11y-string.ts +0 -729
  482. package/plugin/node_modules/katex/contrib/render-a11y-string/test/render-a11y-string-spec.ts +0 -561
  483. package/plugin/node_modules/katex/dist/README.md +0 -125
  484. package/plugin/node_modules/katex/dist/contrib/auto-render.js +0 -305
  485. package/plugin/node_modules/katex/dist/contrib/auto-render.min.js +0 -1
  486. package/plugin/node_modules/katex/dist/contrib/auto-render.mjs +0 -210
  487. package/plugin/node_modules/katex/dist/contrib/copy-tex.js +0 -113
  488. package/plugin/node_modules/katex/dist/contrib/copy-tex.min.js +0 -1
  489. package/plugin/node_modules/katex/dist/contrib/copy-tex.mjs +0 -85
  490. package/plugin/node_modules/katex/dist/contrib/mathtex-script-type.js +0 -107
  491. package/plugin/node_modules/katex/dist/contrib/mathtex-script-type.min.js +0 -1
  492. package/plugin/node_modules/katex/dist/contrib/mathtex-script-type.mjs +0 -22
  493. package/plugin/node_modules/katex/dist/contrib/mhchem.js +0 -2965
  494. package/plugin/node_modules/katex/dist/contrib/mhchem.min.js +0 -1
  495. package/plugin/node_modules/katex/dist/contrib/mhchem.mjs +0 -2864
  496. package/plugin/node_modules/katex/dist/contrib/render-a11y-string.js +0 -827
  497. package/plugin/node_modules/katex/dist/contrib/render-a11y-string.min.js +0 -1
  498. package/plugin/node_modules/katex/dist/contrib/render-a11y-string.mjs +0 -723
  499. package/plugin/node_modules/katex/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  500. package/plugin/node_modules/katex/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  501. package/plugin/node_modules/katex/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  502. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  503. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  504. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  505. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  506. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  507. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  508. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  509. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  510. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  511. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  512. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  513. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  514. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  515. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  516. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  517. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  518. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  519. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  520. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  521. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  522. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  523. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  524. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  525. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  526. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  527. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  528. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  529. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  530. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  531. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  532. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  533. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  534. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  535. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  536. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  537. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  538. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  539. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  540. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  541. package/plugin/node_modules/katex/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  542. package/plugin/node_modules/katex/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  543. package/plugin/node_modules/katex/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  544. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  545. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  546. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  547. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  548. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  549. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  550. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  551. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  552. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  553. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  554. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  555. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  556. package/plugin/node_modules/katex/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  557. package/plugin/node_modules/katex/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  558. package/plugin/node_modules/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  559. package/plugin/node_modules/katex/dist/katex-swap.css +0 -1241
  560. package/plugin/node_modules/katex/dist/katex-swap.min.css +0 -1
  561. package/plugin/node_modules/katex/dist/katex.css +0 -1241
  562. package/plugin/node_modules/katex/dist/katex.js +0 -18010
  563. package/plugin/node_modules/katex/dist/katex.min.css +0 -1
  564. package/plugin/node_modules/katex/dist/katex.min.js +0 -1
  565. package/plugin/node_modules/katex/dist/katex.mjs +0 -16670
  566. package/plugin/node_modules/katex/katex.ts +0 -250
  567. package/plugin/node_modules/katex/package.json +0 -198
  568. package/plugin/node_modules/katex/src/Lexer.ts +0 -121
  569. package/plugin/node_modules/katex/src/MacroExpander.ts +0 -467
  570. package/plugin/node_modules/katex/src/Namespace.ts +0 -127
  571. package/plugin/node_modules/katex/src/Options.ts +0 -315
  572. package/plugin/node_modules/katex/src/ParseError.ts +0 -76
  573. package/plugin/node_modules/katex/src/Parser.ts +0 -1053
  574. package/plugin/node_modules/katex/src/Settings.ts +0 -477
  575. package/plugin/node_modules/katex/src/SourceLocation.ts +0 -41
  576. package/plugin/node_modules/katex/src/Style.ts +0 -129
  577. package/plugin/node_modules/katex/src/Token.ts +0 -49
  578. package/plugin/node_modules/katex/src/atoms.ts +0 -33
  579. package/plugin/node_modules/katex/src/buildCommon.ts +0 -783
  580. package/plugin/node_modules/katex/src/buildHTML.ts +0 -412
  581. package/plugin/node_modules/katex/src/buildMathML.ts +0 -332
  582. package/plugin/node_modules/katex/src/buildTree.ts +0 -66
  583. package/plugin/node_modules/katex/src/defineEnvironment.ts +0 -116
  584. package/plugin/node_modules/katex/src/defineFunction.ts +0 -228
  585. package/plugin/node_modules/katex/src/defineMacro.ts +0 -124
  586. package/plugin/node_modules/katex/src/delimiter.ts +0 -832
  587. package/plugin/node_modules/katex/src/domTree.ts +0 -641
  588. package/plugin/node_modules/katex/src/environments/array.ts +0 -1136
  589. package/plugin/node_modules/katex/src/environments/cd.ts +0 -318
  590. package/plugin/node_modules/katex/src/environments.ts +0 -8
  591. package/plugin/node_modules/katex/src/fontMetrics.ts +0 -267
  592. package/plugin/node_modules/katex/src/fontMetricsData.d.ts +0 -8
  593. package/plugin/node_modules/katex/src/fontMetricsData.js +0 -2077
  594. package/plugin/node_modules/katex/src/fonts/Makefile +0 -139
  595. package/plugin/node_modules/katex/src/fonts/default.cfg +0 -20
  596. package/plugin/node_modules/katex/src/fonts/generate_fonts.py +0 -58
  597. package/plugin/node_modules/katex/src/fonts/lib/Extra.otf +0 -0
  598. package/plugin/node_modules/katex/src/fonts/lib/Space.ttx +0 -234
  599. package/plugin/node_modules/katex/src/fonts/makeBlacker +0 -49
  600. package/plugin/node_modules/katex/src/fonts/makeFF +0 -2005
  601. package/plugin/node_modules/katex/src/fonts/xbbold.mf +0 -182
  602. package/plugin/node_modules/katex/src/functions/accent.ts +0 -285
  603. package/plugin/node_modules/katex/src/functions/accentunder.ts +0 -59
  604. package/plugin/node_modules/katex/src/functions/arrow.ts +0 -141
  605. package/plugin/node_modules/katex/src/functions/char.ts +0 -44
  606. package/plugin/node_modules/katex/src/functions/color.ts +0 -87
  607. package/plugin/node_modules/katex/src/functions/cr.ts +0 -60
  608. package/plugin/node_modules/katex/src/functions/def.ts +0 -212
  609. package/plugin/node_modules/katex/src/functions/delimsizing.ts +0 -366
  610. package/plugin/node_modules/katex/src/functions/enclose.ts +0 -345
  611. package/plugin/node_modules/katex/src/functions/environment.ts +0 -66
  612. package/plugin/node_modules/katex/src/functions/font.ts +0 -124
  613. package/plugin/node_modules/katex/src/functions/genfrac.ts +0 -470
  614. package/plugin/node_modules/katex/src/functions/hbox.ts +0 -38
  615. package/plugin/node_modules/katex/src/functions/horizBrace.ts +0 -134
  616. package/plugin/node_modules/katex/src/functions/href.ts +0 -93
  617. package/plugin/node_modules/katex/src/functions/html.ts +0 -105
  618. package/plugin/node_modules/katex/src/functions/htmlmathml.ts +0 -34
  619. package/plugin/node_modules/katex/src/functions/includegraphics.ts +0 -150
  620. package/plugin/node_modules/katex/src/functions/kern.ts +0 -55
  621. package/plugin/node_modules/katex/src/functions/lap.ts +0 -73
  622. package/plugin/node_modules/katex/src/functions/math.ts +0 -42
  623. package/plugin/node_modules/katex/src/functions/mathchoice.ts +0 -51
  624. package/plugin/node_modules/katex/src/functions/mclass.ts +0 -165
  625. package/plugin/node_modules/katex/src/functions/op.ts +0 -337
  626. package/plugin/node_modules/katex/src/functions/operatorname.ts +0 -161
  627. package/plugin/node_modules/katex/src/functions/ordgroup.ts +0 -20
  628. package/plugin/node_modules/katex/src/functions/overline.ts +0 -58
  629. package/plugin/node_modules/katex/src/functions/phantom.ts +0 -73
  630. package/plugin/node_modules/katex/src/functions/pmb.ts +0 -43
  631. package/plugin/node_modules/katex/src/functions/raisebox.ts +0 -45
  632. package/plugin/node_modules/katex/src/functions/relax.ts +0 -17
  633. package/plugin/node_modules/katex/src/functions/rule.ts +0 -76
  634. package/plugin/node_modules/katex/src/functions/sizing.ts +0 -90
  635. package/plugin/node_modules/katex/src/functions/smash.ts +0 -115
  636. package/plugin/node_modules/katex/src/functions/sqrt.ts +0 -124
  637. package/plugin/node_modules/katex/src/functions/styling.ts +0 -85
  638. package/plugin/node_modules/katex/src/functions/supsub.ts +0 -268
  639. package/plugin/node_modules/katex/src/functions/symbolsOp.ts +0 -32
  640. package/plugin/node_modules/katex/src/functions/symbolsOrd.ts +0 -61
  641. package/plugin/node_modules/katex/src/functions/symbolsSpacing.ts +0 -72
  642. package/plugin/node_modules/katex/src/functions/tag.ts +0 -38
  643. package/plugin/node_modules/katex/src/functions/text.ts +0 -81
  644. package/plugin/node_modules/katex/src/functions/underline.ts +0 -57
  645. package/plugin/node_modules/katex/src/functions/utils/assembleSupSub.ts +0 -119
  646. package/plugin/node_modules/katex/src/functions/vcenter.ts +0 -44
  647. package/plugin/node_modules/katex/src/functions/verb.ts +0 -57
  648. package/plugin/node_modules/katex/src/functions.ts +0 -54
  649. package/plugin/node_modules/katex/src/macros.ts +0 -1032
  650. package/plugin/node_modules/katex/src/mathMLTree.ts +0 -259
  651. package/plugin/node_modules/katex/src/metrics/README.md +0 -23
  652. package/plugin/node_modules/katex/src/metrics/extract_tfms.py +0 -114
  653. package/plugin/node_modules/katex/src/metrics/extract_ttfs.py +0 -122
  654. package/plugin/node_modules/katex/src/metrics/format_json.py +0 -28
  655. package/plugin/node_modules/katex/src/metrics/mapping.pl +0 -1224
  656. package/plugin/node_modules/katex/src/metrics/parse_tfm.py +0 -211
  657. package/plugin/node_modules/katex/src/parseNode.ts +0 -518
  658. package/plugin/node_modules/katex/src/parseTree.ts +0 -51
  659. package/plugin/node_modules/katex/src/spacingData.ts +0 -107
  660. package/plugin/node_modules/katex/src/stretchy.ts +0 -358
  661. package/plugin/node_modules/katex/src/styles/fonts.scss +0 -75
  662. package/plugin/node_modules/katex/src/styles/katex-swap.scss +0 -4
  663. package/plugin/node_modules/katex/src/styles/katex.scss +0 -683
  664. package/plugin/node_modules/katex/src/svgGeometry.ts +0 -561
  665. package/plugin/node_modules/katex/src/symbols.ts +0 -879
  666. package/plugin/node_modules/katex/src/tree.ts +0 -79
  667. package/plugin/node_modules/katex/src/types/fonts.ts +0 -73
  668. package/plugin/node_modules/katex/src/types/index.ts +0 -29
  669. package/plugin/node_modules/katex/src/unicodeAccents.js +0 -21
  670. package/plugin/node_modules/katex/src/unicodeScripts.ts +0 -124
  671. package/plugin/node_modules/katex/src/unicodeSupOrSub.ts +0 -108
  672. package/plugin/node_modules/katex/src/unicodeSymbols.js +0 -33
  673. package/plugin/node_modules/katex/src/units.ts +0 -104
  674. package/plugin/node_modules/katex/src/utils.ts +0 -89
  675. package/plugin/node_modules/katex/src/wide-character.ts +0 -155
  676. package/plugin/node_modules/katex/types/katex.d.ts +0 -259
  677. package/plugin/node_modules/linkify-it/LICENSE +0 -22
  678. package/plugin/node_modules/linkify-it/README.md +0 -196
  679. package/plugin/node_modules/linkify-it/build/index.cjs.js +0 -832
  680. package/plugin/node_modules/linkify-it/index.mjs +0 -642
  681. package/plugin/node_modules/linkify-it/lib/re.mjs +0 -189
  682. package/plugin/node_modules/linkify-it/package.json +0 -58
  683. package/plugin/node_modules/markdown-it/LICENSE +0 -22
  684. package/plugin/node_modules/markdown-it/README.md +0 -324
  685. package/plugin/node_modules/markdown-it/bin/markdown-it.mjs +0 -107
  686. package/plugin/node_modules/markdown-it/dist/index.cjs.js +0 -5547
  687. package/plugin/node_modules/markdown-it/dist/markdown-it.js +0 -6969
  688. package/plugin/node_modules/markdown-it/dist/markdown-it.min.js +0 -2
  689. package/plugin/node_modules/markdown-it/index.mjs +0 -1
  690. package/plugin/node_modules/markdown-it/lib/common/html_blocks.mjs +0 -67
  691. package/plugin/node_modules/markdown-it/lib/common/html_re.mjs +0 -25
  692. package/plugin/node_modules/markdown-it/lib/common/utils.mjs +0 -304
  693. package/plugin/node_modules/markdown-it/lib/helpers/index.mjs +0 -11
  694. package/plugin/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -77
  695. package/plugin/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +0 -49
  696. package/plugin/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -66
  697. package/plugin/node_modules/markdown-it/lib/index.mjs +0 -565
  698. package/plugin/node_modules/markdown-it/lib/parser_block.mjs +0 -134
  699. package/plugin/node_modules/markdown-it/lib/parser_core.mjs +0 -62
  700. package/plugin/node_modules/markdown-it/lib/parser_inline.mjs +0 -197
  701. package/plugin/node_modules/markdown-it/lib/presets/commonmark.mjs +0 -88
  702. package/plugin/node_modules/markdown-it/lib/presets/default.mjs +0 -47
  703. package/plugin/node_modules/markdown-it/lib/presets/zero.mjs +0 -70
  704. package/plugin/node_modules/markdown-it/lib/renderer.mjs +0 -322
  705. package/plugin/node_modules/markdown-it/lib/ruler.mjs +0 -340
  706. package/plugin/node_modules/markdown-it/lib/rules_block/blockquote.mjs +0 -209
  707. package/plugin/node_modules/markdown-it/lib/rules_block/code.mjs +0 -30
  708. package/plugin/node_modules/markdown-it/lib/rules_block/fence.mjs +0 -94
  709. package/plugin/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -51
  710. package/plugin/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -40
  711. package/plugin/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -69
  712. package/plugin/node_modules/markdown-it/lib/rules_block/lheading.mjs +0 -82
  713. package/plugin/node_modules/markdown-it/lib/rules_block/list.mjs +0 -331
  714. package/plugin/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -46
  715. package/plugin/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -212
  716. package/plugin/node_modules/markdown-it/lib/rules_block/state_block.mjs +0 -220
  717. package/plugin/node_modules/markdown-it/lib/rules_block/table.mjs +0 -228
  718. package/plugin/node_modules/markdown-it/lib/rules_core/block.mjs +0 -13
  719. package/plugin/node_modules/markdown-it/lib/rules_core/inline.mjs +0 -11
  720. package/plugin/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -134
  721. package/plugin/node_modules/markdown-it/lib/rules_core/normalize.mjs +0 -17
  722. package/plugin/node_modules/markdown-it/lib/rules_core/replacements.mjs +0 -101
  723. package/plugin/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +0 -193
  724. package/plugin/node_modules/markdown-it/lib/rules_core/state_core.mjs +0 -17
  725. package/plugin/node_modules/markdown-it/lib/rules_core/text_join.mjs +0 -43
  726. package/plugin/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -72
  727. package/plugin/node_modules/markdown-it/lib/rules_inline/backticks.mjs +0 -60
  728. package/plugin/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +0 -124
  729. package/plugin/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +0 -123
  730. package/plugin/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -51
  731. package/plugin/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -69
  732. package/plugin/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +0 -38
  733. package/plugin/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -50
  734. package/plugin/node_modules/markdown-it/lib/rules_inline/image.mjs +0 -138
  735. package/plugin/node_modules/markdown-it/lib/rules_inline/link.mjs +0 -139
  736. package/plugin/node_modules/markdown-it/lib/rules_inline/linkify.mjs +0 -63
  737. package/plugin/node_modules/markdown-it/lib/rules_inline/newline.mjs +0 -42
  738. package/plugin/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +0 -123
  739. package/plugin/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +0 -127
  740. package/plugin/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -86
  741. package/plugin/node_modules/markdown-it/lib/token.mjs +0 -191
  742. package/plugin/node_modules/markdown-it/package.json +0 -92
  743. package/plugin/node_modules/markdownlint/CHANGELOG.md +0 -520
  744. package/plugin/node_modules/markdownlint/CONTRIBUTING.md +0 -92
  745. package/plugin/node_modules/markdownlint/LICENSE +0 -21
  746. package/plugin/node_modules/markdownlint/README.md +0 -1124
  747. package/plugin/node_modules/markdownlint/doc/CustomRules.md +0 -194
  748. package/plugin/node_modules/markdownlint/doc/Prettier.md +0 -27
  749. package/plugin/node_modules/markdownlint/doc/ReleaseProcess.md +0 -20
  750. package/plugin/node_modules/markdownlint/doc/Rules.md +0 -2814
  751. package/plugin/node_modules/markdownlint/doc/md001.md +0 -51
  752. package/plugin/node_modules/markdownlint/doc/md003.md +0 -59
  753. package/plugin/node_modules/markdownlint/doc/md004.md +0 -50
  754. package/plugin/node_modules/markdownlint/doc/md005.md +0 -53
  755. package/plugin/node_modules/markdownlint/doc/md007.md +0 -52
  756. package/plugin/node_modules/markdownlint/doc/md009.md +0 -50
  757. package/plugin/node_modules/markdownlint/doc/md010.md +0 -62
  758. package/plugin/node_modules/markdownlint/doc/md011.md +0 -30
  759. package/plugin/node_modules/markdownlint/doc/md012.md +0 -38
  760. package/plugin/node_modules/markdownlint/doc/md013.md +0 -58
  761. package/plugin/node_modules/markdownlint/doc/md014.md +0 -54
  762. package/plugin/node_modules/markdownlint/doc/md018.md +0 -27
  763. package/plugin/node_modules/markdownlint/doc/md019.md +0 -28
  764. package/plugin/node_modules/markdownlint/doc/md020.md +0 -29
  765. package/plugin/node_modules/markdownlint/doc/md021.md +0 -31
  766. package/plugin/node_modules/markdownlint/doc/md022.md +0 -52
  767. package/plugin/node_modules/markdownlint/doc/md023.md +0 -33
  768. package/plugin/node_modules/markdownlint/doc/md024.md +0 -44
  769. package/plugin/node_modules/markdownlint/doc/md025.md +0 -49
  770. package/plugin/node_modules/markdownlint/doc/md026.md +0 -40
  771. package/plugin/node_modules/markdownlint/doc/md027.md +0 -32
  772. package/plugin/node_modules/markdownlint/doc/md028.md +0 -40
  773. package/plugin/node_modules/markdownlint/doc/md029.md +0 -100
  774. package/plugin/node_modules/markdownlint/doc/md030.md +0 -82
  775. package/plugin/node_modules/markdownlint/doc/md031.md +0 -50
  776. package/plugin/node_modules/markdownlint/doc/md032.md +0 -55
  777. package/plugin/node_modules/markdownlint/doc/md033.md +0 -33
  778. package/plugin/node_modules/markdownlint/doc/md034.md +0 -55
  779. package/plugin/node_modules/markdownlint/doc/md035.md +0 -37
  780. package/plugin/node_modules/markdownlint/doc/md036.md +0 -45
  781. package/plugin/node_modules/markdownlint/doc/md037.md +0 -37
  782. package/plugin/node_modules/markdownlint/doc/md038.md +0 -52
  783. package/plugin/node_modules/markdownlint/doc/md039.md +0 -21
  784. package/plugin/node_modules/markdownlint/doc/md040.md +0 -52
  785. package/plugin/node_modules/markdownlint/doc/md041.md +0 -64
  786. package/plugin/node_modules/markdownlint/doc/md042.md +0 -32
  787. package/plugin/node_modules/markdownlint/doc/md043.md +0 -87
  788. package/plugin/node_modules/markdownlint/doc/md044.md +0 -45
  789. package/plugin/node_modules/markdownlint/doc/md045.md +0 -48
  790. package/plugin/node_modules/markdownlint/doc/md046.md +0 -40
  791. package/plugin/node_modules/markdownlint/doc/md047.md +0 -34
  792. package/plugin/node_modules/markdownlint/doc/md048.md +0 -42
  793. package/plugin/node_modules/markdownlint/doc/md049.md +0 -36
  794. package/plugin/node_modules/markdownlint/doc/md050.md +0 -35
  795. package/plugin/node_modules/markdownlint/doc/md051.md +0 -117
  796. package/plugin/node_modules/markdownlint/doc/md052.md +0 -52
  797. package/plugin/node_modules/markdownlint/doc/md053.md +0 -38
  798. package/plugin/node_modules/markdownlint/doc/md054.md +0 -100
  799. package/plugin/node_modules/markdownlint/doc/md055.md +0 -55
  800. package/plugin/node_modules/markdownlint/doc/md056.md +0 -37
  801. package/plugin/node_modules/markdownlint/doc/md058.md +0 -48
  802. package/plugin/node_modules/markdownlint/doc/md059.md +0 -33
  803. package/plugin/node_modules/markdownlint/doc/md060.md +0 -118
  804. package/plugin/node_modules/markdownlint/helpers/LICENSE +0 -21
  805. package/plugin/node_modules/markdownlint/helpers/README.md +0 -29
  806. package/plugin/node_modules/markdownlint/helpers/helpers.cjs +0 -696
  807. package/plugin/node_modules/markdownlint/helpers/micromark-helpers.cjs +0 -331
  808. package/plugin/node_modules/markdownlint/helpers/package.json +0 -26
  809. package/plugin/node_modules/markdownlint/helpers/shared.cjs +0 -16
  810. package/plugin/node_modules/markdownlint/lib/cache.mjs +0 -80
  811. package/plugin/node_modules/markdownlint/lib/configuration-strict.d.ts +0 -2409
  812. package/plugin/node_modules/markdownlint/lib/configuration.d.ts +0 -8
  813. package/plugin/node_modules/markdownlint/lib/constants.mjs +0 -14
  814. package/plugin/node_modules/markdownlint/lib/defer-require.cjs +0 -18
  815. package/plugin/node_modules/markdownlint/lib/exports-async.d.mts +0 -1
  816. package/plugin/node_modules/markdownlint/lib/exports-async.mjs +0 -3
  817. package/plugin/node_modules/markdownlint/lib/exports-promise.d.mts +0 -1
  818. package/plugin/node_modules/markdownlint/lib/exports-promise.mjs +0 -3
  819. package/plugin/node_modules/markdownlint/lib/exports-sync.d.mts +0 -1
  820. package/plugin/node_modules/markdownlint/lib/exports-sync.mjs +0 -3
  821. package/plugin/node_modules/markdownlint/lib/exports.d.mts +0 -29
  822. package/plugin/node_modules/markdownlint/lib/exports.mjs +0 -32
  823. package/plugin/node_modules/markdownlint/lib/markdownit.cjs +0 -170
  824. package/plugin/node_modules/markdownlint/lib/markdownlint.d.mts +0 -600
  825. package/plugin/node_modules/markdownlint/lib/markdownlint.mjs +0 -1660
  826. package/plugin/node_modules/markdownlint/lib/md001.mjs +0 -32
  827. package/plugin/node_modules/markdownlint/lib/md003.mjs +0 -47
  828. package/plugin/node_modules/markdownlint/lib/md004.mjs +0 -72
  829. package/plugin/node_modules/markdownlint/lib/md005.mjs +0 -69
  830. package/plugin/node_modules/markdownlint/lib/md007.mjs +0 -84
  831. package/plugin/node_modules/markdownlint/lib/md009.mjs +0 -96
  832. package/plugin/node_modules/markdownlint/lib/md010.mjs +0 -78
  833. package/plugin/node_modules/markdownlint/lib/md011.mjs +0 -56
  834. package/plugin/node_modules/markdownlint/lib/md012.mjs +0 -40
  835. package/plugin/node_modules/markdownlint/lib/md013.mjs +0 -91
  836. package/plugin/node_modules/markdownlint/lib/md014.mjs +0 -47
  837. package/plugin/node_modules/markdownlint/lib/md018.mjs +0 -43
  838. package/plugin/node_modules/markdownlint/lib/md019-md021.mjs +0 -77
  839. package/plugin/node_modules/markdownlint/lib/md020.mjs +0 -68
  840. package/plugin/node_modules/markdownlint/lib/md022.mjs +0 -100
  841. package/plugin/node_modules/markdownlint/lib/md023.mjs +0 -37
  842. package/plugin/node_modules/markdownlint/lib/md024.mjs +0 -45
  843. package/plugin/node_modules/markdownlint/lib/md025.mjs +0 -45
  844. package/plugin/node_modules/markdownlint/lib/md026.mjs +0 -46
  845. package/plugin/node_modules/markdownlint/lib/md027.mjs +0 -50
  846. package/plugin/node_modules/markdownlint/lib/md028.mjs +0 -39
  847. package/plugin/node_modules/markdownlint/lib/md029.mjs +0 -84
  848. package/plugin/node_modules/markdownlint/lib/md030.mjs +0 -57
  849. package/plugin/node_modules/markdownlint/lib/md031.mjs +0 -61
  850. package/plugin/node_modules/markdownlint/lib/md032.mjs +0 -78
  851. package/plugin/node_modules/markdownlint/lib/md033.mjs +0 -46
  852. package/plugin/node_modules/markdownlint/lib/md034.mjs +0 -92
  853. package/plugin/node_modules/markdownlint/lib/md035.mjs +0 -23
  854. package/plugin/node_modules/markdownlint/lib/md036.mjs +0 -54
  855. package/plugin/node_modules/markdownlint/lib/md037.mjs +0 -94
  856. package/plugin/node_modules/markdownlint/lib/md038.mjs +0 -73
  857. package/plugin/node_modules/markdownlint/lib/md039.mjs +0 -59
  858. package/plugin/node_modules/markdownlint/lib/md040.mjs +0 -32
  859. package/plugin/node_modules/markdownlint/lib/md041.mjs +0 -71
  860. package/plugin/node_modules/markdownlint/lib/md042.mjs +0 -58
  861. package/plugin/node_modules/markdownlint/lib/md043.mjs +0 -72
  862. package/plugin/node_modules/markdownlint/lib/md044.mjs +0 -110
  863. package/plugin/node_modules/markdownlint/lib/md045.mjs +0 -61
  864. package/plugin/node_modules/markdownlint/lib/md046.mjs +0 -31
  865. package/plugin/node_modules/markdownlint/lib/md047.mjs +0 -28
  866. package/plugin/node_modules/markdownlint/lib/md048.mjs +0 -47
  867. package/plugin/node_modules/markdownlint/lib/md049-md050.mjs +0 -115
  868. package/plugin/node_modules/markdownlint/lib/md051.mjs +0 -172
  869. package/plugin/node_modules/markdownlint/lib/md052.mjs +0 -40
  870. package/plugin/node_modules/markdownlint/lib/md053.mjs +0 -60
  871. package/plugin/node_modules/markdownlint/lib/md054.mjs +0 -122
  872. package/plugin/node_modules/markdownlint/lib/md055.mjs +0 -72
  873. package/plugin/node_modules/markdownlint/lib/md056.mjs +0 -50
  874. package/plugin/node_modules/markdownlint/lib/md058.mjs +0 -57
  875. package/plugin/node_modules/markdownlint/lib/md059.mjs +0 -71
  876. package/plugin/node_modules/markdownlint/lib/md060.mjs +0 -170
  877. package/plugin/node_modules/markdownlint/lib/micromark-parse.mjs +0 -322
  878. package/plugin/node_modules/markdownlint/lib/micromark-types.d.mts +0 -11
  879. package/plugin/node_modules/markdownlint/lib/node-imports-browser.mjs +0 -22
  880. package/plugin/node_modules/markdownlint/lib/node-imports-node.mjs +0 -11
  881. package/plugin/node_modules/markdownlint/lib/parse-configuration.mjs +0 -47
  882. package/plugin/node_modules/markdownlint/lib/resolve-module.cjs +0 -52
  883. package/plugin/node_modules/markdownlint/lib/resolve-module.d.cts +0 -34
  884. package/plugin/node_modules/markdownlint/lib/rules.mjs +0 -122
  885. package/plugin/node_modules/markdownlint/lib/types.d.mts +0 -13
  886. package/plugin/node_modules/markdownlint/package.json +0 -123
  887. package/plugin/node_modules/markdownlint/schema/.markdownlint.jsonc +0 -347
  888. package/plugin/node_modules/markdownlint/schema/.markdownlint.yaml +0 -308
  889. package/plugin/node_modules/markdownlint/schema/ValidatingConfiguration.md +0 -26
  890. package/plugin/node_modules/markdownlint/schema/markdownlint-config-schema-strict.json +0 -5128
  891. package/plugin/node_modules/markdownlint/schema/markdownlint-config-schema.json +0 -5133
  892. package/plugin/node_modules/markdownlint/style/all.json +0 -5
  893. package/plugin/node_modules/markdownlint/style/cirosantilli.json +0 -22
  894. package/plugin/node_modules/markdownlint/style/prettier.json +0 -27
  895. package/plugin/node_modules/markdownlint/style/relaxed.json +0 -12
  896. package/plugin/node_modules/markdownlint-cli2/CHANGELOG.md +0 -258
  897. package/plugin/node_modules/markdownlint-cli2/LICENSE +0 -21
  898. package/plugin/node_modules/markdownlint-cli2/README.md +0 -578
  899. package/plugin/node_modules/markdownlint-cli2/append-to-array.mjs +0 -24
  900. package/plugin/node_modules/markdownlint-cli2/constants.mjs +0 -30
  901. package/plugin/node_modules/markdownlint-cli2/export-markdownlint-helpers.mjs +0 -3
  902. package/plugin/node_modules/markdownlint-cli2/export-markdownlint-promise.mjs +0 -3
  903. package/plugin/node_modules/markdownlint-cli2/export-markdownlint.mjs +0 -3
  904. package/plugin/node_modules/markdownlint-cli2/markdownlint-cli2-bin.mjs +0 -18
  905. package/plugin/node_modules/markdownlint-cli2/markdownlint-cli2.mjs +0 -1165
  906. package/plugin/node_modules/markdownlint-cli2/merge-options.mjs +0 -27
  907. package/plugin/node_modules/markdownlint-cli2/package.json +0 -124
  908. package/plugin/node_modules/markdownlint-cli2/parsers/jsonc-parse.mjs +0 -22
  909. package/plugin/node_modules/markdownlint-cli2/parsers/parsers.mjs +0 -17
  910. package/plugin/node_modules/markdownlint-cli2/parsers/toml-parse.mjs +0 -11
  911. package/plugin/node_modules/markdownlint-cli2/parsers/yaml-parse.mjs +0 -16
  912. package/plugin/node_modules/markdownlint-cli2/schema/ValidatingConfiguration.md +0 -24
  913. package/plugin/node_modules/markdownlint-cli2/schema/markdownlint-cli2-config-schema.json +0 -138
  914. package/plugin/node_modules/markdownlint-cli2/schema/markdownlint-config-schema.json +0 -5133
  915. package/plugin/node_modules/markdownlint-cli2-formatter-default/LICENSE +0 -21
  916. package/plugin/node_modules/markdownlint-cli2-formatter-default/README.md +0 -54
  917. package/plugin/node_modules/markdownlint-cli2-formatter-default/markdownlint-cli2-formatter-default.js +0 -25
  918. package/plugin/node_modules/markdownlint-cli2-formatter-default/package.json +0 -27
  919. package/plugin/node_modules/mdurl/LICENSE +0 -45
  920. package/plugin/node_modules/mdurl/README.md +0 -102
  921. package/plugin/node_modules/mdurl/build/index.cjs.js +0 -534
  922. package/plugin/node_modules/mdurl/index.mjs +0 -11
  923. package/plugin/node_modules/mdurl/lib/decode.mjs +0 -112
  924. package/plugin/node_modules/mdurl/lib/encode.mjs +0 -89
  925. package/plugin/node_modules/mdurl/lib/format.mjs +0 -21
  926. package/plugin/node_modules/mdurl/lib/parse.mjs +0 -308
  927. package/plugin/node_modules/mdurl/package.json +0 -37
  928. package/plugin/node_modules/merge2/LICENSE +0 -21
  929. package/plugin/node_modules/merge2/README.md +0 -144
  930. package/plugin/node_modules/merge2/index.js +0 -144
  931. package/plugin/node_modules/merge2/package.json +0 -43
  932. package/plugin/node_modules/micromark/dev/index.d.ts +0 -82
  933. package/plugin/node_modules/micromark/dev/index.d.ts.map +0 -1
  934. package/plugin/node_modules/micromark/dev/index.js +0 -68
  935. package/plugin/node_modules/micromark/dev/lib/compile.d.ts +0 -16
  936. package/plugin/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
  937. package/plugin/node_modules/micromark/dev/lib/compile.js +0 -1152
  938. package/plugin/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
  939. package/plugin/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
  940. package/plugin/node_modules/micromark/dev/lib/constructs.js +0 -101
  941. package/plugin/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
  942. package/plugin/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
  943. package/plugin/node_modules/micromark/dev/lib/create-tokenizer.js +0 -717
  944. package/plugin/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
  945. package/plugin/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
  946. package/plugin/node_modules/micromark/dev/lib/initialize/content.js +0 -99
  947. package/plugin/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
  948. package/plugin/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
  949. package/plugin/node_modules/micromark/dev/lib/initialize/document.js +0 -445
  950. package/plugin/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
  951. package/plugin/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
  952. package/plugin/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
  953. package/plugin/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
  954. package/plugin/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
  955. package/plugin/node_modules/micromark/dev/lib/initialize/text.js +0 -244
  956. package/plugin/node_modules/micromark/dev/lib/parse.d.ts +0 -10
  957. package/plugin/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
  958. package/plugin/node_modules/micromark/dev/lib/parse.js +0 -58
  959. package/plugin/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
  960. package/plugin/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
  961. package/plugin/node_modules/micromark/dev/lib/postprocess.js +0 -19
  962. package/plugin/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
  963. package/plugin/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
  964. package/plugin/node_modules/micromark/dev/lib/preprocess.js +0 -141
  965. package/plugin/node_modules/micromark/dev/stream.d.ts +0 -35
  966. package/plugin/node_modules/micromark/dev/stream.d.ts.map +0 -1
  967. package/plugin/node_modules/micromark/dev/stream.js +0 -270
  968. package/plugin/node_modules/micromark/index.d.ts +0 -82
  969. package/plugin/node_modules/micromark/index.d.ts.map +0 -1
  970. package/plugin/node_modules/micromark/index.js +0 -60
  971. package/plugin/node_modules/micromark/lib/compile.d.ts +0 -16
  972. package/plugin/node_modules/micromark/lib/compile.d.ts.map +0 -1
  973. package/plugin/node_modules/micromark/lib/compile.js +0 -1060
  974. package/plugin/node_modules/micromark/lib/constructs.d.ts +0 -73
  975. package/plugin/node_modules/micromark/lib/constructs.d.ts.map +0 -1
  976. package/plugin/node_modules/micromark/lib/constructs.js +0 -85
  977. package/plugin/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
  978. package/plugin/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
  979. package/plugin/node_modules/micromark/lib/create-tokenizer.js +0 -611
  980. package/plugin/node_modules/micromark/lib/initialize/content.d.ts +0 -4
  981. package/plugin/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
  982. package/plugin/node_modules/micromark/lib/initialize/content.js +0 -79
  983. package/plugin/node_modules/micromark/lib/initialize/document.d.ts +0 -10
  984. package/plugin/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
  985. package/plugin/node_modules/micromark/lib/initialize/document.js +0 -362
  986. package/plugin/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
  987. package/plugin/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
  988. package/plugin/node_modules/micromark/lib/initialize/flow.js +0 -58
  989. package/plugin/node_modules/micromark/lib/initialize/text.d.ts +0 -8
  990. package/plugin/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
  991. package/plugin/node_modules/micromark/lib/initialize/text.js +0 -212
  992. package/plugin/node_modules/micromark/lib/parse.d.ts +0 -10
  993. package/plugin/node_modules/micromark/lib/parse.d.ts.map +0 -1
  994. package/plugin/node_modules/micromark/lib/parse.js +0 -56
  995. package/plugin/node_modules/micromark/lib/postprocess.d.ts +0 -9
  996. package/plugin/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
  997. package/plugin/node_modules/micromark/lib/postprocess.js +0 -18
  998. package/plugin/node_modules/micromark/lib/preprocess.d.ts +0 -13
  999. package/plugin/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
  1000. package/plugin/node_modules/micromark/lib/preprocess.js +0 -115
  1001. package/plugin/node_modules/micromark/license +0 -22
  1002. package/plugin/node_modules/micromark/package.json +0 -100
  1003. package/plugin/node_modules/micromark/readme.md +0 -488
  1004. package/plugin/node_modules/micromark/stream.d.ts +0 -35
  1005. package/plugin/node_modules/micromark/stream.d.ts.map +0 -1
  1006. package/plugin/node_modules/micromark/stream.js +0 -256
  1007. package/plugin/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
  1008. package/plugin/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
  1009. package/plugin/node_modules/micromark-core-commonmark/dev/index.js +0 -22
  1010. package/plugin/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
  1011. package/plugin/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
  1012. package/plugin/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -300
  1013. package/plugin/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
  1014. package/plugin/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
  1015. package/plugin/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
  1016. package/plugin/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
  1017. package/plugin/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
  1018. package/plugin/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
  1019. package/plugin/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
  1020. package/plugin/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
  1021. package/plugin/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
  1022. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
  1023. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
  1024. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
  1025. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
  1026. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
  1027. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
  1028. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
  1029. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
  1030. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -514
  1031. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
  1032. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
  1033. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -202
  1034. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
  1035. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
  1036. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
  1037. package/plugin/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
  1038. package/plugin/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
  1039. package/plugin/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
  1040. package/plugin/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
  1041. package/plugin/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
  1042. package/plugin/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
  1043. package/plugin/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
  1044. package/plugin/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
  1045. package/plugin/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
  1046. package/plugin/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
  1047. package/plugin/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
  1048. package/plugin/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -233
  1049. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
  1050. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
  1051. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -989
  1052. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
  1053. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
  1054. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
  1055. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
  1056. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
  1057. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -656
  1058. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
  1059. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
  1060. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -110
  1061. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
  1062. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
  1063. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -62
  1064. package/plugin/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
  1065. package/plugin/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
  1066. package/plugin/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
  1067. package/plugin/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
  1068. package/plugin/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
  1069. package/plugin/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
  1070. package/plugin/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
  1071. package/plugin/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
  1072. package/plugin/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -210
  1073. package/plugin/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
  1074. package/plugin/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
  1075. package/plugin/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
  1076. package/plugin/node_modules/micromark-core-commonmark/index.d.ts +0 -23
  1077. package/plugin/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
  1078. package/plugin/node_modules/micromark-core-commonmark/index.js +0 -22
  1079. package/plugin/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
  1080. package/plugin/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
  1081. package/plugin/node_modules/micromark-core-commonmark/lib/attention.js +0 -241
  1082. package/plugin/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
  1083. package/plugin/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
  1084. package/plugin/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
  1085. package/plugin/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
  1086. package/plugin/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
  1087. package/plugin/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
  1088. package/plugin/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
  1089. package/plugin/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
  1090. package/plugin/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
  1091. package/plugin/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
  1092. package/plugin/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
  1093. package/plugin/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
  1094. package/plugin/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
  1095. package/plugin/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
  1096. package/plugin/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
  1097. package/plugin/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
  1098. package/plugin/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
  1099. package/plugin/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -460
  1100. package/plugin/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
  1101. package/plugin/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
  1102. package/plugin/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -177
  1103. package/plugin/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
  1104. package/plugin/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
  1105. package/plugin/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
  1106. package/plugin/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
  1107. package/plugin/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
  1108. package/plugin/node_modules/micromark-core-commonmark/lib/content.js +0 -163
  1109. package/plugin/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
  1110. package/plugin/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
  1111. package/plugin/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
  1112. package/plugin/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
  1113. package/plugin/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
  1114. package/plugin/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
  1115. package/plugin/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
  1116. package/plugin/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
  1117. package/plugin/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -195
  1118. package/plugin/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
  1119. package/plugin/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
  1120. package/plugin/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -876
  1121. package/plugin/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
  1122. package/plugin/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
  1123. package/plugin/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
  1124. package/plugin/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
  1125. package/plugin/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
  1126. package/plugin/node_modules/micromark-core-commonmark/lib/label-end.js +0 -560
  1127. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
  1128. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
  1129. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -102
  1130. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
  1131. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
  1132. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -55
  1133. package/plugin/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
  1134. package/plugin/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
  1135. package/plugin/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
  1136. package/plugin/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
  1137. package/plugin/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
  1138. package/plugin/node_modules/micromark-core-commonmark/lib/list.js +0 -213
  1139. package/plugin/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
  1140. package/plugin/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
  1141. package/plugin/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -185
  1142. package/plugin/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
  1143. package/plugin/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
  1144. package/plugin/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
  1145. package/plugin/node_modules/micromark-core-commonmark/license +0 -22
  1146. package/plugin/node_modules/micromark-core-commonmark/package.json +0 -74
  1147. package/plugin/node_modules/micromark-core-commonmark/readme.md +0 -171
  1148. package/plugin/node_modules/micromark-extension-directive/dev/index.d.ts +0 -156
  1149. package/plugin/node_modules/micromark-extension-directive/dev/index.js +0 -3
  1150. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-container.d.ts +0 -4
  1151. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-container.d.ts.map +0 -1
  1152. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-container.js +0 -323
  1153. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-leaf.d.ts +0 -4
  1154. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-leaf.d.ts.map +0 -1
  1155. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-leaf.js +0 -124
  1156. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-text.d.ts +0 -4
  1157. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-text.d.ts.map +0 -1
  1158. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-text.js +0 -113
  1159. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-attributes.d.ts +0 -23
  1160. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-attributes.d.ts.map +0 -1
  1161. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-attributes.js +0 -348
  1162. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-label.d.ts +0 -15
  1163. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-label.d.ts.map +0 -1
  1164. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-label.js +0 -135
  1165. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-name.d.ts +0 -14
  1166. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-name.d.ts.map +0 -1
  1167. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-name.js +0 -59
  1168. package/plugin/node_modules/micromark-extension-directive/dev/lib/html.d.ts +0 -14
  1169. package/plugin/node_modules/micromark-extension-directive/dev/lib/html.d.ts.map +0 -1
  1170. package/plugin/node_modules/micromark-extension-directive/dev/lib/html.js +0 -265
  1171. package/plugin/node_modules/micromark-extension-directive/dev/lib/syntax.d.ts +0 -10
  1172. package/plugin/node_modules/micromark-extension-directive/dev/lib/syntax.d.ts.map +0 -1
  1173. package/plugin/node_modules/micromark-extension-directive/dev/lib/syntax.js +0 -22
  1174. package/plugin/node_modules/micromark-extension-directive/index.d.ts +0 -156
  1175. package/plugin/node_modules/micromark-extension-directive/index.js +0 -3
  1176. package/plugin/node_modules/micromark-extension-directive/lib/directive-container.d.ts +0 -4
  1177. package/plugin/node_modules/micromark-extension-directive/lib/directive-container.d.ts.map +0 -1
  1178. package/plugin/node_modules/micromark-extension-directive/lib/directive-container.js +0 -259
  1179. package/plugin/node_modules/micromark-extension-directive/lib/directive-leaf.d.ts +0 -4
  1180. package/plugin/node_modules/micromark-extension-directive/lib/directive-leaf.d.ts.map +0 -1
  1181. package/plugin/node_modules/micromark-extension-directive/lib/directive-leaf.js +0 -91
  1182. package/plugin/node_modules/micromark-extension-directive/lib/directive-text.d.ts +0 -4
  1183. package/plugin/node_modules/micromark-extension-directive/lib/directive-text.d.ts.map +0 -1
  1184. package/plugin/node_modules/micromark-extension-directive/lib/directive-text.js +0 -82
  1185. package/plugin/node_modules/micromark-extension-directive/lib/factory-attributes.d.ts +0 -23
  1186. package/plugin/node_modules/micromark-extension-directive/lib/factory-attributes.d.ts.map +0 -1
  1187. package/plugin/node_modules/micromark-extension-directive/lib/factory-attributes.js +0 -238
  1188. package/plugin/node_modules/micromark-extension-directive/lib/factory-label.d.ts +0 -15
  1189. package/plugin/node_modules/micromark-extension-directive/lib/factory-label.d.ts.map +0 -1
  1190. package/plugin/node_modules/micromark-extension-directive/lib/factory-label.js +0 -107
  1191. package/plugin/node_modules/micromark-extension-directive/lib/factory-name.d.ts +0 -14
  1192. package/plugin/node_modules/micromark-extension-directive/lib/factory-name.d.ts.map +0 -1
  1193. package/plugin/node_modules/micromark-extension-directive/lib/factory-name.js +0 -36
  1194. package/plugin/node_modules/micromark-extension-directive/lib/html.d.ts +0 -14
  1195. package/plugin/node_modules/micromark-extension-directive/lib/html.d.ts.map +0 -1
  1196. package/plugin/node_modules/micromark-extension-directive/lib/html.js +0 -233
  1197. package/plugin/node_modules/micromark-extension-directive/lib/syntax.d.ts +0 -10
  1198. package/plugin/node_modules/micromark-extension-directive/lib/syntax.d.ts.map +0 -1
  1199. package/plugin/node_modules/micromark-extension-directive/lib/syntax.js +0 -25
  1200. package/plugin/node_modules/micromark-extension-directive/license +0 -22
  1201. package/plugin/node_modules/micromark-extension-directive/package.json +0 -124
  1202. package/plugin/node_modules/micromark-extension-directive/readme.md +0 -451
  1203. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/index.d.ts +0 -24
  1204. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/index.js +0 -2
  1205. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.d.ts +0 -10
  1206. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.js +0 -56
  1207. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.d.ts +0 -10
  1208. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.js +0 -983
  1209. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/index.d.ts +0 -24
  1210. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/index.js +0 -2
  1211. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/html.d.ts +0 -10
  1212. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +0 -60
  1213. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.d.ts +0 -10
  1214. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +0 -854
  1215. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/license +0 -22
  1216. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/package.json +0 -116
  1217. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/readme.md +0 -422
  1218. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/index.d.ts +0 -164
  1219. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/index.js +0 -3
  1220. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/html.d.ts +0 -25
  1221. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/html.js +0 -226
  1222. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.d.ts +0 -9
  1223. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.js +0 -558
  1224. package/plugin/node_modules/micromark-extension-gfm-footnote/index.d.ts +0 -164
  1225. package/plugin/node_modules/micromark-extension-gfm-footnote/index.js +0 -3
  1226. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/html.d.ts +0 -25
  1227. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/html.js +0 -154
  1228. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/syntax.d.ts +0 -9
  1229. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +0 -485
  1230. package/plugin/node_modules/micromark-extension-gfm-footnote/license +0 -22
  1231. package/plugin/node_modules/micromark-extension-gfm-footnote/package.json +0 -132
  1232. package/plugin/node_modules/micromark-extension-gfm-footnote/readme.md +0 -656
  1233. package/plugin/node_modules/micromark-extension-gfm-table/dev/index.d.ts +0 -55
  1234. package/plugin/node_modules/micromark-extension-gfm-table/dev/index.js +0 -2
  1235. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +0 -38
  1236. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +0 -1
  1237. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +0 -212
  1238. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +0 -11
  1239. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +0 -1
  1240. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/html.js +0 -148
  1241. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +0 -14
  1242. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +0 -1
  1243. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +0 -64
  1244. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +0 -18
  1245. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +0 -1
  1246. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +0 -941
  1247. package/plugin/node_modules/micromark-extension-gfm-table/index.d.ts +0 -55
  1248. package/plugin/node_modules/micromark-extension-gfm-table/index.js +0 -2
  1249. package/plugin/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +0 -38
  1250. package/plugin/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +0 -1
  1251. package/plugin/node_modules/micromark-extension-gfm-table/lib/edit-map.js +0 -202
  1252. package/plugin/node_modules/micromark-extension-gfm-table/lib/html.d.ts +0 -11
  1253. package/plugin/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +0 -1
  1254. package/plugin/node_modules/micromark-extension-gfm-table/lib/html.js +0 -130
  1255. package/plugin/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +0 -14
  1256. package/plugin/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +0 -1
  1257. package/plugin/node_modules/micromark-extension-gfm-table/lib/infer.js +0 -52
  1258. package/plugin/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +0 -18
  1259. package/plugin/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +0 -1
  1260. package/plugin/node_modules/micromark-extension-gfm-table/lib/syntax.js +0 -819
  1261. package/plugin/node_modules/micromark-extension-gfm-table/license +0 -22
  1262. package/plugin/node_modules/micromark-extension-gfm-table/package.json +0 -128
  1263. package/plugin/node_modules/micromark-extension-gfm-table/readme.md +0 -515
  1264. package/plugin/node_modules/micromark-extension-math/dev/index.d.ts +0 -61
  1265. package/plugin/node_modules/micromark-extension-math/dev/index.js +0 -3
  1266. package/plugin/node_modules/micromark-extension-math/dev/lib/html.d.ts +0 -15
  1267. package/plugin/node_modules/micromark-extension-math/dev/lib/html.js +0 -82
  1268. package/plugin/node_modules/micromark-extension-math/dev/lib/math-flow.d.ts +0 -3
  1269. package/plugin/node_modules/micromark-extension-math/dev/lib/math-flow.js +0 -394
  1270. package/plugin/node_modules/micromark-extension-math/dev/lib/math-text.d.ts +0 -9
  1271. package/plugin/node_modules/micromark-extension-math/dev/lib/math-text.js +0 -267
  1272. package/plugin/node_modules/micromark-extension-math/dev/lib/syntax.d.ts +0 -12
  1273. package/plugin/node_modules/micromark-extension-math/dev/lib/syntax.js +0 -24
  1274. package/plugin/node_modules/micromark-extension-math/index.d.ts +0 -61
  1275. package/plugin/node_modules/micromark-extension-math/index.js +0 -3
  1276. package/plugin/node_modules/micromark-extension-math/lib/html.d.ts +0 -15
  1277. package/plugin/node_modules/micromark-extension-math/lib/html.js +0 -84
  1278. package/plugin/node_modules/micromark-extension-math/lib/math-flow.d.ts +0 -3
  1279. package/plugin/node_modules/micromark-extension-math/lib/math-flow.js +0 -345
  1280. package/plugin/node_modules/micromark-extension-math/lib/math-text.d.ts +0 -9
  1281. package/plugin/node_modules/micromark-extension-math/lib/math-text.js +0 -232
  1282. package/plugin/node_modules/micromark-extension-math/lib/syntax.d.ts +0 -12
  1283. package/plugin/node_modules/micromark-extension-math/lib/syntax.js +0 -27
  1284. package/plugin/node_modules/micromark-extension-math/license +0 -22
  1285. package/plugin/node_modules/micromark-extension-math/package.json +0 -121
  1286. package/plugin/node_modules/micromark-extension-math/readme.md +0 -429
  1287. package/plugin/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
  1288. package/plugin/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
  1289. package/plugin/node_modules/micromark-factory-destination/dev/index.js +0 -255
  1290. package/plugin/node_modules/micromark-factory-destination/index.d.ts +0 -42
  1291. package/plugin/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
  1292. package/plugin/node_modules/micromark-factory-destination/index.js +0 -206
  1293. package/plugin/node_modules/micromark-factory-destination/license +0 -22
  1294. package/plugin/node_modules/micromark-factory-destination/package.json +0 -57
  1295. package/plugin/node_modules/micromark-factory-destination/readme.md +0 -234
  1296. package/plugin/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
  1297. package/plugin/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
  1298. package/plugin/node_modules/micromark-factory-label/dev/index.js +0 -172
  1299. package/plugin/node_modules/micromark-factory-label/index.d.ts +0 -37
  1300. package/plugin/node_modules/micromark-factory-label/index.d.ts.map +0 -1
  1301. package/plugin/node_modules/micromark-factory-label/index.js +0 -148
  1302. package/plugin/node_modules/micromark-factory-label/license +0 -22
  1303. package/plugin/node_modules/micromark-factory-label/package.json +0 -60
  1304. package/plugin/node_modules/micromark-factory-label/readme.md +0 -224
  1305. package/plugin/node_modules/micromark-factory-space/dev/index.d.ts +0 -37
  1306. package/plugin/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
  1307. package/plugin/node_modules/micromark-factory-space/dev/index.js +0 -67
  1308. package/plugin/node_modules/micromark-factory-space/index.d.ts +0 -37
  1309. package/plugin/node_modules/micromark-factory-space/index.d.ts.map +0 -1
  1310. package/plugin/node_modules/micromark-factory-space/index.js +0 -64
  1311. package/plugin/node_modules/micromark-factory-space/license +0 -22
  1312. package/plugin/node_modules/micromark-factory-space/package.json +0 -55
  1313. package/plugin/node_modules/micromark-factory-space/readme.md +0 -225
  1314. package/plugin/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
  1315. package/plugin/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
  1316. package/plugin/node_modules/micromark-factory-title/dev/index.js +0 -169
  1317. package/plugin/node_modules/micromark-factory-title/index.d.ts +0 -36
  1318. package/plugin/node_modules/micromark-factory-title/index.d.ts.map +0 -1
  1319. package/plugin/node_modules/micromark-factory-title/index.js +0 -158
  1320. package/plugin/node_modules/micromark-factory-title/license +0 -22
  1321. package/plugin/node_modules/micromark-factory-title/package.json +0 -58
  1322. package/plugin/node_modules/micromark-factory-title/readme.md +0 -229
  1323. package/plugin/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
  1324. package/plugin/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
  1325. package/plugin/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
  1326. package/plugin/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
  1327. package/plugin/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
  1328. package/plugin/node_modules/micromark-factory-whitespace/index.js +0 -44
  1329. package/plugin/node_modules/micromark-factory-whitespace/license +0 -22
  1330. package/plugin/node_modules/micromark-factory-whitespace/package.json +0 -57
  1331. package/plugin/node_modules/micromark-factory-whitespace/readme.md +0 -205
  1332. package/plugin/node_modules/micromark-util-character/dev/index.d.ts +0 -195
  1333. package/plugin/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
  1334. package/plugin/node_modules/micromark-util-character/dev/index.js +0 -252
  1335. package/plugin/node_modules/micromark-util-character/index.d.ts +0 -195
  1336. package/plugin/node_modules/micromark-util-character/index.d.ts.map +0 -1
  1337. package/plugin/node_modules/micromark-util-character/index.js +0 -246
  1338. package/plugin/node_modules/micromark-util-character/license +0 -22
  1339. package/plugin/node_modules/micromark-util-character/package.json +0 -57
  1340. package/plugin/node_modules/micromark-util-character/readme.md +0 -446
  1341. package/plugin/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
  1342. package/plugin/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
  1343. package/plugin/node_modules/micromark-util-chunked/dev/index.js +0 -89
  1344. package/plugin/node_modules/micromark-util-chunked/index.d.ts +0 -41
  1345. package/plugin/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
  1346. package/plugin/node_modules/micromark-util-chunked/index.js +0 -81
  1347. package/plugin/node_modules/micromark-util-chunked/license +0 -22
  1348. package/plugin/node_modules/micromark-util-chunked/package.json +0 -57
  1349. package/plugin/node_modules/micromark-util-chunked/readme.md +0 -219
  1350. package/plugin/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
  1351. package/plugin/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
  1352. package/plugin/node_modules/micromark-util-classify-character/dev/index.js +0 -38
  1353. package/plugin/node_modules/micromark-util-classify-character/index.d.ts +0 -18
  1354. package/plugin/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
  1355. package/plugin/node_modules/micromark-util-classify-character/index.js +0 -27
  1356. package/plugin/node_modules/micromark-util-classify-character/license +0 -22
  1357. package/plugin/node_modules/micromark-util-classify-character/package.json +0 -59
  1358. package/plugin/node_modules/micromark-util-classify-character/readme.md +0 -205
  1359. package/plugin/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
  1360. package/plugin/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
  1361. package/plugin/node_modules/micromark-util-combine-extensions/index.js +0 -143
  1362. package/plugin/node_modules/micromark-util-combine-extensions/license +0 -22
  1363. package/plugin/node_modules/micromark-util-combine-extensions/package.json +0 -52
  1364. package/plugin/node_modules/micromark-util-combine-extensions/readme.md +0 -201
  1365. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
  1366. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
  1367. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
  1368. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
  1369. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
  1370. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
  1371. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
  1372. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
  1373. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
  1374. package/plugin/node_modules/micromark-util-encode/index.d.ts +0 -14
  1375. package/plugin/node_modules/micromark-util-encode/index.d.ts.map +0 -1
  1376. package/plugin/node_modules/micromark-util-encode/index.js +0 -33
  1377. package/plugin/node_modules/micromark-util-encode/license +0 -22
  1378. package/plugin/node_modules/micromark-util-encode/package.json +0 -47
  1379. package/plugin/node_modules/micromark-util-encode/readme.md +0 -176
  1380. package/plugin/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
  1381. package/plugin/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
  1382. package/plugin/node_modules/micromark-util-html-tag-name/index.js +0 -93
  1383. package/plugin/node_modules/micromark-util-html-tag-name/license +0 -22
  1384. package/plugin/node_modules/micromark-util-html-tag-name/package.json +0 -47
  1385. package/plugin/node_modules/micromark-util-html-tag-name/readme.md +0 -193
  1386. package/plugin/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
  1387. package/plugin/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
  1388. package/plugin/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
  1389. package/plugin/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
  1390. package/plugin/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
  1391. package/plugin/node_modules/micromark-util-normalize-identifier/index.js +0 -33
  1392. package/plugin/node_modules/micromark-util-normalize-identifier/license +0 -22
  1393. package/plugin/node_modules/micromark-util-normalize-identifier/package.json +0 -58
  1394. package/plugin/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
  1395. package/plugin/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
  1396. package/plugin/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
  1397. package/plugin/node_modules/micromark-util-resolve-all/index.js +0 -32
  1398. package/plugin/node_modules/micromark-util-resolve-all/license +0 -22
  1399. package/plugin/node_modules/micromark-util-resolve-all/package.json +0 -48
  1400. package/plugin/node_modules/micromark-util-resolve-all/readme.md +0 -238
  1401. package/plugin/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
  1402. package/plugin/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
  1403. package/plugin/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
  1404. package/plugin/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
  1405. package/plugin/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
  1406. package/plugin/node_modules/micromark-util-sanitize-uri/index.js +0 -107
  1407. package/plugin/node_modules/micromark-util-sanitize-uri/license +0 -22
  1408. package/plugin/node_modules/micromark-util-sanitize-uri/package.json +0 -59
  1409. package/plugin/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
  1410. package/plugin/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
  1411. package/plugin/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
  1412. package/plugin/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
  1413. package/plugin/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
  1414. package/plugin/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
  1415. package/plugin/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
  1416. package/plugin/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
  1417. package/plugin/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
  1418. package/plugin/node_modules/micromark-util-subtokenize/index.js +0 -228
  1419. package/plugin/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
  1420. package/plugin/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
  1421. package/plugin/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
  1422. package/plugin/node_modules/micromark-util-subtokenize/license +0 -22
  1423. package/plugin/node_modules/micromark-util-subtokenize/package.json +0 -60
  1424. package/plugin/node_modules/micromark-util-subtokenize/readme.md +0 -181
  1425. package/plugin/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
  1426. package/plugin/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
  1427. package/plugin/node_modules/micromark-util-symbol/lib/codes.js +0 -158
  1428. package/plugin/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
  1429. package/plugin/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
  1430. package/plugin/node_modules/micromark-util-symbol/lib/constants.js +0 -44
  1431. package/plugin/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
  1432. package/plugin/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
  1433. package/plugin/node_modules/micromark-util-symbol/lib/default.js +0 -4
  1434. package/plugin/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
  1435. package/plugin/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
  1436. package/plugin/node_modules/micromark-util-symbol/lib/types.js +0 -453
  1437. package/plugin/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
  1438. package/plugin/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
  1439. package/plugin/node_modules/micromark-util-symbol/lib/values.js +0 -109
  1440. package/plugin/node_modules/micromark-util-symbol/license +0 -22
  1441. package/plugin/node_modules/micromark-util-symbol/package.json +0 -43
  1442. package/plugin/node_modules/micromark-util-symbol/readme.md +0 -168
  1443. package/plugin/node_modules/micromark-util-types/index.d.ts +0 -1312
  1444. package/plugin/node_modules/micromark-util-types/index.js +0 -2
  1445. package/plugin/node_modules/micromark-util-types/license +0 -22
  1446. package/plugin/node_modules/micromark-util-types/package.json +0 -71
  1447. package/plugin/node_modules/micromark-util-types/readme.md +0 -151
  1448. package/plugin/node_modules/micromatch/LICENSE +0 -21
  1449. package/plugin/node_modules/micromatch/README.md +0 -1024
  1450. package/plugin/node_modules/micromatch/index.js +0 -474
  1451. package/plugin/node_modules/micromatch/package.json +0 -119
  1452. package/plugin/node_modules/ms/index.js +0 -162
  1453. package/plugin/node_modules/ms/license.md +0 -21
  1454. package/plugin/node_modules/ms/package.json +0 -38
  1455. package/plugin/node_modules/ms/readme.md +0 -59
  1456. package/plugin/node_modules/parse-entities/index.d.ts +0 -126
  1457. package/plugin/node_modules/parse-entities/index.js +0 -3
  1458. package/plugin/node_modules/parse-entities/lib/index.d.ts +0 -9
  1459. package/plugin/node_modules/parse-entities/lib/index.d.ts.map +0 -1
  1460. package/plugin/node_modules/parse-entities/lib/index.js +0 -407
  1461. package/plugin/node_modules/parse-entities/license +0 -22
  1462. package/plugin/node_modules/parse-entities/package.json +0 -91
  1463. package/plugin/node_modules/parse-entities/readme.md +0 -266
  1464. package/plugin/node_modules/picomatch/LICENSE +0 -21
  1465. package/plugin/node_modules/picomatch/README.md +0 -716
  1466. package/plugin/node_modules/picomatch/index.js +0 -3
  1467. package/plugin/node_modules/picomatch/lib/constants.js +0 -184
  1468. package/plugin/node_modules/picomatch/lib/parse.js +0 -1392
  1469. package/plugin/node_modules/picomatch/lib/picomatch.js +0 -342
  1470. package/plugin/node_modules/picomatch/lib/scan.js +0 -391
  1471. package/plugin/node_modules/picomatch/lib/utils.js +0 -64
  1472. package/plugin/node_modules/picomatch/package.json +0 -81
  1473. package/plugin/node_modules/punycode.js/LICENSE-MIT.txt +0 -20
  1474. package/plugin/node_modules/punycode.js/README.md +0 -148
  1475. package/plugin/node_modules/punycode.js/package.json +0 -58
  1476. package/plugin/node_modules/punycode.js/punycode.es6.js +0 -444
  1477. package/plugin/node_modules/punycode.js/punycode.js +0 -443
  1478. package/plugin/node_modules/queue-microtask/LICENSE +0 -20
  1479. package/plugin/node_modules/queue-microtask/README.md +0 -90
  1480. package/plugin/node_modules/queue-microtask/index.d.ts +0 -2
  1481. package/plugin/node_modules/queue-microtask/index.js +0 -9
  1482. package/plugin/node_modules/queue-microtask/package.json +0 -55
  1483. package/plugin/node_modules/reusify/.github/dependabot.yml +0 -7
  1484. package/plugin/node_modules/reusify/.github/workflows/ci.yml +0 -96
  1485. package/plugin/node_modules/reusify/LICENSE +0 -22
  1486. package/plugin/node_modules/reusify/README.md +0 -139
  1487. package/plugin/node_modules/reusify/SECURITY.md +0 -15
  1488. package/plugin/node_modules/reusify/benchmarks/createNoCodeFunction.js +0 -30
  1489. package/plugin/node_modules/reusify/benchmarks/fib.js +0 -13
  1490. package/plugin/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +0 -38
  1491. package/plugin/node_modules/reusify/eslint.config.js +0 -14
  1492. package/plugin/node_modules/reusify/package.json +0 -50
  1493. package/plugin/node_modules/reusify/reusify.d.ts +0 -14
  1494. package/plugin/node_modules/reusify/reusify.js +0 -33
  1495. package/plugin/node_modules/reusify/test.js +0 -66
  1496. package/plugin/node_modules/reusify/tsconfig.json +0 -11
  1497. package/plugin/node_modules/run-parallel/LICENSE +0 -20
  1498. package/plugin/node_modules/run-parallel/README.md +0 -85
  1499. package/plugin/node_modules/run-parallel/index.js +0 -51
  1500. package/plugin/node_modules/run-parallel/package.json +0 -58
  1501. package/plugin/node_modules/slash/index.d.ts +0 -23
  1502. package/plugin/node_modules/slash/index.js +0 -9
  1503. package/plugin/node_modules/slash/license +0 -9
  1504. package/plugin/node_modules/slash/package.json +0 -39
  1505. package/plugin/node_modules/slash/readme.md +0 -36
  1506. package/plugin/node_modules/smol-toml/LICENSE +0 -24
  1507. package/plugin/node_modules/smol-toml/README.md +0 -239
  1508. package/plugin/node_modules/smol-toml/dist/date.d.ts +0 -41
  1509. package/plugin/node_modules/smol-toml/dist/date.js +0 -127
  1510. package/plugin/node_modules/smol-toml/dist/error.d.ts +0 -38
  1511. package/plugin/node_modules/smol-toml/dist/error.js +0 -63
  1512. package/plugin/node_modules/smol-toml/dist/extract.d.ts +0 -30
  1513. package/plugin/node_modules/smol-toml/dist/extract.js +0 -100
  1514. package/plugin/node_modules/smol-toml/dist/index.cjs +0 -897
  1515. package/plugin/node_modules/smol-toml/dist/index.d.ts +0 -43
  1516. package/plugin/node_modules/smol-toml/dist/index.js +0 -33
  1517. package/plugin/node_modules/smol-toml/dist/parse.d.ts +0 -37
  1518. package/plugin/node_modules/smol-toml/dist/parse.js +0 -148
  1519. package/plugin/node_modules/smol-toml/dist/primitive.d.ts +0 -31
  1520. package/plugin/node_modules/smol-toml/dist/primitive.js +0 -179
  1521. package/plugin/node_modules/smol-toml/dist/stringify.d.ts +0 -31
  1522. package/plugin/node_modules/smol-toml/dist/stringify.js +0 -167
  1523. package/plugin/node_modules/smol-toml/dist/struct.d.ts +0 -32
  1524. package/plugin/node_modules/smol-toml/dist/struct.js +0 -184
  1525. package/plugin/node_modules/smol-toml/dist/util.d.ts +0 -42
  1526. package/plugin/node_modules/smol-toml/dist/util.js +0 -111
  1527. package/plugin/node_modules/smol-toml/package.json +0 -54
  1528. package/plugin/node_modules/string-width/index.d.ts +0 -39
  1529. package/plugin/node_modules/string-width/index.js +0 -89
  1530. package/plugin/node_modules/string-width/license +0 -9
  1531. package/plugin/node_modules/string-width/package.json +0 -65
  1532. package/plugin/node_modules/string-width/readme.md +0 -66
  1533. package/plugin/node_modules/strip-ansi/index.d.ts +0 -15
  1534. package/plugin/node_modules/strip-ansi/index.js +0 -19
  1535. package/plugin/node_modules/strip-ansi/license +0 -9
  1536. package/plugin/node_modules/strip-ansi/package.json +0 -59
  1537. package/plugin/node_modules/strip-ansi/readme.md +0 -37
  1538. package/plugin/node_modules/to-regex-range/LICENSE +0 -21
  1539. package/plugin/node_modules/to-regex-range/README.md +0 -305
  1540. package/plugin/node_modules/to-regex-range/index.js +0 -288
  1541. package/plugin/node_modules/to-regex-range/package.json +0 -88
  1542. package/plugin/node_modules/uc.micro/LICENSE.txt +0 -20
  1543. package/plugin/node_modules/uc.micro/README.md +0 -14
  1544. package/plugin/node_modules/uc.micro/build/index.cjs.js +0 -20
  1545. package/plugin/node_modules/uc.micro/categories/Cc/regex.mjs +0 -1
  1546. package/plugin/node_modules/uc.micro/categories/Cf/regex.mjs +0 -1
  1547. package/plugin/node_modules/uc.micro/categories/P/regex.mjs +0 -1
  1548. package/plugin/node_modules/uc.micro/categories/S/regex.mjs +0 -1
  1549. package/plugin/node_modules/uc.micro/categories/Z/regex.mjs +0 -1
  1550. package/plugin/node_modules/uc.micro/index.mjs +0 -8
  1551. package/plugin/node_modules/uc.micro/package.json +0 -37
  1552. package/plugin/node_modules/uc.micro/properties/Any/regex.mjs +0 -1
  1553. package/plugin/node_modules/unicorn-magic/default.d.ts +0 -13
  1554. package/plugin/node_modules/unicorn-magic/default.js +0 -14
  1555. package/plugin/node_modules/unicorn-magic/license +0 -9
  1556. package/plugin/node_modules/unicorn-magic/node.d.ts +0 -125
  1557. package/plugin/node_modules/unicorn-magic/node.js +0 -49
  1558. package/plugin/node_modules/unicorn-magic/package.json +0 -68
  1559. package/plugin/node_modules/unicorn-magic/readme.md +0 -31
@@ -1,3856 +0,0 @@
1
-
2
- /*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
3
- function isNothing(subject) {
4
- return (typeof subject === 'undefined') || (subject === null);
5
- }
6
-
7
-
8
- function isObject(subject) {
9
- return (typeof subject === 'object') && (subject !== null);
10
- }
11
-
12
-
13
- function toArray(sequence) {
14
- if (Array.isArray(sequence)) return sequence;
15
- else if (isNothing(sequence)) return [];
16
-
17
- return [ sequence ];
18
- }
19
-
20
-
21
- function extend(target, source) {
22
- var index, length, key, sourceKeys;
23
-
24
- if (source) {
25
- sourceKeys = Object.keys(source);
26
-
27
- for (index = 0, length = sourceKeys.length; index < length; index += 1) {
28
- key = sourceKeys[index];
29
- target[key] = source[key];
30
- }
31
- }
32
-
33
- return target;
34
- }
35
-
36
-
37
- function repeat(string, count) {
38
- var result = '', cycle;
39
-
40
- for (cycle = 0; cycle < count; cycle += 1) {
41
- result += string;
42
- }
43
-
44
- return result;
45
- }
46
-
47
-
48
- function isNegativeZero(number) {
49
- return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);
50
- }
51
-
52
-
53
- var isNothing_1 = isNothing;
54
- var isObject_1 = isObject;
55
- var toArray_1 = toArray;
56
- var repeat_1 = repeat;
57
- var isNegativeZero_1 = isNegativeZero;
58
- var extend_1 = extend;
59
-
60
- var common = {
61
- isNothing: isNothing_1,
62
- isObject: isObject_1,
63
- toArray: toArray_1,
64
- repeat: repeat_1,
65
- isNegativeZero: isNegativeZero_1,
66
- extend: extend_1
67
- };
68
-
69
- // YAML error class. http://stackoverflow.com/questions/8458984
70
-
71
-
72
- function formatError(exception, compact) {
73
- var where = '', message = exception.reason || '(unknown reason)';
74
-
75
- if (!exception.mark) return message;
76
-
77
- if (exception.mark.name) {
78
- where += 'in "' + exception.mark.name + '" ';
79
- }
80
-
81
- where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';
82
-
83
- if (!compact && exception.mark.snippet) {
84
- where += '\n\n' + exception.mark.snippet;
85
- }
86
-
87
- return message + ' ' + where;
88
- }
89
-
90
-
91
- function YAMLException$1(reason, mark) {
92
- // Super constructor
93
- Error.call(this);
94
-
95
- this.name = 'YAMLException';
96
- this.reason = reason;
97
- this.mark = mark;
98
- this.message = formatError(this, false);
99
-
100
- // Include stack trace in error object
101
- if (Error.captureStackTrace) {
102
- // Chrome and NodeJS
103
- Error.captureStackTrace(this, this.constructor);
104
- } else {
105
- // FF, IE 10+ and Safari 6+. Fallback for others
106
- this.stack = (new Error()).stack || '';
107
- }
108
- }
109
-
110
-
111
- // Inherit from Error
112
- YAMLException$1.prototype = Object.create(Error.prototype);
113
- YAMLException$1.prototype.constructor = YAMLException$1;
114
-
115
-
116
- YAMLException$1.prototype.toString = function toString(compact) {
117
- return this.name + ': ' + formatError(this, compact);
118
- };
119
-
120
-
121
- var exception = YAMLException$1;
122
-
123
- // get snippet for a single line, respecting maxLength
124
- function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
125
- var head = '';
126
- var tail = '';
127
- var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
128
-
129
- if (position - lineStart > maxHalfLength) {
130
- head = ' ... ';
131
- lineStart = position - maxHalfLength + head.length;
132
- }
133
-
134
- if (lineEnd - position > maxHalfLength) {
135
- tail = ' ...';
136
- lineEnd = position + maxHalfLength - tail.length;
137
- }
138
-
139
- return {
140
- str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail,
141
- pos: position - lineStart + head.length // relative position
142
- };
143
- }
144
-
145
-
146
- function padStart(string, max) {
147
- return common.repeat(' ', max - string.length) + string;
148
- }
149
-
150
-
151
- function makeSnippet(mark, options) {
152
- options = Object.create(options || null);
153
-
154
- if (!mark.buffer) return null;
155
-
156
- if (!options.maxLength) options.maxLength = 79;
157
- if (typeof options.indent !== 'number') options.indent = 1;
158
- if (typeof options.linesBefore !== 'number') options.linesBefore = 3;
159
- if (typeof options.linesAfter !== 'number') options.linesAfter = 2;
160
-
161
- var re = /\r?\n|\r|\0/g;
162
- var lineStarts = [ 0 ];
163
- var lineEnds = [];
164
- var match;
165
- var foundLineNo = -1;
166
-
167
- while ((match = re.exec(mark.buffer))) {
168
- lineEnds.push(match.index);
169
- lineStarts.push(match.index + match[0].length);
170
-
171
- if (mark.position <= match.index && foundLineNo < 0) {
172
- foundLineNo = lineStarts.length - 2;
173
- }
174
- }
175
-
176
- if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
177
-
178
- var result = '', i, line;
179
- var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
180
- var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
181
-
182
- for (i = 1; i <= options.linesBefore; i++) {
183
- if (foundLineNo - i < 0) break;
184
- line = getLine(
185
- mark.buffer,
186
- lineStarts[foundLineNo - i],
187
- lineEnds[foundLineNo - i],
188
- mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
189
- maxLineLength
190
- );
191
- result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) +
192
- ' | ' + line.str + '\n' + result;
193
- }
194
-
195
- line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
196
- result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) +
197
- ' | ' + line.str + '\n';
198
- result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n';
199
-
200
- for (i = 1; i <= options.linesAfter; i++) {
201
- if (foundLineNo + i >= lineEnds.length) break;
202
- line = getLine(
203
- mark.buffer,
204
- lineStarts[foundLineNo + i],
205
- lineEnds[foundLineNo + i],
206
- mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
207
- maxLineLength
208
- );
209
- result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) +
210
- ' | ' + line.str + '\n';
211
- }
212
-
213
- return result.replace(/\n$/, '');
214
- }
215
-
216
-
217
- var snippet = makeSnippet;
218
-
219
- var TYPE_CONSTRUCTOR_OPTIONS = [
220
- 'kind',
221
- 'multi',
222
- 'resolve',
223
- 'construct',
224
- 'instanceOf',
225
- 'predicate',
226
- 'represent',
227
- 'representName',
228
- 'defaultStyle',
229
- 'styleAliases'
230
- ];
231
-
232
- var YAML_NODE_KINDS = [
233
- 'scalar',
234
- 'sequence',
235
- 'mapping'
236
- ];
237
-
238
- function compileStyleAliases(map) {
239
- var result = {};
240
-
241
- if (map !== null) {
242
- Object.keys(map).forEach(function (style) {
243
- map[style].forEach(function (alias) {
244
- result[String(alias)] = style;
245
- });
246
- });
247
- }
248
-
249
- return result;
250
- }
251
-
252
- function Type$1(tag, options) {
253
- options = options || {};
254
-
255
- Object.keys(options).forEach(function (name) {
256
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
257
- throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
258
- }
259
- });
260
-
261
- // TODO: Add tag format check.
262
- this.options = options; // keep original options in case user wants to extend this type later
263
- this.tag = tag;
264
- this.kind = options['kind'] || null;
265
- this.resolve = options['resolve'] || function () { return true; };
266
- this.construct = options['construct'] || function (data) { return data; };
267
- this.instanceOf = options['instanceOf'] || null;
268
- this.predicate = options['predicate'] || null;
269
- this.represent = options['represent'] || null;
270
- this.representName = options['representName'] || null;
271
- this.defaultStyle = options['defaultStyle'] || null;
272
- this.multi = options['multi'] || false;
273
- this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
274
-
275
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
276
- throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
277
- }
278
- }
279
-
280
- var type = Type$1;
281
-
282
- /*eslint-disable max-len*/
283
-
284
-
285
-
286
-
287
-
288
- function compileList(schema, name) {
289
- var result = [];
290
-
291
- schema[name].forEach(function (currentType) {
292
- var newIndex = result.length;
293
-
294
- result.forEach(function (previousType, previousIndex) {
295
- if (previousType.tag === currentType.tag &&
296
- previousType.kind === currentType.kind &&
297
- previousType.multi === currentType.multi) {
298
-
299
- newIndex = previousIndex;
300
- }
301
- });
302
-
303
- result[newIndex] = currentType;
304
- });
305
-
306
- return result;
307
- }
308
-
309
-
310
- function compileMap(/* lists... */) {
311
- var result = {
312
- scalar: {},
313
- sequence: {},
314
- mapping: {},
315
- fallback: {},
316
- multi: {
317
- scalar: [],
318
- sequence: [],
319
- mapping: [],
320
- fallback: []
321
- }
322
- }, index, length;
323
-
324
- function collectType(type) {
325
- if (type.multi) {
326
- result.multi[type.kind].push(type);
327
- result.multi['fallback'].push(type);
328
- } else {
329
- result[type.kind][type.tag] = result['fallback'][type.tag] = type;
330
- }
331
- }
332
-
333
- for (index = 0, length = arguments.length; index < length; index += 1) {
334
- arguments[index].forEach(collectType);
335
- }
336
- return result;
337
- }
338
-
339
-
340
- function Schema$1(definition) {
341
- return this.extend(definition);
342
- }
343
-
344
-
345
- Schema$1.prototype.extend = function extend(definition) {
346
- var implicit = [];
347
- var explicit = [];
348
-
349
- if (definition instanceof type) {
350
- // Schema.extend(type)
351
- explicit.push(definition);
352
-
353
- } else if (Array.isArray(definition)) {
354
- // Schema.extend([ type1, type2, ... ])
355
- explicit = explicit.concat(definition);
356
-
357
- } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
358
- // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] })
359
- if (definition.implicit) implicit = implicit.concat(definition.implicit);
360
- if (definition.explicit) explicit = explicit.concat(definition.explicit);
361
-
362
- } else {
363
- throw new exception('Schema.extend argument should be a Type, [ Type ], ' +
364
- 'or a schema definition ({ implicit: [...], explicit: [...] })');
365
- }
366
-
367
- implicit.forEach(function (type$1) {
368
- if (!(type$1 instanceof type)) {
369
- throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.');
370
- }
371
-
372
- if (type$1.loadKind && type$1.loadKind !== 'scalar') {
373
- throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
374
- }
375
-
376
- if (type$1.multi) {
377
- throw new exception('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.');
378
- }
379
- });
380
-
381
- explicit.forEach(function (type$1) {
382
- if (!(type$1 instanceof type)) {
383
- throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.');
384
- }
385
- });
386
-
387
- var result = Object.create(Schema$1.prototype);
388
-
389
- result.implicit = (this.implicit || []).concat(implicit);
390
- result.explicit = (this.explicit || []).concat(explicit);
391
-
392
- result.compiledImplicit = compileList(result, 'implicit');
393
- result.compiledExplicit = compileList(result, 'explicit');
394
- result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
395
-
396
- return result;
397
- };
398
-
399
-
400
- var schema = Schema$1;
401
-
402
- var str = new type('tag:yaml.org,2002:str', {
403
- kind: 'scalar',
404
- construct: function (data) { return data !== null ? data : ''; }
405
- });
406
-
407
- var seq = new type('tag:yaml.org,2002:seq', {
408
- kind: 'sequence',
409
- construct: function (data) { return data !== null ? data : []; }
410
- });
411
-
412
- var map = new type('tag:yaml.org,2002:map', {
413
- kind: 'mapping',
414
- construct: function (data) { return data !== null ? data : {}; }
415
- });
416
-
417
- var failsafe = new schema({
418
- explicit: [
419
- str,
420
- seq,
421
- map
422
- ]
423
- });
424
-
425
- function resolveYamlNull(data) {
426
- if (data === null) return true;
427
-
428
- var max = data.length;
429
-
430
- return (max === 1 && data === '~') ||
431
- (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
432
- }
433
-
434
- function constructYamlNull() {
435
- return null;
436
- }
437
-
438
- function isNull(object) {
439
- return object === null;
440
- }
441
-
442
- var _null = new type('tag:yaml.org,2002:null', {
443
- kind: 'scalar',
444
- resolve: resolveYamlNull,
445
- construct: constructYamlNull,
446
- predicate: isNull,
447
- represent: {
448
- canonical: function () { return '~'; },
449
- lowercase: function () { return 'null'; },
450
- uppercase: function () { return 'NULL'; },
451
- camelcase: function () { return 'Null'; },
452
- empty: function () { return ''; }
453
- },
454
- defaultStyle: 'lowercase'
455
- });
456
-
457
- function resolveYamlBoolean(data) {
458
- if (data === null) return false;
459
-
460
- var max = data.length;
461
-
462
- return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
463
- (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
464
- }
465
-
466
- function constructYamlBoolean(data) {
467
- return data === 'true' ||
468
- data === 'True' ||
469
- data === 'TRUE';
470
- }
471
-
472
- function isBoolean(object) {
473
- return Object.prototype.toString.call(object) === '[object Boolean]';
474
- }
475
-
476
- var bool = new type('tag:yaml.org,2002:bool', {
477
- kind: 'scalar',
478
- resolve: resolveYamlBoolean,
479
- construct: constructYamlBoolean,
480
- predicate: isBoolean,
481
- represent: {
482
- lowercase: function (object) { return object ? 'true' : 'false'; },
483
- uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
484
- camelcase: function (object) { return object ? 'True' : 'False'; }
485
- },
486
- defaultStyle: 'lowercase'
487
- });
488
-
489
- function isHexCode(c) {
490
- return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
491
- ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
492
- ((0x61/* a */ <= c) && (c <= 0x66/* f */));
493
- }
494
-
495
- function isOctCode(c) {
496
- return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));
497
- }
498
-
499
- function isDecCode(c) {
500
- return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));
501
- }
502
-
503
- function resolveYamlInteger(data) {
504
- if (data === null) return false;
505
-
506
- var max = data.length,
507
- index = 0,
508
- hasDigits = false,
509
- ch;
510
-
511
- if (!max) return false;
512
-
513
- ch = data[index];
514
-
515
- // sign
516
- if (ch === '-' || ch === '+') {
517
- ch = data[++index];
518
- }
519
-
520
- if (ch === '0') {
521
- // 0
522
- if (index + 1 === max) return true;
523
- ch = data[++index];
524
-
525
- // base 2, base 8, base 16
526
-
527
- if (ch === 'b') {
528
- // base 2
529
- index++;
530
-
531
- for (; index < max; index++) {
532
- ch = data[index];
533
- if (ch === '_') continue;
534
- if (ch !== '0' && ch !== '1') return false;
535
- hasDigits = true;
536
- }
537
- return hasDigits && ch !== '_';
538
- }
539
-
540
-
541
- if (ch === 'x') {
542
- // base 16
543
- index++;
544
-
545
- for (; index < max; index++) {
546
- ch = data[index];
547
- if (ch === '_') continue;
548
- if (!isHexCode(data.charCodeAt(index))) return false;
549
- hasDigits = true;
550
- }
551
- return hasDigits && ch !== '_';
552
- }
553
-
554
-
555
- if (ch === 'o') {
556
- // base 8
557
- index++;
558
-
559
- for (; index < max; index++) {
560
- ch = data[index];
561
- if (ch === '_') continue;
562
- if (!isOctCode(data.charCodeAt(index))) return false;
563
- hasDigits = true;
564
- }
565
- return hasDigits && ch !== '_';
566
- }
567
- }
568
-
569
- // base 10 (except 0)
570
-
571
- // value should not start with `_`;
572
- if (ch === '_') return false;
573
-
574
- for (; index < max; index++) {
575
- ch = data[index];
576
- if (ch === '_') continue;
577
- if (!isDecCode(data.charCodeAt(index))) {
578
- return false;
579
- }
580
- hasDigits = true;
581
- }
582
-
583
- // Should have digits and should not end with `_`
584
- if (!hasDigits || ch === '_') return false;
585
-
586
- return true;
587
- }
588
-
589
- function constructYamlInteger(data) {
590
- var value = data, sign = 1, ch;
591
-
592
- if (value.indexOf('_') !== -1) {
593
- value = value.replace(/_/g, '');
594
- }
595
-
596
- ch = value[0];
597
-
598
- if (ch === '-' || ch === '+') {
599
- if (ch === '-') sign = -1;
600
- value = value.slice(1);
601
- ch = value[0];
602
- }
603
-
604
- if (value === '0') return 0;
605
-
606
- if (ch === '0') {
607
- if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);
608
- if (value[1] === 'x') return sign * parseInt(value.slice(2), 16);
609
- if (value[1] === 'o') return sign * parseInt(value.slice(2), 8);
610
- }
611
-
612
- return sign * parseInt(value, 10);
613
- }
614
-
615
- function isInteger(object) {
616
- return (Object.prototype.toString.call(object)) === '[object Number]' &&
617
- (object % 1 === 0 && !common.isNegativeZero(object));
618
- }
619
-
620
- var int = new type('tag:yaml.org,2002:int', {
621
- kind: 'scalar',
622
- resolve: resolveYamlInteger,
623
- construct: constructYamlInteger,
624
- predicate: isInteger,
625
- represent: {
626
- binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },
627
- octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); },
628
- decimal: function (obj) { return obj.toString(10); },
629
- /* eslint-disable max-len */
630
- hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }
631
- },
632
- defaultStyle: 'decimal',
633
- styleAliases: {
634
- binary: [ 2, 'bin' ],
635
- octal: [ 8, 'oct' ],
636
- decimal: [ 10, 'dec' ],
637
- hexadecimal: [ 16, 'hex' ]
638
- }
639
- });
640
-
641
- var YAML_FLOAT_PATTERN = new RegExp(
642
- // 2.5e4, 2.5 and integers
643
- '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +
644
- // .2e4, .2
645
- // special case, seems not from spec
646
- '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +
647
- // .inf
648
- '|[-+]?\\.(?:inf|Inf|INF)' +
649
- // .nan
650
- '|\\.(?:nan|NaN|NAN))$');
651
-
652
- function resolveYamlFloat(data) {
653
- if (data === null) return false;
654
-
655
- if (!YAML_FLOAT_PATTERN.test(data) ||
656
- // Quick hack to not allow integers end with `_`
657
- // Probably should update regexp & check speed
658
- data[data.length - 1] === '_') {
659
- return false;
660
- }
661
-
662
- return true;
663
- }
664
-
665
- function constructYamlFloat(data) {
666
- var value, sign;
667
-
668
- value = data.replace(/_/g, '').toLowerCase();
669
- sign = value[0] === '-' ? -1 : 1;
670
-
671
- if ('+-'.indexOf(value[0]) >= 0) {
672
- value = value.slice(1);
673
- }
674
-
675
- if (value === '.inf') {
676
- return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
677
-
678
- } else if (value === '.nan') {
679
- return NaN;
680
- }
681
- return sign * parseFloat(value, 10);
682
- }
683
-
684
-
685
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
686
-
687
- function representYamlFloat(object, style) {
688
- var res;
689
-
690
- if (isNaN(object)) {
691
- switch (style) {
692
- case 'lowercase': return '.nan';
693
- case 'uppercase': return '.NAN';
694
- case 'camelcase': return '.NaN';
695
- }
696
- } else if (Number.POSITIVE_INFINITY === object) {
697
- switch (style) {
698
- case 'lowercase': return '.inf';
699
- case 'uppercase': return '.INF';
700
- case 'camelcase': return '.Inf';
701
- }
702
- } else if (Number.NEGATIVE_INFINITY === object) {
703
- switch (style) {
704
- case 'lowercase': return '-.inf';
705
- case 'uppercase': return '-.INF';
706
- case 'camelcase': return '-.Inf';
707
- }
708
- } else if (common.isNegativeZero(object)) {
709
- return '-0.0';
710
- }
711
-
712
- res = object.toString(10);
713
-
714
- // JS stringifier can build scientific format without dots: 5e-100,
715
- // while YAML requres dot: 5.e-100. Fix it with simple hack
716
-
717
- return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;
718
- }
719
-
720
- function isFloat(object) {
721
- return (Object.prototype.toString.call(object) === '[object Number]') &&
722
- (object % 1 !== 0 || common.isNegativeZero(object));
723
- }
724
-
725
- var float = new type('tag:yaml.org,2002:float', {
726
- kind: 'scalar',
727
- resolve: resolveYamlFloat,
728
- construct: constructYamlFloat,
729
- predicate: isFloat,
730
- represent: representYamlFloat,
731
- defaultStyle: 'lowercase'
732
- });
733
-
734
- var json = failsafe.extend({
735
- implicit: [
736
- _null,
737
- bool,
738
- int,
739
- float
740
- ]
741
- });
742
-
743
- var core = json;
744
-
745
- var YAML_DATE_REGEXP = new RegExp(
746
- '^([0-9][0-9][0-9][0-9])' + // [1] year
747
- '-([0-9][0-9])' + // [2] month
748
- '-([0-9][0-9])$'); // [3] day
749
-
750
- var YAML_TIMESTAMP_REGEXP = new RegExp(
751
- '^([0-9][0-9][0-9][0-9])' + // [1] year
752
- '-([0-9][0-9]?)' + // [2] month
753
- '-([0-9][0-9]?)' + // [3] day
754
- '(?:[Tt]|[ \\t]+)' + // ...
755
- '([0-9][0-9]?)' + // [4] hour
756
- ':([0-9][0-9])' + // [5] minute
757
- ':([0-9][0-9])' + // [6] second
758
- '(?:\\.([0-9]*))?' + // [7] fraction
759
- '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
760
- '(?::([0-9][0-9]))?))?$'); // [11] tz_minute
761
-
762
- function resolveYamlTimestamp(data) {
763
- if (data === null) return false;
764
- if (YAML_DATE_REGEXP.exec(data) !== null) return true;
765
- if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
766
- return false;
767
- }
768
-
769
- function constructYamlTimestamp(data) {
770
- var match, year, month, day, hour, minute, second, fraction = 0,
771
- delta = null, tz_hour, tz_minute, date;
772
-
773
- match = YAML_DATE_REGEXP.exec(data);
774
- if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
775
-
776
- if (match === null) throw new Error('Date resolve error');
777
-
778
- // match: [1] year [2] month [3] day
779
-
780
- year = +(match[1]);
781
- month = +(match[2]) - 1; // JS month starts with 0
782
- day = +(match[3]);
783
-
784
- if (!match[4]) { // no hour
785
- return new Date(Date.UTC(year, month, day));
786
- }
787
-
788
- // match: [4] hour [5] minute [6] second [7] fraction
789
-
790
- hour = +(match[4]);
791
- minute = +(match[5]);
792
- second = +(match[6]);
793
-
794
- if (match[7]) {
795
- fraction = match[7].slice(0, 3);
796
- while (fraction.length < 3) { // milli-seconds
797
- fraction += '0';
798
- }
799
- fraction = +fraction;
800
- }
801
-
802
- // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
803
-
804
- if (match[9]) {
805
- tz_hour = +(match[10]);
806
- tz_minute = +(match[11] || 0);
807
- delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
808
- if (match[9] === '-') delta = -delta;
809
- }
810
-
811
- date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
812
-
813
- if (delta) date.setTime(date.getTime() - delta);
814
-
815
- return date;
816
- }
817
-
818
- function representYamlTimestamp(object /*, style*/) {
819
- return object.toISOString();
820
- }
821
-
822
- var timestamp = new type('tag:yaml.org,2002:timestamp', {
823
- kind: 'scalar',
824
- resolve: resolveYamlTimestamp,
825
- construct: constructYamlTimestamp,
826
- instanceOf: Date,
827
- represent: representYamlTimestamp
828
- });
829
-
830
- function resolveYamlMerge(data) {
831
- return data === '<<' || data === null;
832
- }
833
-
834
- var merge = new type('tag:yaml.org,2002:merge', {
835
- kind: 'scalar',
836
- resolve: resolveYamlMerge
837
- });
838
-
839
- /*eslint-disable no-bitwise*/
840
-
841
-
842
-
843
-
844
-
845
- // [ 64, 65, 66 ] -> [ padding, CR, LF ]
846
- var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
847
-
848
-
849
- function resolveYamlBinary(data) {
850
- if (data === null) return false;
851
-
852
- var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
853
-
854
- // Convert one by one.
855
- for (idx = 0; idx < max; idx++) {
856
- code = map.indexOf(data.charAt(idx));
857
-
858
- // Skip CR/LF
859
- if (code > 64) continue;
860
-
861
- // Fail on illegal characters
862
- if (code < 0) return false;
863
-
864
- bitlen += 6;
865
- }
866
-
867
- // If there are any bits left, source was corrupted
868
- return (bitlen % 8) === 0;
869
- }
870
-
871
- function constructYamlBinary(data) {
872
- var idx, tailbits,
873
- input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan
874
- max = input.length,
875
- map = BASE64_MAP,
876
- bits = 0,
877
- result = [];
878
-
879
- // Collect by 6*4 bits (3 bytes)
880
-
881
- for (idx = 0; idx < max; idx++) {
882
- if ((idx % 4 === 0) && idx) {
883
- result.push((bits >> 16) & 0xFF);
884
- result.push((bits >> 8) & 0xFF);
885
- result.push(bits & 0xFF);
886
- }
887
-
888
- bits = (bits << 6) | map.indexOf(input.charAt(idx));
889
- }
890
-
891
- // Dump tail
892
-
893
- tailbits = (max % 4) * 6;
894
-
895
- if (tailbits === 0) {
896
- result.push((bits >> 16) & 0xFF);
897
- result.push((bits >> 8) & 0xFF);
898
- result.push(bits & 0xFF);
899
- } else if (tailbits === 18) {
900
- result.push((bits >> 10) & 0xFF);
901
- result.push((bits >> 2) & 0xFF);
902
- } else if (tailbits === 12) {
903
- result.push((bits >> 4) & 0xFF);
904
- }
905
-
906
- return new Uint8Array(result);
907
- }
908
-
909
- function representYamlBinary(object /*, style*/) {
910
- var result = '', bits = 0, idx, tail,
911
- max = object.length,
912
- map = BASE64_MAP;
913
-
914
- // Convert every three bytes to 4 ASCII characters.
915
-
916
- for (idx = 0; idx < max; idx++) {
917
- if ((idx % 3 === 0) && idx) {
918
- result += map[(bits >> 18) & 0x3F];
919
- result += map[(bits >> 12) & 0x3F];
920
- result += map[(bits >> 6) & 0x3F];
921
- result += map[bits & 0x3F];
922
- }
923
-
924
- bits = (bits << 8) + object[idx];
925
- }
926
-
927
- // Dump tail
928
-
929
- tail = max % 3;
930
-
931
- if (tail === 0) {
932
- result += map[(bits >> 18) & 0x3F];
933
- result += map[(bits >> 12) & 0x3F];
934
- result += map[(bits >> 6) & 0x3F];
935
- result += map[bits & 0x3F];
936
- } else if (tail === 2) {
937
- result += map[(bits >> 10) & 0x3F];
938
- result += map[(bits >> 4) & 0x3F];
939
- result += map[(bits << 2) & 0x3F];
940
- result += map[64];
941
- } else if (tail === 1) {
942
- result += map[(bits >> 2) & 0x3F];
943
- result += map[(bits << 4) & 0x3F];
944
- result += map[64];
945
- result += map[64];
946
- }
947
-
948
- return result;
949
- }
950
-
951
- function isBinary(obj) {
952
- return Object.prototype.toString.call(obj) === '[object Uint8Array]';
953
- }
954
-
955
- var binary = new type('tag:yaml.org,2002:binary', {
956
- kind: 'scalar',
957
- resolve: resolveYamlBinary,
958
- construct: constructYamlBinary,
959
- predicate: isBinary,
960
- represent: representYamlBinary
961
- });
962
-
963
- var _hasOwnProperty$3 = Object.prototype.hasOwnProperty;
964
- var _toString$2 = Object.prototype.toString;
965
-
966
- function resolveYamlOmap(data) {
967
- if (data === null) return true;
968
-
969
- var objectKeys = [], index, length, pair, pairKey, pairHasKey,
970
- object = data;
971
-
972
- for (index = 0, length = object.length; index < length; index += 1) {
973
- pair = object[index];
974
- pairHasKey = false;
975
-
976
- if (_toString$2.call(pair) !== '[object Object]') return false;
977
-
978
- for (pairKey in pair) {
979
- if (_hasOwnProperty$3.call(pair, pairKey)) {
980
- if (!pairHasKey) pairHasKey = true;
981
- else return false;
982
- }
983
- }
984
-
985
- if (!pairHasKey) return false;
986
-
987
- if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
988
- else return false;
989
- }
990
-
991
- return true;
992
- }
993
-
994
- function constructYamlOmap(data) {
995
- return data !== null ? data : [];
996
- }
997
-
998
- var omap = new type('tag:yaml.org,2002:omap', {
999
- kind: 'sequence',
1000
- resolve: resolveYamlOmap,
1001
- construct: constructYamlOmap
1002
- });
1003
-
1004
- var _toString$1 = Object.prototype.toString;
1005
-
1006
- function resolveYamlPairs(data) {
1007
- if (data === null) return true;
1008
-
1009
- var index, length, pair, keys, result,
1010
- object = data;
1011
-
1012
- result = new Array(object.length);
1013
-
1014
- for (index = 0, length = object.length; index < length; index += 1) {
1015
- pair = object[index];
1016
-
1017
- if (_toString$1.call(pair) !== '[object Object]') return false;
1018
-
1019
- keys = Object.keys(pair);
1020
-
1021
- if (keys.length !== 1) return false;
1022
-
1023
- result[index] = [ keys[0], pair[keys[0]] ];
1024
- }
1025
-
1026
- return true;
1027
- }
1028
-
1029
- function constructYamlPairs(data) {
1030
- if (data === null) return [];
1031
-
1032
- var index, length, pair, keys, result,
1033
- object = data;
1034
-
1035
- result = new Array(object.length);
1036
-
1037
- for (index = 0, length = object.length; index < length; index += 1) {
1038
- pair = object[index];
1039
-
1040
- keys = Object.keys(pair);
1041
-
1042
- result[index] = [ keys[0], pair[keys[0]] ];
1043
- }
1044
-
1045
- return result;
1046
- }
1047
-
1048
- var pairs = new type('tag:yaml.org,2002:pairs', {
1049
- kind: 'sequence',
1050
- resolve: resolveYamlPairs,
1051
- construct: constructYamlPairs
1052
- });
1053
-
1054
- var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
1055
-
1056
- function resolveYamlSet(data) {
1057
- if (data === null) return true;
1058
-
1059
- var key, object = data;
1060
-
1061
- for (key in object) {
1062
- if (_hasOwnProperty$2.call(object, key)) {
1063
- if (object[key] !== null) return false;
1064
- }
1065
- }
1066
-
1067
- return true;
1068
- }
1069
-
1070
- function constructYamlSet(data) {
1071
- return data !== null ? data : {};
1072
- }
1073
-
1074
- var set = new type('tag:yaml.org,2002:set', {
1075
- kind: 'mapping',
1076
- resolve: resolveYamlSet,
1077
- construct: constructYamlSet
1078
- });
1079
-
1080
- var _default = core.extend({
1081
- implicit: [
1082
- timestamp,
1083
- merge
1084
- ],
1085
- explicit: [
1086
- binary,
1087
- omap,
1088
- pairs,
1089
- set
1090
- ]
1091
- });
1092
-
1093
- /*eslint-disable max-len,no-use-before-define*/
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
- var _hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1102
-
1103
-
1104
- var CONTEXT_FLOW_IN = 1;
1105
- var CONTEXT_FLOW_OUT = 2;
1106
- var CONTEXT_BLOCK_IN = 3;
1107
- var CONTEXT_BLOCK_OUT = 4;
1108
-
1109
-
1110
- var CHOMPING_CLIP = 1;
1111
- var CHOMPING_STRIP = 2;
1112
- var CHOMPING_KEEP = 3;
1113
-
1114
-
1115
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
1116
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
1117
- var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
1118
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
1119
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1120
-
1121
-
1122
- function _class(obj) { return Object.prototype.toString.call(obj); }
1123
-
1124
- function is_EOL(c) {
1125
- return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);
1126
- }
1127
-
1128
- function is_WHITE_SPACE(c) {
1129
- return (c === 0x09/* Tab */) || (c === 0x20/* Space */);
1130
- }
1131
-
1132
- function is_WS_OR_EOL(c) {
1133
- return (c === 0x09/* Tab */) ||
1134
- (c === 0x20/* Space */) ||
1135
- (c === 0x0A/* LF */) ||
1136
- (c === 0x0D/* CR */);
1137
- }
1138
-
1139
- function is_FLOW_INDICATOR(c) {
1140
- return c === 0x2C/* , */ ||
1141
- c === 0x5B/* [ */ ||
1142
- c === 0x5D/* ] */ ||
1143
- c === 0x7B/* { */ ||
1144
- c === 0x7D/* } */;
1145
- }
1146
-
1147
- function fromHexCode(c) {
1148
- var lc;
1149
-
1150
- if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
1151
- return c - 0x30;
1152
- }
1153
-
1154
- /*eslint-disable no-bitwise*/
1155
- lc = c | 0x20;
1156
-
1157
- if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {
1158
- return lc - 0x61 + 10;
1159
- }
1160
-
1161
- return -1;
1162
- }
1163
-
1164
- function escapedHexLen(c) {
1165
- if (c === 0x78/* x */) { return 2; }
1166
- if (c === 0x75/* u */) { return 4; }
1167
- if (c === 0x55/* U */) { return 8; }
1168
- return 0;
1169
- }
1170
-
1171
- function fromDecimalCode(c) {
1172
- if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
1173
- return c - 0x30;
1174
- }
1175
-
1176
- return -1;
1177
- }
1178
-
1179
- function simpleEscapeSequence(c) {
1180
- /* eslint-disable indent */
1181
- return (c === 0x30/* 0 */) ? '\x00' :
1182
- (c === 0x61/* a */) ? '\x07' :
1183
- (c === 0x62/* b */) ? '\x08' :
1184
- (c === 0x74/* t */) ? '\x09' :
1185
- (c === 0x09/* Tab */) ? '\x09' :
1186
- (c === 0x6E/* n */) ? '\x0A' :
1187
- (c === 0x76/* v */) ? '\x0B' :
1188
- (c === 0x66/* f */) ? '\x0C' :
1189
- (c === 0x72/* r */) ? '\x0D' :
1190
- (c === 0x65/* e */) ? '\x1B' :
1191
- (c === 0x20/* Space */) ? ' ' :
1192
- (c === 0x22/* " */) ? '\x22' :
1193
- (c === 0x2F/* / */) ? '/' :
1194
- (c === 0x5C/* \ */) ? '\x5C' :
1195
- (c === 0x4E/* N */) ? '\x85' :
1196
- (c === 0x5F/* _ */) ? '\xA0' :
1197
- (c === 0x4C/* L */) ? '\u2028' :
1198
- (c === 0x50/* P */) ? '\u2029' : '';
1199
- }
1200
-
1201
- function charFromCodepoint(c) {
1202
- if (c <= 0xFFFF) {
1203
- return String.fromCharCode(c);
1204
- }
1205
- // Encode UTF-16 surrogate pair
1206
- // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
1207
- return String.fromCharCode(
1208
- ((c - 0x010000) >> 10) + 0xD800,
1209
- ((c - 0x010000) & 0x03FF) + 0xDC00
1210
- );
1211
- }
1212
-
1213
- // set a property of a literal object, while protecting against prototype pollution,
1214
- // see https://github.com/nodeca/js-yaml/issues/164 for more details
1215
- function setProperty(object, key, value) {
1216
- // used for this specific key only because Object.defineProperty is slow
1217
- if (key === '__proto__') {
1218
- Object.defineProperty(object, key, {
1219
- configurable: true,
1220
- enumerable: true,
1221
- writable: true,
1222
- value: value
1223
- });
1224
- } else {
1225
- object[key] = value;
1226
- }
1227
- }
1228
-
1229
- var simpleEscapeCheck = new Array(256); // integer, for fast access
1230
- var simpleEscapeMap = new Array(256);
1231
- for (var i = 0; i < 256; i++) {
1232
- simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
1233
- simpleEscapeMap[i] = simpleEscapeSequence(i);
1234
- }
1235
-
1236
-
1237
- function State$1(input, options) {
1238
- this.input = input;
1239
-
1240
- this.filename = options['filename'] || null;
1241
- this.schema = options['schema'] || _default;
1242
- this.onWarning = options['onWarning'] || null;
1243
- // (Hidden) Remove? makes the loader to expect YAML 1.1 documents
1244
- // if such documents have no explicit %YAML directive
1245
- this.legacy = options['legacy'] || false;
1246
-
1247
- this.json = options['json'] || false;
1248
- this.listener = options['listener'] || null;
1249
-
1250
- this.implicitTypes = this.schema.compiledImplicit;
1251
- this.typeMap = this.schema.compiledTypeMap;
1252
-
1253
- this.length = input.length;
1254
- this.position = 0;
1255
- this.line = 0;
1256
- this.lineStart = 0;
1257
- this.lineIndent = 0;
1258
-
1259
- // position of first leading tab in the current line,
1260
- // used to make sure there are no tabs in the indentation
1261
- this.firstTabInLine = -1;
1262
-
1263
- this.documents = [];
1264
-
1265
- /*
1266
- this.version;
1267
- this.checkLineBreaks;
1268
- this.tagMap;
1269
- this.anchorMap;
1270
- this.tag;
1271
- this.anchor;
1272
- this.kind;
1273
- this.result;*/
1274
-
1275
- }
1276
-
1277
-
1278
- function generateError(state, message) {
1279
- var mark = {
1280
- name: state.filename,
1281
- buffer: state.input.slice(0, -1), // omit trailing \0
1282
- position: state.position,
1283
- line: state.line,
1284
- column: state.position - state.lineStart
1285
- };
1286
-
1287
- mark.snippet = snippet(mark);
1288
-
1289
- return new exception(message, mark);
1290
- }
1291
-
1292
- function throwError(state, message) {
1293
- throw generateError(state, message);
1294
- }
1295
-
1296
- function throwWarning(state, message) {
1297
- if (state.onWarning) {
1298
- state.onWarning.call(null, generateError(state, message));
1299
- }
1300
- }
1301
-
1302
-
1303
- var directiveHandlers = {
1304
-
1305
- YAML: function handleYamlDirective(state, name, args) {
1306
-
1307
- var match, major, minor;
1308
-
1309
- if (state.version !== null) {
1310
- throwError(state, 'duplication of %YAML directive');
1311
- }
1312
-
1313
- if (args.length !== 1) {
1314
- throwError(state, 'YAML directive accepts exactly one argument');
1315
- }
1316
-
1317
- match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
1318
-
1319
- if (match === null) {
1320
- throwError(state, 'ill-formed argument of the YAML directive');
1321
- }
1322
-
1323
- major = parseInt(match[1], 10);
1324
- minor = parseInt(match[2], 10);
1325
-
1326
- if (major !== 1) {
1327
- throwError(state, 'unacceptable YAML version of the document');
1328
- }
1329
-
1330
- state.version = args[0];
1331
- state.checkLineBreaks = (minor < 2);
1332
-
1333
- if (minor !== 1 && minor !== 2) {
1334
- throwWarning(state, 'unsupported YAML version of the document');
1335
- }
1336
- },
1337
-
1338
- TAG: function handleTagDirective(state, name, args) {
1339
-
1340
- var handle, prefix;
1341
-
1342
- if (args.length !== 2) {
1343
- throwError(state, 'TAG directive accepts exactly two arguments');
1344
- }
1345
-
1346
- handle = args[0];
1347
- prefix = args[1];
1348
-
1349
- if (!PATTERN_TAG_HANDLE.test(handle)) {
1350
- throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
1351
- }
1352
-
1353
- if (_hasOwnProperty$1.call(state.tagMap, handle)) {
1354
- throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
1355
- }
1356
-
1357
- if (!PATTERN_TAG_URI.test(prefix)) {
1358
- throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');
1359
- }
1360
-
1361
- try {
1362
- prefix = decodeURIComponent(prefix);
1363
- } catch (err) {
1364
- throwError(state, 'tag prefix is malformed: ' + prefix);
1365
- }
1366
-
1367
- state.tagMap[handle] = prefix;
1368
- }
1369
- };
1370
-
1371
-
1372
- function captureSegment(state, start, end, checkJson) {
1373
- var _position, _length, _character, _result;
1374
-
1375
- if (start < end) {
1376
- _result = state.input.slice(start, end);
1377
-
1378
- if (checkJson) {
1379
- for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
1380
- _character = _result.charCodeAt(_position);
1381
- if (!(_character === 0x09 ||
1382
- (0x20 <= _character && _character <= 0x10FFFF))) {
1383
- throwError(state, 'expected valid JSON character');
1384
- }
1385
- }
1386
- } else if (PATTERN_NON_PRINTABLE.test(_result)) {
1387
- throwError(state, 'the stream contains non-printable characters');
1388
- }
1389
-
1390
- state.result += _result;
1391
- }
1392
- }
1393
-
1394
- function mergeMappings(state, destination, source, overridableKeys) {
1395
- var sourceKeys, key, index, quantity;
1396
-
1397
- if (!common.isObject(source)) {
1398
- throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
1399
- }
1400
-
1401
- sourceKeys = Object.keys(source);
1402
-
1403
- for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
1404
- key = sourceKeys[index];
1405
-
1406
- if (!_hasOwnProperty$1.call(destination, key)) {
1407
- setProperty(destination, key, source[key]);
1408
- overridableKeys[key] = true;
1409
- }
1410
- }
1411
- }
1412
-
1413
- function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode,
1414
- startLine, startLineStart, startPos) {
1415
-
1416
- var index, quantity;
1417
-
1418
- // The output is a plain object here, so keys can only be strings.
1419
- // We need to convert keyNode to a string, but doing so can hang the process
1420
- // (deeply nested arrays that explode exponentially using aliases).
1421
- if (Array.isArray(keyNode)) {
1422
- keyNode = Array.prototype.slice.call(keyNode);
1423
-
1424
- for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
1425
- if (Array.isArray(keyNode[index])) {
1426
- throwError(state, 'nested arrays are not supported inside keys');
1427
- }
1428
-
1429
- if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {
1430
- keyNode[index] = '[object Object]';
1431
- }
1432
- }
1433
- }
1434
-
1435
- // Avoid code execution in load() via toString property
1436
- // (still use its own toString for arrays, timestamps,
1437
- // and whatever user schema extensions happen to have @@toStringTag)
1438
- if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {
1439
- keyNode = '[object Object]';
1440
- }
1441
-
1442
-
1443
- keyNode = String(keyNode);
1444
-
1445
- if (_result === null) {
1446
- _result = {};
1447
- }
1448
-
1449
- if (keyTag === 'tag:yaml.org,2002:merge') {
1450
- if (Array.isArray(valueNode)) {
1451
- for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
1452
- mergeMappings(state, _result, valueNode[index], overridableKeys);
1453
- }
1454
- } else {
1455
- mergeMappings(state, _result, valueNode, overridableKeys);
1456
- }
1457
- } else {
1458
- if (!state.json &&
1459
- !_hasOwnProperty$1.call(overridableKeys, keyNode) &&
1460
- _hasOwnProperty$1.call(_result, keyNode)) {
1461
- state.line = startLine || state.line;
1462
- state.lineStart = startLineStart || state.lineStart;
1463
- state.position = startPos || state.position;
1464
- throwError(state, 'duplicated mapping key');
1465
- }
1466
-
1467
- setProperty(_result, keyNode, valueNode);
1468
- delete overridableKeys[keyNode];
1469
- }
1470
-
1471
- return _result;
1472
- }
1473
-
1474
- function readLineBreak(state) {
1475
- var ch;
1476
-
1477
- ch = state.input.charCodeAt(state.position);
1478
-
1479
- if (ch === 0x0A/* LF */) {
1480
- state.position++;
1481
- } else if (ch === 0x0D/* CR */) {
1482
- state.position++;
1483
- if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {
1484
- state.position++;
1485
- }
1486
- } else {
1487
- throwError(state, 'a line break is expected');
1488
- }
1489
-
1490
- state.line += 1;
1491
- state.lineStart = state.position;
1492
- state.firstTabInLine = -1;
1493
- }
1494
-
1495
- function skipSeparationSpace(state, allowComments, checkIndent) {
1496
- var lineBreaks = 0,
1497
- ch = state.input.charCodeAt(state.position);
1498
-
1499
- while (ch !== 0) {
1500
- while (is_WHITE_SPACE(ch)) {
1501
- if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) {
1502
- state.firstTabInLine = state.position;
1503
- }
1504
- ch = state.input.charCodeAt(++state.position);
1505
- }
1506
-
1507
- if (allowComments && ch === 0x23/* # */) {
1508
- do {
1509
- ch = state.input.charCodeAt(++state.position);
1510
- } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);
1511
- }
1512
-
1513
- if (is_EOL(ch)) {
1514
- readLineBreak(state);
1515
-
1516
- ch = state.input.charCodeAt(state.position);
1517
- lineBreaks++;
1518
- state.lineIndent = 0;
1519
-
1520
- while (ch === 0x20/* Space */) {
1521
- state.lineIndent++;
1522
- ch = state.input.charCodeAt(++state.position);
1523
- }
1524
- } else {
1525
- break;
1526
- }
1527
- }
1528
-
1529
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
1530
- throwWarning(state, 'deficient indentation');
1531
- }
1532
-
1533
- return lineBreaks;
1534
- }
1535
-
1536
- function testDocumentSeparator(state) {
1537
- var _position = state.position,
1538
- ch;
1539
-
1540
- ch = state.input.charCodeAt(_position);
1541
-
1542
- // Condition state.position === state.lineStart is tested
1543
- // in parent on each call, for efficiency. No needs to test here again.
1544
- if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&
1545
- ch === state.input.charCodeAt(_position + 1) &&
1546
- ch === state.input.charCodeAt(_position + 2)) {
1547
-
1548
- _position += 3;
1549
-
1550
- ch = state.input.charCodeAt(_position);
1551
-
1552
- if (ch === 0 || is_WS_OR_EOL(ch)) {
1553
- return true;
1554
- }
1555
- }
1556
-
1557
- return false;
1558
- }
1559
-
1560
- function writeFoldedLines(state, count) {
1561
- if (count === 1) {
1562
- state.result += ' ';
1563
- } else if (count > 1) {
1564
- state.result += common.repeat('\n', count - 1);
1565
- }
1566
- }
1567
-
1568
-
1569
- function readPlainScalar(state, nodeIndent, withinFlowCollection) {
1570
- var preceding,
1571
- following,
1572
- captureStart,
1573
- captureEnd,
1574
- hasPendingContent,
1575
- _line,
1576
- _lineStart,
1577
- _lineIndent,
1578
- _kind = state.kind,
1579
- _result = state.result,
1580
- ch;
1581
-
1582
- ch = state.input.charCodeAt(state.position);
1583
-
1584
- if (is_WS_OR_EOL(ch) ||
1585
- is_FLOW_INDICATOR(ch) ||
1586
- ch === 0x23/* # */ ||
1587
- ch === 0x26/* & */ ||
1588
- ch === 0x2A/* * */ ||
1589
- ch === 0x21/* ! */ ||
1590
- ch === 0x7C/* | */ ||
1591
- ch === 0x3E/* > */ ||
1592
- ch === 0x27/* ' */ ||
1593
- ch === 0x22/* " */ ||
1594
- ch === 0x25/* % */ ||
1595
- ch === 0x40/* @ */ ||
1596
- ch === 0x60/* ` */) {
1597
- return false;
1598
- }
1599
-
1600
- if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {
1601
- following = state.input.charCodeAt(state.position + 1);
1602
-
1603
- if (is_WS_OR_EOL(following) ||
1604
- withinFlowCollection && is_FLOW_INDICATOR(following)) {
1605
- return false;
1606
- }
1607
- }
1608
-
1609
- state.kind = 'scalar';
1610
- state.result = '';
1611
- captureStart = captureEnd = state.position;
1612
- hasPendingContent = false;
1613
-
1614
- while (ch !== 0) {
1615
- if (ch === 0x3A/* : */) {
1616
- following = state.input.charCodeAt(state.position + 1);
1617
-
1618
- if (is_WS_OR_EOL(following) ||
1619
- withinFlowCollection && is_FLOW_INDICATOR(following)) {
1620
- break;
1621
- }
1622
-
1623
- } else if (ch === 0x23/* # */) {
1624
- preceding = state.input.charCodeAt(state.position - 1);
1625
-
1626
- if (is_WS_OR_EOL(preceding)) {
1627
- break;
1628
- }
1629
-
1630
- } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
1631
- withinFlowCollection && is_FLOW_INDICATOR(ch)) {
1632
- break;
1633
-
1634
- } else if (is_EOL(ch)) {
1635
- _line = state.line;
1636
- _lineStart = state.lineStart;
1637
- _lineIndent = state.lineIndent;
1638
- skipSeparationSpace(state, false, -1);
1639
-
1640
- if (state.lineIndent >= nodeIndent) {
1641
- hasPendingContent = true;
1642
- ch = state.input.charCodeAt(state.position);
1643
- continue;
1644
- } else {
1645
- state.position = captureEnd;
1646
- state.line = _line;
1647
- state.lineStart = _lineStart;
1648
- state.lineIndent = _lineIndent;
1649
- break;
1650
- }
1651
- }
1652
-
1653
- if (hasPendingContent) {
1654
- captureSegment(state, captureStart, captureEnd, false);
1655
- writeFoldedLines(state, state.line - _line);
1656
- captureStart = captureEnd = state.position;
1657
- hasPendingContent = false;
1658
- }
1659
-
1660
- if (!is_WHITE_SPACE(ch)) {
1661
- captureEnd = state.position + 1;
1662
- }
1663
-
1664
- ch = state.input.charCodeAt(++state.position);
1665
- }
1666
-
1667
- captureSegment(state, captureStart, captureEnd, false);
1668
-
1669
- if (state.result) {
1670
- return true;
1671
- }
1672
-
1673
- state.kind = _kind;
1674
- state.result = _result;
1675
- return false;
1676
- }
1677
-
1678
- function readSingleQuotedScalar(state, nodeIndent) {
1679
- var ch,
1680
- captureStart, captureEnd;
1681
-
1682
- ch = state.input.charCodeAt(state.position);
1683
-
1684
- if (ch !== 0x27/* ' */) {
1685
- return false;
1686
- }
1687
-
1688
- state.kind = 'scalar';
1689
- state.result = '';
1690
- state.position++;
1691
- captureStart = captureEnd = state.position;
1692
-
1693
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1694
- if (ch === 0x27/* ' */) {
1695
- captureSegment(state, captureStart, state.position, true);
1696
- ch = state.input.charCodeAt(++state.position);
1697
-
1698
- if (ch === 0x27/* ' */) {
1699
- captureStart = state.position;
1700
- state.position++;
1701
- captureEnd = state.position;
1702
- } else {
1703
- return true;
1704
- }
1705
-
1706
- } else if (is_EOL(ch)) {
1707
- captureSegment(state, captureStart, captureEnd, true);
1708
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1709
- captureStart = captureEnd = state.position;
1710
-
1711
- } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1712
- throwError(state, 'unexpected end of the document within a single quoted scalar');
1713
-
1714
- } else {
1715
- state.position++;
1716
- captureEnd = state.position;
1717
- }
1718
- }
1719
-
1720
- throwError(state, 'unexpected end of the stream within a single quoted scalar');
1721
- }
1722
-
1723
- function readDoubleQuotedScalar(state, nodeIndent) {
1724
- var captureStart,
1725
- captureEnd,
1726
- hexLength,
1727
- hexResult,
1728
- tmp,
1729
- ch;
1730
-
1731
- ch = state.input.charCodeAt(state.position);
1732
-
1733
- if (ch !== 0x22/* " */) {
1734
- return false;
1735
- }
1736
-
1737
- state.kind = 'scalar';
1738
- state.result = '';
1739
- state.position++;
1740
- captureStart = captureEnd = state.position;
1741
-
1742
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1743
- if (ch === 0x22/* " */) {
1744
- captureSegment(state, captureStart, state.position, true);
1745
- state.position++;
1746
- return true;
1747
-
1748
- } else if (ch === 0x5C/* \ */) {
1749
- captureSegment(state, captureStart, state.position, true);
1750
- ch = state.input.charCodeAt(++state.position);
1751
-
1752
- if (is_EOL(ch)) {
1753
- skipSeparationSpace(state, false, nodeIndent);
1754
-
1755
- // TODO: rework to inline fn with no type cast?
1756
- } else if (ch < 256 && simpleEscapeCheck[ch]) {
1757
- state.result += simpleEscapeMap[ch];
1758
- state.position++;
1759
-
1760
- } else if ((tmp = escapedHexLen(ch)) > 0) {
1761
- hexLength = tmp;
1762
- hexResult = 0;
1763
-
1764
- for (; hexLength > 0; hexLength--) {
1765
- ch = state.input.charCodeAt(++state.position);
1766
-
1767
- if ((tmp = fromHexCode(ch)) >= 0) {
1768
- hexResult = (hexResult << 4) + tmp;
1769
-
1770
- } else {
1771
- throwError(state, 'expected hexadecimal character');
1772
- }
1773
- }
1774
-
1775
- state.result += charFromCodepoint(hexResult);
1776
-
1777
- state.position++;
1778
-
1779
- } else {
1780
- throwError(state, 'unknown escape sequence');
1781
- }
1782
-
1783
- captureStart = captureEnd = state.position;
1784
-
1785
- } else if (is_EOL(ch)) {
1786
- captureSegment(state, captureStart, captureEnd, true);
1787
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1788
- captureStart = captureEnd = state.position;
1789
-
1790
- } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1791
- throwError(state, 'unexpected end of the document within a double quoted scalar');
1792
-
1793
- } else {
1794
- state.position++;
1795
- captureEnd = state.position;
1796
- }
1797
- }
1798
-
1799
- throwError(state, 'unexpected end of the stream within a double quoted scalar');
1800
- }
1801
-
1802
- function readFlowCollection(state, nodeIndent) {
1803
- var readNext = true,
1804
- _line,
1805
- _lineStart,
1806
- _pos,
1807
- _tag = state.tag,
1808
- _result,
1809
- _anchor = state.anchor,
1810
- following,
1811
- terminator,
1812
- isPair,
1813
- isExplicitPair,
1814
- isMapping,
1815
- overridableKeys = Object.create(null),
1816
- keyNode,
1817
- keyTag,
1818
- valueNode,
1819
- ch;
1820
-
1821
- ch = state.input.charCodeAt(state.position);
1822
-
1823
- if (ch === 0x5B/* [ */) {
1824
- terminator = 0x5D;/* ] */
1825
- isMapping = false;
1826
- _result = [];
1827
- } else if (ch === 0x7B/* { */) {
1828
- terminator = 0x7D;/* } */
1829
- isMapping = true;
1830
- _result = {};
1831
- } else {
1832
- return false;
1833
- }
1834
-
1835
- if (state.anchor !== null) {
1836
- state.anchorMap[state.anchor] = _result;
1837
- }
1838
-
1839
- ch = state.input.charCodeAt(++state.position);
1840
-
1841
- while (ch !== 0) {
1842
- skipSeparationSpace(state, true, nodeIndent);
1843
-
1844
- ch = state.input.charCodeAt(state.position);
1845
-
1846
- if (ch === terminator) {
1847
- state.position++;
1848
- state.tag = _tag;
1849
- state.anchor = _anchor;
1850
- state.kind = isMapping ? 'mapping' : 'sequence';
1851
- state.result = _result;
1852
- return true;
1853
- } else if (!readNext) {
1854
- throwError(state, 'missed comma between flow collection entries');
1855
- } else if (ch === 0x2C/* , */) {
1856
- // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4
1857
- throwError(state, "expected the node content, but found ','");
1858
- }
1859
-
1860
- keyTag = keyNode = valueNode = null;
1861
- isPair = isExplicitPair = false;
1862
-
1863
- if (ch === 0x3F/* ? */) {
1864
- following = state.input.charCodeAt(state.position + 1);
1865
-
1866
- if (is_WS_OR_EOL(following)) {
1867
- isPair = isExplicitPair = true;
1868
- state.position++;
1869
- skipSeparationSpace(state, true, nodeIndent);
1870
- }
1871
- }
1872
-
1873
- _line = state.line; // Save the current line.
1874
- _lineStart = state.lineStart;
1875
- _pos = state.position;
1876
- composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1877
- keyTag = state.tag;
1878
- keyNode = state.result;
1879
- skipSeparationSpace(state, true, nodeIndent);
1880
-
1881
- ch = state.input.charCodeAt(state.position);
1882
-
1883
- if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {
1884
- isPair = true;
1885
- ch = state.input.charCodeAt(++state.position);
1886
- skipSeparationSpace(state, true, nodeIndent);
1887
- composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1888
- valueNode = state.result;
1889
- }
1890
-
1891
- if (isMapping) {
1892
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
1893
- } else if (isPair) {
1894
- _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
1895
- } else {
1896
- _result.push(keyNode);
1897
- }
1898
-
1899
- skipSeparationSpace(state, true, nodeIndent);
1900
-
1901
- ch = state.input.charCodeAt(state.position);
1902
-
1903
- if (ch === 0x2C/* , */) {
1904
- readNext = true;
1905
- ch = state.input.charCodeAt(++state.position);
1906
- } else {
1907
- readNext = false;
1908
- }
1909
- }
1910
-
1911
- throwError(state, 'unexpected end of the stream within a flow collection');
1912
- }
1913
-
1914
- function readBlockScalar(state, nodeIndent) {
1915
- var captureStart,
1916
- folding,
1917
- chomping = CHOMPING_CLIP,
1918
- didReadContent = false,
1919
- detectedIndent = false,
1920
- textIndent = nodeIndent,
1921
- emptyLines = 0,
1922
- atMoreIndented = false,
1923
- tmp,
1924
- ch;
1925
-
1926
- ch = state.input.charCodeAt(state.position);
1927
-
1928
- if (ch === 0x7C/* | */) {
1929
- folding = false;
1930
- } else if (ch === 0x3E/* > */) {
1931
- folding = true;
1932
- } else {
1933
- return false;
1934
- }
1935
-
1936
- state.kind = 'scalar';
1937
- state.result = '';
1938
-
1939
- while (ch !== 0) {
1940
- ch = state.input.charCodeAt(++state.position);
1941
-
1942
- if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {
1943
- if (CHOMPING_CLIP === chomping) {
1944
- chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;
1945
- } else {
1946
- throwError(state, 'repeat of a chomping mode identifier');
1947
- }
1948
-
1949
- } else if ((tmp = fromDecimalCode(ch)) >= 0) {
1950
- if (tmp === 0) {
1951
- throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
1952
- } else if (!detectedIndent) {
1953
- textIndent = nodeIndent + tmp - 1;
1954
- detectedIndent = true;
1955
- } else {
1956
- throwError(state, 'repeat of an indentation width identifier');
1957
- }
1958
-
1959
- } else {
1960
- break;
1961
- }
1962
- }
1963
-
1964
- if (is_WHITE_SPACE(ch)) {
1965
- do { ch = state.input.charCodeAt(++state.position); }
1966
- while (is_WHITE_SPACE(ch));
1967
-
1968
- if (ch === 0x23/* # */) {
1969
- do { ch = state.input.charCodeAt(++state.position); }
1970
- while (!is_EOL(ch) && (ch !== 0));
1971
- }
1972
- }
1973
-
1974
- while (ch !== 0) {
1975
- readLineBreak(state);
1976
- state.lineIndent = 0;
1977
-
1978
- ch = state.input.charCodeAt(state.position);
1979
-
1980
- while ((!detectedIndent || state.lineIndent < textIndent) &&
1981
- (ch === 0x20/* Space */)) {
1982
- state.lineIndent++;
1983
- ch = state.input.charCodeAt(++state.position);
1984
- }
1985
-
1986
- if (!detectedIndent && state.lineIndent > textIndent) {
1987
- textIndent = state.lineIndent;
1988
- }
1989
-
1990
- if (is_EOL(ch)) {
1991
- emptyLines++;
1992
- continue;
1993
- }
1994
-
1995
- // End of the scalar.
1996
- if (state.lineIndent < textIndent) {
1997
-
1998
- // Perform the chomping.
1999
- if (chomping === CHOMPING_KEEP) {
2000
- state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2001
- } else if (chomping === CHOMPING_CLIP) {
2002
- if (didReadContent) { // i.e. only if the scalar is not empty.
2003
- state.result += '\n';
2004
- }
2005
- }
2006
-
2007
- // Break this `while` cycle and go to the funciton's epilogue.
2008
- break;
2009
- }
2010
-
2011
- // Folded style: use fancy rules to handle line breaks.
2012
- if (folding) {
2013
-
2014
- // Lines starting with white space characters (more-indented lines) are not folded.
2015
- if (is_WHITE_SPACE(ch)) {
2016
- atMoreIndented = true;
2017
- // except for the first content line (cf. Example 8.1)
2018
- state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2019
-
2020
- // End of more-indented block.
2021
- } else if (atMoreIndented) {
2022
- atMoreIndented = false;
2023
- state.result += common.repeat('\n', emptyLines + 1);
2024
-
2025
- // Just one line break - perceive as the same line.
2026
- } else if (emptyLines === 0) {
2027
- if (didReadContent) { // i.e. only if we have already read some scalar content.
2028
- state.result += ' ';
2029
- }
2030
-
2031
- // Several line breaks - perceive as different lines.
2032
- } else {
2033
- state.result += common.repeat('\n', emptyLines);
2034
- }
2035
-
2036
- // Literal style: just add exact number of line breaks between content lines.
2037
- } else {
2038
- // Keep all line breaks except the header line break.
2039
- state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2040
- }
2041
-
2042
- didReadContent = true;
2043
- detectedIndent = true;
2044
- emptyLines = 0;
2045
- captureStart = state.position;
2046
-
2047
- while (!is_EOL(ch) && (ch !== 0)) {
2048
- ch = state.input.charCodeAt(++state.position);
2049
- }
2050
-
2051
- captureSegment(state, captureStart, state.position, false);
2052
- }
2053
-
2054
- return true;
2055
- }
2056
-
2057
- function readBlockSequence(state, nodeIndent) {
2058
- var _line,
2059
- _tag = state.tag,
2060
- _anchor = state.anchor,
2061
- _result = [],
2062
- following,
2063
- detected = false,
2064
- ch;
2065
-
2066
- // there is a leading tab before this token, so it can't be a block sequence/mapping;
2067
- // it can still be flow sequence/mapping or a scalar
2068
- if (state.firstTabInLine !== -1) return false;
2069
-
2070
- if (state.anchor !== null) {
2071
- state.anchorMap[state.anchor] = _result;
2072
- }
2073
-
2074
- ch = state.input.charCodeAt(state.position);
2075
-
2076
- while (ch !== 0) {
2077
- if (state.firstTabInLine !== -1) {
2078
- state.position = state.firstTabInLine;
2079
- throwError(state, 'tab characters must not be used in indentation');
2080
- }
2081
-
2082
- if (ch !== 0x2D/* - */) {
2083
- break;
2084
- }
2085
-
2086
- following = state.input.charCodeAt(state.position + 1);
2087
-
2088
- if (!is_WS_OR_EOL(following)) {
2089
- break;
2090
- }
2091
-
2092
- detected = true;
2093
- state.position++;
2094
-
2095
- if (skipSeparationSpace(state, true, -1)) {
2096
- if (state.lineIndent <= nodeIndent) {
2097
- _result.push(null);
2098
- ch = state.input.charCodeAt(state.position);
2099
- continue;
2100
- }
2101
- }
2102
-
2103
- _line = state.line;
2104
- composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
2105
- _result.push(state.result);
2106
- skipSeparationSpace(state, true, -1);
2107
-
2108
- ch = state.input.charCodeAt(state.position);
2109
-
2110
- if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
2111
- throwError(state, 'bad indentation of a sequence entry');
2112
- } else if (state.lineIndent < nodeIndent) {
2113
- break;
2114
- }
2115
- }
2116
-
2117
- if (detected) {
2118
- state.tag = _tag;
2119
- state.anchor = _anchor;
2120
- state.kind = 'sequence';
2121
- state.result = _result;
2122
- return true;
2123
- }
2124
- return false;
2125
- }
2126
-
2127
- function readBlockMapping(state, nodeIndent, flowIndent) {
2128
- var following,
2129
- allowCompact,
2130
- _line,
2131
- _keyLine,
2132
- _keyLineStart,
2133
- _keyPos,
2134
- _tag = state.tag,
2135
- _anchor = state.anchor,
2136
- _result = {},
2137
- overridableKeys = Object.create(null),
2138
- keyTag = null,
2139
- keyNode = null,
2140
- valueNode = null,
2141
- atExplicitKey = false,
2142
- detected = false,
2143
- ch;
2144
-
2145
- // there is a leading tab before this token, so it can't be a block sequence/mapping;
2146
- // it can still be flow sequence/mapping or a scalar
2147
- if (state.firstTabInLine !== -1) return false;
2148
-
2149
- if (state.anchor !== null) {
2150
- state.anchorMap[state.anchor] = _result;
2151
- }
2152
-
2153
- ch = state.input.charCodeAt(state.position);
2154
-
2155
- while (ch !== 0) {
2156
- if (!atExplicitKey && state.firstTabInLine !== -1) {
2157
- state.position = state.firstTabInLine;
2158
- throwError(state, 'tab characters must not be used in indentation');
2159
- }
2160
-
2161
- following = state.input.charCodeAt(state.position + 1);
2162
- _line = state.line; // Save the current line.
2163
-
2164
- //
2165
- // Explicit notation case. There are two separate blocks:
2166
- // first for the key (denoted by "?") and second for the value (denoted by ":")
2167
- //
2168
- if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {
2169
-
2170
- if (ch === 0x3F/* ? */) {
2171
- if (atExplicitKey) {
2172
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2173
- keyTag = keyNode = valueNode = null;
2174
- }
2175
-
2176
- detected = true;
2177
- atExplicitKey = true;
2178
- allowCompact = true;
2179
-
2180
- } else if (atExplicitKey) {
2181
- // i.e. 0x3A/* : */ === character after the explicit key.
2182
- atExplicitKey = false;
2183
- allowCompact = true;
2184
-
2185
- } else {
2186
- throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
2187
- }
2188
-
2189
- state.position += 1;
2190
- ch = following;
2191
-
2192
- //
2193
- // Implicit notation case. Flow-style node as the key first, then ":", and the value.
2194
- //
2195
- } else {
2196
- _keyLine = state.line;
2197
- _keyLineStart = state.lineStart;
2198
- _keyPos = state.position;
2199
-
2200
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
2201
- // Neither implicit nor explicit notation.
2202
- // Reading is done. Go to the epilogue.
2203
- break;
2204
- }
2205
-
2206
- if (state.line === _line) {
2207
- ch = state.input.charCodeAt(state.position);
2208
-
2209
- while (is_WHITE_SPACE(ch)) {
2210
- ch = state.input.charCodeAt(++state.position);
2211
- }
2212
-
2213
- if (ch === 0x3A/* : */) {
2214
- ch = state.input.charCodeAt(++state.position);
2215
-
2216
- if (!is_WS_OR_EOL(ch)) {
2217
- throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');
2218
- }
2219
-
2220
- if (atExplicitKey) {
2221
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2222
- keyTag = keyNode = valueNode = null;
2223
- }
2224
-
2225
- detected = true;
2226
- atExplicitKey = false;
2227
- allowCompact = false;
2228
- keyTag = state.tag;
2229
- keyNode = state.result;
2230
-
2231
- } else if (detected) {
2232
- throwError(state, 'can not read an implicit mapping pair; a colon is missed');
2233
-
2234
- } else {
2235
- state.tag = _tag;
2236
- state.anchor = _anchor;
2237
- return true; // Keep the result of `composeNode`.
2238
- }
2239
-
2240
- } else if (detected) {
2241
- throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');
2242
-
2243
- } else {
2244
- state.tag = _tag;
2245
- state.anchor = _anchor;
2246
- return true; // Keep the result of `composeNode`.
2247
- }
2248
- }
2249
-
2250
- //
2251
- // Common reading code for both explicit and implicit notations.
2252
- //
2253
- if (state.line === _line || state.lineIndent > nodeIndent) {
2254
- if (atExplicitKey) {
2255
- _keyLine = state.line;
2256
- _keyLineStart = state.lineStart;
2257
- _keyPos = state.position;
2258
- }
2259
-
2260
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
2261
- if (atExplicitKey) {
2262
- keyNode = state.result;
2263
- } else {
2264
- valueNode = state.result;
2265
- }
2266
- }
2267
-
2268
- if (!atExplicitKey) {
2269
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
2270
- keyTag = keyNode = valueNode = null;
2271
- }
2272
-
2273
- skipSeparationSpace(state, true, -1);
2274
- ch = state.input.charCodeAt(state.position);
2275
- }
2276
-
2277
- if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
2278
- throwError(state, 'bad indentation of a mapping entry');
2279
- } else if (state.lineIndent < nodeIndent) {
2280
- break;
2281
- }
2282
- }
2283
-
2284
- //
2285
- // Epilogue.
2286
- //
2287
-
2288
- // Special case: last mapping's node contains only the key in explicit notation.
2289
- if (atExplicitKey) {
2290
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2291
- }
2292
-
2293
- // Expose the resulting mapping.
2294
- if (detected) {
2295
- state.tag = _tag;
2296
- state.anchor = _anchor;
2297
- state.kind = 'mapping';
2298
- state.result = _result;
2299
- }
2300
-
2301
- return detected;
2302
- }
2303
-
2304
- function readTagProperty(state) {
2305
- var _position,
2306
- isVerbatim = false,
2307
- isNamed = false,
2308
- tagHandle,
2309
- tagName,
2310
- ch;
2311
-
2312
- ch = state.input.charCodeAt(state.position);
2313
-
2314
- if (ch !== 0x21/* ! */) return false;
2315
-
2316
- if (state.tag !== null) {
2317
- throwError(state, 'duplication of a tag property');
2318
- }
2319
-
2320
- ch = state.input.charCodeAt(++state.position);
2321
-
2322
- if (ch === 0x3C/* < */) {
2323
- isVerbatim = true;
2324
- ch = state.input.charCodeAt(++state.position);
2325
-
2326
- } else if (ch === 0x21/* ! */) {
2327
- isNamed = true;
2328
- tagHandle = '!!';
2329
- ch = state.input.charCodeAt(++state.position);
2330
-
2331
- } else {
2332
- tagHandle = '!';
2333
- }
2334
-
2335
- _position = state.position;
2336
-
2337
- if (isVerbatim) {
2338
- do { ch = state.input.charCodeAt(++state.position); }
2339
- while (ch !== 0 && ch !== 0x3E/* > */);
2340
-
2341
- if (state.position < state.length) {
2342
- tagName = state.input.slice(_position, state.position);
2343
- ch = state.input.charCodeAt(++state.position);
2344
- } else {
2345
- throwError(state, 'unexpected end of the stream within a verbatim tag');
2346
- }
2347
- } else {
2348
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2349
-
2350
- if (ch === 0x21/* ! */) {
2351
- if (!isNamed) {
2352
- tagHandle = state.input.slice(_position - 1, state.position + 1);
2353
-
2354
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
2355
- throwError(state, 'named tag handle cannot contain such characters');
2356
- }
2357
-
2358
- isNamed = true;
2359
- _position = state.position + 1;
2360
- } else {
2361
- throwError(state, 'tag suffix cannot contain exclamation marks');
2362
- }
2363
- }
2364
-
2365
- ch = state.input.charCodeAt(++state.position);
2366
- }
2367
-
2368
- tagName = state.input.slice(_position, state.position);
2369
-
2370
- if (PATTERN_FLOW_INDICATORS.test(tagName)) {
2371
- throwError(state, 'tag suffix cannot contain flow indicator characters');
2372
- }
2373
- }
2374
-
2375
- if (tagName && !PATTERN_TAG_URI.test(tagName)) {
2376
- throwError(state, 'tag name cannot contain such characters: ' + tagName);
2377
- }
2378
-
2379
- try {
2380
- tagName = decodeURIComponent(tagName);
2381
- } catch (err) {
2382
- throwError(state, 'tag name is malformed: ' + tagName);
2383
- }
2384
-
2385
- if (isVerbatim) {
2386
- state.tag = tagName;
2387
-
2388
- } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) {
2389
- state.tag = state.tagMap[tagHandle] + tagName;
2390
-
2391
- } else if (tagHandle === '!') {
2392
- state.tag = '!' + tagName;
2393
-
2394
- } else if (tagHandle === '!!') {
2395
- state.tag = 'tag:yaml.org,2002:' + tagName;
2396
-
2397
- } else {
2398
- throwError(state, 'undeclared tag handle "' + tagHandle + '"');
2399
- }
2400
-
2401
- return true;
2402
- }
2403
-
2404
- function readAnchorProperty(state) {
2405
- var _position,
2406
- ch;
2407
-
2408
- ch = state.input.charCodeAt(state.position);
2409
-
2410
- if (ch !== 0x26/* & */) return false;
2411
-
2412
- if (state.anchor !== null) {
2413
- throwError(state, 'duplication of an anchor property');
2414
- }
2415
-
2416
- ch = state.input.charCodeAt(++state.position);
2417
- _position = state.position;
2418
-
2419
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
2420
- ch = state.input.charCodeAt(++state.position);
2421
- }
2422
-
2423
- if (state.position === _position) {
2424
- throwError(state, 'name of an anchor node must contain at least one character');
2425
- }
2426
-
2427
- state.anchor = state.input.slice(_position, state.position);
2428
- return true;
2429
- }
2430
-
2431
- function readAlias(state) {
2432
- var _position, alias,
2433
- ch;
2434
-
2435
- ch = state.input.charCodeAt(state.position);
2436
-
2437
- if (ch !== 0x2A/* * */) return false;
2438
-
2439
- ch = state.input.charCodeAt(++state.position);
2440
- _position = state.position;
2441
-
2442
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
2443
- ch = state.input.charCodeAt(++state.position);
2444
- }
2445
-
2446
- if (state.position === _position) {
2447
- throwError(state, 'name of an alias node must contain at least one character');
2448
- }
2449
-
2450
- alias = state.input.slice(_position, state.position);
2451
-
2452
- if (!_hasOwnProperty$1.call(state.anchorMap, alias)) {
2453
- throwError(state, 'unidentified alias "' + alias + '"');
2454
- }
2455
-
2456
- state.result = state.anchorMap[alias];
2457
- skipSeparationSpace(state, true, -1);
2458
- return true;
2459
- }
2460
-
2461
- function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
2462
- var allowBlockStyles,
2463
- allowBlockScalars,
2464
- allowBlockCollections,
2465
- indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this<parent
2466
- atNewLine = false,
2467
- hasContent = false,
2468
- typeIndex,
2469
- typeQuantity,
2470
- typeList,
2471
- type,
2472
- flowIndent,
2473
- blockIndent;
2474
-
2475
- if (state.listener !== null) {
2476
- state.listener('open', state);
2477
- }
2478
-
2479
- state.tag = null;
2480
- state.anchor = null;
2481
- state.kind = null;
2482
- state.result = null;
2483
-
2484
- allowBlockStyles = allowBlockScalars = allowBlockCollections =
2485
- CONTEXT_BLOCK_OUT === nodeContext ||
2486
- CONTEXT_BLOCK_IN === nodeContext;
2487
-
2488
- if (allowToSeek) {
2489
- if (skipSeparationSpace(state, true, -1)) {
2490
- atNewLine = true;
2491
-
2492
- if (state.lineIndent > parentIndent) {
2493
- indentStatus = 1;
2494
- } else if (state.lineIndent === parentIndent) {
2495
- indentStatus = 0;
2496
- } else if (state.lineIndent < parentIndent) {
2497
- indentStatus = -1;
2498
- }
2499
- }
2500
- }
2501
-
2502
- if (indentStatus === 1) {
2503
- while (readTagProperty(state) || readAnchorProperty(state)) {
2504
- if (skipSeparationSpace(state, true, -1)) {
2505
- atNewLine = true;
2506
- allowBlockCollections = allowBlockStyles;
2507
-
2508
- if (state.lineIndent > parentIndent) {
2509
- indentStatus = 1;
2510
- } else if (state.lineIndent === parentIndent) {
2511
- indentStatus = 0;
2512
- } else if (state.lineIndent < parentIndent) {
2513
- indentStatus = -1;
2514
- }
2515
- } else {
2516
- allowBlockCollections = false;
2517
- }
2518
- }
2519
- }
2520
-
2521
- if (allowBlockCollections) {
2522
- allowBlockCollections = atNewLine || allowCompact;
2523
- }
2524
-
2525
- if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
2526
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
2527
- flowIndent = parentIndent;
2528
- } else {
2529
- flowIndent = parentIndent + 1;
2530
- }
2531
-
2532
- blockIndent = state.position - state.lineStart;
2533
-
2534
- if (indentStatus === 1) {
2535
- if (allowBlockCollections &&
2536
- (readBlockSequence(state, blockIndent) ||
2537
- readBlockMapping(state, blockIndent, flowIndent)) ||
2538
- readFlowCollection(state, flowIndent)) {
2539
- hasContent = true;
2540
- } else {
2541
- if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
2542
- readSingleQuotedScalar(state, flowIndent) ||
2543
- readDoubleQuotedScalar(state, flowIndent)) {
2544
- hasContent = true;
2545
-
2546
- } else if (readAlias(state)) {
2547
- hasContent = true;
2548
-
2549
- if (state.tag !== null || state.anchor !== null) {
2550
- throwError(state, 'alias node should not have any properties');
2551
- }
2552
-
2553
- } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
2554
- hasContent = true;
2555
-
2556
- if (state.tag === null) {
2557
- state.tag = '?';
2558
- }
2559
- }
2560
-
2561
- if (state.anchor !== null) {
2562
- state.anchorMap[state.anchor] = state.result;
2563
- }
2564
- }
2565
- } else if (indentStatus === 0) {
2566
- // Special case: block sequences are allowed to have same indentation level as the parent.
2567
- // http://www.yaml.org/spec/1.2/spec.html#id2799784
2568
- hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
2569
- }
2570
- }
2571
-
2572
- if (state.tag === null) {
2573
- if (state.anchor !== null) {
2574
- state.anchorMap[state.anchor] = state.result;
2575
- }
2576
-
2577
- } else if (state.tag === '?') {
2578
- // Implicit resolving is not allowed for non-scalar types, and '?'
2579
- // non-specific tag is only automatically assigned to plain scalars.
2580
- //
2581
- // We only need to check kind conformity in case user explicitly assigns '?'
2582
- // tag, for example like this: "!<?> [0]"
2583
- //
2584
- if (state.result !== null && state.kind !== 'scalar') {
2585
- throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
2586
- }
2587
-
2588
- for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
2589
- type = state.implicitTypes[typeIndex];
2590
-
2591
- if (type.resolve(state.result)) { // `state.result` updated in resolver if matched
2592
- state.result = type.construct(state.result);
2593
- state.tag = type.tag;
2594
- if (state.anchor !== null) {
2595
- state.anchorMap[state.anchor] = state.result;
2596
- }
2597
- break;
2598
- }
2599
- }
2600
- } else if (state.tag !== '!') {
2601
- if (_hasOwnProperty$1.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
2602
- type = state.typeMap[state.kind || 'fallback'][state.tag];
2603
- } else {
2604
- // looking for multi type
2605
- type = null;
2606
- typeList = state.typeMap.multi[state.kind || 'fallback'];
2607
-
2608
- for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
2609
- if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
2610
- type = typeList[typeIndex];
2611
- break;
2612
- }
2613
- }
2614
- }
2615
-
2616
- if (!type) {
2617
- throwError(state, 'unknown tag !<' + state.tag + '>');
2618
- }
2619
-
2620
- if (state.result !== null && type.kind !== state.kind) {
2621
- throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
2622
- }
2623
-
2624
- if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched
2625
- throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');
2626
- } else {
2627
- state.result = type.construct(state.result, state.tag);
2628
- if (state.anchor !== null) {
2629
- state.anchorMap[state.anchor] = state.result;
2630
- }
2631
- }
2632
- }
2633
-
2634
- if (state.listener !== null) {
2635
- state.listener('close', state);
2636
- }
2637
- return state.tag !== null || state.anchor !== null || hasContent;
2638
- }
2639
-
2640
- function readDocument(state) {
2641
- var documentStart = state.position,
2642
- _position,
2643
- directiveName,
2644
- directiveArgs,
2645
- hasDirectives = false,
2646
- ch;
2647
-
2648
- state.version = null;
2649
- state.checkLineBreaks = state.legacy;
2650
- state.tagMap = Object.create(null);
2651
- state.anchorMap = Object.create(null);
2652
-
2653
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
2654
- skipSeparationSpace(state, true, -1);
2655
-
2656
- ch = state.input.charCodeAt(state.position);
2657
-
2658
- if (state.lineIndent > 0 || ch !== 0x25/* % */) {
2659
- break;
2660
- }
2661
-
2662
- hasDirectives = true;
2663
- ch = state.input.charCodeAt(++state.position);
2664
- _position = state.position;
2665
-
2666
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2667
- ch = state.input.charCodeAt(++state.position);
2668
- }
2669
-
2670
- directiveName = state.input.slice(_position, state.position);
2671
- directiveArgs = [];
2672
-
2673
- if (directiveName.length < 1) {
2674
- throwError(state, 'directive name must not be less than one character in length');
2675
- }
2676
-
2677
- while (ch !== 0) {
2678
- while (is_WHITE_SPACE(ch)) {
2679
- ch = state.input.charCodeAt(++state.position);
2680
- }
2681
-
2682
- if (ch === 0x23/* # */) {
2683
- do { ch = state.input.charCodeAt(++state.position); }
2684
- while (ch !== 0 && !is_EOL(ch));
2685
- break;
2686
- }
2687
-
2688
- if (is_EOL(ch)) break;
2689
-
2690
- _position = state.position;
2691
-
2692
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2693
- ch = state.input.charCodeAt(++state.position);
2694
- }
2695
-
2696
- directiveArgs.push(state.input.slice(_position, state.position));
2697
- }
2698
-
2699
- if (ch !== 0) readLineBreak(state);
2700
-
2701
- if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) {
2702
- directiveHandlers[directiveName](state, directiveName, directiveArgs);
2703
- } else {
2704
- throwWarning(state, 'unknown document directive "' + directiveName + '"');
2705
- }
2706
- }
2707
-
2708
- skipSeparationSpace(state, true, -1);
2709
-
2710
- if (state.lineIndent === 0 &&
2711
- state.input.charCodeAt(state.position) === 0x2D/* - */ &&
2712
- state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&
2713
- state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {
2714
- state.position += 3;
2715
- skipSeparationSpace(state, true, -1);
2716
-
2717
- } else if (hasDirectives) {
2718
- throwError(state, 'directives end mark is expected');
2719
- }
2720
-
2721
- composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
2722
- skipSeparationSpace(state, true, -1);
2723
-
2724
- if (state.checkLineBreaks &&
2725
- PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
2726
- throwWarning(state, 'non-ASCII line breaks are interpreted as content');
2727
- }
2728
-
2729
- state.documents.push(state.result);
2730
-
2731
- if (state.position === state.lineStart && testDocumentSeparator(state)) {
2732
-
2733
- if (state.input.charCodeAt(state.position) === 0x2E/* . */) {
2734
- state.position += 3;
2735
- skipSeparationSpace(state, true, -1);
2736
- }
2737
- return;
2738
- }
2739
-
2740
- if (state.position < (state.length - 1)) {
2741
- throwError(state, 'end of the stream or a document separator is expected');
2742
- } else {
2743
- return;
2744
- }
2745
- }
2746
-
2747
-
2748
- function loadDocuments(input, options) {
2749
- input = String(input);
2750
- options = options || {};
2751
-
2752
- if (input.length !== 0) {
2753
-
2754
- // Add tailing `\n` if not exists
2755
- if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&
2756
- input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {
2757
- input += '\n';
2758
- }
2759
-
2760
- // Strip BOM
2761
- if (input.charCodeAt(0) === 0xFEFF) {
2762
- input = input.slice(1);
2763
- }
2764
- }
2765
-
2766
- var state = new State$1(input, options);
2767
-
2768
- var nullpos = input.indexOf('\0');
2769
-
2770
- if (nullpos !== -1) {
2771
- state.position = nullpos;
2772
- throwError(state, 'null byte is not allowed in input');
2773
- }
2774
-
2775
- // Use 0 as string terminator. That significantly simplifies bounds check.
2776
- state.input += '\0';
2777
-
2778
- while (state.input.charCodeAt(state.position) === 0x20/* Space */) {
2779
- state.lineIndent += 1;
2780
- state.position += 1;
2781
- }
2782
-
2783
- while (state.position < (state.length - 1)) {
2784
- readDocument(state);
2785
- }
2786
-
2787
- return state.documents;
2788
- }
2789
-
2790
-
2791
- function loadAll$1(input, iterator, options) {
2792
- if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {
2793
- options = iterator;
2794
- iterator = null;
2795
- }
2796
-
2797
- var documents = loadDocuments(input, options);
2798
-
2799
- if (typeof iterator !== 'function') {
2800
- return documents;
2801
- }
2802
-
2803
- for (var index = 0, length = documents.length; index < length; index += 1) {
2804
- iterator(documents[index]);
2805
- }
2806
- }
2807
-
2808
-
2809
- function load$1(input, options) {
2810
- var documents = loadDocuments(input, options);
2811
-
2812
- if (documents.length === 0) {
2813
- /*eslint-disable no-undefined*/
2814
- return undefined;
2815
- } else if (documents.length === 1) {
2816
- return documents[0];
2817
- }
2818
- throw new exception('expected a single document in the stream, but found more');
2819
- }
2820
-
2821
-
2822
- var loadAll_1 = loadAll$1;
2823
- var load_1 = load$1;
2824
-
2825
- var loader = {
2826
- loadAll: loadAll_1,
2827
- load: load_1
2828
- };
2829
-
2830
- /*eslint-disable no-use-before-define*/
2831
-
2832
-
2833
-
2834
-
2835
-
2836
- var _toString = Object.prototype.toString;
2837
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
2838
-
2839
- var CHAR_BOM = 0xFEFF;
2840
- var CHAR_TAB = 0x09; /* Tab */
2841
- var CHAR_LINE_FEED = 0x0A; /* LF */
2842
- var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */
2843
- var CHAR_SPACE = 0x20; /* Space */
2844
- var CHAR_EXCLAMATION = 0x21; /* ! */
2845
- var CHAR_DOUBLE_QUOTE = 0x22; /* " */
2846
- var CHAR_SHARP = 0x23; /* # */
2847
- var CHAR_PERCENT = 0x25; /* % */
2848
- var CHAR_AMPERSAND = 0x26; /* & */
2849
- var CHAR_SINGLE_QUOTE = 0x27; /* ' */
2850
- var CHAR_ASTERISK = 0x2A; /* * */
2851
- var CHAR_COMMA = 0x2C; /* , */
2852
- var CHAR_MINUS = 0x2D; /* - */
2853
- var CHAR_COLON = 0x3A; /* : */
2854
- var CHAR_EQUALS = 0x3D; /* = */
2855
- var CHAR_GREATER_THAN = 0x3E; /* > */
2856
- var CHAR_QUESTION = 0x3F; /* ? */
2857
- var CHAR_COMMERCIAL_AT = 0x40; /* @ */
2858
- var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
2859
- var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
2860
- var CHAR_GRAVE_ACCENT = 0x60; /* ` */
2861
- var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
2862
- var CHAR_VERTICAL_LINE = 0x7C; /* | */
2863
- var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
2864
-
2865
- var ESCAPE_SEQUENCES = {};
2866
-
2867
- ESCAPE_SEQUENCES[0x00] = '\\0';
2868
- ESCAPE_SEQUENCES[0x07] = '\\a';
2869
- ESCAPE_SEQUENCES[0x08] = '\\b';
2870
- ESCAPE_SEQUENCES[0x09] = '\\t';
2871
- ESCAPE_SEQUENCES[0x0A] = '\\n';
2872
- ESCAPE_SEQUENCES[0x0B] = '\\v';
2873
- ESCAPE_SEQUENCES[0x0C] = '\\f';
2874
- ESCAPE_SEQUENCES[0x0D] = '\\r';
2875
- ESCAPE_SEQUENCES[0x1B] = '\\e';
2876
- ESCAPE_SEQUENCES[0x22] = '\\"';
2877
- ESCAPE_SEQUENCES[0x5C] = '\\\\';
2878
- ESCAPE_SEQUENCES[0x85] = '\\N';
2879
- ESCAPE_SEQUENCES[0xA0] = '\\_';
2880
- ESCAPE_SEQUENCES[0x2028] = '\\L';
2881
- ESCAPE_SEQUENCES[0x2029] = '\\P';
2882
-
2883
- var DEPRECATED_BOOLEANS_SYNTAX = [
2884
- 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
2885
- 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
2886
- ];
2887
-
2888
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2889
-
2890
- function compileStyleMap(schema, map) {
2891
- var result, keys, index, length, tag, style, type;
2892
-
2893
- if (map === null) return {};
2894
-
2895
- result = {};
2896
- keys = Object.keys(map);
2897
-
2898
- for (index = 0, length = keys.length; index < length; index += 1) {
2899
- tag = keys[index];
2900
- style = String(map[tag]);
2901
-
2902
- if (tag.slice(0, 2) === '!!') {
2903
- tag = 'tag:yaml.org,2002:' + tag.slice(2);
2904
- }
2905
- type = schema.compiledTypeMap['fallback'][tag];
2906
-
2907
- if (type && _hasOwnProperty.call(type.styleAliases, style)) {
2908
- style = type.styleAliases[style];
2909
- }
2910
-
2911
- result[tag] = style;
2912
- }
2913
-
2914
- return result;
2915
- }
2916
-
2917
- function encodeHex(character) {
2918
- var string, handle, length;
2919
-
2920
- string = character.toString(16).toUpperCase();
2921
-
2922
- if (character <= 0xFF) {
2923
- handle = 'x';
2924
- length = 2;
2925
- } else if (character <= 0xFFFF) {
2926
- handle = 'u';
2927
- length = 4;
2928
- } else if (character <= 0xFFFFFFFF) {
2929
- handle = 'U';
2930
- length = 8;
2931
- } else {
2932
- throw new exception('code point within a string may not be greater than 0xFFFFFFFF');
2933
- }
2934
-
2935
- return '\\' + handle + common.repeat('0', length - string.length) + string;
2936
- }
2937
-
2938
-
2939
- var QUOTING_TYPE_SINGLE = 1,
2940
- QUOTING_TYPE_DOUBLE = 2;
2941
-
2942
- function State(options) {
2943
- this.schema = options['schema'] || _default;
2944
- this.indent = Math.max(1, (options['indent'] || 2));
2945
- this.noArrayIndent = options['noArrayIndent'] || false;
2946
- this.skipInvalid = options['skipInvalid'] || false;
2947
- this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
2948
- this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
2949
- this.sortKeys = options['sortKeys'] || false;
2950
- this.lineWidth = options['lineWidth'] || 80;
2951
- this.noRefs = options['noRefs'] || false;
2952
- this.noCompatMode = options['noCompatMode'] || false;
2953
- this.condenseFlow = options['condenseFlow'] || false;
2954
- this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
2955
- this.forceQuotes = options['forceQuotes'] || false;
2956
- this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null;
2957
-
2958
- this.implicitTypes = this.schema.compiledImplicit;
2959
- this.explicitTypes = this.schema.compiledExplicit;
2960
-
2961
- this.tag = null;
2962
- this.result = '';
2963
-
2964
- this.duplicates = [];
2965
- this.usedDuplicates = null;
2966
- }
2967
-
2968
- // Indents every line in a string. Empty lines (\n only) are not indented.
2969
- function indentString(string, spaces) {
2970
- var ind = common.repeat(' ', spaces),
2971
- position = 0,
2972
- next = -1,
2973
- result = '',
2974
- line,
2975
- length = string.length;
2976
-
2977
- while (position < length) {
2978
- next = string.indexOf('\n', position);
2979
- if (next === -1) {
2980
- line = string.slice(position);
2981
- position = length;
2982
- } else {
2983
- line = string.slice(position, next + 1);
2984
- position = next + 1;
2985
- }
2986
-
2987
- if (line.length && line !== '\n') result += ind;
2988
-
2989
- result += line;
2990
- }
2991
-
2992
- return result;
2993
- }
2994
-
2995
- function generateNextLine(state, level) {
2996
- return '\n' + common.repeat(' ', state.indent * level);
2997
- }
2998
-
2999
- function testImplicitResolving(state, str) {
3000
- var index, length, type;
3001
-
3002
- for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
3003
- type = state.implicitTypes[index];
3004
-
3005
- if (type.resolve(str)) {
3006
- return true;
3007
- }
3008
- }
3009
-
3010
- return false;
3011
- }
3012
-
3013
- // [33] s-white ::= s-space | s-tab
3014
- function isWhitespace(c) {
3015
- return c === CHAR_SPACE || c === CHAR_TAB;
3016
- }
3017
-
3018
- // Returns true if the character can be printed without escaping.
3019
- // From YAML 1.2: "any allowed characters known to be non-printable
3020
- // should also be escaped. [However,] This isn’t mandatory"
3021
- // Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
3022
- function isPrintable(c) {
3023
- return (0x00020 <= c && c <= 0x00007E)
3024
- || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)
3025
- || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM)
3026
- || (0x10000 <= c && c <= 0x10FFFF);
3027
- }
3028
-
3029
- // [34] ns-char ::= nb-char - s-white
3030
- // [27] nb-char ::= c-printable - b-char - c-byte-order-mark
3031
- // [26] b-char ::= b-line-feed | b-carriage-return
3032
- // Including s-white (for some reason, examples doesn't match specs in this aspect)
3033
- // ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark
3034
- function isNsCharOrWhitespace(c) {
3035
- return isPrintable(c)
3036
- && c !== CHAR_BOM
3037
- // - b-char
3038
- && c !== CHAR_CARRIAGE_RETURN
3039
- && c !== CHAR_LINE_FEED;
3040
- }
3041
-
3042
- // [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out
3043
- // c = flow-in ⇒ ns-plain-safe-in
3044
- // c = block-key ⇒ ns-plain-safe-out
3045
- // c = flow-key ⇒ ns-plain-safe-in
3046
- // [128] ns-plain-safe-out ::= ns-char
3047
- // [129] ns-plain-safe-in ::= ns-char - c-flow-indicator
3048
- // [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” )
3049
- // | ( /* An ns-char preceding */ “#” )
3050
- // | ( “:” /* Followed by an ns-plain-safe(c) */ )
3051
- function isPlainSafe(c, prev, inblock) {
3052
- var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
3053
- var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
3054
- return (
3055
- // ns-plain-safe
3056
- inblock ? // c = flow-in
3057
- cIsNsCharOrWhitespace
3058
- : cIsNsCharOrWhitespace
3059
- // - c-flow-indicator
3060
- && c !== CHAR_COMMA
3061
- && c !== CHAR_LEFT_SQUARE_BRACKET
3062
- && c !== CHAR_RIGHT_SQUARE_BRACKET
3063
- && c !== CHAR_LEFT_CURLY_BRACKET
3064
- && c !== CHAR_RIGHT_CURLY_BRACKET
3065
- )
3066
- // ns-plain-char
3067
- && c !== CHAR_SHARP // false on '#'
3068
- && !(prev === CHAR_COLON && !cIsNsChar) // false on ': '
3069
- || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#'
3070
- || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]'
3071
- }
3072
-
3073
- // Simplified test for values allowed as the first character in plain style.
3074
- function isPlainSafeFirst(c) {
3075
- // Uses a subset of ns-char - c-indicator
3076
- // where ns-char = nb-char - s-white.
3077
- // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part
3078
- return isPrintable(c) && c !== CHAR_BOM
3079
- && !isWhitespace(c) // - s-white
3080
- // - (c-indicator ::=
3081
- // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
3082
- && c !== CHAR_MINUS
3083
- && c !== CHAR_QUESTION
3084
- && c !== CHAR_COLON
3085
- && c !== CHAR_COMMA
3086
- && c !== CHAR_LEFT_SQUARE_BRACKET
3087
- && c !== CHAR_RIGHT_SQUARE_BRACKET
3088
- && c !== CHAR_LEFT_CURLY_BRACKET
3089
- && c !== CHAR_RIGHT_CURLY_BRACKET
3090
- // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
3091
- && c !== CHAR_SHARP
3092
- && c !== CHAR_AMPERSAND
3093
- && c !== CHAR_ASTERISK
3094
- && c !== CHAR_EXCLAMATION
3095
- && c !== CHAR_VERTICAL_LINE
3096
- && c !== CHAR_EQUALS
3097
- && c !== CHAR_GREATER_THAN
3098
- && c !== CHAR_SINGLE_QUOTE
3099
- && c !== CHAR_DOUBLE_QUOTE
3100
- // | “%” | “@” | “`”)
3101
- && c !== CHAR_PERCENT
3102
- && c !== CHAR_COMMERCIAL_AT
3103
- && c !== CHAR_GRAVE_ACCENT;
3104
- }
3105
-
3106
- // Simplified test for values allowed as the last character in plain style.
3107
- function isPlainSafeLast(c) {
3108
- // just not whitespace or colon, it will be checked to be plain character later
3109
- return !isWhitespace(c) && c !== CHAR_COLON;
3110
- }
3111
-
3112
- // Same as 'string'.codePointAt(pos), but works in older browsers.
3113
- function codePointAt(string, pos) {
3114
- var first = string.charCodeAt(pos), second;
3115
- if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {
3116
- second = string.charCodeAt(pos + 1);
3117
- if (second >= 0xDC00 && second <= 0xDFFF) {
3118
- // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
3119
- return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
3120
- }
3121
- }
3122
- return first;
3123
- }
3124
-
3125
- // Determines whether block indentation indicator is required.
3126
- function needIndentIndicator(string) {
3127
- var leadingSpaceRe = /^\n* /;
3128
- return leadingSpaceRe.test(string);
3129
- }
3130
-
3131
- var STYLE_PLAIN = 1,
3132
- STYLE_SINGLE = 2,
3133
- STYLE_LITERAL = 3,
3134
- STYLE_FOLDED = 4,
3135
- STYLE_DOUBLE = 5;
3136
-
3137
- // Determines which scalar styles are possible and returns the preferred style.
3138
- // lineWidth = -1 => no limit.
3139
- // Pre-conditions: str.length > 0.
3140
- // Post-conditions:
3141
- // STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
3142
- // STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
3143
- // STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
3144
- function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth,
3145
- testAmbiguousType, quotingType, forceQuotes, inblock) {
3146
-
3147
- var i;
3148
- var char = 0;
3149
- var prevChar = null;
3150
- var hasLineBreak = false;
3151
- var hasFoldableLine = false; // only checked if shouldTrackWidth
3152
- var shouldTrackWidth = lineWidth !== -1;
3153
- var previousLineBreak = -1; // count the first line correctly
3154
- var plain = isPlainSafeFirst(codePointAt(string, 0))
3155
- && isPlainSafeLast(codePointAt(string, string.length - 1));
3156
-
3157
- if (singleLineOnly || forceQuotes) {
3158
- // Case: no block styles.
3159
- // Check for disallowed characters to rule out plain and single.
3160
- for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3161
- char = codePointAt(string, i);
3162
- if (!isPrintable(char)) {
3163
- return STYLE_DOUBLE;
3164
- }
3165
- plain = plain && isPlainSafe(char, prevChar, inblock);
3166
- prevChar = char;
3167
- }
3168
- } else {
3169
- // Case: block styles permitted.
3170
- for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3171
- char = codePointAt(string, i);
3172
- if (char === CHAR_LINE_FEED) {
3173
- hasLineBreak = true;
3174
- // Check if any line can be folded.
3175
- if (shouldTrackWidth) {
3176
- hasFoldableLine = hasFoldableLine ||
3177
- // Foldable line = too long, and not more-indented.
3178
- (i - previousLineBreak - 1 > lineWidth &&
3179
- string[previousLineBreak + 1] !== ' ');
3180
- previousLineBreak = i;
3181
- }
3182
- } else if (!isPrintable(char)) {
3183
- return STYLE_DOUBLE;
3184
- }
3185
- plain = plain && isPlainSafe(char, prevChar, inblock);
3186
- prevChar = char;
3187
- }
3188
- // in case the end is missing a \n
3189
- hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
3190
- (i - previousLineBreak - 1 > lineWidth &&
3191
- string[previousLineBreak + 1] !== ' '));
3192
- }
3193
- // Although every style can represent \n without escaping, prefer block styles
3194
- // for multiline, since they're more readable and they don't add empty lines.
3195
- // Also prefer folding a super-long line.
3196
- if (!hasLineBreak && !hasFoldableLine) {
3197
- // Strings interpretable as another type have to be quoted;
3198
- // e.g. the string 'true' vs. the boolean true.
3199
- if (plain && !forceQuotes && !testAmbiguousType(string)) {
3200
- return STYLE_PLAIN;
3201
- }
3202
- return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
3203
- }
3204
- // Edge case: block indentation indicator can only have one digit.
3205
- if (indentPerLevel > 9 && needIndentIndicator(string)) {
3206
- return STYLE_DOUBLE;
3207
- }
3208
- // At this point we know block styles are valid.
3209
- // Prefer literal style unless we want to fold.
3210
- if (!forceQuotes) {
3211
- return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
3212
- }
3213
- return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
3214
- }
3215
-
3216
- // Note: line breaking/folding is implemented for only the folded style.
3217
- // NB. We drop the last trailing newline (if any) of a returned block scalar
3218
- // since the dumper adds its own newline. This always works:
3219
- // • No ending newline => unaffected; already using strip "-" chomping.
3220
- // • Ending newline => removed then restored.
3221
- // Importantly, this keeps the "+" chomp indicator from gaining an extra line.
3222
- function writeScalar(state, string, level, iskey, inblock) {
3223
- state.dump = (function () {
3224
- if (string.length === 0) {
3225
- return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
3226
- }
3227
- if (!state.noCompatMode) {
3228
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
3229
- return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'");
3230
- }
3231
- }
3232
-
3233
- var indent = state.indent * Math.max(1, level); // no 0-indent scalars
3234
- // As indentation gets deeper, let the width decrease monotonically
3235
- // to the lower bound min(state.lineWidth, 40).
3236
- // Note that this implies
3237
- // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
3238
- // state.lineWidth > 40 + state.indent: width decreases until the lower bound.
3239
- // This behaves better than a constant minimum width which disallows narrower options,
3240
- // or an indent threshold which causes the width to suddenly increase.
3241
- var lineWidth = state.lineWidth === -1
3242
- ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
3243
-
3244
- // Without knowing if keys are implicit/explicit, assume implicit for safety.
3245
- var singleLineOnly = iskey
3246
- // No block styles in flow mode.
3247
- || (state.flowLevel > -1 && level >= state.flowLevel);
3248
- function testAmbiguity(string) {
3249
- return testImplicitResolving(state, string);
3250
- }
3251
-
3252
- switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,
3253
- testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
3254
-
3255
- case STYLE_PLAIN:
3256
- return string;
3257
- case STYLE_SINGLE:
3258
- return "'" + string.replace(/'/g, "''") + "'";
3259
- case STYLE_LITERAL:
3260
- return '|' + blockHeader(string, state.indent)
3261
- + dropEndingNewline(indentString(string, indent));
3262
- case STYLE_FOLDED:
3263
- return '>' + blockHeader(string, state.indent)
3264
- + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
3265
- case STYLE_DOUBLE:
3266
- return '"' + escapeString(string) + '"';
3267
- default:
3268
- throw new exception('impossible error: invalid scalar style');
3269
- }
3270
- }());
3271
- }
3272
-
3273
- // Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
3274
- function blockHeader(string, indentPerLevel) {
3275
- var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
3276
-
3277
- // note the special case: the string '\n' counts as a "trailing" empty line.
3278
- var clip = string[string.length - 1] === '\n';
3279
- var keep = clip && (string[string.length - 2] === '\n' || string === '\n');
3280
- var chomp = keep ? '+' : (clip ? '' : '-');
3281
-
3282
- return indentIndicator + chomp + '\n';
3283
- }
3284
-
3285
- // (See the note for writeScalar.)
3286
- function dropEndingNewline(string) {
3287
- return string[string.length - 1] === '\n' ? string.slice(0, -1) : string;
3288
- }
3289
-
3290
- // Note: a long line without a suitable break point will exceed the width limit.
3291
- // Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
3292
- function foldString(string, width) {
3293
- // In folded style, $k$ consecutive newlines output as $k+1$ newlines—
3294
- // unless they're before or after a more-indented line, or at the very
3295
- // beginning or end, in which case $k$ maps to $k$.
3296
- // Therefore, parse each chunk as newline(s) followed by a content line.
3297
- var lineRe = /(\n+)([^\n]*)/g;
3298
-
3299
- // first line (possibly an empty line)
3300
- var result = (function () {
3301
- var nextLF = string.indexOf('\n');
3302
- nextLF = nextLF !== -1 ? nextLF : string.length;
3303
- lineRe.lastIndex = nextLF;
3304
- return foldLine(string.slice(0, nextLF), width);
3305
- }());
3306
- // If we haven't reached the first content line yet, don't add an extra \n.
3307
- var prevMoreIndented = string[0] === '\n' || string[0] === ' ';
3308
- var moreIndented;
3309
-
3310
- // rest of the lines
3311
- var match;
3312
- while ((match = lineRe.exec(string))) {
3313
- var prefix = match[1], line = match[2];
3314
- moreIndented = (line[0] === ' ');
3315
- result += prefix
3316
- + (!prevMoreIndented && !moreIndented && line !== ''
3317
- ? '\n' : '')
3318
- + foldLine(line, width);
3319
- prevMoreIndented = moreIndented;
3320
- }
3321
-
3322
- return result;
3323
- }
3324
-
3325
- // Greedy line breaking.
3326
- // Picks the longest line under the limit each time,
3327
- // otherwise settles for the shortest line over the limit.
3328
- // NB. More-indented lines *cannot* be folded, as that would add an extra \n.
3329
- function foldLine(line, width) {
3330
- if (line === '' || line[0] === ' ') return line;
3331
-
3332
- // Since a more-indented line adds a \n, breaks can't be followed by a space.
3333
- var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.
3334
- var match;
3335
- // start is an inclusive index. end, curr, and next are exclusive.
3336
- var start = 0, end, curr = 0, next = 0;
3337
- var result = '';
3338
-
3339
- // Invariants: 0 <= start <= length-1.
3340
- // 0 <= curr <= next <= max(0, length-2). curr - start <= width.
3341
- // Inside the loop:
3342
- // A match implies length >= 2, so curr and next are <= length-2.
3343
- while ((match = breakRe.exec(line))) {
3344
- next = match.index;
3345
- // maintain invariant: curr - start <= width
3346
- if (next - start > width) {
3347
- end = (curr > start) ? curr : next; // derive end <= length-2
3348
- result += '\n' + line.slice(start, end);
3349
- // skip the space that was output as \n
3350
- start = end + 1; // derive start <= length-1
3351
- }
3352
- curr = next;
3353
- }
3354
-
3355
- // By the invariants, start <= length-1, so there is something left over.
3356
- // It is either the whole string or a part starting from non-whitespace.
3357
- result += '\n';
3358
- // Insert a break if the remainder is too long and there is a break available.
3359
- if (line.length - start > width && curr > start) {
3360
- result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
3361
- } else {
3362
- result += line.slice(start);
3363
- }
3364
-
3365
- return result.slice(1); // drop extra \n joiner
3366
- }
3367
-
3368
- // Escapes a double-quoted string.
3369
- function escapeString(string) {
3370
- var result = '';
3371
- var char = 0;
3372
- var escapeSeq;
3373
-
3374
- for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3375
- char = codePointAt(string, i);
3376
- escapeSeq = ESCAPE_SEQUENCES[char];
3377
-
3378
- if (!escapeSeq && isPrintable(char)) {
3379
- result += string[i];
3380
- if (char >= 0x10000) result += string[i + 1];
3381
- } else {
3382
- result += escapeSeq || encodeHex(char);
3383
- }
3384
- }
3385
-
3386
- return result;
3387
- }
3388
-
3389
- function writeFlowSequence(state, level, object) {
3390
- var _result = '',
3391
- _tag = state.tag,
3392
- index,
3393
- length,
3394
- value;
3395
-
3396
- for (index = 0, length = object.length; index < length; index += 1) {
3397
- value = object[index];
3398
-
3399
- if (state.replacer) {
3400
- value = state.replacer.call(object, String(index), value);
3401
- }
3402
-
3403
- // Write only valid elements, put null instead of invalid elements.
3404
- if (writeNode(state, level, value, false, false) ||
3405
- (typeof value === 'undefined' &&
3406
- writeNode(state, level, null, false, false))) {
3407
-
3408
- if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '');
3409
- _result += state.dump;
3410
- }
3411
- }
3412
-
3413
- state.tag = _tag;
3414
- state.dump = '[' + _result + ']';
3415
- }
3416
-
3417
- function writeBlockSequence(state, level, object, compact) {
3418
- var _result = '',
3419
- _tag = state.tag,
3420
- index,
3421
- length,
3422
- value;
3423
-
3424
- for (index = 0, length = object.length; index < length; index += 1) {
3425
- value = object[index];
3426
-
3427
- if (state.replacer) {
3428
- value = state.replacer.call(object, String(index), value);
3429
- }
3430
-
3431
- // Write only valid elements, put null instead of invalid elements.
3432
- if (writeNode(state, level + 1, value, true, true, false, true) ||
3433
- (typeof value === 'undefined' &&
3434
- writeNode(state, level + 1, null, true, true, false, true))) {
3435
-
3436
- if (!compact || _result !== '') {
3437
- _result += generateNextLine(state, level);
3438
- }
3439
-
3440
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3441
- _result += '-';
3442
- } else {
3443
- _result += '- ';
3444
- }
3445
-
3446
- _result += state.dump;
3447
- }
3448
- }
3449
-
3450
- state.tag = _tag;
3451
- state.dump = _result || '[]'; // Empty sequence if no valid values.
3452
- }
3453
-
3454
- function writeFlowMapping(state, level, object) {
3455
- var _result = '',
3456
- _tag = state.tag,
3457
- objectKeyList = Object.keys(object),
3458
- index,
3459
- length,
3460
- objectKey,
3461
- objectValue,
3462
- pairBuffer;
3463
-
3464
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3465
-
3466
- pairBuffer = '';
3467
- if (_result !== '') pairBuffer += ', ';
3468
-
3469
- if (state.condenseFlow) pairBuffer += '"';
3470
-
3471
- objectKey = objectKeyList[index];
3472
- objectValue = object[objectKey];
3473
-
3474
- if (state.replacer) {
3475
- objectValue = state.replacer.call(object, objectKey, objectValue);
3476
- }
3477
-
3478
- if (!writeNode(state, level, objectKey, false, false)) {
3479
- continue; // Skip this pair because of invalid key;
3480
- }
3481
-
3482
- if (state.dump.length > 1024) pairBuffer += '? ';
3483
-
3484
- pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
3485
-
3486
- if (!writeNode(state, level, objectValue, false, false)) {
3487
- continue; // Skip this pair because of invalid value.
3488
- }
3489
-
3490
- pairBuffer += state.dump;
3491
-
3492
- // Both key and value are valid.
3493
- _result += pairBuffer;
3494
- }
3495
-
3496
- state.tag = _tag;
3497
- state.dump = '{' + _result + '}';
3498
- }
3499
-
3500
- function writeBlockMapping(state, level, object, compact) {
3501
- var _result = '',
3502
- _tag = state.tag,
3503
- objectKeyList = Object.keys(object),
3504
- index,
3505
- length,
3506
- objectKey,
3507
- objectValue,
3508
- explicitPair,
3509
- pairBuffer;
3510
-
3511
- // Allow sorting keys so that the output file is deterministic
3512
- if (state.sortKeys === true) {
3513
- // Default sorting
3514
- objectKeyList.sort();
3515
- } else if (typeof state.sortKeys === 'function') {
3516
- // Custom sort function
3517
- objectKeyList.sort(state.sortKeys);
3518
- } else if (state.sortKeys) {
3519
- // Something is wrong
3520
- throw new exception('sortKeys must be a boolean or a function');
3521
- }
3522
-
3523
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3524
- pairBuffer = '';
3525
-
3526
- if (!compact || _result !== '') {
3527
- pairBuffer += generateNextLine(state, level);
3528
- }
3529
-
3530
- objectKey = objectKeyList[index];
3531
- objectValue = object[objectKey];
3532
-
3533
- if (state.replacer) {
3534
- objectValue = state.replacer.call(object, objectKey, objectValue);
3535
- }
3536
-
3537
- if (!writeNode(state, level + 1, objectKey, true, true, true)) {
3538
- continue; // Skip this pair because of invalid key.
3539
- }
3540
-
3541
- explicitPair = (state.tag !== null && state.tag !== '?') ||
3542
- (state.dump && state.dump.length > 1024);
3543
-
3544
- if (explicitPair) {
3545
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3546
- pairBuffer += '?';
3547
- } else {
3548
- pairBuffer += '? ';
3549
- }
3550
- }
3551
-
3552
- pairBuffer += state.dump;
3553
-
3554
- if (explicitPair) {
3555
- pairBuffer += generateNextLine(state, level);
3556
- }
3557
-
3558
- if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
3559
- continue; // Skip this pair because of invalid value.
3560
- }
3561
-
3562
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3563
- pairBuffer += ':';
3564
- } else {
3565
- pairBuffer += ': ';
3566
- }
3567
-
3568
- pairBuffer += state.dump;
3569
-
3570
- // Both key and value are valid.
3571
- _result += pairBuffer;
3572
- }
3573
-
3574
- state.tag = _tag;
3575
- state.dump = _result || '{}'; // Empty mapping if no valid pairs.
3576
- }
3577
-
3578
- function detectType(state, object, explicit) {
3579
- var _result, typeList, index, length, type, style;
3580
-
3581
- typeList = explicit ? state.explicitTypes : state.implicitTypes;
3582
-
3583
- for (index = 0, length = typeList.length; index < length; index += 1) {
3584
- type = typeList[index];
3585
-
3586
- if ((type.instanceOf || type.predicate) &&
3587
- (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
3588
- (!type.predicate || type.predicate(object))) {
3589
-
3590
- if (explicit) {
3591
- if (type.multi && type.representName) {
3592
- state.tag = type.representName(object);
3593
- } else {
3594
- state.tag = type.tag;
3595
- }
3596
- } else {
3597
- state.tag = '?';
3598
- }
3599
-
3600
- if (type.represent) {
3601
- style = state.styleMap[type.tag] || type.defaultStyle;
3602
-
3603
- if (_toString.call(type.represent) === '[object Function]') {
3604
- _result = type.represent(object, style);
3605
- } else if (_hasOwnProperty.call(type.represent, style)) {
3606
- _result = type.represent[style](object, style);
3607
- } else {
3608
- throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
3609
- }
3610
-
3611
- state.dump = _result;
3612
- }
3613
-
3614
- return true;
3615
- }
3616
- }
3617
-
3618
- return false;
3619
- }
3620
-
3621
- // Serializes `object` and writes it to global `result`.
3622
- // Returns true on success, or false on invalid object.
3623
- //
3624
- function writeNode(state, level, object, block, compact, iskey, isblockseq) {
3625
- state.tag = null;
3626
- state.dump = object;
3627
-
3628
- if (!detectType(state, object, false)) {
3629
- detectType(state, object, true);
3630
- }
3631
-
3632
- var type = _toString.call(state.dump);
3633
- var inblock = block;
3634
- var tagStr;
3635
-
3636
- if (block) {
3637
- block = (state.flowLevel < 0 || state.flowLevel > level);
3638
- }
3639
-
3640
- var objectOrArray = type === '[object Object]' || type === '[object Array]',
3641
- duplicateIndex,
3642
- duplicate;
3643
-
3644
- if (objectOrArray) {
3645
- duplicateIndex = state.duplicates.indexOf(object);
3646
- duplicate = duplicateIndex !== -1;
3647
- }
3648
-
3649
- if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
3650
- compact = false;
3651
- }
3652
-
3653
- if (duplicate && state.usedDuplicates[duplicateIndex]) {
3654
- state.dump = '*ref_' + duplicateIndex;
3655
- } else {
3656
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
3657
- state.usedDuplicates[duplicateIndex] = true;
3658
- }
3659
- if (type === '[object Object]') {
3660
- if (block && (Object.keys(state.dump).length !== 0)) {
3661
- writeBlockMapping(state, level, state.dump, compact);
3662
- if (duplicate) {
3663
- state.dump = '&ref_' + duplicateIndex + state.dump;
3664
- }
3665
- } else {
3666
- writeFlowMapping(state, level, state.dump);
3667
- if (duplicate) {
3668
- state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
3669
- }
3670
- }
3671
- } else if (type === '[object Array]') {
3672
- if (block && (state.dump.length !== 0)) {
3673
- if (state.noArrayIndent && !isblockseq && level > 0) {
3674
- writeBlockSequence(state, level - 1, state.dump, compact);
3675
- } else {
3676
- writeBlockSequence(state, level, state.dump, compact);
3677
- }
3678
- if (duplicate) {
3679
- state.dump = '&ref_' + duplicateIndex + state.dump;
3680
- }
3681
- } else {
3682
- writeFlowSequence(state, level, state.dump);
3683
- if (duplicate) {
3684
- state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
3685
- }
3686
- }
3687
- } else if (type === '[object String]') {
3688
- if (state.tag !== '?') {
3689
- writeScalar(state, state.dump, level, iskey, inblock);
3690
- }
3691
- } else if (type === '[object Undefined]') {
3692
- return false;
3693
- } else {
3694
- if (state.skipInvalid) return false;
3695
- throw new exception('unacceptable kind of an object to dump ' + type);
3696
- }
3697
-
3698
- if (state.tag !== null && state.tag !== '?') {
3699
- // Need to encode all characters except those allowed by the spec:
3700
- //
3701
- // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */
3702
- // [36] ns-hex-digit ::= ns-dec-digit
3703
- // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */
3704
- // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */
3705
- // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-”
3706
- // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#”
3707
- // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,”
3708
- // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]”
3709
- //
3710
- // Also need to encode '!' because it has special meaning (end of tag prefix).
3711
- //
3712
- tagStr = encodeURI(
3713
- state.tag[0] === '!' ? state.tag.slice(1) : state.tag
3714
- ).replace(/!/g, '%21');
3715
-
3716
- if (state.tag[0] === '!') {
3717
- tagStr = '!' + tagStr;
3718
- } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {
3719
- tagStr = '!!' + tagStr.slice(18);
3720
- } else {
3721
- tagStr = '!<' + tagStr + '>';
3722
- }
3723
-
3724
- state.dump = tagStr + ' ' + state.dump;
3725
- }
3726
- }
3727
-
3728
- return true;
3729
- }
3730
-
3731
- function getDuplicateReferences(object, state) {
3732
- var objects = [],
3733
- duplicatesIndexes = [],
3734
- index,
3735
- length;
3736
-
3737
- inspectNode(object, objects, duplicatesIndexes);
3738
-
3739
- for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
3740
- state.duplicates.push(objects[duplicatesIndexes[index]]);
3741
- }
3742
- state.usedDuplicates = new Array(length);
3743
- }
3744
-
3745
- function inspectNode(object, objects, duplicatesIndexes) {
3746
- var objectKeyList,
3747
- index,
3748
- length;
3749
-
3750
- if (object !== null && typeof object === 'object') {
3751
- index = objects.indexOf(object);
3752
- if (index !== -1) {
3753
- if (duplicatesIndexes.indexOf(index) === -1) {
3754
- duplicatesIndexes.push(index);
3755
- }
3756
- } else {
3757
- objects.push(object);
3758
-
3759
- if (Array.isArray(object)) {
3760
- for (index = 0, length = object.length; index < length; index += 1) {
3761
- inspectNode(object[index], objects, duplicatesIndexes);
3762
- }
3763
- } else {
3764
- objectKeyList = Object.keys(object);
3765
-
3766
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3767
- inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
3768
- }
3769
- }
3770
- }
3771
- }
3772
- }
3773
-
3774
- function dump$1(input, options) {
3775
- options = options || {};
3776
-
3777
- var state = new State(options);
3778
-
3779
- if (!state.noRefs) getDuplicateReferences(input, state);
3780
-
3781
- var value = input;
3782
-
3783
- if (state.replacer) {
3784
- value = state.replacer.call({ '': value }, '', value);
3785
- }
3786
-
3787
- if (writeNode(state, 0, value, true, true)) return state.dump + '\n';
3788
-
3789
- return '';
3790
- }
3791
-
3792
- var dump_1 = dump$1;
3793
-
3794
- var dumper = {
3795
- dump: dump_1
3796
- };
3797
-
3798
- function renamed(from, to) {
3799
- return function () {
3800
- throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
3801
- 'Use yaml.' + to + ' instead, which is now safe by default.');
3802
- };
3803
- }
3804
-
3805
-
3806
- var Type = type;
3807
- var Schema = schema;
3808
- var FAILSAFE_SCHEMA = failsafe;
3809
- var JSON_SCHEMA = json;
3810
- var CORE_SCHEMA = core;
3811
- var DEFAULT_SCHEMA = _default;
3812
- var load = loader.load;
3813
- var loadAll = loader.loadAll;
3814
- var dump = dumper.dump;
3815
- var YAMLException = exception;
3816
-
3817
- // Re-export all types in case user wants to create custom schema
3818
- var types = {
3819
- binary: binary,
3820
- float: float,
3821
- map: map,
3822
- null: _null,
3823
- pairs: pairs,
3824
- set: set,
3825
- timestamp: timestamp,
3826
- bool: bool,
3827
- int: int,
3828
- merge: merge,
3829
- omap: omap,
3830
- seq: seq,
3831
- str: str
3832
- };
3833
-
3834
- // Removed functions from JS-YAML 3.0.x
3835
- var safeLoad = renamed('safeLoad', 'load');
3836
- var safeLoadAll = renamed('safeLoadAll', 'loadAll');
3837
- var safeDump = renamed('safeDump', 'dump');
3838
-
3839
- var jsYaml = {
3840
- Type: Type,
3841
- Schema: Schema,
3842
- FAILSAFE_SCHEMA: FAILSAFE_SCHEMA,
3843
- JSON_SCHEMA: JSON_SCHEMA,
3844
- CORE_SCHEMA: CORE_SCHEMA,
3845
- DEFAULT_SCHEMA: DEFAULT_SCHEMA,
3846
- load: load,
3847
- loadAll: loadAll,
3848
- dump: dump,
3849
- YAMLException: YAMLException,
3850
- types: types,
3851
- safeLoad: safeLoad,
3852
- safeLoadAll: safeLoadAll,
3853
- safeDump: safeDump
3854
- };
3855
-
3856
- export { CORE_SCHEMA, DEFAULT_SCHEMA, FAILSAFE_SCHEMA, JSON_SCHEMA, Schema, Type, YAMLException, jsYaml as default, dump, load, loadAll, safeDump, safeLoad, safeLoadAll, types };