@prismicio/client 7.7.5-alpha.0 → 7.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (807) hide show
  1. package/dist/index.cjs +0 -8
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +0 -5
  4. package/dist/index.js +1 -9
  5. package/dist/index.js.map +1 -1
  6. package/dist/package.json.cjs +1 -1
  7. package/dist/package.json.js +1 -1
  8. package/package.json +2 -16
  9. package/src/index.ts +0 -8
  10. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs +0 -63
  11. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +0 -1
  12. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js +0 -63
  13. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js.map +0 -1
  14. package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs +0 -12
  15. package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs.map +0 -1
  16. package/dist/_node_modules/@ungap/structured-clone/esm/index.js +0 -12
  17. package/dist/_node_modules/@ungap/structured-clone/esm/index.js.map +0 -1
  18. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs +0 -127
  19. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs.map +0 -1
  20. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js +0 -127
  21. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js.map +0 -1
  22. package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs +0 -23
  23. package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs.map +0 -1
  24. package/dist/_node_modules/@ungap/structured-clone/esm/types.js +0 -23
  25. package/dist/_node_modules/@ungap/structured-clone/esm/types.js.map +0 -1
  26. package/dist/_node_modules/bail/index.cjs +0 -9
  27. package/dist/_node_modules/bail/index.cjs.map +0 -1
  28. package/dist/_node_modules/bail/index.js +0 -9
  29. package/dist/_node_modules/bail/index.js.map +0 -1
  30. package/dist/_node_modules/bcp-47-match/index.cjs +0 -74
  31. package/dist/_node_modules/bcp-47-match/index.cjs.map +0 -1
  32. package/dist/_node_modules/bcp-47-match/index.js +0 -74
  33. package/dist/_node_modules/bcp-47-match/index.js.map +0 -1
  34. package/dist/_node_modules/boolbase/index.cjs +0 -13
  35. package/dist/_node_modules/boolbase/index.cjs.map +0 -1
  36. package/dist/_node_modules/boolbase/index.js +0 -14
  37. package/dist/_node_modules/boolbase/index.js.map +0 -1
  38. package/dist/_node_modules/ccount/index.cjs +0 -17
  39. package/dist/_node_modules/ccount/index.cjs.map +0 -1
  40. package/dist/_node_modules/ccount/index.js +0 -17
  41. package/dist/_node_modules/ccount/index.js.map +0 -1
  42. package/dist/_node_modules/character-entities/index.cjs +0 -2131
  43. package/dist/_node_modules/character-entities/index.cjs.map +0 -1
  44. package/dist/_node_modules/character-entities/index.js +0 -2131
  45. package/dist/_node_modules/character-entities/index.js.map +0 -1
  46. package/dist/_node_modules/character-entities-html4/index.cjs +0 -258
  47. package/dist/_node_modules/character-entities-html4/index.cjs.map +0 -1
  48. package/dist/_node_modules/character-entities-html4/index.js +0 -258
  49. package/dist/_node_modules/character-entities-html4/index.js.map +0 -1
  50. package/dist/_node_modules/character-entities-legacy/index.cjs +0 -112
  51. package/dist/_node_modules/character-entities-legacy/index.cjs.map +0 -1
  52. package/dist/_node_modules/character-entities-legacy/index.js +0 -112
  53. package/dist/_node_modules/character-entities-legacy/index.js.map +0 -1
  54. package/dist/_node_modules/comma-separated-tokens/index.cjs +0 -32
  55. package/dist/_node_modules/comma-separated-tokens/index.cjs.map +0 -1
  56. package/dist/_node_modules/comma-separated-tokens/index.js +0 -32
  57. package/dist/_node_modules/comma-separated-tokens/index.js.map +0 -1
  58. package/dist/_node_modules/devlop/lib/default.cjs +0 -6
  59. package/dist/_node_modules/devlop/lib/default.cjs.map +0 -1
  60. package/dist/_node_modules/devlop/lib/default.js +0 -6
  61. package/dist/_node_modules/devlop/lib/default.js.map +0 -1
  62. package/dist/_node_modules/direction/index.cjs +0 -12
  63. package/dist/_node_modules/direction/index.cjs.map +0 -1
  64. package/dist/_node_modules/direction/index.js +0 -12
  65. package/dist/_node_modules/direction/index.js.map +0 -1
  66. package/dist/_node_modules/extend/index.cjs +0 -89
  67. package/dist/_node_modules/extend/index.cjs.map +0 -1
  68. package/dist/_node_modules/extend/index.js +0 -90
  69. package/dist/_node_modules/extend/index.js.map +0 -1
  70. package/dist/_node_modules/hast-util-embedded/lib/index.cjs +0 -14
  71. package/dist/_node_modules/hast-util-embedded/lib/index.cjs.map +0 -1
  72. package/dist/_node_modules/hast-util-embedded/lib/index.js +0 -14
  73. package/dist/_node_modules/hast-util-embedded/lib/index.js.map +0 -1
  74. package/dist/_node_modules/hast-util-from-html/lib/errors.cjs +0 -317
  75. package/dist/_node_modules/hast-util-from-html/lib/errors.cjs.map +0 -1
  76. package/dist/_node_modules/hast-util-from-html/lib/errors.js +0 -317
  77. package/dist/_node_modules/hast-util-from-html/lib/errors.js.map +0 -1
  78. package/dist/_node_modules/hast-util-from-html/lib/index.cjs +0 -96
  79. package/dist/_node_modules/hast-util-from-html/lib/index.cjs.map +0 -1
  80. package/dist/_node_modules/hast-util-from-html/lib/index.js +0 -96
  81. package/dist/_node_modules/hast-util-from-html/lib/index.js.map +0 -1
  82. package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs +0 -187
  83. package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs.map +0 -1
  84. package/dist/_node_modules/hast-util-from-parse5/lib/index.js +0 -187
  85. package/dist/_node_modules/hast-util-from-parse5/lib/index.js.map +0 -1
  86. package/dist/_node_modules/hast-util-has-property/lib/index.cjs +0 -9
  87. package/dist/_node_modules/hast-util-has-property/lib/index.cjs.map +0 -1
  88. package/dist/_node_modules/hast-util-has-property/lib/index.js +0 -9
  89. package/dist/_node_modules/hast-util-has-property/lib/index.js.map +0 -1
  90. package/dist/_node_modules/hast-util-is-element/lib/index.cjs +0 -102
  91. package/dist/_node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
  92. package/dist/_node_modules/hast-util-is-element/lib/index.js +0 -102
  93. package/dist/_node_modules/hast-util-is-element/lib/index.js.map +0 -1
  94. package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs +0 -40
  95. package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs.map +0 -1
  96. package/dist/_node_modules/hast-util-parse-selector/lib/index.js +0 -40
  97. package/dist/_node_modules/hast-util-parse-selector/lib/index.js.map +0 -1
  98. package/dist/_node_modules/hast-util-select/lib/attribute.cjs +0 -67
  99. package/dist/_node_modules/hast-util-select/lib/attribute.cjs.map +0 -1
  100. package/dist/_node_modules/hast-util-select/lib/attribute.js +0 -67
  101. package/dist/_node_modules/hast-util-select/lib/attribute.js.map +0 -1
  102. package/dist/_node_modules/hast-util-select/lib/class-name.cjs +0 -12
  103. package/dist/_node_modules/hast-util-select/lib/class-name.cjs.map +0 -1
  104. package/dist/_node_modules/hast-util-select/lib/class-name.js +0 -12
  105. package/dist/_node_modules/hast-util-select/lib/class-name.js.map +0 -1
  106. package/dist/_node_modules/hast-util-select/lib/enter-state.cjs +0 -79
  107. package/dist/_node_modules/hast-util-select/lib/enter-state.cjs.map +0 -1
  108. package/dist/_node_modules/hast-util-select/lib/enter-state.js +0 -79
  109. package/dist/_node_modules/hast-util-select/lib/enter-state.js.map +0 -1
  110. package/dist/_node_modules/hast-util-select/lib/id.cjs +0 -7
  111. package/dist/_node_modules/hast-util-select/lib/id.cjs.map +0 -1
  112. package/dist/_node_modules/hast-util-select/lib/id.js +0 -7
  113. package/dist/_node_modules/hast-util-select/lib/id.js.map +0 -1
  114. package/dist/_node_modules/hast-util-select/lib/index.cjs +0 -38
  115. package/dist/_node_modules/hast-util-select/lib/index.cjs.map +0 -1
  116. package/dist/_node_modules/hast-util-select/lib/index.js +0 -38
  117. package/dist/_node_modules/hast-util-select/lib/index.js.map +0 -1
  118. package/dist/_node_modules/hast-util-select/lib/name.cjs +0 -7
  119. package/dist/_node_modules/hast-util-select/lib/name.cjs.map +0 -1
  120. package/dist/_node_modules/hast-util-select/lib/name.js +0 -7
  121. package/dist/_node_modules/hast-util-select/lib/name.js.map +0 -1
  122. package/dist/_node_modules/hast-util-select/lib/parse.cjs +0 -12
  123. package/dist/_node_modules/hast-util-select/lib/parse.cjs.map +0 -1
  124. package/dist/_node_modules/hast-util-select/lib/parse.js +0 -12
  125. package/dist/_node_modules/hast-util-select/lib/parse.js.map +0 -1
  126. package/dist/_node_modules/hast-util-select/lib/pseudo.cjs +0 -231
  127. package/dist/_node_modules/hast-util-select/lib/pseudo.cjs.map +0 -1
  128. package/dist/_node_modules/hast-util-select/lib/pseudo.js +0 -231
  129. package/dist/_node_modules/hast-util-select/lib/pseudo.js.map +0 -1
  130. package/dist/_node_modules/hast-util-select/lib/test.cjs +0 -27
  131. package/dist/_node_modules/hast-util-select/lib/test.cjs.map +0 -1
  132. package/dist/_node_modules/hast-util-select/lib/test.js +0 -27
  133. package/dist/_node_modules/hast-util-select/lib/test.js.map +0 -1
  134. package/dist/_node_modules/hast-util-select/lib/walk.cjs +0 -132
  135. package/dist/_node_modules/hast-util-select/lib/walk.cjs.map +0 -1
  136. package/dist/_node_modules/hast-util-select/lib/walk.js +0 -132
  137. package/dist/_node_modules/hast-util-select/lib/walk.js.map +0 -1
  138. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs +0 -24
  139. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs.map +0 -1
  140. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js +0 -24
  141. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js.map +0 -1
  142. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs +0 -7
  143. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs.map +0 -1
  144. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js +0 -7
  145. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js.map +0 -1
  146. package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs +0 -137
  147. package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs.map +0 -1
  148. package/dist/_node_modules/hast-util-to-html/lib/handle/element.js +0 -137
  149. package/dist/_node_modules/hast-util-to-html/lib/handle/element.js.map +0 -1
  150. package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs +0 -26
  151. package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs.map +0 -1
  152. package/dist/_node_modules/hast-util-to-html/lib/handle/index.js +0 -26
  153. package/dist/_node_modules/hast-util-to-html/lib/handle/index.js.map +0 -1
  154. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs +0 -8
  155. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs.map +0 -1
  156. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js +0 -8
  157. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js.map +0 -1
  158. package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs +0 -7
  159. package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs.map +0 -1
  160. package/dist/_node_modules/hast-util-to-html/lib/handle/root.js +0 -7
  161. package/dist/_node_modules/hast-util-to-html/lib/handle/root.js.map +0 -1
  162. package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs +0 -14
  163. package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs.map +0 -1
  164. package/dist/_node_modules/hast-util-to-html/lib/handle/text.js +0 -14
  165. package/dist/_node_modules/hast-util-to-html/lib/handle/text.js.map +0 -1
  166. package/dist/_node_modules/hast-util-to-html/lib/index.cjs +0 -62
  167. package/dist/_node_modules/hast-util-to-html/lib/index.cjs.map +0 -1
  168. package/dist/_node_modules/hast-util-to-html/lib/index.js +0 -62
  169. package/dist/_node_modules/hast-util-to-html/lib/index.js.map +0 -1
  170. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs +0 -92
  171. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs.map +0 -1
  172. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js +0 -92
  173. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js.map +0 -1
  174. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs +0 -11
  175. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs.map +0 -1
  176. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js +0 -11
  177. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js.map +0 -1
  178. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs +0 -52
  179. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs.map +0 -1
  180. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js +0 -52
  181. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js.map +0 -1
  182. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs +0 -24
  183. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs.map +0 -1
  184. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js +0 -24
  185. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js.map +0 -1
  186. package/dist/_node_modules/hast-util-to-string/lib/index.cjs +0 -24
  187. package/dist/_node_modules/hast-util-to-string/lib/index.cjs.map +0 -1
  188. package/dist/_node_modules/hast-util-to-string/lib/index.js +0 -24
  189. package/dist/_node_modules/hast-util-to-string/lib/index.js.map +0 -1
  190. package/dist/_node_modules/hast-util-whitespace/lib/index.cjs +0 -11
  191. package/dist/_node_modules/hast-util-whitespace/lib/index.cjs.map +0 -1
  192. package/dist/_node_modules/hast-util-whitespace/lib/index.js +0 -11
  193. package/dist/_node_modules/hast-util-whitespace/lib/index.js.map +0 -1
  194. package/dist/_node_modules/hastscript/lib/create-h.cjs +0 -159
  195. package/dist/_node_modules/hastscript/lib/create-h.cjs.map +0 -1
  196. package/dist/_node_modules/hastscript/lib/create-h.js +0 -159
  197. package/dist/_node_modules/hastscript/lib/create-h.js.map +0 -1
  198. package/dist/_node_modules/hastscript/lib/index.cjs +0 -10
  199. package/dist/_node_modules/hastscript/lib/index.cjs.map +0 -1
  200. package/dist/_node_modules/hastscript/lib/index.js +0 -10
  201. package/dist/_node_modules/hastscript/lib/index.js.map +0 -1
  202. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +0 -45
  203. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.map +0 -1
  204. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -45
  205. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js.map +0 -1
  206. package/dist/_node_modules/html-void-elements/index.cjs +0 -26
  207. package/dist/_node_modules/html-void-elements/index.cjs.map +0 -1
  208. package/dist/_node_modules/html-void-elements/index.js +0 -26
  209. package/dist/_node_modules/html-void-elements/index.js.map +0 -1
  210. package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs +0 -720
  211. package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs.map +0 -1
  212. package/dist/_node_modules/mdast-util-from-markdown/lib/index.js +0 -720
  213. package/dist/_node_modules/mdast-util-from-markdown/lib/index.js.map +0 -1
  214. package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs +0 -116
  215. package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs.map +0 -1
  216. package/dist/_node_modules/mdast-util-to-hast/lib/footer.js +0 -116
  217. package/dist/_node_modules/mdast-util-to-hast/lib/footer.js.map +0 -1
  218. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs +0 -14
  219. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +0 -1
  220. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -14
  221. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +0 -1
  222. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs +0 -9
  223. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +0 -1
  224. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -9
  225. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js.map +0 -1
  226. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs +0 -25
  227. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +0 -1
  228. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -25
  229. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js.map +0 -1
  230. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs +0 -14
  231. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +0 -1
  232. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -14
  233. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +0 -1
  234. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs +0 -14
  235. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +0 -1
  236. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -14
  237. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +0 -1
  238. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs +0 -42
  239. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +0 -1
  240. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -42
  241. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +0 -1
  242. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs +0 -14
  243. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +0 -1
  244. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -14
  245. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +0 -1
  246. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs +0 -12
  247. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +0 -1
  248. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -12
  249. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js.map +0 -1
  250. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs +0 -20
  251. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +0 -1
  252. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -20
  253. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +0 -1
  254. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs +0 -17
  255. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +0 -1
  256. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -17
  257. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js.map +0 -1
  258. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs +0 -60
  259. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +0 -1
  260. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -60
  261. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js.map +0 -1
  262. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs +0 -16
  263. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +0 -1
  264. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -16
  265. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +0 -1
  266. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs +0 -25
  267. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +0 -1
  268. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -25
  269. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +0 -1
  270. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs +0 -19
  271. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +0 -1
  272. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -19
  273. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js.map +0 -1
  274. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs +0 -65
  275. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +0 -1
  276. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -65
  277. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +0 -1
  278. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs +0 -27
  279. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +0 -1
  280. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -27
  281. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js.map +0 -1
  282. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs +0 -14
  283. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +0 -1
  284. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -14
  285. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +0 -1
  286. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs +0 -9
  287. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +0 -1
  288. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -9
  289. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js.map +0 -1
  290. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs +0 -14
  291. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +0 -1
  292. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -14
  293. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +0 -1
  294. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs +0 -15
  295. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +0 -1
  296. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -15
  297. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +0 -1
  298. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs +0 -36
  299. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +0 -1
  300. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -36
  301. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +0 -1
  302. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs +0 -40
  303. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +0 -1
  304. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -40
  305. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js.map +0 -1
  306. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs +0 -10
  307. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +0 -1
  308. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -10
  309. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js.map +0 -1
  310. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs +0 -14
  311. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +0 -1
  312. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -14
  313. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +0 -1
  314. package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs +0 -16
  315. package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs.map +0 -1
  316. package/dist/_node_modules/mdast-util-to-hast/lib/index.js +0 -16
  317. package/dist/_node_modules/mdast-util-to-hast/lib/index.js.map +0 -1
  318. package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs +0 -30
  319. package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs.map +0 -1
  320. package/dist/_node_modules/mdast-util-to-hast/lib/revert.js +0 -30
  321. package/dist/_node_modules/mdast-util-to-hast/lib/revert.js.map +0 -1
  322. package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs +0 -149
  323. package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs.map +0 -1
  324. package/dist/_node_modules/mdast-util-to-hast/lib/state.js +0 -149
  325. package/dist/_node_modules/mdast-util-to-hast/lib/state.js.map +0 -1
  326. package/dist/_node_modules/mdast-util-to-string/lib/index.cjs +0 -39
  327. package/dist/_node_modules/mdast-util-to-string/lib/index.cjs.map +0 -1
  328. package/dist/_node_modules/mdast-util-to-string/lib/index.js +0 -39
  329. package/dist/_node_modules/mdast-util-to-string/lib/index.js.map +0 -1
  330. package/dist/_node_modules/micromark/lib/constructs.cjs +0 -94
  331. package/dist/_node_modules/micromark/lib/constructs.cjs.map +0 -1
  332. package/dist/_node_modules/micromark/lib/constructs.js +0 -94
  333. package/dist/_node_modules/micromark/lib/constructs.js.map +0 -1
  334. package/dist/_node_modules/micromark/lib/create-tokenizer.cjs +0 -316
  335. package/dist/_node_modules/micromark/lib/create-tokenizer.cjs.map +0 -1
  336. package/dist/_node_modules/micromark/lib/create-tokenizer.js +0 -316
  337. package/dist/_node_modules/micromark/lib/create-tokenizer.js.map +0 -1
  338. package/dist/_node_modules/micromark/lib/initialize/content.cjs +0 -58
  339. package/dist/_node_modules/micromark/lib/initialize/content.cjs.map +0 -1
  340. package/dist/_node_modules/micromark/lib/initialize/content.js +0 -58
  341. package/dist/_node_modules/micromark/lib/initialize/content.js.map +0 -1
  342. package/dist/_node_modules/micromark/lib/initialize/document.cjs +0 -212
  343. package/dist/_node_modules/micromark/lib/initialize/document.cjs.map +0 -1
  344. package/dist/_node_modules/micromark/lib/initialize/document.js +0 -212
  345. package/dist/_node_modules/micromark/lib/initialize/document.js.map +0 -1
  346. package/dist/_node_modules/micromark/lib/initialize/flow.cjs +0 -55
  347. package/dist/_node_modules/micromark/lib/initialize/flow.cjs.map +0 -1
  348. package/dist/_node_modules/micromark/lib/initialize/flow.js +0 -55
  349. package/dist/_node_modules/micromark/lib/initialize/flow.js.map +0 -1
  350. package/dist/_node_modules/micromark/lib/initialize/text.cjs +0 -143
  351. package/dist/_node_modules/micromark/lib/initialize/text.cjs.map +0 -1
  352. package/dist/_node_modules/micromark/lib/initialize/text.js +0 -143
  353. package/dist/_node_modules/micromark/lib/initialize/text.js.map +0 -1
  354. package/dist/_node_modules/micromark/lib/parse.cjs +0 -35
  355. package/dist/_node_modules/micromark/lib/parse.cjs.map +0 -1
  356. package/dist/_node_modules/micromark/lib/parse.js +0 -35
  357. package/dist/_node_modules/micromark/lib/parse.js.map +0 -1
  358. package/dist/_node_modules/micromark/lib/postprocess.cjs +0 -10
  359. package/dist/_node_modules/micromark/lib/postprocess.cjs.map +0 -1
  360. package/dist/_node_modules/micromark/lib/postprocess.js +0 -10
  361. package/dist/_node_modules/micromark/lib/postprocess.js.map +0 -1
  362. package/dist/_node_modules/micromark/lib/preprocess.cjs +0 -81
  363. package/dist/_node_modules/micromark/lib/preprocess.cjs.map +0 -1
  364. package/dist/_node_modules/micromark/lib/preprocess.js +0 -81
  365. package/dist/_node_modules/micromark/lib/preprocess.js.map +0 -1
  366. package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs +0 -116
  367. package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs.map +0 -1
  368. package/dist/_node_modules/micromark-core-commonmark/lib/attention.js +0 -116
  369. package/dist/_node_modules/micromark-core-commonmark/lib/attention.js.map +0 -1
  370. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs +0 -104
  371. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs.map +0 -1
  372. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js +0 -104
  373. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js.map +0 -1
  374. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs +0 -19
  375. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs.map +0 -1
  376. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js +0 -19
  377. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
  378. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs +0 -62
  379. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs.map +0 -1
  380. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js +0 -62
  381. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js.map +0 -1
  382. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs +0 -29
  383. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs.map +0 -1
  384. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js +0 -29
  385. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js.map +0 -1
  386. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs +0 -69
  387. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs.map +0 -1
  388. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js +0 -69
  389. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js.map +0 -1
  390. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs +0 -187
  391. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs.map +0 -1
  392. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -187
  393. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js.map +0 -1
  394. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs +0 -68
  395. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs.map +0 -1
  396. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js +0 -68
  397. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js.map +0 -1
  398. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs +0 -117
  399. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs.map +0 -1
  400. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js +0 -117
  401. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js.map +0 -1
  402. package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs +0 -76
  403. package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs.map +0 -1
  404. package/dist/_node_modules/micromark-core-commonmark/lib/content.js +0 -76
  405. package/dist/_node_modules/micromark-core-commonmark/lib/content.js.map +0 -1
  406. package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs +0 -95
  407. package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs.map +0 -1
  408. package/dist/_node_modules/micromark-core-commonmark/lib/definition.js +0 -95
  409. package/dist/_node_modules/micromark-core-commonmark/lib/definition.js.map +0 -1
  410. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs +0 -24
  411. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs.map +0 -1
  412. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -24
  413. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +0 -1
  414. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs +0 -96
  415. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs.map +0 -1
  416. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -96
  417. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js.map +0 -1
  418. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs +0 -384
  419. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs.map +0 -1
  420. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js +0 -384
  421. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js.map +0 -1
  422. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs +0 -310
  423. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs.map +0 -1
  424. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js +0 -310
  425. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js.map +0 -1
  426. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs +0 -219
  427. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs.map +0 -1
  428. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js +0 -219
  429. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js.map +0 -1
  430. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs +0 -34
  431. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs.map +0 -1
  432. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -34
  433. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js.map +0 -1
  434. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs +0 -25
  435. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs.map +0 -1
  436. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -25
  437. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js.map +0 -1
  438. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs +0 -18
  439. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs.map +0 -1
  440. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js +0 -18
  441. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js.map +0 -1
  442. package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs +0 -136
  443. package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs.map +0 -1
  444. package/dist/_node_modules/micromark-core-commonmark/lib/list.js +0 -136
  445. package/dist/_node_modules/micromark-core-commonmark/lib/list.js.map +0 -1
  446. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs +0 -90
  447. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs.map +0 -1
  448. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -90
  449. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js.map +0 -1
  450. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs +0 -43
  451. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs.map +0 -1
  452. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -43
  453. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js.map +0 -1
  454. package/dist/_node_modules/micromark-factory-destination/index.cjs +0 -95
  455. package/dist/_node_modules/micromark-factory-destination/index.cjs.map +0 -1
  456. package/dist/_node_modules/micromark-factory-destination/index.js +0 -95
  457. package/dist/_node_modules/micromark-factory-destination/index.js.map +0 -1
  458. package/dist/_node_modules/micromark-factory-label/index.cjs +0 -64
  459. package/dist/_node_modules/micromark-factory-label/index.cjs.map +0 -1
  460. package/dist/_node_modules/micromark-factory-label/index.js +0 -64
  461. package/dist/_node_modules/micromark-factory-label/index.js.map +0 -1
  462. package/dist/_node_modules/micromark-factory-space/index.cjs +0 -25
  463. package/dist/_node_modules/micromark-factory-space/index.cjs.map +0 -1
  464. package/dist/_node_modules/micromark-factory-space/index.js +0 -25
  465. package/dist/_node_modules/micromark-factory-space/index.js.map +0 -1
  466. package/dist/_node_modules/micromark-factory-title/index.cjs +0 -66
  467. package/dist/_node_modules/micromark-factory-title/index.cjs.map +0 -1
  468. package/dist/_node_modules/micromark-factory-title/index.js +0 -66
  469. package/dist/_node_modules/micromark-factory-title/index.js.map +0 -1
  470. package/dist/_node_modules/micromark-factory-whitespace/index.cjs +0 -27
  471. package/dist/_node_modules/micromark-factory-whitespace/index.cjs.map +0 -1
  472. package/dist/_node_modules/micromark-factory-whitespace/index.js +0 -27
  473. package/dist/_node_modules/micromark-factory-whitespace/index.js.map +0 -1
  474. package/dist/_node_modules/micromark-util-character/index.cjs +0 -45
  475. package/dist/_node_modules/micromark-util-character/index.cjs.map +0 -1
  476. package/dist/_node_modules/micromark-util-character/index.js +0 -45
  477. package/dist/_node_modules/micromark-util-character/index.js.map +0 -1
  478. package/dist/_node_modules/micromark-util-chunked/index.cjs +0 -37
  479. package/dist/_node_modules/micromark-util-chunked/index.cjs.map +0 -1
  480. package/dist/_node_modules/micromark-util-chunked/index.js +0 -37
  481. package/dist/_node_modules/micromark-util-chunked/index.js.map +0 -1
  482. package/dist/_node_modules/micromark-util-classify-character/index.cjs +0 -13
  483. package/dist/_node_modules/micromark-util-classify-character/index.cjs.map +0 -1
  484. package/dist/_node_modules/micromark-util-classify-character/index.js +0 -13
  485. package/dist/_node_modules/micromark-util-classify-character/index.js.map +0 -1
  486. package/dist/_node_modules/micromark-util-combine-extensions/index.cjs +0 -42
  487. package/dist/_node_modules/micromark-util-combine-extensions/index.cjs.map +0 -1
  488. package/dist/_node_modules/micromark-util-combine-extensions/index.js +0 -42
  489. package/dist/_node_modules/micromark-util-combine-extensions/index.js.map +0 -1
  490. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs +0 -20
  491. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs.map +0 -1
  492. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -20
  493. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js.map +0 -1
  494. package/dist/_node_modules/micromark-util-decode-string/index.cjs +0 -22
  495. package/dist/_node_modules/micromark-util-decode-string/index.cjs.map +0 -1
  496. package/dist/_node_modules/micromark-util-decode-string/index.js +0 -22
  497. package/dist/_node_modules/micromark-util-decode-string/index.js.map +0 -1
  498. package/dist/_node_modules/micromark-util-html-tag-name/index.cjs +0 -70
  499. package/dist/_node_modules/micromark-util-html-tag-name/index.cjs.map +0 -1
  500. package/dist/_node_modules/micromark-util-html-tag-name/index.js +0 -70
  501. package/dist/_node_modules/micromark-util-html-tag-name/index.js.map +0 -1
  502. package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs +0 -7
  503. package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs.map +0 -1
  504. package/dist/_node_modules/micromark-util-normalize-identifier/index.js +0 -7
  505. package/dist/_node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
  506. package/dist/_node_modules/micromark-util-resolve-all/index.cjs +0 -16
  507. package/dist/_node_modules/micromark-util-resolve-all/index.cjs.map +0 -1
  508. package/dist/_node_modules/micromark-util-resolve-all/index.js +0 -16
  509. package/dist/_node_modules/micromark-util-resolve-all/index.js.map +0 -1
  510. package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs +0 -42
  511. package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs.map +0 -1
  512. package/dist/_node_modules/micromark-util-sanitize-uri/index.js +0 -42
  513. package/dist/_node_modules/micromark-util-sanitize-uri/index.js.map +0 -1
  514. package/dist/_node_modules/micromark-util-subtokenize/index.cjs +0 -149
  515. package/dist/_node_modules/micromark-util-subtokenize/index.cjs.map +0 -1
  516. package/dist/_node_modules/micromark-util-subtokenize/index.js +0 -149
  517. package/dist/_node_modules/micromark-util-subtokenize/index.js.map +0 -1
  518. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs +0 -195
  519. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs.map +0 -1
  520. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -195
  521. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +0 -1
  522. package/dist/_node_modules/nth-check/lib/esm/compile.cjs +0 -20
  523. package/dist/_node_modules/nth-check/lib/esm/compile.cjs.map +0 -1
  524. package/dist/_node_modules/nth-check/lib/esm/compile.js +0 -20
  525. package/dist/_node_modules/nth-check/lib/esm/compile.js.map +0 -1
  526. package/dist/_node_modules/nth-check/lib/esm/index.cjs +0 -11
  527. package/dist/_node_modules/nth-check/lib/esm/index.cjs.map +0 -1
  528. package/dist/_node_modules/nth-check/lib/esm/index.js +0 -11
  529. package/dist/_node_modules/nth-check/lib/esm/index.js.map +0 -1
  530. package/dist/_node_modules/nth-check/lib/esm/parse.cjs +0 -59
  531. package/dist/_node_modules/nth-check/lib/esm/parse.cjs.map +0 -1
  532. package/dist/_node_modules/nth-check/lib/esm/parse.js +0 -59
  533. package/dist/_node_modules/nth-check/lib/esm/parse.js.map +0 -1
  534. package/dist/_node_modules/property-information/index.cjs +0 -14
  535. package/dist/_node_modules/property-information/index.cjs.map +0 -1
  536. package/dist/_node_modules/property-information/index.js +0 -14
  537. package/dist/_node_modules/property-information/index.js.map +0 -1
  538. package/dist/_node_modules/property-information/lib/aria.cjs +0 -62
  539. package/dist/_node_modules/property-information/lib/aria.cjs.map +0 -1
  540. package/dist/_node_modules/property-information/lib/aria.js +0 -62
  541. package/dist/_node_modules/property-information/lib/aria.js.map +0 -1
  542. package/dist/_node_modules/property-information/lib/find.cjs +0 -41
  543. package/dist/_node_modules/property-information/lib/find.cjs.map +0 -1
  544. package/dist/_node_modules/property-information/lib/find.js +0 -41
  545. package/dist/_node_modules/property-information/lib/find.js.map +0 -1
  546. package/dist/_node_modules/property-information/lib/html.cjs +0 -369
  547. package/dist/_node_modules/property-information/lib/html.cjs.map +0 -1
  548. package/dist/_node_modules/property-information/lib/html.js +0 -369
  549. package/dist/_node_modules/property-information/lib/html.js.map +0 -1
  550. package/dist/_node_modules/property-information/lib/normalize.cjs +0 -7
  551. package/dist/_node_modules/property-information/lib/normalize.cjs.map +0 -1
  552. package/dist/_node_modules/property-information/lib/normalize.js +0 -7
  553. package/dist/_node_modules/property-information/lib/normalize.js.map +0 -1
  554. package/dist/_node_modules/property-information/lib/svg.cjs +0 -567
  555. package/dist/_node_modules/property-information/lib/svg.cjs.map +0 -1
  556. package/dist/_node_modules/property-information/lib/svg.js +0 -567
  557. package/dist/_node_modules/property-information/lib/svg.js.map +0 -1
  558. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -8
  559. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
  560. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js +0 -8
  561. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js.map +0 -1
  562. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -7
  563. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
  564. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js +0 -7
  565. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js.map +0 -1
  566. package/dist/_node_modules/property-information/lib/util/create.cjs +0 -31
  567. package/dist/_node_modules/property-information/lib/util/create.cjs.map +0 -1
  568. package/dist/_node_modules/property-information/lib/util/create.js +0 -31
  569. package/dist/_node_modules/property-information/lib/util/create.js.map +0 -1
  570. package/dist/_node_modules/property-information/lib/util/defined-info.cjs +0 -33
  571. package/dist/_node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
  572. package/dist/_node_modules/property-information/lib/util/defined-info.js +0 -33
  573. package/dist/_node_modules/property-information/lib/util/defined-info.js.map +0 -1
  574. package/dist/_node_modules/property-information/lib/util/info.cjs +0 -25
  575. package/dist/_node_modules/property-information/lib/util/info.cjs.map +0 -1
  576. package/dist/_node_modules/property-information/lib/util/info.js +0 -25
  577. package/dist/_node_modules/property-information/lib/util/info.js.map +0 -1
  578. package/dist/_node_modules/property-information/lib/util/merge.cjs +0 -15
  579. package/dist/_node_modules/property-information/lib/util/merge.cjs.map +0 -1
  580. package/dist/_node_modules/property-information/lib/util/merge.js +0 -15
  581. package/dist/_node_modules/property-information/lib/util/merge.js.map +0 -1
  582. package/dist/_node_modules/property-information/lib/util/schema.cjs +0 -22
  583. package/dist/_node_modules/property-information/lib/util/schema.cjs.map +0 -1
  584. package/dist/_node_modules/property-information/lib/util/schema.js +0 -22
  585. package/dist/_node_modules/property-information/lib/util/schema.js.map +0 -1
  586. package/dist/_node_modules/property-information/lib/util/types.cjs +0 -21
  587. package/dist/_node_modules/property-information/lib/util/types.cjs.map +0 -1
  588. package/dist/_node_modules/property-information/lib/util/types.js +0 -21
  589. package/dist/_node_modules/property-information/lib/util/types.js.map +0 -1
  590. package/dist/_node_modules/property-information/lib/xlink.cjs +0 -20
  591. package/dist/_node_modules/property-information/lib/xlink.cjs.map +0 -1
  592. package/dist/_node_modules/property-information/lib/xlink.js +0 -20
  593. package/dist/_node_modules/property-information/lib/xlink.js.map +0 -1
  594. package/dist/_node_modules/property-information/lib/xml.cjs +0 -12
  595. package/dist/_node_modules/property-information/lib/xml.cjs.map +0 -1
  596. package/dist/_node_modules/property-information/lib/xml.js +0 -12
  597. package/dist/_node_modules/property-information/lib/xml.js.map +0 -1
  598. package/dist/_node_modules/property-information/lib/xmlns.cjs +0 -12
  599. package/dist/_node_modules/property-information/lib/xmlns.cjs.map +0 -1
  600. package/dist/_node_modules/property-information/lib/xmlns.js +0 -12
  601. package/dist/_node_modules/property-information/lib/xmlns.js.map +0 -1
  602. package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs +0 -122
  603. package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs.map +0 -1
  604. package/dist/_node_modules/rehype-minify-whitespace/lib/block.js +0 -122
  605. package/dist/_node_modules/rehype-minify-whitespace/lib/block.js.map +0 -1
  606. package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs +0 -11
  607. package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs.map +0 -1
  608. package/dist/_node_modules/rehype-minify-whitespace/lib/content.js +0 -11
  609. package/dist/_node_modules/rehype-minify-whitespace/lib/content.js.map +0 -1
  610. package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs +0 -169
  611. package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs.map +0 -1
  612. package/dist/_node_modules/rehype-minify-whitespace/lib/index.js +0 -170
  613. package/dist/_node_modules/rehype-minify-whitespace/lib/index.js.map +0 -1
  614. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs +0 -24
  615. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs.map +0 -1
  616. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js +0 -24
  617. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js.map +0 -1
  618. package/dist/_node_modules/rehype-parse/lib/index.cjs +0 -21
  619. package/dist/_node_modules/rehype-parse/lib/index.cjs.map +0 -1
  620. package/dist/_node_modules/rehype-parse/lib/index.js +0 -22
  621. package/dist/_node_modules/rehype-parse/lib/index.js.map +0 -1
  622. package/dist/_node_modules/remark-parse/lib/index.cjs +0 -19
  623. package/dist/_node_modules/remark-parse/lib/index.cjs.map +0 -1
  624. package/dist/_node_modules/remark-parse/lib/index.js +0 -20
  625. package/dist/_node_modules/remark-parse/lib/index.js.map +0 -1
  626. package/dist/_node_modules/remark-rehype/lib/index.cjs +0 -21
  627. package/dist/_node_modules/remark-rehype/lib/index.cjs.map +0 -1
  628. package/dist/_node_modules/remark-rehype/lib/index.js +0 -22
  629. package/dist/_node_modules/remark-rehype/lib/index.js.map +0 -1
  630. package/dist/_node_modules/space-separated-tokens/index.cjs +0 -12
  631. package/dist/_node_modules/space-separated-tokens/index.cjs.map +0 -1
  632. package/dist/_node_modules/space-separated-tokens/index.js +0 -12
  633. package/dist/_node_modules/space-separated-tokens/index.js.map +0 -1
  634. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs +0 -14
  635. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs.map +0 -1
  636. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js +0 -14
  637. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js.map +0 -1
  638. package/dist/_node_modules/stringify-entities/lib/core.cjs +0 -52
  639. package/dist/_node_modules/stringify-entities/lib/core.cjs.map +0 -1
  640. package/dist/_node_modules/stringify-entities/lib/core.js +0 -52
  641. package/dist/_node_modules/stringify-entities/lib/core.js.map +0 -1
  642. package/dist/_node_modules/stringify-entities/lib/index.cjs +0 -9
  643. package/dist/_node_modules/stringify-entities/lib/index.cjs.map +0 -1
  644. package/dist/_node_modules/stringify-entities/lib/index.js +0 -9
  645. package/dist/_node_modules/stringify-entities/lib/index.js.map +0 -1
  646. package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs +0 -26
  647. package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs.map +0 -1
  648. package/dist/_node_modules/stringify-entities/lib/util/format-smart.js +0 -26
  649. package/dist/_node_modules/stringify-entities/lib/util/format-smart.js.map +0 -1
  650. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs +0 -9
  651. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs.map +0 -1
  652. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js +0 -9
  653. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js.map +0 -1
  654. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs +0 -9
  655. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs.map +0 -1
  656. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js +0 -9
  657. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js.map +0 -1
  658. package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs +0 -28
  659. package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs.map +0 -1
  660. package/dist/_node_modules/stringify-entities/lib/util/to-named.js +0 -28
  661. package/dist/_node_modules/stringify-entities/lib/util/to-named.js.map +0 -1
  662. package/dist/_node_modules/trim-lines/index.cjs +0 -42
  663. package/dist/_node_modules/trim-lines/index.cjs.map +0 -1
  664. package/dist/_node_modules/trim-lines/index.js +0 -42
  665. package/dist/_node_modules/trim-lines/index.js.map +0 -1
  666. package/dist/_node_modules/trough/lib/index.cjs +0 -87
  667. package/dist/_node_modules/trough/lib/index.cjs.map +0 -1
  668. package/dist/_node_modules/trough/lib/index.js +0 -87
  669. package/dist/_node_modules/trough/lib/index.js.map +0 -1
  670. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs +0 -10
  671. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs.map +0 -1
  672. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js +0 -11
  673. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js.map +0 -1
  674. package/dist/_node_modules/unified/lib/callable-instance.cjs +0 -31
  675. package/dist/_node_modules/unified/lib/callable-instance.cjs.map +0 -1
  676. package/dist/_node_modules/unified/lib/callable-instance.js +0 -31
  677. package/dist/_node_modules/unified/lib/callable-instance.js.map +0 -1
  678. package/dist/_node_modules/unified/lib/index.cjs +0 -637
  679. package/dist/_node_modules/unified/lib/index.cjs.map +0 -1
  680. package/dist/_node_modules/unified/lib/index.js +0 -637
  681. package/dist/_node_modules/unified/lib/index.js.map +0 -1
  682. package/dist/_node_modules/unist-util-is/lib/index.cjs +0 -94
  683. package/dist/_node_modules/unist-util-is/lib/index.cjs.map +0 -1
  684. package/dist/_node_modules/unist-util-is/lib/index.js +0 -94
  685. package/dist/_node_modules/unist-util-is/lib/index.js.map +0 -1
  686. package/dist/_node_modules/unist-util-position/lib/index.cjs +0 -28
  687. package/dist/_node_modules/unist-util-position/lib/index.cjs.map +0 -1
  688. package/dist/_node_modules/unist-util-position/lib/index.js +0 -28
  689. package/dist/_node_modules/unist-util-position/lib/index.js.map +0 -1
  690. package/dist/_node_modules/unist-util-remove/lib/index.cjs +0 -39
  691. package/dist/_node_modules/unist-util-remove/lib/index.cjs.map +0 -1
  692. package/dist/_node_modules/unist-util-remove/lib/index.js +0 -39
  693. package/dist/_node_modules/unist-util-remove/lib/index.js.map +0 -1
  694. package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs +0 -28
  695. package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs.map +0 -1
  696. package/dist/_node_modules/unist-util-stringify-position/lib/index.js +0 -28
  697. package/dist/_node_modules/unist-util-stringify-position/lib/index.js.map +0 -1
  698. package/dist/_node_modules/unist-util-visit/lib/index.cjs +0 -28
  699. package/dist/_node_modules/unist-util-visit/lib/index.cjs.map +0 -1
  700. package/dist/_node_modules/unist-util-visit/lib/index.js +0 -29
  701. package/dist/_node_modules/unist-util-visit/lib/index.js.map +0 -1
  702. package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs +0 -7
  703. package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs.map +0 -1
  704. package/dist/_node_modules/unist-util-visit-parents/lib/color.js +0 -7
  705. package/dist/_node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
  706. package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs +0 -84
  707. package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs.map +0 -1
  708. package/dist/_node_modules/unist-util-visit-parents/lib/index.js +0 -84
  709. package/dist/_node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
  710. package/dist/_node_modules/vfile/lib/index.cjs +0 -463
  711. package/dist/_node_modules/vfile/lib/index.cjs.map +0 -1
  712. package/dist/_node_modules/vfile/lib/index.js +0 -463
  713. package/dist/_node_modules/vfile/lib/index.js.map +0 -1
  714. package/dist/_node_modules/vfile/lib/minpath.browser.cjs +0 -215
  715. package/dist/_node_modules/vfile/lib/minpath.browser.cjs.map +0 -1
  716. package/dist/_node_modules/vfile/lib/minpath.browser.js +0 -215
  717. package/dist/_node_modules/vfile/lib/minpath.browser.js.map +0 -1
  718. package/dist/_node_modules/vfile/lib/minproc.browser.cjs +0 -8
  719. package/dist/_node_modules/vfile/lib/minproc.browser.cjs.map +0 -1
  720. package/dist/_node_modules/vfile/lib/minproc.browser.js +0 -8
  721. package/dist/_node_modules/vfile/lib/minproc.browser.js.map +0 -1
  722. package/dist/_node_modules/vfile/lib/minurl.browser.cjs +0 -47
  723. package/dist/_node_modules/vfile/lib/minurl.browser.cjs.map +0 -1
  724. package/dist/_node_modules/vfile/lib/minurl.browser.js +0 -47
  725. package/dist/_node_modules/vfile/lib/minurl.browser.js.map +0 -1
  726. package/dist/_node_modules/vfile/lib/minurl.shared.cjs +0 -10
  727. package/dist/_node_modules/vfile/lib/minurl.shared.cjs.map +0 -1
  728. package/dist/_node_modules/vfile/lib/minurl.shared.js +0 -10
  729. package/dist/_node_modules/vfile/lib/minurl.shared.js.map +0 -1
  730. package/dist/_node_modules/vfile-location/lib/index.cjs +0 -50
  731. package/dist/_node_modules/vfile-location/lib/index.cjs.map +0 -1
  732. package/dist/_node_modules/vfile-location/lib/index.js +0 -50
  733. package/dist/_node_modules/vfile-location/lib/index.js.map +0 -1
  734. package/dist/_node_modules/vfile-message/lib/index.cjs +0 -139
  735. package/dist/_node_modules/vfile-message/lib/index.cjs.map +0 -1
  736. package/dist/_node_modules/vfile-message/lib/index.js +0 -139
  737. package/dist/_node_modules/vfile-message/lib/index.js.map +0 -1
  738. package/dist/_node_modules/web-namespaces/index.cjs +0 -12
  739. package/dist/_node_modules/web-namespaces/index.cjs.map +0 -1
  740. package/dist/_node_modules/web-namespaces/index.js +0 -12
  741. package/dist/_node_modules/web-namespaces/index.js.map +0 -1
  742. package/dist/_node_modules/zwitch/index.cjs +0 -23
  743. package/dist/_node_modules/zwitch/index.cjs.map +0 -1
  744. package/dist/_node_modules/zwitch/index.js +0 -23
  745. package/dist/_node_modules/zwitch/index.js.map +0 -1
  746. package/dist/_virtual/_commonjsHelpers.cjs +0 -7
  747. package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
  748. package/dist/_virtual/_commonjsHelpers.js +0 -7
  749. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  750. package/dist/_virtual/index.cjs +0 -9
  751. package/dist/_virtual/index.cjs.map +0 -1
  752. package/dist/_virtual/index.js +0 -9
  753. package/dist/_virtual/index.js.map +0 -1
  754. package/dist/errors/PrismicRichTextError.cjs +0 -6
  755. package/dist/errors/PrismicRichTextError.cjs.map +0 -1
  756. package/dist/errors/PrismicRichTextError.d.ts +0 -2
  757. package/dist/errors/PrismicRichTextError.js +0 -6
  758. package/dist/errors/PrismicRichTextError.js.map +0 -1
  759. package/dist/errors/PrismicRichTextSerializerError.cjs +0 -7
  760. package/dist/errors/PrismicRichTextSerializerError.cjs.map +0 -1
  761. package/dist/errors/PrismicRichTextSerializerError.d.ts +0 -3
  762. package/dist/errors/PrismicRichTextSerializerError.js +0 -7
  763. package/dist/errors/PrismicRichTextSerializerError.js.map +0 -1
  764. package/dist/helpers/unstable_htmlAsRichText.cjs +0 -11
  765. package/dist/helpers/unstable_htmlAsRichText.cjs.map +0 -1
  766. package/dist/helpers/unstable_htmlAsRichText.d.ts +0 -81
  767. package/dist/helpers/unstable_htmlAsRichText.js +0 -11
  768. package/dist/helpers/unstable_htmlAsRichText.js.map +0 -1
  769. package/dist/helpers/unstable_markdownAsRichText.cjs +0 -12
  770. package/dist/helpers/unstable_markdownAsRichText.cjs.map +0 -1
  771. package/dist/helpers/unstable_markdownAsRichText.d.ts +0 -30
  772. package/dist/helpers/unstable_markdownAsRichText.js +0 -12
  773. package/dist/helpers/unstable_markdownAsRichText.js.map +0 -1
  774. package/dist/lib/RichTextFieldBuilder.cjs +0 -115
  775. package/dist/lib/RichTextFieldBuilder.cjs.map +0 -1
  776. package/dist/lib/RichTextFieldBuilder.d.ts +0 -35
  777. package/dist/lib/RichTextFieldBuilder.js +0 -115
  778. package/dist/lib/RichTextFieldBuilder.js.map +0 -1
  779. package/dist/lib/filterRichTextField.cjs +0 -88
  780. package/dist/lib/filterRichTextField.cjs.map +0 -1
  781. package/dist/lib/filterRichTextField.d.ts +0 -12
  782. package/dist/lib/filterRichTextField.js +0 -88
  783. package/dist/lib/filterRichTextField.js.map +0 -1
  784. package/dist/lib/hastSerializerHelpers.cjs +0 -96
  785. package/dist/lib/hastSerializerHelpers.cjs.map +0 -1
  786. package/dist/lib/hastSerializerHelpers.d.ts +0 -28
  787. package/dist/lib/hastSerializerHelpers.js +0 -96
  788. package/dist/lib/hastSerializerHelpers.js.map +0 -1
  789. package/dist/lib/hastToRichText.cjs +0 -164
  790. package/dist/lib/hastToRichText.cjs.map +0 -1
  791. package/dist/lib/hastToRichText.d.ts +0 -30
  792. package/dist/lib/hastToRichText.js +0 -164
  793. package/dist/lib/hastToRichText.js.map +0 -1
  794. package/dist/lib/rehypeRichText.cjs +0 -60
  795. package/dist/lib/rehypeRichText.cjs.map +0 -1
  796. package/dist/lib/rehypeRichText.d.ts +0 -66
  797. package/dist/lib/rehypeRichText.js +0 -60
  798. package/dist/lib/rehypeRichText.js.map +0 -1
  799. package/src/errors/PrismicRichTextError.ts +0 -1
  800. package/src/errors/PrismicRichTextSerializerError.ts +0 -3
  801. package/src/helpers/unstable_htmlAsRichText.ts +0 -122
  802. package/src/helpers/unstable_markdownAsRichText.ts +0 -53
  803. package/src/lib/RichTextFieldBuilder.ts +0 -164
  804. package/src/lib/filterRichTextField.ts +0 -159
  805. package/src/lib/hastSerializerHelpers.ts +0 -157
  806. package/src/lib/hastToRichText.ts +0 -295
  807. package/src/lib/rehypeRichText.ts +0 -184
@@ -1 +0,0 @@
1
- {"version":3,"file":"text.js","sources":["../../../../../node_modules/hast-util-to-html/lib/handle/text.js"],"sourcesContent":["/**\n * @typedef {import('hast').Parents} Parents\n * @typedef {import('hast').Text} Text\n *\n * @typedef {import('mdast-util-to-hast').Raw} Raw\n *\n * @typedef {import('../index.js').State} State\n */\n\nimport {stringifyEntities} from 'stringify-entities'\n\n// Declare array as variable so it can be cached by `stringifyEntities`\nconst textEntitySubset = ['<', '&']\n\n/**\n * Serialize a text node.\n *\n * @param {Raw | Text} node\n * Node to handle.\n * @param {number | undefined} _\n * Index of `node` in `parent.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {string}\n * Serialized node.\n */\nexport function text(node, _, parent, state) {\n // Check if content of `node` should be escaped.\n return parent &&\n parent.type === 'element' &&\n (parent.tagName === 'script' || parent.tagName === 'style')\n ? node.value\n : stringifyEntities(\n node.value,\n Object.assign({}, state.settings.characterReferences, {\n subset: textEntitySubset\n })\n )\n}\n"],"names":[],"mappings":";AAYA,MAAM,mBAAmB,CAAC,KAAK,GAAG;AAgB3B,SAAS,KAAK,MAAM,GAAG,QAAQ,OAAO;AAE3C,SAAO,UACL,OAAO,SAAS,cACf,OAAO,YAAY,YAAY,OAAO,YAAY,WACjD,KAAK,QACL;AAAA,IACE,KAAK;AAAA,IACL,OAAO,OAAO,CAAA,GAAI,MAAM,SAAS,qBAAqB;AAAA,MACpD,QAAQ;AAAA,IAClB,CAAS;AAAA,EACF;AACP;","x_google_ignoreList":[0]}
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../html-void-elements/index.cjs");
4
- const index$1 = require("../../property-information/index.cjs");
5
- const index$2 = require("./handle/index.cjs");
6
- const emptyOptions = {};
7
- const emptyCharacterReferences = {};
8
- const emptyChildren = [];
9
- function toHtml(tree, options) {
10
- const options_ = emptyOptions;
11
- const quote = options_.quote || '"';
12
- const alternative = quote === '"' ? "'" : '"';
13
- if (quote !== '"' && quote !== "'") {
14
- throw new Error("Invalid quote `" + quote + "`, expected `'` or `\"`");
15
- }
16
- const state = {
17
- one,
18
- all,
19
- settings: {
20
- omitOptionalTags: options_.omitOptionalTags || false,
21
- allowParseErrors: options_.allowParseErrors || false,
22
- allowDangerousCharacters: options_.allowDangerousCharacters || false,
23
- quoteSmart: options_.quoteSmart || false,
24
- preferUnquoted: options_.preferUnquoted || false,
25
- tightAttributes: options_.tightAttributes || false,
26
- upperDoctype: options_.upperDoctype || false,
27
- tightDoctype: options_.tightDoctype || false,
28
- bogusComments: options_.bogusComments || false,
29
- tightCommaSeparatedLists: options_.tightCommaSeparatedLists || false,
30
- tightSelfClosing: options_.tightSelfClosing || false,
31
- collapseEmptyAttributes: options_.collapseEmptyAttributes || false,
32
- allowDangerousHtml: options_.allowDangerousHtml || false,
33
- voids: options_.voids || index.htmlVoidElements,
34
- characterReferences: options_.characterReferences || emptyCharacterReferences,
35
- closeSelfClosing: options_.closeSelfClosing || false,
36
- closeEmptyElements: options_.closeEmptyElements || false
37
- },
38
- schema: options_.space === "svg" ? index$1.svg : index$1.html,
39
- quote,
40
- alternative
41
- };
42
- return state.one(
43
- Array.isArray(tree) ? { type: "root", children: tree } : tree,
44
- void 0,
45
- void 0
46
- );
47
- }
48
- function one(node, index2, parent) {
49
- return index$2.handle(node, index2, parent, this);
50
- }
51
- function all(parent) {
52
- const results = [];
53
- const children = parent && parent.children || emptyChildren;
54
- let index2 = -1;
55
- while (++index2 < children.length) {
56
- results[index2] = this.one(children[index2], index2, parent);
57
- }
58
- return results.join("");
59
- }
60
- exports.all = all;
61
- exports.toHtml = toHtml;
62
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../node_modules/hast-util-to-html/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Parents} Parents\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('property-information').Schema} Schema\n *\n * @typedef {import('stringify-entities').Options} StringifyEntitiesOptions\n */\n\n/**\n * @typedef {Omit<StringifyEntitiesOptions, 'attribute' | 'escapeOnly' | 'subset'>} CharacterReferences\n *\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [allowDangerousCharacters=false]\n * Do not encode some characters which cause XSS vulnerabilities in older\n * browsers (default: `false`).\n *\n * > ⚠️ **Danger**: only set this if you completely trust the content.\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n * Allow `raw` nodes and insert them as raw HTML (default: `false`).\n *\n * When `false`, `Raw` nodes are encoded.\n *\n * > ⚠️ **Danger**: only set this if you completely trust the content.\n * @property {boolean | null | undefined} [allowParseErrors=false]\n * Do not encode characters which cause parse errors (even though they work),\n * to save bytes (default: `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [bogusComments=false]\n * Use “bogus comments” instead of comments to save byes: `<?charlie>`\n * instead of `<!--charlie-->` (default: `false`).\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {CharacterReferences | null | undefined} [characterReferences]\n * Configure how to serialize character references (optional).\n * @property {boolean | null | undefined} [closeEmptyElements=false]\n * Close SVG elements without any content with slash (`/`) on the opening tag\n * instead of an end tag: `<circle />` instead of `<circle></circle>`\n * (default: `false`).\n *\n * See `tightSelfClosing` to control whether a space is used before the\n * slash.\n *\n * Not used in the HTML space.\n * @property {boolean | null | undefined} [closeSelfClosing=false]\n * Close self-closing nodes with an extra slash (`/`): `<img />` instead of\n * `<img>` (default: `false`).\n *\n * See `tightSelfClosing` to control whether a space is used before the\n * slash.\n *\n * Not used in the SVG space.\n * @property {boolean | null | undefined} [collapseEmptyAttributes=false]\n * Collapse empty attributes: get `class` instead of `class=\"\"` (default:\n * `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: boolean attributes (such as `hidden`) are always collapsed.\n * @property {boolean | null | undefined} [omitOptionalTags=false]\n * Omit optional opening and closing tags (default: `false`).\n *\n * For example, in `<ol><li>one</li><li>two</li></ol>`, both `</li>` closing\n * tags can be omitted.\n * The first because it’s followed by another `li`, the last because it’s\n * followed by nothing.\n *\n * Not used in the SVG space.\n * @property {boolean | null | undefined} [preferUnquoted=false]\n * Leave attributes unquoted if that results in less bytes (default: `false`).\n *\n * Not used in the SVG space.\n * @property {Quote | null | undefined} [quote='\"']\n * Preferred quote to use (default: `'\"'`).\n * @property {boolean | null | undefined} [quoteSmart=false]\n * Use the other quote if that results in less bytes (default: `false`).\n * @property {Space | null | undefined} [space='html']\n * When an `<svg>` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it (default: `'html'`).\n *\n * > 👉 **Note**: hast is not XML.\n * > It supports SVG as embedded in HTML.\n * > It does not support the features available in XML.\n * > Passing SVG might break but fragments of modern SVG should be fine.\n * > Use [`xast`][xast] if you need to support SVG as XML.\n * @property {boolean | null | undefined} [tightAttributes=false]\n * Join attributes together, without whitespace, if possible: get\n * `class=\"a b\"title=\"c d\"` instead of `class=\"a b\" title=\"c d\"` to save\n * bytes (default: `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [tightCommaSeparatedLists=false]\n * Join known comma-separated attribute values with just a comma (`,`),\n * instead of padding them on the right as well (`,␠`, where `␠` represents a\n * space) (default: `false`).\n * @property {boolean | null | undefined} [tightDoctype=false]\n * Drop unneeded spaces in doctypes: `<!doctypehtml>` instead of\n * `<!doctype html>` to save bytes (default: `false`).\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [tightSelfClosing=false]\n * Do not use an extra space when closing self-closing elements: `<img/>`\n * instead of `<img />` (default: `false`).\n *\n * > 👉 **Note**: only used if `closeSelfClosing: true` or\n * > `closeEmptyElements: true`.\n * @property {boolean | null | undefined} [upperDoctype=false]\n * Use a `<!DOCTYPE…` instead of `<!doctype…` (default: `false`).\n *\n * Useless except for XHTML.\n * @property {ReadonlyArray<string> | null | undefined} [voids]\n * Tag names of elements to serialize without closing tag (default: `html-void-elements`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: It’s highly unlikely that you want to pass this, because\n * > hast is not for XML, and HTML will not add more void elements.\n *\n * @typedef {'\"' | \"'\"} Quote\n * HTML quotes for attribute values.\n *\n * @typedef {Omit<Required<{[key in keyof Options]: Exclude<Options[key], null | undefined>}>, 'space' | 'quote'>} Settings\n *\n * @typedef {'html' | 'svg'} Space\n * Namespace.\n *\n * @typedef State\n * Info passed around about the current state.\n * @property {(node: Nodes, index: number | undefined, parent: Parents | undefined) => string} one\n * Serialize one node.\n * @property {(node: Parents | undefined) => string} all\n * Serialize the children of a parent node.\n * @property {Settings} settings\n * User configuration.\n * @property {Schema} schema\n * Current schema.\n * @property {Quote} quote\n * Preferred quote.\n * @property {Quote} alternative\n * Alternative quote.\n */\n\nimport {htmlVoidElements} from 'html-void-elements'\nimport {html, svg} from 'property-information'\nimport {handle} from './handle/index.js'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/** @type {CharacterReferences} */\nconst emptyCharacterReferences = {}\n\n/** @type {Array<never>} */\nconst emptyChildren = []\n\n/**\n * Serialize hast as HTML.\n *\n * @param {Array<RootContent> | Nodes} tree\n * Tree to serialize.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Serialized HTML.\n */\nexport function toHtml(tree, options) {\n const options_ = options || emptyOptions\n const quote = options_.quote || '\"'\n const alternative = quote === '\"' ? \"'\" : '\"'\n\n if (quote !== '\"' && quote !== \"'\") {\n throw new Error('Invalid quote `' + quote + '`, expected `\\'` or `\"`')\n }\n\n /** @type {State} */\n const state = {\n one,\n all,\n settings: {\n omitOptionalTags: options_.omitOptionalTags || false,\n allowParseErrors: options_.allowParseErrors || false,\n allowDangerousCharacters: options_.allowDangerousCharacters || false,\n quoteSmart: options_.quoteSmart || false,\n preferUnquoted: options_.preferUnquoted || false,\n tightAttributes: options_.tightAttributes || false,\n upperDoctype: options_.upperDoctype || false,\n tightDoctype: options_.tightDoctype || false,\n bogusComments: options_.bogusComments || false,\n tightCommaSeparatedLists: options_.tightCommaSeparatedLists || false,\n tightSelfClosing: options_.tightSelfClosing || false,\n collapseEmptyAttributes: options_.collapseEmptyAttributes || false,\n allowDangerousHtml: options_.allowDangerousHtml || false,\n voids: options_.voids || htmlVoidElements,\n characterReferences:\n options_.characterReferences || emptyCharacterReferences,\n closeSelfClosing: options_.closeSelfClosing || false,\n closeEmptyElements: options_.closeEmptyElements || false\n },\n schema: options_.space === 'svg' ? svg : html,\n quote,\n alternative\n }\n\n return state.one(\n Array.isArray(tree) ? {type: 'root', children: tree} : tree,\n undefined,\n undefined\n )\n}\n\n/**\n * Serialize a node.\n *\n * @this {State}\n * Info passed around about the current state.\n * @param {Nodes} node\n * Node to handle.\n * @param {number | undefined} index\n * Index of `node` in `parent.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @returns {string}\n * Serialized node.\n */\nfunction one(node, index, parent) {\n return handle(node, index, parent, this)\n}\n\n/**\n * Serialize all children of `parent`.\n *\n * @this {State}\n * Info passed around about the current state.\n * @param {Parents | undefined} parent\n * Parent whose children to serialize.\n * @returns {string}\n */\nexport function all(parent) {\n /** @type {Array<string>} */\n const results = []\n const children = (parent && parent.children) || emptyChildren\n let index = -1\n\n while (++index < children.length) {\n results[index] = this.one(children[index], index, parent)\n }\n\n return results.join('')\n}\n"],"names":["htmlVoidElements","svg","html","index","handle"],"mappings":";;;;;AA+JA,MAAM,eAAe,CAAE;AAGvB,MAAM,2BAA2B,CAAE;AAGnC,MAAM,gBAAgB,CAAE;AAYjB,SAAS,OAAO,MAAM,SAAS;AACpC,QAAM,WAAsB;AAC5B,QAAM,QAAQ,SAAS,SAAS;AAChC,QAAM,cAAc,UAAU,MAAM,MAAM;AAE1C,MAAI,UAAU,OAAO,UAAU,KAAK;AAClC,UAAM,IAAI,MAAM,oBAAoB,QAAQ,yBAAyB;AAAA,EACtE;AAGD,QAAM,QAAQ;AAAA,IACZ;AAAA,IACA;AAAA,IACA,UAAU;AAAA,MACR,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,0BAA0B,SAAS,4BAA4B;AAAA,MAC/D,YAAY,SAAS,cAAc;AAAA,MACnC,gBAAgB,SAAS,kBAAkB;AAAA,MAC3C,iBAAiB,SAAS,mBAAmB;AAAA,MAC7C,cAAc,SAAS,gBAAgB;AAAA,MACvC,cAAc,SAAS,gBAAgB;AAAA,MACvC,eAAe,SAAS,iBAAiB;AAAA,MACzC,0BAA0B,SAAS,4BAA4B;AAAA,MAC/D,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,yBAAyB,SAAS,2BAA2B;AAAA,MAC7D,oBAAoB,SAAS,sBAAsB;AAAA,MACnD,OAAO,SAAS,SAASA,MAAgB;AAAA,MACzC,qBACE,SAAS,uBAAuB;AAAA,MAClC,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,oBAAoB,SAAS,sBAAsB;AAAA,IACpD;AAAA,IACD,QAAQ,SAAS,UAAU,QAAQC,QAAG,MAAGC,QAAI;AAAA,IAC7C;AAAA,IACA;AAAA,EACD;AAED,SAAO,MAAM;AAAA,IACX,MAAM,QAAQ,IAAI,IAAI,EAAC,MAAM,QAAQ,UAAU,KAAI,IAAI;AAAA,IACvD;AAAA,IACA;AAAA,EACD;AACH;AAgBA,SAAS,IAAI,MAAMC,QAAO,QAAQ;AAChC,SAAOC,QAAM,OAAC,MAAMD,QAAO,QAAQ,IAAI;AACzC;AAWO,SAAS,IAAI,QAAQ;AAE1B,QAAM,UAAU,CAAE;AAClB,QAAM,WAAY,UAAU,OAAO,YAAa;AAChD,MAAIA,SAAQ;AAEZ,SAAO,EAAEA,SAAQ,SAAS,QAAQ;AAChC,YAAQA,MAAK,IAAI,KAAK,IAAI,SAASA,MAAK,GAAGA,QAAO,MAAM;AAAA,EACzD;AAED,SAAO,QAAQ,KAAK,EAAE;AACxB;;;","x_google_ignoreList":[0]}
@@ -1,62 +0,0 @@
1
- import { htmlVoidElements } from "../../html-void-elements/index.js";
2
- import { svg, html } from "../../property-information/index.js";
3
- import { handle } from "./handle/index.js";
4
- const emptyOptions = {};
5
- const emptyCharacterReferences = {};
6
- const emptyChildren = [];
7
- function toHtml(tree, options) {
8
- const options_ = emptyOptions;
9
- const quote = options_.quote || '"';
10
- const alternative = quote === '"' ? "'" : '"';
11
- if (quote !== '"' && quote !== "'") {
12
- throw new Error("Invalid quote `" + quote + "`, expected `'` or `\"`");
13
- }
14
- const state = {
15
- one,
16
- all,
17
- settings: {
18
- omitOptionalTags: options_.omitOptionalTags || false,
19
- allowParseErrors: options_.allowParseErrors || false,
20
- allowDangerousCharacters: options_.allowDangerousCharacters || false,
21
- quoteSmart: options_.quoteSmart || false,
22
- preferUnquoted: options_.preferUnquoted || false,
23
- tightAttributes: options_.tightAttributes || false,
24
- upperDoctype: options_.upperDoctype || false,
25
- tightDoctype: options_.tightDoctype || false,
26
- bogusComments: options_.bogusComments || false,
27
- tightCommaSeparatedLists: options_.tightCommaSeparatedLists || false,
28
- tightSelfClosing: options_.tightSelfClosing || false,
29
- collapseEmptyAttributes: options_.collapseEmptyAttributes || false,
30
- allowDangerousHtml: options_.allowDangerousHtml || false,
31
- voids: options_.voids || htmlVoidElements,
32
- characterReferences: options_.characterReferences || emptyCharacterReferences,
33
- closeSelfClosing: options_.closeSelfClosing || false,
34
- closeEmptyElements: options_.closeEmptyElements || false
35
- },
36
- schema: options_.space === "svg" ? svg : html,
37
- quote,
38
- alternative
39
- };
40
- return state.one(
41
- Array.isArray(tree) ? { type: "root", children: tree } : tree,
42
- void 0,
43
- void 0
44
- );
45
- }
46
- function one(node, index, parent) {
47
- return handle(node, index, parent, this);
48
- }
49
- function all(parent) {
50
- const results = [];
51
- const children = parent && parent.children || emptyChildren;
52
- let index = -1;
53
- while (++index < children.length) {
54
- results[index] = this.one(children[index], index, parent);
55
- }
56
- return results.join("");
57
- }
58
- export {
59
- all,
60
- toHtml
61
- };
62
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/hast-util-to-html/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Parents} Parents\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('property-information').Schema} Schema\n *\n * @typedef {import('stringify-entities').Options} StringifyEntitiesOptions\n */\n\n/**\n * @typedef {Omit<StringifyEntitiesOptions, 'attribute' | 'escapeOnly' | 'subset'>} CharacterReferences\n *\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [allowDangerousCharacters=false]\n * Do not encode some characters which cause XSS vulnerabilities in older\n * browsers (default: `false`).\n *\n * > ⚠️ **Danger**: only set this if you completely trust the content.\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n * Allow `raw` nodes and insert them as raw HTML (default: `false`).\n *\n * When `false`, `Raw` nodes are encoded.\n *\n * > ⚠️ **Danger**: only set this if you completely trust the content.\n * @property {boolean | null | undefined} [allowParseErrors=false]\n * Do not encode characters which cause parse errors (even though they work),\n * to save bytes (default: `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [bogusComments=false]\n * Use “bogus comments” instead of comments to save byes: `<?charlie>`\n * instead of `<!--charlie-->` (default: `false`).\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {CharacterReferences | null | undefined} [characterReferences]\n * Configure how to serialize character references (optional).\n * @property {boolean | null | undefined} [closeEmptyElements=false]\n * Close SVG elements without any content with slash (`/`) on the opening tag\n * instead of an end tag: `<circle />` instead of `<circle></circle>`\n * (default: `false`).\n *\n * See `tightSelfClosing` to control whether a space is used before the\n * slash.\n *\n * Not used in the HTML space.\n * @property {boolean | null | undefined} [closeSelfClosing=false]\n * Close self-closing nodes with an extra slash (`/`): `<img />` instead of\n * `<img>` (default: `false`).\n *\n * See `tightSelfClosing` to control whether a space is used before the\n * slash.\n *\n * Not used in the SVG space.\n * @property {boolean | null | undefined} [collapseEmptyAttributes=false]\n * Collapse empty attributes: get `class` instead of `class=\"\"` (default:\n * `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: boolean attributes (such as `hidden`) are always collapsed.\n * @property {boolean | null | undefined} [omitOptionalTags=false]\n * Omit optional opening and closing tags (default: `false`).\n *\n * For example, in `<ol><li>one</li><li>two</li></ol>`, both `</li>` closing\n * tags can be omitted.\n * The first because it’s followed by another `li`, the last because it’s\n * followed by nothing.\n *\n * Not used in the SVG space.\n * @property {boolean | null | undefined} [preferUnquoted=false]\n * Leave attributes unquoted if that results in less bytes (default: `false`).\n *\n * Not used in the SVG space.\n * @property {Quote | null | undefined} [quote='\"']\n * Preferred quote to use (default: `'\"'`).\n * @property {boolean | null | undefined} [quoteSmart=false]\n * Use the other quote if that results in less bytes (default: `false`).\n * @property {Space | null | undefined} [space='html']\n * When an `<svg>` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it (default: `'html'`).\n *\n * > 👉 **Note**: hast is not XML.\n * > It supports SVG as embedded in HTML.\n * > It does not support the features available in XML.\n * > Passing SVG might break but fragments of modern SVG should be fine.\n * > Use [`xast`][xast] if you need to support SVG as XML.\n * @property {boolean | null | undefined} [tightAttributes=false]\n * Join attributes together, without whitespace, if possible: get\n * `class=\"a b\"title=\"c d\"` instead of `class=\"a b\" title=\"c d\"` to save\n * bytes (default: `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [tightCommaSeparatedLists=false]\n * Join known comma-separated attribute values with just a comma (`,`),\n * instead of padding them on the right as well (`,␠`, where `␠` represents a\n * space) (default: `false`).\n * @property {boolean | null | undefined} [tightDoctype=false]\n * Drop unneeded spaces in doctypes: `<!doctypehtml>` instead of\n * `<!doctype html>` to save bytes (default: `false`).\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [tightSelfClosing=false]\n * Do not use an extra space when closing self-closing elements: `<img/>`\n * instead of `<img />` (default: `false`).\n *\n * > 👉 **Note**: only used if `closeSelfClosing: true` or\n * > `closeEmptyElements: true`.\n * @property {boolean | null | undefined} [upperDoctype=false]\n * Use a `<!DOCTYPE…` instead of `<!doctype…` (default: `false`).\n *\n * Useless except for XHTML.\n * @property {ReadonlyArray<string> | null | undefined} [voids]\n * Tag names of elements to serialize without closing tag (default: `html-void-elements`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: It’s highly unlikely that you want to pass this, because\n * > hast is not for XML, and HTML will not add more void elements.\n *\n * @typedef {'\"' | \"'\"} Quote\n * HTML quotes for attribute values.\n *\n * @typedef {Omit<Required<{[key in keyof Options]: Exclude<Options[key], null | undefined>}>, 'space' | 'quote'>} Settings\n *\n * @typedef {'html' | 'svg'} Space\n * Namespace.\n *\n * @typedef State\n * Info passed around about the current state.\n * @property {(node: Nodes, index: number | undefined, parent: Parents | undefined) => string} one\n * Serialize one node.\n * @property {(node: Parents | undefined) => string} all\n * Serialize the children of a parent node.\n * @property {Settings} settings\n * User configuration.\n * @property {Schema} schema\n * Current schema.\n * @property {Quote} quote\n * Preferred quote.\n * @property {Quote} alternative\n * Alternative quote.\n */\n\nimport {htmlVoidElements} from 'html-void-elements'\nimport {html, svg} from 'property-information'\nimport {handle} from './handle/index.js'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/** @type {CharacterReferences} */\nconst emptyCharacterReferences = {}\n\n/** @type {Array<never>} */\nconst emptyChildren = []\n\n/**\n * Serialize hast as HTML.\n *\n * @param {Array<RootContent> | Nodes} tree\n * Tree to serialize.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Serialized HTML.\n */\nexport function toHtml(tree, options) {\n const options_ = options || emptyOptions\n const quote = options_.quote || '\"'\n const alternative = quote === '\"' ? \"'\" : '\"'\n\n if (quote !== '\"' && quote !== \"'\") {\n throw new Error('Invalid quote `' + quote + '`, expected `\\'` or `\"`')\n }\n\n /** @type {State} */\n const state = {\n one,\n all,\n settings: {\n omitOptionalTags: options_.omitOptionalTags || false,\n allowParseErrors: options_.allowParseErrors || false,\n allowDangerousCharacters: options_.allowDangerousCharacters || false,\n quoteSmart: options_.quoteSmart || false,\n preferUnquoted: options_.preferUnquoted || false,\n tightAttributes: options_.tightAttributes || false,\n upperDoctype: options_.upperDoctype || false,\n tightDoctype: options_.tightDoctype || false,\n bogusComments: options_.bogusComments || false,\n tightCommaSeparatedLists: options_.tightCommaSeparatedLists || false,\n tightSelfClosing: options_.tightSelfClosing || false,\n collapseEmptyAttributes: options_.collapseEmptyAttributes || false,\n allowDangerousHtml: options_.allowDangerousHtml || false,\n voids: options_.voids || htmlVoidElements,\n characterReferences:\n options_.characterReferences || emptyCharacterReferences,\n closeSelfClosing: options_.closeSelfClosing || false,\n closeEmptyElements: options_.closeEmptyElements || false\n },\n schema: options_.space === 'svg' ? svg : html,\n quote,\n alternative\n }\n\n return state.one(\n Array.isArray(tree) ? {type: 'root', children: tree} : tree,\n undefined,\n undefined\n )\n}\n\n/**\n * Serialize a node.\n *\n * @this {State}\n * Info passed around about the current state.\n * @param {Nodes} node\n * Node to handle.\n * @param {number | undefined} index\n * Index of `node` in `parent.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @returns {string}\n * Serialized node.\n */\nfunction one(node, index, parent) {\n return handle(node, index, parent, this)\n}\n\n/**\n * Serialize all children of `parent`.\n *\n * @this {State}\n * Info passed around about the current state.\n * @param {Parents | undefined} parent\n * Parent whose children to serialize.\n * @returns {string}\n */\nexport function all(parent) {\n /** @type {Array<string>} */\n const results = []\n const children = (parent && parent.children) || emptyChildren\n let index = -1\n\n while (++index < children.length) {\n results[index] = this.one(children[index], index, parent)\n }\n\n return results.join('')\n}\n"],"names":[],"mappings":";;;AA+JA,MAAM,eAAe,CAAE;AAGvB,MAAM,2BAA2B,CAAE;AAGnC,MAAM,gBAAgB,CAAE;AAYjB,SAAS,OAAO,MAAM,SAAS;AACpC,QAAM,WAAsB;AAC5B,QAAM,QAAQ,SAAS,SAAS;AAChC,QAAM,cAAc,UAAU,MAAM,MAAM;AAE1C,MAAI,UAAU,OAAO,UAAU,KAAK;AAClC,UAAM,IAAI,MAAM,oBAAoB,QAAQ,yBAAyB;AAAA,EACtE;AAGD,QAAM,QAAQ;AAAA,IACZ;AAAA,IACA;AAAA,IACA,UAAU;AAAA,MACR,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,0BAA0B,SAAS,4BAA4B;AAAA,MAC/D,YAAY,SAAS,cAAc;AAAA,MACnC,gBAAgB,SAAS,kBAAkB;AAAA,MAC3C,iBAAiB,SAAS,mBAAmB;AAAA,MAC7C,cAAc,SAAS,gBAAgB;AAAA,MACvC,cAAc,SAAS,gBAAgB;AAAA,MACvC,eAAe,SAAS,iBAAiB;AAAA,MACzC,0BAA0B,SAAS,4BAA4B;AAAA,MAC/D,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,yBAAyB,SAAS,2BAA2B;AAAA,MAC7D,oBAAoB,SAAS,sBAAsB;AAAA,MACnD,OAAO,SAAS,SAAS;AAAA,MACzB,qBACE,SAAS,uBAAuB;AAAA,MAClC,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,oBAAoB,SAAS,sBAAsB;AAAA,IACpD;AAAA,IACD,QAAQ,SAAS,UAAU,QAAQ,MAAM;AAAA,IACzC;AAAA,IACA;AAAA,EACD;AAED,SAAO,MAAM;AAAA,IACX,MAAM,QAAQ,IAAI,IAAI,EAAC,MAAM,QAAQ,UAAU,KAAI,IAAI;AAAA,IACvD;AAAA,IACA;AAAA,EACD;AACH;AAgBA,SAAS,IAAI,MAAM,OAAO,QAAQ;AAChC,SAAO,OAAO,MAAM,OAAO,QAAQ,IAAI;AACzC;AAWO,SAAS,IAAI,QAAQ;AAE1B,QAAM,UAAU,CAAE;AAClB,QAAM,WAAY,UAAU,OAAO,YAAa;AAChD,MAAI,QAAQ;AAEZ,SAAO,EAAE,QAAQ,SAAS,QAAQ;AAChC,YAAQ,KAAK,IAAI,KAAK,IAAI,SAAS,KAAK,GAAG,OAAO,MAAM;AAAA,EACzD;AAED,SAAO,QAAQ,KAAK,EAAE;AACxB;","x_google_ignoreList":[0]}
@@ -1,92 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const siblings = require("./util/siblings.cjs");
4
- const omission = require("./omission.cjs");
5
- const index = require("../../../hast-util-whitespace/lib/index.cjs");
6
- const closing = omission.omission({
7
- body,
8
- caption: headOrColgroupOrCaption,
9
- colgroup: headOrColgroupOrCaption,
10
- dd,
11
- dt,
12
- head: headOrColgroupOrCaption,
13
- html,
14
- li,
15
- optgroup,
16
- option,
17
- p,
18
- rp: rubyElement,
19
- rt: rubyElement,
20
- tbody,
21
- td: cells,
22
- tfoot,
23
- th: cells,
24
- thead,
25
- tr
26
- });
27
- function headOrColgroupOrCaption(_, index$1, parent) {
28
- const next = siblings.siblingAfter(parent, index$1, true);
29
- return !next || next.type !== "comment" && !(next.type === "text" && index.whitespace(next.value.charAt(0)));
30
- }
31
- function html(_, index2, parent) {
32
- const next = siblings.siblingAfter(parent, index2);
33
- return !next || next.type !== "comment";
34
- }
35
- function body(_, index2, parent) {
36
- const next = siblings.siblingAfter(parent, index2);
37
- return !next || next.type !== "comment";
38
- }
39
- function p(_, index2, parent) {
40
- const next = siblings.siblingAfter(parent, index2);
41
- return next ? next.type === "element" && (next.tagName === "address" || next.tagName === "article" || next.tagName === "aside" || next.tagName === "blockquote" || next.tagName === "details" || next.tagName === "div" || next.tagName === "dl" || next.tagName === "fieldset" || next.tagName === "figcaption" || next.tagName === "figure" || next.tagName === "footer" || next.tagName === "form" || next.tagName === "h1" || next.tagName === "h2" || next.tagName === "h3" || next.tagName === "h4" || next.tagName === "h5" || next.tagName === "h6" || next.tagName === "header" || next.tagName === "hgroup" || next.tagName === "hr" || next.tagName === "main" || next.tagName === "menu" || next.tagName === "nav" || next.tagName === "ol" || next.tagName === "p" || next.tagName === "pre" || next.tagName === "section" || next.tagName === "table" || next.tagName === "ul") : !parent || // Confusing parent.
42
- !(parent.type === "element" && (parent.tagName === "a" || parent.tagName === "audio" || parent.tagName === "del" || parent.tagName === "ins" || parent.tagName === "map" || parent.tagName === "noscript" || parent.tagName === "video"));
43
- }
44
- function li(_, index2, parent) {
45
- const next = siblings.siblingAfter(parent, index2);
46
- return !next || next.type === "element" && next.tagName === "li";
47
- }
48
- function dt(_, index2, parent) {
49
- const next = siblings.siblingAfter(parent, index2);
50
- return Boolean(
51
- next && next.type === "element" && (next.tagName === "dt" || next.tagName === "dd")
52
- );
53
- }
54
- function dd(_, index2, parent) {
55
- const next = siblings.siblingAfter(parent, index2);
56
- return !next || next.type === "element" && (next.tagName === "dt" || next.tagName === "dd");
57
- }
58
- function rubyElement(_, index2, parent) {
59
- const next = siblings.siblingAfter(parent, index2);
60
- return !next || next.type === "element" && (next.tagName === "rp" || next.tagName === "rt");
61
- }
62
- function optgroup(_, index2, parent) {
63
- const next = siblings.siblingAfter(parent, index2);
64
- return !next || next.type === "element" && next.tagName === "optgroup";
65
- }
66
- function option(_, index2, parent) {
67
- const next = siblings.siblingAfter(parent, index2);
68
- return !next || next.type === "element" && (next.tagName === "option" || next.tagName === "optgroup");
69
- }
70
- function thead(_, index2, parent) {
71
- const next = siblings.siblingAfter(parent, index2);
72
- return Boolean(
73
- next && next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot")
74
- );
75
- }
76
- function tbody(_, index2, parent) {
77
- const next = siblings.siblingAfter(parent, index2);
78
- return !next || next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot");
79
- }
80
- function tfoot(_, index2, parent) {
81
- return !siblings.siblingAfter(parent, index2);
82
- }
83
- function tr(_, index2, parent) {
84
- const next = siblings.siblingAfter(parent, index2);
85
- return !next || next.type === "element" && next.tagName === "tr";
86
- }
87
- function cells(_, index2, parent) {
88
- const next = siblings.siblingAfter(parent, index2);
89
- return !next || next.type === "element" && (next.tagName === "td" || next.tagName === "th");
90
- }
91
- exports.closing = closing;
92
- //# sourceMappingURL=closing.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"closing.cjs","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/closing.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\nimport {whitespace} from 'hast-util-whitespace'\nimport {siblingAfter} from './util/siblings.js'\nimport {omission} from './omission.js'\n\nexport const closing = omission({\n body,\n caption: headOrColgroupOrCaption,\n colgroup: headOrColgroupOrCaption,\n dd,\n dt,\n head: headOrColgroupOrCaption,\n html,\n li,\n optgroup,\n option,\n p,\n rp: rubyElement,\n rt: rubyElement,\n tbody,\n td: cells,\n tfoot,\n th: cells,\n thead,\n tr\n})\n\n/**\n * Macro for `</head>`, `</colgroup>`, and `</caption>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction headOrColgroupOrCaption(_, index, parent) {\n const next = siblingAfter(parent, index, true)\n return (\n !next ||\n (next.type !== 'comment' &&\n !(next.type === 'text' && whitespace(next.value.charAt(0))))\n )\n}\n\n/**\n * Whether to omit `</html>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction html(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || next.type !== 'comment'\n}\n\n/**\n * Whether to omit `</body>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction body(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || next.type !== 'comment'\n}\n\n/**\n * Whether to omit `</p>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction p(_, index, parent) {\n const next = siblingAfter(parent, index)\n return next\n ? next.type === 'element' &&\n (next.tagName === 'address' ||\n next.tagName === 'article' ||\n next.tagName === 'aside' ||\n next.tagName === 'blockquote' ||\n next.tagName === 'details' ||\n next.tagName === 'div' ||\n next.tagName === 'dl' ||\n next.tagName === 'fieldset' ||\n next.tagName === 'figcaption' ||\n next.tagName === 'figure' ||\n next.tagName === 'footer' ||\n next.tagName === 'form' ||\n next.tagName === 'h1' ||\n next.tagName === 'h2' ||\n next.tagName === 'h3' ||\n next.tagName === 'h4' ||\n next.tagName === 'h5' ||\n next.tagName === 'h6' ||\n next.tagName === 'header' ||\n next.tagName === 'hgroup' ||\n next.tagName === 'hr' ||\n next.tagName === 'main' ||\n next.tagName === 'menu' ||\n next.tagName === 'nav' ||\n next.tagName === 'ol' ||\n next.tagName === 'p' ||\n next.tagName === 'pre' ||\n next.tagName === 'section' ||\n next.tagName === 'table' ||\n next.tagName === 'ul')\n : !parent ||\n // Confusing parent.\n !(\n parent.type === 'element' &&\n (parent.tagName === 'a' ||\n parent.tagName === 'audio' ||\n parent.tagName === 'del' ||\n parent.tagName === 'ins' ||\n parent.tagName === 'map' ||\n parent.tagName === 'noscript' ||\n parent.tagName === 'video')\n )\n}\n\n/**\n * Whether to omit `</li>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction li(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'li')\n}\n\n/**\n * Whether to omit `</dt>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction dt(_, index, parent) {\n const next = siblingAfter(parent, index)\n return Boolean(\n next &&\n next.type === 'element' &&\n (next.tagName === 'dt' || next.tagName === 'dd')\n )\n}\n\n/**\n * Whether to omit `</dd>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction dd(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'dt' || next.tagName === 'dd'))\n )\n}\n\n/**\n * Whether to omit `</rt>` or `</rp>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction rubyElement(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'rp' || next.tagName === 'rt'))\n )\n}\n\n/**\n * Whether to omit `</optgroup>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction optgroup(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'optgroup')\n}\n\n/**\n * Whether to omit `</option>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction option(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'option' || next.tagName === 'optgroup'))\n )\n}\n\n/**\n * Whether to omit `</thead>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction thead(_, index, parent) {\n const next = siblingAfter(parent, index)\n return Boolean(\n next &&\n next.type === 'element' &&\n (next.tagName === 'tbody' || next.tagName === 'tfoot')\n )\n}\n\n/**\n * Whether to omit `</tbody>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tbody(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'tbody' || next.tagName === 'tfoot'))\n )\n}\n\n/**\n * Whether to omit `</tfoot>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tfoot(_, index, parent) {\n return !siblingAfter(parent, index)\n}\n\n/**\n * Whether to omit `</tr>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tr(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'tr')\n}\n\n/**\n * Whether to omit `</td>` or `</th>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction cells(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'td' || next.tagName === 'th'))\n )\n}\n"],"names":["omission","index","siblingAfter","whitespace"],"mappings":";;;;;AASY,MAAC,UAAUA,SAAAA,SAAS;AAAA,EAC9B;AAAA,EACA,SAAS;AAAA,EACT,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,MAAM;AAAA,EACN;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ;AAAA,EACA,IAAI;AAAA,EACJ;AAAA,EACA,IAAI;AAAA,EACJ;AAAA,EACA;AACF,CAAC;AAcD,SAAS,wBAAwB,GAAGC,SAAO,QAAQ;AACjD,QAAM,OAAOC,SAAY,aAAC,QAAQD,SAAO,IAAI;AAC7C,SACE,CAAC,QACA,KAAK,SAAS,aACb,EAAE,KAAK,SAAS,UAAUE,MAAU,WAAC,KAAK,MAAM,OAAO,CAAC,CAAC;AAE/D;AAcA,SAAS,KAAK,GAAGF,QAAO,QAAQ;AAC9B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,CAAC,QAAQ,KAAK,SAAS;AAChC;AAcA,SAAS,KAAK,GAAGA,QAAO,QAAQ;AAC9B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,CAAC,QAAQ,KAAK,SAAS;AAChC;AAcA,SAAS,EAAE,GAAGA,QAAO,QAAQ;AAC3B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,OACH,KAAK,SAAS,cACX,KAAK,YAAY,aAChB,KAAK,YAAY,aACjB,KAAK,YAAY,WACjB,KAAK,YAAY,gBACjB,KAAK,YAAY,aACjB,KAAK,YAAY,SACjB,KAAK,YAAY,QACjB,KAAK,YAAY,cACjB,KAAK,YAAY,gBACjB,KAAK,YAAY,YACjB,KAAK,YAAY,YACjB,KAAK,YAAY,UACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,YACjB,KAAK,YAAY,YACjB,KAAK,YAAY,QACjB,KAAK,YAAY,UACjB,KAAK,YAAY,UACjB,KAAK,YAAY,SACjB,KAAK,YAAY,QACjB,KAAK,YAAY,OACjB,KAAK,YAAY,SACjB,KAAK,YAAY,aACjB,KAAK,YAAY,WACjB,KAAK,YAAY,QACrB,CAAC;AAAA,EAEC,EACE,OAAO,SAAS,cACf,OAAO,YAAY,OAClB,OAAO,YAAY,WACnB,OAAO,YAAY,SACnB,OAAO,YAAY,SACnB,OAAO,YAAY,SACnB,OAAO,YAAY,cACnB,OAAO,YAAY;AAE/B;AAcA,SAAS,GAAG,GAAGA,QAAO,QAAQ;AAC5B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,GAAG,GAAGA,QAAO,QAAQ;AAC5B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO;AAAA,IACL,QACE,KAAK,SAAS,cACb,KAAK,YAAY,QAAQ,KAAK,YAAY;AAAA,EAC9C;AACH;AAcA,SAAS,GAAG,GAAGA,QAAO,QAAQ;AAC5B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;AAcA,SAAS,YAAY,GAAGA,QAAO,QAAQ;AACrC,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;AAcA,SAAS,SAAS,GAAGA,QAAO,QAAQ;AAClC,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,OAAO,GAAGA,QAAO,QAAQ;AAChC,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,YAAY,KAAK,YAAY;AAErD;AAcA,SAAS,MAAM,GAAGA,QAAO,QAAQ;AAC/B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO;AAAA,IACL,QACE,KAAK,SAAS,cACb,KAAK,YAAY,WAAW,KAAK,YAAY;AAAA,EACjD;AACH;AAcA,SAAS,MAAM,GAAGA,QAAO,QAAQ;AAC/B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,WAAW,KAAK,YAAY;AAEpD;AAcA,SAAS,MAAM,GAAGA,QAAO,QAAQ;AAC/B,SAAO,CAACC,SAAAA,aAAa,QAAQD,MAAK;AACpC;AAcA,SAAS,GAAG,GAAGA,QAAO,QAAQ;AAC5B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,MAAM,GAAGA,QAAO,QAAQ;AAC/B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;;","x_google_ignoreList":[0]}
@@ -1,92 +0,0 @@
1
- import { siblingAfter } from "./util/siblings.js";
2
- import { omission } from "./omission.js";
3
- import { whitespace } from "../../../hast-util-whitespace/lib/index.js";
4
- const closing = omission({
5
- body,
6
- caption: headOrColgroupOrCaption,
7
- colgroup: headOrColgroupOrCaption,
8
- dd,
9
- dt,
10
- head: headOrColgroupOrCaption,
11
- html,
12
- li,
13
- optgroup,
14
- option,
15
- p,
16
- rp: rubyElement,
17
- rt: rubyElement,
18
- tbody,
19
- td: cells,
20
- tfoot,
21
- th: cells,
22
- thead,
23
- tr
24
- });
25
- function headOrColgroupOrCaption(_, index, parent) {
26
- const next = siblingAfter(parent, index, true);
27
- return !next || next.type !== "comment" && !(next.type === "text" && whitespace(next.value.charAt(0)));
28
- }
29
- function html(_, index, parent) {
30
- const next = siblingAfter(parent, index);
31
- return !next || next.type !== "comment";
32
- }
33
- function body(_, index, parent) {
34
- const next = siblingAfter(parent, index);
35
- return !next || next.type !== "comment";
36
- }
37
- function p(_, index, parent) {
38
- const next = siblingAfter(parent, index);
39
- return next ? next.type === "element" && (next.tagName === "address" || next.tagName === "article" || next.tagName === "aside" || next.tagName === "blockquote" || next.tagName === "details" || next.tagName === "div" || next.tagName === "dl" || next.tagName === "fieldset" || next.tagName === "figcaption" || next.tagName === "figure" || next.tagName === "footer" || next.tagName === "form" || next.tagName === "h1" || next.tagName === "h2" || next.tagName === "h3" || next.tagName === "h4" || next.tagName === "h5" || next.tagName === "h6" || next.tagName === "header" || next.tagName === "hgroup" || next.tagName === "hr" || next.tagName === "main" || next.tagName === "menu" || next.tagName === "nav" || next.tagName === "ol" || next.tagName === "p" || next.tagName === "pre" || next.tagName === "section" || next.tagName === "table" || next.tagName === "ul") : !parent || // Confusing parent.
40
- !(parent.type === "element" && (parent.tagName === "a" || parent.tagName === "audio" || parent.tagName === "del" || parent.tagName === "ins" || parent.tagName === "map" || parent.tagName === "noscript" || parent.tagName === "video"));
41
- }
42
- function li(_, index, parent) {
43
- const next = siblingAfter(parent, index);
44
- return !next || next.type === "element" && next.tagName === "li";
45
- }
46
- function dt(_, index, parent) {
47
- const next = siblingAfter(parent, index);
48
- return Boolean(
49
- next && next.type === "element" && (next.tagName === "dt" || next.tagName === "dd")
50
- );
51
- }
52
- function dd(_, index, parent) {
53
- const next = siblingAfter(parent, index);
54
- return !next || next.type === "element" && (next.tagName === "dt" || next.tagName === "dd");
55
- }
56
- function rubyElement(_, index, parent) {
57
- const next = siblingAfter(parent, index);
58
- return !next || next.type === "element" && (next.tagName === "rp" || next.tagName === "rt");
59
- }
60
- function optgroup(_, index, parent) {
61
- const next = siblingAfter(parent, index);
62
- return !next || next.type === "element" && next.tagName === "optgroup";
63
- }
64
- function option(_, index, parent) {
65
- const next = siblingAfter(parent, index);
66
- return !next || next.type === "element" && (next.tagName === "option" || next.tagName === "optgroup");
67
- }
68
- function thead(_, index, parent) {
69
- const next = siblingAfter(parent, index);
70
- return Boolean(
71
- next && next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot")
72
- );
73
- }
74
- function tbody(_, index, parent) {
75
- const next = siblingAfter(parent, index);
76
- return !next || next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot");
77
- }
78
- function tfoot(_, index, parent) {
79
- return !siblingAfter(parent, index);
80
- }
81
- function tr(_, index, parent) {
82
- const next = siblingAfter(parent, index);
83
- return !next || next.type === "element" && next.tagName === "tr";
84
- }
85
- function cells(_, index, parent) {
86
- const next = siblingAfter(parent, index);
87
- return !next || next.type === "element" && (next.tagName === "td" || next.tagName === "th");
88
- }
89
- export {
90
- closing
91
- };
92
- //# sourceMappingURL=closing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"closing.js","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/closing.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\nimport {whitespace} from 'hast-util-whitespace'\nimport {siblingAfter} from './util/siblings.js'\nimport {omission} from './omission.js'\n\nexport const closing = omission({\n body,\n caption: headOrColgroupOrCaption,\n colgroup: headOrColgroupOrCaption,\n dd,\n dt,\n head: headOrColgroupOrCaption,\n html,\n li,\n optgroup,\n option,\n p,\n rp: rubyElement,\n rt: rubyElement,\n tbody,\n td: cells,\n tfoot,\n th: cells,\n thead,\n tr\n})\n\n/**\n * Macro for `</head>`, `</colgroup>`, and `</caption>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction headOrColgroupOrCaption(_, index, parent) {\n const next = siblingAfter(parent, index, true)\n return (\n !next ||\n (next.type !== 'comment' &&\n !(next.type === 'text' && whitespace(next.value.charAt(0))))\n )\n}\n\n/**\n * Whether to omit `</html>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction html(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || next.type !== 'comment'\n}\n\n/**\n * Whether to omit `</body>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction body(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || next.type !== 'comment'\n}\n\n/**\n * Whether to omit `</p>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction p(_, index, parent) {\n const next = siblingAfter(parent, index)\n return next\n ? next.type === 'element' &&\n (next.tagName === 'address' ||\n next.tagName === 'article' ||\n next.tagName === 'aside' ||\n next.tagName === 'blockquote' ||\n next.tagName === 'details' ||\n next.tagName === 'div' ||\n next.tagName === 'dl' ||\n next.tagName === 'fieldset' ||\n next.tagName === 'figcaption' ||\n next.tagName === 'figure' ||\n next.tagName === 'footer' ||\n next.tagName === 'form' ||\n next.tagName === 'h1' ||\n next.tagName === 'h2' ||\n next.tagName === 'h3' ||\n next.tagName === 'h4' ||\n next.tagName === 'h5' ||\n next.tagName === 'h6' ||\n next.tagName === 'header' ||\n next.tagName === 'hgroup' ||\n next.tagName === 'hr' ||\n next.tagName === 'main' ||\n next.tagName === 'menu' ||\n next.tagName === 'nav' ||\n next.tagName === 'ol' ||\n next.tagName === 'p' ||\n next.tagName === 'pre' ||\n next.tagName === 'section' ||\n next.tagName === 'table' ||\n next.tagName === 'ul')\n : !parent ||\n // Confusing parent.\n !(\n parent.type === 'element' &&\n (parent.tagName === 'a' ||\n parent.tagName === 'audio' ||\n parent.tagName === 'del' ||\n parent.tagName === 'ins' ||\n parent.tagName === 'map' ||\n parent.tagName === 'noscript' ||\n parent.tagName === 'video')\n )\n}\n\n/**\n * Whether to omit `</li>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction li(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'li')\n}\n\n/**\n * Whether to omit `</dt>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction dt(_, index, parent) {\n const next = siblingAfter(parent, index)\n return Boolean(\n next &&\n next.type === 'element' &&\n (next.tagName === 'dt' || next.tagName === 'dd')\n )\n}\n\n/**\n * Whether to omit `</dd>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction dd(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'dt' || next.tagName === 'dd'))\n )\n}\n\n/**\n * Whether to omit `</rt>` or `</rp>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction rubyElement(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'rp' || next.tagName === 'rt'))\n )\n}\n\n/**\n * Whether to omit `</optgroup>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction optgroup(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'optgroup')\n}\n\n/**\n * Whether to omit `</option>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction option(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'option' || next.tagName === 'optgroup'))\n )\n}\n\n/**\n * Whether to omit `</thead>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction thead(_, index, parent) {\n const next = siblingAfter(parent, index)\n return Boolean(\n next &&\n next.type === 'element' &&\n (next.tagName === 'tbody' || next.tagName === 'tfoot')\n )\n}\n\n/**\n * Whether to omit `</tbody>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tbody(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'tbody' || next.tagName === 'tfoot'))\n )\n}\n\n/**\n * Whether to omit `</tfoot>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tfoot(_, index, parent) {\n return !siblingAfter(parent, index)\n}\n\n/**\n * Whether to omit `</tr>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tr(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'tr')\n}\n\n/**\n * Whether to omit `</td>` or `</th>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction cells(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'td' || next.tagName === 'th'))\n )\n}\n"],"names":[],"mappings":";;;AASY,MAAC,UAAU,SAAS;AAAA,EAC9B;AAAA,EACA,SAAS;AAAA,EACT,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,MAAM;AAAA,EACN;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ;AAAA,EACA,IAAI;AAAA,EACJ;AAAA,EACA,IAAI;AAAA,EACJ;AAAA,EACA;AACF,CAAC;AAcD,SAAS,wBAAwB,GAAG,OAAO,QAAQ;AACjD,QAAM,OAAO,aAAa,QAAQ,OAAO,IAAI;AAC7C,SACE,CAAC,QACA,KAAK,SAAS,aACb,EAAE,KAAK,SAAS,UAAU,WAAW,KAAK,MAAM,OAAO,CAAC,CAAC;AAE/D;AAcA,SAAS,KAAK,GAAG,OAAO,QAAQ;AAC9B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,CAAC,QAAQ,KAAK,SAAS;AAChC;AAcA,SAAS,KAAK,GAAG,OAAO,QAAQ;AAC9B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,CAAC,QAAQ,KAAK,SAAS;AAChC;AAcA,SAAS,EAAE,GAAG,OAAO,QAAQ;AAC3B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,OACH,KAAK,SAAS,cACX,KAAK,YAAY,aAChB,KAAK,YAAY,aACjB,KAAK,YAAY,WACjB,KAAK,YAAY,gBACjB,KAAK,YAAY,aACjB,KAAK,YAAY,SACjB,KAAK,YAAY,QACjB,KAAK,YAAY,cACjB,KAAK,YAAY,gBACjB,KAAK,YAAY,YACjB,KAAK,YAAY,YACjB,KAAK,YAAY,UACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,YACjB,KAAK,YAAY,YACjB,KAAK,YAAY,QACjB,KAAK,YAAY,UACjB,KAAK,YAAY,UACjB,KAAK,YAAY,SACjB,KAAK,YAAY,QACjB,KAAK,YAAY,OACjB,KAAK,YAAY,SACjB,KAAK,YAAY,aACjB,KAAK,YAAY,WACjB,KAAK,YAAY,QACrB,CAAC;AAAA,EAEC,EACE,OAAO,SAAS,cACf,OAAO,YAAY,OAClB,OAAO,YAAY,WACnB,OAAO,YAAY,SACnB,OAAO,YAAY,SACnB,OAAO,YAAY,SACnB,OAAO,YAAY,cACnB,OAAO,YAAY;AAE/B;AAcA,SAAS,GAAG,GAAG,OAAO,QAAQ;AAC5B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,GAAG,GAAG,OAAO,QAAQ;AAC5B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO;AAAA,IACL,QACE,KAAK,SAAS,cACb,KAAK,YAAY,QAAQ,KAAK,YAAY;AAAA,EAC9C;AACH;AAcA,SAAS,GAAG,GAAG,OAAO,QAAQ;AAC5B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;AAcA,SAAS,YAAY,GAAG,OAAO,QAAQ;AACrC,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;AAcA,SAAS,SAAS,GAAG,OAAO,QAAQ;AAClC,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,OAAO,GAAG,OAAO,QAAQ;AAChC,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,YAAY,KAAK,YAAY;AAErD;AAcA,SAAS,MAAM,GAAG,OAAO,QAAQ;AAC/B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO;AAAA,IACL,QACE,KAAK,SAAS,cACb,KAAK,YAAY,WAAW,KAAK,YAAY;AAAA,EACjD;AACH;AAcA,SAAS,MAAM,GAAG,OAAO,QAAQ;AAC/B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,WAAW,KAAK,YAAY;AAEpD;AAcA,SAAS,MAAM,GAAG,OAAO,QAAQ;AAC/B,SAAO,CAAC,aAAa,QAAQ,KAAK;AACpC;AAcA,SAAS,GAAG,GAAG,OAAO,QAAQ;AAC5B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,MAAM,GAAG,OAAO,QAAQ;AAC/B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;","x_google_ignoreList":[0]}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const own = {}.hasOwnProperty;
4
- function omission(handlers) {
5
- return omit;
6
- function omit(node, index, parent) {
7
- return own.call(handlers, node.tagName) && handlers[node.tagName](node, index, parent);
8
- }
9
- }
10
- exports.omission = omission;
11
- //# sourceMappingURL=omission.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"omission.cjs","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/omission.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\n/**\n * @callback OmitHandle\n * Check if a tag can be omitted.\n * @param {Element} element\n * Element to check.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether to omit a tag.\n *\n */\n\nconst own = {}.hasOwnProperty\n\n/**\n * Factory to check if a given node can have a tag omitted.\n *\n * @param {Record<string, OmitHandle>} handlers\n * Omission handlers, where each key is a tag name, and each value is the\n * corresponding handler.\n * @returns {OmitHandle}\n * Whether to omit a tag of an element.\n */\nexport function omission(handlers) {\n return omit\n\n /**\n * Check if a given node can have a tag omitted.\n *\n * @type {OmitHandle}\n */\n function omit(node, index, parent) {\n return (\n own.call(handlers, node.tagName) &&\n handlers[node.tagName](node, index, parent)\n )\n }\n}\n"],"names":[],"mappings":";;AAmBA,MAAM,MAAM,CAAE,EAAC;AAWR,SAAS,SAAS,UAAU;AACjC,SAAO;AAOP,WAAS,KAAK,MAAM,OAAO,QAAQ;AACjC,WACE,IAAI,KAAK,UAAU,KAAK,OAAO,KAC/B,SAAS,KAAK,OAAO,EAAE,MAAM,OAAO,MAAM;AAAA,EAE7C;AACH;;","x_google_ignoreList":[0]}
@@ -1,11 +0,0 @@
1
- const own = {}.hasOwnProperty;
2
- function omission(handlers) {
3
- return omit;
4
- function omit(node, index, parent) {
5
- return own.call(handlers, node.tagName) && handlers[node.tagName](node, index, parent);
6
- }
7
- }
8
- export {
9
- omission
10
- };
11
- //# sourceMappingURL=omission.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"omission.js","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/omission.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\n/**\n * @callback OmitHandle\n * Check if a tag can be omitted.\n * @param {Element} element\n * Element to check.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether to omit a tag.\n *\n */\n\nconst own = {}.hasOwnProperty\n\n/**\n * Factory to check if a given node can have a tag omitted.\n *\n * @param {Record<string, OmitHandle>} handlers\n * Omission handlers, where each key is a tag name, and each value is the\n * corresponding handler.\n * @returns {OmitHandle}\n * Whether to omit a tag of an element.\n */\nexport function omission(handlers) {\n return omit\n\n /**\n * Check if a given node can have a tag omitted.\n *\n * @type {OmitHandle}\n */\n function omit(node, index, parent) {\n return (\n own.call(handlers, node.tagName) &&\n handlers[node.tagName](node, index, parent)\n )\n }\n}\n"],"names":[],"mappings":"AAmBA,MAAM,MAAM,CAAE,EAAC;AAWR,SAAS,SAAS,UAAU;AACjC,SAAO;AAOP,WAAS,KAAK,MAAM,OAAO,QAAQ;AACjC,WACE,IAAI,KAAK,UAAU,KAAK,OAAO,KAC/B,SAAS,KAAK,OAAO,EAAE,MAAM,OAAO,MAAM;AAAA,EAE7C;AACH;","x_google_ignoreList":[0]}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const siblings = require("./util/siblings.cjs");
4
- const closing = require("./closing.cjs");
5
- const omission = require("./omission.cjs");
6
- const index = require("../../../hast-util-whitespace/lib/index.cjs");
7
- const opening = omission.omission({
8
- body,
9
- colgroup,
10
- head,
11
- html,
12
- tbody
13
- });
14
- function html(node) {
15
- const head2 = siblings.siblingAfter(node, -1);
16
- return !head2 || head2.type !== "comment";
17
- }
18
- function head(node) {
19
- const children = node.children;
20
- const seen = [];
21
- let index2 = -1;
22
- while (++index2 < children.length) {
23
- const child = children[index2];
24
- if (child.type === "element" && (child.tagName === "title" || child.tagName === "base")) {
25
- if (seen.includes(child.tagName)) return false;
26
- seen.push(child.tagName);
27
- }
28
- }
29
- return children.length > 0;
30
- }
31
- function body(node) {
32
- const head2 = siblings.siblingAfter(node, -1, true);
33
- return !head2 || head2.type !== "comment" && !(head2.type === "text" && index.whitespace(head2.value.charAt(0))) && !(head2.type === "element" && (head2.tagName === "meta" || head2.tagName === "link" || head2.tagName === "script" || head2.tagName === "style" || head2.tagName === "template"));
34
- }
35
- function colgroup(node, index2, parent) {
36
- const previous = siblings.siblingBefore(parent, index2);
37
- const head2 = siblings.siblingAfter(node, -1, true);
38
- if (parent && previous && previous.type === "element" && previous.tagName === "colgroup" && closing.closing(previous, parent.children.indexOf(previous), parent)) {
39
- return false;
40
- }
41
- return Boolean(head2 && head2.type === "element" && head2.tagName === "col");
42
- }
43
- function tbody(node, index2, parent) {
44
- const previous = siblings.siblingBefore(parent, index2);
45
- const head2 = siblings.siblingAfter(node, -1);
46
- if (parent && previous && previous.type === "element" && (previous.tagName === "thead" || previous.tagName === "tbody") && closing.closing(previous, parent.children.indexOf(previous), parent)) {
47
- return false;
48
- }
49
- return Boolean(head2 && head2.type === "element" && head2.tagName === "tr");
50
- }
51
- exports.opening = opening;
52
- //# sourceMappingURL=opening.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"opening.cjs","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/opening.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\nimport {whitespace} from 'hast-util-whitespace'\nimport {siblingAfter, siblingBefore} from './util/siblings.js'\nimport {closing} from './closing.js'\nimport {omission} from './omission.js'\n\nexport const opening = omission({\n body,\n colgroup,\n head,\n html,\n tbody\n})\n\n/**\n * Whether to omit `<html>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction html(node) {\n const head = siblingAfter(node, -1)\n return !head || head.type !== 'comment'\n}\n\n/**\n * Whether to omit `<head>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction head(node) {\n const children = node.children\n /** @type {Array<string>} */\n const seen = []\n let index = -1\n\n while (++index < children.length) {\n const child = children[index]\n if (\n child.type === 'element' &&\n (child.tagName === 'title' || child.tagName === 'base')\n ) {\n if (seen.includes(child.tagName)) return false\n seen.push(child.tagName)\n }\n }\n\n return children.length > 0\n}\n\n/**\n * Whether to omit `<body>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction body(node) {\n const head = siblingAfter(node, -1, true)\n\n return (\n !head ||\n (head.type !== 'comment' &&\n !(head.type === 'text' && whitespace(head.value.charAt(0))) &&\n !(\n head.type === 'element' &&\n (head.tagName === 'meta' ||\n head.tagName === 'link' ||\n head.tagName === 'script' ||\n head.tagName === 'style' ||\n head.tagName === 'template')\n ))\n )\n}\n\n/**\n * Whether to omit `<colgroup>`.\n * The spec describes some logic for the opening tag, but it’s easier to\n * implement in the closing tag, to the same effect, so we handle it there\n * instead.\n *\n * @param {Element} node\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction colgroup(node, index, parent) {\n const previous = siblingBefore(parent, index)\n const head = siblingAfter(node, -1, true)\n\n // Previous colgroup was already omitted.\n if (\n parent &&\n previous &&\n previous.type === 'element' &&\n previous.tagName === 'colgroup' &&\n closing(previous, parent.children.indexOf(previous), parent)\n ) {\n return false\n }\n\n return Boolean(head && head.type === 'element' && head.tagName === 'col')\n}\n\n/**\n * Whether to omit `<tbody>`.\n *\n * @param {Element} node\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction tbody(node, index, parent) {\n const previous = siblingBefore(parent, index)\n const head = siblingAfter(node, -1)\n\n // Previous table section was already omitted.\n if (\n parent &&\n previous &&\n previous.type === 'element' &&\n (previous.tagName === 'thead' || previous.tagName === 'tbody') &&\n closing(previous, parent.children.indexOf(previous), parent)\n ) {\n return false\n }\n\n return Boolean(head && head.type === 'element' && head.tagName === 'tr')\n}\n"],"names":["omission","head","siblingAfter","index","whitespace","siblingBefore","closing"],"mappings":";;;;;;AAUY,MAAC,UAAUA,SAAAA,SAAS;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAUD,SAAS,KAAK,MAAM;AAClB,QAAMC,QAAOC,SAAAA,aAAa,MAAM,EAAE;AAClC,SAAO,CAACD,SAAQA,MAAK,SAAS;AAChC;AAUA,SAAS,KAAK,MAAM;AAClB,QAAM,WAAW,KAAK;AAEtB,QAAM,OAAO,CAAE;AACf,MAAIE,SAAQ;AAEZ,SAAO,EAAEA,SAAQ,SAAS,QAAQ;AAChC,UAAM,QAAQ,SAASA,MAAK;AAC5B,QACE,MAAM,SAAS,cACd,MAAM,YAAY,WAAW,MAAM,YAAY,SAChD;AACA,UAAI,KAAK,SAAS,MAAM,OAAO,EAAG,QAAO;AACzC,WAAK,KAAK,MAAM,OAAO;AAAA,IACxB;AAAA,EACF;AAED,SAAO,SAAS,SAAS;AAC3B;AAUA,SAAS,KAAK,MAAM;AAClB,QAAMF,QAAOC,SAAY,aAAC,MAAM,IAAI,IAAI;AAExC,SACE,CAACD,SACAA,MAAK,SAAS,aACb,EAAEA,MAAK,SAAS,UAAUG,MAAU,WAACH,MAAK,MAAM,OAAO,CAAC,CAAC,MACzD,EACEA,MAAK,SAAS,cACbA,MAAK,YAAY,UAChBA,MAAK,YAAY,UACjBA,MAAK,YAAY,YACjBA,MAAK,YAAY,WACjBA,MAAK,YAAY;AAG3B;AAiBA,SAAS,SAAS,MAAME,QAAO,QAAQ;AACrC,QAAM,WAAWE,SAAAA,cAAc,QAAQF,MAAK;AAC5C,QAAMF,QAAOC,SAAY,aAAC,MAAM,IAAI,IAAI;AAGxC,MACE,UACA,YACA,SAAS,SAAS,aAClB,SAAS,YAAY,cACrBI,QAAO,QAAC,UAAU,OAAO,SAAS,QAAQ,QAAQ,GAAG,MAAM,GAC3D;AACA,WAAO;AAAA,EACR;AAED,SAAO,QAAQL,SAAQA,MAAK,SAAS,aAAaA,MAAK,YAAY,KAAK;AAC1E;AAcA,SAAS,MAAM,MAAME,QAAO,QAAQ;AAClC,QAAM,WAAWE,SAAAA,cAAc,QAAQF,MAAK;AAC5C,QAAMF,QAAOC,SAAAA,aAAa,MAAM,EAAE;AAGlC,MACE,UACA,YACA,SAAS,SAAS,cACjB,SAAS,YAAY,WAAW,SAAS,YAAY,YACtDI,QAAO,QAAC,UAAU,OAAO,SAAS,QAAQ,QAAQ,GAAG,MAAM,GAC3D;AACA,WAAO;AAAA,EACR;AAED,SAAO,QAAQL,SAAQA,MAAK,SAAS,aAAaA,MAAK,YAAY,IAAI;AACzE;;","x_google_ignoreList":[0]}
@@ -1,52 +0,0 @@
1
- import { siblingAfter, siblingBefore } from "./util/siblings.js";
2
- import { closing } from "./closing.js";
3
- import { omission } from "./omission.js";
4
- import { whitespace } from "../../../hast-util-whitespace/lib/index.js";
5
- const opening = omission({
6
- body,
7
- colgroup,
8
- head,
9
- html,
10
- tbody
11
- });
12
- function html(node) {
13
- const head2 = siblingAfter(node, -1);
14
- return !head2 || head2.type !== "comment";
15
- }
16
- function head(node) {
17
- const children = node.children;
18
- const seen = [];
19
- let index = -1;
20
- while (++index < children.length) {
21
- const child = children[index];
22
- if (child.type === "element" && (child.tagName === "title" || child.tagName === "base")) {
23
- if (seen.includes(child.tagName)) return false;
24
- seen.push(child.tagName);
25
- }
26
- }
27
- return children.length > 0;
28
- }
29
- function body(node) {
30
- const head2 = siblingAfter(node, -1, true);
31
- return !head2 || head2.type !== "comment" && !(head2.type === "text" && whitespace(head2.value.charAt(0))) && !(head2.type === "element" && (head2.tagName === "meta" || head2.tagName === "link" || head2.tagName === "script" || head2.tagName === "style" || head2.tagName === "template"));
32
- }
33
- function colgroup(node, index, parent) {
34
- const previous = siblingBefore(parent, index);
35
- const head2 = siblingAfter(node, -1, true);
36
- if (parent && previous && previous.type === "element" && previous.tagName === "colgroup" && closing(previous, parent.children.indexOf(previous), parent)) {
37
- return false;
38
- }
39
- return Boolean(head2 && head2.type === "element" && head2.tagName === "col");
40
- }
41
- function tbody(node, index, parent) {
42
- const previous = siblingBefore(parent, index);
43
- const head2 = siblingAfter(node, -1);
44
- if (parent && previous && previous.type === "element" && (previous.tagName === "thead" || previous.tagName === "tbody") && closing(previous, parent.children.indexOf(previous), parent)) {
45
- return false;
46
- }
47
- return Boolean(head2 && head2.type === "element" && head2.tagName === "tr");
48
- }
49
- export {
50
- opening
51
- };
52
- //# sourceMappingURL=opening.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"opening.js","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/opening.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\nimport {whitespace} from 'hast-util-whitespace'\nimport {siblingAfter, siblingBefore} from './util/siblings.js'\nimport {closing} from './closing.js'\nimport {omission} from './omission.js'\n\nexport const opening = omission({\n body,\n colgroup,\n head,\n html,\n tbody\n})\n\n/**\n * Whether to omit `<html>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction html(node) {\n const head = siblingAfter(node, -1)\n return !head || head.type !== 'comment'\n}\n\n/**\n * Whether to omit `<head>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction head(node) {\n const children = node.children\n /** @type {Array<string>} */\n const seen = []\n let index = -1\n\n while (++index < children.length) {\n const child = children[index]\n if (\n child.type === 'element' &&\n (child.tagName === 'title' || child.tagName === 'base')\n ) {\n if (seen.includes(child.tagName)) return false\n seen.push(child.tagName)\n }\n }\n\n return children.length > 0\n}\n\n/**\n * Whether to omit `<body>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction body(node) {\n const head = siblingAfter(node, -1, true)\n\n return (\n !head ||\n (head.type !== 'comment' &&\n !(head.type === 'text' && whitespace(head.value.charAt(0))) &&\n !(\n head.type === 'element' &&\n (head.tagName === 'meta' ||\n head.tagName === 'link' ||\n head.tagName === 'script' ||\n head.tagName === 'style' ||\n head.tagName === 'template')\n ))\n )\n}\n\n/**\n * Whether to omit `<colgroup>`.\n * The spec describes some logic for the opening tag, but it’s easier to\n * implement in the closing tag, to the same effect, so we handle it there\n * instead.\n *\n * @param {Element} node\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction colgroup(node, index, parent) {\n const previous = siblingBefore(parent, index)\n const head = siblingAfter(node, -1, true)\n\n // Previous colgroup was already omitted.\n if (\n parent &&\n previous &&\n previous.type === 'element' &&\n previous.tagName === 'colgroup' &&\n closing(previous, parent.children.indexOf(previous), parent)\n ) {\n return false\n }\n\n return Boolean(head && head.type === 'element' && head.tagName === 'col')\n}\n\n/**\n * Whether to omit `<tbody>`.\n *\n * @param {Element} node\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction tbody(node, index, parent) {\n const previous = siblingBefore(parent, index)\n const head = siblingAfter(node, -1)\n\n // Previous table section was already omitted.\n if (\n parent &&\n previous &&\n previous.type === 'element' &&\n (previous.tagName === 'thead' || previous.tagName === 'tbody') &&\n closing(previous, parent.children.indexOf(previous), parent)\n ) {\n return false\n }\n\n return Boolean(head && head.type === 'element' && head.tagName === 'tr')\n}\n"],"names":["head"],"mappings":";;;;AAUY,MAAC,UAAU,SAAS;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAUD,SAAS,KAAK,MAAM;AAClB,QAAMA,QAAO,aAAa,MAAM,EAAE;AAClC,SAAO,CAACA,SAAQA,MAAK,SAAS;AAChC;AAUA,SAAS,KAAK,MAAM;AAClB,QAAM,WAAW,KAAK;AAEtB,QAAM,OAAO,CAAE;AACf,MAAI,QAAQ;AAEZ,SAAO,EAAE,QAAQ,SAAS,QAAQ;AAChC,UAAM,QAAQ,SAAS,KAAK;AAC5B,QACE,MAAM,SAAS,cACd,MAAM,YAAY,WAAW,MAAM,YAAY,SAChD;AACA,UAAI,KAAK,SAAS,MAAM,OAAO,EAAG,QAAO;AACzC,WAAK,KAAK,MAAM,OAAO;AAAA,IACxB;AAAA,EACF;AAED,SAAO,SAAS,SAAS;AAC3B;AAUA,SAAS,KAAK,MAAM;AAClB,QAAMA,QAAO,aAAa,MAAM,IAAI,IAAI;AAExC,SACE,CAACA,SACAA,MAAK,SAAS,aACb,EAAEA,MAAK,SAAS,UAAU,WAAWA,MAAK,MAAM,OAAO,CAAC,CAAC,MACzD,EACEA,MAAK,SAAS,cACbA,MAAK,YAAY,UAChBA,MAAK,YAAY,UACjBA,MAAK,YAAY,YACjBA,MAAK,YAAY,WACjBA,MAAK,YAAY;AAG3B;AAiBA,SAAS,SAAS,MAAM,OAAO,QAAQ;AACrC,QAAM,WAAW,cAAc,QAAQ,KAAK;AAC5C,QAAMA,QAAO,aAAa,MAAM,IAAI,IAAI;AAGxC,MACE,UACA,YACA,SAAS,SAAS,aAClB,SAAS,YAAY,cACrB,QAAQ,UAAU,OAAO,SAAS,QAAQ,QAAQ,GAAG,MAAM,GAC3D;AACA,WAAO;AAAA,EACR;AAED,SAAO,QAAQA,SAAQA,MAAK,SAAS,aAAaA,MAAK,YAAY,KAAK;AAC1E;AAcA,SAAS,MAAM,MAAM,OAAO,QAAQ;AAClC,QAAM,WAAW,cAAc,QAAQ,KAAK;AAC5C,QAAMA,QAAO,aAAa,MAAM,EAAE;AAGlC,MACE,UACA,YACA,SAAS,SAAS,cACjB,SAAS,YAAY,WAAW,SAAS,YAAY,YACtD,QAAQ,UAAU,OAAO,SAAS,QAAQ,QAAQ,GAAG,MAAM,GAC3D;AACA,WAAO;AAAA,EACR;AAED,SAAO,QAAQA,SAAQA,MAAK,SAAS,aAAaA,MAAK,YAAY,IAAI;AACzE;","x_google_ignoreList":[0]}