@node-core/utils 7.2.1 → 7.2.3

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 (1355) hide show
  1. package/lib/ci/build-types/normal_build.js +1 -1
  2. package/lib/ci/build-types/pr_build.js +11 -1
  3. package/lib/ci/build-types/test_run.js +1 -1
  4. package/lib/ci/run_ci.js +14 -4
  5. package/lib/cli.js +3 -6
  6. package/lib/links.js +27 -15
  7. package/lib/pr_checker.js +45 -34
  8. package/lib/queries/PR.gql +1 -0
  9. package/node_modules/htmlparser2/README.md +112 -26
  10. package/node_modules/htmlparser2/dist/Parser.d.ts +257 -0
  11. package/node_modules/htmlparser2/dist/Parser.d.ts.map +1 -0
  12. package/node_modules/htmlparser2/dist/Parser.js +644 -0
  13. package/node_modules/htmlparser2/dist/Parser.js.map +1 -0
  14. package/node_modules/htmlparser2/dist/Tokenizer.d.ts +194 -0
  15. package/node_modules/htmlparser2/dist/Tokenizer.d.ts.map +1 -0
  16. package/node_modules/htmlparser2/dist/Tokenizer.js +1056 -0
  17. package/node_modules/htmlparser2/dist/Tokenizer.js.map +1 -0
  18. package/node_modules/htmlparser2/dist/WebWritableStream.d.ts +24 -0
  19. package/node_modules/htmlparser2/dist/WebWritableStream.d.ts.map +1 -0
  20. package/node_modules/htmlparser2/dist/WebWritableStream.js +44 -0
  21. package/node_modules/htmlparser2/dist/WebWritableStream.js.map +1 -0
  22. package/node_modules/htmlparser2/dist/WritableStream.d.ts +14 -0
  23. package/node_modules/htmlparser2/dist/WritableStream.d.ts.map +1 -0
  24. package/node_modules/htmlparser2/dist/WritableStream.js +32 -0
  25. package/node_modules/htmlparser2/dist/WritableStream.js.map +1 -0
  26. package/node_modules/htmlparser2/dist/index.d.ts +34 -0
  27. package/node_modules/htmlparser2/dist/index.d.ts.map +1 -0
  28. package/node_modules/htmlparser2/dist/index.js +46 -0
  29. package/node_modules/htmlparser2/dist/index.js.map +1 -0
  30. package/node_modules/htmlparser2/node_modules/dom-serializer/LICENSE +7 -0
  31. package/node_modules/htmlparser2/node_modules/dom-serializer/README.md +115 -0
  32. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.d.ts +11 -0
  33. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.d.ts.map +1 -0
  34. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.js +15 -0
  35. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.js.map +1 -0
  36. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.d.ts +72 -0
  37. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.d.ts.map +1 -0
  38. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.js +173 -0
  39. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.js.map +1 -0
  40. package/node_modules/htmlparser2/node_modules/dom-serializer/package.json +69 -0
  41. package/node_modules/htmlparser2/node_modules/dom-serializer/src/foreign-names.ts +19 -0
  42. package/node_modules/htmlparser2/node_modules/dom-serializer/src/index.ts +315 -0
  43. package/node_modules/htmlparser2/node_modules/domelementtype/dist/index.d.ts +48 -0
  44. package/node_modules/htmlparser2/node_modules/domelementtype/dist/index.d.ts.map +1 -0
  45. package/node_modules/htmlparser2/node_modules/domelementtype/dist/index.js +60 -0
  46. package/node_modules/htmlparser2/node_modules/domelementtype/package.json +59 -0
  47. package/node_modules/htmlparser2/node_modules/domhandler/dist/index.d.ts +79 -0
  48. package/node_modules/htmlparser2/node_modules/domhandler/dist/index.d.ts.map +1 -0
  49. package/node_modules/htmlparser2/node_modules/domhandler/dist/index.js +155 -0
  50. package/node_modules/htmlparser2/node_modules/domhandler/dist/node.d.ts +264 -0
  51. package/node_modules/htmlparser2/node_modules/domhandler/dist/node.d.ts.map +1 -0
  52. package/node_modules/htmlparser2/node_modules/domhandler/dist/node.js +359 -0
  53. package/node_modules/htmlparser2/node_modules/domhandler/package.json +65 -0
  54. package/node_modules/htmlparser2/node_modules/domhandler/readme.md +86 -0
  55. package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.d.ts +71 -0
  56. package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.d.ts.map +1 -0
  57. package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.js +180 -0
  58. package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.js.map +1 -0
  59. package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.d.ts +59 -0
  60. package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.d.ts.map +1 -0
  61. package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.js +136 -0
  62. package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.js.map +1 -0
  63. package/node_modules/htmlparser2/node_modules/domutils/dist/index.d.ts +8 -0
  64. package/node_modules/htmlparser2/node_modules/domutils/dist/index.d.ts.map +1 -0
  65. package/node_modules/htmlparser2/node_modules/domutils/dist/index.js +8 -0
  66. package/node_modules/htmlparser2/node_modules/domutils/dist/index.js.map +1 -0
  67. package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.d.ts +79 -0
  68. package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.d.ts.map +1 -0
  69. package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.js +152 -0
  70. package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.js.map +1 -0
  71. package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.d.ts +49 -0
  72. package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.d.ts.map +1 -0
  73. package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.js +138 -0
  74. package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.js.map +1 -0
  75. package/node_modules/htmlparser2/node_modules/domutils/dist/querying.d.ts +54 -0
  76. package/node_modules/htmlparser2/node_modules/domutils/dist/querying.d.ts.map +1 -0
  77. package/node_modules/htmlparser2/node_modules/domutils/dist/querying.js +129 -0
  78. package/node_modules/htmlparser2/node_modules/domutils/dist/querying.js.map +1 -0
  79. package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.d.ts +46 -0
  80. package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.d.ts.map +1 -0
  81. package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.js +81 -0
  82. package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.js.map +1 -0
  83. package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.d.ts +74 -0
  84. package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.d.ts.map +1 -0
  85. package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.js +105 -0
  86. package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.js.map +1 -0
  87. package/node_modules/htmlparser2/node_modules/domutils/package.json +69 -0
  88. package/node_modules/htmlparser2/node_modules/domutils/readme.md +25 -0
  89. package/node_modules/htmlparser2/node_modules/domutils/src/__snapshots__/feeds.spec.ts.snap +103 -0
  90. package/node_modules/htmlparser2/node_modules/domutils/src/feeds.ts +301 -0
  91. package/node_modules/htmlparser2/node_modules/domutils/src/helpers.ts +154 -0
  92. package/node_modules/htmlparser2/node_modules/domutils/src/index.ts +7 -0
  93. package/node_modules/htmlparser2/node_modules/domutils/src/legacy.ts +224 -0
  94. package/node_modules/htmlparser2/node_modules/domutils/src/manipulation.ts +156 -0
  95. package/node_modules/htmlparser2/node_modules/domutils/src/querying.ts +172 -0
  96. package/node_modules/htmlparser2/node_modules/domutils/src/stringify.ts +90 -0
  97. package/node_modules/htmlparser2/node_modules/domutils/src/traversal.ts +132 -0
  98. package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.d.ts +8 -0
  99. package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
  100. package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.js +46 -0
  101. package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.js.map +1 -0
  102. package/node_modules/htmlparser2/node_modules/entities/dist/decode.d.ts +194 -0
  103. package/node_modules/htmlparser2/node_modules/entities/dist/decode.d.ts.map +1 -0
  104. package/node_modules/htmlparser2/node_modules/entities/dist/decode.js +544 -0
  105. package/node_modules/htmlparser2/node_modules/entities/dist/decode.js.map +1 -0
  106. package/node_modules/htmlparser2/node_modules/entities/dist/encode.d.ts +24 -0
  107. package/node_modules/htmlparser2/node_modules/entities/dist/encode.d.ts.map +1 -0
  108. package/node_modules/htmlparser2/node_modules/entities/dist/encode.js +90 -0
  109. package/node_modules/htmlparser2/node_modules/entities/dist/encode.js.map +1 -0
  110. package/node_modules/htmlparser2/node_modules/entities/dist/escape.d.ts +48 -0
  111. package/node_modules/htmlparser2/node_modules/entities/dist/escape.d.ts.map +1 -0
  112. package/node_modules/htmlparser2/node_modules/entities/dist/escape.js +132 -0
  113. package/node_modules/htmlparser2/node_modules/entities/dist/escape.js.map +1 -0
  114. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
  115. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
  116. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.js +5 -0
  117. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
  118. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
  119. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
  120. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.js +5 -0
  121. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
  122. package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.d.ts +5 -0
  123. package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
  124. package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.js +12 -0
  125. package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.js.map +1 -0
  126. package/node_modules/htmlparser2/node_modules/entities/dist/index.d.ts +89 -0
  127. package/node_modules/htmlparser2/node_modules/entities/dist/index.d.ts.map +1 -0
  128. package/node_modules/htmlparser2/node_modules/entities/dist/index.js +91 -0
  129. package/node_modules/htmlparser2/node_modules/entities/dist/index.js.map +1 -0
  130. package/node_modules/htmlparser2/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
  131. package/node_modules/htmlparser2/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
  132. package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.d.ts +7 -0
  133. package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
  134. package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.js +17 -0
  135. package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
  136. package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.d.ts +33 -0
  137. package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.d.ts.map +1 -0
  138. package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.js +93 -0
  139. package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.js.map +1 -0
  140. package/node_modules/htmlparser2/node_modules/entities/package.json +25 -62
  141. package/node_modules/htmlparser2/node_modules/entities/readme.md +4 -16
  142. package/node_modules/htmlparser2/node_modules/entities/src/decode-codepoint.ts +1 -32
  143. package/node_modules/htmlparser2/node_modules/entities/src/decode.ts +12 -26
  144. package/node_modules/htmlparser2/node_modules/entities/src/encode.ts +2 -0
  145. package/node_modules/htmlparser2/node_modules/entities/src/escape.ts +11 -12
  146. package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-html.ts +1 -0
  147. package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-xml.ts +1 -0
  148. package/node_modules/htmlparser2/node_modules/entities/src/generated/encode-html.ts +2 -1
  149. package/node_modules/htmlparser2/node_modules/entities/src/index.ts +8 -33
  150. package/node_modules/htmlparser2/node_modules/entities/src/internal/decode-shared.ts +3 -15
  151. package/node_modules/htmlparser2/node_modules/entities/src/internal/encode-shared.ts +4 -2
  152. package/node_modules/htmlparser2/package.json +34 -61
  153. package/node_modules/htmlparser2/src/Parser.ts +260 -100
  154. package/node_modules/htmlparser2/src/Tokenizer.ts +438 -165
  155. package/node_modules/htmlparser2/src/WebWritableStream.ts +47 -0
  156. package/node_modules/htmlparser2/src/WritableStream.ts +1 -2
  157. package/node_modules/htmlparser2/src/index.ts +14 -43
  158. package/node_modules/yocto-spinner/index.d.ts +162 -0
  159. package/node_modules/yocto-spinner/index.js +432 -0
  160. package/node_modules/yocto-spinner/package.json +64 -0
  161. package/node_modules/yocto-spinner/readme.md +237 -0
  162. package/package.json +4 -4
  163. package/node_modules/boolbase/README.md +0 -10
  164. package/node_modules/boolbase/index.js +0 -8
  165. package/node_modules/boolbase/package.json +0 -23
  166. package/node_modules/cheerio/LICENSE +0 -21
  167. package/node_modules/cheerio/Readme.md +0 -229
  168. package/node_modules/cheerio/dist/browser/api/attributes.d.ts +0 -385
  169. package/node_modules/cheerio/dist/browser/api/attributes.d.ts.map +0 -1
  170. package/node_modules/cheerio/dist/browser/api/attributes.js +0 -636
  171. package/node_modules/cheerio/dist/browser/api/attributes.js.map +0 -1
  172. package/node_modules/cheerio/dist/browser/api/css.d.ts +0 -42
  173. package/node_modules/cheerio/dist/browser/api/css.d.ts.map +0 -1
  174. package/node_modules/cheerio/dist/browser/api/css.js +0 -116
  175. package/node_modules/cheerio/dist/browser/api/css.js.map +0 -1
  176. package/node_modules/cheerio/dist/browser/api/extract.d.ts +0 -27
  177. package/node_modules/cheerio/dist/browser/api/extract.d.ts.map +0 -1
  178. package/node_modules/cheerio/dist/browser/api/extract.js +0 -42
  179. package/node_modules/cheerio/dist/browser/api/extract.js.map +0 -1
  180. package/node_modules/cheerio/dist/browser/api/forms.d.ts +0 -36
  181. package/node_modules/cheerio/dist/browser/api/forms.d.ts.map +0 -1
  182. package/node_modules/cheerio/dist/browser/api/forms.js +0 -81
  183. package/node_modules/cheerio/dist/browser/api/forms.js.map +0 -1
  184. package/node_modules/cheerio/dist/browser/api/manipulation.d.ts +0 -528
  185. package/node_modules/cheerio/dist/browser/api/manipulation.d.ts.map +0 -1
  186. package/node_modules/cheerio/dist/browser/api/manipulation.js +0 -831
  187. package/node_modules/cheerio/dist/browser/api/manipulation.js.map +0 -1
  188. package/node_modules/cheerio/dist/browser/api/traversing.d.ts +0 -657
  189. package/node_modules/cheerio/dist/browser/api/traversing.d.ts.map +0 -1
  190. package/node_modules/cheerio/dist/browser/api/traversing.js +0 -857
  191. package/node_modules/cheerio/dist/browser/api/traversing.js.map +0 -1
  192. package/node_modules/cheerio/dist/browser/cheerio.d.ts +0 -85
  193. package/node_modules/cheerio/dist/browser/cheerio.d.ts.map +0 -1
  194. package/node_modules/cheerio/dist/browser/cheerio.js +0 -58
  195. package/node_modules/cheerio/dist/browser/cheerio.js.map +0 -1
  196. package/node_modules/cheerio/dist/browser/index-browser.d.mts.map +0 -1
  197. package/node_modules/cheerio/dist/browser/index-browser.mjs.map +0 -1
  198. package/node_modules/cheerio/dist/browser/index.d.ts +0 -5
  199. package/node_modules/cheerio/dist/browser/index.js +0 -3
  200. package/node_modules/cheerio/dist/browser/load-parse.d.ts +0 -20
  201. package/node_modules/cheerio/dist/browser/load-parse.d.ts.map +0 -1
  202. package/node_modules/cheerio/dist/browser/load-parse.js +0 -28
  203. package/node_modules/cheerio/dist/browser/load-parse.js.map +0 -1
  204. package/node_modules/cheerio/dist/browser/load.d.ts +0 -91
  205. package/node_modules/cheerio/dist/browser/load.d.ts.map +0 -1
  206. package/node_modules/cheerio/dist/browser/load.js +0 -129
  207. package/node_modules/cheerio/dist/browser/load.js.map +0 -1
  208. package/node_modules/cheerio/dist/browser/options.d.ts +0 -98
  209. package/node_modules/cheerio/dist/browser/options.d.ts.map +0 -1
  210. package/node_modules/cheerio/dist/browser/options.js +0 -34
  211. package/node_modules/cheerio/dist/browser/options.js.map +0 -1
  212. package/node_modules/cheerio/dist/browser/package.json +0 -3
  213. package/node_modules/cheerio/dist/browser/parse.d.ts +0 -18
  214. package/node_modules/cheerio/dist/browser/parse.d.ts.map +0 -1
  215. package/node_modules/cheerio/dist/browser/parse.js +0 -73
  216. package/node_modules/cheerio/dist/browser/parse.js.map +0 -1
  217. package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.d.ts +0 -20
  218. package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.d.ts.map +0 -1
  219. package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.js +0 -50
  220. package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.js.map +0 -1
  221. package/node_modules/cheerio/dist/browser/slim.d.ts +0 -25
  222. package/node_modules/cheerio/dist/browser/slim.d.ts.map +0 -1
  223. package/node_modules/cheerio/dist/browser/slim.js +0 -22
  224. package/node_modules/cheerio/dist/browser/slim.js.map +0 -1
  225. package/node_modules/cheerio/dist/browser/static.d.ts +0 -112
  226. package/node_modules/cheerio/dist/browser/static.d.ts.map +0 -1
  227. package/node_modules/cheerio/dist/browser/static.js +0 -204
  228. package/node_modules/cheerio/dist/browser/static.js.map +0 -1
  229. package/node_modules/cheerio/dist/browser/types.d.ts +0 -21
  230. package/node_modules/cheerio/dist/browser/types.d.ts.map +0 -1
  231. package/node_modules/cheerio/dist/browser/types.js +0 -3
  232. package/node_modules/cheerio/dist/browser/types.js.map +0 -1
  233. package/node_modules/cheerio/dist/browser/utils.d.ts +0 -55
  234. package/node_modules/cheerio/dist/browser/utils.d.ts.map +0 -1
  235. package/node_modules/cheerio/dist/browser/utils.js +0 -84
  236. package/node_modules/cheerio/dist/browser/utils.js.map +0 -1
  237. package/node_modules/cheerio/dist/commonjs/api/attributes.d.ts +0 -385
  238. package/node_modules/cheerio/dist/commonjs/api/attributes.d.ts.map +0 -1
  239. package/node_modules/cheerio/dist/commonjs/api/attributes.js +0 -647
  240. package/node_modules/cheerio/dist/commonjs/api/attributes.js.map +0 -1
  241. package/node_modules/cheerio/dist/commonjs/api/css.d.ts +0 -42
  242. package/node_modules/cheerio/dist/commonjs/api/css.d.ts.map +0 -1
  243. package/node_modules/cheerio/dist/commonjs/api/css.js +0 -119
  244. package/node_modules/cheerio/dist/commonjs/api/css.js.map +0 -1
  245. package/node_modules/cheerio/dist/commonjs/api/extract.d.ts +0 -27
  246. package/node_modules/cheerio/dist/commonjs/api/extract.d.ts.map +0 -1
  247. package/node_modules/cheerio/dist/commonjs/api/extract.js +0 -45
  248. package/node_modules/cheerio/dist/commonjs/api/extract.js.map +0 -1
  249. package/node_modules/cheerio/dist/commonjs/api/forms.d.ts +0 -36
  250. package/node_modules/cheerio/dist/commonjs/api/forms.d.ts.map +0 -1
  251. package/node_modules/cheerio/dist/commonjs/api/forms.js +0 -85
  252. package/node_modules/cheerio/dist/commonjs/api/forms.js.map +0 -1
  253. package/node_modules/cheerio/dist/commonjs/api/manipulation.d.ts +0 -528
  254. package/node_modules/cheerio/dist/commonjs/api/manipulation.d.ts.map +0 -1
  255. package/node_modules/cheerio/dist/commonjs/api/manipulation.js +0 -850
  256. package/node_modules/cheerio/dist/commonjs/api/manipulation.js.map +0 -1
  257. package/node_modules/cheerio/dist/commonjs/api/traversing.d.ts +0 -657
  258. package/node_modules/cheerio/dist/commonjs/api/traversing.d.ts.map +0 -1
  259. package/node_modules/cheerio/dist/commonjs/api/traversing.js +0 -914
  260. package/node_modules/cheerio/dist/commonjs/api/traversing.js.map +0 -1
  261. package/node_modules/cheerio/dist/commonjs/cheerio.d.ts +0 -85
  262. package/node_modules/cheerio/dist/commonjs/cheerio.d.ts.map +0 -1
  263. package/node_modules/cheerio/dist/commonjs/cheerio.js +0 -95
  264. package/node_modules/cheerio/dist/commonjs/cheerio.js.map +0 -1
  265. package/node_modules/cheerio/dist/commonjs/index.d.ts +0 -104
  266. package/node_modules/cheerio/dist/commonjs/index.d.ts.map +0 -1
  267. package/node_modules/cheerio/dist/commonjs/index.js +0 -250
  268. package/node_modules/cheerio/dist/commonjs/index.js.map +0 -1
  269. package/node_modules/cheerio/dist/commonjs/load-parse.d.ts +0 -20
  270. package/node_modules/cheerio/dist/commonjs/load-parse.d.ts.map +0 -1
  271. package/node_modules/cheerio/dist/commonjs/load-parse.js +0 -34
  272. package/node_modules/cheerio/dist/commonjs/load-parse.js.map +0 -1
  273. package/node_modules/cheerio/dist/commonjs/load.d.ts +0 -91
  274. package/node_modules/cheerio/dist/commonjs/load.d.ts.map +0 -1
  275. package/node_modules/cheerio/dist/commonjs/load.js +0 -165
  276. package/node_modules/cheerio/dist/commonjs/load.js.map +0 -1
  277. package/node_modules/cheerio/dist/commonjs/options.d.ts +0 -98
  278. package/node_modules/cheerio/dist/commonjs/options.d.ts.map +0 -1
  279. package/node_modules/cheerio/dist/commonjs/options.js +0 -37
  280. package/node_modules/cheerio/dist/commonjs/options.js.map +0 -1
  281. package/node_modules/cheerio/dist/commonjs/package.json +0 -3
  282. package/node_modules/cheerio/dist/commonjs/parse.d.ts +0 -18
  283. package/node_modules/cheerio/dist/commonjs/parse.d.ts.map +0 -1
  284. package/node_modules/cheerio/dist/commonjs/parse.js +0 -77
  285. package/node_modules/cheerio/dist/commonjs/parse.js.map +0 -1
  286. package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.d.ts +0 -20
  287. package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.d.ts.map +0 -1
  288. package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.js +0 -54
  289. package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.js.map +0 -1
  290. package/node_modules/cheerio/dist/commonjs/slim.d.ts +0 -25
  291. package/node_modules/cheerio/dist/commonjs/slim.d.ts.map +0 -1
  292. package/node_modules/cheerio/dist/commonjs/slim.js +0 -30
  293. package/node_modules/cheerio/dist/commonjs/slim.js.map +0 -1
  294. package/node_modules/cheerio/dist/commonjs/static.d.ts +0 -112
  295. package/node_modules/cheerio/dist/commonjs/static.d.ts.map +0 -1
  296. package/node_modules/cheerio/dist/commonjs/static.js +0 -214
  297. package/node_modules/cheerio/dist/commonjs/static.js.map +0 -1
  298. package/node_modules/cheerio/dist/commonjs/types.d.ts +0 -21
  299. package/node_modules/cheerio/dist/commonjs/types.d.ts.map +0 -1
  300. package/node_modules/cheerio/dist/commonjs/types.js +0 -4
  301. package/node_modules/cheerio/dist/commonjs/types.js.map +0 -1
  302. package/node_modules/cheerio/dist/commonjs/utils.d.ts +0 -55
  303. package/node_modules/cheerio/dist/commonjs/utils.d.ts.map +0 -1
  304. package/node_modules/cheerio/dist/commonjs/utils.js +0 -91
  305. package/node_modules/cheerio/dist/commonjs/utils.js.map +0 -1
  306. package/node_modules/cheerio/dist/esm/api/attributes.d.ts +0 -385
  307. package/node_modules/cheerio/dist/esm/api/attributes.d.ts.map +0 -1
  308. package/node_modules/cheerio/dist/esm/api/attributes.js +0 -636
  309. package/node_modules/cheerio/dist/esm/api/attributes.js.map +0 -1
  310. package/node_modules/cheerio/dist/esm/api/css.d.ts +0 -42
  311. package/node_modules/cheerio/dist/esm/api/css.d.ts.map +0 -1
  312. package/node_modules/cheerio/dist/esm/api/css.js +0 -116
  313. package/node_modules/cheerio/dist/esm/api/css.js.map +0 -1
  314. package/node_modules/cheerio/dist/esm/api/extract.d.ts +0 -27
  315. package/node_modules/cheerio/dist/esm/api/extract.d.ts.map +0 -1
  316. package/node_modules/cheerio/dist/esm/api/extract.js +0 -42
  317. package/node_modules/cheerio/dist/esm/api/extract.js.map +0 -1
  318. package/node_modules/cheerio/dist/esm/api/forms.d.ts +0 -36
  319. package/node_modules/cheerio/dist/esm/api/forms.d.ts.map +0 -1
  320. package/node_modules/cheerio/dist/esm/api/forms.js +0 -81
  321. package/node_modules/cheerio/dist/esm/api/forms.js.map +0 -1
  322. package/node_modules/cheerio/dist/esm/api/manipulation.d.ts +0 -528
  323. package/node_modules/cheerio/dist/esm/api/manipulation.d.ts.map +0 -1
  324. package/node_modules/cheerio/dist/esm/api/manipulation.js +0 -831
  325. package/node_modules/cheerio/dist/esm/api/manipulation.js.map +0 -1
  326. package/node_modules/cheerio/dist/esm/api/traversing.d.ts +0 -657
  327. package/node_modules/cheerio/dist/esm/api/traversing.d.ts.map +0 -1
  328. package/node_modules/cheerio/dist/esm/api/traversing.js +0 -857
  329. package/node_modules/cheerio/dist/esm/api/traversing.js.map +0 -1
  330. package/node_modules/cheerio/dist/esm/cheerio.d.ts +0 -85
  331. package/node_modules/cheerio/dist/esm/cheerio.d.ts.map +0 -1
  332. package/node_modules/cheerio/dist/esm/cheerio.js +0 -58
  333. package/node_modules/cheerio/dist/esm/cheerio.js.map +0 -1
  334. package/node_modules/cheerio/dist/esm/index.d.ts +0 -104
  335. package/node_modules/cheerio/dist/esm/index.d.ts.map +0 -1
  336. package/node_modules/cheerio/dist/esm/index.js +0 -202
  337. package/node_modules/cheerio/dist/esm/index.js.map +0 -1
  338. package/node_modules/cheerio/dist/esm/load-parse.d.ts +0 -20
  339. package/node_modules/cheerio/dist/esm/load-parse.d.ts.map +0 -1
  340. package/node_modules/cheerio/dist/esm/load-parse.js +0 -28
  341. package/node_modules/cheerio/dist/esm/load-parse.js.map +0 -1
  342. package/node_modules/cheerio/dist/esm/load.d.ts +0 -91
  343. package/node_modules/cheerio/dist/esm/load.d.ts.map +0 -1
  344. package/node_modules/cheerio/dist/esm/load.js +0 -129
  345. package/node_modules/cheerio/dist/esm/load.js.map +0 -1
  346. package/node_modules/cheerio/dist/esm/options.d.ts +0 -98
  347. package/node_modules/cheerio/dist/esm/options.d.ts.map +0 -1
  348. package/node_modules/cheerio/dist/esm/options.js +0 -34
  349. package/node_modules/cheerio/dist/esm/options.js.map +0 -1
  350. package/node_modules/cheerio/dist/esm/package.json +0 -3
  351. package/node_modules/cheerio/dist/esm/parse.d.ts +0 -18
  352. package/node_modules/cheerio/dist/esm/parse.d.ts.map +0 -1
  353. package/node_modules/cheerio/dist/esm/parse.js +0 -73
  354. package/node_modules/cheerio/dist/esm/parse.js.map +0 -1
  355. package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.d.ts +0 -20
  356. package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.d.ts.map +0 -1
  357. package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.js +0 -50
  358. package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.js.map +0 -1
  359. package/node_modules/cheerio/dist/esm/slim.d.ts +0 -25
  360. package/node_modules/cheerio/dist/esm/slim.d.ts.map +0 -1
  361. package/node_modules/cheerio/dist/esm/slim.js +0 -22
  362. package/node_modules/cheerio/dist/esm/slim.js.map +0 -1
  363. package/node_modules/cheerio/dist/esm/static.d.ts +0 -112
  364. package/node_modules/cheerio/dist/esm/static.d.ts.map +0 -1
  365. package/node_modules/cheerio/dist/esm/static.js +0 -204
  366. package/node_modules/cheerio/dist/esm/static.js.map +0 -1
  367. package/node_modules/cheerio/dist/esm/types.d.ts +0 -21
  368. package/node_modules/cheerio/dist/esm/types.d.ts.map +0 -1
  369. package/node_modules/cheerio/dist/esm/types.js +0 -3
  370. package/node_modules/cheerio/dist/esm/types.js.map +0 -1
  371. package/node_modules/cheerio/dist/esm/utils.d.ts +0 -55
  372. package/node_modules/cheerio/dist/esm/utils.d.ts.map +0 -1
  373. package/node_modules/cheerio/dist/esm/utils.js +0 -84
  374. package/node_modules/cheerio/dist/esm/utils.js.map +0 -1
  375. package/node_modules/cheerio/node_modules/undici/LICENSE +0 -21
  376. package/node_modules/cheerio/node_modules/undici/README.md +0 -741
  377. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Agent.md +0 -84
  378. package/node_modules/cheerio/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
  379. package/node_modules/cheerio/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
  380. package/node_modules/cheerio/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
  381. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Client.md +0 -285
  382. package/node_modules/cheerio/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
  383. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Connector.md +0 -115
  384. package/node_modules/cheerio/node_modules/undici/docs/docs/api/ContentType.md +0 -57
  385. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Cookies.md +0 -101
  386. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Debug.md +0 -62
  387. package/node_modules/cheerio/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
  388. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
  389. package/node_modules/cheerio/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
  390. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Errors.md +0 -49
  391. package/node_modules/cheerio/node_modules/undici/docs/docs/api/EventSource.md +0 -45
  392. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Fetch.md +0 -60
  393. package/node_modules/cheerio/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
  394. package/node_modules/cheerio/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
  395. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
  396. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
  397. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
  398. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockClient.md +0 -81
  399. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
  400. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockPool.md +0 -555
  401. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Pool.md +0 -84
  402. package/node_modules/cheerio/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
  403. package/node_modules/cheerio/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
  404. package/node_modules/cheerio/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
  405. package/node_modules/cheerio/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
  406. package/node_modules/cheerio/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
  407. package/node_modules/cheerio/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
  408. package/node_modules/cheerio/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
  409. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -274
  410. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Util.md +0 -25
  411. package/node_modules/cheerio/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
  412. package/node_modules/cheerio/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
  413. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
  414. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
  415. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
  416. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
  417. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
  418. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
  419. package/node_modules/cheerio/node_modules/undici/index-fetch.js +0 -65
  420. package/node_modules/cheerio/node_modules/undici/index.d.ts +0 -3
  421. package/node_modules/cheerio/node_modules/undici/index.js +0 -234
  422. package/node_modules/cheerio/node_modules/undici/lib/api/abort-signal.js +0 -59
  423. package/node_modules/cheerio/node_modules/undici/lib/api/api-connect.js +0 -110
  424. package/node_modules/cheerio/node_modules/undici/lib/api/api-pipeline.js +0 -252
  425. package/node_modules/cheerio/node_modules/undici/lib/api/api-request.js +0 -214
  426. package/node_modules/cheerio/node_modules/undici/lib/api/api-stream.js +0 -209
  427. package/node_modules/cheerio/node_modules/undici/lib/api/api-upgrade.js +0 -111
  428. package/node_modules/cheerio/node_modules/undici/lib/api/index.js +0 -7
  429. package/node_modules/cheerio/node_modules/undici/lib/api/readable.js +0 -580
  430. package/node_modules/cheerio/node_modules/undici/lib/cache/memory-cache-store.js +0 -234
  431. package/node_modules/cheerio/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -461
  432. package/node_modules/cheerio/node_modules/undici/lib/core/connect.js +0 -153
  433. package/node_modules/cheerio/node_modules/undici/lib/core/constants.js +0 -143
  434. package/node_modules/cheerio/node_modules/undici/lib/core/diagnostics.js +0 -227
  435. package/node_modules/cheerio/node_modules/undici/lib/core/errors.js +0 -477
  436. package/node_modules/cheerio/node_modules/undici/lib/core/request.js +0 -453
  437. package/node_modules/cheerio/node_modules/undici/lib/core/socks5-client.js +0 -412
  438. package/node_modules/cheerio/node_modules/undici/lib/core/socks5-utils.js +0 -198
  439. package/node_modules/cheerio/node_modules/undici/lib/core/symbols.js +0 -75
  440. package/node_modules/cheerio/node_modules/undici/lib/core/tree.js +0 -160
  441. package/node_modules/cheerio/node_modules/undici/lib/core/util.js +0 -992
  442. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/agent.js +0 -158
  443. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
  444. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/client-h1.js +0 -1654
  445. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
  446. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/client.js +0 -663
  447. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -165
  448. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
  449. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
  450. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
  451. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
  452. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
  453. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/pool.js +0 -118
  454. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -318
  455. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
  456. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
  457. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -249
  458. package/node_modules/cheerio/node_modules/undici/lib/encoding/index.js +0 -33
  459. package/node_modules/cheerio/node_modules/undici/lib/global.js +0 -50
  460. package/node_modules/cheerio/node_modules/undici/lib/handler/cache-handler.js +0 -578
  461. package/node_modules/cheerio/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
  462. package/node_modules/cheerio/node_modules/undici/lib/handler/decorator-handler.js +0 -67
  463. package/node_modules/cheerio/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
  464. package/node_modules/cheerio/node_modules/undici/lib/handler/redirect-handler.js +0 -238
  465. package/node_modules/cheerio/node_modules/undici/lib/handler/retry-handler.js +0 -394
  466. package/node_modules/cheerio/node_modules/undici/lib/handler/unwrap-handler.js +0 -100
  467. package/node_modules/cheerio/node_modules/undici/lib/handler/wrap-handler.js +0 -105
  468. package/node_modules/cheerio/node_modules/undici/lib/interceptor/cache.js +0 -495
  469. package/node_modules/cheerio/node_modules/undici/lib/interceptor/decompress.js +0 -259
  470. package/node_modules/cheerio/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
  471. package/node_modules/cheerio/node_modules/undici/lib/interceptor/dns.js +0 -571
  472. package/node_modules/cheerio/node_modules/undici/lib/interceptor/dump.js +0 -112
  473. package/node_modules/cheerio/node_modules/undici/lib/interceptor/redirect.js +0 -21
  474. package/node_modules/cheerio/node_modules/undici/lib/interceptor/response-error.js +0 -95
  475. package/node_modules/cheerio/node_modules/undici/lib/interceptor/retry.js +0 -19
  476. package/node_modules/cheerio/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  477. package/node_modules/cheerio/node_modules/undici/lib/llhttp/constants.d.ts +0 -195
  478. package/node_modules/cheerio/node_modules/undici/lib/llhttp/constants.js +0 -531
  479. package/node_modules/cheerio/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
  480. package/node_modules/cheerio/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
  481. package/node_modules/cheerio/node_modules/undici/lib/llhttp/utils.d.ts +0 -2
  482. package/node_modules/cheerio/node_modules/undici/lib/llhttp/utils.js +0 -12
  483. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-agent.js +0 -232
  484. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-call-history.js +0 -248
  485. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-client.js +0 -68
  486. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-errors.js +0 -29
  487. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
  488. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-pool.js +0 -68
  489. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-symbols.js +0 -32
  490. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-utils.js +0 -486
  491. package/node_modules/cheerio/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
  492. package/node_modules/cheerio/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
  493. package/node_modules/cheerio/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
  494. package/node_modules/cheerio/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
  495. package/node_modules/cheerio/node_modules/undici/lib/util/cache.js +0 -408
  496. package/node_modules/cheerio/node_modules/undici/lib/util/date.js +0 -653
  497. package/node_modules/cheerio/node_modules/undici/lib/util/promise.js +0 -28
  498. package/node_modules/cheerio/node_modules/undici/lib/util/runtime-features.js +0 -124
  499. package/node_modules/cheerio/node_modules/undici/lib/util/stats.js +0 -32
  500. package/node_modules/cheerio/node_modules/undici/lib/util/timers.js +0 -425
  501. package/node_modules/cheerio/node_modules/undici/lib/web/cache/cache.js +0 -864
  502. package/node_modules/cheerio/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
  503. package/node_modules/cheerio/node_modules/undici/lib/web/cache/util.js +0 -45
  504. package/node_modules/cheerio/node_modules/undici/lib/web/cookies/constants.js +0 -12
  505. package/node_modules/cheerio/node_modules/undici/lib/web/cookies/index.js +0 -199
  506. package/node_modules/cheerio/node_modules/undici/lib/web/cookies/parse.js +0 -322
  507. package/node_modules/cheerio/node_modules/undici/lib/web/cookies/util.js +0 -282
  508. package/node_modules/cheerio/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
  509. package/node_modules/cheerio/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
  510. package/node_modules/cheerio/node_modules/undici/lib/web/eventsource/util.js +0 -29
  511. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  512. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/body.js +0 -509
  513. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/constants.js +0 -131
  514. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/data-url.js +0 -596
  515. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
  516. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/formdata.js +0 -259
  517. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/global.js +0 -40
  518. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/headers.js +0 -719
  519. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/index.js +0 -2413
  520. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/request.js +0 -1115
  521. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/response.js +0 -641
  522. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/util.js +0 -1522
  523. package/node_modules/cheerio/node_modules/undici/lib/web/infra/index.js +0 -229
  524. package/node_modules/cheerio/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
  525. package/node_modules/cheerio/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
  526. package/node_modules/cheerio/node_modules/undici/lib/web/webidl/index.js +0 -1006
  527. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/connection.js +0 -329
  528. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/constants.js +0 -126
  529. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/events.js +0 -331
  530. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/frame.js +0 -133
  531. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -118
  532. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/receiver.js +0 -450
  533. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/sender.js +0 -109
  534. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
  535. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -491
  536. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/util.js +0 -347
  537. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/websocket.js +0 -751
  538. package/node_modules/cheerio/node_modules/undici/package.json +0 -152
  539. package/node_modules/cheerio/node_modules/undici/scripts/strip-comments.js +0 -10
  540. package/node_modules/cheerio/node_modules/undici/types/README.md +0 -6
  541. package/node_modules/cheerio/node_modules/undici/types/agent.d.ts +0 -32
  542. package/node_modules/cheerio/node_modules/undici/types/api.d.ts +0 -43
  543. package/node_modules/cheerio/node_modules/undici/types/balanced-pool.d.ts +0 -30
  544. package/node_modules/cheerio/node_modules/undici/types/cache-interceptor.d.ts +0 -179
  545. package/node_modules/cheerio/node_modules/undici/types/cache.d.ts +0 -36
  546. package/node_modules/cheerio/node_modules/undici/types/client-stats.d.ts +0 -15
  547. package/node_modules/cheerio/node_modules/undici/types/client.d.ts +0 -123
  548. package/node_modules/cheerio/node_modules/undici/types/connector.d.ts +0 -36
  549. package/node_modules/cheerio/node_modules/undici/types/content-type.d.ts +0 -21
  550. package/node_modules/cheerio/node_modules/undici/types/cookies.d.ts +0 -30
  551. package/node_modules/cheerio/node_modules/undici/types/diagnostics-channel.d.ts +0 -74
  552. package/node_modules/cheerio/node_modules/undici/types/dispatcher.d.ts +0 -273
  553. package/node_modules/cheerio/node_modules/undici/types/env-http-proxy-agent.d.ts +0 -22
  554. package/node_modules/cheerio/node_modules/undici/types/errors.d.ts +0 -177
  555. package/node_modules/cheerio/node_modules/undici/types/eventsource.d.ts +0 -66
  556. package/node_modules/cheerio/node_modules/undici/types/fetch.d.ts +0 -231
  557. package/node_modules/cheerio/node_modules/undici/types/formdata.d.ts +0 -114
  558. package/node_modules/cheerio/node_modules/undici/types/global-dispatcher.d.ts +0 -9
  559. package/node_modules/cheerio/node_modules/undici/types/global-origin.d.ts +0 -7
  560. package/node_modules/cheerio/node_modules/undici/types/h2c-client.d.ts +0 -73
  561. package/node_modules/cheerio/node_modules/undici/types/handlers.d.ts +0 -14
  562. package/node_modules/cheerio/node_modules/undici/types/header.d.ts +0 -160
  563. package/node_modules/cheerio/node_modules/undici/types/index.d.ts +0 -91
  564. package/node_modules/cheerio/node_modules/undici/types/interceptors.d.ts +0 -80
  565. package/node_modules/cheerio/node_modules/undici/types/mock-agent.d.ts +0 -68
  566. package/node_modules/cheerio/node_modules/undici/types/mock-call-history.d.ts +0 -111
  567. package/node_modules/cheerio/node_modules/undici/types/mock-client.d.ts +0 -27
  568. package/node_modules/cheerio/node_modules/undici/types/mock-errors.d.ts +0 -12
  569. package/node_modules/cheerio/node_modules/undici/types/mock-interceptor.d.ts +0 -94
  570. package/node_modules/cheerio/node_modules/undici/types/mock-pool.d.ts +0 -27
  571. package/node_modules/cheerio/node_modules/undici/types/patch.d.ts +0 -29
  572. package/node_modules/cheerio/node_modules/undici/types/pool-stats.d.ts +0 -19
  573. package/node_modules/cheerio/node_modules/undici/types/pool.d.ts +0 -41
  574. package/node_modules/cheerio/node_modules/undici/types/proxy-agent.d.ts +0 -29
  575. package/node_modules/cheerio/node_modules/undici/types/readable.d.ts +0 -68
  576. package/node_modules/cheerio/node_modules/undici/types/retry-agent.d.ts +0 -8
  577. package/node_modules/cheerio/node_modules/undici/types/retry-handler.d.ts +0 -125
  578. package/node_modules/cheerio/node_modules/undici/types/round-robin-pool.d.ts +0 -41
  579. package/node_modules/cheerio/node_modules/undici/types/snapshot-agent.d.ts +0 -109
  580. package/node_modules/cheerio/node_modules/undici/types/socks5-proxy-agent.d.ts +0 -25
  581. package/node_modules/cheerio/node_modules/undici/types/util.d.ts +0 -18
  582. package/node_modules/cheerio/node_modules/undici/types/utility.d.ts +0 -7
  583. package/node_modules/cheerio/node_modules/undici/types/webidl.d.ts +0 -347
  584. package/node_modules/cheerio/node_modules/undici/types/websocket.d.ts +0 -188
  585. package/node_modules/cheerio/package.json +0 -182
  586. package/node_modules/cheerio/src/api/attributes.ts +0 -1145
  587. package/node_modules/cheerio/src/api/css.ts +0 -224
  588. package/node_modules/cheerio/src/api/extract.ts +0 -92
  589. package/node_modules/cheerio/src/api/forms.ts +0 -103
  590. package/node_modules/cheerio/src/api/manipulation.ts +0 -1115
  591. package/node_modules/cheerio/src/api/traversing.ts +0 -1175
  592. package/node_modules/cheerio/src/cheerio.ts +0 -143
  593. package/node_modules/cheerio/src/index-browser.mts +0 -10
  594. package/node_modules/cheerio/src/index.ts +0 -294
  595. package/node_modules/cheerio/src/load-parse.ts +0 -39
  596. package/node_modules/cheerio/src/load.ts +0 -282
  597. package/node_modules/cheerio/src/options.ts +0 -136
  598. package/node_modules/cheerio/src/parse.ts +0 -105
  599. package/node_modules/cheerio/src/parsers/parse5-adapter.ts +0 -66
  600. package/node_modules/cheerio/src/slim.ts +0 -33
  601. package/node_modules/cheerio/src/static.ts +0 -312
  602. package/node_modules/cheerio/src/types.ts +0 -58
  603. package/node_modules/cheerio/src/utils.ts +0 -99
  604. package/node_modules/cheerio-select/README.md +0 -18
  605. package/node_modules/cheerio-select/lib/esm/helpers.d.ts +0 -5
  606. package/node_modules/cheerio-select/lib/esm/helpers.d.ts.map +0 -1
  607. package/node_modules/cheerio-select/lib/esm/helpers.js +0 -20
  608. package/node_modules/cheerio-select/lib/esm/helpers.js.map +0 -1
  609. package/node_modules/cheerio-select/lib/esm/index.d.ts +0 -12
  610. package/node_modules/cheerio-select/lib/esm/index.d.ts.map +0 -1
  611. package/node_modules/cheerio-select/lib/esm/index.js +0 -241
  612. package/node_modules/cheerio-select/lib/esm/index.js.map +0 -1
  613. package/node_modules/cheerio-select/lib/esm/package.json +0 -1
  614. package/node_modules/cheerio-select/lib/esm/positionals.d.ts +0 -10
  615. package/node_modules/cheerio-select/lib/esm/positionals.d.ts.map +0 -1
  616. package/node_modules/cheerio-select/lib/esm/positionals.js +0 -47
  617. package/node_modules/cheerio-select/lib/esm/positionals.js.map +0 -1
  618. package/node_modules/cheerio-select/lib/helpers.d.ts +0 -5
  619. package/node_modules/cheerio-select/lib/helpers.d.ts.map +0 -1
  620. package/node_modules/cheerio-select/lib/helpers.js +0 -26
  621. package/node_modules/cheerio-select/lib/helpers.js.map +0 -1
  622. package/node_modules/cheerio-select/lib/index.d.ts +0 -12
  623. package/node_modules/cheerio-select/lib/index.d.ts.map +0 -1
  624. package/node_modules/cheerio-select/lib/index.js +0 -302
  625. package/node_modules/cheerio-select/lib/index.js.map +0 -1
  626. package/node_modules/cheerio-select/lib/positionals.d.ts +0 -10
  627. package/node_modules/cheerio-select/lib/positionals.d.ts.map +0 -1
  628. package/node_modules/cheerio-select/lib/positionals.js +0 -52
  629. package/node_modules/cheerio-select/lib/positionals.js.map +0 -1
  630. package/node_modules/cheerio-select/package.json +0 -76
  631. package/node_modules/css-select/README.md +0 -264
  632. package/node_modules/css-select/lib/attributes.d.ts +0 -7
  633. package/node_modules/css-select/lib/attributes.d.ts.map +0 -1
  634. package/node_modules/css-select/lib/attributes.js +0 -236
  635. package/node_modules/css-select/lib/attributes.js.map +0 -1
  636. package/node_modules/css-select/lib/compile.d.ts +0 -13
  637. package/node_modules/css-select/lib/compile.d.ts.map +0 -1
  638. package/node_modules/css-select/lib/compile.js +0 -151
  639. package/node_modules/css-select/lib/compile.js.map +0 -1
  640. package/node_modules/css-select/lib/esm/attributes.d.ts +0 -7
  641. package/node_modules/css-select/lib/esm/attributes.d.ts.map +0 -1
  642. package/node_modules/css-select/lib/esm/attributes.js +0 -222
  643. package/node_modules/css-select/lib/esm/attributes.js.map +0 -1
  644. package/node_modules/css-select/lib/esm/compile.d.ts +0 -13
  645. package/node_modules/css-select/lib/esm/compile.d.ts.map +0 -1
  646. package/node_modules/css-select/lib/esm/compile.js +0 -115
  647. package/node_modules/css-select/lib/esm/compile.js.map +0 -1
  648. package/node_modules/css-select/lib/esm/general.d.ts +0 -3
  649. package/node_modules/css-select/lib/esm/general.d.ts.map +0 -1
  650. package/node_modules/css-select/lib/esm/general.js +0 -144
  651. package/node_modules/css-select/lib/esm/general.js.map +0 -1
  652. package/node_modules/css-select/lib/esm/index.d.ts +0 -50
  653. package/node_modules/css-select/lib/esm/index.d.ts.map +0 -1
  654. package/node_modules/css-select/lib/esm/index.js +0 -115
  655. package/node_modules/css-select/lib/esm/index.js.map +0 -1
  656. package/node_modules/css-select/lib/esm/package.json +0 -1
  657. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts +0 -5
  658. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts.map +0 -1
  659. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js +0 -35
  660. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js.map +0 -1
  661. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts +0 -4
  662. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts.map +0 -1
  663. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js +0 -143
  664. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js.map +0 -1
  665. package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts +0 -8
  666. package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts.map +0 -1
  667. package/node_modules/css-select/lib/esm/pseudo-selectors/index.js +0 -40
  668. package/node_modules/css-select/lib/esm/pseudo-selectors/index.js.map +0 -1
  669. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts +0 -6
  670. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts.map +0 -1
  671. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js +0 -79
  672. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js.map +0 -1
  673. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts +0 -9
  674. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts.map +0 -1
  675. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js +0 -94
  676. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js.map +0 -1
  677. package/node_modules/css-select/lib/esm/sort.d.ts +0 -12
  678. package/node_modules/css-select/lib/esm/sort.d.ts.map +0 -1
  679. package/node_modules/css-select/lib/esm/sort.js +0 -79
  680. package/node_modules/css-select/lib/esm/sort.js.map +0 -1
  681. package/node_modules/css-select/lib/esm/types.d.ts +0 -167
  682. package/node_modules/css-select/lib/esm/types.d.ts.map +0 -1
  683. package/node_modules/css-select/lib/esm/types.js +0 -2
  684. package/node_modules/css-select/lib/esm/types.js.map +0 -1
  685. package/node_modules/css-select/lib/general.d.ts +0 -3
  686. package/node_modules/css-select/lib/general.d.ts.map +0 -1
  687. package/node_modules/css-select/lib/general.js +0 -148
  688. package/node_modules/css-select/lib/general.js.map +0 -1
  689. package/node_modules/css-select/lib/index.d.ts +0 -50
  690. package/node_modules/css-select/lib/index.d.ts.map +0 -1
  691. package/node_modules/css-select/lib/index.js +0 -154
  692. package/node_modules/css-select/lib/index.js.map +0 -1
  693. package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts +0 -5
  694. package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts.map +0 -1
  695. package/node_modules/css-select/lib/pseudo-selectors/aliases.js +0 -34
  696. package/node_modules/css-select/lib/pseudo-selectors/aliases.js.map +0 -1
  697. package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts +0 -4
  698. package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts.map +0 -1
  699. package/node_modules/css-select/lib/pseudo-selectors/filters.js +0 -157
  700. package/node_modules/css-select/lib/pseudo-selectors/filters.js.map +0 -1
  701. package/node_modules/css-select/lib/pseudo-selectors/index.d.ts +0 -8
  702. package/node_modules/css-select/lib/pseudo-selectors/index.d.ts.map +0 -1
  703. package/node_modules/css-select/lib/pseudo-selectors/index.js +0 -46
  704. package/node_modules/css-select/lib/pseudo-selectors/index.js.map +0 -1
  705. package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts +0 -6
  706. package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts.map +0 -1
  707. package/node_modules/css-select/lib/pseudo-selectors/pseudos.js +0 -93
  708. package/node_modules/css-select/lib/pseudo-selectors/pseudos.js.map +0 -1
  709. package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts +0 -9
  710. package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts.map +0 -1
  711. package/node_modules/css-select/lib/pseudo-selectors/subselects.js +0 -112
  712. package/node_modules/css-select/lib/pseudo-selectors/subselects.js.map +0 -1
  713. package/node_modules/css-select/lib/sort.d.ts +0 -12
  714. package/node_modules/css-select/lib/sort.d.ts.map +0 -1
  715. package/node_modules/css-select/lib/sort.js +0 -84
  716. package/node_modules/css-select/lib/sort.js.map +0 -1
  717. package/node_modules/css-select/lib/types.d.ts +0 -167
  718. package/node_modules/css-select/lib/types.d.ts.map +0 -1
  719. package/node_modules/css-select/lib/types.js +0 -3
  720. package/node_modules/css-select/lib/types.js.map +0 -1
  721. package/node_modules/css-select/package.json +0 -81
  722. package/node_modules/css-what/lib/commonjs/index.d.ts +0 -4
  723. package/node_modules/css-what/lib/commonjs/index.d.ts.map +0 -1
  724. package/node_modules/css-what/lib/commonjs/index.js +0 -23
  725. package/node_modules/css-what/lib/commonjs/parse.d.ts +0 -20
  726. package/node_modules/css-what/lib/commonjs/parse.d.ts.map +0 -1
  727. package/node_modules/css-what/lib/commonjs/parse.js +0 -425
  728. package/node_modules/css-what/lib/commonjs/stringify.d.ts +0 -8
  729. package/node_modules/css-what/lib/commonjs/stringify.d.ts.map +0 -1
  730. package/node_modules/css-what/lib/commonjs/stringify.js +0 -138
  731. package/node_modules/css-what/lib/commonjs/types.d.ts +0 -70
  732. package/node_modules/css-what/lib/commonjs/types.d.ts.map +0 -1
  733. package/node_modules/css-what/lib/commonjs/types.js +0 -42
  734. package/node_modules/css-what/lib/es/index.d.ts +0 -4
  735. package/node_modules/css-what/lib/es/index.d.ts.map +0 -1
  736. package/node_modules/css-what/lib/es/index.js +0 -3
  737. package/node_modules/css-what/lib/es/parse.d.ts +0 -20
  738. package/node_modules/css-what/lib/es/parse.d.ts.map +0 -1
  739. package/node_modules/css-what/lib/es/parse.js +0 -420
  740. package/node_modules/css-what/lib/es/stringify.d.ts +0 -8
  741. package/node_modules/css-what/lib/es/stringify.d.ts.map +0 -1
  742. package/node_modules/css-what/lib/es/stringify.js +0 -126
  743. package/node_modules/css-what/lib/es/types.d.ts +0 -70
  744. package/node_modules/css-what/lib/es/types.d.ts.map +0 -1
  745. package/node_modules/css-what/lib/es/types.js +0 -39
  746. package/node_modules/css-what/package.json +0 -59
  747. package/node_modules/css-what/readme.md +0 -69
  748. package/node_modules/dom-serializer/LICENSE +0 -11
  749. package/node_modules/dom-serializer/README.md +0 -109
  750. package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts +0 -3
  751. package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map +0 -1
  752. package/node_modules/dom-serializer/lib/esm/foreignNames.js +0 -100
  753. package/node_modules/dom-serializer/lib/esm/index.d.ts +0 -52
  754. package/node_modules/dom-serializer/lib/esm/index.d.ts.map +0 -1
  755. package/node_modules/dom-serializer/lib/esm/index.js +0 -190
  756. package/node_modules/dom-serializer/lib/esm/package.json +0 -1
  757. package/node_modules/dom-serializer/lib/foreignNames.d.ts +0 -3
  758. package/node_modules/dom-serializer/lib/foreignNames.d.ts.map +0 -1
  759. package/node_modules/dom-serializer/lib/foreignNames.js +0 -103
  760. package/node_modules/dom-serializer/lib/index.d.ts +0 -52
  761. package/node_modules/dom-serializer/lib/index.d.ts.map +0 -1
  762. package/node_modules/dom-serializer/lib/index.js +0 -229
  763. package/node_modules/dom-serializer/package.json +0 -69
  764. package/node_modules/domelementtype/LICENSE +0 -11
  765. package/node_modules/domelementtype/lib/esm/index.d.ts +0 -48
  766. package/node_modules/domelementtype/lib/esm/index.d.ts.map +0 -1
  767. package/node_modules/domelementtype/lib/esm/index.js +0 -51
  768. package/node_modules/domelementtype/lib/esm/package.json +0 -1
  769. package/node_modules/domelementtype/lib/index.d.ts +0 -48
  770. package/node_modules/domelementtype/lib/index.d.ts.map +0 -1
  771. package/node_modules/domelementtype/lib/index.js +0 -55
  772. package/node_modules/domelementtype/package.json +0 -54
  773. package/node_modules/domhandler/LICENSE +0 -11
  774. package/node_modules/domhandler/lib/esm/index.d.ts +0 -76
  775. package/node_modules/domhandler/lib/esm/index.d.ts.map +0 -1
  776. package/node_modules/domhandler/lib/esm/index.js +0 -146
  777. package/node_modules/domhandler/lib/esm/node.d.ts +0 -245
  778. package/node_modules/domhandler/lib/esm/node.d.ts.map +0 -1
  779. package/node_modules/domhandler/lib/esm/node.js +0 -338
  780. package/node_modules/domhandler/lib/esm/package.json +0 -1
  781. package/node_modules/domhandler/lib/index.d.ts +0 -76
  782. package/node_modules/domhandler/lib/index.d.ts.map +0 -1
  783. package/node_modules/domhandler/lib/index.js +0 -165
  784. package/node_modules/domhandler/lib/node.d.ts +0 -245
  785. package/node_modules/domhandler/lib/node.d.ts.map +0 -1
  786. package/node_modules/domhandler/lib/node.js +0 -474
  787. package/node_modules/domhandler/package.json +0 -73
  788. package/node_modules/domhandler/readme.md +0 -92
  789. package/node_modules/domutils/LICENSE +0 -11
  790. package/node_modules/domutils/lib/esm/feeds.d.ts +0 -71
  791. package/node_modules/domutils/lib/esm/feeds.d.ts.map +0 -1
  792. package/node_modules/domutils/lib/esm/feeds.js +0 -183
  793. package/node_modules/domutils/lib/esm/feeds.js.map +0 -1
  794. package/node_modules/domutils/lib/esm/helpers.d.ts +0 -59
  795. package/node_modules/domutils/lib/esm/helpers.d.ts.map +0 -1
  796. package/node_modules/domutils/lib/esm/helpers.js +0 -136
  797. package/node_modules/domutils/lib/esm/helpers.js.map +0 -1
  798. package/node_modules/domutils/lib/esm/index.d.ts +0 -10
  799. package/node_modules/domutils/lib/esm/index.d.ts.map +0 -1
  800. package/node_modules/domutils/lib/esm/index.js +0 -10
  801. package/node_modules/domutils/lib/esm/index.js.map +0 -1
  802. package/node_modules/domutils/lib/esm/legacy.d.ts +0 -79
  803. package/node_modules/domutils/lib/esm/legacy.d.ts.map +0 -1
  804. package/node_modules/domutils/lib/esm/legacy.js +0 -152
  805. package/node_modules/domutils/lib/esm/legacy.js.map +0 -1
  806. package/node_modules/domutils/lib/esm/manipulation.d.ts +0 -49
  807. package/node_modules/domutils/lib/esm/manipulation.d.ts.map +0 -1
  808. package/node_modules/domutils/lib/esm/manipulation.js +0 -134
  809. package/node_modules/domutils/lib/esm/manipulation.js.map +0 -1
  810. package/node_modules/domutils/lib/esm/package.json +0 -1
  811. package/node_modules/domutils/lib/esm/querying.d.ts +0 -64
  812. package/node_modules/domutils/lib/esm/querying.d.ts.map +0 -1
  813. package/node_modules/domutils/lib/esm/querying.js +0 -142
  814. package/node_modules/domutils/lib/esm/querying.js.map +0 -1
  815. package/node_modules/domutils/lib/esm/stringify.d.ts +0 -46
  816. package/node_modules/domutils/lib/esm/stringify.d.ts.map +0 -1
  817. package/node_modules/domutils/lib/esm/stringify.js +0 -81
  818. package/node_modules/domutils/lib/esm/stringify.js.map +0 -1
  819. package/node_modules/domutils/lib/esm/traversal.d.ts +0 -67
  820. package/node_modules/domutils/lib/esm/traversal.d.ts.map +0 -1
  821. package/node_modules/domutils/lib/esm/traversal.js +0 -112
  822. package/node_modules/domutils/lib/esm/traversal.js.map +0 -1
  823. package/node_modules/domutils/lib/feeds.d.ts +0 -71
  824. package/node_modules/domutils/lib/feeds.d.ts.map +0 -1
  825. package/node_modules/domutils/lib/feeds.js +0 -190
  826. package/node_modules/domutils/lib/feeds.js.map +0 -1
  827. package/node_modules/domutils/lib/helpers.d.ts +0 -59
  828. package/node_modules/domutils/lib/helpers.d.ts.map +0 -1
  829. package/node_modules/domutils/lib/helpers.js +0 -142
  830. package/node_modules/domutils/lib/helpers.js.map +0 -1
  831. package/node_modules/domutils/lib/index.d.ts +0 -10
  832. package/node_modules/domutils/lib/index.d.ts.map +0 -1
  833. package/node_modules/domutils/lib/index.js +0 -33
  834. package/node_modules/domutils/lib/index.js.map +0 -1
  835. package/node_modules/domutils/lib/legacy.d.ts +0 -79
  836. package/node_modules/domutils/lib/legacy.d.ts.map +0 -1
  837. package/node_modules/domutils/lib/legacy.js +0 -168
  838. package/node_modules/domutils/lib/legacy.js.map +0 -1
  839. package/node_modules/domutils/lib/manipulation.d.ts +0 -49
  840. package/node_modules/domutils/lib/manipulation.d.ts.map +0 -1
  841. package/node_modules/domutils/lib/manipulation.js +0 -142
  842. package/node_modules/domutils/lib/manipulation.js.map +0 -1
  843. package/node_modules/domutils/lib/querying.d.ts +0 -64
  844. package/node_modules/domutils/lib/querying.d.ts.map +0 -1
  845. package/node_modules/domutils/lib/querying.js +0 -155
  846. package/node_modules/domutils/lib/querying.js.map +0 -1
  847. package/node_modules/domutils/lib/stringify.d.ts +0 -46
  848. package/node_modules/domutils/lib/stringify.d.ts.map +0 -1
  849. package/node_modules/domutils/lib/stringify.js +0 -91
  850. package/node_modules/domutils/lib/stringify.js.map +0 -1
  851. package/node_modules/domutils/lib/traversal.d.ts +0 -67
  852. package/node_modules/domutils/lib/traversal.d.ts.map +0 -1
  853. package/node_modules/domutils/lib/traversal.js +0 -125
  854. package/node_modules/domutils/lib/traversal.js.map +0 -1
  855. package/node_modules/domutils/package.json +0 -79
  856. package/node_modules/domutils/readme.md +0 -31
  857. package/node_modules/encoding-sniffer/LICENSE +0 -18
  858. package/node_modules/encoding-sniffer/README.md +0 -68
  859. package/node_modules/encoding-sniffer/dist/commonjs/index.d.ts +0 -31
  860. package/node_modules/encoding-sniffer/dist/commonjs/index.d.ts.map +0 -1
  861. package/node_modules/encoding-sniffer/dist/commonjs/index.js +0 -72
  862. package/node_modules/encoding-sniffer/dist/commonjs/index.js.map +0 -1
  863. package/node_modules/encoding-sniffer/dist/commonjs/package.json +0 -3
  864. package/node_modules/encoding-sniffer/dist/commonjs/sniffer.d.ts +0 -148
  865. package/node_modules/encoding-sniffer/dist/commonjs/sniffer.d.ts.map +0 -1
  866. package/node_modules/encoding-sniffer/dist/commonjs/sniffer.js +0 -990
  867. package/node_modules/encoding-sniffer/dist/commonjs/sniffer.js.map +0 -1
  868. package/node_modules/encoding-sniffer/dist/esm/index.d.ts +0 -31
  869. package/node_modules/encoding-sniffer/dist/esm/index.d.ts.map +0 -1
  870. package/node_modules/encoding-sniffer/dist/esm/index.js +0 -63
  871. package/node_modules/encoding-sniffer/dist/esm/index.js.map +0 -1
  872. package/node_modules/encoding-sniffer/dist/esm/package.json +0 -3
  873. package/node_modules/encoding-sniffer/dist/esm/sniffer.d.ts +0 -148
  874. package/node_modules/encoding-sniffer/dist/esm/sniffer.d.ts.map +0 -1
  875. package/node_modules/encoding-sniffer/dist/esm/sniffer.js +0 -985
  876. package/node_modules/encoding-sniffer/dist/esm/sniffer.js.map +0 -1
  877. package/node_modules/encoding-sniffer/package.json +0 -94
  878. package/node_modules/encoding-sniffer/sniffer.d.ts +0 -2
  879. package/node_modules/encoding-sniffer/sniffer.js +0 -3
  880. package/node_modules/entities/LICENSE +0 -11
  881. package/node_modules/entities/lib/decode.d.ts +0 -211
  882. package/node_modules/entities/lib/decode.d.ts.map +0 -1
  883. package/node_modules/entities/lib/decode.js +0 -536
  884. package/node_modules/entities/lib/decode.js.map +0 -1
  885. package/node_modules/entities/lib/decode_codepoint.d.ts +0 -19
  886. package/node_modules/entities/lib/decode_codepoint.d.ts.map +0 -1
  887. package/node_modules/entities/lib/decode_codepoint.js +0 -76
  888. package/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  889. package/node_modules/entities/lib/encode.d.ts +0 -22
  890. package/node_modules/entities/lib/encode.d.ts.map +0 -1
  891. package/node_modules/entities/lib/encode.js +0 -77
  892. package/node_modules/entities/lib/encode.js.map +0 -1
  893. package/node_modules/entities/lib/escape.d.ts +0 -43
  894. package/node_modules/entities/lib/escape.d.ts.map +0 -1
  895. package/node_modules/entities/lib/escape.js +0 -122
  896. package/node_modules/entities/lib/escape.js.map +0 -1
  897. package/node_modules/entities/lib/esm/decode.d.ts +0 -211
  898. package/node_modules/entities/lib/esm/decode.d.ts.map +0 -1
  899. package/node_modules/entities/lib/esm/decode.js +0 -496
  900. package/node_modules/entities/lib/esm/decode.js.map +0 -1
  901. package/node_modules/entities/lib/esm/decode_codepoint.d.ts +0 -19
  902. package/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +0 -1
  903. package/node_modules/entities/lib/esm/decode_codepoint.js +0 -71
  904. package/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
  905. package/node_modules/entities/lib/esm/encode.d.ts +0 -22
  906. package/node_modules/entities/lib/esm/encode.d.ts.map +0 -1
  907. package/node_modules/entities/lib/esm/encode.js +0 -69
  908. package/node_modules/entities/lib/esm/encode.js.map +0 -1
  909. package/node_modules/entities/lib/esm/escape.d.ts +0 -43
  910. package/node_modules/entities/lib/esm/escape.d.ts.map +0 -1
  911. package/node_modules/entities/lib/esm/escape.js +0 -116
  912. package/node_modules/entities/lib/esm/escape.js.map +0 -1
  913. package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
  914. package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +0 -1
  915. package/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  916. package/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
  917. package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
  918. package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
  919. package/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  920. package/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
  921. package/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
  922. package/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +0 -1
  923. package/node_modules/entities/lib/esm/generated/encode-html.js +0 -10
  924. package/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
  925. package/node_modules/entities/lib/esm/index.d.ts +0 -96
  926. package/node_modules/entities/lib/esm/index.d.ts.map +0 -1
  927. package/node_modules/entities/lib/esm/index.js +0 -99
  928. package/node_modules/entities/lib/esm/index.js.map +0 -1
  929. package/node_modules/entities/lib/esm/package.json +0 -1
  930. package/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
  931. package/node_modules/entities/lib/generated/decode-data-html.d.ts.map +0 -1
  932. package/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  933. package/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  934. package/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
  935. package/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +0 -1
  936. package/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  937. package/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  938. package/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
  939. package/node_modules/entities/lib/generated/encode-html.d.ts.map +0 -1
  940. package/node_modules/entities/lib/generated/encode-html.js +0 -12
  941. package/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  942. package/node_modules/entities/lib/index.d.ts +0 -96
  943. package/node_modules/entities/lib/index.d.ts.map +0 -1
  944. package/node_modules/entities/lib/index.js +0 -126
  945. package/node_modules/entities/lib/index.js.map +0 -1
  946. package/node_modules/entities/package.json +0 -90
  947. package/node_modules/entities/readme.md +0 -122
  948. package/node_modules/htmlparser2/WritableStream.js +0 -3
  949. package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts +0 -198
  950. package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts.map +0 -1
  951. package/node_modules/htmlparser2/dist/commonjs/Parser.js +0 -527
  952. package/node_modules/htmlparser2/dist/commonjs/Parser.js.map +0 -1
  953. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.d.ts +0 -126
  954. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.d.ts.map +0 -1
  955. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +0 -805
  956. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +0 -1
  957. package/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts +0 -15
  958. package/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts.map +0 -1
  959. package/node_modules/htmlparser2/dist/commonjs/WritableStream.js +0 -36
  960. package/node_modules/htmlparser2/dist/commonjs/WritableStream.js.map +0 -1
  961. package/node_modules/htmlparser2/dist/commonjs/index.d.ts +0 -54
  962. package/node_modules/htmlparser2/dist/commonjs/index.d.ts.map +0 -1
  963. package/node_modules/htmlparser2/dist/commonjs/index.js +0 -123
  964. package/node_modules/htmlparser2/dist/commonjs/index.js.map +0 -1
  965. package/node_modules/htmlparser2/dist/commonjs/package.json +0 -3
  966. package/node_modules/htmlparser2/dist/esm/Parser.d.ts +0 -198
  967. package/node_modules/htmlparser2/dist/esm/Parser.d.ts.map +0 -1
  968. package/node_modules/htmlparser2/dist/esm/Parser.js +0 -490
  969. package/node_modules/htmlparser2/dist/esm/Parser.js.map +0 -1
  970. package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts +0 -126
  971. package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts.map +0 -1
  972. package/node_modules/htmlparser2/dist/esm/Tokenizer.js +0 -801
  973. package/node_modules/htmlparser2/dist/esm/Tokenizer.js.map +0 -1
  974. package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts +0 -15
  975. package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts.map +0 -1
  976. package/node_modules/htmlparser2/dist/esm/WritableStream.js +0 -32
  977. package/node_modules/htmlparser2/dist/esm/WritableStream.js.map +0 -1
  978. package/node_modules/htmlparser2/dist/esm/index.d.ts +0 -54
  979. package/node_modules/htmlparser2/dist/esm/index.d.ts.map +0 -1
  980. package/node_modules/htmlparser2/dist/esm/index.js +0 -74
  981. package/node_modules/htmlparser2/dist/esm/index.js.map +0 -1
  982. package/node_modules/htmlparser2/dist/esm/package.json +0 -3
  983. package/node_modules/htmlparser2/node_modules/entities/decode.d.ts +0 -3
  984. package/node_modules/htmlparser2/node_modules/entities/decode.js +0 -3
  985. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
  986. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +0 -1
  987. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
  988. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
  989. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.d.ts +0 -205
  990. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.d.ts.map +0 -1
  991. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +0 -568
  992. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +0 -1
  993. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.d.ts +0 -22
  994. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.d.ts.map +0 -1
  995. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js +0 -92
  996. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js.map +0 -1
  997. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.d.ts +0 -46
  998. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.d.ts.map +0 -1
  999. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js +0 -138
  1000. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js.map +0 -1
  1001. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
  1002. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +0 -1
  1003. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
  1004. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
  1005. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
  1006. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +0 -1
  1007. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
  1008. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
  1009. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -3
  1010. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +0 -1
  1011. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js +0 -14
  1012. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js.map +0 -1
  1013. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.d.ts +0 -96
  1014. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.d.ts.map +0 -1
  1015. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js +0 -131
  1016. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js.map +0 -1
  1017. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +0 -1
  1018. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
  1019. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +0 -1
  1020. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +0 -2
  1021. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +0 -1
  1022. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
  1023. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +0 -1
  1024. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +0 -32
  1025. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +0 -1
  1026. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js +0 -94
  1027. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +0 -1
  1028. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/package.json +0 -3
  1029. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
  1030. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +0 -1
  1031. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js +0 -72
  1032. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js.map +0 -1
  1033. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts +0 -205
  1034. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts.map +0 -1
  1035. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js +0 -554
  1036. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js.map +0 -1
  1037. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts +0 -22
  1038. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts.map +0 -1
  1039. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js +0 -88
  1040. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js.map +0 -1
  1041. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts +0 -46
  1042. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts.map +0 -1
  1043. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js +0 -134
  1044. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js.map +0 -1
  1045. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
  1046. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +0 -1
  1047. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -4
  1048. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js.map +0 -1
  1049. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
  1050. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +0 -1
  1051. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js +0 -4
  1052. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +0 -1
  1053. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -3
  1054. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +0 -1
  1055. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js +0 -11
  1056. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js.map +0 -1
  1057. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts +0 -96
  1058. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts.map +0 -1
  1059. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.js +0 -107
  1060. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.js.map +0 -1
  1061. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +0 -17
  1062. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +0 -1
  1063. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +0 -1
  1064. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts +0 -2
  1065. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +0 -1
  1066. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js +0 -28
  1067. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js.map +0 -1
  1068. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts +0 -32
  1069. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +0 -1
  1070. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js +0 -91
  1071. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js.map +0 -1
  1072. package/node_modules/htmlparser2/node_modules/entities/dist/esm/package.json +0 -3
  1073. package/node_modules/htmlparser2/node_modules/entities/escape.d.ts +0 -3
  1074. package/node_modules/htmlparser2/node_modules/entities/escape.js +0 -3
  1075. package/node_modules/htmlparser2/node_modules/entities/src/generated/.eslintrc.json +0 -10
  1076. package/node_modules/iconv-lite/.github/dependabot.yml +0 -11
  1077. package/node_modules/iconv-lite/.idea/codeStyles/Project.xml +0 -47
  1078. package/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +0 -5
  1079. package/node_modules/iconv-lite/.idea/iconv-lite.iml +0 -12
  1080. package/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +0 -6
  1081. package/node_modules/iconv-lite/.idea/modules.xml +0 -8
  1082. package/node_modules/iconv-lite/.idea/vcs.xml +0 -6
  1083. package/node_modules/iconv-lite/Changelog.md +0 -212
  1084. package/node_modules/iconv-lite/LICENSE +0 -21
  1085. package/node_modules/iconv-lite/README.md +0 -130
  1086. package/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -597
  1087. package/node_modules/iconv-lite/encodings/dbcs-data.js +0 -188
  1088. package/node_modules/iconv-lite/encodings/index.js +0 -23
  1089. package/node_modules/iconv-lite/encodings/internal.js +0 -198
  1090. package/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  1091. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  1092. package/node_modules/iconv-lite/encodings/sbcs-data.js +0 -179
  1093. package/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  1094. package/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  1095. package/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  1096. package/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  1097. package/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  1098. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  1099. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  1100. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  1101. package/node_modules/iconv-lite/encodings/utf16.js +0 -197
  1102. package/node_modules/iconv-lite/encodings/utf32.js +0 -319
  1103. package/node_modules/iconv-lite/encodings/utf7.js +0 -290
  1104. package/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  1105. package/node_modules/iconv-lite/lib/index.d.ts +0 -41
  1106. package/node_modules/iconv-lite/lib/index.js +0 -180
  1107. package/node_modules/iconv-lite/lib/streams.js +0 -109
  1108. package/node_modules/iconv-lite/package.json +0 -44
  1109. package/node_modules/nth-check/LICENSE +0 -11
  1110. package/node_modules/nth-check/README.md +0 -136
  1111. package/node_modules/nth-check/lib/compile.d.ts +0 -55
  1112. package/node_modules/nth-check/lib/compile.d.ts.map +0 -1
  1113. package/node_modules/nth-check/lib/compile.js +0 -121
  1114. package/node_modules/nth-check/lib/compile.js.map +0 -1
  1115. package/node_modules/nth-check/lib/esm/compile.d.ts +0 -55
  1116. package/node_modules/nth-check/lib/esm/compile.d.ts.map +0 -1
  1117. package/node_modules/nth-check/lib/esm/compile.js +0 -113
  1118. package/node_modules/nth-check/lib/esm/compile.js.map +0 -1
  1119. package/node_modules/nth-check/lib/esm/index.d.ts +0 -59
  1120. package/node_modules/nth-check/lib/esm/index.d.ts.map +0 -1
  1121. package/node_modules/nth-check/lib/esm/index.js +0 -63
  1122. package/node_modules/nth-check/lib/esm/index.js.map +0 -1
  1123. package/node_modules/nth-check/lib/esm/package.json +0 -1
  1124. package/node_modules/nth-check/lib/esm/parse.d.ts +0 -9
  1125. package/node_modules/nth-check/lib/esm/parse.d.ts.map +0 -1
  1126. package/node_modules/nth-check/lib/esm/parse.js +0 -73
  1127. package/node_modules/nth-check/lib/esm/parse.js.map +0 -1
  1128. package/node_modules/nth-check/lib/index.d.ts +0 -59
  1129. package/node_modules/nth-check/lib/index.d.ts.map +0 -1
  1130. package/node_modules/nth-check/lib/index.js +0 -70
  1131. package/node_modules/nth-check/lib/index.js.map +0 -1
  1132. package/node_modules/nth-check/lib/parse.d.ts +0 -9
  1133. package/node_modules/nth-check/lib/parse.d.ts.map +0 -1
  1134. package/node_modules/nth-check/lib/parse.js +0 -77
  1135. package/node_modules/nth-check/lib/parse.js.map +0 -1
  1136. package/node_modules/nth-check/package.json +0 -78
  1137. package/node_modules/ora/index.d.ts +0 -332
  1138. package/node_modules/ora/index.js +0 -443
  1139. package/node_modules/ora/node_modules/chalk/license +0 -9
  1140. package/node_modules/ora/node_modules/chalk/package.json +0 -83
  1141. package/node_modules/ora/node_modules/chalk/readme.md +0 -297
  1142. package/node_modules/ora/node_modules/chalk/source/index.d.ts +0 -325
  1143. package/node_modules/ora/node_modules/chalk/source/index.js +0 -225
  1144. package/node_modules/ora/node_modules/chalk/source/utilities.js +0 -33
  1145. package/node_modules/ora/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  1146. package/node_modules/ora/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  1147. package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  1148. package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  1149. package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  1150. package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/index.js +0 -190
  1151. package/node_modules/ora/node_modules/cli-spinners/index.d.ts +0 -139
  1152. package/node_modules/ora/node_modules/cli-spinners/index.js +0 -11
  1153. package/node_modules/ora/node_modules/cli-spinners/license +0 -9
  1154. package/node_modules/ora/node_modules/cli-spinners/package.json +0 -56
  1155. package/node_modules/ora/node_modules/cli-spinners/readme.md +0 -74
  1156. package/node_modules/ora/node_modules/cli-spinners/spinners.json +0 -1665
  1157. package/node_modules/ora/node_modules/string-width/index.d.ts +0 -39
  1158. package/node_modules/ora/node_modules/string-width/index.js +0 -89
  1159. package/node_modules/ora/node_modules/string-width/license +0 -9
  1160. package/node_modules/ora/node_modules/string-width/package.json +0 -65
  1161. package/node_modules/ora/node_modules/string-width/readme.md +0 -66
  1162. package/node_modules/ora/package.json +0 -64
  1163. package/node_modules/ora/readme.md +0 -375
  1164. package/node_modules/parse5/LICENSE +0 -19
  1165. package/node_modules/parse5/README.md +0 -38
  1166. package/node_modules/parse5/dist/cjs/common/doctype.d.ts +0 -4
  1167. package/node_modules/parse5/dist/cjs/common/doctype.js +0 -118
  1168. package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +0 -67
  1169. package/node_modules/parse5/dist/cjs/common/error-codes.js +0 -66
  1170. package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +0 -9
  1171. package/node_modules/parse5/dist/cjs/common/foreign-content.js +0 -237
  1172. package/node_modules/parse5/dist/cjs/common/html.d.ts +0 -289
  1173. package/node_modules/parse5/dist/cjs/common/html.js +0 -528
  1174. package/node_modules/parse5/dist/cjs/common/token.d.ts +0 -84
  1175. package/node_modules/parse5/dist/cjs/common/token.js +0 -24
  1176. package/node_modules/parse5/dist/cjs/common/unicode.d.ts +0 -42
  1177. package/node_modules/parse5/dist/cjs/common/unicode.js +0 -70
  1178. package/node_modules/parse5/dist/cjs/index.d.ts +0 -71
  1179. package/node_modules/parse5/dist/cjs/index.js +0 -54
  1180. package/node_modules/parse5/dist/cjs/package.json +0 -1
  1181. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +0 -36
  1182. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +0 -114
  1183. package/node_modules/parse5/dist/cjs/parser/index.d.ts +0 -221
  1184. package/node_modules/parse5/dist/cjs/parser/index.js +0 -3240
  1185. package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +0 -53
  1186. package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +0 -328
  1187. package/node_modules/parse5/dist/cjs/serializer/index.d.ts +0 -60
  1188. package/node_modules/parse5/dist/cjs/serializer/index.js +0 -172
  1189. package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +0 -247
  1190. package/node_modules/parse5/dist/cjs/tokenizer/index.js +0 -2714
  1191. package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +0 -36
  1192. package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +0 -200
  1193. package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +0 -84
  1194. package/node_modules/parse5/dist/cjs/tree-adapters/default.js +0 -176
  1195. package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +0 -255
  1196. package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +0 -2
  1197. package/node_modules/parse5/dist/common/doctype.d.ts +0 -4
  1198. package/node_modules/parse5/dist/common/doctype.js +0 -114
  1199. package/node_modules/parse5/dist/common/error-codes.d.ts +0 -67
  1200. package/node_modules/parse5/dist/common/error-codes.js +0 -63
  1201. package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -9
  1202. package/node_modules/parse5/dist/common/foreign-content.js +0 -228
  1203. package/node_modules/parse5/dist/common/html.d.ts +0 -289
  1204. package/node_modules/parse5/dist/common/html.js +0 -523
  1205. package/node_modules/parse5/dist/common/token.d.ts +0 -84
  1206. package/node_modules/parse5/dist/common/token.js +0 -20
  1207. package/node_modules/parse5/dist/common/unicode.d.ts +0 -42
  1208. package/node_modules/parse5/dist/common/unicode.js +0 -62
  1209. package/node_modules/parse5/dist/index.d.ts +0 -71
  1210. package/node_modules/parse5/dist/index.js +0 -42
  1211. package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -36
  1212. package/node_modules/parse5/dist/parser/formatting-element-list.js +0 -110
  1213. package/node_modules/parse5/dist/parser/index.d.ts +0 -221
  1214. package/node_modules/parse5/dist/parser/index.js +0 -3245
  1215. package/node_modules/parse5/dist/parser/open-element-stack.d.ts +0 -53
  1216. package/node_modules/parse5/dist/parser/open-element-stack.js +0 -324
  1217. package/node_modules/parse5/dist/serializer/index.d.ts +0 -60
  1218. package/node_modules/parse5/dist/serializer/index.js +0 -168
  1219. package/node_modules/parse5/dist/tokenizer/index.d.ts +0 -247
  1220. package/node_modules/parse5/dist/tokenizer/index.js +0 -2710
  1221. package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +0 -36
  1222. package/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -196
  1223. package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -84
  1224. package/node_modules/parse5/dist/tree-adapters/default.js +0 -173
  1225. package/node_modules/parse5/dist/tree-adapters/interface.d.ts +0 -255
  1226. package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
  1227. package/node_modules/parse5/node_modules/entities/LICENSE +0 -11
  1228. package/node_modules/parse5/node_modules/entities/decode.d.ts +0 -1
  1229. package/node_modules/parse5/node_modules/entities/decode.js +0 -3
  1230. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
  1231. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +0 -1
  1232. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
  1233. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
  1234. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts +0 -209
  1235. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts.map +0 -1
  1236. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js +0 -511
  1237. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js.map +0 -1
  1238. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts +0 -22
  1239. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts.map +0 -1
  1240. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js +0 -73
  1241. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js.map +0 -1
  1242. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts +0 -43
  1243. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts.map +0 -1
  1244. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js +0 -121
  1245. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js.map +0 -1
  1246. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
  1247. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +0 -1
  1248. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -10
  1249. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
  1250. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
  1251. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +0 -1
  1252. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -10
  1253. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
  1254. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -8
  1255. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +0 -1
  1256. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js +0 -13
  1257. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js.map +0 -1
  1258. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts +0 -96
  1259. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts.map +0 -1
  1260. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js +0 -131
  1261. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js.map +0 -1
  1262. package/node_modules/parse5/node_modules/entities/dist/commonjs/package.json +0 -3
  1263. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
  1264. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +0 -1
  1265. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -72
  1266. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js.map +0 -1
  1267. package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts +0 -209
  1268. package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts.map +0 -1
  1269. package/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -497
  1270. package/node_modules/parse5/node_modules/entities/dist/esm/decode.js.map +0 -1
  1271. package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts +0 -22
  1272. package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts.map +0 -1
  1273. package/node_modules/parse5/node_modules/entities/dist/esm/encode.js +0 -69
  1274. package/node_modules/parse5/node_modules/entities/dist/esm/encode.js.map +0 -1
  1275. package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts +0 -43
  1276. package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts.map +0 -1
  1277. package/node_modules/parse5/node_modules/entities/dist/esm/escape.js +0 -117
  1278. package/node_modules/parse5/node_modules/entities/dist/esm/escape.js.map +0 -1
  1279. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
  1280. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +0 -1
  1281. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
  1282. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js.map +0 -1
  1283. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
  1284. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +0 -1
  1285. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js +0 -7
  1286. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +0 -1
  1287. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -8
  1288. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +0 -1
  1289. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js +0 -10
  1290. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js.map +0 -1
  1291. package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts +0 -96
  1292. package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts.map +0 -1
  1293. package/node_modules/parse5/node_modules/entities/dist/esm/index.js +0 -107
  1294. package/node_modules/parse5/node_modules/entities/dist/esm/index.js.map +0 -1
  1295. package/node_modules/parse5/node_modules/entities/dist/esm/package.json +0 -3
  1296. package/node_modules/parse5/node_modules/entities/escape.d.ts +0 -1
  1297. package/node_modules/parse5/node_modules/entities/escape.js +0 -3
  1298. package/node_modules/parse5/node_modules/entities/package.json +0 -118
  1299. package/node_modules/parse5/node_modules/entities/readme.md +0 -122
  1300. package/node_modules/parse5/node_modules/entities/src/decode-codepoint.ts +0 -81
  1301. package/node_modules/parse5/node_modules/entities/src/decode.spec.ts +0 -320
  1302. package/node_modules/parse5/node_modules/entities/src/decode.ts +0 -620
  1303. package/node_modules/parse5/node_modules/entities/src/encode.spec.ts +0 -78
  1304. package/node_modules/parse5/node_modules/entities/src/encode.ts +0 -77
  1305. package/node_modules/parse5/node_modules/entities/src/escape.spec.ts +0 -14
  1306. package/node_modules/parse5/node_modules/entities/src/escape.ts +0 -148
  1307. package/node_modules/parse5/node_modules/entities/src/generated/.eslintrc.json +0 -10
  1308. package/node_modules/parse5/node_modules/entities/src/generated/decode-data-html.ts +0 -8
  1309. package/node_modules/parse5/node_modules/entities/src/generated/decode-data-xml.ts +0 -8
  1310. package/node_modules/parse5/node_modules/entities/src/generated/encode-html.ts +0 -17
  1311. package/node_modules/parse5/node_modules/entities/src/index.spec.ts +0 -125
  1312. package/node_modules/parse5/node_modules/entities/src/index.ts +0 -188
  1313. package/node_modules/parse5/package.json +0 -50
  1314. package/node_modules/parse5-htmlparser2-tree-adapter/LICENSE +0 -19
  1315. package/node_modules/parse5-htmlparser2-tree-adapter/README.md +0 -34
  1316. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.d.ts +0 -6
  1317. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +0 -214
  1318. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/package.json +0 -1
  1319. package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts +0 -6
  1320. package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +0 -213
  1321. package/node_modules/parse5-htmlparser2-tree-adapter/package.json +0 -40
  1322. package/node_modules/parse5-parser-stream/LICENSE +0 -19
  1323. package/node_modules/parse5-parser-stream/README.md +0 -34
  1324. package/node_modules/parse5-parser-stream/dist/cjs/index.d.ts +0 -85
  1325. package/node_modules/parse5-parser-stream/dist/cjs/index.js +0 -90
  1326. package/node_modules/parse5-parser-stream/dist/cjs/package.json +0 -1
  1327. package/node_modules/parse5-parser-stream/dist/index.d.ts +0 -85
  1328. package/node_modules/parse5-parser-stream/dist/index.js +0 -86
  1329. package/node_modules/parse5-parser-stream/package.json +0 -39
  1330. package/node_modules/stdin-discarder/index.d.ts +0 -13
  1331. package/node_modules/stdin-discarder/index.js +0 -59
  1332. package/node_modules/stdin-discarder/license +0 -9
  1333. package/node_modules/stdin-discarder/package.json +0 -42
  1334. package/node_modules/stdin-discarder/readme.md +0 -37
  1335. package/node_modules/whatwg-encoding/LICENSE.txt +0 -7
  1336. package/node_modules/whatwg-encoding/README.md +0 -50
  1337. package/node_modules/whatwg-encoding/lib/labels-to-names.json +0 -217
  1338. package/node_modules/whatwg-encoding/lib/supported-names.json +0 -38
  1339. package/node_modules/whatwg-encoding/lib/whatwg-encoding.js +0 -60
  1340. package/node_modules/whatwg-encoding/package.json +0 -32
  1341. package/node_modules/whatwg-mimetype/LICENSE.txt +0 -7
  1342. package/node_modules/whatwg-mimetype/README.md +0 -101
  1343. package/node_modules/whatwg-mimetype/lib/mime-type-parameters.js +0 -70
  1344. package/node_modules/whatwg-mimetype/lib/mime-type.js +0 -127
  1345. package/node_modules/whatwg-mimetype/lib/parser.js +0 -105
  1346. package/node_modules/whatwg-mimetype/lib/serializer.js +0 -25
  1347. package/node_modules/whatwg-mimetype/lib/utils.js +0 -60
  1348. package/node_modules/whatwg-mimetype/package.json +0 -45
  1349. /package/node_modules/{cheerio-select → htmlparser2/node_modules/domelementtype}/LICENSE +0 -0
  1350. /package/node_modules/{domelementtype → htmlparser2/node_modules/domelementtype}/readme.md +0 -0
  1351. /package/node_modules/{css-select → htmlparser2/node_modules/domhandler}/LICENSE +0 -0
  1352. /package/node_modules/{css-what → htmlparser2/node_modules/domutils}/LICENSE +0 -0
  1353. /package/node_modules/htmlparser2/node_modules/entities/dist/{commonjs/internal → internal}/bin-trie-flags.d.ts +0 -0
  1354. /package/node_modules/htmlparser2/node_modules/entities/dist/{esm/internal → internal}/bin-trie-flags.js +0 -0
  1355. /package/node_modules/{ora → yocto-spinner}/license +0 -0
@@ -1,2714 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Tokenizer = exports.TokenizerMode = void 0;
4
- const preprocessor_js_1 = require("./preprocessor.js");
5
- const unicode_js_1 = require("../common/unicode.js");
6
- const token_js_1 = require("../common/token.js");
7
- const decode_1 = require("entities/decode");
8
- const error_codes_js_1 = require("../common/error-codes.js");
9
- const html_js_1 = require("../common/html.js");
10
- //States
11
- var State;
12
- (function (State) {
13
- State[State["DATA"] = 0] = "DATA";
14
- State[State["RCDATA"] = 1] = "RCDATA";
15
- State[State["RAWTEXT"] = 2] = "RAWTEXT";
16
- State[State["SCRIPT_DATA"] = 3] = "SCRIPT_DATA";
17
- State[State["PLAINTEXT"] = 4] = "PLAINTEXT";
18
- State[State["TAG_OPEN"] = 5] = "TAG_OPEN";
19
- State[State["END_TAG_OPEN"] = 6] = "END_TAG_OPEN";
20
- State[State["TAG_NAME"] = 7] = "TAG_NAME";
21
- State[State["RCDATA_LESS_THAN_SIGN"] = 8] = "RCDATA_LESS_THAN_SIGN";
22
- State[State["RCDATA_END_TAG_OPEN"] = 9] = "RCDATA_END_TAG_OPEN";
23
- State[State["RCDATA_END_TAG_NAME"] = 10] = "RCDATA_END_TAG_NAME";
24
- State[State["RAWTEXT_LESS_THAN_SIGN"] = 11] = "RAWTEXT_LESS_THAN_SIGN";
25
- State[State["RAWTEXT_END_TAG_OPEN"] = 12] = "RAWTEXT_END_TAG_OPEN";
26
- State[State["RAWTEXT_END_TAG_NAME"] = 13] = "RAWTEXT_END_TAG_NAME";
27
- State[State["SCRIPT_DATA_LESS_THAN_SIGN"] = 14] = "SCRIPT_DATA_LESS_THAN_SIGN";
28
- State[State["SCRIPT_DATA_END_TAG_OPEN"] = 15] = "SCRIPT_DATA_END_TAG_OPEN";
29
- State[State["SCRIPT_DATA_END_TAG_NAME"] = 16] = "SCRIPT_DATA_END_TAG_NAME";
30
- State[State["SCRIPT_DATA_ESCAPE_START"] = 17] = "SCRIPT_DATA_ESCAPE_START";
31
- State[State["SCRIPT_DATA_ESCAPE_START_DASH"] = 18] = "SCRIPT_DATA_ESCAPE_START_DASH";
32
- State[State["SCRIPT_DATA_ESCAPED"] = 19] = "SCRIPT_DATA_ESCAPED";
33
- State[State["SCRIPT_DATA_ESCAPED_DASH"] = 20] = "SCRIPT_DATA_ESCAPED_DASH";
34
- State[State["SCRIPT_DATA_ESCAPED_DASH_DASH"] = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH";
35
- State[State["SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN"] = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN";
36
- State[State["SCRIPT_DATA_ESCAPED_END_TAG_OPEN"] = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN";
37
- State[State["SCRIPT_DATA_ESCAPED_END_TAG_NAME"] = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME";
38
- State[State["SCRIPT_DATA_DOUBLE_ESCAPE_START"] = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START";
39
- State[State["SCRIPT_DATA_DOUBLE_ESCAPED"] = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED";
40
- State[State["SCRIPT_DATA_DOUBLE_ESCAPED_DASH"] = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH";
41
- State[State["SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH"] = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH";
42
- State[State["SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN"] = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN";
43
- State[State["SCRIPT_DATA_DOUBLE_ESCAPE_END"] = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END";
44
- State[State["BEFORE_ATTRIBUTE_NAME"] = 31] = "BEFORE_ATTRIBUTE_NAME";
45
- State[State["ATTRIBUTE_NAME"] = 32] = "ATTRIBUTE_NAME";
46
- State[State["AFTER_ATTRIBUTE_NAME"] = 33] = "AFTER_ATTRIBUTE_NAME";
47
- State[State["BEFORE_ATTRIBUTE_VALUE"] = 34] = "BEFORE_ATTRIBUTE_VALUE";
48
- State[State["ATTRIBUTE_VALUE_DOUBLE_QUOTED"] = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED";
49
- State[State["ATTRIBUTE_VALUE_SINGLE_QUOTED"] = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED";
50
- State[State["ATTRIBUTE_VALUE_UNQUOTED"] = 37] = "ATTRIBUTE_VALUE_UNQUOTED";
51
- State[State["AFTER_ATTRIBUTE_VALUE_QUOTED"] = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED";
52
- State[State["SELF_CLOSING_START_TAG"] = 39] = "SELF_CLOSING_START_TAG";
53
- State[State["BOGUS_COMMENT"] = 40] = "BOGUS_COMMENT";
54
- State[State["MARKUP_DECLARATION_OPEN"] = 41] = "MARKUP_DECLARATION_OPEN";
55
- State[State["COMMENT_START"] = 42] = "COMMENT_START";
56
- State[State["COMMENT_START_DASH"] = 43] = "COMMENT_START_DASH";
57
- State[State["COMMENT"] = 44] = "COMMENT";
58
- State[State["COMMENT_LESS_THAN_SIGN"] = 45] = "COMMENT_LESS_THAN_SIGN";
59
- State[State["COMMENT_LESS_THAN_SIGN_BANG"] = 46] = "COMMENT_LESS_THAN_SIGN_BANG";
60
- State[State["COMMENT_LESS_THAN_SIGN_BANG_DASH"] = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH";
61
- State[State["COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH"] = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH";
62
- State[State["COMMENT_END_DASH"] = 49] = "COMMENT_END_DASH";
63
- State[State["COMMENT_END"] = 50] = "COMMENT_END";
64
- State[State["COMMENT_END_BANG"] = 51] = "COMMENT_END_BANG";
65
- State[State["DOCTYPE"] = 52] = "DOCTYPE";
66
- State[State["BEFORE_DOCTYPE_NAME"] = 53] = "BEFORE_DOCTYPE_NAME";
67
- State[State["DOCTYPE_NAME"] = 54] = "DOCTYPE_NAME";
68
- State[State["AFTER_DOCTYPE_NAME"] = 55] = "AFTER_DOCTYPE_NAME";
69
- State[State["AFTER_DOCTYPE_PUBLIC_KEYWORD"] = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD";
70
- State[State["BEFORE_DOCTYPE_PUBLIC_IDENTIFIER"] = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER";
71
- State[State["DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED"] = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED";
72
- State[State["DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED"] = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED";
73
- State[State["AFTER_DOCTYPE_PUBLIC_IDENTIFIER"] = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER";
74
- State[State["BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS"] = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS";
75
- State[State["AFTER_DOCTYPE_SYSTEM_KEYWORD"] = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD";
76
- State[State["BEFORE_DOCTYPE_SYSTEM_IDENTIFIER"] = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER";
77
- State[State["DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED"] = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED";
78
- State[State["DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED"] = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED";
79
- State[State["AFTER_DOCTYPE_SYSTEM_IDENTIFIER"] = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER";
80
- State[State["BOGUS_DOCTYPE"] = 67] = "BOGUS_DOCTYPE";
81
- State[State["CDATA_SECTION"] = 68] = "CDATA_SECTION";
82
- State[State["CDATA_SECTION_BRACKET"] = 69] = "CDATA_SECTION_BRACKET";
83
- State[State["CDATA_SECTION_END"] = 70] = "CDATA_SECTION_END";
84
- State[State["CHARACTER_REFERENCE"] = 71] = "CHARACTER_REFERENCE";
85
- State[State["AMBIGUOUS_AMPERSAND"] = 72] = "AMBIGUOUS_AMPERSAND";
86
- })(State || (State = {}));
87
- //Tokenizer initial states for different modes
88
- exports.TokenizerMode = {
89
- DATA: State.DATA,
90
- RCDATA: State.RCDATA,
91
- RAWTEXT: State.RAWTEXT,
92
- SCRIPT_DATA: State.SCRIPT_DATA,
93
- PLAINTEXT: State.PLAINTEXT,
94
- CDATA_SECTION: State.CDATA_SECTION,
95
- };
96
- //Utils
97
- //OPTIMIZATION: these utility functions should not be moved out of this module. V8 Crankshaft will not inline
98
- //this functions if they will be situated in another module due to context switch.
99
- //Always perform inlining check before modifying this functions ('node --trace-inlining').
100
- function isAsciiDigit(cp) {
101
- return cp >= unicode_js_1.CODE_POINTS.DIGIT_0 && cp <= unicode_js_1.CODE_POINTS.DIGIT_9;
102
- }
103
- function isAsciiUpper(cp) {
104
- return cp >= unicode_js_1.CODE_POINTS.LATIN_CAPITAL_A && cp <= unicode_js_1.CODE_POINTS.LATIN_CAPITAL_Z;
105
- }
106
- function isAsciiLower(cp) {
107
- return cp >= unicode_js_1.CODE_POINTS.LATIN_SMALL_A && cp <= unicode_js_1.CODE_POINTS.LATIN_SMALL_Z;
108
- }
109
- function isAsciiLetter(cp) {
110
- return isAsciiLower(cp) || isAsciiUpper(cp);
111
- }
112
- function isAsciiAlphaNumeric(cp) {
113
- return isAsciiLetter(cp) || isAsciiDigit(cp);
114
- }
115
- function toAsciiLower(cp) {
116
- return cp + 32;
117
- }
118
- function isWhitespace(cp) {
119
- return cp === unicode_js_1.CODE_POINTS.SPACE || cp === unicode_js_1.CODE_POINTS.LINE_FEED || cp === unicode_js_1.CODE_POINTS.TABULATION || cp === unicode_js_1.CODE_POINTS.FORM_FEED;
120
- }
121
- function isScriptDataDoubleEscapeSequenceEnd(cp) {
122
- return isWhitespace(cp) || cp === unicode_js_1.CODE_POINTS.SOLIDUS || cp === unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN;
123
- }
124
- function getErrorForNumericCharacterReference(code) {
125
- if (code === unicode_js_1.CODE_POINTS.NULL) {
126
- return error_codes_js_1.ERR.nullCharacterReference;
127
- }
128
- else if (code > 1114111) {
129
- return error_codes_js_1.ERR.characterReferenceOutsideUnicodeRange;
130
- }
131
- else if ((0, unicode_js_1.isSurrogate)(code)) {
132
- return error_codes_js_1.ERR.surrogateCharacterReference;
133
- }
134
- else if ((0, unicode_js_1.isUndefinedCodePoint)(code)) {
135
- return error_codes_js_1.ERR.noncharacterCharacterReference;
136
- }
137
- else if ((0, unicode_js_1.isControlCodePoint)(code) || code === unicode_js_1.CODE_POINTS.CARRIAGE_RETURN) {
138
- return error_codes_js_1.ERR.controlCharacterReference;
139
- }
140
- return null;
141
- }
142
- //Tokenizer
143
- class Tokenizer {
144
- constructor(options, handler) {
145
- this.options = options;
146
- this.handler = handler;
147
- this.paused = false;
148
- /** Ensures that the parsing loop isn't run multiple times at once. */
149
- this.inLoop = false;
150
- /**
151
- * Indicates that the current adjusted node exists, is not an element in the HTML namespace,
152
- * and that it is not an integration point for either MathML or HTML.
153
- *
154
- * @see {@link https://html.spec.whatwg.org/multipage/parsing.html#tree-construction}
155
- */
156
- this.inForeignNode = false;
157
- this.lastStartTagName = '';
158
- this.active = false;
159
- this.state = State.DATA;
160
- this.returnState = State.DATA;
161
- this.entityStartPos = 0;
162
- this.consumedAfterSnapshot = -1;
163
- this.currentCharacterToken = null;
164
- this.currentToken = null;
165
- this.currentAttr = { name: '', value: '' };
166
- this.preprocessor = new preprocessor_js_1.Preprocessor(handler);
167
- this.currentLocation = this.getCurrentLocation(-1);
168
- this.entityDecoder = new decode_1.EntityDecoder(decode_1.htmlDecodeTree, (cp, consumed) => {
169
- // Note: Set `pos` _before_ flushing, as flushing might drop
170
- // the current chunk and invalidate `entityStartPos`.
171
- this.preprocessor.pos = this.entityStartPos + consumed - 1;
172
- this._flushCodePointConsumedAsCharacterReference(cp);
173
- }, handler.onParseError
174
- ? {
175
- missingSemicolonAfterCharacterReference: () => {
176
- this._err(error_codes_js_1.ERR.missingSemicolonAfterCharacterReference, 1);
177
- },
178
- absenceOfDigitsInNumericCharacterReference: (consumed) => {
179
- this._err(error_codes_js_1.ERR.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + consumed);
180
- },
181
- validateNumericCharacterReference: (code) => {
182
- const error = getErrorForNumericCharacterReference(code);
183
- if (error)
184
- this._err(error, 1);
185
- },
186
- }
187
- : undefined);
188
- }
189
- //Errors
190
- _err(code, cpOffset = 0) {
191
- var _a, _b;
192
- (_b = (_a = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a, this.preprocessor.getError(code, cpOffset));
193
- }
194
- // NOTE: `offset` may never run across line boundaries.
195
- getCurrentLocation(offset) {
196
- if (!this.options.sourceCodeLocationInfo) {
197
- return null;
198
- }
199
- return {
200
- startLine: this.preprocessor.line,
201
- startCol: this.preprocessor.col - offset,
202
- startOffset: this.preprocessor.offset - offset,
203
- endLine: -1,
204
- endCol: -1,
205
- endOffset: -1,
206
- };
207
- }
208
- _runParsingLoop() {
209
- if (this.inLoop)
210
- return;
211
- this.inLoop = true;
212
- while (this.active && !this.paused) {
213
- this.consumedAfterSnapshot = 0;
214
- const cp = this._consume();
215
- if (!this._ensureHibernation()) {
216
- this._callState(cp);
217
- }
218
- }
219
- this.inLoop = false;
220
- }
221
- //API
222
- pause() {
223
- this.paused = true;
224
- }
225
- resume(writeCallback) {
226
- if (!this.paused) {
227
- throw new Error('Parser was already resumed');
228
- }
229
- this.paused = false;
230
- // Necessary for synchronous resume.
231
- if (this.inLoop)
232
- return;
233
- this._runParsingLoop();
234
- if (!this.paused) {
235
- writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();
236
- }
237
- }
238
- write(chunk, isLastChunk, writeCallback) {
239
- this.active = true;
240
- this.preprocessor.write(chunk, isLastChunk);
241
- this._runParsingLoop();
242
- if (!this.paused) {
243
- writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();
244
- }
245
- }
246
- insertHtmlAtCurrentPos(chunk) {
247
- this.active = true;
248
- this.preprocessor.insertHtmlAtCurrentPos(chunk);
249
- this._runParsingLoop();
250
- }
251
- //Hibernation
252
- _ensureHibernation() {
253
- if (this.preprocessor.endOfChunkHit) {
254
- this.preprocessor.retreat(this.consumedAfterSnapshot);
255
- this.consumedAfterSnapshot = 0;
256
- this.active = false;
257
- return true;
258
- }
259
- return false;
260
- }
261
- //Consumption
262
- _consume() {
263
- this.consumedAfterSnapshot++;
264
- return this.preprocessor.advance();
265
- }
266
- _advanceBy(count) {
267
- this.consumedAfterSnapshot += count;
268
- for (let i = 0; i < count; i++) {
269
- this.preprocessor.advance();
270
- }
271
- }
272
- _consumeSequenceIfMatch(pattern, caseSensitive) {
273
- if (this.preprocessor.startsWith(pattern, caseSensitive)) {
274
- // We will already have consumed one character before calling this method.
275
- this._advanceBy(pattern.length - 1);
276
- return true;
277
- }
278
- return false;
279
- }
280
- //Token creation
281
- _createStartTagToken() {
282
- this.currentToken = {
283
- type: token_js_1.TokenType.START_TAG,
284
- tagName: '',
285
- tagID: html_js_1.TAG_ID.UNKNOWN,
286
- selfClosing: false,
287
- ackSelfClosing: false,
288
- attrs: [],
289
- location: this.getCurrentLocation(1),
290
- };
291
- }
292
- _createEndTagToken() {
293
- this.currentToken = {
294
- type: token_js_1.TokenType.END_TAG,
295
- tagName: '',
296
- tagID: html_js_1.TAG_ID.UNKNOWN,
297
- selfClosing: false,
298
- ackSelfClosing: false,
299
- attrs: [],
300
- location: this.getCurrentLocation(2),
301
- };
302
- }
303
- _createCommentToken(offset) {
304
- this.currentToken = {
305
- type: token_js_1.TokenType.COMMENT,
306
- data: '',
307
- location: this.getCurrentLocation(offset),
308
- };
309
- }
310
- _createDoctypeToken(initialName) {
311
- this.currentToken = {
312
- type: token_js_1.TokenType.DOCTYPE,
313
- name: initialName,
314
- forceQuirks: false,
315
- publicId: null,
316
- systemId: null,
317
- location: this.currentLocation,
318
- };
319
- }
320
- _createCharacterToken(type, chars) {
321
- this.currentCharacterToken = {
322
- type,
323
- chars,
324
- location: this.currentLocation,
325
- };
326
- }
327
- //Tag attributes
328
- _createAttr(attrNameFirstCh) {
329
- this.currentAttr = {
330
- name: attrNameFirstCh,
331
- value: '',
332
- };
333
- this.currentLocation = this.getCurrentLocation(0);
334
- }
335
- _leaveAttrName() {
336
- var _a;
337
- var _b;
338
- const token = this.currentToken;
339
- if ((0, token_js_1.getTokenAttr)(token, this.currentAttr.name) === null) {
340
- token.attrs.push(this.currentAttr);
341
- if (token.location && this.currentLocation) {
342
- const attrLocations = ((_a = (_b = token.location).attrs) !== null && _a !== void 0 ? _a : (_b.attrs = Object.create(null)));
343
- attrLocations[this.currentAttr.name] = this.currentLocation;
344
- // Set end location
345
- this._leaveAttrValue();
346
- }
347
- }
348
- else {
349
- this._err(error_codes_js_1.ERR.duplicateAttribute);
350
- }
351
- }
352
- _leaveAttrValue() {
353
- if (this.currentLocation) {
354
- this.currentLocation.endLine = this.preprocessor.line;
355
- this.currentLocation.endCol = this.preprocessor.col;
356
- this.currentLocation.endOffset = this.preprocessor.offset;
357
- }
358
- }
359
- //Token emission
360
- prepareToken(ct) {
361
- this._emitCurrentCharacterToken(ct.location);
362
- this.currentToken = null;
363
- if (ct.location) {
364
- ct.location.endLine = this.preprocessor.line;
365
- ct.location.endCol = this.preprocessor.col + 1;
366
- ct.location.endOffset = this.preprocessor.offset + 1;
367
- }
368
- this.currentLocation = this.getCurrentLocation(-1);
369
- }
370
- emitCurrentTagToken() {
371
- const ct = this.currentToken;
372
- this.prepareToken(ct);
373
- ct.tagID = (0, html_js_1.getTagID)(ct.tagName);
374
- if (ct.type === token_js_1.TokenType.START_TAG) {
375
- this.lastStartTagName = ct.tagName;
376
- this.handler.onStartTag(ct);
377
- }
378
- else {
379
- if (ct.attrs.length > 0) {
380
- this._err(error_codes_js_1.ERR.endTagWithAttributes);
381
- }
382
- if (ct.selfClosing) {
383
- this._err(error_codes_js_1.ERR.endTagWithTrailingSolidus);
384
- }
385
- this.handler.onEndTag(ct);
386
- }
387
- this.preprocessor.dropParsedChunk();
388
- }
389
- emitCurrentComment(ct) {
390
- this.prepareToken(ct);
391
- this.handler.onComment(ct);
392
- this.preprocessor.dropParsedChunk();
393
- }
394
- emitCurrentDoctype(ct) {
395
- this.prepareToken(ct);
396
- this.handler.onDoctype(ct);
397
- this.preprocessor.dropParsedChunk();
398
- }
399
- _emitCurrentCharacterToken(nextLocation) {
400
- if (this.currentCharacterToken) {
401
- //NOTE: if we have a pending character token, make it's end location equal to the
402
- //current token's start location.
403
- if (nextLocation && this.currentCharacterToken.location) {
404
- this.currentCharacterToken.location.endLine = nextLocation.startLine;
405
- this.currentCharacterToken.location.endCol = nextLocation.startCol;
406
- this.currentCharacterToken.location.endOffset = nextLocation.startOffset;
407
- }
408
- switch (this.currentCharacterToken.type) {
409
- case token_js_1.TokenType.CHARACTER: {
410
- this.handler.onCharacter(this.currentCharacterToken);
411
- break;
412
- }
413
- case token_js_1.TokenType.NULL_CHARACTER: {
414
- this.handler.onNullCharacter(this.currentCharacterToken);
415
- break;
416
- }
417
- case token_js_1.TokenType.WHITESPACE_CHARACTER: {
418
- this.handler.onWhitespaceCharacter(this.currentCharacterToken);
419
- break;
420
- }
421
- }
422
- this.currentCharacterToken = null;
423
- }
424
- }
425
- _emitEOFToken() {
426
- const location = this.getCurrentLocation(0);
427
- if (location) {
428
- location.endLine = location.startLine;
429
- location.endCol = location.startCol;
430
- location.endOffset = location.startOffset;
431
- }
432
- this._emitCurrentCharacterToken(location);
433
- this.handler.onEof({ type: token_js_1.TokenType.EOF, location });
434
- this.active = false;
435
- }
436
- //Characters emission
437
- //OPTIMIZATION: The specification uses only one type of character token (one token per character).
438
- //This causes a huge memory overhead and a lot of unnecessary parser loops. parse5 uses 3 groups of characters.
439
- //If we have a sequence of characters that belong to the same group, the parser can process it
440
- //as a single solid character token.
441
- //So, there are 3 types of character tokens in parse5:
442
- //1)TokenType.NULL_CHARACTER - \u0000-character sequences (e.g. '\u0000\u0000\u0000')
443
- //2)TokenType.WHITESPACE_CHARACTER - any whitespace/new-line character sequences (e.g. '\n \r\t \f')
444
- //3)TokenType.CHARACTER - any character sequence which don't belong to groups 1 and 2 (e.g. 'abcdef1234@@#$%^')
445
- _appendCharToCurrentCharacterToken(type, ch) {
446
- if (this.currentCharacterToken) {
447
- if (this.currentCharacterToken.type === type) {
448
- this.currentCharacterToken.chars += ch;
449
- return;
450
- }
451
- else {
452
- this.currentLocation = this.getCurrentLocation(0);
453
- this._emitCurrentCharacterToken(this.currentLocation);
454
- this.preprocessor.dropParsedChunk();
455
- }
456
- }
457
- this._createCharacterToken(type, ch);
458
- }
459
- _emitCodePoint(cp) {
460
- const type = isWhitespace(cp)
461
- ? token_js_1.TokenType.WHITESPACE_CHARACTER
462
- : cp === unicode_js_1.CODE_POINTS.NULL
463
- ? token_js_1.TokenType.NULL_CHARACTER
464
- : token_js_1.TokenType.CHARACTER;
465
- this._appendCharToCurrentCharacterToken(type, String.fromCodePoint(cp));
466
- }
467
- //NOTE: used when we emit characters explicitly.
468
- //This is always for non-whitespace and non-null characters, which allows us to avoid additional checks.
469
- _emitChars(ch) {
470
- this._appendCharToCurrentCharacterToken(token_js_1.TokenType.CHARACTER, ch);
471
- }
472
- // Character reference helpers
473
- _startCharacterReference() {
474
- this.returnState = this.state;
475
- this.state = State.CHARACTER_REFERENCE;
476
- this.entityStartPos = this.preprocessor.pos;
477
- this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? decode_1.DecodingMode.Attribute : decode_1.DecodingMode.Legacy);
478
- }
479
- _isCharacterReferenceInAttribute() {
480
- return (this.returnState === State.ATTRIBUTE_VALUE_DOUBLE_QUOTED ||
481
- this.returnState === State.ATTRIBUTE_VALUE_SINGLE_QUOTED ||
482
- this.returnState === State.ATTRIBUTE_VALUE_UNQUOTED);
483
- }
484
- _flushCodePointConsumedAsCharacterReference(cp) {
485
- if (this._isCharacterReferenceInAttribute()) {
486
- this.currentAttr.value += String.fromCodePoint(cp);
487
- }
488
- else {
489
- this._emitCodePoint(cp);
490
- }
491
- }
492
- // Calling states this way turns out to be much faster than any other approach.
493
- _callState(cp) {
494
- switch (this.state) {
495
- case State.DATA: {
496
- this._stateData(cp);
497
- break;
498
- }
499
- case State.RCDATA: {
500
- this._stateRcdata(cp);
501
- break;
502
- }
503
- case State.RAWTEXT: {
504
- this._stateRawtext(cp);
505
- break;
506
- }
507
- case State.SCRIPT_DATA: {
508
- this._stateScriptData(cp);
509
- break;
510
- }
511
- case State.PLAINTEXT: {
512
- this._statePlaintext(cp);
513
- break;
514
- }
515
- case State.TAG_OPEN: {
516
- this._stateTagOpen(cp);
517
- break;
518
- }
519
- case State.END_TAG_OPEN: {
520
- this._stateEndTagOpen(cp);
521
- break;
522
- }
523
- case State.TAG_NAME: {
524
- this._stateTagName(cp);
525
- break;
526
- }
527
- case State.RCDATA_LESS_THAN_SIGN: {
528
- this._stateRcdataLessThanSign(cp);
529
- break;
530
- }
531
- case State.RCDATA_END_TAG_OPEN: {
532
- this._stateRcdataEndTagOpen(cp);
533
- break;
534
- }
535
- case State.RCDATA_END_TAG_NAME: {
536
- this._stateRcdataEndTagName(cp);
537
- break;
538
- }
539
- case State.RAWTEXT_LESS_THAN_SIGN: {
540
- this._stateRawtextLessThanSign(cp);
541
- break;
542
- }
543
- case State.RAWTEXT_END_TAG_OPEN: {
544
- this._stateRawtextEndTagOpen(cp);
545
- break;
546
- }
547
- case State.RAWTEXT_END_TAG_NAME: {
548
- this._stateRawtextEndTagName(cp);
549
- break;
550
- }
551
- case State.SCRIPT_DATA_LESS_THAN_SIGN: {
552
- this._stateScriptDataLessThanSign(cp);
553
- break;
554
- }
555
- case State.SCRIPT_DATA_END_TAG_OPEN: {
556
- this._stateScriptDataEndTagOpen(cp);
557
- break;
558
- }
559
- case State.SCRIPT_DATA_END_TAG_NAME: {
560
- this._stateScriptDataEndTagName(cp);
561
- break;
562
- }
563
- case State.SCRIPT_DATA_ESCAPE_START: {
564
- this._stateScriptDataEscapeStart(cp);
565
- break;
566
- }
567
- case State.SCRIPT_DATA_ESCAPE_START_DASH: {
568
- this._stateScriptDataEscapeStartDash(cp);
569
- break;
570
- }
571
- case State.SCRIPT_DATA_ESCAPED: {
572
- this._stateScriptDataEscaped(cp);
573
- break;
574
- }
575
- case State.SCRIPT_DATA_ESCAPED_DASH: {
576
- this._stateScriptDataEscapedDash(cp);
577
- break;
578
- }
579
- case State.SCRIPT_DATA_ESCAPED_DASH_DASH: {
580
- this._stateScriptDataEscapedDashDash(cp);
581
- break;
582
- }
583
- case State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: {
584
- this._stateScriptDataEscapedLessThanSign(cp);
585
- break;
586
- }
587
- case State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: {
588
- this._stateScriptDataEscapedEndTagOpen(cp);
589
- break;
590
- }
591
- case State.SCRIPT_DATA_ESCAPED_END_TAG_NAME: {
592
- this._stateScriptDataEscapedEndTagName(cp);
593
- break;
594
- }
595
- case State.SCRIPT_DATA_DOUBLE_ESCAPE_START: {
596
- this._stateScriptDataDoubleEscapeStart(cp);
597
- break;
598
- }
599
- case State.SCRIPT_DATA_DOUBLE_ESCAPED: {
600
- this._stateScriptDataDoubleEscaped(cp);
601
- break;
602
- }
603
- case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: {
604
- this._stateScriptDataDoubleEscapedDash(cp);
605
- break;
606
- }
607
- case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: {
608
- this._stateScriptDataDoubleEscapedDashDash(cp);
609
- break;
610
- }
611
- case State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: {
612
- this._stateScriptDataDoubleEscapedLessThanSign(cp);
613
- break;
614
- }
615
- case State.SCRIPT_DATA_DOUBLE_ESCAPE_END: {
616
- this._stateScriptDataDoubleEscapeEnd(cp);
617
- break;
618
- }
619
- case State.BEFORE_ATTRIBUTE_NAME: {
620
- this._stateBeforeAttributeName(cp);
621
- break;
622
- }
623
- case State.ATTRIBUTE_NAME: {
624
- this._stateAttributeName(cp);
625
- break;
626
- }
627
- case State.AFTER_ATTRIBUTE_NAME: {
628
- this._stateAfterAttributeName(cp);
629
- break;
630
- }
631
- case State.BEFORE_ATTRIBUTE_VALUE: {
632
- this._stateBeforeAttributeValue(cp);
633
- break;
634
- }
635
- case State.ATTRIBUTE_VALUE_DOUBLE_QUOTED: {
636
- this._stateAttributeValueDoubleQuoted(cp);
637
- break;
638
- }
639
- case State.ATTRIBUTE_VALUE_SINGLE_QUOTED: {
640
- this._stateAttributeValueSingleQuoted(cp);
641
- break;
642
- }
643
- case State.ATTRIBUTE_VALUE_UNQUOTED: {
644
- this._stateAttributeValueUnquoted(cp);
645
- break;
646
- }
647
- case State.AFTER_ATTRIBUTE_VALUE_QUOTED: {
648
- this._stateAfterAttributeValueQuoted(cp);
649
- break;
650
- }
651
- case State.SELF_CLOSING_START_TAG: {
652
- this._stateSelfClosingStartTag(cp);
653
- break;
654
- }
655
- case State.BOGUS_COMMENT: {
656
- this._stateBogusComment(cp);
657
- break;
658
- }
659
- case State.MARKUP_DECLARATION_OPEN: {
660
- this._stateMarkupDeclarationOpen(cp);
661
- break;
662
- }
663
- case State.COMMENT_START: {
664
- this._stateCommentStart(cp);
665
- break;
666
- }
667
- case State.COMMENT_START_DASH: {
668
- this._stateCommentStartDash(cp);
669
- break;
670
- }
671
- case State.COMMENT: {
672
- this._stateComment(cp);
673
- break;
674
- }
675
- case State.COMMENT_LESS_THAN_SIGN: {
676
- this._stateCommentLessThanSign(cp);
677
- break;
678
- }
679
- case State.COMMENT_LESS_THAN_SIGN_BANG: {
680
- this._stateCommentLessThanSignBang(cp);
681
- break;
682
- }
683
- case State.COMMENT_LESS_THAN_SIGN_BANG_DASH: {
684
- this._stateCommentLessThanSignBangDash(cp);
685
- break;
686
- }
687
- case State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: {
688
- this._stateCommentLessThanSignBangDashDash(cp);
689
- break;
690
- }
691
- case State.COMMENT_END_DASH: {
692
- this._stateCommentEndDash(cp);
693
- break;
694
- }
695
- case State.COMMENT_END: {
696
- this._stateCommentEnd(cp);
697
- break;
698
- }
699
- case State.COMMENT_END_BANG: {
700
- this._stateCommentEndBang(cp);
701
- break;
702
- }
703
- case State.DOCTYPE: {
704
- this._stateDoctype(cp);
705
- break;
706
- }
707
- case State.BEFORE_DOCTYPE_NAME: {
708
- this._stateBeforeDoctypeName(cp);
709
- break;
710
- }
711
- case State.DOCTYPE_NAME: {
712
- this._stateDoctypeName(cp);
713
- break;
714
- }
715
- case State.AFTER_DOCTYPE_NAME: {
716
- this._stateAfterDoctypeName(cp);
717
- break;
718
- }
719
- case State.AFTER_DOCTYPE_PUBLIC_KEYWORD: {
720
- this._stateAfterDoctypePublicKeyword(cp);
721
- break;
722
- }
723
- case State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: {
724
- this._stateBeforeDoctypePublicIdentifier(cp);
725
- break;
726
- }
727
- case State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: {
728
- this._stateDoctypePublicIdentifierDoubleQuoted(cp);
729
- break;
730
- }
731
- case State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: {
732
- this._stateDoctypePublicIdentifierSingleQuoted(cp);
733
- break;
734
- }
735
- case State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: {
736
- this._stateAfterDoctypePublicIdentifier(cp);
737
- break;
738
- }
739
- case State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: {
740
- this._stateBetweenDoctypePublicAndSystemIdentifiers(cp);
741
- break;
742
- }
743
- case State.AFTER_DOCTYPE_SYSTEM_KEYWORD: {
744
- this._stateAfterDoctypeSystemKeyword(cp);
745
- break;
746
- }
747
- case State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: {
748
- this._stateBeforeDoctypeSystemIdentifier(cp);
749
- break;
750
- }
751
- case State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: {
752
- this._stateDoctypeSystemIdentifierDoubleQuoted(cp);
753
- break;
754
- }
755
- case State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: {
756
- this._stateDoctypeSystemIdentifierSingleQuoted(cp);
757
- break;
758
- }
759
- case State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: {
760
- this._stateAfterDoctypeSystemIdentifier(cp);
761
- break;
762
- }
763
- case State.BOGUS_DOCTYPE: {
764
- this._stateBogusDoctype(cp);
765
- break;
766
- }
767
- case State.CDATA_SECTION: {
768
- this._stateCdataSection(cp);
769
- break;
770
- }
771
- case State.CDATA_SECTION_BRACKET: {
772
- this._stateCdataSectionBracket(cp);
773
- break;
774
- }
775
- case State.CDATA_SECTION_END: {
776
- this._stateCdataSectionEnd(cp);
777
- break;
778
- }
779
- case State.CHARACTER_REFERENCE: {
780
- this._stateCharacterReference();
781
- break;
782
- }
783
- case State.AMBIGUOUS_AMPERSAND: {
784
- this._stateAmbiguousAmpersand(cp);
785
- break;
786
- }
787
- default: {
788
- throw new Error('Unknown state');
789
- }
790
- }
791
- }
792
- // State machine
793
- // Data state
794
- //------------------------------------------------------------------
795
- _stateData(cp) {
796
- switch (cp) {
797
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
798
- this.state = State.TAG_OPEN;
799
- break;
800
- }
801
- case unicode_js_1.CODE_POINTS.AMPERSAND: {
802
- this._startCharacterReference();
803
- break;
804
- }
805
- case unicode_js_1.CODE_POINTS.NULL: {
806
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
807
- this._emitCodePoint(cp);
808
- break;
809
- }
810
- case unicode_js_1.CODE_POINTS.EOF: {
811
- this._emitEOFToken();
812
- break;
813
- }
814
- default: {
815
- this._emitCodePoint(cp);
816
- }
817
- }
818
- }
819
- // RCDATA state
820
- //------------------------------------------------------------------
821
- _stateRcdata(cp) {
822
- switch (cp) {
823
- case unicode_js_1.CODE_POINTS.AMPERSAND: {
824
- this._startCharacterReference();
825
- break;
826
- }
827
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
828
- this.state = State.RCDATA_LESS_THAN_SIGN;
829
- break;
830
- }
831
- case unicode_js_1.CODE_POINTS.NULL: {
832
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
833
- this._emitChars(unicode_js_1.REPLACEMENT_CHARACTER);
834
- break;
835
- }
836
- case unicode_js_1.CODE_POINTS.EOF: {
837
- this._emitEOFToken();
838
- break;
839
- }
840
- default: {
841
- this._emitCodePoint(cp);
842
- }
843
- }
844
- }
845
- // RAWTEXT state
846
- //------------------------------------------------------------------
847
- _stateRawtext(cp) {
848
- switch (cp) {
849
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
850
- this.state = State.RAWTEXT_LESS_THAN_SIGN;
851
- break;
852
- }
853
- case unicode_js_1.CODE_POINTS.NULL: {
854
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
855
- this._emitChars(unicode_js_1.REPLACEMENT_CHARACTER);
856
- break;
857
- }
858
- case unicode_js_1.CODE_POINTS.EOF: {
859
- this._emitEOFToken();
860
- break;
861
- }
862
- default: {
863
- this._emitCodePoint(cp);
864
- }
865
- }
866
- }
867
- // Script data state
868
- //------------------------------------------------------------------
869
- _stateScriptData(cp) {
870
- switch (cp) {
871
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
872
- this.state = State.SCRIPT_DATA_LESS_THAN_SIGN;
873
- break;
874
- }
875
- case unicode_js_1.CODE_POINTS.NULL: {
876
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
877
- this._emitChars(unicode_js_1.REPLACEMENT_CHARACTER);
878
- break;
879
- }
880
- case unicode_js_1.CODE_POINTS.EOF: {
881
- this._emitEOFToken();
882
- break;
883
- }
884
- default: {
885
- this._emitCodePoint(cp);
886
- }
887
- }
888
- }
889
- // PLAINTEXT state
890
- //------------------------------------------------------------------
891
- _statePlaintext(cp) {
892
- switch (cp) {
893
- case unicode_js_1.CODE_POINTS.NULL: {
894
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
895
- this._emitChars(unicode_js_1.REPLACEMENT_CHARACTER);
896
- break;
897
- }
898
- case unicode_js_1.CODE_POINTS.EOF: {
899
- this._emitEOFToken();
900
- break;
901
- }
902
- default: {
903
- this._emitCodePoint(cp);
904
- }
905
- }
906
- }
907
- // Tag open state
908
- //------------------------------------------------------------------
909
- _stateTagOpen(cp) {
910
- if (isAsciiLetter(cp)) {
911
- this._createStartTagToken();
912
- this.state = State.TAG_NAME;
913
- this._stateTagName(cp);
914
- }
915
- else
916
- switch (cp) {
917
- case unicode_js_1.CODE_POINTS.EXCLAMATION_MARK: {
918
- this.state = State.MARKUP_DECLARATION_OPEN;
919
- break;
920
- }
921
- case unicode_js_1.CODE_POINTS.SOLIDUS: {
922
- this.state = State.END_TAG_OPEN;
923
- break;
924
- }
925
- case unicode_js_1.CODE_POINTS.QUESTION_MARK: {
926
- this._err(error_codes_js_1.ERR.unexpectedQuestionMarkInsteadOfTagName);
927
- this._createCommentToken(1);
928
- this.state = State.BOGUS_COMMENT;
929
- this._stateBogusComment(cp);
930
- break;
931
- }
932
- case unicode_js_1.CODE_POINTS.EOF: {
933
- this._err(error_codes_js_1.ERR.eofBeforeTagName);
934
- this._emitChars('<');
935
- this._emitEOFToken();
936
- break;
937
- }
938
- default: {
939
- this._err(error_codes_js_1.ERR.invalidFirstCharacterOfTagName);
940
- this._emitChars('<');
941
- this.state = State.DATA;
942
- this._stateData(cp);
943
- }
944
- }
945
- }
946
- // End tag open state
947
- //------------------------------------------------------------------
948
- _stateEndTagOpen(cp) {
949
- if (isAsciiLetter(cp)) {
950
- this._createEndTagToken();
951
- this.state = State.TAG_NAME;
952
- this._stateTagName(cp);
953
- }
954
- else
955
- switch (cp) {
956
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
957
- this._err(error_codes_js_1.ERR.missingEndTagName);
958
- this.state = State.DATA;
959
- break;
960
- }
961
- case unicode_js_1.CODE_POINTS.EOF: {
962
- this._err(error_codes_js_1.ERR.eofBeforeTagName);
963
- this._emitChars('</');
964
- this._emitEOFToken();
965
- break;
966
- }
967
- default: {
968
- this._err(error_codes_js_1.ERR.invalidFirstCharacterOfTagName);
969
- this._createCommentToken(2);
970
- this.state = State.BOGUS_COMMENT;
971
- this._stateBogusComment(cp);
972
- }
973
- }
974
- }
975
- // Tag name state
976
- //------------------------------------------------------------------
977
- _stateTagName(cp) {
978
- const token = this.currentToken;
979
- switch (cp) {
980
- case unicode_js_1.CODE_POINTS.SPACE:
981
- case unicode_js_1.CODE_POINTS.LINE_FEED:
982
- case unicode_js_1.CODE_POINTS.TABULATION:
983
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
984
- this.state = State.BEFORE_ATTRIBUTE_NAME;
985
- break;
986
- }
987
- case unicode_js_1.CODE_POINTS.SOLIDUS: {
988
- this.state = State.SELF_CLOSING_START_TAG;
989
- break;
990
- }
991
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
992
- this.state = State.DATA;
993
- this.emitCurrentTagToken();
994
- break;
995
- }
996
- case unicode_js_1.CODE_POINTS.NULL: {
997
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
998
- token.tagName += unicode_js_1.REPLACEMENT_CHARACTER;
999
- break;
1000
- }
1001
- case unicode_js_1.CODE_POINTS.EOF: {
1002
- this._err(error_codes_js_1.ERR.eofInTag);
1003
- this._emitEOFToken();
1004
- break;
1005
- }
1006
- default: {
1007
- token.tagName += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
1008
- }
1009
- }
1010
- }
1011
- // RCDATA less-than sign state
1012
- //------------------------------------------------------------------
1013
- _stateRcdataLessThanSign(cp) {
1014
- if (cp === unicode_js_1.CODE_POINTS.SOLIDUS) {
1015
- this.state = State.RCDATA_END_TAG_OPEN;
1016
- }
1017
- else {
1018
- this._emitChars('<');
1019
- this.state = State.RCDATA;
1020
- this._stateRcdata(cp);
1021
- }
1022
- }
1023
- // RCDATA end tag open state
1024
- //------------------------------------------------------------------
1025
- _stateRcdataEndTagOpen(cp) {
1026
- if (isAsciiLetter(cp)) {
1027
- this.state = State.RCDATA_END_TAG_NAME;
1028
- this._stateRcdataEndTagName(cp);
1029
- }
1030
- else {
1031
- this._emitChars('</');
1032
- this.state = State.RCDATA;
1033
- this._stateRcdata(cp);
1034
- }
1035
- }
1036
- handleSpecialEndTag(_cp) {
1037
- if (!this.preprocessor.startsWith(this.lastStartTagName, false)) {
1038
- return !this._ensureHibernation();
1039
- }
1040
- this._createEndTagToken();
1041
- const token = this.currentToken;
1042
- token.tagName = this.lastStartTagName;
1043
- const cp = this.preprocessor.peek(this.lastStartTagName.length);
1044
- switch (cp) {
1045
- case unicode_js_1.CODE_POINTS.SPACE:
1046
- case unicode_js_1.CODE_POINTS.LINE_FEED:
1047
- case unicode_js_1.CODE_POINTS.TABULATION:
1048
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
1049
- this._advanceBy(this.lastStartTagName.length);
1050
- this.state = State.BEFORE_ATTRIBUTE_NAME;
1051
- return false;
1052
- }
1053
- case unicode_js_1.CODE_POINTS.SOLIDUS: {
1054
- this._advanceBy(this.lastStartTagName.length);
1055
- this.state = State.SELF_CLOSING_START_TAG;
1056
- return false;
1057
- }
1058
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1059
- this._advanceBy(this.lastStartTagName.length);
1060
- this.emitCurrentTagToken();
1061
- this.state = State.DATA;
1062
- return false;
1063
- }
1064
- default: {
1065
- return !this._ensureHibernation();
1066
- }
1067
- }
1068
- }
1069
- // RCDATA end tag name state
1070
- //------------------------------------------------------------------
1071
- _stateRcdataEndTagName(cp) {
1072
- if (this.handleSpecialEndTag(cp)) {
1073
- this._emitChars('</');
1074
- this.state = State.RCDATA;
1075
- this._stateRcdata(cp);
1076
- }
1077
- }
1078
- // RAWTEXT less-than sign state
1079
- //------------------------------------------------------------------
1080
- _stateRawtextLessThanSign(cp) {
1081
- if (cp === unicode_js_1.CODE_POINTS.SOLIDUS) {
1082
- this.state = State.RAWTEXT_END_TAG_OPEN;
1083
- }
1084
- else {
1085
- this._emitChars('<');
1086
- this.state = State.RAWTEXT;
1087
- this._stateRawtext(cp);
1088
- }
1089
- }
1090
- // RAWTEXT end tag open state
1091
- //------------------------------------------------------------------
1092
- _stateRawtextEndTagOpen(cp) {
1093
- if (isAsciiLetter(cp)) {
1094
- this.state = State.RAWTEXT_END_TAG_NAME;
1095
- this._stateRawtextEndTagName(cp);
1096
- }
1097
- else {
1098
- this._emitChars('</');
1099
- this.state = State.RAWTEXT;
1100
- this._stateRawtext(cp);
1101
- }
1102
- }
1103
- // RAWTEXT end tag name state
1104
- //------------------------------------------------------------------
1105
- _stateRawtextEndTagName(cp) {
1106
- if (this.handleSpecialEndTag(cp)) {
1107
- this._emitChars('</');
1108
- this.state = State.RAWTEXT;
1109
- this._stateRawtext(cp);
1110
- }
1111
- }
1112
- // Script data less-than sign state
1113
- //------------------------------------------------------------------
1114
- _stateScriptDataLessThanSign(cp) {
1115
- switch (cp) {
1116
- case unicode_js_1.CODE_POINTS.SOLIDUS: {
1117
- this.state = State.SCRIPT_DATA_END_TAG_OPEN;
1118
- break;
1119
- }
1120
- case unicode_js_1.CODE_POINTS.EXCLAMATION_MARK: {
1121
- this.state = State.SCRIPT_DATA_ESCAPE_START;
1122
- this._emitChars('<!');
1123
- break;
1124
- }
1125
- default: {
1126
- this._emitChars('<');
1127
- this.state = State.SCRIPT_DATA;
1128
- this._stateScriptData(cp);
1129
- }
1130
- }
1131
- }
1132
- // Script data end tag open state
1133
- //------------------------------------------------------------------
1134
- _stateScriptDataEndTagOpen(cp) {
1135
- if (isAsciiLetter(cp)) {
1136
- this.state = State.SCRIPT_DATA_END_TAG_NAME;
1137
- this._stateScriptDataEndTagName(cp);
1138
- }
1139
- else {
1140
- this._emitChars('</');
1141
- this.state = State.SCRIPT_DATA;
1142
- this._stateScriptData(cp);
1143
- }
1144
- }
1145
- // Script data end tag name state
1146
- //------------------------------------------------------------------
1147
- _stateScriptDataEndTagName(cp) {
1148
- if (this.handleSpecialEndTag(cp)) {
1149
- this._emitChars('</');
1150
- this.state = State.SCRIPT_DATA;
1151
- this._stateScriptData(cp);
1152
- }
1153
- }
1154
- // Script data escape start state
1155
- //------------------------------------------------------------------
1156
- _stateScriptDataEscapeStart(cp) {
1157
- if (cp === unicode_js_1.CODE_POINTS.HYPHEN_MINUS) {
1158
- this.state = State.SCRIPT_DATA_ESCAPE_START_DASH;
1159
- this._emitChars('-');
1160
- }
1161
- else {
1162
- this.state = State.SCRIPT_DATA;
1163
- this._stateScriptData(cp);
1164
- }
1165
- }
1166
- // Script data escape start dash state
1167
- //------------------------------------------------------------------
1168
- _stateScriptDataEscapeStartDash(cp) {
1169
- if (cp === unicode_js_1.CODE_POINTS.HYPHEN_MINUS) {
1170
- this.state = State.SCRIPT_DATA_ESCAPED_DASH_DASH;
1171
- this._emitChars('-');
1172
- }
1173
- else {
1174
- this.state = State.SCRIPT_DATA;
1175
- this._stateScriptData(cp);
1176
- }
1177
- }
1178
- // Script data escaped state
1179
- //------------------------------------------------------------------
1180
- _stateScriptDataEscaped(cp) {
1181
- switch (cp) {
1182
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1183
- this.state = State.SCRIPT_DATA_ESCAPED_DASH;
1184
- this._emitChars('-');
1185
- break;
1186
- }
1187
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
1188
- this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
1189
- break;
1190
- }
1191
- case unicode_js_1.CODE_POINTS.NULL: {
1192
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1193
- this._emitChars(unicode_js_1.REPLACEMENT_CHARACTER);
1194
- break;
1195
- }
1196
- case unicode_js_1.CODE_POINTS.EOF: {
1197
- this._err(error_codes_js_1.ERR.eofInScriptHtmlCommentLikeText);
1198
- this._emitEOFToken();
1199
- break;
1200
- }
1201
- default: {
1202
- this._emitCodePoint(cp);
1203
- }
1204
- }
1205
- }
1206
- // Script data escaped dash state
1207
- //------------------------------------------------------------------
1208
- _stateScriptDataEscapedDash(cp) {
1209
- switch (cp) {
1210
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1211
- this.state = State.SCRIPT_DATA_ESCAPED_DASH_DASH;
1212
- this._emitChars('-');
1213
- break;
1214
- }
1215
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
1216
- this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
1217
- break;
1218
- }
1219
- case unicode_js_1.CODE_POINTS.NULL: {
1220
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1221
- this.state = State.SCRIPT_DATA_ESCAPED;
1222
- this._emitChars(unicode_js_1.REPLACEMENT_CHARACTER);
1223
- break;
1224
- }
1225
- case unicode_js_1.CODE_POINTS.EOF: {
1226
- this._err(error_codes_js_1.ERR.eofInScriptHtmlCommentLikeText);
1227
- this._emitEOFToken();
1228
- break;
1229
- }
1230
- default: {
1231
- this.state = State.SCRIPT_DATA_ESCAPED;
1232
- this._emitCodePoint(cp);
1233
- }
1234
- }
1235
- }
1236
- // Script data escaped dash dash state
1237
- //------------------------------------------------------------------
1238
- _stateScriptDataEscapedDashDash(cp) {
1239
- switch (cp) {
1240
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1241
- this._emitChars('-');
1242
- break;
1243
- }
1244
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
1245
- this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
1246
- break;
1247
- }
1248
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1249
- this.state = State.SCRIPT_DATA;
1250
- this._emitChars('>');
1251
- break;
1252
- }
1253
- case unicode_js_1.CODE_POINTS.NULL: {
1254
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1255
- this.state = State.SCRIPT_DATA_ESCAPED;
1256
- this._emitChars(unicode_js_1.REPLACEMENT_CHARACTER);
1257
- break;
1258
- }
1259
- case unicode_js_1.CODE_POINTS.EOF: {
1260
- this._err(error_codes_js_1.ERR.eofInScriptHtmlCommentLikeText);
1261
- this._emitEOFToken();
1262
- break;
1263
- }
1264
- default: {
1265
- this.state = State.SCRIPT_DATA_ESCAPED;
1266
- this._emitCodePoint(cp);
1267
- }
1268
- }
1269
- }
1270
- // Script data escaped less-than sign state
1271
- //------------------------------------------------------------------
1272
- _stateScriptDataEscapedLessThanSign(cp) {
1273
- if (cp === unicode_js_1.CODE_POINTS.SOLIDUS) {
1274
- this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;
1275
- }
1276
- else if (isAsciiLetter(cp)) {
1277
- this._emitChars('<');
1278
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_START;
1279
- this._stateScriptDataDoubleEscapeStart(cp);
1280
- }
1281
- else {
1282
- this._emitChars('<');
1283
- this.state = State.SCRIPT_DATA_ESCAPED;
1284
- this._stateScriptDataEscaped(cp);
1285
- }
1286
- }
1287
- // Script data escaped end tag open state
1288
- //------------------------------------------------------------------
1289
- _stateScriptDataEscapedEndTagOpen(cp) {
1290
- if (isAsciiLetter(cp)) {
1291
- this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_NAME;
1292
- this._stateScriptDataEscapedEndTagName(cp);
1293
- }
1294
- else {
1295
- this._emitChars('</');
1296
- this.state = State.SCRIPT_DATA_ESCAPED;
1297
- this._stateScriptDataEscaped(cp);
1298
- }
1299
- }
1300
- // Script data escaped end tag name state
1301
- //------------------------------------------------------------------
1302
- _stateScriptDataEscapedEndTagName(cp) {
1303
- if (this.handleSpecialEndTag(cp)) {
1304
- this._emitChars('</');
1305
- this.state = State.SCRIPT_DATA_ESCAPED;
1306
- this._stateScriptDataEscaped(cp);
1307
- }
1308
- }
1309
- // Script data double escape start state
1310
- //------------------------------------------------------------------
1311
- _stateScriptDataDoubleEscapeStart(cp) {
1312
- if (this.preprocessor.startsWith(unicode_js_1.SEQUENCES.SCRIPT, false) &&
1313
- isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(unicode_js_1.SEQUENCES.SCRIPT.length))) {
1314
- this._emitCodePoint(cp);
1315
- for (let i = 0; i < unicode_js_1.SEQUENCES.SCRIPT.length; i++) {
1316
- this._emitCodePoint(this._consume());
1317
- }
1318
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1319
- }
1320
- else if (!this._ensureHibernation()) {
1321
- this.state = State.SCRIPT_DATA_ESCAPED;
1322
- this._stateScriptDataEscaped(cp);
1323
- }
1324
- }
1325
- // Script data double escaped state
1326
- //------------------------------------------------------------------
1327
- _stateScriptDataDoubleEscaped(cp) {
1328
- switch (cp) {
1329
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1330
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH;
1331
- this._emitChars('-');
1332
- break;
1333
- }
1334
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
1335
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
1336
- this._emitChars('<');
1337
- break;
1338
- }
1339
- case unicode_js_1.CODE_POINTS.NULL: {
1340
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1341
- this._emitChars(unicode_js_1.REPLACEMENT_CHARACTER);
1342
- break;
1343
- }
1344
- case unicode_js_1.CODE_POINTS.EOF: {
1345
- this._err(error_codes_js_1.ERR.eofInScriptHtmlCommentLikeText);
1346
- this._emitEOFToken();
1347
- break;
1348
- }
1349
- default: {
1350
- this._emitCodePoint(cp);
1351
- }
1352
- }
1353
- }
1354
- // Script data double escaped dash state
1355
- //------------------------------------------------------------------
1356
- _stateScriptDataDoubleEscapedDash(cp) {
1357
- switch (cp) {
1358
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1359
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH;
1360
- this._emitChars('-');
1361
- break;
1362
- }
1363
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
1364
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
1365
- this._emitChars('<');
1366
- break;
1367
- }
1368
- case unicode_js_1.CODE_POINTS.NULL: {
1369
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1370
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1371
- this._emitChars(unicode_js_1.REPLACEMENT_CHARACTER);
1372
- break;
1373
- }
1374
- case unicode_js_1.CODE_POINTS.EOF: {
1375
- this._err(error_codes_js_1.ERR.eofInScriptHtmlCommentLikeText);
1376
- this._emitEOFToken();
1377
- break;
1378
- }
1379
- default: {
1380
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1381
- this._emitCodePoint(cp);
1382
- }
1383
- }
1384
- }
1385
- // Script data double escaped dash dash state
1386
- //------------------------------------------------------------------
1387
- _stateScriptDataDoubleEscapedDashDash(cp) {
1388
- switch (cp) {
1389
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1390
- this._emitChars('-');
1391
- break;
1392
- }
1393
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
1394
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
1395
- this._emitChars('<');
1396
- break;
1397
- }
1398
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1399
- this.state = State.SCRIPT_DATA;
1400
- this._emitChars('>');
1401
- break;
1402
- }
1403
- case unicode_js_1.CODE_POINTS.NULL: {
1404
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1405
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1406
- this._emitChars(unicode_js_1.REPLACEMENT_CHARACTER);
1407
- break;
1408
- }
1409
- case unicode_js_1.CODE_POINTS.EOF: {
1410
- this._err(error_codes_js_1.ERR.eofInScriptHtmlCommentLikeText);
1411
- this._emitEOFToken();
1412
- break;
1413
- }
1414
- default: {
1415
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1416
- this._emitCodePoint(cp);
1417
- }
1418
- }
1419
- }
1420
- // Script data double escaped less-than sign state
1421
- //------------------------------------------------------------------
1422
- _stateScriptDataDoubleEscapedLessThanSign(cp) {
1423
- if (cp === unicode_js_1.CODE_POINTS.SOLIDUS) {
1424
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_END;
1425
- this._emitChars('/');
1426
- }
1427
- else {
1428
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1429
- this._stateScriptDataDoubleEscaped(cp);
1430
- }
1431
- }
1432
- // Script data double escape end state
1433
- //------------------------------------------------------------------
1434
- _stateScriptDataDoubleEscapeEnd(cp) {
1435
- if (this.preprocessor.startsWith(unicode_js_1.SEQUENCES.SCRIPT, false) &&
1436
- isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(unicode_js_1.SEQUENCES.SCRIPT.length))) {
1437
- this._emitCodePoint(cp);
1438
- for (let i = 0; i < unicode_js_1.SEQUENCES.SCRIPT.length; i++) {
1439
- this._emitCodePoint(this._consume());
1440
- }
1441
- this.state = State.SCRIPT_DATA_ESCAPED;
1442
- }
1443
- else if (!this._ensureHibernation()) {
1444
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1445
- this._stateScriptDataDoubleEscaped(cp);
1446
- }
1447
- }
1448
- // Before attribute name state
1449
- //------------------------------------------------------------------
1450
- _stateBeforeAttributeName(cp) {
1451
- switch (cp) {
1452
- case unicode_js_1.CODE_POINTS.SPACE:
1453
- case unicode_js_1.CODE_POINTS.LINE_FEED:
1454
- case unicode_js_1.CODE_POINTS.TABULATION:
1455
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
1456
- // Ignore whitespace
1457
- break;
1458
- }
1459
- case unicode_js_1.CODE_POINTS.SOLIDUS:
1460
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN:
1461
- case unicode_js_1.CODE_POINTS.EOF: {
1462
- this.state = State.AFTER_ATTRIBUTE_NAME;
1463
- this._stateAfterAttributeName(cp);
1464
- break;
1465
- }
1466
- case unicode_js_1.CODE_POINTS.EQUALS_SIGN: {
1467
- this._err(error_codes_js_1.ERR.unexpectedEqualsSignBeforeAttributeName);
1468
- this._createAttr('=');
1469
- this.state = State.ATTRIBUTE_NAME;
1470
- break;
1471
- }
1472
- default: {
1473
- this._createAttr('');
1474
- this.state = State.ATTRIBUTE_NAME;
1475
- this._stateAttributeName(cp);
1476
- }
1477
- }
1478
- }
1479
- // Attribute name state
1480
- //------------------------------------------------------------------
1481
- _stateAttributeName(cp) {
1482
- switch (cp) {
1483
- case unicode_js_1.CODE_POINTS.SPACE:
1484
- case unicode_js_1.CODE_POINTS.LINE_FEED:
1485
- case unicode_js_1.CODE_POINTS.TABULATION:
1486
- case unicode_js_1.CODE_POINTS.FORM_FEED:
1487
- case unicode_js_1.CODE_POINTS.SOLIDUS:
1488
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN:
1489
- case unicode_js_1.CODE_POINTS.EOF: {
1490
- this._leaveAttrName();
1491
- this.state = State.AFTER_ATTRIBUTE_NAME;
1492
- this._stateAfterAttributeName(cp);
1493
- break;
1494
- }
1495
- case unicode_js_1.CODE_POINTS.EQUALS_SIGN: {
1496
- this._leaveAttrName();
1497
- this.state = State.BEFORE_ATTRIBUTE_VALUE;
1498
- break;
1499
- }
1500
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK:
1501
- case unicode_js_1.CODE_POINTS.APOSTROPHE:
1502
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
1503
- this._err(error_codes_js_1.ERR.unexpectedCharacterInAttributeName);
1504
- this.currentAttr.name += String.fromCodePoint(cp);
1505
- break;
1506
- }
1507
- case unicode_js_1.CODE_POINTS.NULL: {
1508
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1509
- this.currentAttr.name += unicode_js_1.REPLACEMENT_CHARACTER;
1510
- break;
1511
- }
1512
- default: {
1513
- this.currentAttr.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
1514
- }
1515
- }
1516
- }
1517
- // After attribute name state
1518
- //------------------------------------------------------------------
1519
- _stateAfterAttributeName(cp) {
1520
- switch (cp) {
1521
- case unicode_js_1.CODE_POINTS.SPACE:
1522
- case unicode_js_1.CODE_POINTS.LINE_FEED:
1523
- case unicode_js_1.CODE_POINTS.TABULATION:
1524
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
1525
- // Ignore whitespace
1526
- break;
1527
- }
1528
- case unicode_js_1.CODE_POINTS.SOLIDUS: {
1529
- this.state = State.SELF_CLOSING_START_TAG;
1530
- break;
1531
- }
1532
- case unicode_js_1.CODE_POINTS.EQUALS_SIGN: {
1533
- this.state = State.BEFORE_ATTRIBUTE_VALUE;
1534
- break;
1535
- }
1536
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1537
- this.state = State.DATA;
1538
- this.emitCurrentTagToken();
1539
- break;
1540
- }
1541
- case unicode_js_1.CODE_POINTS.EOF: {
1542
- this._err(error_codes_js_1.ERR.eofInTag);
1543
- this._emitEOFToken();
1544
- break;
1545
- }
1546
- default: {
1547
- this._createAttr('');
1548
- this.state = State.ATTRIBUTE_NAME;
1549
- this._stateAttributeName(cp);
1550
- }
1551
- }
1552
- }
1553
- // Before attribute value state
1554
- //------------------------------------------------------------------
1555
- _stateBeforeAttributeValue(cp) {
1556
- switch (cp) {
1557
- case unicode_js_1.CODE_POINTS.SPACE:
1558
- case unicode_js_1.CODE_POINTS.LINE_FEED:
1559
- case unicode_js_1.CODE_POINTS.TABULATION:
1560
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
1561
- // Ignore whitespace
1562
- break;
1563
- }
1564
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK: {
1565
- this.state = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
1566
- break;
1567
- }
1568
- case unicode_js_1.CODE_POINTS.APOSTROPHE: {
1569
- this.state = State.ATTRIBUTE_VALUE_SINGLE_QUOTED;
1570
- break;
1571
- }
1572
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1573
- this._err(error_codes_js_1.ERR.missingAttributeValue);
1574
- this.state = State.DATA;
1575
- this.emitCurrentTagToken();
1576
- break;
1577
- }
1578
- default: {
1579
- this.state = State.ATTRIBUTE_VALUE_UNQUOTED;
1580
- this._stateAttributeValueUnquoted(cp);
1581
- }
1582
- }
1583
- }
1584
- // Attribute value (double-quoted) state
1585
- //------------------------------------------------------------------
1586
- _stateAttributeValueDoubleQuoted(cp) {
1587
- switch (cp) {
1588
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK: {
1589
- this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;
1590
- break;
1591
- }
1592
- case unicode_js_1.CODE_POINTS.AMPERSAND: {
1593
- this._startCharacterReference();
1594
- break;
1595
- }
1596
- case unicode_js_1.CODE_POINTS.NULL: {
1597
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1598
- this.currentAttr.value += unicode_js_1.REPLACEMENT_CHARACTER;
1599
- break;
1600
- }
1601
- case unicode_js_1.CODE_POINTS.EOF: {
1602
- this._err(error_codes_js_1.ERR.eofInTag);
1603
- this._emitEOFToken();
1604
- break;
1605
- }
1606
- default: {
1607
- this.currentAttr.value += String.fromCodePoint(cp);
1608
- }
1609
- }
1610
- }
1611
- // Attribute value (single-quoted) state
1612
- //------------------------------------------------------------------
1613
- _stateAttributeValueSingleQuoted(cp) {
1614
- switch (cp) {
1615
- case unicode_js_1.CODE_POINTS.APOSTROPHE: {
1616
- this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;
1617
- break;
1618
- }
1619
- case unicode_js_1.CODE_POINTS.AMPERSAND: {
1620
- this._startCharacterReference();
1621
- break;
1622
- }
1623
- case unicode_js_1.CODE_POINTS.NULL: {
1624
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1625
- this.currentAttr.value += unicode_js_1.REPLACEMENT_CHARACTER;
1626
- break;
1627
- }
1628
- case unicode_js_1.CODE_POINTS.EOF: {
1629
- this._err(error_codes_js_1.ERR.eofInTag);
1630
- this._emitEOFToken();
1631
- break;
1632
- }
1633
- default: {
1634
- this.currentAttr.value += String.fromCodePoint(cp);
1635
- }
1636
- }
1637
- }
1638
- // Attribute value (unquoted) state
1639
- //------------------------------------------------------------------
1640
- _stateAttributeValueUnquoted(cp) {
1641
- switch (cp) {
1642
- case unicode_js_1.CODE_POINTS.SPACE:
1643
- case unicode_js_1.CODE_POINTS.LINE_FEED:
1644
- case unicode_js_1.CODE_POINTS.TABULATION:
1645
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
1646
- this._leaveAttrValue();
1647
- this.state = State.BEFORE_ATTRIBUTE_NAME;
1648
- break;
1649
- }
1650
- case unicode_js_1.CODE_POINTS.AMPERSAND: {
1651
- this._startCharacterReference();
1652
- break;
1653
- }
1654
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1655
- this._leaveAttrValue();
1656
- this.state = State.DATA;
1657
- this.emitCurrentTagToken();
1658
- break;
1659
- }
1660
- case unicode_js_1.CODE_POINTS.NULL: {
1661
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1662
- this.currentAttr.value += unicode_js_1.REPLACEMENT_CHARACTER;
1663
- break;
1664
- }
1665
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK:
1666
- case unicode_js_1.CODE_POINTS.APOSTROPHE:
1667
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN:
1668
- case unicode_js_1.CODE_POINTS.EQUALS_SIGN:
1669
- case unicode_js_1.CODE_POINTS.GRAVE_ACCENT: {
1670
- this._err(error_codes_js_1.ERR.unexpectedCharacterInUnquotedAttributeValue);
1671
- this.currentAttr.value += String.fromCodePoint(cp);
1672
- break;
1673
- }
1674
- case unicode_js_1.CODE_POINTS.EOF: {
1675
- this._err(error_codes_js_1.ERR.eofInTag);
1676
- this._emitEOFToken();
1677
- break;
1678
- }
1679
- default: {
1680
- this.currentAttr.value += String.fromCodePoint(cp);
1681
- }
1682
- }
1683
- }
1684
- // After attribute value (quoted) state
1685
- //------------------------------------------------------------------
1686
- _stateAfterAttributeValueQuoted(cp) {
1687
- switch (cp) {
1688
- case unicode_js_1.CODE_POINTS.SPACE:
1689
- case unicode_js_1.CODE_POINTS.LINE_FEED:
1690
- case unicode_js_1.CODE_POINTS.TABULATION:
1691
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
1692
- this._leaveAttrValue();
1693
- this.state = State.BEFORE_ATTRIBUTE_NAME;
1694
- break;
1695
- }
1696
- case unicode_js_1.CODE_POINTS.SOLIDUS: {
1697
- this._leaveAttrValue();
1698
- this.state = State.SELF_CLOSING_START_TAG;
1699
- break;
1700
- }
1701
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1702
- this._leaveAttrValue();
1703
- this.state = State.DATA;
1704
- this.emitCurrentTagToken();
1705
- break;
1706
- }
1707
- case unicode_js_1.CODE_POINTS.EOF: {
1708
- this._err(error_codes_js_1.ERR.eofInTag);
1709
- this._emitEOFToken();
1710
- break;
1711
- }
1712
- default: {
1713
- this._err(error_codes_js_1.ERR.missingWhitespaceBetweenAttributes);
1714
- this.state = State.BEFORE_ATTRIBUTE_NAME;
1715
- this._stateBeforeAttributeName(cp);
1716
- }
1717
- }
1718
- }
1719
- // Self-closing start tag state
1720
- //------------------------------------------------------------------
1721
- _stateSelfClosingStartTag(cp) {
1722
- switch (cp) {
1723
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1724
- const token = this.currentToken;
1725
- token.selfClosing = true;
1726
- this.state = State.DATA;
1727
- this.emitCurrentTagToken();
1728
- break;
1729
- }
1730
- case unicode_js_1.CODE_POINTS.EOF: {
1731
- this._err(error_codes_js_1.ERR.eofInTag);
1732
- this._emitEOFToken();
1733
- break;
1734
- }
1735
- default: {
1736
- this._err(error_codes_js_1.ERR.unexpectedSolidusInTag);
1737
- this.state = State.BEFORE_ATTRIBUTE_NAME;
1738
- this._stateBeforeAttributeName(cp);
1739
- }
1740
- }
1741
- }
1742
- // Bogus comment state
1743
- //------------------------------------------------------------------
1744
- _stateBogusComment(cp) {
1745
- const token = this.currentToken;
1746
- switch (cp) {
1747
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1748
- this.state = State.DATA;
1749
- this.emitCurrentComment(token);
1750
- break;
1751
- }
1752
- case unicode_js_1.CODE_POINTS.EOF: {
1753
- this.emitCurrentComment(token);
1754
- this._emitEOFToken();
1755
- break;
1756
- }
1757
- case unicode_js_1.CODE_POINTS.NULL: {
1758
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1759
- token.data += unicode_js_1.REPLACEMENT_CHARACTER;
1760
- break;
1761
- }
1762
- default: {
1763
- token.data += String.fromCodePoint(cp);
1764
- }
1765
- }
1766
- }
1767
- // Markup declaration open state
1768
- //------------------------------------------------------------------
1769
- _stateMarkupDeclarationOpen(cp) {
1770
- if (this._consumeSequenceIfMatch(unicode_js_1.SEQUENCES.DASH_DASH, true)) {
1771
- this._createCommentToken(unicode_js_1.SEQUENCES.DASH_DASH.length + 1);
1772
- this.state = State.COMMENT_START;
1773
- }
1774
- else if (this._consumeSequenceIfMatch(unicode_js_1.SEQUENCES.DOCTYPE, false)) {
1775
- // NOTE: Doctypes tokens are created without fixed offsets. We keep track of the moment a doctype *might* start here.
1776
- this.currentLocation = this.getCurrentLocation(unicode_js_1.SEQUENCES.DOCTYPE.length + 1);
1777
- this.state = State.DOCTYPE;
1778
- }
1779
- else if (this._consumeSequenceIfMatch(unicode_js_1.SEQUENCES.CDATA_START, true)) {
1780
- if (this.inForeignNode) {
1781
- this.state = State.CDATA_SECTION;
1782
- }
1783
- else {
1784
- this._err(error_codes_js_1.ERR.cdataInHtmlContent);
1785
- this._createCommentToken(unicode_js_1.SEQUENCES.CDATA_START.length + 1);
1786
- this.currentToken.data = '[CDATA[';
1787
- this.state = State.BOGUS_COMMENT;
1788
- }
1789
- }
1790
- //NOTE: Sequence lookups can be abrupted by hibernation. In that case, lookup
1791
- //results are no longer valid and we will need to start over.
1792
- else if (!this._ensureHibernation()) {
1793
- this._err(error_codes_js_1.ERR.incorrectlyOpenedComment);
1794
- this._createCommentToken(2);
1795
- this.state = State.BOGUS_COMMENT;
1796
- this._stateBogusComment(cp);
1797
- }
1798
- }
1799
- // Comment start state
1800
- //------------------------------------------------------------------
1801
- _stateCommentStart(cp) {
1802
- switch (cp) {
1803
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1804
- this.state = State.COMMENT_START_DASH;
1805
- break;
1806
- }
1807
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1808
- this._err(error_codes_js_1.ERR.abruptClosingOfEmptyComment);
1809
- this.state = State.DATA;
1810
- const token = this.currentToken;
1811
- this.emitCurrentComment(token);
1812
- break;
1813
- }
1814
- default: {
1815
- this.state = State.COMMENT;
1816
- this._stateComment(cp);
1817
- }
1818
- }
1819
- }
1820
- // Comment start dash state
1821
- //------------------------------------------------------------------
1822
- _stateCommentStartDash(cp) {
1823
- const token = this.currentToken;
1824
- switch (cp) {
1825
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1826
- this.state = State.COMMENT_END;
1827
- break;
1828
- }
1829
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1830
- this._err(error_codes_js_1.ERR.abruptClosingOfEmptyComment);
1831
- this.state = State.DATA;
1832
- this.emitCurrentComment(token);
1833
- break;
1834
- }
1835
- case unicode_js_1.CODE_POINTS.EOF: {
1836
- this._err(error_codes_js_1.ERR.eofInComment);
1837
- this.emitCurrentComment(token);
1838
- this._emitEOFToken();
1839
- break;
1840
- }
1841
- default: {
1842
- token.data += '-';
1843
- this.state = State.COMMENT;
1844
- this._stateComment(cp);
1845
- }
1846
- }
1847
- }
1848
- // Comment state
1849
- //------------------------------------------------------------------
1850
- _stateComment(cp) {
1851
- const token = this.currentToken;
1852
- switch (cp) {
1853
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1854
- this.state = State.COMMENT_END_DASH;
1855
- break;
1856
- }
1857
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
1858
- token.data += '<';
1859
- this.state = State.COMMENT_LESS_THAN_SIGN;
1860
- break;
1861
- }
1862
- case unicode_js_1.CODE_POINTS.NULL: {
1863
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
1864
- token.data += unicode_js_1.REPLACEMENT_CHARACTER;
1865
- break;
1866
- }
1867
- case unicode_js_1.CODE_POINTS.EOF: {
1868
- this._err(error_codes_js_1.ERR.eofInComment);
1869
- this.emitCurrentComment(token);
1870
- this._emitEOFToken();
1871
- break;
1872
- }
1873
- default: {
1874
- token.data += String.fromCodePoint(cp);
1875
- }
1876
- }
1877
- }
1878
- // Comment less-than sign state
1879
- //------------------------------------------------------------------
1880
- _stateCommentLessThanSign(cp) {
1881
- const token = this.currentToken;
1882
- switch (cp) {
1883
- case unicode_js_1.CODE_POINTS.EXCLAMATION_MARK: {
1884
- token.data += '!';
1885
- this.state = State.COMMENT_LESS_THAN_SIGN_BANG;
1886
- break;
1887
- }
1888
- case unicode_js_1.CODE_POINTS.LESS_THAN_SIGN: {
1889
- token.data += '<';
1890
- break;
1891
- }
1892
- default: {
1893
- this.state = State.COMMENT;
1894
- this._stateComment(cp);
1895
- }
1896
- }
1897
- }
1898
- // Comment less-than sign bang state
1899
- //------------------------------------------------------------------
1900
- _stateCommentLessThanSignBang(cp) {
1901
- if (cp === unicode_js_1.CODE_POINTS.HYPHEN_MINUS) {
1902
- this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH;
1903
- }
1904
- else {
1905
- this.state = State.COMMENT;
1906
- this._stateComment(cp);
1907
- }
1908
- }
1909
- // Comment less-than sign bang dash state
1910
- //------------------------------------------------------------------
1911
- _stateCommentLessThanSignBangDash(cp) {
1912
- if (cp === unicode_js_1.CODE_POINTS.HYPHEN_MINUS) {
1913
- this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;
1914
- }
1915
- else {
1916
- this.state = State.COMMENT_END_DASH;
1917
- this._stateCommentEndDash(cp);
1918
- }
1919
- }
1920
- // Comment less-than sign bang dash dash state
1921
- //------------------------------------------------------------------
1922
- _stateCommentLessThanSignBangDashDash(cp) {
1923
- if (cp !== unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN && cp !== unicode_js_1.CODE_POINTS.EOF) {
1924
- this._err(error_codes_js_1.ERR.nestedComment);
1925
- }
1926
- this.state = State.COMMENT_END;
1927
- this._stateCommentEnd(cp);
1928
- }
1929
- // Comment end dash state
1930
- //------------------------------------------------------------------
1931
- _stateCommentEndDash(cp) {
1932
- const token = this.currentToken;
1933
- switch (cp) {
1934
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1935
- this.state = State.COMMENT_END;
1936
- break;
1937
- }
1938
- case unicode_js_1.CODE_POINTS.EOF: {
1939
- this._err(error_codes_js_1.ERR.eofInComment);
1940
- this.emitCurrentComment(token);
1941
- this._emitEOFToken();
1942
- break;
1943
- }
1944
- default: {
1945
- token.data += '-';
1946
- this.state = State.COMMENT;
1947
- this._stateComment(cp);
1948
- }
1949
- }
1950
- }
1951
- // Comment end state
1952
- //------------------------------------------------------------------
1953
- _stateCommentEnd(cp) {
1954
- const token = this.currentToken;
1955
- switch (cp) {
1956
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1957
- this.state = State.DATA;
1958
- this.emitCurrentComment(token);
1959
- break;
1960
- }
1961
- case unicode_js_1.CODE_POINTS.EXCLAMATION_MARK: {
1962
- this.state = State.COMMENT_END_BANG;
1963
- break;
1964
- }
1965
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1966
- token.data += '-';
1967
- break;
1968
- }
1969
- case unicode_js_1.CODE_POINTS.EOF: {
1970
- this._err(error_codes_js_1.ERR.eofInComment);
1971
- this.emitCurrentComment(token);
1972
- this._emitEOFToken();
1973
- break;
1974
- }
1975
- default: {
1976
- token.data += '--';
1977
- this.state = State.COMMENT;
1978
- this._stateComment(cp);
1979
- }
1980
- }
1981
- }
1982
- // Comment end bang state
1983
- //------------------------------------------------------------------
1984
- _stateCommentEndBang(cp) {
1985
- const token = this.currentToken;
1986
- switch (cp) {
1987
- case unicode_js_1.CODE_POINTS.HYPHEN_MINUS: {
1988
- token.data += '--!';
1989
- this.state = State.COMMENT_END_DASH;
1990
- break;
1991
- }
1992
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
1993
- this._err(error_codes_js_1.ERR.incorrectlyClosedComment);
1994
- this.state = State.DATA;
1995
- this.emitCurrentComment(token);
1996
- break;
1997
- }
1998
- case unicode_js_1.CODE_POINTS.EOF: {
1999
- this._err(error_codes_js_1.ERR.eofInComment);
2000
- this.emitCurrentComment(token);
2001
- this._emitEOFToken();
2002
- break;
2003
- }
2004
- default: {
2005
- token.data += '--!';
2006
- this.state = State.COMMENT;
2007
- this._stateComment(cp);
2008
- }
2009
- }
2010
- }
2011
- // DOCTYPE state
2012
- //------------------------------------------------------------------
2013
- _stateDoctype(cp) {
2014
- switch (cp) {
2015
- case unicode_js_1.CODE_POINTS.SPACE:
2016
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2017
- case unicode_js_1.CODE_POINTS.TABULATION:
2018
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2019
- this.state = State.BEFORE_DOCTYPE_NAME;
2020
- break;
2021
- }
2022
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2023
- this.state = State.BEFORE_DOCTYPE_NAME;
2024
- this._stateBeforeDoctypeName(cp);
2025
- break;
2026
- }
2027
- case unicode_js_1.CODE_POINTS.EOF: {
2028
- this._err(error_codes_js_1.ERR.eofInDoctype);
2029
- this._createDoctypeToken(null);
2030
- const token = this.currentToken;
2031
- token.forceQuirks = true;
2032
- this.emitCurrentDoctype(token);
2033
- this._emitEOFToken();
2034
- break;
2035
- }
2036
- default: {
2037
- this._err(error_codes_js_1.ERR.missingWhitespaceBeforeDoctypeName);
2038
- this.state = State.BEFORE_DOCTYPE_NAME;
2039
- this._stateBeforeDoctypeName(cp);
2040
- }
2041
- }
2042
- }
2043
- // Before DOCTYPE name state
2044
- //------------------------------------------------------------------
2045
- _stateBeforeDoctypeName(cp) {
2046
- if (isAsciiUpper(cp)) {
2047
- this._createDoctypeToken(String.fromCharCode(toAsciiLower(cp)));
2048
- this.state = State.DOCTYPE_NAME;
2049
- }
2050
- else
2051
- switch (cp) {
2052
- case unicode_js_1.CODE_POINTS.SPACE:
2053
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2054
- case unicode_js_1.CODE_POINTS.TABULATION:
2055
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2056
- // Ignore whitespace
2057
- break;
2058
- }
2059
- case unicode_js_1.CODE_POINTS.NULL: {
2060
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
2061
- this._createDoctypeToken(unicode_js_1.REPLACEMENT_CHARACTER);
2062
- this.state = State.DOCTYPE_NAME;
2063
- break;
2064
- }
2065
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2066
- this._err(error_codes_js_1.ERR.missingDoctypeName);
2067
- this._createDoctypeToken(null);
2068
- const token = this.currentToken;
2069
- token.forceQuirks = true;
2070
- this.emitCurrentDoctype(token);
2071
- this.state = State.DATA;
2072
- break;
2073
- }
2074
- case unicode_js_1.CODE_POINTS.EOF: {
2075
- this._err(error_codes_js_1.ERR.eofInDoctype);
2076
- this._createDoctypeToken(null);
2077
- const token = this.currentToken;
2078
- token.forceQuirks = true;
2079
- this.emitCurrentDoctype(token);
2080
- this._emitEOFToken();
2081
- break;
2082
- }
2083
- default: {
2084
- this._createDoctypeToken(String.fromCodePoint(cp));
2085
- this.state = State.DOCTYPE_NAME;
2086
- }
2087
- }
2088
- }
2089
- // DOCTYPE name state
2090
- //------------------------------------------------------------------
2091
- _stateDoctypeName(cp) {
2092
- const token = this.currentToken;
2093
- switch (cp) {
2094
- case unicode_js_1.CODE_POINTS.SPACE:
2095
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2096
- case unicode_js_1.CODE_POINTS.TABULATION:
2097
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2098
- this.state = State.AFTER_DOCTYPE_NAME;
2099
- break;
2100
- }
2101
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2102
- this.state = State.DATA;
2103
- this.emitCurrentDoctype(token);
2104
- break;
2105
- }
2106
- case unicode_js_1.CODE_POINTS.NULL: {
2107
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
2108
- token.name += unicode_js_1.REPLACEMENT_CHARACTER;
2109
- break;
2110
- }
2111
- case unicode_js_1.CODE_POINTS.EOF: {
2112
- this._err(error_codes_js_1.ERR.eofInDoctype);
2113
- token.forceQuirks = true;
2114
- this.emitCurrentDoctype(token);
2115
- this._emitEOFToken();
2116
- break;
2117
- }
2118
- default: {
2119
- token.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
2120
- }
2121
- }
2122
- }
2123
- // After DOCTYPE name state
2124
- //------------------------------------------------------------------
2125
- _stateAfterDoctypeName(cp) {
2126
- const token = this.currentToken;
2127
- switch (cp) {
2128
- case unicode_js_1.CODE_POINTS.SPACE:
2129
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2130
- case unicode_js_1.CODE_POINTS.TABULATION:
2131
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2132
- // Ignore whitespace
2133
- break;
2134
- }
2135
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2136
- this.state = State.DATA;
2137
- this.emitCurrentDoctype(token);
2138
- break;
2139
- }
2140
- case unicode_js_1.CODE_POINTS.EOF: {
2141
- this._err(error_codes_js_1.ERR.eofInDoctype);
2142
- token.forceQuirks = true;
2143
- this.emitCurrentDoctype(token);
2144
- this._emitEOFToken();
2145
- break;
2146
- }
2147
- default: {
2148
- if (this._consumeSequenceIfMatch(unicode_js_1.SEQUENCES.PUBLIC, false)) {
2149
- this.state = State.AFTER_DOCTYPE_PUBLIC_KEYWORD;
2150
- }
2151
- else if (this._consumeSequenceIfMatch(unicode_js_1.SEQUENCES.SYSTEM, false)) {
2152
- this.state = State.AFTER_DOCTYPE_SYSTEM_KEYWORD;
2153
- }
2154
- //NOTE: sequence lookup can be abrupted by hibernation. In that case lookup
2155
- //results are no longer valid and we will need to start over.
2156
- else if (!this._ensureHibernation()) {
2157
- this._err(error_codes_js_1.ERR.invalidCharacterSequenceAfterDoctypeName);
2158
- token.forceQuirks = true;
2159
- this.state = State.BOGUS_DOCTYPE;
2160
- this._stateBogusDoctype(cp);
2161
- }
2162
- }
2163
- }
2164
- }
2165
- // After DOCTYPE public keyword state
2166
- //------------------------------------------------------------------
2167
- _stateAfterDoctypePublicKeyword(cp) {
2168
- const token = this.currentToken;
2169
- switch (cp) {
2170
- case unicode_js_1.CODE_POINTS.SPACE:
2171
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2172
- case unicode_js_1.CODE_POINTS.TABULATION:
2173
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2174
- this.state = State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
2175
- break;
2176
- }
2177
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK: {
2178
- this._err(error_codes_js_1.ERR.missingWhitespaceAfterDoctypePublicKeyword);
2179
- token.publicId = '';
2180
- this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
2181
- break;
2182
- }
2183
- case unicode_js_1.CODE_POINTS.APOSTROPHE: {
2184
- this._err(error_codes_js_1.ERR.missingWhitespaceAfterDoctypePublicKeyword);
2185
- token.publicId = '';
2186
- this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
2187
- break;
2188
- }
2189
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2190
- this._err(error_codes_js_1.ERR.missingDoctypePublicIdentifier);
2191
- token.forceQuirks = true;
2192
- this.state = State.DATA;
2193
- this.emitCurrentDoctype(token);
2194
- break;
2195
- }
2196
- case unicode_js_1.CODE_POINTS.EOF: {
2197
- this._err(error_codes_js_1.ERR.eofInDoctype);
2198
- token.forceQuirks = true;
2199
- this.emitCurrentDoctype(token);
2200
- this._emitEOFToken();
2201
- break;
2202
- }
2203
- default: {
2204
- this._err(error_codes_js_1.ERR.missingQuoteBeforeDoctypePublicIdentifier);
2205
- token.forceQuirks = true;
2206
- this.state = State.BOGUS_DOCTYPE;
2207
- this._stateBogusDoctype(cp);
2208
- }
2209
- }
2210
- }
2211
- // Before DOCTYPE public identifier state
2212
- //------------------------------------------------------------------
2213
- _stateBeforeDoctypePublicIdentifier(cp) {
2214
- const token = this.currentToken;
2215
- switch (cp) {
2216
- case unicode_js_1.CODE_POINTS.SPACE:
2217
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2218
- case unicode_js_1.CODE_POINTS.TABULATION:
2219
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2220
- // Ignore whitespace
2221
- break;
2222
- }
2223
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK: {
2224
- token.publicId = '';
2225
- this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
2226
- break;
2227
- }
2228
- case unicode_js_1.CODE_POINTS.APOSTROPHE: {
2229
- token.publicId = '';
2230
- this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
2231
- break;
2232
- }
2233
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2234
- this._err(error_codes_js_1.ERR.missingDoctypePublicIdentifier);
2235
- token.forceQuirks = true;
2236
- this.state = State.DATA;
2237
- this.emitCurrentDoctype(token);
2238
- break;
2239
- }
2240
- case unicode_js_1.CODE_POINTS.EOF: {
2241
- this._err(error_codes_js_1.ERR.eofInDoctype);
2242
- token.forceQuirks = true;
2243
- this.emitCurrentDoctype(token);
2244
- this._emitEOFToken();
2245
- break;
2246
- }
2247
- default: {
2248
- this._err(error_codes_js_1.ERR.missingQuoteBeforeDoctypePublicIdentifier);
2249
- token.forceQuirks = true;
2250
- this.state = State.BOGUS_DOCTYPE;
2251
- this._stateBogusDoctype(cp);
2252
- }
2253
- }
2254
- }
2255
- // DOCTYPE public identifier (double-quoted) state
2256
- //------------------------------------------------------------------
2257
- _stateDoctypePublicIdentifierDoubleQuoted(cp) {
2258
- const token = this.currentToken;
2259
- switch (cp) {
2260
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK: {
2261
- this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
2262
- break;
2263
- }
2264
- case unicode_js_1.CODE_POINTS.NULL: {
2265
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
2266
- token.publicId += unicode_js_1.REPLACEMENT_CHARACTER;
2267
- break;
2268
- }
2269
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2270
- this._err(error_codes_js_1.ERR.abruptDoctypePublicIdentifier);
2271
- token.forceQuirks = true;
2272
- this.emitCurrentDoctype(token);
2273
- this.state = State.DATA;
2274
- break;
2275
- }
2276
- case unicode_js_1.CODE_POINTS.EOF: {
2277
- this._err(error_codes_js_1.ERR.eofInDoctype);
2278
- token.forceQuirks = true;
2279
- this.emitCurrentDoctype(token);
2280
- this._emitEOFToken();
2281
- break;
2282
- }
2283
- default: {
2284
- token.publicId += String.fromCodePoint(cp);
2285
- }
2286
- }
2287
- }
2288
- // DOCTYPE public identifier (single-quoted) state
2289
- //------------------------------------------------------------------
2290
- _stateDoctypePublicIdentifierSingleQuoted(cp) {
2291
- const token = this.currentToken;
2292
- switch (cp) {
2293
- case unicode_js_1.CODE_POINTS.APOSTROPHE: {
2294
- this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
2295
- break;
2296
- }
2297
- case unicode_js_1.CODE_POINTS.NULL: {
2298
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
2299
- token.publicId += unicode_js_1.REPLACEMENT_CHARACTER;
2300
- break;
2301
- }
2302
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2303
- this._err(error_codes_js_1.ERR.abruptDoctypePublicIdentifier);
2304
- token.forceQuirks = true;
2305
- this.emitCurrentDoctype(token);
2306
- this.state = State.DATA;
2307
- break;
2308
- }
2309
- case unicode_js_1.CODE_POINTS.EOF: {
2310
- this._err(error_codes_js_1.ERR.eofInDoctype);
2311
- token.forceQuirks = true;
2312
- this.emitCurrentDoctype(token);
2313
- this._emitEOFToken();
2314
- break;
2315
- }
2316
- default: {
2317
- token.publicId += String.fromCodePoint(cp);
2318
- }
2319
- }
2320
- }
2321
- // After DOCTYPE public identifier state
2322
- //------------------------------------------------------------------
2323
- _stateAfterDoctypePublicIdentifier(cp) {
2324
- const token = this.currentToken;
2325
- switch (cp) {
2326
- case unicode_js_1.CODE_POINTS.SPACE:
2327
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2328
- case unicode_js_1.CODE_POINTS.TABULATION:
2329
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2330
- this.state = State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
2331
- break;
2332
- }
2333
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2334
- this.state = State.DATA;
2335
- this.emitCurrentDoctype(token);
2336
- break;
2337
- }
2338
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK: {
2339
- this._err(error_codes_js_1.ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);
2340
- token.systemId = '';
2341
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
2342
- break;
2343
- }
2344
- case unicode_js_1.CODE_POINTS.APOSTROPHE: {
2345
- this._err(error_codes_js_1.ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);
2346
- token.systemId = '';
2347
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
2348
- break;
2349
- }
2350
- case unicode_js_1.CODE_POINTS.EOF: {
2351
- this._err(error_codes_js_1.ERR.eofInDoctype);
2352
- token.forceQuirks = true;
2353
- this.emitCurrentDoctype(token);
2354
- this._emitEOFToken();
2355
- break;
2356
- }
2357
- default: {
2358
- this._err(error_codes_js_1.ERR.missingQuoteBeforeDoctypeSystemIdentifier);
2359
- token.forceQuirks = true;
2360
- this.state = State.BOGUS_DOCTYPE;
2361
- this._stateBogusDoctype(cp);
2362
- }
2363
- }
2364
- }
2365
- // Between DOCTYPE public and system identifiers state
2366
- //------------------------------------------------------------------
2367
- _stateBetweenDoctypePublicAndSystemIdentifiers(cp) {
2368
- const token = this.currentToken;
2369
- switch (cp) {
2370
- case unicode_js_1.CODE_POINTS.SPACE:
2371
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2372
- case unicode_js_1.CODE_POINTS.TABULATION:
2373
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2374
- // Ignore whitespace
2375
- break;
2376
- }
2377
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2378
- this.emitCurrentDoctype(token);
2379
- this.state = State.DATA;
2380
- break;
2381
- }
2382
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK: {
2383
- token.systemId = '';
2384
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
2385
- break;
2386
- }
2387
- case unicode_js_1.CODE_POINTS.APOSTROPHE: {
2388
- token.systemId = '';
2389
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
2390
- break;
2391
- }
2392
- case unicode_js_1.CODE_POINTS.EOF: {
2393
- this._err(error_codes_js_1.ERR.eofInDoctype);
2394
- token.forceQuirks = true;
2395
- this.emitCurrentDoctype(token);
2396
- this._emitEOFToken();
2397
- break;
2398
- }
2399
- default: {
2400
- this._err(error_codes_js_1.ERR.missingQuoteBeforeDoctypeSystemIdentifier);
2401
- token.forceQuirks = true;
2402
- this.state = State.BOGUS_DOCTYPE;
2403
- this._stateBogusDoctype(cp);
2404
- }
2405
- }
2406
- }
2407
- // After DOCTYPE system keyword state
2408
- //------------------------------------------------------------------
2409
- _stateAfterDoctypeSystemKeyword(cp) {
2410
- const token = this.currentToken;
2411
- switch (cp) {
2412
- case unicode_js_1.CODE_POINTS.SPACE:
2413
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2414
- case unicode_js_1.CODE_POINTS.TABULATION:
2415
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2416
- this.state = State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
2417
- break;
2418
- }
2419
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK: {
2420
- this._err(error_codes_js_1.ERR.missingWhitespaceAfterDoctypeSystemKeyword);
2421
- token.systemId = '';
2422
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
2423
- break;
2424
- }
2425
- case unicode_js_1.CODE_POINTS.APOSTROPHE: {
2426
- this._err(error_codes_js_1.ERR.missingWhitespaceAfterDoctypeSystemKeyword);
2427
- token.systemId = '';
2428
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
2429
- break;
2430
- }
2431
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2432
- this._err(error_codes_js_1.ERR.missingDoctypeSystemIdentifier);
2433
- token.forceQuirks = true;
2434
- this.state = State.DATA;
2435
- this.emitCurrentDoctype(token);
2436
- break;
2437
- }
2438
- case unicode_js_1.CODE_POINTS.EOF: {
2439
- this._err(error_codes_js_1.ERR.eofInDoctype);
2440
- token.forceQuirks = true;
2441
- this.emitCurrentDoctype(token);
2442
- this._emitEOFToken();
2443
- break;
2444
- }
2445
- default: {
2446
- this._err(error_codes_js_1.ERR.missingQuoteBeforeDoctypeSystemIdentifier);
2447
- token.forceQuirks = true;
2448
- this.state = State.BOGUS_DOCTYPE;
2449
- this._stateBogusDoctype(cp);
2450
- }
2451
- }
2452
- }
2453
- // Before DOCTYPE system identifier state
2454
- //------------------------------------------------------------------
2455
- _stateBeforeDoctypeSystemIdentifier(cp) {
2456
- const token = this.currentToken;
2457
- switch (cp) {
2458
- case unicode_js_1.CODE_POINTS.SPACE:
2459
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2460
- case unicode_js_1.CODE_POINTS.TABULATION:
2461
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2462
- // Ignore whitespace
2463
- break;
2464
- }
2465
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK: {
2466
- token.systemId = '';
2467
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
2468
- break;
2469
- }
2470
- case unicode_js_1.CODE_POINTS.APOSTROPHE: {
2471
- token.systemId = '';
2472
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
2473
- break;
2474
- }
2475
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2476
- this._err(error_codes_js_1.ERR.missingDoctypeSystemIdentifier);
2477
- token.forceQuirks = true;
2478
- this.state = State.DATA;
2479
- this.emitCurrentDoctype(token);
2480
- break;
2481
- }
2482
- case unicode_js_1.CODE_POINTS.EOF: {
2483
- this._err(error_codes_js_1.ERR.eofInDoctype);
2484
- token.forceQuirks = true;
2485
- this.emitCurrentDoctype(token);
2486
- this._emitEOFToken();
2487
- break;
2488
- }
2489
- default: {
2490
- this._err(error_codes_js_1.ERR.missingQuoteBeforeDoctypeSystemIdentifier);
2491
- token.forceQuirks = true;
2492
- this.state = State.BOGUS_DOCTYPE;
2493
- this._stateBogusDoctype(cp);
2494
- }
2495
- }
2496
- }
2497
- // DOCTYPE system identifier (double-quoted) state
2498
- //------------------------------------------------------------------
2499
- _stateDoctypeSystemIdentifierDoubleQuoted(cp) {
2500
- const token = this.currentToken;
2501
- switch (cp) {
2502
- case unicode_js_1.CODE_POINTS.QUOTATION_MARK: {
2503
- this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
2504
- break;
2505
- }
2506
- case unicode_js_1.CODE_POINTS.NULL: {
2507
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
2508
- token.systemId += unicode_js_1.REPLACEMENT_CHARACTER;
2509
- break;
2510
- }
2511
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2512
- this._err(error_codes_js_1.ERR.abruptDoctypeSystemIdentifier);
2513
- token.forceQuirks = true;
2514
- this.emitCurrentDoctype(token);
2515
- this.state = State.DATA;
2516
- break;
2517
- }
2518
- case unicode_js_1.CODE_POINTS.EOF: {
2519
- this._err(error_codes_js_1.ERR.eofInDoctype);
2520
- token.forceQuirks = true;
2521
- this.emitCurrentDoctype(token);
2522
- this._emitEOFToken();
2523
- break;
2524
- }
2525
- default: {
2526
- token.systemId += String.fromCodePoint(cp);
2527
- }
2528
- }
2529
- }
2530
- // DOCTYPE system identifier (single-quoted) state
2531
- //------------------------------------------------------------------
2532
- _stateDoctypeSystemIdentifierSingleQuoted(cp) {
2533
- const token = this.currentToken;
2534
- switch (cp) {
2535
- case unicode_js_1.CODE_POINTS.APOSTROPHE: {
2536
- this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
2537
- break;
2538
- }
2539
- case unicode_js_1.CODE_POINTS.NULL: {
2540
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
2541
- token.systemId += unicode_js_1.REPLACEMENT_CHARACTER;
2542
- break;
2543
- }
2544
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2545
- this._err(error_codes_js_1.ERR.abruptDoctypeSystemIdentifier);
2546
- token.forceQuirks = true;
2547
- this.emitCurrentDoctype(token);
2548
- this.state = State.DATA;
2549
- break;
2550
- }
2551
- case unicode_js_1.CODE_POINTS.EOF: {
2552
- this._err(error_codes_js_1.ERR.eofInDoctype);
2553
- token.forceQuirks = true;
2554
- this.emitCurrentDoctype(token);
2555
- this._emitEOFToken();
2556
- break;
2557
- }
2558
- default: {
2559
- token.systemId += String.fromCodePoint(cp);
2560
- }
2561
- }
2562
- }
2563
- // After DOCTYPE system identifier state
2564
- //------------------------------------------------------------------
2565
- _stateAfterDoctypeSystemIdentifier(cp) {
2566
- const token = this.currentToken;
2567
- switch (cp) {
2568
- case unicode_js_1.CODE_POINTS.SPACE:
2569
- case unicode_js_1.CODE_POINTS.LINE_FEED:
2570
- case unicode_js_1.CODE_POINTS.TABULATION:
2571
- case unicode_js_1.CODE_POINTS.FORM_FEED: {
2572
- // Ignore whitespace
2573
- break;
2574
- }
2575
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2576
- this.emitCurrentDoctype(token);
2577
- this.state = State.DATA;
2578
- break;
2579
- }
2580
- case unicode_js_1.CODE_POINTS.EOF: {
2581
- this._err(error_codes_js_1.ERR.eofInDoctype);
2582
- token.forceQuirks = true;
2583
- this.emitCurrentDoctype(token);
2584
- this._emitEOFToken();
2585
- break;
2586
- }
2587
- default: {
2588
- this._err(error_codes_js_1.ERR.unexpectedCharacterAfterDoctypeSystemIdentifier);
2589
- this.state = State.BOGUS_DOCTYPE;
2590
- this._stateBogusDoctype(cp);
2591
- }
2592
- }
2593
- }
2594
- // Bogus DOCTYPE state
2595
- //------------------------------------------------------------------
2596
- _stateBogusDoctype(cp) {
2597
- const token = this.currentToken;
2598
- switch (cp) {
2599
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2600
- this.emitCurrentDoctype(token);
2601
- this.state = State.DATA;
2602
- break;
2603
- }
2604
- case unicode_js_1.CODE_POINTS.NULL: {
2605
- this._err(error_codes_js_1.ERR.unexpectedNullCharacter);
2606
- break;
2607
- }
2608
- case unicode_js_1.CODE_POINTS.EOF: {
2609
- this.emitCurrentDoctype(token);
2610
- this._emitEOFToken();
2611
- break;
2612
- }
2613
- default:
2614
- // Do nothing
2615
- }
2616
- }
2617
- // CDATA section state
2618
- //------------------------------------------------------------------
2619
- _stateCdataSection(cp) {
2620
- switch (cp) {
2621
- case unicode_js_1.CODE_POINTS.RIGHT_SQUARE_BRACKET: {
2622
- this.state = State.CDATA_SECTION_BRACKET;
2623
- break;
2624
- }
2625
- case unicode_js_1.CODE_POINTS.EOF: {
2626
- this._err(error_codes_js_1.ERR.eofInCdata);
2627
- this._emitEOFToken();
2628
- break;
2629
- }
2630
- default: {
2631
- this._emitCodePoint(cp);
2632
- }
2633
- }
2634
- }
2635
- // CDATA section bracket state
2636
- //------------------------------------------------------------------
2637
- _stateCdataSectionBracket(cp) {
2638
- if (cp === unicode_js_1.CODE_POINTS.RIGHT_SQUARE_BRACKET) {
2639
- this.state = State.CDATA_SECTION_END;
2640
- }
2641
- else {
2642
- this._emitChars(']');
2643
- this.state = State.CDATA_SECTION;
2644
- this._stateCdataSection(cp);
2645
- }
2646
- }
2647
- // CDATA section end state
2648
- //------------------------------------------------------------------
2649
- _stateCdataSectionEnd(cp) {
2650
- switch (cp) {
2651
- case unicode_js_1.CODE_POINTS.GREATER_THAN_SIGN: {
2652
- this.state = State.DATA;
2653
- break;
2654
- }
2655
- case unicode_js_1.CODE_POINTS.RIGHT_SQUARE_BRACKET: {
2656
- this._emitChars(']');
2657
- break;
2658
- }
2659
- default: {
2660
- this._emitChars(']]');
2661
- this.state = State.CDATA_SECTION;
2662
- this._stateCdataSection(cp);
2663
- }
2664
- }
2665
- }
2666
- // Character reference state
2667
- //------------------------------------------------------------------
2668
- _stateCharacterReference() {
2669
- let length = this.entityDecoder.write(this.preprocessor.html, this.preprocessor.pos);
2670
- if (length < 0) {
2671
- if (this.preprocessor.lastChunkWritten) {
2672
- length = this.entityDecoder.end();
2673
- }
2674
- else {
2675
- // Wait for the rest of the entity.
2676
- this.active = false;
2677
- // Mark the entire buffer as read.
2678
- this.preprocessor.pos = this.preprocessor.html.length - 1;
2679
- this.consumedAfterSnapshot = 0;
2680
- this.preprocessor.endOfChunkHit = true;
2681
- return;
2682
- }
2683
- }
2684
- if (length === 0) {
2685
- // This was not a valid entity. Go back to the beginning, and
2686
- // figure out what to do.
2687
- this.preprocessor.pos = this.entityStartPos;
2688
- this._flushCodePointConsumedAsCharacterReference(unicode_js_1.CODE_POINTS.AMPERSAND);
2689
- this.state =
2690
- !this._isCharacterReferenceInAttribute() && isAsciiAlphaNumeric(this.preprocessor.peek(1))
2691
- ? State.AMBIGUOUS_AMPERSAND
2692
- : this.returnState;
2693
- }
2694
- else {
2695
- // We successfully parsed an entity. Switch to the return state.
2696
- this.state = this.returnState;
2697
- }
2698
- }
2699
- // Ambiguos ampersand state
2700
- //------------------------------------------------------------------
2701
- _stateAmbiguousAmpersand(cp) {
2702
- if (isAsciiAlphaNumeric(cp)) {
2703
- this._flushCodePointConsumedAsCharacterReference(cp);
2704
- }
2705
- else {
2706
- if (cp === unicode_js_1.CODE_POINTS.SEMICOLON) {
2707
- this._err(error_codes_js_1.ERR.unknownNamedCharacterReference);
2708
- }
2709
- this.state = this.returnState;
2710
- this._callState(cp);
2711
- }
2712
- }
2713
- }
2714
- exports.Tokenizer = Tokenizer;